/* ============================================================
   PLANTEMOS — Hoja de estilos
   Paleta oficial (Manual de Marca 2022):
   café oscuro #502818 · café #8e694e · lima #c6d161
   verde musgo #657146 · arena #e9cf95 · blanco #ffffff
   Tipografías: Oswald (títulos) · Lato (texto) · Caveat (acentos)
   ============================================================ */

:root {
  --cafe-oscuro: #502818;
  --cafe: #8e694e;
  --lima: #c6d161;
  --musgo: #657146;
  --arena: #e9cf95;
  --blanco: #ffffff;

  /* Derivados (sombras y luces del verde musgo) */
  --musgo-90: #4c5535;
  --musgo-deep: #2c3320;
  --musgo-night: #1d2214;
  --crema: #faf6ea;
  --crema-2: #f3ecd8;
  --tinta: #25291c;

  --font-display: "Oswald", sans-serif;
  --font-body: "Lato", sans-serif;
  --font-hand: "Caveat", cursive;

  --container: 1240px;
  --radius: 22px;
  --nav-h: 118px; /* alto total: respiro superior + píldora */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* Nota: scroll-behavior:smooth en CSS rompe las mediciones de ScrollTrigger
   con pin; el scroll suave de anclas se maneja por JS. */
body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.7;
  color: var(--tinta);
  background: var(--crema);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading, body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
::selection { background: var(--lima); color: var(--musgo-night); }
:focus-visible { outline: 3px solid var(--lima); outline-offset: 3px; border-radius: 4px; }

/* Grano sutil en todo el sitio */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Utilidades ---------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 10vw, 8.5rem); position: relative; }
.caveat { font-family: var(--font-hand); }

/* Costuras rasgadas entre secciones (borde de papel) */
.seam { display: block; width: 100%; height: 34px; background: var(--a); position: relative; z-index: 6; }
.seam svg { display: block; width: 100%; height: 100%; }
.seam path { fill: var(--b); }

/* Papel real con presencia en todas las secciones claras */
.historia::after, .hacemos::after, .testimonios::after, .fundador::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: url("/assets/tex/papel.jpg") repeat;
  background-size: 540px;
  mix-blend-mode: multiply;
  opacity: 0.55;
  z-index: 0;
}
.historia .container, .testimonios .container, .fundador .container,
.hacemos .hacemos__head { position: relative; z-index: 1; }

/* Scrollbar de marca */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--musgo-night); }
::-webkit-scrollbar-thumb { background: var(--musgo); border-radius: 8px; border: 3px solid var(--musgo-night); }
::-webkit-scrollbar-thumb:hover { background: var(--lima); }

.label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--cafe);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}
.label::before { content: ""; width: 34px; height: 2px; background: var(--lima); }
.label--lime { color: var(--lima); }

.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 1.3rem + 3.4vw, 3.6rem);
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 1.4rem;
  max-width: 18ch;
}

