/* ============================================================
   PLANTECH — El jardín digital v2
   Cozy garden · contornos de tinta · sombras sticker
   Robustez: todo el contenido es visible por defecto;
   las animaciones solo se activan con html.js-anim
   ============================================================ */

:root {
  --green: #57A55B;
  --green-deep: #2F8C46;
  --teal: #0D7E6E;
  --teal-deep: #0B5D4E;
  --cream: #F7F1E1;
  --cream-soft: #FCF6E8;
  --ink: #142219;
  --orange: #F2772B;
  --lime: #D6F25F;
  --lime-leaf: #8CC63F;
  --yellow: #FFD43B;
  --pink: #E983A8;
  --mint: #9BD4A3;

  --border: 3px solid var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --shadow-md: 7px 7px 0 var(--ink);
  --shadow-lg: 10px 10px 0 var(--ink);

  --font-display: "Bricolage Grotesque", sans-serif;
  --font-body: "Instrument Sans", sans-serif;
  --font-mono: "Spline Sans Mono", monospace;

  --r-sm: 14px;
  --r-md: 24px;
  --r-lg: 40px;

  --spring: cubic-bezier(.34, 1.45, .64, 1);
}

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

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
html:not(.lenis) { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--green);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

/* grano sutil */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9000;
  opacity: .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='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

img { user-select: none; -webkit-user-drag: none; }
a { color: inherit; }

.wrap { width: min(1240px, 93vw); margin: 0 auto; }
.only-desktop { display: block; }
em { font-style: normal; }

::selection { background: var(--lime); color: var(--ink); }

/* el spacer que crea ScrollTrigger al pinear servicios hereda el crema */
.pin-spacer { background: var(--cream); }

/* ============ BARRA DE PROGRESO DE SCROLL ============ */
.progressbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 5px;
  z-index: 1200;
  pointer-events: none;
}
.progressbar__fill {
  display: block;
  height: 100%;
  background: var(--lime);
  border-bottom: 2px solid var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
}

/* ============ DECORACIÓN FLOTANTE (parallax data-speed) ============ */
.float-deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: .9;
  will-change: transform;
}

/* ============ REVEALS (solo activos con JS) ============ */
html.js-anim .r {
  opacity: 0;
  transform: translateY(30px) scale(.985);
  transition: opacity .7s ease, transform .7s var(--spring);
}
html.js-anim .r.in {
  opacity: 1;
  transform: none;
}

/* ============ TIPO ============ */
.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: .55em 0 .5em;
}
.h2 em {
  color: var(--orange);
  position: relative;
  display: inline-block;
}
.h2 em::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: .02em;
  height: .14em;
  background: var(--lime);
  z-index: -1;
  border-radius: 99px;
  transform: rotate(-1.2deg);
}
.h2--cream { color: var(--cream); }
.h2--cream em { color: var(--lime); }
.h2--cream em::after { background: var(--teal); }
.h2--onGreen { color: var(--cream); }
.h2--onGreen em { color: var(--lime); }
.h2--onGreen em::after { background: var(--teal-deep); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .5em 1.1em;
  border: var(--border);
  border-radius: 99px;
  box-shadow: var(--shadow-sm);
}
.tag--ink { background: var(--ink); color: var(--lime); border-color: var(--ink); box-shadow: 4px 4px 0 rgba(20,34,25,.35); }
.tag--green { background: var(--lime); color: var(--ink); }
.tag--cream { background: var(--cream); color: var(--ink); }

/* ============ BOTONES ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: .8em 1.6em;
  border: var(--border);
  border-radius: 99px;
  box-shadow: var(--shadow-sm);
  background: var(--cream-soft);
  color: var(--ink);
  transition: transform .18s var(--spring), box-shadow .18s;
  white-space: nowrap;
}
.btn:hover { transform: translate(-2px,-2px) rotate(-1deg); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--ink); }
.btn--lime { background: var(--lime); }
.btn--ink { background: var(--ink); color: var(--lime); box-shadow: 4px 4px 0 rgba(20,34,25,.3); }
.btn--ghost { background: transparent; color: var(--cream); border-color: var(--cream); box-shadow: 4px 4px 0 rgba(20,34,25,.45); }
.btn--ghost:hover { box-shadow: 6px 6px 0 rgba(20,34,25,.45); }
.btn--ghost-ink { background: transparent; }
.btn--big { font-size: 1.15rem; padding: .95em 1.9em; }
.btn--sm { font-size: .88rem; padding: .6em 1.3em; box-shadow: 3px 3px 0 var(--ink); }

/* ============ LOADER — se esconde solo, con o sin JS ============ */
.loader {
  position: fixed; inset: 0;
  background: var(--ink);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  animation: loaderOut .65s cubic-bezier(.7,0,.3,1) 1.45s forwards;
}
@keyframes loaderOut {
  to { transform: translateY(-100%); visibility: hidden; }
}
.loader__inner { text-align: center; }
.loader__word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: .42em;
  margin-left: .42em;
  color: var(--cream);
  margin-top: .8rem;
}
.loader__stem { stroke-dasharray: 40; stroke-dashoffset: 40; animation: stem .6s .1s ease-out forwards; }
.loader__leaf { transform-origin: 40px 40px; transform: scale(0); animation: leafGrow .5s var(--spring) forwards; }
.loader__leaf--l { animation-delay: .5s; }
.loader__leaf--r { animation-delay: .68s; }
@keyframes stem { to { stroke-dashoffset: 0; } }
@keyframes leafGrow { to { transform: scale(1); } }

/* ============ CURSOR ============ */
.cursor {
  position: fixed;
  width: 18px; height: 18px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: rgba(214,242,95,.85);
  pointer-events: none;
  z-index: 9500;
  transform: translate(-50%,-50%);
  transition: width .2s, height .2s, background .2s;
  left: -40px; top: -40px;
}
.cursor.is-hover { width: 44px; height: 44px; background: rgba(214,242,95,.35); }
@media (hover: none) { .cursor { display: none; } }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 18px; left: 0; right: 0;
  z-index: 1000;
  display: flex; justify-content: center;
  pointer-events: none;
}
.nav__pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: 1.6rem;
  background: var(--ink);
  border-radius: 99px;
  padding: .55rem .65rem .55rem 1.2rem;
  box-shadow: 0 6px 0 rgba(20,34,25,.35);
  transition: transform .4s var(--spring);
}
.nav.is-hidden .nav__pill { transform: translateY(-140%); }
.nav__logo {
  display: inline-flex; align-items: center; gap: .55rem;
  text-decoration: none;
}
.nav__logo-mark {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  background: var(--teal-deep);
  border-radius: 11px;
}
.nav__logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.18rem;
  color: var(--cream);
  letter-spacing: -.01em;
}
.nav__links { display: flex; gap: .2rem; }
.nav__links a {
  font-size: .94rem;
  font-weight: 500;
  color: var(--cream);
  text-decoration: none;
  padding: .45em .9em;
  border-radius: 99px;
  transition: background .2s, color .2s;
}
.nav__links a:hover { background: rgba(247,241,225,.14); }
.nav__cta { font-size: .92rem; padding: .6em 1.3em; box-shadow: none; border-color: var(--lime); }
.nav__cta:hover { transform: none; box-shadow: none; background: var(--cream-soft); }
.nav__burger { display: none; }

