/* =========================================================
   BIOFRUT — estilos
   ========================================================= */
:root {
  --green: #14531f;
  --green-2: #1f7a33;
  --lime: #cfe04a;
  --lime-2: #e6f07a;
  --orange: #f08a1c;
  --orange-deep: #c2570c;   /* naranja con contraste suficiente para texto blanco */
  --peach: #e0952b;
  --red: #e3262f;
  --purple: #7c4dbc;
  --blue: #2b7bd6;
  --sky: #eaf6ff;
  --ink: #10200f;
  --white: #fff;

  --f-brand: "Baloo 2", system-ui, sans-serif;
  --f-script: "Kaushan Script", cursive;
  --f-hand: "Caveat Brush", cursive;
  --f-body: "Barlow", system-ui, sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --gutter: clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--lime);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; border-radius: 6px; }

.script { font-family: var(--f-script); font-weight: 400; line-height: .95; }

/* ---------- Hoja (acento de la "u") ---------- */
.leaf { fill: var(--green-2); }
.leaf__vein { stroke: #9bd36a; stroke-width: 2.4; fill: none; stroke-linecap: round; }

/* =========================================================
   LOADER
   ========================================================= */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--green);
  transition: clip-path 1s var(--ease-out) .1s;
  clip-path: inset(0 0 0 0);
}
.loader__logo {
  position: relative; z-index: 2; width: min(460px, 72vw); height: auto;
  clip-path: inset(0 100% 0 0); transform: scale(.92);
  animation: logoIn .7s var(--ease-out) .1s forwards;
}
.loader__liquid {
  position: absolute; inset: auto 0 0 0; height: 0; z-index: 3;
  background: var(--lime);
  animation: fillUp .7s var(--ease-out) .6s forwards;
}
.loader__liquid::before {
  content: ""; position: absolute; left: -50%; top: -38px; width: 200%; height: 40px;
  background: radial-gradient(circle at 25px -10px, transparent 26px, var(--lime) 27px) 0 0 / 50px 40px repeat-x;
  animation: waveSlide 1s linear infinite;
}
body.is-ready .loader { clip-path: inset(0 0 100% 0); pointer-events: none; }
body.skip-intro .loader { display: none; }

@keyframes logoIn { to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes fillUp { to { height: 100%; } }
@keyframes waveSlide { to { transform: translateX(50px); } }

/* =========================================================
   CURSOR
   ========================================================= */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  background: var(--green); display: grid; place-items: center;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background .3s;
  mix-blend-mode: normal;
}
.cursor__label { font: 700 .8rem var(--f-body); color: var(--lime); opacity: 0; transition: opacity .2s; white-space: nowrap; }
.cursor { box-shadow: 0 0 0 2px rgba(255,255,255,.7); }
.cursor.is-light { background: var(--white); box-shadow: 0 0 0 2px rgba(20,83,31,.35); }
.cursor.is-light .cursor__label { color: var(--green); }
.cursor.is-big { width: 78px; height: 78px; margin: -39px 0 0 -39px; }
.cursor.is-big .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
@media (hover: hover) and (pointer: fine) { body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; } }