/* Split text (palabras enmascaradas) */
.w { display: inline-block; overflow: hidden; vertical-align: top; }
.wi { display: inline-block; will-change: transform; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, background 0.3s, color 0.3s;
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px) scale(0.99); }
.btn--lime { background: var(--lima); color: var(--musgo-night); box-shadow: 0 10px 30px -12px rgba(198, 209, 97, 0.65); }
.btn--lime:hover { background: #d6e07d; transform: translateY(-4px) scale(1.04); box-shadow: 0 20px 46px -12px rgba(198, 209, 97, 0.95); }
.btn--moss { background: var(--musgo); color: var(--blanco); box-shadow: 0 10px 26px -14px rgba(101, 113, 70, 0.9); }
.btn--ghost { border: 1.5px solid rgba(255, 255, 255, 0.55); color: var(--blanco); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: var(--lima); border-color: var(--lima); color: var(--musgo-night); transform: translateY(-4px); box-shadow: 0 18px 42px -16px rgba(198, 209, 97, 0.7); }
.btn--ghost-dark { border: 1.5px solid rgba(37, 41, 28, 0.35); color: var(--tinta); }
.btn--ghost-dark:hover { border-color: var(--musgo); background: var(--musgo); color: #fff; }
.btn--sm { padding: 0.65rem 1.25rem; font-size: 0.82rem; }

/* ---------- Barra de progreso ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1500; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--lima); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 3000;
  background: var(--musgo-night);
  display: grid; place-items: center;
  color: var(--crema);
}
.preloader__inner { text-align: center; }
.preloader__logo {
  width: 108px; height: 108px; margin-inline: auto; display: block;
  animation: logoIn 0.9s var(--ease-out) both, logoBreath 2.4s 0.9s ease-in-out infinite;
}
@keyframes logoIn { from { opacity: 0; transform: scale(0.6) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes logoBreath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.preloader__phrase { font-family: var(--font-hand); font-size: 1.5rem; color: var(--lima); margin-top: 1rem; }
.preloader__count { font-family: var(--font-display); font-weight: 300; font-size: 0.95rem; letter-spacing: 0.3em; margin-top: 0.4rem; color: rgba(250, 246, 234, 0.6); }

/* ---------- Navegación (píldora flotante) ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1200;
  padding-top: 30px;
  transition: padding 0.4s var(--ease-out), transform 0.45s var(--ease-out);
}
.nav__inner {
  width: min(100% - 2rem, 1380px);
  margin-inline: auto;
  height: 66px;
  padding: 0 0.8rem 0 1.6rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: rgba(18, 22, 11, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.4s, box-shadow 0.4s, border-color 0.4s;
}
.nav.is-scrolled { padding-top: 18px; }
.nav.is-scrolled .nav__inner {
  background: rgba(11, 13, 6, 0.88);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.75);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo img { width: 150px; height: auto; }
.nav__links { display: flex; gap: 1.9rem; }
.nav__links a {
  font-family: var(--font-display);
  font-size: 0.85rem; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  position: relative; padding-block: 0.3rem;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--lima);
  transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform 0.35s var(--ease-out);
}
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav__actions { display: flex; align-items: center; gap: 0.9rem; }
.nav__burger { display: none; width: 44px; height: 44px; position: relative; z-index: 1400; }
.nav__burger span {
  position: absolute; left: 10px; right: 10px; height: 2px;
  background: #fff; transition: transform 0.4s var(--ease-out), top 0.4s, opacity 0.3s;
}
.nav__burger span:nth-child(1) { top: 18px; }
.nav__burger span:nth-child(2) { top: 26px; }
body.menu-open .nav__burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* ---------- Menú móvil ---------- */
.menu {
  position: fixed; inset: 0; z-index: 1300;
  background: var(--musgo-night);
  display: flex; flex-direction: column; justify-content: center; gap: 2.5rem;
  padding: 6rem 2rem 3rem;
  clip-path: circle(0% at calc(100% - 44px) 38px);
  visibility: hidden;
  transition: clip-path 0.7s var(--ease-out), visibility 0s 0.7s;
}
body.menu-open .menu { clip-path: circle(150% at calc(100% - 44px) 38px); visibility: visible; transition: clip-path 0.7s var(--ease-out); }
.menu__links { display: flex; flex-direction: column; gap: 0.4rem; }
.menu__links a {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.9rem, 8vw, 2.6rem);
  text-transform: uppercase; color: var(--crema);
  padding-block: 0.25rem;
  transition: color 0.3s, padding-left 0.3s;
}
.menu__links a:hover { color: var(--lima); padding-left: 0.6rem; }
.menu__foot { display: grid; gap: 1rem; justify-items: start; }
.menu__foot p { color: rgba(250, 246, 234, 0.55); font-size: 0.9rem; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  color: var(--blanco);
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(820px 560px at 74% 34%, rgba(198, 209, 97, 0.13), transparent 62%),
    radial-gradient(600px 420px at 76% 78%, rgba(233, 207, 149, 0.06), transparent 65%),
    radial-gradient(520px 380px at 14% 22%, rgba(101, 113, 70, 0.18), transparent 70%),
    linear-gradient(170deg, #14160d 0%, #0d0f08 45%, #070804 100%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(125% 95% at 50% 45%, transparent 50%, rgba(0, 0, 0, 0.6) 100%);
}
.hero__content {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  position: relative; z-index: 2;
  max-width: var(--container);
  padding-block: 2rem;
  /* deja pasar el mouse al árbol 3D, salvo en los CTAs */
  pointer-events: none;
}
.hero__content a, .hero__content button { pointer-events: auto; }
.hero__eyebrow { font-size: clamp(1.35rem, 1rem + 1.4vw, 1.9rem); color: var(--lima); margin-bottom: 0.8rem; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 1.2rem + 6.4vw, 6.2rem);
  line-height: 1.02;
  text-transform: uppercase;
  max-width: 12ch;
  text-wrap: balance;
}
.hero__counter { margin-top: 2rem; display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.hero__number {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem);
  color: var(--lima); line-height: 0.92;
  font-variant-numeric: tabular-nums;
}
.hero__plus { color: var(--arena); }
.hero__number-label {
  font-size: 1rem; color: rgba(255, 255, 255, 0.75);
  max-width: 24ch; line-height: 1.3;
  padding-bottom: 0.18em; /* asienta la etiqueta sobre la línea base del número */
}
.hero__cta { margin-top: 2.2rem; display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__scene {
  position: absolute; z-index: 1;
  top: 0; right: 0; bottom: 0;
  width: 56%;
  pointer-events: none;
}
.hero__scene canvas {
  width: 100%; height: 100%;
  display: block;
  pointer-events: auto;
  cursor: grab;
  touch-action: pan-y;
}
.hero__scene canvas:active { cursor: grabbing; }
.hero__hint {
  position: absolute; bottom: 9%; left: 50%; transform: translateX(-50%);
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-family: var(--font-display); font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
  display: flex; align-items: center; gap: 0.5rem;
  white-space: nowrap;
  transition: opacity 0.6s;
}
.hero__hint-icon { font-size: 1.1rem; color: var(--lima); animation: spinHint 5s linear infinite; display: inline-block; }
@keyframes spinHint { to { transform: rotate(360deg); } }
.hero__hint.is-faded { opacity: 0; }

.hero__scrollcue {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-display); font-size: 0.72rem;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.hero__scrollcue-line { width: 1.5px; height: 44px; background: rgba(255, 255, 255, 0.35); position: relative; overflow: hidden; }
.hero__scrollcue-line::after {
  content: ""; position: absolute; left: 0; top: -50%;
  width: 100%; height: 50%;
  background: var(--lima);
  animation: scrollDrop 1.8s var(--ease-out) infinite;
}
@keyframes scrollDrop { to { top: 110%; } }

/* ---------- Marquee ---------- */
.marquee { background: var(--lima); color: var(--musgo-night); overflow: hidden; padding-block: 0.9rem; position: relative; z-index: 5; }
.marquee__track {
  display: flex; align-items: center; gap: 2.2rem;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(0.95rem, 0.8rem + 0.7vw, 1.25rem);
  text-transform: uppercase; letter-spacing: 0.1em;
  white-space: nowrap;
}
.marquee__track i { font-style: normal; font-size: 0.8em; opacity: 0.65; }
.marquee__track .mstat { display: inline-flex; align-items: center; gap: 0.55rem; }
.mstat__ico { width: 1.5em; height: 1.5em; flex: 0 0 auto; }
.mstat__num { font-weight: 700; }
.mstat__lbl { font-weight: 500; letter-spacing: 0.08em; opacity: 0.8; }
.mstat--brand { gap: 0.5rem; font-weight: 700; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__track--reverse { animation: marqueeRev 30s linear infinite; }
@keyframes marqueeRev { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ---------- Historia ---------- */
.historia { background: var(--crema); overflow: hidden; }
.historia__grid {
  display: grid; gap: clamp(2.5rem, 6vw, 5rem);
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
}
.historia__media { position: relative; min-height: 480px; }
/* Fotos estilo bitácora de campo: marco blanco + cinta adhesiva + leve giro */
.historia__img-main {
  width: 82%; border-radius: 10px; overflow: hidden;
  box-shadow: 0 24px 50px -26px rgba(44, 51, 32, 0.55), 0 4px 14px -6px rgba(44, 51, 32, 0.25);
  aspect-ratio: 4 / 4.6;
  background: #fff;
  padding: 12px 12px 18px;
  transform: rotate(-1.6deg);
}
.historia__img-main img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.historia__img-small {
  position: absolute; right: 0; bottom: -6%;
  width: 46%; border-radius: 10px; overflow: hidden;
  background: #fff;
  padding: 10px 10px 16px;
  box-shadow: 0 20px 44px -22px rgba(44, 51, 32, 0.6), 0 4px 12px -6px rgba(44, 51, 32, 0.25);
  aspect-ratio: 1 / 1;
  transform: rotate(2.3deg);
}
.historia__img-small img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.historia__img-main::before, .historia__img-small::before {
  content: "";
  position: absolute; top: 3px; left: 50%;
  transform: translateX(-50%) rotate(-2.5deg);
  width: 112px; height: 26px;
  background: rgba(233, 207, 149, 0.8);
  border-left: 1px dashed rgba(80, 40, 24, 0.18);
  border-right: 1px dashed rgba(80, 40, 24, 0.18);
  box-shadow: 0 2px 5px rgba(80, 40, 24, 0.16);
  z-index: 3;
}
.historia__kicker {
  font-size: clamp(1.45rem, 1.1rem + 1.3vw, 1.95rem);
  color: var(--cafe);
  font-weight: 600;
  margin-bottom: 0.7rem;
  line-height: 1.2;
}
.historia__body p + p { margin-top: 1rem; }
.historia__quote {
  font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem);
  color: var(--musgo);
  line-height: 1.2;
  margin-block: 1.6rem;
  border-left: 4px solid var(--lima);
  padding-left: 1.2rem;
}
.pillars { display: grid; gap: 0.85rem; margin-top: 1.6rem; }
.pillars li {
  position: relative;
  padding: 1.05rem 1.25rem 1.1rem 1.4rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(80, 40, 24, 0.10);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s, background 0.3s, border-color 0.3s;
}
.pillars li::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--lima); transition: width 0.35s var(--ease-out), background 0.3s;
}
.pillars li:hover {
  transform: translateY(-3px);
  background: #fff;
  border-color: rgba(80, 40, 24, 0.18);
  box-shadow: 0 18px 36px -22px rgba(74, 42, 27, 0.55);
}
.pillars li:hover::before { width: 7px; background: var(--musgo); }
.pillars b {
  display: block; font-family: var(--font-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--cafe-oscuro);
  font-size: 1.02rem; margin-bottom: 0.28rem;
}
.pillars span { display: block; color: rgba(37, 41, 28, 0.75); font-size: 0.96rem; line-height: 1.5; }

/* Revelado de imágenes */
.media-reveal { position: relative; overflow: hidden; }
.media-reveal img { transform: scale(1.15); will-change: transform; transition: transform 1.5s var(--ease-out) 0.1s; }
.media-reveal::after {
  content: ""; position: absolute; inset: 0;
  background: var(--musgo);
  transform: scaleY(1); transform-origin: 50% 0%;
  will-change: transform;
  transition: transform 1.05s var(--ease-out) 0.08s;
}
.media-reveal.is-shown img { transform: scale(1); }
.media-reveal.is-shown::after { transform: scaleY(0); }

/* Anclas con margen para la nav fija */
section[id], footer[id] { scroll-margin-top: 80px; }

/* ---------- Impacto ---------- */
.impacto {
  background:
    radial-gradient(800px 500px at 85% 0%, rgba(198, 209, 97, 0.1), transparent 55%),
    linear-gradient(180deg, var(--musgo-deep), var(--musgo-night));
  color: var(--crema);
  position: relative;
  overflow: hidden;
}
/* Capa fotográfica de bosque, apenas perceptible (profundidad orgánica) */
.impacto::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: url("/assets/img/bosque.jpg") center 40% / cover no-repeat;
  opacity: 0.1;
  filter: saturate(0.55) brightness(0.75);
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}
/* Decoración: mapa topográfico real cubriendo la sección + cifra gigante */
.impacto__deco { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.impacto__topo {
  position: absolute;
  top: -12%; left: -8%;
  width: 118%; height: 124%;
  object-fit: cover;
  opacity: 0.22;
  animation: topoDrift 90s ease-in-out infinite alternate;
  will-change: transform;
  mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
}
@keyframes topoDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-3.5%, 2.5%, 0) scale(1.07); }
}
.impacto__big {
  position: absolute;
  left: -0.06em; bottom: -0.18em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(9rem, 24vw, 24rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: rgba(198, 209, 97, 0.1);
}
.impacto .container { position: relative; z-index: 1; }
.impacto .h2 { color: var(--blanco); max-width: 22ch; }
/* Retícula editorial tipo mapa: celdas separadas por línea fina lima */
.impacto__grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(198, 209, 97, 0.22);
  border: 1px solid rgba(198, 209, 97, 0.22);
}
.stat {
  background: #1d2313;
  padding: 1.9rem 1.6rem 1.7rem;
  transition: background 0.35s;
  position: relative;
}
.stat:hover { background: #28301a; }
.stat::before {
  content: "+";
  position: absolute; top: 0.5rem; right: 0.7rem;
  font-family: var(--font-display);
  color: rgba(198, 209, 97, 0.4);
  font-size: 1rem;
}
.stat__value {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.3rem, 1.7rem + 2vw, 3.3rem);
  color: var(--lima); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat h3 {
  font-family: var(--font-display); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.92rem; margin-top: 0.6rem; color: var(--arena);
}
.stat p { font-size: 0.88rem; color: rgba(250, 246, 234, 0.6); margin-top: 0.5rem; line-height: 1.5; }

/* ---------- Qué hacemos: corte transversal del bosque (estratos) ---------- */
.hacemos { background: var(--crema-2); padding-block: clamp(4.5rem, 10vw, 8rem) 0; overflow: hidden; }
.hacemos__head {
  margin-bottom: 2.5rem;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.hacemos__head .h2 { margin-bottom: 0.4rem; }
.hacemos__hint { font-size: 1.35rem; color: var(--cafe); padding-bottom: 0.6rem; display: inline-flex; align-items: center; gap: 0.5rem; }
.hint-arrow {
  display: inline-grid; place-items: center;
  width: 1.7em; height: 1.7em; flex: 0 0 auto;
  border-radius: 50%; background: var(--lima); color: var(--musgo-night);
  box-shadow: 0 8px 20px -8px rgba(198, 209, 97, 0.8);
  animation: hintBob 1.7s var(--ease-out) infinite;
}
.hint-arrow svg { width: 0.9em; height: 0.9em; }
@keyframes hintBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* Estratos a sangre completa, con borde superior rasgado */
.capas { position: relative; z-index: 1; }
.capa {
  --torn: polygon(0 18px, 4% 12px, 8% 16px, 13% 9px, 18% 15px, 24% 10px, 29% 17px, 35% 11px, 41% 16px, 47% 9px, 53% 15px, 59% 10px, 65% 16px, 71% 11px, 77% 17px, 83% 10px, 89% 15px, 94% 9px, 100% 14px, 100% 100%, 0 100%);
  position: relative;
  color: var(--crema);
  clip-path: var(--torn);
  background: var(--capa-bg, var(--musgo-deep));
}
.capa + .capa { margin-top: -19px; }
.capa::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: var(--capa-tex, none);
  background-size: var(--capa-tex-size, cover);
  background-position: center;
  opacity: var(--capa-tex-op, 0.15);
  mix-blend-mode: var(--capa-tex-blend, normal);
}
/* mundos por estrato */
.capa--aire {
  --capa-bg: linear-gradient(180deg, #3d472b, #353e25);
  --capa-tex: url("/assets/img/bosque.jpg");
  --capa-tex-op: 0.22;
}
.capa--suelo {
  --capa-bg: linear-gradient(180deg, #84684a, #75593d);
  --capa-tex: url("/assets/tex/mud_diff.jpg");
  --capa-tex-size: 620px;
  --capa-tex-op: 0.5;
  --capa-tex-blend: multiply;
}
.capa--agua {
  --capa-bg: linear-gradient(180deg, #272f1a, #1d2413);
  --capa-tex: url("/assets/img/topo.svg");
  --capa-tex-size: 1100px;
  --capa-tex-op: 0.4;
}
.capa--gente {
  --capa-bg: linear-gradient(180deg, #57321f, #4a2a1b);
  --capa-tex: url("/assets/img/voluntarios.jpg");
  --capa-tex-op: 0.16;
}

.frente__head {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.6rem);
  padding: clamp(1.7rem, 3vw, 2.3rem) max(calc((100vw - var(--container)) / 2), 1.25rem) clamp(1.5rem, 2.6vw, 2rem);
  text-align: left;
  cursor: pointer;
  position: relative;
  color: inherit;
}
.frente__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem);
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(250, 246, 234, 0.5);
  line-height: 1;
  min-width: 2.1ch;
  transition: color 0.35s, -webkit-text-stroke-color 0.35s;
}
.frente__titles { display: grid; gap: 0.15rem; }
.frente__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 1rem + 2.4vw, 2.9rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--crema);
  line-height: 1.05;
  transition: transform 0.4s var(--ease-out), color 0.35s;
}
.frente__sub { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem); color: rgba(233, 207, 149, 0.85); line-height: 1.1; }
.frente__cross {
  position: relative;
  width: 46px; height: 46px;
  border: 1.5px solid rgba(250, 246, 234, 0.4);
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.35s, border-color 0.35s, transform 0.45s var(--ease-out);
}
.frente__cross::before, .frente__cross::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  background: var(--crema);
  transition: background 0.35s;
}
.frente__cross::before { width: 16px; height: 2px; transform: translate(-50%, -50%); }
.frente__cross::after { width: 2px; height: 16px; transform: translate(-50%, -50%); }
.frente__head:hover .frente__title { transform: translateX(10px); color: var(--lima); }
.frente__head:hover .frente__cross { border-color: var(--lima); }
.frente.is-open .frente__num { -webkit-text-stroke-color: transparent; color: var(--lima); }
.frente.is-open .frente__cross { background: var(--lima); border-color: var(--lima); transform: rotate(225deg); }
.frente.is-open .frente__cross::before, .frente.is-open .frente__cross::after { background: var(--musgo-night); }

