/* ============================================================
   Criadero El Eclipse — estilos compartidos
   Paleta extraída del mockup PAGINA WEB CRIADERO.png
   ============================================================ */
:root {
  --crema:        #faf5ef;
  --crema-2:      #fbf7f2;
  --crema-3:      #f3ebe0;
  --oscuro:       #1e160d;
  --oscuro-2:     #231911;
  --oscuro-3:     #2c2114;
  --dorado:       #b78a3e;
  --dorado-claro: #caa258;
  --dorado-suave: #e6d4ad;
  --texto:        #2a2018;
  --texto-suave:  #6b5a45;
  --texto-claro:  #9a8973;
  --borde:        #e8ddd0;
  --borde-osc:    #3a2c1c;
  --sombra:       0 14px 40px rgba(42, 32, 24, .10);
  --sombra-card:  0 8px 28px rgba(42, 32, 24, .08);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Montserrat", system-ui, -apple-system, sans-serif;
  --nav-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--texto);
  background: var(--crema);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: min(1800px, 95%); margin-inline: auto; }

/* ---------- Iconos (Iconify) ---------- */
iconify-icon { display: inline-block; vertical-align: middle; line-height: 1; }
.feature .ic iconify-icon { font-size: 42px; color: var(--dorado); }
.stat .ic iconify-icon { font-size: 34px; color: var(--dorado); }
.colecta-intro .ic iconify-icon { font-size: 38px; color: var(--dorado); }
.colecta-feat .ic iconify-icon { font-size: 30px; color: var(--dorado); }
.tab iconify-icon { font-size: 1.25rem; }

/* ---------- Animación: aparición al scroll ---------- */
/* La clase .reveal la añade main.js (mejora progresiva): sin JS, todo visible. */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Animación: entrada del hero al cargar ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-text h1, .hero-text .hero-divider, .hero-text p, .hero-text .hero-actions {
    opacity: 0; animation: heroIn .85s cubic-bezier(.22,.61,.36,1) forwards;
  }
  .hero-text h1 { animation-delay: .12s; }
  .hero-text .hero-divider { animation-delay: .26s; }
  .hero-text p { animation-delay: .40s; }
  .hero-text .hero-actions { animation-delay: .54s; }
}
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---------- Tipografía utilitaria ---------- */
.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--dorado);
  display: inline-block;
  margin-bottom: .6rem;
}
.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: .01em;
}
.section-head { text-align: center; margin-bottom: 2.6rem; }
.divider {
  width: 150px; height: 32px; margin: 1.1rem auto 0; position: relative;
  background: url("../img/herradura.png") center / 30px 30px no-repeat;
}
.divider::before, .divider::after {
  content: ""; position: absolute; top: 50%; width: 46px; height: 2px;
  background: linear-gradient(to var(--dir, right), var(--dorado), rgba(183,138,62,.25));
  transform: translateY(-50%);
}
.divider::before { left: 0; --dir: left; }
.divider::after { right: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--sans); font-weight: 600;
  font-size: .76rem; letter-spacing: .16em; text-transform: uppercase;
  padding: .95rem 1.6rem; border: none; cursor: pointer;
  transition: all .25s ease; border-radius: 2px;
}
.btn svg { width: 16px; height: 16px; fill: currentColor; }
.btn-primary { background: var(--dorado); color: #fff; }
.btn-primary:hover { background: var(--dorado-claro); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(183,138,62,.35); }
.btn-ghost { background: transparent; color: var(--texto); border: 1.5px solid var(--dorado); }
.btn-ghost:hover { background: var(--dorado); color: #fff; }
.btn-dark { background: var(--oscuro); color: #fff; }
.btn-dark:hover { background: var(--dorado); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: var(--crema);
  border-bottom: 1px solid rgba(0,0,0,.05);
  transition: background .3s ease, box-shadow .3s ease, color .3s ease;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; width: 100%; max-width: none; padding-inline: clamp(18px, 3vw, 48px); }

.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { width: auto; display: block; }
.brand-emblema { height: 46px; }
.brand-word { height: 34px; filter: brightness(0); transition: filter .3s ease; }
.nav.scrolled .brand-word { filter: none; }

.nav-links { display: flex; align-items: center; gap: 1.8rem; list-style: none; margin-left: auto; }
.nav-links > li > a {
  font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--texto); padding: .4rem 0; position: relative; transition: color .2s;
}
.nav-links > li > a:hover, .nav-links > li > a.active { color: var(--dorado); }
.nav-links > li > a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--dorado);
}

