/* ==========================================================================
   Rancho Ganadero La Raza — hoja de estilos
   Paleta de marca: rojo cereza, arena, verde mezquite, carbón
   ========================================================================== */

:root {
    --red: #8B2E2A;
    --red-dark: #6F2421;
    --sand: #D9C3A0;
    --sand-soft: #EFE4D2;
    --cream: #FAF6EF;
    --olive: #5F6B3A;
    --olive-soft: #8A9560;
    --charcoal: #2B2B2B;
    --charcoal-2: #353330;
    --ink: #2B2B2B;
    --muted: #6A6259;
    --line: #E4D9C8;
    --white: #fff;

    --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(43, 32, 20, .06), 0 8px 24px rgba(43, 32, 20, .08);
    --shadow-lg: 0 20px 50px rgba(43, 32, 20, .18);
    --header-h: 76px;
    --gutter: clamp(16px, 4vw, 32px);
    --section-y: clamp(64px, 9vw, 120px);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) - 8px); -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    font-variant-numeric: lining-nums;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; color: inherit; }
h1, h2 { font-family: var(--font-serif); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: .6em; text-wrap: balance; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

:focus-visible { outline: 3px solid var(--olive-soft); outline-offset: 3px; border-radius: 4px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: fixed; left: 16px; top: -60px; z-index: 200;
    background: var(--charcoal); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
    transition: top .2s;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: var(--section-y); }
.section-sand { background: var(--sand-soft); }
.section-dark { background: var(--charcoal); color: #EDE6DA; }

.eyebrow {
    display: inline-flex; align-items: center; gap: .6em;
    font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    color: var(--red); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow-light { color: var(--sand); }

.lead { font-size: 1.15rem; color: var(--ink); }

.section-head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head > p:not(.eyebrow) { color: var(--muted); font-size: 1.07rem; }
.section-dark .section-head > p:not(.eyebrow) { color: #C9C0B2; }
.section-head-left { text-align: left; margin-inline: 0; }
.section-head-left .eyebrow { justify-content: flex-start; }

.h3-lg { font-family: var(--font-serif); font-size: clamp(1.45rem, 2.4vw, 1.8rem); font-weight: 700; margin-bottom: 1.2rem; }

.small-note { font-size: .82rem; color: var(--muted); margin-top: 1rem; }
.section-dark .small-note { color: #A89F92; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .8em 1.4em; border-radius: 999px; border: 2px solid transparent;
    font: 600 .95rem/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 1em 1.7em; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); box-shadow: 0 8px 20px rgba(139, 46, 42, .3); }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--charcoal); }
.btn-light { background: #fff; color: var(--red); }
.btn-light:hover { background: var(--sand-soft); }

.link-arrow {
    display: inline-flex; align-items: center; gap: .4em; margin-top: auto;
    font-weight: 600; font-size: .92rem; text-decoration: none;
}
.link-arrow .icon { width: 1em; height: 1em; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Encabezado ---------- */
.site-header {
    position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
    color: #fff; transition: background-color .3s, box-shadow .3s, color .3s;
}
.site-header.is-scrolled,
.site-header.menu-open {
    background: rgba(250, 246, 239, .96);
    color: var(--ink);
    box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(43, 32, 20, .06);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    backdrop-filter: saturate(1.4) blur(10px);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.logo-mark { width: 44px; height: 44px; color: currentColor; --logo-holes: transparent; }
.site-header.is-scrolled .logo-mark,
.site-header.menu-open .logo-mark { color: var(--red); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-small { font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.brand-name { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 800; margin-top: 3px; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 26px; }
.main-nav a:not(.btn) {
    position: relative; color: inherit; text-decoration: none; font-size: .93rem; font-weight: 500; padding-block: 6px;
}
.main-nav a:not(.btn)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
    background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.main-nav a:not(.btn):hover::after,
.main-nav a.is-active::after { transform: scaleX(1); }
.site-header.is-scrolled .main-nav a.is-active { color: var(--red); }
.nav-cta { padding: .6em 1.2em; }

.nav-toggle {
    display: none; background: none; border: 0; color: inherit; padding: 8px; margin-right: -8px; cursor: pointer;
}
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle .icon-close { display: none; }
.menu-open .nav-toggle .icon-open { display: none; }
.menu-open .nav-toggle .icon-close { display: block; }

@media (max-width: 1023px) {
    .nav-toggle { display: inline-flex; }
    .main-nav {
        position: fixed; inset: var(--header-h) 0 auto 0; height: calc(100dvh - var(--header-h));
        flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 32px;
        background: var(--cream); color: var(--ink); overflow-y: auto;
        opacity: 0; visibility: hidden; transform: translateY(-8px);
        transition: opacity .25s, transform .25s, visibility 0s .25s;
    }
    .menu-open .main-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav a:not(.btn) {
        display: block; padding: 16px 0; font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600;
        border-bottom: 1px solid var(--line);
    }
    .main-nav a:not(.btn)::after { display: none; }
    .nav-cta { margin-top: 28px; padding: 1em; font-size: 1rem; }
}
body.no-scroll { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: 100svh; display: flex; align-items: flex-end;
    color: #fff; isolation: isolate; overflow: hidden; background: #1A120C;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; animation: fadeIn 1.6s ease-out backwards, heroZoom 18s ease-out both; }
.hero-media::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(to top, rgba(26, 18, 12, .88) 0%, rgba(26, 18, 12, .45) 42%, rgba(26, 18, 12, .1) 70%, rgba(26, 18, 12, .45) 100%),
        linear-gradient(to right, rgba(26, 18, 12, .55), transparent 65%);
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

.hero-content { padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(120px, 16vw, 170px); }
.hero h1 {
    font-size: clamp(2.4rem, 6.4vw, 4.8rem); max-width: 14ch; line-height: 1.05; margin-bottom: .4em;
    text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
}
.hero-lead { max-width: 560px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, .9); margin-bottom: 2rem; }
.hero-lead strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Cifras ---------- */
.stats-band { position: relative; z-index: 2; margin-top: clamp(-90px, -9vw, -64px); }
.stats {
    display: grid; grid-template-columns: repeat(4, 1fr); margin: 0;
    background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
}
.stat { padding: clamp(20px, 3vw, 32px) clamp(16px, 2.5vw, 32px); display: flex; flex-direction: column-reverse; gap: 4px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat dd { margin: 0; font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; color: var(--red); line-height: 1; }
.stat dt { font-size: .85rem; color: var(--muted); font-weight: 500; }

@media (max-width: 700px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3) { border-left: 0; }
    .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ---------- Bloques texto + imagen ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-text > p:not(.eyebrow):not(.lead) { color: #4A443D; }
.split-media img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }
.split-media.tall img { aspect-ratio: 4 / 5; }
figcaption { font-size: .82rem; color: var(--muted); margin-top: .7rem; }
.frame-img { position: relative; isolation: isolate; }
.frame-img::before {
    content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 2px solid var(--sand); border-radius: var(--radius); z-index: -1;
}
.framed figcaption { margin-top: 2.2rem; }

@media (max-width: 899px) {
    .split { grid-template-columns: 1fr; }
    .split-reverse-mobile .split-media { order: 2; }
    .split-media.tall img { aspect-ratio: 4 / 3; }
    .frame-img::before { inset: 14px -10px -14px 14px; }
    .framed figcaption { margin-top: 1.6rem; }
}

/* ---------- Línea de tiempo ---------- */
.timeline-wrap { margin-top: clamp(64px, 8vw, 100px); }
.timeline-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.timeline-head h3 { font-family: var(--font-serif); font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-weight: 700; }
.swipe-hint { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); white-space: nowrap; }
.swipe-hint .icon { width: 1em; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(4px); } }

.timeline {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 0;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px;
    scrollbar-width: thin; scrollbar-color: var(--sand) transparent;
    mask-image: linear-gradient(to right, #000 88%, transparent);
}
.timeline li { position: relative; scroll-snap-align: start; padding: 34px 24px 0 0; }
.timeline li::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 2px; background: var(--line); }
.timeline li::after {
    content: ""; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%;
    background: var(--cream); border: 3px solid var(--red);
}
.timeline li:last-child::after { background: var(--red); }
.timeline-year { display: block; font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; color: var(--red); line-height: 1; margin-bottom: 8px; }
.timeline p { font-size: .93rem; color: #4A443D; }

/* ---------- Misión / visión / valores ---------- */
.mv { display: grid; gap: 20px; margin-top: 8px; }
.mv-item { background: var(--cream); border-radius: var(--radius); padding: 22px 24px; border-left: 4px solid var(--red); }
.mv-item h3 { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; color: var(--red); margin-bottom: 6px; }
.mv-item p { color: #4A443D; }

.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: clamp(48px, 6vw, 80px); }
.value { background: var(--white); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); }
.value-icon {
    display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
    background: rgba(95, 107, 58, .12); color: var(--olive); margin-bottom: 16px;
}
.value-icon .icon { width: 24px; height: 24px; }
.value h3 { margin-bottom: 8px; }
.value p { font-size: .9rem; color: var(--muted); }

@media (max-width: 1100px) { .values { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .values { grid-template-columns: 1fr; } }

/* ---------- El rancho ---------- */
.wide-figure img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 700px) { .wide-figure img { aspect-ratio: 4 / 3; } }

.card { background: var(--white); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow); }
.card h3 { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 700; margin-bottom: 1.2rem; }
.card-note { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }

.land-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; margin-top: 24px; }
@media (max-width: 899px) { .land-grid { grid-template-columns: 1fr; } }

.land-bar { display: flex; height: 18px; border-radius: 999px; overflow: hidden; gap: 3px; margin-bottom: 20px; }
.seg-0 { background: var(--sand); }
.seg-1 { background: var(--olive); }
.seg-2 { background: var(--red); }
.land-legend li { display: grid; grid-template-columns: 12px 1fr auto 48px; align-items: center; gap: 12px; padding: 10px 0; }
.land-legend li + li { border-top: 1px dashed var(--line); }
.land-legend .dot { width: 12px; height: 12px; border-radius: 3px; }
.legend-label { color: #4A443D; }
.legend-pct { text-align: right; color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 0; }
.facts > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--olive); }
.facts dd { margin: 2px 0 0; font-size: .95rem; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

.facilities { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; margin-top: clamp(56px, 7vw, 96px); }
.facilities-media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.facilities-media figure:nth-child(2) { margin-top: 48px; }
.facilities-media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 899px) {
    .facilities { grid-template-columns: 1fr; }
    .facilities-media figure:nth-child(2) { margin-top: 28px; }
}

.checklist li { display: flex; gap: 12px; padding: 10px 0; align-items: flex-start; }
.checklist li + li { border-top: 1px solid var(--line); }
.checklist .icon { color: var(--olive); margin-top: 3px; width: 20px; height: 20px; }
.badge-line {
    display: flex; gap: 10px; align-items: center; margin-top: 24px; padding: 14px 18px;
    background: rgba(95, 107, 58, .1); color: #4B5530; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 500;
}

/* ---------- Genética ---------- */
.section-dark h2, .section-dark h3 { color: #fff; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.chips li { padding: 7px 14px; border: 1px solid rgba(217, 195, 160, .35); border-radius: 999px; font-size: .85rem; color: var(--sand); }

.breeds { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.breed { background: var(--charcoal-2); border-radius: var(--radius); overflow: hidden; }
.breed img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s; }
.breed:hover img { transform: scale(1.03); }
.breed-body { padding: 26px 28px 30px; }
.breed-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 12px; }
.breed-top h3 { font-family: var(--font-serif); font-size: 1.75rem; font-weight: 700; }
.breed-pct { font-family: var(--font-serif); font-size: 2rem; font-weight: 700; color: var(--sand); line-height: 1; text-align: right; }
.breed-pct small { display: block; font-family: var(--font-sans); font-size: .72rem; font-weight: 500; color: #A89F92; letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }
.breed p { color: #C9C0B2; }
@media (max-width: 760px) { .breeds { grid-template-columns: 1fr; } }

.genetics-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 64px); margin-top: clamp(56px, 7vw, 88px); }
@media (max-width: 899px) { .genetics-grid { grid-template-columns: 1fr; } }

.tools { margin: 0; }
.tools > div { display: grid; grid-template-columns: minmax(150px, 1fr) 1.3fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.tools > div:first-child { border-top: 1px solid rgba(255, 255, 255, .1); }
.tools dt { font-weight: 600; color: #fff; }
.tools dd { margin: 0; color: #C9C0B2; font-size: .93rem; }
@media (max-width: 520px) { .tools > div { grid-template-columns: 1fr; gap: 2px; } }

.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.kpis li { background: var(--charcoal-2); border-radius: var(--radius-sm); padding: 18px 20px; border-top: 3px solid var(--red); }
.kpis strong { display: block; font-family: var(--font-serif); font-size: 1.9rem; font-weight: 700; color: #fff; line-height: 1.1; }
.kpis span { font-size: .85rem; color: #A89F92; }

/* ---------- Ejemplares ---------- */
.featured {
    display: grid; grid-template-columns: 1.15fr 1fr; background: var(--white);
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.featured-media { position: relative; }
.featured-media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.ribbon {
    position: absolute; top: 20px; left: 20px; display: inline-flex; align-items: center; gap: 6px;
    background: var(--sand); color: var(--charcoal); padding: 8px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600;
}
.ribbon .icon { width: 16px; height: 16px; }
.featured-body { padding: clamp(28px, 4vw, 52px); }
.featured-body h3 { font-family: var(--font-serif); font-size: clamp(2rem, 3.4vw, 2.6rem); font-weight: 800; margin-bottom: 6px; }
.featured-meta { font-size: .88rem; color: var(--muted); margin-bottom: 1.2rem; }
.featured-body > p:not(.eyebrow):not(.featured-meta) { color: #4A443D; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0 28px; }
.specs > div { background: var(--cream); border-radius: var(--radius-sm); padding: 12px 16px; }
.specs dt { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.specs dd { margin: 2px 0 0; font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700; color: var(--red); }
.specs dd small { font-family: var(--font-sans); font-size: .75rem; color: var(--muted); font-weight: 500; }
@media (max-width: 899px) {
    .featured { grid-template-columns: 1fr; }
    .featured-media img { aspect-ratio: 3 / 2; min-height: 0; }
}

.tabs { margin-top: clamp(48px, 6vw, 72px); }
.tab-list { display: inline-flex; background: var(--sand-soft); padding: 5px; border-radius: 999px; margin-bottom: 24px; }
.tab {
    border: 0; background: none; padding: 10px 22px; border-radius: 999px; cursor: pointer;
    font: 600 .92rem var(--font-sans); color: var(--muted); transition: background-color .2s, color .2s;
}
.tab[aria-selected="true"] { background: var(--white); color: var(--red); box-shadow: 0 2px 8px rgba(43, 32, 20, .1); }
.tab-panel:focus-visible { outline-offset: 8px; }

.animal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.animal {
    display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 22px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.animal:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.tag {
    align-self: flex-start; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    padding: 4px 10px; border-radius: 999px; background: rgba(139, 46, 42, .1); color: var(--red); margin-bottom: 14px;
}
.tag-gray { background: #ECEAE6; color: #5B5750; }
.animal h4 { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 700; }
.animal-reg { font-size: .8rem; color: var(--muted); margin: 4px 0 16px; }
.animal-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin: 0 0 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.animal-stats dt { font-size: .72rem; color: var(--muted); }
.animal-stats dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.animal-note { display: flex; gap: 8px; margin-top: auto; font-size: .85rem; color: #4B5530; background: rgba(95, 107, 58, .09); padding: 10px 12px; border-radius: var(--radius-sm); }
.animal-note .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--olive); }
@media (max-width: 1100px) { .animal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
    .animal-grid {
        grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 85%;
        overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
        scroll-padding-inline: var(--gutter);
    }
    .animal { scroll-snap-align: start; }
    .animal:hover { transform: none; }
}

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(48px, 6vw, 72px); }
.gallery figure { position: relative; overflow: hidden; border-radius: var(--radius); }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
    position: absolute; inset: auto 0 0; margin: 0; padding: 40px 16px 14px; color: #fff; font-size: .82rem; line-height: 1.4;
    background: linear-gradient(to top, rgba(20, 14, 10, .85), transparent);
}
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; gap: 10px; } }

/* ---------- Exposiciones ---------- */
.expo-intro { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; margin-bottom: 40px; }
.expo-intro .section-head { margin-bottom: 0; }
.expo-numbers { display: flex; gap: 16px; }
.expo-numbers > div { background: var(--red); color: #fff; border-radius: var(--radius); padding: 20px 24px; min-width: 170px; }
.expo-numbers > div + div { background: var(--charcoal); }
.expo-numbers strong { display: block; font-family: var(--font-serif); font-size: 3rem; line-height: 1; }
.expo-numbers span { font-size: .85rem; opacity: .85; }
@media (max-width: 899px) {
    .expo-intro { grid-template-columns: 1fr; }
    .expo-numbers > div { flex: 1; min-width: 0; }
}

.table-wrap { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.awards { width: 100%; border-collapse: collapse; font-size: .93rem; }
.awards th { text-align: left; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--cream); padding: 14px 20px; }
.awards td { padding: 16px 20px; border-top: 1px solid var(--line); vertical-align: middle; }
.awards tbody tr { transition: background-color .2s; }
.awards tbody tr:hover { background: #FDFBF7; }
.awards-year { font-family: var(--font-serif); font-weight: 700; font-size: 1.1rem; color: var(--red); }
.prize { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--sand-soft); font-size: .84rem; font-weight: 500; }
.prize-gold { background: #F3E3B8; color: #6A4E0E; font-weight: 600; }

@media (max-width: 760px) {
    .table-wrap { background: none; box-shadow: none; overflow: visible; }
    .awards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
    .awards, .awards tbody, .awards tr, .awards td { display: block; }
    .awards tr { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 12px; position: relative; }
    .awards td { border: 0; padding: 3px 0; }
    .awards td[data-label="Exposición"] { color: var(--muted); font-size: .86rem; padding-right: 56px; }
    .awards td.awards-year { position: absolute; top: 16px; right: 18px; padding: 0; }
    .awards td[data-label="Ejemplar"] { font-size: 1.05rem; }
    .awards td[data-label="Premio"] { padding-top: 8px; }
}

.champion { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; margin-top: clamp(56px, 7vw, 96px); }
.champion-media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.champion-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.champion-media figure:first-child { margin-top: 40px; }
@media (max-width: 899px) { .champion { grid-template-columns: 1fr; } .champion-media figure:first-child { margin-top: 24px; } }

.steps li { display: flex; gap: 18px; padding: 16px 0; }
.steps li + li { border-top: 1px solid rgba(43, 32, 20, .1); }
.step-n {
    flex-shrink: 0; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
    background: var(--white); color: var(--red); font-family: var(--font-serif); font-weight: 700; font-size: 1.15rem;
    box-shadow: var(--shadow);
}
.steps h4 { font-size: 1.05rem; margin-bottom: 2px; }
.steps p { color: #4A443D; font-size: .95rem; }

.calendar { margin-top: clamp(56px, 7vw, 96px); }
.events { display: grid; gap: 12px; }
.event {
    display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; align-items: center;
    background: var(--white); border-radius: var(--radius); padding: 18px 24px 18px 18px; box-shadow: var(--shadow);
}
.event-date { text-align: center; border-right: 1px solid var(--line); padding-right: 18px; }
.event-date strong { display: flex; justify-content: center; font-family: var(--font-serif); font-size: 2rem; line-height: 1; color: var(--red); }
.event-date strong .icon { width: 28px; height: 28px; color: var(--olive); }
.event-date span { display: block; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 6px; }
.event-info h4 { font-size: 1.08rem; }
.event-info p { display: flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--muted); margin-top: 2px; }
.event-info p .icon { width: 15px; height: 15px; }
.event-label { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sand); margin-bottom: 4px; }

.event-featured {
    background: linear-gradient(120deg, var(--red) 0%, var(--red-dark) 100%); color: #fff; padding-block: 26px;
}
.event-featured .event-date { border-color: rgba(255, 255, 255, .25); }
.event-featured .event-date strong { color: #fff; font-size: 2.6rem; }
.event-featured .event-date span,
.event-featured .event-info p { color: rgba(255, 255, 255, .8); }
.event-featured h4 { font-family: var(--font-serif); font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 700; }

@media (max-width: 640px) {
    .event { grid-template-columns: 72px 1fr; gap: 14px; padding-right: 18px; }
    .event-date { padding-right: 14px; }
    .event .btn { grid-column: 1 / -1; }
}

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
    display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); padding: 30px 28px;
    border: 1px solid var(--line); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service-icon {
    display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 14px;
    background: rgba(139, 46, 42, .08); color: var(--red); margin-bottom: 18px;
}
.service-icon .icon { width: 28px; height: 28px; }
.service h3 { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 700; margin-bottom: 8px; }
.service p { color: var(--muted); margin-bottom: 20px; }
@media (max-width: 960px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .services { grid-template-columns: 1fr; } }

/* ---------- Contacto ---------- */
.section-contact { background: var(--charcoal); background-image: radial-gradient(circle at 10% 0%, rgba(139, 46, 42, .45), transparent 55%); }
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-info { color: #EDE6DA; }
.contact-info h2 { color: #fff; }
.contact-info > p:not(.eyebrow) { color: #C9C0B2; font-size: 1.07rem; }
.contact-list { margin-top: 32px; display: grid; gap: 4px; }
.contact-list li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); align-items: flex-start; }
.contact-list .icon { color: var(--sand); margin-top: 4px; width: 22px; height: 22px; }
.contact-list span { display: block; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: #A89F92; font-weight: 600; }
.contact-list a { color: #fff; text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--sand); }
@media (max-width: 899px) { .contact { grid-template-columns: 1fr; } }

.contact-form { background: var(--white); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-lg); }
.contact-form h3 { font-family: var(--font-serif); font-size: 1.7rem; font-weight: 700; margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 6px; }
.field label span { color: var(--red); }
.field input,
.field select,
.field textarea {
    width: 100%; font: 400 1rem/1.4 var(--font-sans); color: var(--ink);
    background: var(--cream); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field select {
    appearance: none; padding-right: 40px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236A6259' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--olive); background: #fff; box-shadow: 0 0 0 4px rgba(95, 107, 58, .15); }
.field-error { display: none; margin: 6px 0 0; font-size: .82rem; color: #B3261E; }
.has-error input,
.has-error select,
.has-error textarea { border-color: #B3261E; background: #FFF8F7; }
.has-error .field-error { display: block; }

.form-alert { padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: .92rem; font-weight: 500; }
.form-alert.is-success { background: #EEF3E4; color: #3E4A1E; border: 1px solid #C8D5A8; }
.form-alert.is-error { background: #FDEDEC; color: #8C1D18; border: 1px solid #F2C4C0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-legal { font-size: .78rem; color: var(--muted); text-align: center; margin-top: 12px; }
.btn[disabled] { opacity: .7; cursor: progress; }

.map { margin-top: clamp(48px, 6vw, 72px); border-radius: var(--radius); overflow: hidden; height: 340px; background: var(--charcoal-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }

/* ---------- Pie ---------- */
.site-footer { background: #1F1E1C; color: #A89F92; padding-top: 56px; font-size: .92rem; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand .logo-mark { color: var(--sand); }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.footer-links a, .footer-contact a { color: #D6CEC2; text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact { display: grid; gap: 10px; align-content: start; }
.footer-contact > * { display: inline-flex; align-items: center; gap: 10px; }
.footer-contact .icon { width: 17px; height: 17px; color: var(--sand); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding-block: 20px; font-size: .8rem; }
@media (max-width: 760px) {
    .footer-inner { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { padding-right: 88px; }
}

/* Botón flotante de WhatsApp */
.wa-float {
    position: fixed; right: 18px; bottom: 18px; z-index: 90; display: grid; place-items: center;
    width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
    transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float .icon { width: 28px; height: 28px; }

/* ---------- Aparición gradual al cargar la página ----------
   Secuencia: foto de portada → encabezado → textos del hero → cifras.
   "backwards" aplica el estado inicial durante el retraso y no deja
   transform residual al terminar (el menú móvil es position: fixed). */
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-16px); } }

.site-header { animation: fadeDown .8s ease-out .5s backwards; }
.hero-content > * { animation: fadeUp 1s cubic-bezier(.2, .7, .2, 1) backwards; }
.hero-content > :nth-child(1) { animation-delay: .6s; }
.hero-content > :nth-child(2) { animation-delay: .8s; }
.hero-content > :nth-child(3) { animation-delay: 1.05s; }
.hero-content > :nth-child(4) { animation-delay: 1.25s; }
.stats-band .stat { animation: fadeUp .9s cubic-bezier(.2, .7, .2, 1) backwards; }
.stats-band .stat:nth-child(1) { animation-delay: 1.45s; }
.stats-band .stat:nth-child(2) { animation-delay: 1.55s; }
.stats-band .stat:nth-child(3) { animation-delay: 1.65s; }
.stats-band .stat:nth-child(4) { animation-delay: 1.75s; }
.stats-band .stats { animation: fadeUp 1s cubic-bezier(.2, .7, .2, 1) 1.35s backwards; }
.wa-float { animation: fadeUp .6s ease-out 2.2s backwards; }

/* ---------- Aparición al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}