/* despliegue suave con grid-rows */
.frente__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s var(--ease-out);
  position: relative;
}
.frente.is-open .frente__body { grid-template-rows: 1fr; }
.frente__inner { overflow: hidden; }
.frente__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: 0.2rem max(calc((100vw - var(--container)) / 2), 1.25rem) clamp(2.2rem, 4vw, 3.2rem) calc(max(calc((100vw - var(--container)) / 2), 1.25rem) + 2.1ch + clamp(1.2rem, 3vw, 2.6rem));
}
.frente__text p { max-width: 52ch; color: rgba(250, 246, 234, 0.88); }
.frente__tag { font-size: 1.5rem; color: var(--lima); margin-top: 0.7rem; }
.frente__photo {
  background: #fff;
  padding: 9px 9px 13px;
  border-radius: 8px;
  box-shadow: 0 22px 46px -22px rgba(0, 0, 0, 0.55);
  transform: rotate(1.8deg);
  max-width: 380px;
  justify-self: end;
}
.frente__photo img {
  width: 100%; height: clamp(150px, 16vw, 210px);
  object-fit: cover; border-radius: 4px;
  display: block;
}

/* ---------- Especies ---------- */
.especies { background: var(--arena); padding-bottom: 2rem; position: relative; }
.especies::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("/assets/img/topo.svg") 0 0 / 920px auto repeat;
  mix-blend-mode: multiply; opacity: 0.5;
}
.especies__label, .especies .marquee { position: relative; z-index: 1; }
.especies__label { display: flex; justify-content: center; margin: 0 auto 1.2rem; }
.marquee--especies { background: transparent; color: var(--musgo); border-block: 1.5px solid rgba(101, 113, 70, 0.3); }
.marquee--especies .marquee__track { font-family: var(--font-hand); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); font-weight: 600; text-transform: none; letter-spacing: 0; }