/* dropdown */
.has-dropdown { position: relative; }
.has-dropdown > a::after { content: "▾"; margin-left: .35rem; font-size: .7em; }
.dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--crema); min-width: 210px; list-style: none; padding: .5rem 0;
  box-shadow: var(--sombra); border: 1px solid var(--borde); border-radius: 4px;
  opacity: 0; visibility: hidden; transition: all .22s ease;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown li a {
  display: block; padding: .6rem 1.3rem; font-size: .78rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--texto-suave);
}
.dropdown li a:hover { background: var(--crema-3); color: var(--dorado); }

.nav-social { display: flex; align-items: center; gap: .55rem; margin-left: 2.4rem; }
.nav-social a {
  width: 30px; height: 30px; display: grid; place-items: center;
  border: 1.4px solid var(--dorado); border-radius: 50%; transition: all .2s;
}
.nav-social a svg { width: 14px; height: 14px; fill: var(--dorado); transition: fill .2s; }
.nav-social a:hover { background: var(--dorado); }
.nav-social a:hover svg { fill: #fff; }

/* nav al hacer scroll → oscuro */
.nav.scrolled { background: var(--oscuro); box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.nav.scrolled .brand-text .b2 { color: #fff; }
.nav.scrolled .nav-links > li > a { color: #f0e9de; }
.nav.scrolled .nav-links > li > a:hover,
.nav.scrolled .nav-links > li > a.active { color: var(--dorado-claro); }
.nav.scrolled .dropdown { background: var(--oscuro-2); border-color: var(--borde-osc); }
.nav.scrolled .dropdown li a { color: #d8ccbb; }
.nav.scrolled .dropdown li a:hover { background: var(--oscuro-3); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--texto); transition: .3s; }
.nav.scrolled .nav-toggle span { background: #fff; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; padding-top: var(--nav-h);
  background-image:
    linear-gradient(100deg, rgba(250,245,239,.94) 0%, rgba(250,245,239,.82) 38%, rgba(248,242,234,.52) 72%, rgba(248,242,234,.42) 100%),
    url("../img/hero-bg.jpg");
  background-size: cover; background-position: center 78%; background-repeat: no-repeat;
}
.hero .wrap { min-height: calc(90vh - var(--nav-h)); display: flex; align-items: center; }
.hero-text { max-width: 660px; padding: 3.5rem 0; position: relative; z-index: 2; }
.hero-text h1 { font-family: var(--serif); font-weight: 600; line-height: .98; letter-spacing: .01em; }
.hero-text h1 .l1 { display: block; font-size: clamp(2.8rem, 6vw, 5.2rem); color: var(--texto); }
.hero-text h1 .l2 { display: block; font-size: clamp(2.4rem, 5vw, 4.4rem); color: var(--dorado); font-style: italic; }
.hero-divider { width: 60px; height: 2px; background: var(--dorado); margin: 1.4rem 0; }
.hero-text p { color: var(--texto-suave); max-width: 32rem; margin-bottom: 2rem; font-size: 1.02rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ============================================================
   FEATURES
   ============================================================ */
.features { background: var(--crema-2); border-top: 1px solid var(--borde); border-bottom: 1px solid var(--borde); overflow: hidden; }
.marquee { overflow: hidden; }
.marquee-track { display: flex; width: max-content; align-items: center; animation: marquee 45s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
.feature { display: flex; gap: 1rem; align-items: center; padding: 1.7rem 0; flex: 0 0 auto; }
.feature::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dorado); opacity: .45; margin: 0 3rem; }
.feature .ic { flex: 0 0 auto; width: 42px; height: 42px; color: var(--dorado); }
.feature h4 { font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .15rem; white-space: nowrap; }
.feature p { font-size: .8rem; color: var(--texto-suave); line-height: 1.4; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ============================================================
   NOSOTROS
   ============================================================ */
.nosotros { padding: 5rem 0; }
.nosotros-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.5rem; align-items: center; }
.nosotros-media { position: relative; }
.nosotros-media img { width: 100%; height: 460px; object-fit: cover; border-radius: 10px; box-shadow: var(--sombra); }
.nosotros-text p { color: var(--texto-suave); margin-bottom: 1.1rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 2.4rem; }
.stat { text-align: center; }
.stat .ic { width: 40px; height: 40px; margin: 0 auto .5rem; color: var(--dorado); }
.stat .ic svg { width: 100%; height: 100%; fill: var(--dorado); }
.stat .num { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; color: var(--texto); line-height: 1; }
.stat .lbl { font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--texto-suave); margin-top: .35rem; }

/* ============================================================
   REPRODUCTORES
   ============================================================ */
.reproductores { padding: 4.5rem 0 5rem; background: var(--crema-2); }
.tabs { display: flex; justify-content: center; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; }
.tab {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--sans); font-weight: 600; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .85rem 1.7rem; border: 1.5px solid var(--dorado); background: transparent; color: var(--texto);
  cursor: pointer; transition: all .22s; border-radius: 2px;
}
.tab svg { width: 18px; height: 18px; fill: currentColor; }
.tab.active { background: var(--dorado); color: #fff; }
.tab:not(.active):hover { background: var(--crema-3); }

/* Flex con ancho de tarjeta fijo (1/5 del ancho) → mismo tamaño en Equinos y Asnales */
.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; }
.cards[hidden] { display: none; }
.card { flex: 0 0 calc((100% - 4 * 1.2rem) / 5); max-width: calc((100% - 4 * 1.2rem) / 5); }

.card {
  background: var(--crema); border: 1px solid var(--borde); border-radius: 4px; overflow: hidden;
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--sombra-card); }
.card-img { aspect-ratio: 1/1; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 1rem 1rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-family: var(--serif); font-size: 1.18rem; font-weight: 700; line-height: 1.1; margin-bottom: .5rem; }
.card-meta { font-size: .72rem; color: var(--texto-suave); line-height: 1.7; margin-bottom: 1rem; flex: 1; }
.card-meta b { color: var(--texto); font-weight: 600; }
.card .btn { width: 100%; justify-content: center; font-size: .68rem; padding: .7rem; }

.repro-foot { text-align: center; margin-top: 2.6rem; }

/* ============================================================
   GALERÍA (carrusel)
   ============================================================ */
section[id] { scroll-margin-top: 90px; }
.galeria { padding: 4.5rem 0 5rem; }
.carousel { position: relative; margin-top: 2rem; overflow: hidden; }
.carousel-track {
  display: flex; gap: 1rem; padding: 3.2rem 0; align-items: center;
  transition: transform .6s cubic-bezier(.22,.61,.36,1); will-change: transform;
}
.carousel.instant .carousel-track, .carousel.instant .carousel-slide { transition: none !important; }
.carousel-slide {
  flex: 0 0 auto; position: relative;
  height: clamp(240px, 42vh, 400px); border-radius: 8px; overflow: hidden; background: var(--crema-3);
  cursor: zoom-in; transform: scale(.7); opacity: .4;
  transition: transform .6s cubic-bezier(.22,.61,.36,1), opacity .6s, box-shadow .4s;
  box-shadow: 0 6px 20px rgba(42,32,24,.12);
}
.carousel-slide.active { transform: scale(1.08); opacity: 1; box-shadow: 0 26px 60px rgba(30,22,13,.34); z-index: 2; }
.carousel-slide img { width: auto; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.carousel-slide.active:hover img { transform: scale(1.05); }
.carousel-slide .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem 1.1rem .95rem;
  background: linear-gradient(to top, rgba(30,22,13,.9), transparent);
  color: #fff; font-family: var(--sans); font-weight: 600; font-size: .82rem;
  letter-spacing: .03em; line-height: 1.35;
  opacity: 0; transition: opacity .4s;
}
.carousel-slide.active .cap { opacity: 1; }
/* Campeones: protagonismo */
.carousel-slide.campeon { box-shadow: 0 6px 20px rgba(42,32,24,.12), 0 0 0 3px var(--dorado); }
.carousel-slide.campeon.active { box-shadow: 0 26px 60px rgba(30,22,13,.34), 0 0 0 4px var(--dorado); }
.carousel-slide.campeon .cap { opacity: 1; }
.cam-badge {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--dorado); color: #fff;
  font-family: var(--sans); font-weight: 700; font-size: .66rem;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .34rem .7rem; border-radius: 3px; box-shadow: 0 4px 12px rgba(30,22,13,.3);
}
.cam-badge iconify-icon { font-size: 14px; }
.carousel-slide .zoom {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(30,22,13,.55); display: grid; place-items: center; opacity: 0; transition: opacity .3s;
}
.carousel-slide .zoom iconify-icon { font-size: 18px; color: #fff; }
.carousel-slide.active:hover .zoom { opacity: 1; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; border: none;
  background: var(--oscuro); color: #fff; cursor: pointer;
  display: grid; place-items: center; z-index: 5;
  box-shadow: 0 8px 22px rgba(30,22,13,.35); transition: background .2s, opacity .2s, transform .2s;
}
.carousel-btn:hover:not([disabled]) { background: var(--dorado); transform: translateY(-50%) scale(1.06); }
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }
.carousel-btn iconify-icon { font-size: 24px; color: #fff; }
.carousel-btn[disabled] { opacity: .3; cursor: default; }

/* ---------- Lightbox (visor en grande) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 2000; background: rgba(20,14,8,.93);
  display: none; align-items: center; justify-content: center; padding: 5vw;
  opacity: 0; transition: opacity .3s;
}
.lightbox.open { display: flex; opacity: 1; }
.lb-content { display: flex; flex-direction: column; align-items: center; max-width: min(1100px, 92vw); }
.lb-content img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 6px; box-shadow: 0 24px 70px rgba(0,0,0,.55); }
.lb-content figcaption { color: #e7dccb; font-family: var(--serif); font-size: 1.25rem; margin-top: 1.1rem; letter-spacing: .02em; }
.lb-close { position: absolute; top: 22px; right: 30px; background: none; border: none; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; transition: color .2s; }
.lb-close:hover { color: var(--dorado-claro); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; border: none; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.lb-nav:hover { background: var(--dorado); }
.lb-prev { left: 3vw; } .lb-next { right: 3vw; }
.lb-nav iconify-icon { font-size: 26px; color: #fff; }

/* ============================================================
   COLECTA
   ============================================================ */
.colecta { background: var(--oscuro); color: #fff; }
.colecta .wrap { display: grid; grid-template-columns: 1.2fr 1fr 2fr; align-items: center; gap: 2rem; padding: 2.4rem 0; }
.colecta-intro { display: flex; gap: 1rem; align-items: flex-start; }
.colecta-intro .ic { width: 40px; flex: 0 0 auto; color: var(--dorado); }
.colecta-intro .ic svg { width: 100%; fill: var(--dorado); }
.colecta-intro h3 { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; line-height: 1; }
.colecta-intro p { font-size: .78rem; color: #c9bba9; margin-top: .4rem; }
.colecta-precio { text-align: center; border-left: 1px solid var(--borde-osc); border-right: 1px solid var(--borde-osc); padding: 0 1.5rem; }
.colecta-precio .lbl { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--dorado); }
.colecta-precio .val { font-family: var(--serif); font-size: 2.5rem; font-weight: 700; color: var(--dorado-claro); line-height: 1.1; }
.colecta-precio .val .cop { font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .15em; color: #c9bba9; margin-left: .4rem; vertical-align: middle; }
.colecta-precio .cur { font-size: .74rem; letter-spacing: .1em; color: #c9bba9; margin-top: .2rem; }
.colecta-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.colecta-feat { text-align: center; }
.colecta-feat .ic { width: 34px; height: 34px; margin: 0 auto .5rem; }
.colecta-feat .ic svg { width: 100%; fill: var(--dorado); }
.colecta-feat span { font-size: .64rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #e7dccb; line-height: 1.4; display: block; }

/* ============================================================
   AGROINDUSTRIA AYURÁ (video)
   ============================================================ */
.ayura { padding: 4.5rem 0 5rem; background: var(--crema-2); border-top: 1px solid var(--borde); border-bottom: 1px solid var(--borde); }
.ayura .section-head { text-align: center; }
.ayura-intro { max-width: 620px; margin: 1.1rem auto 0; color: var(--texto-suave); font-size: 1rem; line-height: 1.6; }
.ayura-intro strong { color: var(--texto); font-weight: 600; }
.ayura-video {
  position: relative; max-width: 900px; margin: 2.6rem auto 0;
  aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  box-shadow: 0 26px 60px rgba(30,22,13,.28); border: 1px solid var(--borde);
  background: #000;
}
.ayura-video video { width: 100%; height: 100%; display: block; object-fit: cover; }
.ayura-play {
  position: absolute; inset: 0; margin: auto; width: 84px; height: 84px;
  display: grid; place-items: center; border: none; cursor: pointer; border-radius: 50%;
  background: rgba(183,138,62,.92); color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.4);
  transition: transform .25s ease, background .25s ease; z-index: 2;
}
.ayura-play:hover { background: var(--dorado); transform: scale(1.08); }
.ayura-play iconify-icon { font-size: 38px; margin-left: 4px; }
.ayura-video.playing .ayura-play { opacity: 0; pointer-events: none; }

/* ============================================================
   TÉRMINOS
   ============================================================ */
.terminos { padding: 4.5rem 0 5rem; }
.accordion { display: flex; flex-direction: column; gap: .7rem; max-width: 720px; margin: 0 auto; }
.acc-item { border: 1px solid var(--borde); border-radius: 8px; background: var(--crema-2); overflow: hidden; transition: box-shadow .3s ease, border-color .3s ease; }
.acc-item.open { border-color: var(--dorado); box-shadow: 0 10px 28px rgba(42,32,24,.08); }
.acc-head {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer; gap: 1rem;
  padding: 1.05rem 1.3rem; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--sans); font-weight: 600; font-size: .9rem; color: var(--texto); transition: color .2s ease;
}
.acc-head:hover { color: var(--dorado); }
.acc-item.open .acc-head { color: var(--dorado); }
.acc-head .chev { color: var(--dorado); transition: transform .3s; font-size: 1.1rem; flex: 0 0 auto; }
.acc-item.open .acc-head .chev { transform: rotate(180deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.acc-body div { padding: 0 1.3rem 1.15rem; font-size: .85rem; color: var(--texto-suave); line-height: 1.6; }
.acc-body div strong { color: var(--texto); font-weight: 600; }
.acc-item.open .acc-body { max-height: 460px; }
.acc-list { margin: .6rem 0 0; padding-left: 1.2rem; list-style: none; }
.acc-list li { position: relative; padding: .18rem 0 .18rem 1rem; }
.acc-list li::before { content: ""; position: absolute; left: 0; top: .62rem; width: 6px; height: 6px; border-radius: 50%; background: var(--dorado); }
.terminos-foot { text-align: center; margin-top: 2.4rem; }
.terminos-nota { font-size: .8rem; color: var(--texto-suave); font-style: italic; margin-bottom: 1.1rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--oscuro); color: #cabdad; padding-top: 3.4rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.3fr 1.6fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer h5 { color: var(--dorado); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 1.1rem; font-weight: 700; }
.footer .lead { font-size: .82rem; color: #a89986; margin-bottom: 1.2rem; }
.foot-list { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.foot-list li { display: flex; gap: .7rem; align-items: center; font-size: .82rem; }
.foot-list svg { width: 16px; height: 16px; fill: var(--dorado); flex: 0 0 auto; }
.foot-list a:hover { color: var(--dorado-claro); }
.footer .ubic { font-size: .82rem; line-height: 1.8; margin-bottom: 1rem; }
.footer .ubic b { color: #e7dccb; }
.foot-map { border: 1px solid var(--borde-osc); border-radius: 4px; overflow: hidden; }
.foot-map iframe { width: 100%; height: 150px; border: 0; display: block; filter: grayscale(.3) sepia(.2); }

.footer-bottom { border-top: 1px solid var(--borde-osc); }
.footer-bottom .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.4rem 0; flex-wrap: wrap; }
.footer-bottom .fb-logo { display: flex; align-items: center; gap: .8rem; }
.footer-bottom .fb-logo img { height: 82px; width: auto; }
.footer-bottom .fb-afil { display: flex; align-items: center; gap: .55rem; padding-left: 1rem; border-left: 1px solid var(--borde-osc); }
.footer-bottom .fb-afil-label { font-family: var(--sans); font-size: .58rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #8a7a66; max-width: 56px; line-height: 1.35; }
.footer-bottom .fb-afil img { height: 74px; width: auto; opacity: .92; }
.footer-bottom .fb-tag { font-family: var(--serif); font-size: 1rem; letter-spacing: .14em; color: var(--dorado); text-transform: uppercase; }
.footer-bottom .fb-copy { font-size: .72rem; color: #8a7a66; }
.footer-bottom .fb-social { display: flex; gap: .5rem; }
.footer-bottom .fb-social a { width: 30px; height: 30px; display: grid; place-items: center; border: 1.4px solid var(--dorado); border-radius: 50%; }
.footer-bottom .fb-social svg { width: 14px; height: 14px; fill: var(--dorado); transition: fill .2s; }
.footer-bottom .fb-social a:hover { background: var(--dorado); }
.footer-bottom .fb-social a:hover svg { fill: #fff; }

/* ============================================================
   PÁGINAS INTERNAS (listados / ficha)
   ============================================================ */
.page-hero { padding: calc(var(--nav-h) + 3.5rem) 0 3rem; background: var(--oscuro); color: #fff; text-align: center; }
.page-hero .eyebrow { color: var(--dorado-claro); }
.page-hero h1 { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; }
.page-hero p { color: #c9bba9; max-width: 38rem; margin: .8rem auto 0; }
.listado { padding: 4rem 0 5rem; }
.breadcrumb { font-size: .74rem; color: var(--texto-suave); margin-bottom: 2rem; }
.breadcrumb a:hover { color: var(--dorado); }

.ficha { padding: calc(var(--nav-h) + 2.5rem) 0 5rem; }
.ficha-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.ficha-media img { width: 100%; border-radius: 6px; box-shadow: var(--sombra); }
.ficha-info .raza-badge { display: inline-block; background: var(--dorado); color: #fff; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; padding: .35rem .9rem; border-radius: 2px; margin-bottom: 1rem; }
.ficha-info h1 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.05; margin-bottom: 1rem; }
.ficha-info .desc { color: var(--texto-suave); margin-bottom: 1.8rem; }
.ficha-datos { list-style: none; border-top: 1px solid var(--borde); }
.ficha-datos li { display: flex; justify-content: space-between; padding: .8rem 0; border-bottom: 1px solid var(--borde); font-size: .9rem; }
.ficha-datos li span:first-child { color: var(--texto-suave); letter-spacing: .04em; }
.ficha-datos li span:last-child { font-weight: 600; }
.ficha-actions { margin-top: 1.8rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* Árbol genealógico */
.arbol-sec { margin-top: 3.5rem; }
.arbol-fig { max-width: 920px; margin: 0 auto; background: var(--crema-2); border: 1px solid var(--borde); border-radius: 12px; padding: .9rem; box-shadow: var(--sombra); cursor: zoom-in; }
.arbol-fig img { display: block; width: 100%; border-radius: 6px; }
.arbol-hint { text-align: center; font-size: .74rem; color: var(--texto-suave); margin-top: .7rem; letter-spacing: .04em; display: flex; align-items: center; justify-content: center; gap: .35rem; }
.arbol-hint iconify-icon { color: var(--dorado); }
.arbol-zoom { position: fixed; inset: 0; background: rgba(20, 14, 8, .93); z-index: 2000; opacity: 0; transition: opacity .25s ease; overflow: auto; padding: 4vh 2vw; display: flex; align-items: flex-start; justify-content: center; }
.arbol-zoom.open { opacity: 1; }
.arbol-zoom img { width: min(1500px, 150vw); height: auto; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.arbol-zoom-close { position: fixed; top: 1.2rem; right: 1.6rem; width: 48px; height: 48px; border: none; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; z-index: 2001; transition: background .2s; }
.arbol-zoom-close:hover { background: var(--dorado); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .card { flex-basis: calc((100% - 2 * 1.2rem) / 3); max-width: calc((100% - 2 * 1.2rem) / 3); }
  .colecta .wrap { grid-template-columns: 1fr; text-align: center; }
  .colecta-precio { border: none; padding: 1.5rem 0; }
  .colecta-intro { flex-direction: column; align-items: center; text-align: center; gap: .7rem; }
  .colecta-intro .ic { margin: 0 auto; }
  .carousel-slide { height: clamp(230px, 40vh, 360px); }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: var(--nav-h); right: 0; width: min(300px, 80%); height: calc(100vh - var(--nav-h));
    background: var(--oscuro); flex-direction: column; align-items: flex-start; gap: 0;
    padding: 1.5rem; transform: translateX(110%); transition: transform .3s ease; overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links > li { width: 100%; }
  .nav-links > li > a { color: #f0e9de; display: block; padding: .9rem 0; border-bottom: 1px solid var(--borde-osc); }
  .dropdown { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; background: transparent; border: none; padding: 0 0 0 1rem; max-height: 0; overflow: hidden; transition: max-height .3s; }
  .nav.scrolled .dropdown { background: transparent; }
  .has-dropdown.open .dropdown { max-height: 300px; }
  .has-dropdown.open .dropdown li a { color: #c9bba9; }
  .nav-social { display: none; }
  .hero { background-image: linear-gradient(rgba(250,245,239,.9), rgba(248,242,234,.7)), url("../img/hero-bg.jpg"); }
  .hero .wrap { min-height: 70vh; }
  .hero-text { padding: 2.5rem 0; max-width: 100%; }
  .nosotros-grid { grid-template-columns: 1fr; }
  .nosotros-media img { height: auto; }
  .card { flex-basis: calc((100% - 1.2rem) / 2); max-width: calc((100% - 1.2rem) / 2); }
  .accordion { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .ficha-grid { grid-template-columns: 1fr; }
  .colecta-feats { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }
}
@media (max-width: 600px) {
  /* La foto activa se ve COMPLETA dentro de la pantalla (sin recorte),
     limitada por ancho y alto; el slide se ajusta a la imagen. */
  .carousel-track { padding: 2.4rem 0; }
  .carousel-slide { height: auto; }
  .carousel-slide img { width: auto; height: auto; max-width: 84vw; max-height: 56vh; object-fit: contain; }
  /* Flechas más pequeñas y translúcidas para que no tapen la foto */
  .carousel-btn { width: 40px; height: 40px; background: rgba(30,22,13,.5); box-shadow: 0 4px 12px rgba(30,22,13,.3); }
  .carousel-btn iconify-icon { font-size: 20px; }
  .carousel-btn.prev { left: 6px; }
  .carousel-btn.next { right: 6px; }
  .gtab { font-size: .68rem; padding: .55rem 1rem; }
}
@media (max-width: 480px) {
  .card { flex-basis: 100%; max-width: 340px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .footer-bottom .wrap { flex-direction: column; text-align: center; }
}

/* ============================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ============================================================ */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 1500;
  width: 46px; height: 46px; border-radius: 50%;
  background: #25D366; display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(30,22,13,.22);
  transition: transform .25s ease, box-shadow .25s ease;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 10px 22px rgba(30,22,13,.3); }
.wa-float svg { width: 26px; height: 26px; fill: #fff; }
.wa-float-tip { display: none; }
@media (max-width: 600px) {
  .wa-float { right: 14px; bottom: 14px; width: 44px; height: 44px; }
  .wa-float svg { width: 24px; height: 24px; }
}

/* ============================================================
   FORMULARIO SOLICITAR COLECTA
   ============================================================ */
.solicitar { padding: 4.5rem 0 5.5rem; background: var(--crema-2); border-top: 1px solid var(--borde); }
.solicitar-intro { max-width: 560px; margin: 1.1rem auto 0; color: var(--texto-suave); }
.form-colecta {
  max-width: 760px; margin: 2.4rem auto 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.4rem;
  background: var(--crema); border: 1px solid var(--borde); border-radius: 14px;
  padding: 2rem; box-shadow: var(--sombra);
}
.form-colecta label {
  display: flex; flex-direction: column; gap: .4rem;
  font-family: var(--sans); font-size: .76rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--texto-suave);
}
.form-colecta .fc-full { grid-column: 1 / -1; }
.form-colecta input, .form-colecta select {
  font-family: var(--sans); font-size: .95rem; font-weight: 400; text-transform: none;
  letter-spacing: normal; color: var(--texto);
  padding: .7rem .85rem; border: 1px solid var(--borde); border-radius: 7px;
  background: #fff; transition: border-color .2s ease, box-shadow .2s ease;
}
.form-colecta input::placeholder { color: var(--texto-claro); }
.form-colecta input:focus, .form-colecta select:focus {
  outline: none; border-color: var(--dorado); box-shadow: 0 0 0 3px rgba(183,138,62,.15);
}
.fc-actions { display: flex; flex-direction: column; align-items: center; gap: .8rem; margin-top: .4rem; }
.fc-actions .btn { background: #25D366; }
.fc-actions .btn:hover { background: #1ebe5a; }
.fc-actions .btn svg { width: 18px; height: 18px; }
.fc-nota { font-size: .74rem; color: var(--texto-suave); text-transform: none; letter-spacing: normal; font-weight: 400; text-align: center; }
@media (max-width: 600px) {
  .form-colecta { grid-template-columns: 1fr; padding: 1.4rem; }
}

/* ============================================================
   LOGROS / PALMARÉS
   ============================================================ */
.logros {
  padding: 5rem 0 5.5rem;
  background:
    radial-gradient(900px 400px at 50% -10%, rgba(183,138,62,.16), transparent 70%),
    linear-gradient(180deg, var(--oscuro) 0%, var(--oscuro-2) 100%);
  border-top: 1px solid var(--borde-osc); border-bottom: 1px solid var(--borde-osc);
}
.logros .section-title { color: #fff; }
.logros .divider::before, .logros .divider::after { background: linear-gradient(to var(--dir, right), var(--dorado-claro), rgba(202,162,88,.15)); }
.logros-intro { max-width: 560px; margin: 1.1rem auto 0; color: #c9bba9; }
.logros-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 940px; margin: 3rem auto 0; }
.logro {
  position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(202,162,88,.35); box-shadow: 0 18px 44px rgba(0,0,0,.45);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.logro:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(0,0,0,.55); border-color: var(--dorado-claro); }
.logro > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.logro:hover > img { transform: scale(1.05); }
.logro::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,14,8,.92) 8%, rgba(20,14,8,.55) 38%, rgba(20,14,8,.05) 65%);
}
.logro-badge {
  position: absolute; top: 16px; left: 16px; z-index: 2; display: inline-flex; align-items: center; gap: .45rem;
  background: var(--dorado); color: #fff; font-family: var(--sans); font-weight: 700;
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .42rem .85rem; border-radius: 4px; box-shadow: 0 6px 16px rgba(0,0,0,.4);
}
.logro-badge iconify-icon { font-size: 16px; }
.logro-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.6rem 1.7rem; }
.logro-info h3 { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; color: #fff; line-height: 1.05; }
.logro-prueba { font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--dorado-claro); margin: .3rem 0 .55rem; }
.logro-peso { font-family: var(--sans); font-weight: 800; font-size: 3rem; line-height: .9; color: #fff; letter-spacing: -.01em; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.logro-peso span { font-size: 1.05rem; font-weight: 700; color: var(--dorado-claro); margin-left: .35rem; letter-spacing: .06em; }
@media (max-width: 600px) {
  .logros-grid { grid-template-columns: 1fr; gap: 1.4rem; max-width: 420px; }
  .logro-info h3 { font-size: 1.6rem; }
  .logro-peso { font-size: 2.6rem; }
}

/* ============================================================
   VISOR DE IMÁGENES (lightbox genérico — logros y ficha)
   ============================================================ */
.img-lightbox {
  position: fixed; inset: 0; z-index: 2000; background: rgba(20,14,8,.92);
  display: flex; align-items: center; justify-content: center; padding: 4vh 4vw;
  opacity: 0; transition: opacity .25s ease; cursor: zoom-out;
}
.img-lightbox.open { opacity: 1; }
.img-lightbox img { max-width: 92vw; max-height: 90vh; width: auto; height: auto; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.55); }
.il-close {
  position: fixed; top: 1.2rem; right: 1.6rem; width: 48px; height: 48px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; z-index: 2001; transition: background .2s;
}
.il-close:hover { background: var(--dorado); }

/* ============================================================
   BOTÓN VOLVER ARRIBA
   ============================================================ */
.to-top {
  position: fixed; right: 20px; bottom: 80px; z-index: 1499;
  width: 42px; height: 42px; border: none; border-radius: 50%;
  background: var(--oscuro); color: #fff; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(30,22,13,.32);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, background .2s ease;
}
.to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { background: var(--dorado); }
.to-top iconify-icon { font-size: 22px; }
@media (max-width: 600px) { .to-top { right: 14px; bottom: 70px; width: 40px; height: 40px; } }

/* ============================================================
   AFILIACIÓN (Asocriadores) — footer
   ============================================================ */
.footer-afiliacion { text-align: center; padding: 2rem 1rem .5rem; }
.footer-afiliacion .afil-label {
  display: block; font-family: var(--sans); font-size: .68rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--dorado-claro); margin-bottom: .8rem;
}
.footer-afiliacion img { height: 92px; width: auto; margin: 0 auto; opacity: .9; transition: opacity .25s ease; }
.footer-afiliacion img:hover { opacity: 1; }

/* ============================================================
   AFILIACIÓN ASOCRIADORES (sección Nosotros)
   ============================================================ */
.nosotros-afil { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--borde); }
.nosotros-afil .afil-label { font-family: var(--sans); font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--texto-suave); }
.nosotros-afil img { height: 76px; width: auto; }

/* Flotantes ocultos sobre el footer (no tapar las redes) */
.wa-float.hide-footer, .to-top.hide-footer { opacity: 0 !important; pointer-events: none !important; transform: translateY(16px) !important; }

/* ============================================================
   GALERÍA — pestañas por categoría + mosaico
   ============================================================ */
.galeria-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin: 0 auto 2rem; }
.gtab {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans); font-weight: 600; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--texto-suave); background: transparent; border: 1.5px solid var(--borde);
  padding: .62rem 1.4rem; border-radius: 40px; cursor: pointer; transition: all .22s ease;
}
.gtab .gtab-n {
  font-size: .62rem; line-height: 1; padding: .18em .5em; border-radius: 20px;
  background: rgba(183,138,62,.14); color: var(--dorado); transition: all .22s ease;
}
.gtab:hover { border-color: var(--dorado); color: var(--dorado); }
.gtab.activa { background: var(--dorado); border-color: var(--dorado); color: #fff; }
.gtab.activa .gtab-n { background: rgba(255,255,255,.25); color: #fff; }

/* Mosaico tipo masonry (columnas): nunca recorta, conserva la proporción */
.galeria-grid { column-count: 3; column-gap: 1rem; }
.g-item {
  position: relative; break-inside: avoid; margin: 0 0 1rem; border-radius: 12px; overflow: hidden;
  cursor: pointer; box-shadow: var(--sombra-card); background: var(--oscuro-2);
  transition: transform .35s ease, box-shadow .35s ease;
}
.g-item img { width: 100%; height: auto; display: block; transition: transform .5s ease; }
.g-item:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.g-item:hover img { transform: scale(1.04); }
.g-zoom {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: rgba(20,14,8,.55);
  opacity: 0; transition: opacity .25s ease; pointer-events: none;
}
.g-zoom iconify-icon { font-size: 17px; color: #fff; }
.g-item:hover .g-zoom { opacity: 1; }
.g-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .9rem .8rem;
  font-family: var(--sans); font-size: .72rem; font-weight: 600; color: #fff; line-height: 1.35;
  background: linear-gradient(to top, rgba(20,14,8,.9), rgba(20,14,8,0));
}
@media (max-width: 860px) { .galeria-grid { column-count: 2; } }
@media (max-width: 600px) { .gtab { font-size: .68rem; padding: .55rem 1rem; } }
@media (max-width: 460px) { .galeria-grid { column-count: 1; } }
