:root {
    --ink: #0d0b14;
    --paper: #faf6ef;
    --bone: #ede5d5;
    --forest: #1a2d1e;
    --moss: #2d4a2e;
    --sage: #5c7a3e;
    --fern: #8aac5c;
    --amber: #c4882a;
    --gold: #d4a843;
    --mist: #c8d4b8;
    --dusk: #3d2b4a;
    --moon: #b8a8cc;
    /* Color acento para perro: tierra cálida */
    --accent: #b8722a;
    --accent-light: rgba(184, 114, 42, 0.15);
    --transition: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    --font-display: 'Cinzel Decorative', serif;
    --font-body: 'Crimson Pro', serif;
    --font-mono: 'Space Mono', monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 18px;
}

body {
    background-color: var(--ink);
    color: var(--bone);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
}

/* NAV */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to bottom, rgba(13, 11, 20, 0.95), transparent);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid rgba(212, 168, 67, 0.1);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--gold);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--mist);
    text-decoration: none;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--gold);
}

/* HERO DEL THERIOTIPO */
.theriotype-hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 8rem 2rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.theriotype-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 70%, rgba(184, 114, 42, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 50% 60%, rgba(29, 20, 14, 0.8) 0%, transparent 80%);
}

.hero-emoji {
    font-size: 6rem;
    display: block;
    margin-bottom: 1.5rem;
    position: relative;
    animation: floatEmoji 4s ease-in-out infinite;
    filter: drop-shadow(0 0 40px rgba(184, 114, 42, 0.4));
}

@keyframes floatEmoji {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-12px)
    }
}

.breadcrumb {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: rgba(200, 212, 184, 0.4);
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    position: relative;
}

.breadcrumb a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

.breadcrumb a:hover {
    color: var(--gold);
}

.theriotype-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--accent);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    position: relative;
}

.theriotype-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 700;
    color: var(--paper);
    margin-bottom: 0.5rem;
    position: relative;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.theriotype-sci {
    font-family: var(--font-body);
    font-size: 1rem;
    color: rgba(200, 212, 184, 0.5);
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
}

.meta-pills {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
}

.meta-pill {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--mist);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.04);
}

.meta-pill.highlight {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

/* CONTENIDO PRINCIPAL */
.content-wrapper {
    max-width: 820px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}

.divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(212, 168, 67, 0.2), transparent);
    margin: 3rem 0;
}

/* TABLA DE CARACTERÍSTICAS */
.traits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.trait-card {
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    background: rgba(250, 246, 239, 0.025);
    transition: border-color var(--transition);
    text-align: center;
}

.trait-card:hover {
    border-color: var(--accent-light);
}

.trait-icon {
    font-size: 1.6rem;
    display: block;
    margin-bottom: 0.6rem;
}

.trait-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.trait-text {
    font-size: 0.9rem;
    color: var(--mist);
    font-style: italic;
    line-height: 1.5;
}

/* SECCIÓN DE SHIFTS */
.shifts-list {
    list-style: none;
    margin: 1.5rem 0;
}

.shift-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.shift-marker {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.shift-name {
    font-weight: 600;
    color: var(--paper);
    margin-bottom: 0.2rem;
}

.shift-desc {
    font-size: 0.9rem;
    color: var(--mist);
    font-style: italic;
}

/* COMPARATIVA */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.compare-table th {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    padding: 0.8rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(212, 168, 67, 0.2);
}

.compare-table td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--mist);
    vertical-align: top;
}

.compare-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.compare-table td:first-child {
    color: var(--bone);
    font-weight: 400;
}

/* SECCIÓN DE TEXTO */
h2 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--paper);
    margin: 2.5rem 0 1rem;
    letter-spacing: 0.03em;
}

h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--bone);
    margin: 1.5rem 0 0.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--mist);
}

strong {
    color: var(--bone);
    font-weight: 600;
}

em {
    color: rgba(200, 212, 184, 0.7);
}

/* FAQs inline */
.faq-item {
    margin-bottom: 1.5rem;
}

.faq-q {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--paper);
    margin-bottom: 0.4rem;
}

.faq-a {
    font-size: 0.95rem;
    color: var(--mist);
    font-style: italic;
    padding-left: 1rem;
    border-left: 2px solid var(--accent);
}

/* RELACIONADOS */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.related-pill {
    padding: 1.2rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
    background: rgba(250, 246, 239, 0.02);
}

.related-pill:hover {
    border-color: rgba(212, 168, 67, 0.3);
    background: rgba(212, 168, 67, 0.05);
    transform: translateY(-2px);
}

.related-emoji {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.4rem;
}

.related-name {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--bone);
}

/* FOOTER */
.footer {
    padding: 3rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.footer-text {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: rgba(200, 212, 184, 0.3);
    letter-spacing: 0.1em;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .traits-grid {
        grid-template-columns: 1fr 1fr;
    }

    .compare-table {
        font-size: 0.8rem;
    }
}