/* ---------- Empresas ---------- */
.empresas {
  background: var(--arena);
  position: relative;
  overflow: hidden;
}
/* Material real: papel reciclado (foto, CC0) en multiplicar muy sutil */
.empresas::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: url("/assets/img/topo.svg") 0 0 / 920px auto repeat;
  mix-blend-mode: multiply;
  opacity: 0.5;
}
/* Luz suave superior y calidez en la base — nada más */
.empresas::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 540px at 50% -8%, rgba(255, 253, 244, 0.2), transparent 58%);
}
.empresas .container { position: relative; z-index: 2; }
.empresas .label { color: var(--cafe-oscuro); }
.empresas .h2 { color: var(--cafe-oscuro); max-width: 24ch; }
.empresas__lead { max-width: 62ch; color: rgba(80, 40, 24, 0.8); font-size: 1.08rem; }
/* --- El recorrido de tu jornada (sendero con estaciones) --- */
.ruta { position: relative; margin-top: 3.5rem; }
.ruta__sendero {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.ruta__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(1.5rem, 4vw, 3.5rem);
  row-gap: 4.5rem;
}
.hito {
  position: relative;
  padding-top: 72px;
  text-align: center;
  max-width: 300px;
  justify-self: center;
}
.hito::before {
  content: var(--n);
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--lima);
  border: 3px solid #fff;
  box-shadow: 0 8px 18px -6px rgba(80, 40, 24, 0.45);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--musgo-night);
  transition: transform 0.35s var(--ease-out);
}
.hito:hover::before { transform: translateX(-50%) scale(1.12) rotate(-6deg); }
.hito h3 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.12rem;
  color: var(--cafe-oscuro);
  margin-bottom: 0.35rem;
}
.hito p { font-size: 0.92rem; line-height: 1.5; color: rgba(80, 40, 24, 0.75); }
.hito--r2c1 { grid-column: 1; grid-row: 2; }
.hito--r2c2 { grid-column: 2; grid-row: 2; }
.hito--r2c3 { grid-column: 3; grid-row: 2; }
.ruta__cert {
  margin-top: clamp(2.5rem, 5vw, 3.8rem);
  display: flex; align-items: center; justify-content: center;
  gap: clamp(1.2rem, 3vw, 2rem); flex-wrap: wrap; text-align: left;
}
.ruta__cert img {
  width: clamp(120px, 15vw, 170px); height: auto;
  filter: brightness(0) invert(1) drop-shadow(0 10px 20px rgba(80, 40, 24, 0.5));
}
.ruta__cert p {
  max-width: 34ch; font-size: 1.06rem; line-height: 1.55;
  color: rgba(80, 40, 24, 0.82); margin: 0;
}
.ruta__cert b { color: var(--cafe-oscuro); font-weight: 700; }