.nav-mobile {
  position: fixed; inset: 0;
  background: var(--ink);
  z-index: 990;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.6rem;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.nav-mobile.is-open { opacity: 1; pointer-events: auto; }
.nav-mobile a {
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 700;
  color: var(--cream); text-decoration: none;
}
.nav-mobile .btn { color: var(--ink); }

/* ============ HERO ============ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  /* el mínimo debe superar el borde inferior del nav fijo (~4.8rem)
     para que el título nunca quede tapado */
  padding-top: clamp(6rem, 9.5vh, 7.2rem);
  overflow: hidden;
  background: #539D63;
}

/* --- entrada del hero: CSS puro, siempre termina visible --- */
@keyframes popUp {
  from { transform: translateY(125%); }
  to { transform: translateY(0); }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes walkIn {
  from { opacity: 0; transform: translateX(-90px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes dropIn {
  0% { opacity: 0; transform: translateY(90px); }
  60% { opacity: 1; transform: translateY(-14px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes sproutIn {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 1; transform: scale(1); }
}

.hero__line { display: block; overflow: hidden; padding-block: 0.16em; margin-block: -0.16em; }
.hero__line > span {
  display: inline-block;
  animation: popUp .85s var(--spring) both;
}
.hero__line:nth-child(1) > span { animation-delay: 1.55s; }
.hero__line:nth-child(2) > span { animation-delay: 1.65s; }
.hero__line:nth-child(3) > span { animation-delay: 1.75s; }
.hero__sub { animation: riseIn .7s ease 1.85s both; }
.hero__ctas { animation: riseIn .7s ease 1.95s both; }
.hero__hint { animation: riseIn .7s ease 2.5s both; }
.char--benja { animation: walkIn .8s ease 2.0s both; }
.char--mascota { animation: dropIn .85s ease 2.15s both; }
.hero__bush { animation: sproutIn .6s var(--spring) both; transform-origin: bottom center; }
.hero__bush--1 { animation-delay: 2.1s; }
.hero__bush--2 { animation-delay: 2.2s; }
.hero__cloud, .hero__sun { animation: riseIn .9s ease 2.0s both; }

.hero__sky { position: absolute; inset: 0; pointer-events: none; }
.hero__sky > * { position: absolute; }
.hero__cloud--1 { top: 14%; left: 7%; }
.hero__cloud--2 { top: 9%; right: 10%; }
.hero__cloud--3 { top: 34%; left: 16%; opacity: .8; }
.hero__cloud--1, .hero__cloud--2, .hero__cloud--3 { will-change: transform; }
.hero__sun { top: 12%; right: 22%; }
.hero__sun-rays { transform-origin: 50px 50px; animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.spark {
  color: var(--lime);
  font-size: 1.1rem;
  animation: twinkle 2.6s ease-in-out infinite;
  text-shadow: 0 0 6px rgba(214,242,95,.6);
}
.spark--1 { top: 24%; left: 24%; }
.spark--2 { top: 18%; right: 36%; animation-delay: .9s; }
.spark--3 { top: 40%; right: 12%; animation-delay: 1.7s; }
@keyframes twinkle { 0%,100% { opacity: .25; transform: scale(.7) rotate(0deg);} 50% { opacity: 1; transform: scale(1.15) rotate(45deg);} }

.leaf { opacity: 0; }
.leaf--1 { left: 12%; animation: fall 11s linear 3s infinite; }
.leaf--2 { left: 38%; animation: fall 14s linear 6s infinite; }
.leaf--3 { left: 66%; animation: fall 12s linear 4.5s infinite; }
.leaf--4 { left: 88%; animation: fall 16s linear 8s infinite; }
@keyframes fall {
  0% { transform: translateY(-8vh) rotate(0deg); opacity: 0; }
  8% { opacity: .85; }
  85% { opacity: .85; }
  100% { transform: translateY(96vh) rotate(340deg); opacity: 0; }
}

.hero__content {
  position: relative; z-index: 3;
  text-align: center;
  flex-shrink: 0;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  /* min(vw, vh) ⇒ el título encoge en pantallas angostas Y en pantallas bajas,
     dejando siempre espacio para que el video quepa completo */
  font-size: clamp(2.4rem, min(7vw, 8.2vh), 5.4rem);
  line-height: .98;
  letter-spacing: -0.025em;
  color: var(--cream);
  text-shadow: 3px 4px 0 rgba(20,34,25,.9);
}
.hero__line--accent > span { color: var(--lime); }
.hero__title em {
  font-style: normal;
  color: var(--yellow);
}
.hero__sub {
  margin-top: 1rem;
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  font-weight: 500;
  color: var(--cream);
}
.hero__ctas {
  margin-top: 1.3rem;
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}

.hero__stage {
  position: relative;
  z-index: 2;
  width: min(1560px, 98vw);
  flex: 1 1 auto;
  min-height: 0;          /* puede encogerse: el video nunca se corta */
  max-height: min(60vh, 620px);
  gap: 0;
  pointer-events: none;
  will-change: transform;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
/* video del hero — fundido con el fondo (bordes desvanecidos, sin marco) */
.hero__video {
  position: relative;
  z-index: 3;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  display: block;
  /* el fundido inferior es corto (96%→100%): abajo el video cae sobre
     .hero__floor, un piso idéntico al suyo, así el corte no se nota */
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0, #000 11%, #000 96%, transparent 100%),
    linear-gradient(to right, transparent 0, #000 3.5%, #000 96.5%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent 0, #000 11%, #000 96%, transparent 100%),
    linear-gradient(to right, transparent 0, #000 3.5%, #000 96.5%, transparent 100%);
  mask-composite: intersect;
}

/* --- escenografía SVG que extiende el video hacia los laterales ---
   continúa las máquinas y el piso del video con su MISMA paleta y
   perspectiva 3/4; hermanos flex del video, DELANTE de él (z-index 5)
   para tapar su borde difuminado con relleno sólido. */
.hero__prop {
  position: relative;
  z-index: 5;
  align-self: flex-end;
  flex: 0 0 auto;
  height: clamp(180px, 32vh, 306px);
  width: auto;
  animation: riseIn 1s ease 2.15s both;
}
.hero__prop--left  { margin-right: clamp(-7rem, -5.2vw, -3rem); }
.hero__prop--right { margin-left:  clamp(-7rem, -5.2vw, -3rem); }
.hero__prop-flower {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: sway 4s ease-in-out 3s infinite alternate;
}
@media (max-width: 1080px) {
  .hero__prop { display: none; }   /* en pantallas chicas el video ya ocupa el ancho */
}
.char {
  position: absolute;
  bottom: 0;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.char--benja { left: 13%; width: 220px; }
.char--mascota { right: 13%; width: 250px; height: 82%; }
.char__pose {
  position: absolute;
  bottom: 0;
  height: 100%;
  width: auto;
  opacity: 0;
  visibility: hidden;
  filter: drop-shadow(0 4px 0 rgba(20,34,25,.18));
  animation: bob 3.2s ease-in-out infinite;
}
.char--mascota .char__pose { animation-duration: 2.7s; animation-delay: .4s; }
.char__pose.is-active { opacity: 1; visibility: visible; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
/* globo de saludo de Benja */
.char__bubble {
  position: absolute;
  top: -16px;
  left: 72%;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  color: var(--ink);
  background: var(--cream-soft);
  border: var(--border);
  border-radius: 16px 16px 16px 4px;
  box-shadow: var(--shadow-sm);
  padding: .45em .95em;
  opacity: 0;
  transform: scale(.3) translateY(14px);
  transform-origin: bottom left;
  transition: opacity .28s ease, transform .34s var(--spring);
  pointer-events: none;
  z-index: 5;
}
.char__bubble.is-on {
  opacity: 1;
  transform: scale(1) translateY(0);
}
/* globo espejado para Brote (sale hacia el otro lado) */
.char--mascota .char__bubble {
  left: auto;
  right: 72%;
  border-radius: 16px 16px 4px 16px;
  transform-origin: bottom right;
}

/* ============================================================
   VIDA DE LOS PERSONAJES (SVG inline: partes animadas)
   Brote: #Hoja3 #Ojos2 #Cuerpo3 · Benja: ids bj-*
   ============================================================ */

/* --- Brote --- */
/* la hoja de la cabeza se mece siempre */
#Hoja3 {
  transform-box: fill-box;
  transform-origin: 50% 92%;
  animation: leafSway 3.6s ease-in-out infinite alternate;
}
@keyframes leafSway {
  from { transform: rotate(-5deg); }
  to { transform: rotate(7deg); }
}
/* respiración: el cuerpo se infla apenas */
#Cuerpo3 {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: breathe 3.4s ease-in-out infinite alternate;
}

/* --- Benja --- */
/* cabeza: inclinación lenta, como escuchando */
[id="bj-Cabeza2"] {
  transform-box: fill-box;
  transform-origin: 50% 88%;
  animation: headTilt 6.8s ease-in-out infinite alternate;
}
@keyframes headTilt {
  from { transform: rotate(-1.6deg); }
  to { transform: rotate(1.8deg); }
}
/* torso: respiración */
[id="bj-Polerón2"] {
  transform-box: fill-box;
  transform-origin: 50% 96%;
  animation: breathe 4.1s ease-in-out .6s infinite alternate;
}
@keyframes breathe {
  from { transform: scaleY(1) scaleX(1); }
  to { transform: scaleY(1.014) scaleX(1.006); }
}
/* el bolso se columpia */
[id="bj-Bolso2"] {
  transform-box: fill-box;
  transform-origin: 62% 4%;
  animation: bagSway 3.8s ease-in-out infinite alternate;
}
@keyframes bagSway {
  from { transform: rotate(-1.4deg); }
  to { transform: rotate(1.8deg); }
}
/* manos: péndulo sutil al caminar/respirar */
[id="bj-Mano-Der1"], [id="bj-Mano-Izq1"] {
  transform-box: fill-box;
  transform-origin: 50% 8%;
  animation: handIdle 3.2s ease-in-out infinite alternate;
}
[id="bj-Mano-Izq1"] { animation-delay: 1.1s; }
@keyframes handIdle {
  from { transform: rotate(-2.4deg); }
  to { transform: rotate(2.8deg); }
}

/* --- parpadeo (por ojo, así el grupo queda libre para la mirada) --- */
#Ojos2 > *, [id="bj-Ojos"] > * {
  transform-box: fill-box;
  transform-origin: center;
  animation: blink 4.8s infinite;
}
[id="bj-Ojos"] > * { animation-duration: 5.7s; animation-delay: .9s; }
@keyframes blink {
  0%, 93%, 100% { transform: scaleY(1); }
  95.5% { transform: scaleY(0.08); }
}

/* --- la mirada sigue al cursor (variables que setea JS) ---
   bj-Ojos vive dentro de bj-Lentes1 (no de la cara): se mueve aparte */
#Ojos2, [id="bj-Ojos"], [id="bj-Cara1"] {
  transform-box: fill-box;
  transform: translate(var(--lookx, 0px), var(--looky, 0px));
  transition: transform .25s ease-out;
}
[id="bj-Cara1"] {
  transform: translate(calc(var(--lookx, 0px) * .5), calc(var(--looky, 0px) * .5));
}

/* --- saludo: brincos + mano/hoja agitándose --- */
.char.is-waving { animation: charHop .55s var(--spring) 3; }
@keyframes charHop {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  35% { translate: 0 -18px; rotate: -3deg; }
  70% { translate: 0 -4px; rotate: 2deg; }
}
.char.is-waving #Hoja3 { animation: leafWave .4s ease-in-out 4; }
@keyframes leafWave {
  0%, 100% { transform: rotate(-16deg); }
  50% { transform: rotate(18deg); }
}
/* Benja saluda con la mano derecha de verdad */
.char.is-waving [id="bj-Mano-Der1"] {
  animation: handWave .42s ease-in-out 4;
}
@keyframes handWave {
  0%, 100% { transform: rotate(6deg); }
  50% { transform: rotate(-42deg); }
}
.char.is-waving [id="bj-Cabeza2"] {
  animation: headHello .85s ease-in-out 2;
}
@keyframes headHello {
  0%, 100% { transform: rotate(0deg); }
  45% { transform: rotate(-4.5deg); }
}

.char__shadow {
  position: absolute;
  bottom: -12px; left: 50%;
  width: 78%; height: 22px;
  transform: translateX(-50%);
  background: rgba(20,34,25,.28);
  border-radius: 50%;
  animation: shadowPulse 3.2s ease-in-out infinite;
}
@keyframes shadowPulse {
  0%,100% { transform: translateX(-50%) scaleX(1); opacity: 1; }
  50% { transform: translateX(-50%) scaleX(.88); opacity: .75; }
}

.hero__bush { position: absolute; bottom: -6px; z-index: 4; }
.hero__bush--1 { left: 1%; }
.hero__bush--2 { right: 0%; }
@keyframes sway { from { rotate: -4deg; } to { rotate: 5deg; } }

/* piso terracota de ancho completo: prolonga el piso del video hasta los
   bordes de la página; --hero-floor-h la sincroniza main.js con el alto
   real del piso dentro del video (13.9% del alto renderizado) */
.hero__floor {
  position: absolute;
  left: 0; right: 0;
  bottom: 38px;               /* justo encima de .hero__ground */
  height: var(--hero-floor-h, 8.3vh);
  z-index: 1;
  background:
    repeating-linear-gradient(125deg, transparent 0 218px, rgba(53,36,29,.5) 218px 221px),
    #9F6D5E;
  border-top: 3px solid #35241D;
  animation: riseIn 1s ease 2.05s both;
}

.hero__ground {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 38px;
  flex-shrink: 0;
  background: var(--green-deep);
  border-top: var(--border);
}
.hero__hint {
  position: absolute;
  bottom: 54px; left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .08em;
  color: var(--cream);
  background: rgba(20,34,25,.55);
  padding: .5em 1.1em;
  border-radius: 99px;
  display: inline-flex; align-items: center; gap: .6em;
  white-space: nowrap;
}
.hero__hint-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity:.4; transform: scale(.7);} }

/* ============ MARQUEE ============ */
.marquee {
  background: var(--ink);
  border-top: var(--border);
  overflow: hidden;
  padding: 1.1rem 0 3.2rem;
}
.marquee__skew { will-change: transform; }
.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--cream);
  white-space: nowrap;
}
.marquee__track i { color: var(--lime); font-style: normal; font-size: 1.1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ SERVICIOS ============ */
.services {
  background: var(--cream);
  position: relative;
  z-index: 2;
  margin-top: -2.2rem;
  border-top: var(--border);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background-image: radial-gradient(rgba(20,34,25,.05) 1.4px, transparent 1.4px);
  background-size: 26px 26px;
}
.services__pin {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 4rem 0;
}
.services__head {
  width: min(1240px, 93vw);
  margin: 0 auto 2.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 2rem;
}
.services__head .h2 { margin-bottom: 0; }
.services__scroll-hint {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .1em;
  color: var(--ink);
  opacity: .55;
}
.services__track {
  display: flex;
  gap: 1.6rem;
  padding-left: max(calc((100vw - 1240px) / 2), 4vw);
  padding-right: 6vw;
  width: max-content;
  will-change: transform;
}
/* fallback si el pin falla: carrusel nativo */
.services.no-pin .services__track {
  width: auto;
  overflow-x: auto;
  padding-bottom: 1.4rem;
  scroll-snap-type: x mandatory;
}
.services.no-pin .scard { scroll-snap-align: center; }

.scard {
  width: clamp(300px, 26vw, 380px);
  flex-shrink: 0;
  border: var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 1.8rem 1.7rem 1.9rem;
  display: flex;
  flex-direction: column;
  background: var(--cream-soft);
  transition: transform .25s var(--spring);
}
.scard:hover { transform: translateY(-8px) rotate(-.6deg); }
.scard:nth-child(odd) { rotate: -.5deg; }
.scard:nth-child(even) { rotate: .5deg; margin-top: 1.4rem; }
.scard--cream { background: var(--mint); }
.scard--orange { background: #FFB377; }
.scard--teal { background: #7FD0C3; }
.scard--lime { background: var(--lime); }
.scard--pink { background: #F4B7CC; }
.scard__top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 1.6rem;
}
.scard__num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: .85rem;
  border: 2.5px solid var(--ink);
  border-radius: 99px;
  padding: .35em .9em;
  background: var(--cream-soft);
}
.scard__icon {
  display: grid; place-items: center;
  width: 76px; height: 76px;
  background: var(--cream-soft);
  border: var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--spring);
}
.scard:hover .scard__icon { transform: rotate(-6deg) scale(1.06); }
.scard h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
  line-height: 1.1;
  margin-bottom: .7rem;
}
.scard p { font-size: .98rem; margin-bottom: 1.1rem; }
.scard__list {
  margin-top: auto;
  list-style: none;
  display: flex; flex-direction: column; gap: .45rem;
}
.scard__list li {
  font-size: .9rem;
  font-weight: 600;
  display: flex; align-items: center; gap: .55em;
}
.scard__list li::before {
  content: "";
  width: 9px; height: 9px;
  background: var(--ink);
  border-radius: 2px;
  transform: rotate(45deg);
  flex-shrink: 0;
}
.scard--cta {
  background: var(--ink);
  color: var(--cream);
  align-items: flex-start;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  box-shadow: 7px 7px 0 rgba(20,34,25,.3);
}
.scard--cta h3 { color: var(--lime); font-size: 1.8rem; }
.scard--cta p { color: var(--cream); }
.scard--cta .btn { box-shadow: 4px 4px 0 rgba(214,242,95,.4); border-color: var(--lime); }
.scard__mascota {
  position: absolute;
  top: -12px; right: -34px;
  height: 200px;
  transform: rotate(8deg);
  opacity: .92;
}

/* ============ PROCESO ============ */
.process {
  background: var(--teal-deep);
  padding: 6.5rem 0 7.5rem;
  position: relative;
  border-block: var(--border);
  overflow: hidden;
}
.process__peek {
  position: absolute;
  right: -54px; bottom: -30px;
  height: 230px;
  transform: rotate(-9deg);
  opacity: .95;
  pointer-events: none;
}
.process__steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3.4rem;
  position: relative;
}
.process__steps::before {
  content: "";
  position: absolute;
  top: 44px; left: 6%; right: 6%;
  border-top: 3px dashed rgba(247,241,225,.4);
  z-index: 0;
}
/* línea sólida que se "dibuja" según --draw (lo setea JS con el scroll) */
.process__steps::after {
  content: "";
  position: absolute;
  top: 42.5px; left: 6%; right: 6%;
  height: 4px;
  border-radius: 99px;
  background: var(--lime);
  transform-origin: left center;
  transform: scaleX(var(--draw, 0));
  z-index: 0;
}
.pstep {
  position: relative;
  z-index: 1;
  background: var(--cream);
  border: var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 1.5rem 1.4rem 1.7rem;
  transition: transform .25s var(--spring);
}
.pstep:hover { transform: translateY(-6px) rotate(-.6deg); }
.pstep:nth-child(even) { margin-top: 1.6rem; }
.pstep__icon {
  width: 88px; height: 88px;
  display: grid; place-items: center;
  background: var(--lime);
  border: var(--border);
  border-radius: 50%;
  margin: -3.4rem auto 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--spring);
}
.pstep:hover .pstep__icon { transform: rotate(8deg) scale(1.07); }
.pstep__num {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
}
.pstep h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  margin: .15em 0 .4em;
}
.pstep p { font-size: .93rem; }

/* ============ EL HUERTO — panel asimétrico ============ */
.huerto {
  background: var(--green);
  padding: 6.5rem 0;
  position: relative;
  /* misma sangría que .wrap (min(1240px,93vw)) → el estante alinea con el
     título y los paneles aunque sea full-bleed */
  --gutter: max(3.5vw, calc((100vw - 1240px) / 2));
}
/* El Huerto = ESTANTE DE VIVERO: encabezado + hilera horizontal de macetas
   que se desliza, y debajo dos paneles (Casos + Bitácora) */
.huerto__head {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.5rem;
}
.huerto__head-text { flex: 1 1 auto; min-width: 0; }
.huerto__head-text h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem); letter-spacing: -.01em; line-height: 1.04;
}
.huerto__head .panel__intro { margin: .3rem 0 0; }

