/* SurtiFrut La Hacienda · sistema compartido de las 4 páginas (estilo óleo clásico, como pear.no) */
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }

@view-transition { navigation: auto; }
/* Cambio de pestaña: la página que se va se desvanece y se aleja; la nueva sube y se enfoca.
   La barra, los botones flotantes y la línea roja de la pestaña activa no parpadean: la línea viaja a la nueva pestaña. */
::view-transition-old(root) { animation: vt-out .34s cubic-bezier(.4,0,1,1) both; }
::view-transition-new(root) { animation: vt-in .7s cubic-bezier(.2,.8,.2,1) .05s both; }
::view-transition-group(tab-ink) { animation-duration: .6s; animation-timing-function: cubic-bezier(.3,1.25,.5,1); }
@keyframes vt-out { to { opacity: 0; transform: scale(.985) translateY(-10px); filter: blur(5px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(28px) scale(1.01); filter: blur(8px); } }

:root {
  --ink: #0f1f17;
  --ink-soft: #46574b;
  --cream: #f4f1ea;
  --paper: #ebe5d6;
  --cherry: #df2636;
  --cherry-dark: #a3172b;
  --forest: #164735;
  --leaf: #2f8a50;
  --line: rgba(15,31,23,.18);
  --gx: max(clamp(20px, 5vw, 88px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --nav-h: 76px;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --serif: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html { background: var(--cream); scroll-padding-top: var(--nav-h); }
body { margin: 0; font-family: "Manrope", "Segoe UI", sans-serif; color: var(--ink); background: transparent; -webkit-font-smoothing: antialiased; overflow-x: clip; } /* el tractor y las frutas pueden asomarse por los bordes sin crear scroll de lado */
/* Paisaje pintado fijo detrás de toda la página, con un velo crema para que el texto se lea */
.sf-backdrop { position: fixed; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; }
.sf-backdrop img { width: 100%; height: calc(100% + 60px); object-fit: cover; object-position: 62% 35%; }
/* Las pinturas se funden por todos sus bordes con el paisaje de fondo: todo se ve como una sola pintura */
/* Las pinturas de pantalla completa se ven enteras: solo el borde de abajo se funde con la sección siguiente */
.scene > .bg, .scene > .bg-pic > .bg { -webkit-mask-image: linear-gradient(180deg, #000 90%, transparent 100%); mask-image: linear-gradient(180deg, #000 90%, transparent 100%); }
.sf-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(244,241,234,.56) 0%, rgba(244,241,234,.72) 45%, rgba(244,241,234,.8) 100%); }
@media (max-width: 980px) { .sf-backdrop::after { background: linear-gradient(180deg, rgba(244,241,234,.66), rgba(244,241,234,.8) 50%, rgba(244,241,234,.84)); } }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cherry); outline-offset: 3px; }

/* ---------- Navegación: 4 pestañas ---------- */
.nav { position: fixed; z-index: 50; inset: 0 0 auto 0; height: var(--nav-h); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: 0 var(--gx); transition: background .4s, box-shadow .4s, backdrop-filter .4s; view-transition-name: nav; }
.nav:not(.is-solid) { background: linear-gradient(180deg, rgba(244,241,234,.92) 0%, rgba(244,241,234,.6) 60%, rgba(244,241,234,0) 100%); }
.nav.is-solid { background: rgba(244,241,234,.95); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { width: 128px; height: auto; }
.tabs { justify-self: center; display: flex; gap: clamp(.4rem, 2vw, 2.2rem); margin: 0; padding: 0; list-style: none; }
.tabs a { position: relative; display: grid; gap: .1rem; padding: .5rem .2rem; text-decoration: none; text-align: center; }
.tabs .t { font-family: var(--serif); font-size: clamp(1rem, 1.25vw, 1.2rem); line-height: 1; }
.tabs .s { font-family: var(--mono); font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.tabs .short { display: none; }
.tabs a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: -2px; height: 2px; background: var(--cherry); transition: left .35s, right .35s; }
.tabs a:hover::after { left: 0; right: 0; }
.tabs a[aria-current="page"]::after { display: none; }
.tab-ink { position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--cherry); view-transition-name: tab-ink; }
.tabs a[aria-current="page"] .t { font-style: italic; }
/* Cotizar: píldora color cereza con la marca de cerezas y la serif cursiva del sitio; un brillo la cruza al pasar el mouse */
.nav-cta { position: relative; grid-column: 3; display: inline-flex; align-items: center; gap: .6rem; padding: .34rem 1.15rem .34rem .36rem; border-radius: 999px; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, #ea3f4f 0%, #c42335 55%, #8f1424 100%); color: #fff; text-decoration: none;
  font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.15rem; letter-spacing: .01em;
  box-shadow: 0 12px 26px -14px rgba(143,20,36,.9), inset 0 1px 0 rgba(255,255,255,.32), inset 0 -2px 0 rgba(0,0,0,.12);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s; }
.nav-cta .mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--cream); box-shadow: inset 0 0 0 1px rgba(143,20,36,.15); transition: transform .5s cubic-bezier(.2,1.4,.4,1); }
.nav-cta .mark img { width: 19px; height: auto; }
.nav-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.38) 50%, transparent 70%); transform: translateX(-120%); transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -14px rgba(143,20,36,1), inset 0 1px 0 rgba(255,255,255,.32), inset 0 -2px 0 rgba(0,0,0,.12); }
.nav-cta:hover::after { transform: translateX(120%); }
.nav-cta:hover .mark { transform: rotate(-12deg) scale(1.06); }