/* --- Boletos de los dos programas --- */
.boletos {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
}
.boleto {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr auto;
  border-radius: 16px;
  overflow: visible;
  box-shadow: 0 26px 55px -32px rgba(80, 40, 24, 0.55);
}
.boleto--claro { background: #fffdf6; color: var(--tinta); }
.boleto--oscuro { background: var(--musgo-deep); color: var(--crema); }
/* muescas troqueladas del boleto */
.boleto::before, .boleto::after {
  content: "";
  position: absolute; top: 50%;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--arena);
  transform: translateY(-50%);
  box-shadow: inset 0 3px 6px rgba(80, 40, 24, 0.12);
}
.boleto::before { left: -14px; }
.boleto::after { right: -14px; }
.boleto__info { padding: 1.8rem 1.4rem 1.8rem 2rem; }
.boleto__info h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.45rem);
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--cafe-oscuro);
}
.boleto--oscuro .boleto__info h3 { color: var(--lima); }
.boleto__tag { font-size: 1.3rem; color: var(--cafe); margin: 0.2rem 0 0.6rem; }
.boleto--oscuro .boleto__tag { color: var(--arena); }
.boleto__nota { font-size: 0.9rem; line-height: 1.55; color: rgba(37, 41, 28, 0.7); }
.boleto--oscuro .boleto__nota { color: rgba(250, 246, 234, 0.72); }
.boleto__stub {
  display: grid; place-items: center;
  padding: 1.4rem;
  border-left: 2px dashed rgba(80, 40, 24, 0.3);
}
.boleto--oscuro .boleto__stub { border-left-color: rgba(250, 246, 234, 0.25); }
.boleto__stub .btn { white-space: nowrap; }
.program {
  background: var(--blanco);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: 0 30px 60px -35px rgba(80, 40, 24, 0.45);
  position: relative;
}
/* Sello oficial de certificación de Plantemos */
.program__seal {
  position: absolute; top: 14px; right: 14px;
  width: clamp(96px, 10vw, 126px); height: auto;
  transform: rotate(-12deg);
  pointer-events: none;
  opacity: 0.92;
}
.program--sello .program__head { padding-right: clamp(96px, 10vw, 124px); }
.program--alt { background: var(--musgo-deep); color: var(--crema); }
.program.program--alt h3, .program--alt .program__tag, .program--alt .program__sub { color: var(--lima); }
.program--alt .checklist li { border-color: rgba(250, 246, 234, 0.14); }
.program--alt .checklist li::before { color: var(--lima); }
.program__head { margin-bottom: 1.2rem; }
.program h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem);
  text-transform: uppercase; color: var(--cafe-oscuro);
  line-height: 1.15;
}
.program__tag { font-family: var(--font-hand); font-size: 1.25rem; color: var(--cafe); margin-top: 0.3rem; }
.program__sub {
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cafe); margin: 1.4rem 0 0.5rem;
}
.checklist li {
  padding: 0.55rem 0 0.55rem 1.9rem;
  position: relative;
  border-bottom: 1px dashed rgba(80, 40, 24, 0.16);
  font-size: 0.97rem;
}
.checklist li::before {
  content: "✓";
  position: absolute; left: 0; top: 0.5rem;
  font-weight: 900; color: var(--musgo);
}
.checklist--opt li::before { content: "+"; color: var(--cafe); }
.program .btn { margin-top: 1.6rem; }
/* Carrusel de logos de patrocinadores */
.sponsors { margin-top: 3.2rem; }
.sponsors__title {
  display: block; text-align: center; color: var(--cafe-oscuro);
  letter-spacing: 0.14em; margin-bottom: 1.5rem;
}
.marquee--logos {
  background: transparent; overflow: hidden; padding-block: 0.5rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__logos-track { gap: clamp(2.5rem, 5vw, 4.5rem); animation: marquee 34s linear infinite; }
.logo-chip { display: grid; place-items: center; height: 44px; flex: 0 0 auto; }
.logo-chip img {
  height: 100%; width: auto; max-width: 170px; object-fit: contain;
  filter: grayscale(1) opacity(0.55); transition: filter 0.35s var(--ease-out);
}
.logo-chip img:hover { filter: grayscale(0) opacity(1); }
.logo-chip.is-text::before {
  content: attr(data-name);
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; font-size: 1.15rem; color: rgba(80, 40, 24, 0.5); white-space: nowrap;
}

/* ---------- Testimonios ---------- */
.testimonios { background: var(--crema); }
.testimonios__grid { margin-top: 3rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
/* Cartas pegadas con cinta, cada una con su propio giro */
.quote {
  background: #fffdf6;
  border-radius: 8px;
  padding: 2.1rem 1.8rem 1.8rem;
  box-shadow: 0 22px 46px -28px rgba(44, 51, 32, 0.5), 0 4px 12px -8px rgba(44, 51, 32, 0.2);
  display: flex; flex-direction: column; gap: 1.2rem;
  position: relative;
  transition: transform 0.45s var(--ease-out);
}
.testimonios__grid .quote:nth-child(1) { transform: rotate(-1.4deg); }
.testimonios__grid .quote:nth-child(2) { transform: rotate(1deg) translateY(10px); }
.testimonios__grid .quote:nth-child(3) { transform: rotate(-0.6deg); }
.testimonios__grid .quote:hover { transform: rotate(0deg) translateY(-6px); }
.quote::before {
  content: "";
  position: absolute; top: -13px; left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 122px; height: 27px;
  background: rgba(233, 207, 149, 0.85);
  border-left: 1px dashed rgba(80, 40, 24, 0.2);
  border-right: 1px dashed rgba(80, 40, 24, 0.2);
  box-shadow: 0 2px 6px rgba(80, 40, 24, 0.18);
}
.quote blockquote { font-size: 1.45rem; line-height: 1.3; color: var(--musgo-90); }
.quote figcaption b { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; color: var(--cafe-oscuro); }
.quote figcaption span { font-size: 0.85rem; color: rgba(37, 41, 28, 0.6); }

/* ---------- Voluntariado ---------- */
.voluntariado {
  position: relative;
  background: #222a16;
  color: var(--crema);
  overflow: hidden;
}
/* Fondo fotográfico de jornada con velo verde profundo */
.voluntariado::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 80% 0%, rgba(198, 209, 97, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(24, 30, 14, 0.93), rgba(30, 37, 18, 0.82) 45%, rgba(22, 28, 13, 0.94)),
    url("/assets/img/voluntarios.jpg") center 35% / cover no-repeat;
  filter: saturate(0.9);
}
.voluntariado .container { position: relative; z-index: 1; }
.voluntariado .h2 { color: #fff; }
.voluntariado__grid { margin-top: 2.6rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.vol-card {
  background: rgba(250, 246, 234, 0.05);
  border: 1px solid rgba(250, 246, 234, 0.14);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.45s var(--ease-out), border-color 0.4s;
}
.vol-card:hover { transform: translateY(-7px); border-color: rgba(198, 209, 97, 0.5); }
.vol-card figure { height: 250px; overflow: hidden; }
.vol-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.vol-card:hover figure img { transform: scale(1.05); }
.vol-card__body { padding: 1.7rem; display: flex; flex-direction: column; gap: 0.9rem; align-items: flex-start; }
.vol-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; text-transform: uppercase; color: var(--lima); }
.vol-card__status {
  align-self: flex-start;
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--arena);
  border: 1px solid rgba(233, 207, 149, 0.5);
  padding: 0.28rem 0.7rem; border-radius: 999px;
  margin-top: -0.2rem;
}
.vol-card p { font-size: 0.97rem; color: rgba(250, 246, 234, 0.78); }
.vol-card .btn { border-color: rgba(250, 246, 234, 0.4); color: var(--crema); }
.vol-card .btn:hover { background: var(--lima); border-color: var(--lima); color: var(--musgo-night); }

/* ---------- Apadrina (video de fondo en loop) ---------- */
.apadrina { position: relative; color: var(--blanco); overflow: hidden; }
.apadrina__bg {
  position: absolute; inset: 0; z-index: -1;
  overflow: hidden;
  background: url("/assets/img/adopta.jpg") center 30% / cover no-repeat; /* respaldo si el video no carga */
  transform: scale(1.08);
}
.apadrina__bg video {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
}
.apadrina__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8, 10, 5, 0.93) 22%, rgba(8, 10, 5, 0.6) 58%, rgba(8, 10, 5, 0.42));
}
.apadrina .h2 { color: #fff; }
.apadrina p { color: rgba(255, 255, 255, 0.85); max-width: 600px; }
.apadrina p b { color: var(--lima); }
.apadrina__cta { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Fundador ---------- */
.fundador { background: var(--crema); position: relative; overflow: hidden; }
.fundador__watermark {
  position: absolute; right: -70px; top: 50%;
  width: clamp(280px, 30vw, 460px); height: auto;
  transform: translateY(-50%) rotate(8deg);
  opacity: 0.08;
  pointer-events: none;
}
.fundador__grid {
  display: grid; grid-template-columns: 330px 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  position: relative; z-index: 1;
}
.fundador__photo {
  border-radius: 46% 54% 52% 48% / 58% 46% 54% 42%;
  overflow: hidden;
  box-shadow: 0 30px 65px -28px rgba(44, 51, 32, 0.55);
  aspect-ratio: 3 / 3.4;
  border: 8px solid var(--blanco);
  outline: 2px solid rgba(101, 113, 70, 0.35);
  outline-offset: 6px;
  transform: rotate(-2deg);
}
.fundador__photo img { width: 100%; height: 100%; object-fit: cover; }
.fundador__body blockquote {
  font-size: clamp(1.75rem, 1.2rem + 2.3vw, 2.8rem);
  line-height: 1.22; color: var(--musgo-90);
  max-width: 28ch;
  position: relative;
}
.fundador__body blockquote::before {
  content: "“";
  display: block;
  font-size: clamp(4.5rem, 8vw, 7rem);
  line-height: 0.5;
  color: var(--lima);
  margin-bottom: 1.2rem;
}
.fundador__sign { margin-top: 1.8rem; padding-left: 1.2rem; border-left: 3px solid var(--lima); }
.fundador__firma { font-size: 2.3rem; font-weight: 700; color: var(--cafe-oscuro); line-height: 1; }
.fundador__rol {
  font-family: var(--font-display);
  font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(37, 41, 28, 0.65);
  margin-top: 0.4rem;
}

/* ---------- Footer ---------- */
.footer { background: var(--musgo-night); color: var(--crema); padding: clamp(4rem, 9vw, 7rem) 0 2rem; }
.footer__cta {
  position: relative;
  text-align: center;
  margin-bottom: 4.5rem;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  background: var(--lima);
  color: var(--musgo-night);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(198, 209, 97, 0.45);
}
.footer__cta .h2 { margin-inline: auto; color: var(--musgo-night); max-width: 18ch; }
.footer__cta-sub {
  font-family: var(--font-hand);
  font-size: clamp(1.3rem, 1rem + 1.2vw, 1.7rem);
  color: rgba(29, 34, 20, 0.78);
  margin: 0.2rem 0 1.8rem;
}
.footer__cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.footer__cta-iso {
  position: absolute;
  background: var(--musgo);
  -webkit-mask: url("/assets/img/isotipo.png") center / contain no-repeat;
          mask: url("/assets/img/isotipo.png") center / contain no-repeat;
  opacity: 0.12;
  pointer-events: none;
}
.footer__cta-iso--1 { width: 152px; height: 152px; top: -32px;  left: -30px;  transform: rotate(-18deg); }
.footer__cta-iso--2 { width: 104px; height: 104px; top: -24px;  right: 9%;    transform: rotate(22deg); }
.footer__cta-iso--3 { width: 124px; height: 124px; bottom: -28px; left: 11%;  transform: rotate(12deg); opacity: 0.1; }
.footer__cta-iso--4 { width: 192px; height: 192px; bottom: -48px; right: -36px; transform: rotate(-10deg); }
.footer__cta-iso--5 { width: 88px;  height: 88px;  top: 26%;     left: 4%;     transform: rotate(7deg);  opacity: 0.09; }
.btn--dark { background: var(--musgo-night); color: var(--crema); box-shadow: 0 14px 30px -14px rgba(13, 16, 8, 0.7); }
.btn--dark:hover { background: var(--musgo-deep); }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-top: 2.6rem;
  border-top: 1px solid rgba(250, 246, 234, 0.14);
}
.footer__brand img { width: 180px; margin-bottom: 1.1rem; }
.footer__brand p { font-size: 0.92rem; color: rgba(250, 246, 234, 0.6); max-width: 38ch; }
.footer__col h4 {
  font-family: var(--font-display); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.8rem;
  color: var(--lima); margin-bottom: 1rem;
}
.footer__col a { display: block; padding-block: 0.3rem; color: rgba(250, 246, 234, 0.78); transition: color 0.3s, padding-left 0.3s; font-size: 0.95rem; }
.footer__col a:hover { color: var(--lima); padding-left: 0.4rem; }
.footer__legal { margin-top: 3rem; text-align: center; font-size: 0.82rem; color: rgba(250, 246, 234, 0.45); }

/* ---------- WhatsApp FAB ---------- */
.wa-fab {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 1100;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 14px 30px -10px rgba(37, 211, 102, 0.6);
  transform: translateY(120px) scale(0.6);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.4s, box-shadow 0.3s;
}
.wa-fab.is-visible { transform: none; opacity: 1; }
.wa-fab:hover { box-shadow: 0 18px 38px -10px rgba(37, 211, 102, 0.8); transform: translateY(-4px); }
.wa-fab svg { width: 30px; height: 30px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .impacto__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonios__grid { grid-template-columns: 1fr 1fr; }
  .testimonios__grid .quote:last-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav__actions .btn { display: none; }

  .hero { flex-direction: column; justify-content: flex-start; padding-top: calc(var(--nav-h) + 1.5rem); min-height: 100svh; }
  .hero__content { padding-block: 1rem 0; }
  .hero__scene {
    position: relative; width: 100%; inset: auto;
    height: clamp(320px, 52vw, 460px);
    margin-top: -1rem;
  }
  .hero__hint { bottom: 4%; }
  .hero__scrollcue { display: none; }
  .hero__title { max-width: 14ch; }

  .historia__grid { grid-template-columns: 1fr; }
  .historia__media { min-height: 0; margin-top: 1rem; order: 2; margin-bottom: 2.5rem; }
  .historia__img-small { bottom: -10%; }

  /* Ruta vertical en móvil */
  .ruta__sendero { display: none; }
  .ruta { padding-left: 30px; }
  .ruta::before {
    content: "";
    position: absolute; top: 10px; bottom: 10px; left: 27px;
    border-left: 2.5px dashed rgba(142, 105, 78, 0.55);
  }
  .ruta__grid { grid-template-columns: 1fr; row-gap: 2.2rem; }
  .hito, .hito--r2c1, .hito--r2c2, .hito--r2c3 {
    grid-column: 1; grid-row: auto;
    text-align: left;
    max-width: none;
    justify-self: stretch;
    padding: 0 0 0 64px;
  }
  .hito::before { left: -30px; top: -4px; transform: none; width: 52px; height: 52px; }
  .hito:hover::before { transform: scale(1.08); }
  .ruta__cert { text-align: center; gap: 1.2rem; }
  .boletos { grid-template-columns: 1fr; }
  .boleto { grid-template-columns: 1fr; }
  .boleto__stub { border-left: 0; border-top: 2px dashed rgba(80, 40, 24, 0.3); padding-top: 1.2rem; }
  .boleto--oscuro .boleto__stub { border-top-color: rgba(250, 246, 234, 0.25); border-left: 0; }
  .voluntariado__grid { grid-template-columns: 1fr; }
  .fundador__grid { grid-template-columns: 1fr; }
  .fundador__photo { max-width: 320px; }
  .fundador__watermark { right: -90px; top: auto; bottom: -40px; transform: rotate(8deg); }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }

  .hacemos__head { align-items: center; }
  .frente__grid { grid-template-columns: 1fr; padding-left: max(calc((100vw - var(--container)) / 2), 1.25rem); }
  .frente__photo { justify-self: start; max-width: 320px; }

  .testimonios__grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .testimonios__grid .quote:last-child { grid-column: auto; }
  .testimonios__grid .quote:nth-child(2) { transform: rotate(1deg); }
}

@media (max-width: 560px) {
  .impacto__grid { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .stat { padding: 1.1rem 1rem; }
  .stat p { display: none; }
  .testimonios__grid { grid-template-columns: 1fr; }
  .testimonios__grid .quote:last-child { grid-column: auto; }
  .pillars li { padding: 0.95rem 1rem 1rem 1.15rem; }
  .hero__cta .btn { width: 100%; }
  .apadrina__cta .btn { width: 100%; }
}

/* ---------- Accesibilidad: reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee__track { animation: none; }
  .media-reveal::after { display: none; }
  .media-reveal img { transform: none; }
}