.shelf__nav { display: flex; gap: .55rem; flex-shrink: 0; }
.shelf__arrow {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--cream); color: var(--ink);
  border: var(--border); border-radius: 50%;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  transition: transform .18s var(--spring), box-shadow .18s, background .18s;
}
.shelf__arrow:hover { background: var(--lime); transform: translate(-1px,-2px); box-shadow: 4px 5px 0 var(--ink); }
.shelf__arrow:active { transform: translate(1px,1px); box-shadow: 1px 1px 0 var(--ink); }
.shelf__arrow:disabled { opacity: .35; cursor: default; transform: none; box-shadow: 2px 2px 0 var(--ink); }

/* el estante ocupa todo el ancho (full-bleed) */
.shelf { position: relative; margin-bottom: 3.4rem; }
.shelf__scroll {
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-padding-left: var(--gutter);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}
.shelf__scroll::-webkit-scrollbar { display: none; }
.shelf__scroll.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.shelf__scroll:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; border-radius: 8px; }
.shelf__row {
  position: relative;
  display: flex; align-items: flex-end;
  gap: 1.2rem; width: max-content;
  padding: .6rem var(--gutter) 30px;
}
/* la tabla de madera: corre bajo todas las macetas */
.shelf__row::after {
  content: "";
  position: absolute; z-index: 0;
  left: var(--gutter); right: var(--gutter);
  bottom: 6px; height: 24px;
  background: linear-gradient(#E9D2A0, #D6B375);
  border: var(--border); border-radius: 6px;
  box-shadow: 0 6px 0 rgba(20,34,25,.16);
}
/* bordes difuminados que insinúan que hay más macetas */
.shelf__fade {
  position: absolute; top: 0; bottom: 0; width: 7vw; max-width: 96px;
  pointer-events: none; z-index: 3;
}
.shelf__fade--l { left: 0; background: linear-gradient(to right, var(--green), transparent); }
.shelf__fade--r { right: 0; background: linear-gradient(to left, var(--green), transparent); }

/* Casos + Bitácora = dos paneles limpios */
.huerto__panels {
  display: grid; grid-template-columns: 1.08fr 0.92fr;
  gap: 1.6rem; align-items: start;
}
.panel__col {
  position: relative;
  background: var(--cream);
  border: var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 1.9rem 1.8rem 2.1rem;
}
.panel__col--cases { background: var(--cream-soft); }

.panel__head {
  display: flex; align-items: center; gap: .8rem;
  margin-bottom: 1rem;
}
.panel__head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  letter-spacing: -.01em;
}
.panel__head-icon {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border: var(--border);
  border-radius: 16px;
  box-shadow: 3px 3px 0 var(--ink);
  flex-shrink: 0;
}
.panel__head-icon--green { background: var(--green-deep); }
.panel__head-icon--orange { background: var(--orange); }
.panel__head-icon--teal { background: var(--teal); }