/* ---------- Retícula fina (marca visual de pear.no) ---------- */
.rule-v { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); pointer-events: none; }
.star { width: 14px; height: 14px; fill: var(--ink); }
.hline { position: relative; height: 1px; background: var(--line); }
.hline .star { position: absolute; top: -7px; }
.hline .star.l { left: -7px; } .hline .star.r { right: -7px; }

/* ---------- Piezas comunes ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nojs-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; padding: 1rem var(--gx, 1.25rem); background: var(--paper, #f6f0e4); }
.nojs-nav a { font-weight: 700; color: inherit; }
.kicker { margin: 0 0 1rem; font-family: var(--mono); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--leaf); }
.chip { display: inline-block; padding: .42rem .65rem; background: var(--ink); color: #fff; font-family: var(--mono); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; }
.display { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(2.8rem, 6.6vw, 6.8rem); line-height: .94; letter-spacing: -.03em; text-wrap: balance; }
.display em { font-style: italic; color: var(--cherry); }
.h2 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 4.6vw, 4.4rem); line-height: .98; letter-spacing: -.025em; text-wrap: balance; }
.h2 em { font-style: italic; color: var(--cherry); }
.lead { max-width: 34rem; margin: 1.4rem 0 0; font-size: clamp(1.02rem, 1.35vw, 1.22rem); line-height: 1.55; color: var(--ink-soft); }
.btn { display: inline-flex; align-items: center; gap: .55rem; padding: 1rem 1.4rem; border-radius: 8px; border: 0; font: inherit; font-weight: 700; font-size: .98rem; text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-cherry { background: var(--cherry); color: #fff; box-shadow: 0 10px 30px -12px rgba(223,38,54,.7); }
.btn-cherry:hover { background: var(--cherry-dark); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ghost { background: rgba(244,241,234,.7); color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(15,31,23,.3); backdrop-filter: blur(6px); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.wa-ico { width: 18px; height: 18px; fill: currentColor; }

/* Pantalla completa con pintura de fondo */
.scene { position: relative; min-height: 100svh; overflow: hidden; }
.scene > .bg-pic { display: contents; } /* <picture> con otra pintura para celular: la imagen se comporta como hija directa */
.scene > .bg, .scene > .bg-pic > .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene > .veil { position: absolute; inset: 0; pointer-events: none; }
/* Sin velo crema: el texto se apoya en las partes tranquilas de la pintura (cielo, pared) y lleva un halo suave para leerse */
.scene :is(h1, h2, p), .gstep :is(h2, p) { text-shadow: 0 0 22px rgba(244,241,234,.92), 0 0 7px rgba(244,241,234,.75); }
.orchard { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }

.section { position: relative; padding: clamp(5rem, 11vw, 9rem) var(--gx); }
.section.dark { background: var(--ink); color: var(--cream); }
.section.dark .lead { color: rgba(244,241,234,.72); }
.section.paper { background: rgba(235,229,214,.58); }

/* Entradas al hacer scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* Botón flotante de WhatsApp + lista */
/* Dos botones flotantes del mismo tamaño, apilados: "Mi lista" arriba y WhatsApp abajo */
.float { view-transition-name: float; --fab-w: 164px; --fab-h: 52px; position: fixed; z-index: 45; right: clamp(14px, 2.4vw, 28px); bottom: clamp(14px, 2.4vw, 28px); display: flex; flex-direction: column; gap: .6rem; }
.fab { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; width: var(--fab-w); height: var(--fab-h); padding: 0 1rem; border: 0; border-radius: 999px; background: #1f7a45; color: #fff; text-decoration: none; font: inherit; font-weight: 700; font-size: .9rem; box-shadow: 0 12px 30px -10px rgba(15,31,23,.55); cursor: pointer; transition: transform .2s; }
.fab:hover { transform: translateY(-2px) scale(1.02); }
.fab svg { width: 20px; height: 20px; flex: none; }
.fab-list { background: var(--ink); }
.fab-list[hidden] { display: none; }
.fab-list b { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 .35rem; border-radius: 999px; background: var(--cherry); font-size: .75rem; }
.float { transition: transform .35s cubic-bezier(.2,.7,.2,1), opacity .25s; }
.float.is-tucked { transform: translateX(calc(100% + 24px)); opacity: 0; pointer-events: none; }
.fab-list { box-shadow: 0 12px 30px -10px rgba(15,31,23,.55), 0 0 0 2px rgba(244,241,234,.75); }
.fab-list.bump { animation: fab-bump .45s cubic-bezier(.2,1.6,.4,1); }
@keyframes fab-bump { 40% { transform: scale(1.12); } }

/* Pie */
/* Pie: verde bosque que se vuelve vino, con un resplandor dorado arriba a la derecha */
.foot { padding: 4rem var(--gx) 2.4rem; color: rgba(244,241,234,.78); font-size: .92rem;
  background: radial-gradient(60% 80% at 82% 8%, rgba(176,138,62,.45), transparent 62%), linear-gradient(140deg, #0f3326 0%, #1d2e26 38%, #3e2230 72%, #5e1f30 100%); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2.4rem; border-bottom: 1px solid rgba(244,241,234,.15); }
.foot h3 { margin: 0 0 .9rem; font-family: var(--mono); font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: #cfe6a0; font-weight: 700; }
.foot p { margin: 0 0 .4rem; line-height: 1.55; }
.foot a { color: var(--cream); text-decoration: none; }
.foot a:hover { color: #ffb3bd; }
.foot .big { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.05; color: var(--cream); }
.foot small { display: block; margin-top: 1.6rem; font-size: .74rem; line-height: 1.6; color: rgba(244,241,234,.5); }

@media (max-width: 980px) {
  /* Móvil / tableta: la navegación pasa a barra inferior. --tab-h incluye el área segura (notch / barra de gestos). */
  :root { --nav-h: 64px; --tab-h: calc(58px + env(safe-area-inset-bottom, 0px)); }
  /* backdrop-filter en .nav lo vuelve el bloque contenedor de los hijos fixed: la barra inferior saltaba arriba al hacer scroll. */
  .nav { grid-template-columns: auto auto; justify-content: space-between; padding-inline: max(var(--gx), env(safe-area-inset-left, 0px)) max(var(--gx), env(safe-area-inset-right, 0px)); }
  .nav.is-solid { background: rgba(244,241,234,.96); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .brand img { width: 104px; }
  .nav-cta { min-height: 44px; grid-column: 2; }
  .tabs { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; width: auto; justify-self: stretch; justify-content: stretch; gap: 0; padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); min-height: var(--tab-h); background: rgba(244,241,234,.98); box-shadow: 0 -1px 0 var(--line); }
  .tabs li { flex: 1 1 0; min-width: 0; display: flex; }
  .nav > nav { display: contents; }
  .tabs .full { display: none; } .tabs .short { display: inline; }
  .tabs a { flex: 1; align-content: center; justify-items: center; min-height: 56px; padding: .4rem .2rem; }
  .tabs a::after, .tab-ink { bottom: 4px; }
  .tab-ink { left: 22%; right: 22%; }
  .tabs { view-transition-name: tabbar; }
  .tabs .t { font-size: .95rem; }
  .tabs .s { font-size: .6rem; }
  html { scroll-padding-bottom: calc(var(--tab-h) + 4.5rem); }
  .float { bottom: calc(var(--tab-h) + 14px); right: max(14px, env(safe-area-inset-right, 0px)); }
  .foot { padding-bottom: calc(var(--tab-h) + 8.5rem); } /* deja el texto legal libre de los botones flotantes al llegar al final */
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid p { margin: 0; }
  .foot-grid a { display: inline-flex; align-items: center; min-height: 44px; }
  .foot-grid p:not(:has(a)) { padding-block: .5rem; }
}
@media (max-width: 980px) and (max-height: 520px) {
  :root { --tab-h: calc(48px + env(safe-area-inset-bottom, 0px)); }
  .tabs a { min-height: 48px; }
  .tabs .s { display: none; }
}
@media (max-width: 560px) {
  .nav-cta { padding: .3rem .95rem .3rem .3rem; font-size: 1.05rem; }
  .nav-cta .mark { width: 32px; height: 32px; }
  .tabs .s { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
  /* En celular los dos botones son círculos iguales: tapan menos contenido (conservan aria-label). */
  .float { --fab-w: 56px; --fab-h: 56px; }
  .fab { padding: 0; }
  .fab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .fab svg, .fab .wa-ico { width: 26px; height: 26px; }
  .fab-list b { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; box-shadow: 0 0 0 2px var(--cream); }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .fab { transition: none; }
}

/* ---------- Movimiento (assets/motion.js) ---------- */
.scroll-bar { position: fixed; z-index: 60; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--cherry-dark), var(--cherry), #ff8a93); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
/* Títulos: cada palabra sube desde una ranura */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .16em; margin: 0 -.04em -.16em; }
.split .w > span { display: inline-block; transform: translateY(110%); transition: transform 1s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i) * 55ms); }
.split.is-in .w > span { transform: none; }
/* Pinturas con profundidad: un poco más grandes para que al moverse no se vea el borde */
.depth { scale: 1.12; transition: translate .45s cubic-bezier(.2,.7,.2,1); will-change: translate; }
/* Tarjetas de producto en cascada */
.has-motion .rise { opacity: 0; }
.has-motion .rise.is-in { opacity: 1; animation: rise .8s cubic-bezier(.2,.8,.2,1) var(--d, 0ms) both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px) scale(.98); } }
/* Botones magnéticos (solo con mouse) */
.magnet { transition: translate .35s cubic-bezier(.2,.7,.2,1), transform .2s, background .2s, box-shadow .3s; }
/* Luz que sigue al cursor */
.lit { position: relative; isolation: isolate; }
.lit::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(223,38,54,.11), transparent 70%); }
.lit:hover::after { opacity: 1; }
.channels.lit::after, .op-item button.lit::after { background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(255,214,140,.18), transparent 70%); }
/* El producto se asoma hacia el mouse */
.has-motion .item .pic img { translate: calc(var(--px, 0) * 14px) calc(var(--py, 0) * 14px); transition: transform .8s cubic-bezier(.2,.7,.2,1), translate .5s cubic-bezier(.2,.7,.2,1), filter .3s; }