/* =========================================================
   HEADER + MENÚ
   ========================================================= */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(18px + env(safe-area-inset-top, 0px)) var(--gutter) 18px;
  pointer-events: none;
  mix-blend-mode: normal;
}
.header > * { pointer-events: auto; }
.wordmark { position: relative; display: block; width: clamp(112px, 12vw, 150px); }
.wordmark img { display: block; width: 100%; height: auto; transition: opacity .4s; }
.wordmark__white { position: absolute; inset: 0; opacity: 0; }
body.on-dark .wordmark__color { opacity: 0; }
body.on-dark .wordmark__white { opacity: 1; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
body.on-dark .menu-btn { box-shadow: inset 0 0 0 2px var(--lime); }

.menu-btn {
  display: flex; align-items: center; gap: .7rem;
  padding: .55rem .6rem .55rem 1.1rem; border-radius: 999px; border: 0;
  background: var(--green); color: var(--lime); font-weight: 700; cursor: pointer;
  transition: transform .3s var(--ease-spring);
}
.menu-btn:hover { transform: scale(1.06); }
.menu-btn__icon { width: 32px; height: 32px; border-radius: 50%; background: var(--lime); display: grid; place-content: center; gap: 4px; }
.menu-btn__icon i { display: block; width: 14px; height: 2px; background: var(--green); transition: transform .4s var(--ease-out); }
.menu-btn[aria-expanded="true"] .menu-btn__icon i:first-child { transform: translateY(3px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__icon i:last-child { transform: translateY(-3px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--green); color: var(--lime);
  display: flex; flex-direction: column; justify-content: center; padding: 90px var(--gutter) 40px;
  clip-path: circle(0% at calc(100% - 60px) 40px);
  transition: clip-path .8s var(--ease-out);
}
.menu.is-open { clip-path: circle(150% at calc(100% - 60px) 40px); }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li { overflow: hidden; }
.menu li a {
  display: flex; align-items: baseline; gap: 1rem; text-decoration: none;
  font: 800 clamp(3rem, 11vw, 8rem)/1 var(--f-brand); letter-spacing: -.03em;
  transform: translateY(105%); transition: transform .7s var(--ease-out), color .3s;
}
.menu li a small { font: 600 1rem var(--f-body); opacity: .6; }
.menu li a:hover { color: var(--white); }
.menu.is-open li a { transform: none; }
.menu.is-open li:nth-child(2) a { transition-delay: .06s; }
.menu.is-open li:nth-child(3) a { transition-delay: .12s; }
.menu.is-open li:nth-child(4) a { transition-delay: .18s; }
.menu__ig { margin-top: 2rem; font-weight: 700; font-size: 1.2rem; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; place-items: center;
  background: radial-gradient(120% 90% at 50% 40%, var(--lime-2) 0%, var(--lime) 55%, #b9cf2e 100%);
  padding: 90px var(--gutter) 60px;
}
.hero__badge {
  position: absolute; width: min(68vh, 82vw); left: 50%; top: 50%; translate: -50% -50%;
  animation: spin 30s linear infinite; opacity: .9;
}
.hero__badge text { font: 700 10.5px var(--f-body); letter-spacing: .32em; fill: var(--green); }
@keyframes spin { to { rotate: 360deg; } }

.hero__title {
  position: absolute; inset: 0; pointer-events: none;
  font: 400 clamp(4.2rem, 13vw, 12rem)/.9 var(--f-script); color: var(--white);
  text-shadow: 0 6px 0 rgba(20, 83, 31, .25);
}
.hero__line { position: absolute; white-space: nowrap; }
.hero__line--1 { left: var(--gutter); top: 9vh; z-index: 1; }
.hero__line--2 { right: var(--gutter); bottom: 16vh; z-index: 4; color: var(--green); text-shadow: 0 6px 0 rgba(255,255,255,.4); }

.hero__products {
  position: relative; z-index: 3; height: min(70vh, 640px); aspect-ratio: .72; max-width: 100%;
  transform-style: preserve-3d; perspective: 900px;
}
.hero__products img {
  position: absolute; bottom: 0; height: 100%; width: auto;
  filter: drop-shadow(0 40px 40px rgba(20, 60, 10, .35));
  will-change: transform;
}
.hero__carton { left: 4%; height: 88% !important; z-index: 2; }
.hero__bottle { right: 4%; height: 96% !important; z-index: 1; }

.hero__floaters { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.floater { position: absolute; will-change: transform; filter: drop-shadow(0 18px 18px rgba(0,0,0,.18)); }

.hero__lead {
  position: absolute; left: var(--gutter); bottom: 6vh; z-index: 5;
  font: 600 1.15rem/1.35 var(--f-body); color: var(--green);
}
.hero__scroll {
  position: absolute; right: var(--gutter); top: 50%; z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  text-decoration: none; font-weight: 700; color: var(--green); writing-mode: vertical-rl;
}
.hero__scroll i { width: 2px; height: 70px; background: var(--green); transform-origin: top; animation: scrollLine 1.8s var(--ease-out) infinite; }
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Texto partido en letras */
.char { display: inline-block; transform: translateY(100%) rotate(6deg); opacity: 0; transition: transform .9s var(--ease-spring), opacity .5s; transition-delay: calc(var(--i) * 35ms); }
.is-in .char { transform: none; opacity: 1; }
.word { display: inline-block; white-space: nowrap; }

/* =========================================================
   JUGOS — RECORRIDO HORIZONTAL
   ========================================================= */
.ride { position: relative; background: var(--ride-bg, var(--lime)); }
.ride__track {
  display: flex; height: 100svh; min-height: 560px;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab;
}
.ride__track::-webkit-scrollbar { display: none; }
.ride__track.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.ride__track:focus-visible { outline-offset: -6px; }

.panel {
  position: relative; flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: start;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4vw;
  padding: 90px var(--gutter) 110px; color: var(--panel-ink, var(--ink));
  overflow: hidden;
}
.panel__num { font: 800 1rem var(--f-brand); letter-spacing: .2em; opacity: .7; margin-bottom: .6rem; }
.panel h3 { font-size: clamp(3.4rem, 9vw, 8rem); margin-bottom: 1.4rem; }
.panel__big { font: 600 clamp(1.4rem, 2.6vw, 2.2rem)/1.2 var(--f-body); margin-bottom: 1rem; }
.panel__small { font-weight: 600; opacity: .8; }

.panel--intro { grid-template-columns: 1.2fr 1fr; color: var(--green); }
.panel--intro .panel__kicker { grid-column: 1 / -1; align-self: end; }
.panel__orange { width: min(56vh, 38vw); justify-self: center; filter: drop-shadow(0 30px 30px rgba(20,83,31,.3)); will-change: transform; }
.panel__kicker { font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.panel__mega { font: 800 min(30vh, 22vw)/.78 var(--f-brand); letter-spacing: -.06em; }
.panel__note { grid-column: 1 / -1; font: 600 1.3rem/1.3 var(--f-body); align-self: start; }

.panel__carton { justify-self: center; height: 72vh; max-height: 620px; display: grid; place-items: center; position: relative; }
.panel__carton::before { content: ""; position: absolute; width: 130%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.45), transparent 65%); }
.panel__carton img { position: relative; height: min(72vh, 620px); width: auto; filter: drop-shadow(0 40px 40px rgba(80,30,0,.35)); transform: rotate(var(--rot, 0deg)); }

.chips { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.chips li {
  font: 500 clamp(1.1rem, 1.8vw, 1.5rem) var(--f-body);
  padding: .8rem 1.6rem; border: 2px solid rgba(255,255,255,.85); border-radius: 0 999px 999px 0; border-left: 0;
  max-width: 420px;
  transform: translateX(var(--x, 60px)); opacity: var(--o, 0); transition: transform .8s var(--ease-spring), opacity .5s;
}

.panel__visual { position: relative; justify-self: center; display: grid; place-items: center; }
.panel__visual-img { position: absolute; height: min(72vh, 620px); width: auto; filter: drop-shadow(0 40px 40px rgba(60,0,40,.4)); transform: rotate(var(--rot, 0deg)); }
.panel__stack {
  display: flex; flex-direction: column; justify-self: center;
  font: 800 clamp(4rem, 11vw, 10rem)/.82 var(--f-brand); letter-spacing: -.04em;
}
.panel__stack span:nth-child(odd) { color: rgba(255,255,255,.28); }
.panel__stack span { transform: translateX(var(--shift, 0)); }

.ride__nav {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 26px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.2rem;
  color: var(--progress-ink, var(--green)); transition: color .4s;
}
.ride__arrow {
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid currentColor; background: transparent; color: inherit;
  font-size: 1.2rem; cursor: pointer; transition: transform .3s var(--ease-spring), opacity .3s;
}
.ride__arrow:hover { transform: scale(1.1); }
.ride__arrow:disabled { opacity: .3; cursor: default; transform: none; }
.ride__progress {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  border-top: 2px solid color-mix(in srgb, currentColor 25%, transparent);
}
.ride__progress button {
  background: none; border: 0; padding: 10px 0 0; text-align: left; color: inherit; cursor: pointer;
  font: 700 .8rem var(--f-body); letter-spacing: .1em; text-transform: uppercase; opacity: .6; transition: opacity .3s;
}
.ride__progress button:hover, .ride__progress button[aria-current="true"] { opacity: 1; }
.ride__progress i { position: absolute; left: 0; top: -2px; height: 2px; width: 25%; background: currentColor; transform: translateX(calc(var(--p, 0) * 300%)); }

/* =========================================================
   FRESH
   ========================================================= */
.fresh {
  --tint: var(--orange);
  position: relative; min-height: 100svh; overflow: hidden;
  background: radial-gradient(90% 70% at 50% 55%, color-mix(in srgb, var(--tint) 18%, white) 0%, var(--sky) 70%);
  transition: background .8s;
  padding: 110px var(--gutter) 50px;
  display: flex; flex-direction: column; align-items: center;
}
.fresh__wave { position: absolute; top: -1px; left: 0; width: 100%; height: 120px; z-index: 1; }
.fresh__wave path { fill: var(--ride-end, #d23a52); }
.fresh__bubbles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }

.fresh__head { position: relative; z-index: 2; text-align: center; }
.fresh__kicker { font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); }
.fresh__title { margin-top: .4rem; }
.fresh__logo { display: block; margin: 0 auto; width: auto; height: clamp(84px, 13vh, 150px); max-width: 100%; animation: floaty 5s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-6px) rotate(1deg); } }
@keyframes wobble { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-8px) rotate(4deg); } }

.carousel { position: relative; z-index: 2; width: 100%; max-width: 1200px; flex: 1; display: flex; flex-direction: column; align-items: center; margin-top: 2vh; }
.carousel__doodle {
  position: absolute; top: 50%; left: 50%; width: min(70vh, 90vw); translate: -50% -56%;
  pointer-events: none;
  fill: none; stroke: var(--tint); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; opacity: .35;
  transition: stroke .6s;
}
.carousel__stage {
  position: relative; width: 100%; height: clamp(300px, calc(100svh - 400px), 560px);
  perspective: 1200px; touch-action: pan-y; user-select: none; cursor: grab;
}
.carousel__stage.is-dragging { cursor: grabbing; }
.carousel__stage[data-size="500"] .bottle { height: 84%; }
.bottle {
  position: absolute; left: 50%; bottom: 0; height: 100%; width: auto;
  transform-origin: 50% 100%;
  transition: transform .9s var(--ease-out), opacity .6s, filter .6s;
  filter: drop-shadow(0 30px 30px rgba(20,40,80,.25));
  -webkit-user-drag: none;
}
.carousel__stage.is-dragging .bottle { transition: none; }
.carousel__ui { display: flex; align-items: center; gap: 2rem; margin-top: 1.2rem; }
.carousel__arrow {
  width: 58px; height: 58px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; font-size: 1.4rem; cursor: pointer;
  transition: background .3s, color .3s, transform .3s var(--ease-spring);
}
.carousel__arrow:hover { background: var(--ink); color: var(--white); transform: scale(1.08); }
.carousel__label { min-width: 230px; text-align: center; display: grid; }
.carousel__name { font: 400 clamp(2.4rem, 5vw, 3.6rem)/1 var(--f-hand); color: var(--ink-name, var(--tint)); transition: color .6s; }
.carousel__name.swap { animation: nameSwap .6s var(--ease-spring); }
@keyframes nameSwap { from { transform: translateY(40%) scale(.8); opacity: 0; } }
.carousel__meta { font-weight: 600; opacity: .7; }
.carousel__hint { margin-top: .6rem; font-size: .9rem; opacity: .55; }
.carousel__stage.is-swapping .bottle { opacity: 0 !important; transform: translateX(-50%) translateY(60px) scale(.85) !important; transition: transform .35s ease-in, opacity .3s; }

.sizes { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin-top: 1.2rem; padding: 4px; border-radius: 999px; background: rgba(16,32,15,.08); }
.sizes button { position: relative; z-index: 1; border: 0; background: none; padding: .55rem 1.3rem; font-weight: 700; cursor: pointer; border-radius: 999px; transition: color .3s; }
.sizes button[aria-checked="true"] { color: var(--white); }
.sizes__pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--ink-name, var(--tint)); transition: transform .5s var(--ease-spring), background .6s; }
.sizes[data-active="1500"] .sizes__pill { transform: translateX(100%); }