.panel__intro { font-size: .95rem; margin-bottom: 1.4rem; opacity: .85; }
.panel__hr {
  border: none;
  border-top: 2px dashed rgba(20,34,25,.22);
  margin: 1.4rem 0;
}

/* macetas del estante */
.client {
  flex: 0 0 auto;
  width: clamp(196px, 44vw, 234px);
  scroll-snap-align: start;
  position: relative; z-index: 1;   /* por encima de la tabla del estante */
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  background: var(--cream-soft);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-sm);
  padding: .7rem .7rem .85rem;
  box-shadow: 4px 5px 0 rgba(20,34,25,.12);
  transition: transform .22s var(--spring), box-shadow .22s;
}
.client:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 6px 9px 0 var(--ink); }
/* no arrastrar la imagen al hacer drag del estante */
.shelf__scroll.is-dragging .client { pointer-events: none; }
.client__art {
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  display: flex; justify-content: center;
  padding: .7rem .9rem .3rem;
  margin-bottom: .6rem;
}
.client__art svg { max-width: 86px; }
.client__art--green { background: var(--mint); }
.client__art--pink { background: #F8CADA; }
.client__art--yellow { background: #FFE08A; }
.client__leaves { transform-origin: 60px 80px; transition: transform .3s ease; }
.client:hover .client__leaves { transform: rotate(4deg) scale(1.05); }
.client h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: .35rem;
}
.chip {
  display: inline-flex; align-items: center; gap: .35em;
  font-family: var(--font-mono);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .04em;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: .3em .6em;
}
.chip--teal { background: #BFE8DE; }
.chip--orange { background: #FFD3AE; }

/* quita los divisores punteados dentro de los dos paneles */
.panel__col--cases .panel__hr,
.panel__col--feed  .panel__hr { display: none; }

/* ---- Casos de cultivo = fichas de cultivo numeradas (etapas) ---- */
.panel__col--cases { counter-reset: caso; }
.case {
  position: relative;
  background: var(--cream);
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  padding: 1.1rem 1.2rem 1.25rem 2.5rem;
  margin: 0 0 1.15rem .55rem;
  box-shadow: 4px 5px 0 rgba(20,34,25,.14);
  transition: transform .2s var(--spring), box-shadow .2s;
}
.case:last-of-type { margin-bottom: 0; }
.case:hover { transform: translateY(-3px); box-shadow: 6px 8px 0 var(--ink); }
.case::after {                              /* riel de color (como el lomo de una ficha) */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px;
  border-right: 2.5px solid var(--ink);
  border-radius: 15px 0 0 15px;
  background: var(--green-deep);
}
.case:nth-of-type(2)::after { background: var(--orange); }
.case:nth-of-type(3)::after { background: var(--teal); }
.case::before {                             /* etiqueta-semilla con nº de etapa */
  counter-increment: caso;
  content: counter(caso, decimal-leading-zero);
  position: absolute; left: -14px; top: 1rem; z-index: 2;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 600; font-size: .82rem;
  background: var(--lime); color: var(--ink);
  border: 2.5px solid var(--ink); border-radius: 50%;
  box-shadow: 2px 2px 0 var(--ink);
}
.case h3 {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.16rem; line-height: 1.16; margin-bottom: .45rem;
}
.case p { font-size: .92rem; margin-bottom: .9rem; }
.case .btn { margin: 0 .4rem .3rem 0; }

/* ---- Bitácora = tallo que crece con nodos-hoja ---- */
.panel__col--feed { position: relative; }
.feed { position: relative; padding: 0 0 1.5rem 2.3rem; }
.feed:last-of-type { padding-bottom: 0; }
.feed::after {                              /* segmento de tallo (se unen en una línea) */
  content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 3px;
  background: var(--green-deep); z-index: 0;
}
.feed:first-of-type::after { top: .55rem; border-radius: 3px 3px 0 0; }
.feed:last-of-type::after  { display: none; }
.feed::before {                             /* nodo hoja */
  content: ""; position: absolute; left: 0; top: .3rem; z-index: 1;
  width: 17px; height: 17px;
  background: var(--lime-leaf);
  border: 2.5px solid var(--ink);
  border-radius: 62% 0 62% 62%;
}
.feed h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.06rem; margin-bottom: .3rem; }
.feed p { font-size: .9rem; }
.feed__meta {
  display: inline-block; margin-top: .55rem;
  font-family: var(--font-mono); font-size: .66rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
  background: #BFE8DE; border: 2px solid var(--ink); border-radius: 7px;
  padding: .24em .55em;
}
/* CTA final = brote nuevo por plantar */
.feed--cta {
  position: relative; margin-top: .2rem;
  padding: 1rem 1.1rem 1rem 2.3rem;
  background: rgba(214,242,95,.32);
  border: 2.5px dashed var(--ink); border-radius: 14px;
  display: flex; flex-direction: column; gap: .7rem; align-items: flex-start;
}
.feed--cta::after { display: none; }
.feed--cta::before {                        /* nodo-flor de cierre */
  content: ""; position: absolute; left: -1px; top: -11px; z-index: 2;
  width: 20px; height: 20px;
  background: var(--lime); border: 2.5px solid var(--ink); border-radius: 50%;
  box-shadow: inset 0 0 0 4px var(--cream-soft);
}
.feed--cta p { font-weight: 600; font-size: .96rem; }

/* ============ STATS ============ */
.stats {
  background: var(--orange);
  border-block: var(--border);
  padding: 3.6rem 0;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(20,34,25,.08) 1.6px, transparent 1.6px);
  background-size: 22px 22px;
}
.stats__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  position: relative;
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1;
  color: var(--cream);
  text-shadow: 4px 4px 0 var(--ink);
  -webkit-text-stroke: 1.5px var(--ink);
}
.stat span {
  display: block;
  margin-top: .5rem;
  font-weight: 600;
  font-size: .95rem;
}