/* ---------- Cursor granadilla: la punta del palito es la punta del mouse ---------- */
/* Sin JavaScript queda la imagen fija; con JavaScript (assets/frutitas.js) se anima y una fresa la empuja al hacer clic. */
@media (hover: hover) and (pointer: fine) {
  html { --cur: url("../img/cursor-granadilla.svg") 2 2, auto; --cur-feliz: url("../img/cursor-granadilla-feliz.svg") 2 2, pointer; cursor: var(--cur); }
  html :is(a, button, summary, select, label, [role="button"], [role="radio"], .fw, .sf-tractor, .fruit-hug, .item, .pchip) { cursor: var(--cur-feliz); }
  html :is(input:not([type="checkbox"], [type="radio"]), textarea) { cursor: text; }
  html.has-sf-cursor, html.has-sf-cursor :not(input, textarea, [contenteditable="true"]) { cursor: none !important; }
}
.sf-cursor { position: fixed; z-index: 2147483000; left: 0; top: 0; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity .2s; }
.sf-cursor.is-on { opacity: 1; }
.sf-cursor.is-text { opacity: 0; }
.cur-g { position: absolute; left: -2px; top: -2px; width: 32px; max-width: none; height: 32px; transform-origin: 2px 2px; rotate: var(--tilt, 0deg); transition: rotate .25s cubic-bezier(.3,1.5,.5,1); filter: drop-shadow(1px 2px 2px rgba(40,20,10,.3)); }
.cur-fresa { position: absolute; left: 3px; top: 18px; width: 30px; height: auto; overflow: visible; transform-origin: 15px 0; rotate: -45deg; scale: .2; opacity: 0; transition: scale .3s cubic-bezier(.3,1.6,.5,1), opacity .2s; filter: drop-shadow(1px 2px 2px rgba(40,20,10,.25)); }
.cur-fresa .arm.l { transform: rotate(150deg); }
.cur-fresa .arm.r { transform: rotate(-150deg); }
.sf-cursor.is-hover .cur-fresa, .sf-cursor.is-press .cur-fresa { scale: 1; opacity: 1; }
.sf-cursor.is-press .cur-fresa { animation: cur-push .32s cubic-bezier(.3,.7,.3,1); }
.sf-cursor.is-press .cur-g { animation: cur-squash .32s cubic-bezier(.3,.7,.3,1); }
.sf-cursor.is-press .cur-ring { animation: cur-ring .5s ease-out; }
.cur-ring { position: absolute; left: 0; top: 0; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 2px solid var(--cherry); opacity: 0; }
@keyframes cur-push { 40% { translate: -4px -4px; } }
@keyframes cur-squash { 40% { scale: .84; } }
@keyframes cur-ring { from { transform: scale(.2); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }

/* ---------- Frutitas con ojos, brazos y piernas (assets/frutitas.js) ---------- */
.fr { display: block; overflow: visible; }
/* Parpadeo: lo pone assets/frutitas.js de vez en cuando (una animación eterna en cada fruta costaba cada cuadro) */
.fr .eyes { transition: transform .08s; }
.fr.blink .eyes { transform: scaleY(.08); }
.fr .eh, .fr .m-open { display: none; }
/* Los grupos que no están en pantalla se quedan quietos (no gastan) */
.zz, .zz * { animation-play-state: paused !important; }
.fr.happy .eyes { display: none; }
.fr.happy .eh { display: inline; }
.fr.run .m-smile, .fr.air .m-smile, .fr.jumping .m-smile { display: none; }
.fr.run .m-open, .fr.air .m-open, .fr.jumping .m-open { display: inline; }
.fr .bod { transform-origin: 50px 100px; }
.fr .arm, .fr .leg { transition: transform .16s ease-out; }
.fr.run .bod { animation: fr-bob .17s ease-in-out infinite alternate; }
.fr.run .leg.l { animation: fr-leg .34s ease-in-out infinite alternate; }
.fr.run .leg.r { animation: fr-leg .34s ease-in-out infinite alternate-reverse; }
.fr.run .arm.l { animation: fr-arm .34s ease-in-out infinite alternate-reverse; }
.fr.run .arm.r { animation: fr-arm .34s ease-in-out infinite alternate; }
.fr.air .leg.l { transform: rotate(30deg); }
.fr.air .leg.r { transform: rotate(-24deg); }
.fr.air .arm.l { transform: rotate(120deg); }
.fr.air .arm.r { transform: rotate(-120deg); }
.fr.wave .arm.r { animation: fr-wave-r .32s ease-in-out 5 alternate; }
.fr.jumping { animation: fr-jump .62s cubic-bezier(.3,.7,.3,1); }
@keyframes fr-bob { from { transform: rotate(5deg); } to { transform: translateY(-4px) rotate(9deg); } }
@keyframes fr-leg { from { transform: rotate(34deg); } to { transform: rotate(-34deg); } }
@keyframes fr-arm { from { transform: rotate(-40deg); } to { transform: rotate(40deg); } }
@keyframes fr-wave-r { from { transform: rotate(-125deg); } to { transform: rotate(-165deg); } }
@keyframes fr-wave-l { from { transform: rotate(125deg); } to { transform: rotate(165deg); } }
@keyframes fr-jump { 0% { transform: none; } 18% { transform: scale(1.12, .86); } 50% { transform: translateY(-34%) scale(.94, 1.08); } 82% { transform: scale(1.08, .92); } 100% { transform: none; } }
.fr-heart { position: absolute; z-index: 6; pointer-events: none; color: var(--cherry); font-size: 1.15rem; line-height: 1; animation: fr-heart 1.3s ease-out both; }
@keyframes fr-heart { from { transform: translate(-50%, 0) scale(.4); opacity: 0; } 20% { opacity: 1; } to { transform: translate(calc(-50% + var(--dx, 0px)), -70px) scale(1.15); opacity: 0; } }
.k-say { position: absolute; z-index: 7; left: 50%; bottom: 100%; padding: .25rem .6rem; border-radius: 999px; background: #fffaf0; box-shadow: inset 0 0 0 1px var(--line), 0 8px 18px -10px rgba(15,31,23,.55); font-family: var(--serif); font-style: italic; font-size: .92rem; line-height: 1.2; color: var(--cherry-dark); white-space: nowrap; pointer-events: none; animation: k-say 1.7s cubic-bezier(.3,1.4,.5,1) both; }
@keyframes k-say { 0% { opacity: 0; transform: translate(-50%, 8px) scale(.6); } 14% { opacity: 1; transform: translate(-50%, 0); } 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -12px); } }