/* =========================================================
   QUIZ
   ========================================================= */
.quiz { position: relative; background: var(--orange-deep); color: var(--white); padding: 14vh var(--gutter); overflow: hidden; }
.quiz__inner { max-width: 980px; margin: 0 auto; }
.quiz__kicker { font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.quiz__title { font: 400 clamp(3rem, 9vw, 7rem)/1 var(--f-script); margin: .4rem 0 3rem; }

.quiz__card { background: var(--white); color: var(--ink); border-radius: 36px; padding: clamp(1.4rem, 4vw, 3rem); box-shadow: 0 30px 60px -30px rgba(80,30,0,.6); min-height: 380px; }
.quiz__steps { display: flex; gap: 6px; margin-bottom: 2rem; }
.quiz__steps i { flex: 1; height: 6px; border-radius: 6px; background: #eee; transition: background .4s; }
.quiz__steps i.done { background: var(--orange); }
.quiz__q { font: 800 clamp(1.6rem, 3.6vw, 2.6rem)/1.1 var(--f-brand); margin-bottom: 1.6rem; }
.quiz__opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.quiz__opt {
  border: 2px solid #ece6dc; background: #fffaf2; border-radius: 22px; padding: 1.4rem 1rem; cursor: pointer;
  display: grid; justify-items: center; gap: .6rem; font: 700 1.1rem var(--f-body);
  transition: transform .35s var(--ease-spring), border-color .3s, background .3s;
  animation: optIn .6s var(--ease-spring) backwards; animation-delay: calc(var(--i) * 80ms);
}
.quiz__opt span { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: #ffe9d2; color: var(--orange-deep); transition: transform .35s var(--ease-spring); }
.quiz__opt svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.quiz__opt:hover { transform: translateY(-6px) rotate(-1.5deg); border-color: var(--orange); background: #fff3e2; }
.quiz__opt:hover span { transform: scale(1.2) rotate(8deg); }
@keyframes optIn { from { transform: translateY(30px) scale(.9); opacity: 0; } }

.quiz__result { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; animation: optIn .7s var(--ease-spring); }
.quiz__result-img { height: 300px; width: 180px; display: grid; place-items: center; }
.quiz__result-img img { max-height: 100%; width: auto; filter: drop-shadow(0 20px 20px rgba(0,0,0,.2)); animation: dropIn 1s var(--ease-spring); }
.quiz__result-img img.round { width: 180px; height: 180px; object-fit: cover; border-radius: 50%; }
@keyframes dropIn { from { transform: translateY(-80px) rotate(-20deg); opacity: 0; } }
.quiz__result small { font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--orange); }
.quiz__result h3 { font: 400 clamp(2.4rem, 5vw, 4rem)/1 var(--f-script); margin: .3rem 0 .8rem; color: var(--green); }
.quiz__result p { font-size: 1.15rem; margin-bottom: 1.4rem; }
.btn-line { background: none; border: 0; border-bottom: 2px solid currentColor; padding: .2rem 0; font-weight: 700; cursor: pointer; }

.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti span { position: absolute; top: -40px; width: var(--s, 16px); height: var(--s, 16px); border-radius: 50%; background: var(--c); animation: fall linear forwards; }
.confetti span.leafy { border-radius: 0 100% 0 100%; }
.confetti span.slice { background: radial-gradient(circle, #ffd27a 55%, #f39a1e 58%); }
@keyframes fall { to { transform: translateY(110vh) rotate(var(--r)); } }

/* =========================================================
   CONTACTO
   ========================================================= */
.contact { background: var(--green); color: var(--lime); padding: 16vh var(--gutter); }
.contact__inner { max-width: 1100px; margin: 0 auto; }
.contact__title { font: 800 clamp(2.8rem, 8vw, 7rem)/.95 var(--f-brand); letter-spacing: -.03em; max-width: 12ch; }
.contact__lead { font-size: 1.3rem; margin: 1.4rem 0 4rem; color: #e9f3c1; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem 3rem; }
.field { position: relative; display: block; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 2px solid rgba(207,224,74,.45);
  padding: 1.6rem 0 .6rem; color: var(--white); font: 600 1.5rem var(--f-body); resize: vertical;
  transition: border-color .3s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--lime); }
.field span { position: absolute; left: 0; top: 1.6rem; font-size: 1.5rem; color: rgba(207,224,74,.7); pointer-events: none; transform-origin: left; transition: transform .4s var(--ease-out), color .3s; }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { transform: translateY(-1.5rem) scale(.6); color: var(--lime); }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: #ff8a7a; }
.field--select select {
  width: 100%; appearance: none; -webkit-appearance: none; cursor: pointer;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cfe04a' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 4px bottom 14px / 22px;
  border: 0; border-bottom: 2px solid rgba(207,224,74,.45); border-radius: 0;
  padding: 1.6rem 2.2rem .6rem 0; color: var(--white); font: 600 1.5rem var(--f-body);
  transition: border-color .3s;
}
.field--select select:focus { outline: none; border-color: var(--lime); }
.field--select select:invalid { color: rgba(207,224,74,.7); }
.field--select option { color: var(--ink); background: var(--white); }
.field--select span { transform: translateY(-1.5rem) scale(.6); color: var(--lime); }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.form__msg { font-weight: 700; font-size: 1.1rem; }
.form__msg a { color: var(--white); }
.form__aside { flex: 1; min-width: 220px; display: grid; gap: .6rem; }
.form__note { font-size: .92rem; color: #cfe2a8; max-width: 52ch; }
.form__note a { color: var(--lime); font-weight: 700; white-space: nowrap; }
.topics { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.topics legend { font-size: 1rem; color: rgba(207,224,74,.8); margin-bottom: .8rem; padding: 0; }
.topics label { cursor: pointer; }
.topics input { position: absolute; opacity: 0; pointer-events: none; }
.topics label span { display: inline-block; padding: .6rem 1.2rem; border-radius: 999px; border: 2px solid rgba(207,224,74,.45); font-weight: 600; transition: background .25s, color .25s, border-color .25s; }
.topics input:checked + span { background: var(--lime); color: var(--green); border-color: var(--lime); }
.topics input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 3px; }

.magnet {
  width: 150px; height: 150px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--lime); color: var(--green); font: 800 1.3rem var(--f-brand);
  transition: transform .5s var(--ease-out), background .3s;
}
.magnet span { display: inline-flex; flex-direction: column; align-items: center; gap: .3rem; transition: transform .5s var(--ease-out); }
.magnet svg { width: 30px; height: 30px; fill: currentColor; }
.magnet:hover { background: var(--white); }

/* =========================================================
   FINAL — FOTO DE FAMILIA
   ========================================================= */
.final {
  position: relative; overflow: hidden; text-align: center;
  background: radial-gradient(120% 90% at 50% 30%, var(--lime-2) 0%, var(--lime) 55%, #b9cf2e 100%);
  padding: 16vh var(--gutter) 0;
  --h: min(38vh, 33vw, 380px);
}
.final__title { font: 400 clamp(3.4rem, 10vw, 8.5rem)/1 var(--f-script); color: var(--white); text-shadow: 0 6px 0 rgba(20, 83, 31, .25); margin-bottom: 6vh; }
.shelf { position: relative; z-index: 2; display: flex; justify-content: center; align-items: flex-end; gap: clamp(2px, 1.2vw, 18px); }
.shelf__item { margin: 0; position: relative; transform: translateY(-70vh) rotate(-12deg); opacity: 0; transition: transform 1s var(--ease-spring), opacity .4s; transition-delay: calc(var(--i) * 110ms); }
.shelf.is-in .shelf__item { transform: none; opacity: 1; }
.shelf__item img { height: var(--h); width: auto; max-width: none; filter: drop-shadow(0 18px 16px rgba(20, 60, 10, .3)); transition: transform .4s var(--ease-spring); }
.shelf__item--carton img { height: calc(var(--h) * .9); }
.shelf__item:hover img { transform: translateY(-14px) rotate(-3deg); }
.shelf__item figcaption {
  position: absolute; left: 50%; bottom: calc(100% + 6px); translate: -50% 8px; white-space: nowrap;
  padding: .35rem .8rem; border-radius: 999px; background: var(--green); color: var(--lime); font-weight: 700; font-size: .85rem;
  opacity: 0; pointer-events: none; transition: opacity .25s, translate .3s var(--ease-spring);
}
.shelf__item:hover figcaption { opacity: 1; translate: -50% -10px; }
.shelf__break { display: none; }
.shelf__board { position: relative; z-index: 1; height: 34px; margin: -10px auto 0; max-width: 1200px; border-radius: 10px 10px 0 0; background: linear-gradient(#a6bd24, #8ea31a); box-shadow: 0 -2px 0 rgba(255,255,255,.4) inset; }

.footer { background: var(--green); color: var(--lime); padding: 2.4rem var(--gutter) 1.6rem; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1.4rem 3rem; }
.footer__logo { display: block; width: 140px; }
.footer__logo img { display: block; width: 100%; height: auto; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1rem 2.2rem; font-weight: 700; font-size: 1.05rem; }
.footer__links a { text-decoration: none; position: relative; }
.footer__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out); }
.footer__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer__legal { grid-column: 1 / -1; font-size: .85rem; opacity: .7; border-top: 1px solid rgba(207,224,74,.2); padding-top: 1.2rem; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 860px) {
  .hero__line--1 { top: 13vh; }
  .hero__line--2 { bottom: 20vh; }
  .hero__products { height: min(46vh, 84vw); }
  .hero__lead { font-size: 1rem; bottom: 5vh; }
  .hero__scroll { display: none; }

  .panel { grid-template-columns: 1fr; grid-template-rows: auto auto; gap: 2vh; align-content: center; padding-top: 80px; padding-bottom: 90px; }
  .panel__carton { height: 35vh; }
  .panel__carton img { height: 35vh; }
  .panel--intro { grid-template-columns: auto 1fr; align-content: center; align-items: center; column-gap: 4vw; }
  .panel__mega { font-size: 34vw; }
  .panel__orange { width: min(36vw, 22vh); justify-self: end; }
  .panel h3 { margin-bottom: .6rem; }
  .chips { display: flex; flex-wrap: wrap; gap: .45rem; }
  .chips li { padding: .32rem .75rem; font-size: .86rem; border-left: 2px solid rgba(255,255,255,.85); border-radius: 999px; max-width: none; }
  .panel__stack { font-size: 18vw; }
  .panel__visual-img { height: 35vh; }
  .panel__note { justify-self: start; text-align: left; }

  .carousel__stage { height: clamp(260px, calc(100svh - 380px), 460px); }

  .ride__nav { bottom: 18px; gap: .6rem; }
  .ride__arrow { width: 40px; height: 40px; }
  .ride__progress button { font-size: .68rem; letter-spacing: .04em; }
  .footer { grid-template-columns: 1fr; }
  .final { --h: min(30vh, 52vw); }
  .shelf { flex-wrap: wrap; row-gap: 0; }
  .shelf__break { display: block; flex-basis: 100%; height: 16px; margin: -6px -8px 28px; border-radius: 8px; background: linear-gradient(#a6bd24, #8ea31a); box-shadow: 0 10px 18px -10px rgba(20,60,10,.5); }
  .footer__links { justify-content: flex-start; }
  .carousel__ui { gap: 1rem; }
  .carousel__label { min-width: 160px; }

  .quiz__opts { grid-template-columns: 1fr; }
  .quiz__opt { grid-template-columns: auto 1fr; justify-items: start; align-items: center; padding: 1rem 1.2rem; }
  .quiz__opt span { width: 44px; height: 44px; border-radius: 14px; }
  .quiz__opt svg { width: 26px; height: 26px; }
  .quiz__result { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .quiz__result-img { height: 220px; }

  .form { grid-template-columns: 1fr; }
  .magnet { width: 120px; height: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .char { transform: none; opacity: 1; }
}