/* ============ RESEÑAS ============ */
.reviews { background: var(--green); padding: 6.5rem 0 7rem; position: relative; }
.reviews__marquee {
  overflow: hidden;
  margin-top: 2.6rem;
  padding: 12px 0 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.reviews__track {
  display: flex;
  gap: 1.6rem;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.reviews__marquee:hover .reviews__track { animation-play-state: paused; }
/* sin barra de scroll visible en el carrusel de servicios */
.services__track { scrollbar-width: none; -ms-overflow-style: none; }
.services__track::-webkit-scrollbar { width: 0; height: 0; display: none; }
.review {
  width: 380px;
  background: var(--cream);
  border: var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 1.6rem 1.6rem 1.5rem;
  flex-shrink: 0;
}
.review:nth-child(odd) { rotate: -.7deg; }
.review:nth-child(even) { rotate: .7deg; }
.review__stars { color: var(--orange); letter-spacing: .15em; margin-bottom: .8rem; font-size: 1.05rem; }
.review p { font-size: 1.02rem; font-weight: 500; line-height: 1.5; }
.review footer { margin-top: 1.2rem; display: flex; flex-direction: column; }
.review footer strong { font-family: var(--font-display); font-weight: 700; }
.review footer span { font-size: .85rem; opacity: .7; }

/* ============ CTA ============ */
.cta {
  background: var(--green);
  padding: 2rem 0 6rem;
  display: flex;
  justify-content: center;
}
.cta__card {
  width: min(960px, 92vw);
  background: var(--cream);
  border: var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
  padding: 0 2rem 3.4rem;
  position: relative;
}
.cta__chars {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 2.5rem;
  height: 190px;
  margin-top: -60px;
  margin-bottom: 1.6rem;
}
.cta__char { height: 100%; transition: transform .25s; }
.cta__char--mascota { height: 82%; }
.cta__char--gillean { height: 94%; }
/* al pasar el cursor se dan vuelta (JS) y saludan con brinquitos */
.cta__chars:hover .cta__char { animation: charHop .55s var(--spring) 2; }
.cta__chars:hover .cta__char--mascota { animation-delay: .15s; }
.cta__chars:hover .cta__char--gillean { animation-delay: .3s; }
.cta__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: .98;
  letter-spacing: -.02em;
}
.cta__title em { color: var(--green-deep); }
.cta__sub { margin: 1.2rem 0 2rem; font-size: 1.08rem; }
.cta__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta__hint {
  margin-top: 1.6rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  opacity: .5;
}

/* ============ PASEO DE DESPEDIDA ============ */
.stroll {
  position: relative;
  height: 150px;
  background: var(--green);
  overflow: hidden;
  border-bottom: var(--border);
}
.stroll::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 26px;
  background: var(--green-deep);
  border-top: var(--border);
}
.stroll__bush { position: absolute; bottom: 18px; z-index: 1; }
.stroll__walkers {
  position: absolute;
  bottom: 22px;
  left: 0;
  display: flex;
  align-items: flex-end;
  gap: 1.4rem;
  z-index: 2;
  animation: stroll 26s linear infinite;
}
@keyframes stroll {
  from { transform: translateX(-30vw); }
  to { transform: translateX(115vw); }
}
.stroll__benja { height: 104px; animation: strollStep .55s ease-in-out infinite alternate; }
.stroll__mascota { height: 84px; animation: strollStep .48s ease-in-out .2s infinite alternate; }
.stroll__gillean { height: 96px; animation: strollStep .52s ease-in-out .35s infinite alternate; }
@keyframes strollStep {
  from { transform: translateY(0) rotate(-2deg); }
  to { transform: translateY(-7px) rotate(2.5deg); }
}