/* El mundo: las frutas viven encima de los cuadros de toda la página; se pueden agarrar y lanzar */
.fruit-world { position: absolute; z-index: 44; left: 0; top: 0; width: 100%; height: 0; pointer-events: none; }
.fw { position: absolute; left: 0; top: 0; width: clamp(44px, 3.7vw, 58px); pointer-events: auto; touch-action: none; -webkit-user-select: none; user-select: none; will-change: transform; }
.fw .fr { width: 100%; height: auto; }
.fw-flip { transform-origin: 50% 100%; }
.fw-flip.land { animation: fw-land .3s ease-out; }
@keyframes fw-land { 40% { scale: 1.14 .82; } }
.fw.is-grab .fr .leg.l { animation: fr-leg .12s linear infinite alternate; }
.fw.is-grab .fr .leg.r { animation: fr-leg .12s linear infinite alternate-reverse; }
.fw.is-grab .fr { filter: drop-shadow(0 10px 8px rgba(15,31,23,.25)); }
/* La que "la lleva" brilla en rojo para que se note quién persigue */
.fw.it .fr { filter: drop-shadow(0 0 5px rgba(223,38,54,.8)); }
html.fw-dragging, html.fw-dragging * { -webkit-user-select: none !important; user-select: none !important; }

/* La ruta del tractor: invisible, solo sirve para guiarlo */
.sf-road { position: absolute; z-index: -1; left: 0; top: 0; height: 0; overflow: visible; pointer-events: none; }
.sf-road path { fill: none; stroke: none; }
.sf-tractor { --tw: clamp(190px, 16vw, 250px); position: absolute; z-index: 45; left: calc(var(--tw) * -.45); top: calc(var(--tw) * -.545); width: var(--tw); transform-origin: 45% 96%; will-change: transform; }
.sf-tractor::before { content: ""; position: absolute; left: 4%; right: 2%; bottom: -3%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgba(30,36,20,.32), transparent); }
.sf-tractor.flip .st-car { scale: -1 1; }
.sf-tractor.flip .st-car .k-say { scale: -1 1; }
.st-car { position: relative; }
.st-base, .st-front { display: block; width: 100%; height: auto; -webkit-user-drag: none; -webkit-user-select: none; user-select: none; }
.st-front { position: absolute; inset: 0; pointer-events: none; }
.st-load { position: absolute; inset: 0; pointer-events: none; }
.st-prod { position: absolute; width: 5.2%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; background: #f1ece1; box-shadow: 0 2px 6px -2px rgba(15,31,23,.5); transform: translate(-50%, -100%) rotate(var(--r, 0deg)); }
.st-exh { position: absolute; left: 47%; top: 1.9%; width: 1px; height: 1px; }
.st-dust { position: absolute; left: 33.6%; top: 93.4%; width: 1px; height: 1px; }
.fw.riding { position: absolute; z-index: 1; width: 6.4%; pointer-events: auto; transform: translate(-50%, -100%) !important; }
.sf-tractor.run .st-car { animation: st-chug .12s linear infinite alternate; }
.sf-tractor.bump .st-car { animation: st-bump .5s cubic-bezier(.3,1.5,.5,1); }
.sf-tractor.is-target .st-car { filter: drop-shadow(0 0 10px rgba(255,196,64,.95)); }
@keyframes st-chug { to { transform: translateY(-1.2%); } }
@keyframes st-bump { 30% { transform: translateY(-4%) rotate(-1deg); } 60% { transform: translateY(0) rotate(.6deg); } }
.sf-smoke { position: fixed; z-index: 43; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* Abrazo: fila de frutas paradas encima de un cuadro */
.fruit-hug { position: absolute; z-index: 3; bottom: calc(100% - 5px); right: clamp(1rem, 3vw, 2rem); display: flex; align-items: flex-end; --fw: clamp(54px, 5vw, 70px); }
.fruit-hug.is-left { right: auto; left: clamp(1rem, 3vw, 2rem); }
.foot { position: relative; }
.foot-hug { position: relative; inset: auto; width: max-content; max-width: 100%; margin: 2.2rem auto 0; }
.fruit-hug .fr { width: var(--fw); height: auto; margin-left: calc(var(--fw) * -.34); transform-origin: 50% 95%; animation: fr-sway 3.4s ease-in-out infinite; transition: margin .45s cubic-bezier(.3,1.4,.5,1); }
.fruit-hug .fr:first-child { margin-left: 0; }
.fruit-hug .fr .arm.l { transform: rotate(64deg); }
.fruit-hug .fr .arm.r { transform: rotate(-64deg); }
.fruit-hug .fr:first-child .arm.l { animation: fr-wave-l .5s ease-in-out infinite alternate; }
.fruit-hug .fr:last-child .arm.r { animation: fr-wave-r .5s ease-in-out infinite alternate .25s; }
.fruit-hug.squeeze .fr { margin-left: calc(var(--fw) * -.46); animation-duration: 1.3s; }
.fruit-hug.squeeze .fr:first-child { margin-left: 0; }
.fruit-hug .fr.jumping { animation: fr-jump .62s cubic-bezier(.3,.7,.3,1); }
/* Juegos del grupo: brazos arriba, voltereta y baile */
.fruit-hug .fr.arms-up .arm.l { transform: rotate(150deg); animation: none; }
.fruit-hug .fr.arms-up .arm.r { transform: rotate(-150deg); animation: none; }
.fruit-hug .fr.flipjump { animation: fr-flip .85s ease-in-out; transform-origin: 50% 60%; }
.fruit-hug.dance .fr:nth-of-type(odd) { animation: fr-dance .32s ease-in-out infinite alternate; }
.fruit-hug.dance .fr:nth-of-type(even) { animation: fr-dance .32s ease-in-out infinite alternate-reverse; }
@keyframes fr-flip { 0% { transform: none; } 45% { transform: translateY(-42%) rotate(-180deg); } 85% { transform: translateY(0) rotate(-360deg); } 100% { transform: none; } }
@keyframes fr-dance { from { transform: translateY(0) rotate(-6deg); } to { transform: translateY(-14%) rotate(6deg); } }
@keyframes fr-sway { 0%, 100% { rotate: -4deg; } 50% { rotate: 4deg; } }

@media (max-width: 980px) {
  .sf-tractor { --tw: 150px; }

}
@media (max-width: 640px) {
  .fruit-hug { --fw: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  .fr, .fr *, .fruit-hug .fr, .sf-tractor * { animation: none !important; }
}