/* ============ MINI-JUEGO "BROTE RUN" ============ */
[hidden] { display: none !important; }

.stroll { transition: height .35s ease; }
.stroll.is-playing {
  height: 240px;
  touch-action: none;
  cursor: pointer;
  user-select: none;
}

.game__hint {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  color: var(--ink);
  background: var(--cream-soft);
  border: var(--border);
  border-radius: 99px;
  box-shadow: var(--shadow-sm);
  padding: .65em 1.4em;
  cursor: pointer;
  transition: transform .18s var(--spring), box-shadow .18s;
}
.game__hint:hover { transform: translate(-50%, -50%) translate(-2px,-2px) rotate(-1deg); box-shadow: 6px 6px 0 var(--ink); }

.game__score {
  position: absolute;
  top: 14px; right: 18px;
  z-index: 4;
  font-family: var(--font-mono);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--cream);
  background: rgba(20,34,25,.55);
  padding: .35em .9em;
  border-radius: 99px;
}

.game__runner {
  position: absolute;
  left: 64px; bottom: 22px;
  height: 104px;
  z-index: 3;
  will-change: transform;
  pointer-events: none;
}
.game__runner img { height: 100%; display: block; }
.game__runner.is-running img { animation: runStep .3s ease-in-out infinite alternate; }
@keyframes runStep {
  from { transform: translateY(0) rotate(-2.5deg); }
  to { transform: translateY(-7px) rotate(3deg); }
}
.game__runner.is-dead { transition: transform .22s ease-in; } /* aterriza suave si murió en el aire */
.game__runner.is-dead img { transform: rotate(-7deg); filter: saturate(.85); }

.game__obstacle {
  position: absolute;
  left: 0;
  z-index: 2;
  will-change: transform;
  pointer-events: none;
}
.game__obstacle .game__fly { animation: flyBob .5s ease-in-out infinite alternate; }
@keyframes flyBob {
  from { transform: translateY(0); }
  to { transform: translateY(-9px); }
}

.game__dashes {
  position: absolute;
  left: 0; right: 0; bottom: 9px;
  height: 4px;
  z-index: 1;
  background-image: repeating-linear-gradient(90deg,
    rgba(247,241,225,.5) 0 26px, transparent 26px 90px);
  border-radius: 99px;
}

.game__over {
  position: absolute;
  top: 42%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  text-align: center;
  background: var(--cream-soft);
  border: var(--border);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-md);
  padding: .9rem 1.8rem 1rem;
}
.game__over strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: .12em;
  color: var(--orange);
  -webkit-text-stroke: .8px var(--ink);
}
.game__over span {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .06em;
}
.game__over kbd {
  font-family: inherit;
  background: var(--lime);
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 0 .4em;
}

.stroll.is-shake { animation: stripShake .45s ease-in-out; }
@keyframes stripShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}

/* ============ FOOTER ============ */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 4.5rem 0 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1.5px solid rgba(247,241,225,.18);
}
.footer__brand p { margin-top: 1rem; font-size: .95rem; opacity: .75; max-width: 280px; }
.footer__contact { opacity: 1 !important; }
.footer__contact a { color: var(--lime); text-decoration: none; font-weight: 600; }
.footer__contact a:hover { text-decoration: underline; }
.footer__col { display: flex; flex-direction: column; gap: .55rem; }
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: .5rem;
}
.footer__col a {
  text-decoration: none;
  font-size: .95rem;
  opacity: .8;
  transition: opacity .2s, transform .2s;
  width: fit-content;
}
.footer__col a:hover { opacity: 1; transform: translateX(4px); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem;
  padding-top: 1.6rem;
  font-size: .85rem;
  opacity: .65;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .huerto__panels { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .services__pin { min-height: 0; }
  .services__track {
    width: auto;
    overflow-x: auto;
    padding-bottom: 1.4rem;
    scroll-snap-type: x mandatory;
  }
  .scard { scroll-snap-align: center; }
  .scard:nth-child(even) { margin-top: 0; }
  .process__steps { grid-template-columns: repeat(2, 1fr); gap: 3.4rem 1.5rem; }
  .process__steps::before { display: none; }
  .pstep:nth-child(even) { margin-top: 0; }
  .stats__row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .float-deco { display: none; }
  .only-desktop { display: none; }
  .nav__links, .nav__cta { display: none; }
  .nav__pill { gap: .8rem; padding-right: .8rem; }
  .nav__burger {
    display: flex; flex-direction: column; gap: 6px;
    background: none; border: none; padding: .5rem; cursor: pointer;
  }
  .nav__burger span {
    width: 24px; height: 3px;
    background: var(--cream);
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
  }
  .nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

  .hero { padding-top: 6.2rem; }
  /* misma tipografía que desktop (sin stroke), sombra un poco más liviana */
  .hero__title { text-shadow: 2px 3px 0 rgba(20,34,25,.9); }
  /* el texto se centra en el espacio libre y el video queda anclado abajo:
     sin el hueco muerto entre los botones y el video */
  .hero__content { padding-inline: 1.25rem; box-sizing: border-box; margin-block: auto; }
  .hero__stage { flex: 0 0 auto; min-height: 0; max-height: 42vh; }
  .hero__ctas { flex-direction: column; align-items: center; gap: .8rem; }
  .hero__ctas .btn { width: 100%; max-width: 20rem; text-align: center; }
  .char--benja { left: 3%; width: 120px; }
  .char--mascota { right: 3%; width: 140px; }
  /* cielo despejado: nubes chicas arriba, fuera del título; sol fuera */
  .hero__sun { display: none; }
  .hero__cloud--1 { top: 7%; left: 3%; width: 92px; }
  .hero__cloud--2 { top: 6.5%; right: 4%; width: 70px; }
  .hero__cloud--3, .leaf--2 { display: none; }
  /* arbustos a escala del video chico */
  .hero__bush--1 { width: 86px; }
  .hero__bush--2 { width: 110px; }

  .shelf__arrow { width: 42px; height: 42px; }
  .client { width: clamp(168px, 62vw, 200px); }
  .process__steps { grid-template-columns: 1fr; gap: 3.4rem; }
  .process__peek { height: 150px; right: -40px; }
  .review { width: 300px; }
  .cta__chars { height: 130px; margin-top: -40px; gap: 1.4rem; }
  .stroll__benja { height: 84px; }
  .stroll__mascota { height: 66px; }
  .stroll__gillean { height: 78px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ============ VIEWPORT BAJO (13", ventanas cortas) ============
   compacta el bloque de texto para que el video NUNCA se corte */
@media (max-height: 900px) {
  .hero { min-height: 0; padding-top: clamp(5.4rem, 8vh, 6rem); }
  .hero__sub { margin-top: .5rem; }
  .hero__ctas { margin-top: .9rem; }
  .hero__stage { max-height: 56vh; }
}
@media (max-height: 680px) {
  .hero__sub { font-size: .95rem; }
  .hero__ctas { margin-top: .7rem; }
  .hero__stage { max-height: 52vh; }
  .btn--big { padding: .72em 1.35em; font-size: 1rem; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html.js-anim .r { opacity: 1; transform: none; }

  /* el paseo no debe desaparecer: quietos pero visibles */
  .stroll__walkers { animation: none !important; transform: translateX(10vw); }

  /* Las micro-animaciones de los personajes son pequeñas y contenidas
     (no vestibulares): se mantienen vivas también en este modo.
     Lo que sí queda apagado: parallax, marquees, scroll suave, entradas. */
  #Hoja3 { animation: leafSway 3.6s ease-in-out infinite alternate !important; }
  #Cuerpo3 { animation: breathe 3.4s ease-in-out infinite alternate !important; }
  [id="bj-Cabeza2"] { animation: headTilt 6.8s ease-in-out infinite alternate !important; }
  [id="bj-Polerón2"] { animation: breathe 4.1s ease-in-out .6s infinite alternate !important; }
  [id="bj-Bolso2"] { animation: bagSway 3.8s ease-in-out infinite alternate !important; }
  [id="bj-Mano-Der1"], [id="bj-Mano-Izq1"] { animation: handIdle 3.2s ease-in-out infinite alternate !important; }
  #Ojos2 > *, [id="bj-Ojos"] > * { animation: blink 4.8s infinite !important; }
  [id="bj-Ojos"] > * { animation-duration: 5.7s !important; animation-delay: .9s !important; }
  .char.is-waving { animation: charHop .55s var(--spring) 3 !important; }
  .char.is-waving #Hoja3 { animation: leafWave .4s ease-in-out 4 !important; }
  .char.is-waving [id="bj-Mano-Der1"] { animation: handWave .42s ease-in-out 4 !important; }
  .char.is-waving [id="bj-Cabeza2"] { animation: headHello .85s ease-in-out 2 !important; }
  .char__bubble {
    transition: opacity .35s ease !important;
    transform: none !important;
  }
  .char__pose { animation: bob 3.2s ease-in-out infinite !important; }

  /* el mini-juego es interacción voluntaria: sus animaciones siguen */
  .game__runner.is-running img { animation: runStep .3s ease-in-out infinite alternate !important; }
  .game__obstacle .game__fly { animation: flyBob .5s ease-in-out infinite alternate !important; }

  /* el carrusel de reseñas se mueve solo también con reduce-motion */
  .reviews__track { animation: marquee 48s linear infinite !important; }
}

/* ============ PÁGINAS DE PROYECTO (caso/blog) ============ */
.proj { background: var(--cream); }
.proj__hero {
  position: relative;
  border-bottom: var(--border);
  padding: clamp(7rem, 14vh, 10rem) 0 clamp(2.6rem, 5vh, 3.6rem);
  background-image: radial-gradient(rgba(20,34,25,.06) 1.4px, transparent 1.4px);
  background-size: 26px 26px;
}
.proj__wrap { width: min(840px, 92vw); margin: 0 auto; }
.proj__back {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-mono); font-size: .85rem; letter-spacing: .03em;
  color: var(--ink); text-decoration: none; opacity: .75;
  transition: opacity .2s, transform .2s;
}
.proj__back:hover { opacity: 1; transform: translateX(-3px); }
.proj__badge {
  width: 64px; height: 64px; border: var(--border); border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; box-shadow: var(--shadow-md); margin: 1.6rem 0 1.2rem;
}
.proj__hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.4rem, 6.5vw, 4.2rem); line-height: 1.02;
  letter-spacing: -.025em; margin: .2rem 0 .9rem;
}
.proj__lead { font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.45; max-width: 42ch; color: var(--ink); opacity: .88; }
.proj__links { margin-top: 1.7rem; display: flex; gap: .8rem; flex-wrap: wrap; }
.proj__chip-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.proj__body { width: min(720px, 92vw); margin: 0 auto; padding: clamp(2.6rem, 6vh, 4rem) 0 clamp(3rem, 7vh, 5rem); }
.proj__body h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem); letter-spacing: -.01em;
  margin: 2.4rem 0 .9rem;
}
.proj__body h2:first-child { margin-top: 0; }
.proj__body p { font-size: 1.08rem; line-height: 1.75; margin-bottom: 1rem; }
.proj__list { list-style: none; display: grid; gap: .65rem; margin: .4rem 0 1.4rem; }
.proj__list li { display: flex; gap: .6rem; align-items: flex-start; font-size: 1.06rem; line-height: 1.5; }
.proj__list li::before { content: "🌱"; flex-shrink: 0; }
.proj__note {
  display: inline-block; font-family: var(--font-mono); font-size: .82rem;
  background: var(--lime); border: 2px solid var(--ink); border-radius: 8px;
  padding: .35em .7em; margin-top: .4rem;
}
.proj__cta { border-top: var(--border); background: var(--green); padding: clamp(3.5rem, 8vh, 5.5rem) 0; text-align: center; }
.proj__cta h2 {
  font-family: var(--font-display); font-weight: 800; color: var(--cream);
  font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.04; margin-bottom: 1.4rem;
  -webkit-text-stroke: 1.5px var(--ink); text-shadow: 3px 3px 0 rgba(20,34,25,.85);
}
.proj__cta .btn { font-size: 1.1rem; }
.proj-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .9rem clamp(1rem, 4vw, 2.4rem);
  background: var(--ink);
}
.proj-nav__logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--cream); font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.proj-nav__logo svg { width: 26px; height: 26px; }
.proj-nav__right { display: flex; align-items: center; gap: 1rem; }
.proj-nav__link { color: var(--cream); text-decoration: none; font-size: .95rem; opacity: .85; }
.proj-nav__link:hover { opacity: 1; }
@media (max-width: 600px) {
  .proj-nav__link { display: none; }
}
