/* ==========================================================================
   Agro-Rincón · Blanco, marrón semilla y tonos de aguacate
   ========================================================================== */
/* Tipografías servidas desde la propia web (OFL): Fraunces e Inter */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/fraunces-latin-opsz-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/fraunces-latin-opsz-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); }

:root {
  --white: #ffffff;
  --paper: #faf7f2;          /* blanco cálido */
  --sand: #f1ebe2;           /* fondo suave */
  --line: #e6ddd1;
  --seed: #6b4226;           /* marrón semilla */
  --seed-dark: #3f2616;
  --seed-light: #a87c55;      /* solo decorativo */
  --seed-text: #86603c;       /* texto pequeño en marrón claro (≥ 4.5:1) */
  --control-line: #958372;    /* borde de campos de formulario (≥ 3:1) */
  --ctl-radius: 12px;         /* esquinas de campos, grupos de opciones y botones de formulario */
  --ctl-h: 52px;              /* alto común de los controles de formulario */
  --error: #b3261e;           /* errores de formulario (≥ 4.5:1 sobre blanco y papel) */
  --flesh: #e7e9b4;          /* pulpa del aguacate */
  --flesh-deep: #c9cf7a;
  --skin: #2f3a20;           /* piel del aguacate (solo acentos) */
  --brand-green: #116030;    /* verde del logotipo */
  --photo-shade: 30, 18, 10; /* sombra para leer texto sobre fotos (canales RGB: rgba(var(--photo-shade), a)) */
  --ink: #2a1c12;
  --muted: #6e6156;
  --shade: #1e120a;          /* velo oscuro sobre fotos (igual en ambos temas) */
  --on-dark: #ffffff;        /* texto e iconos sobre fotos y velos (igual en ambos temas) */
  --on-seed: #ffffff;        /* texto e iconos sobre el acento (--seed): botones, opciones marcadas… */
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(16px, 4.5vw, 64px);
  --max: 1320px;
  --radius: 22px;
  --ease: cubic-bezier(.22, .8, .12, 1);
  --header-h: 76px;
  --logo: url("/media/brand/logo.svg");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); scrollbar-gutter: stable; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html.is-loading body { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; transition: opacity .7s var(--ease); }
img.is-missing { visibility: hidden; }
html.lenis-stopped, body.menu-open { overflow: hidden; }
.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; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.015em; margin: 0; }
em { font-style: italic; font-weight: 300; color: var(--seed); }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--seed); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, body:not(.menu-open) .header:not(.is-solid) :focus-visible, .quality :focus-visible { outline-color: #fff; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--seed); color: var(--on-seed); padding: 10px 14px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

/* --------------------------------------------------------------------------
   Logotipo (SVG original de Agro-Rincón usado como máscara para recolorearlo)
   -------------------------------------------------------------------------- */
.logo {
  display: inline-block;
  aspect-ratio: 128.86 / 70;
  height: 44px;
  background-color: var(--brand-green);
  -webkit-mask: var(--logo) no-repeat center / contain;
          mask: var(--logo) no-repeat center / contain;
}
.logo--brand { background-color: var(--brand-green); }
.logo--white { background-color: #fff; }

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */
.btn {
  --bg: var(--seed); --fg: var(--on-seed); --bd: var(--seed);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: .85em 1.5em; border-radius: 999px; border: 1px solid var(--bd);
  background: var(--bg); color: var(--fg); font: 500 15px/1.1 var(--sans); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--seed-dark); transform: translateY(101%); transition: transform .45s var(--ease); border-radius: inherit; }
.btn:hover::before { transform: none; }
.btn:active { transform: scale(.98); }
.btn--sm { min-height: 40px; padding: .6em 1.15em; font-size: 14px; }
.btn--seed { --bg: var(--seed); --fg: var(--on-seed); --bd: var(--seed); }
.btn--white { --bg: #fff; --fg: var(--seed-dark); --bd: #fff; }
.btn--white::before { background: var(--flesh); }
.btn--glass { --bg: rgba(255,255,255,.12); --fg: #fff; --bd: rgba(255,255,255,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--glass::before { background: rgba(255,255,255,.22); }
.btn--line { --bg: transparent; --fg: var(--seed-dark); --bd: var(--line); }
.btn--line::before { background: var(--sand); }
.btn[disabled] { opacity: .7; cursor: progress; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--seed); text-decoration: underline; cursor: pointer; }

.eyebrow { display: inline-block; font: 600 12px/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--seed-text); margin-bottom: 18px; }
.title { font-size: clamp(36px, 5.4vw, 76px); }
.head { margin-bottom: clamp(36px, 5vw, 72px); max-width: 860px; }
.head--center { margin-left: auto; margin-right: auto; text-align: center; }
.head--split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; max-width: none; }
.head__lead { color: var(--muted); font-size: 18px; max-width: 520px; margin-top: 18px; }
.head--center .head__lead { margin-left: auto; margin-right: auto; }
.head--split .head__lead { margin-top: 0; }

/* --------------------------------------------------------------------------
   Cargador: semilla que gira dentro de media pulpa
   -------------------------------------------------------------------------- */
.seed-loader { position: relative; width: 46px; height: 58px; }
.seed-loader__half { position: absolute; inset: 0; border-radius: 50% 50% 48% 48% / 60% 60% 42% 42%; background: radial-gradient(circle at 50% 66%, var(--flesh) 0 52%, var(--flesh-deep) 70%, var(--skin) 72% 100%); box-shadow: inset 0 -6px 12px rgba(0,0,0,.12); }
.seed-loader__seed { position: absolute; left: 50%; top: 58%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--seed-light), var(--seed) 55%, var(--seed-dark)); animation: seed-spin 1.1s var(--ease) infinite; }
.seed-loader__seed::after { content: ""; position: absolute; left: 5px; top: 4px; width: 6px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.45); }
.seed-loader--light .seed-loader__half { box-shadow: 0 8px 30px rgba(0,0,0,.35); }
@keyframes seed-spin { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(180deg) scale(.86); } 100% { transform: rotate(360deg) scale(1); } }

/* Entrada / precarga */
.preloader { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--white); }
.preloader__inner { position: relative; display: grid; justify-items: center; gap: 22px; text-align: center; padding: 24px; }
.preloader__extra { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); width: min(300px, 86vw); display: grid; justify-items: center; gap: 14px; }
/* Móvil en horizontal: el aviso y "Entrar ya" entran en el flujo para que quepan en pantalla */
@media (max-height: 520px) {
  .preloader__inner { gap: 12px; padding: 12px 24px; }
  .preloader__logo { height: 56px; }
  .preloader__extra { position: static; transform: none; gap: 8px; }
  .preloader.is-slow .seed-loader { display: none; }
}
.preloader__logo { height: clamp(70px, 12vw, 120px); }
.preloader .seed-loader { display: none; }
.preloader__bar { width: min(240px, 60vw); height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 100%; background: var(--seed); transform-origin: left; transform: scaleX(0); transition: transform .3s linear; }
.preloader__count { font: 500 13px/1 var(--sans); letter-spacing: .2em; color: var(--muted); font-variant-numeric: tabular-nums; }
.preloader__slow { font-size: 14px; color: var(--muted); max-width: 280px; }
.preloader.is-slow .seed-loader { display: block; }
.preloader__curtain { position: absolute; inset: 0; background: var(--sand); transform: translateY(100%); pointer-events: none; }
.no-js .preloader, .preloader.is-done { display: none; }

/* --------------------------------------------------------------------------
   Cabecera: logo a la izquierda, menú centrado
   -------------------------------------------------------------------------- */
.header { position: fixed; inset: 0 0 auto; z-index: 60; color: #fff; transition: background .45s var(--ease), color .45s var(--ease), box-shadow .45s var(--ease), transform .5s var(--ease); }
.header__inner { height: var(--header-h); max-width: none; margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.header__logo { justify-self: start; display: inline-flex; transition: opacity .45s var(--ease), visibility .45s; }
/* Portada: un solo logo. El de la cabecera aparece cuando el logo grande sale de la vista */
body:not(.menu-open) .header.has-hero-logo .header__logo { opacity: 0; visibility: hidden; pointer-events: none; }
.header__logo .logo { height: 46px; background-color: #fff; transition: background-color .45s var(--ease), height .45s var(--ease); }
.header__nav { display: flex; gap: clamp(18px, 2.4vw, 38px); justify-self: center; }
.header__nav a { position: relative; text-decoration: none; font: 500 15px/1 var(--sans); padding: 8px 0; opacity: .92; }
.header__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.header__nav a:hover::after, .header__nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
.header__actions { justify-self: end; display: flex; align-items: center; gap: 12px; }
.header .btn--seed { --bg: #fff; --fg: var(--seed-dark); --bd: #fff; }
.header .btn--seed::before { background: var(--flesh); }
.header.is-solid { background: rgba(255,255,255,.94); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.header.is-solid .header__logo .logo { background-color: var(--brand-green); height: 40px; }
.header.is-solid .btn--seed { --bg: var(--seed); --fg: var(--on-seed); --bd: var(--seed); }
.header.is-solid .btn--seed::before { background: var(--seed-dark); }
.header.is-hidden { transform: translateY(-100%); }
.header.is-hidden:focus-within { transform: none; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; color: inherit; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .45s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
body.menu-open .header { background: var(--paper); color: var(--ink); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.menu-open .header__logo .logo { background-color: var(--brand-green); }
body.menu-open .header .btn--seed { --bg: var(--seed); --fg: var(--on-seed); --bd: var(--seed); }
body.menu-open .header .btn--seed::before { background: var(--seed-dark); }

/* --------------------------------------------------------------------------
   Menú móvil: lista numerada con filetes, tarjeta para agricultores sobre foto,
   llamada directa a cada centro e idiomas en un selector segmentado al pie.
   Entra por capas (main.js pone .is-open): fondo, filas que suben y filetes que se dibujan.
   -------------------------------------------------------------------------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column;
  padding: calc(var(--header-h) + 6px) var(--pad) calc(18px + env(safe-area-inset-bottom));
  overflow-y: auto; overscroll-behavior: contain; background: var(--paper); color: var(--ink);
  opacity: 0; transition: opacity .35s var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; }
.mobile-menu:not(.is-open) { pointer-events: none; }
.mobile-menu:not(.is-open) [data-menu-item], .mobile-menu:not(.is-open) .mobile-menu__nav::before, .mobile-menu:not(.is-open) .mobile-menu__nav a::after { transition-delay: 0s; }
/* Brillo cálido muy suave arriba a la derecha, para que el fondo no sea plano */
.mobile-menu::before {
  content: ""; position: fixed; z-index: -1; top: 14svh; right: -38vw; width: 100vw; height: 56svh; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--flesh) 55%, transparent), transparent); opacity: .55;
}
.mobile-menu__inner { flex: 1; display: flex; flex-direction: column; gap: clamp(14px, 2.4svh, 22px); width: 100%; max-width: 620px; }
[data-menu-item] { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 50ms + 60ms); }
.mobile-menu.is-open [data-menu-item] { opacity: 1; transform: none; }

/* Enlaces: número, nombre en serifa y flecha; filete que se dibuja de izquierda a derecha */
.mobile-menu__nav { position: relative; display: grid; }
.mobile-menu__nav::before, .mobile-menu__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--line);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.1s var(--ease) calc(var(--i, 0) * 50ms + 120ms);
}
.mobile-menu__nav::before { top: 0; transition-delay: 60ms; }
.mobile-menu__nav a::after { bottom: 0; }
.mobile-menu.is-open .mobile-menu__nav::before, .mobile-menu.is-open .mobile-menu__nav a::after { transform: none; }
.mobile-menu__nav a {
  position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; column-gap: 8px;
  min-height: clamp(52px, 7.4svh, 66px); padding: 4px 0; text-decoration: none; color: var(--ink); -webkit-tap-highlight-color: transparent;
}
/* Al tocar: franja de color que cubre la fila de borde a borde */
.mobile-menu__nav a::before {
  content: ""; position: absolute; inset: 0 calc(var(--pad) * -1); z-index: -1; background: var(--sand);
  opacity: 0; transition: opacity .3s var(--ease);
}
.mobile-menu__nav a:active::before { opacity: 1; }
.mobile-menu__n { align-self: center; padding-top: 3px; font: 500 11.5px/1 var(--sans); letter-spacing: .14em; color: var(--seed-text); font-variant-numeric: tabular-nums; }
.mobile-menu__label { font: 400 clamp(28px, min(8.6vw, 5svh), 40px)/1.05 var(--serif); letter-spacing: -.02em; overflow-wrap: break-word; }
.mobile-menu__arrow {
  width: 22px; height: 22px; fill: none; stroke: var(--seed); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  opacity: .45; transform: translateX(-6px); transition: transform .45s var(--ease), opacity .45s var(--ease);
}
.mobile-menu__nav a:is(:hover, :active, :focus-visible) .mobile-menu__arrow { opacity: 1; transform: none; }
/* Sección en la que está el visitante: nombre en cursiva marrón y punto junto al número */
.mobile-menu__nav a.is-current .mobile-menu__label { font-style: italic; font-weight: 300; color: var(--seed); }
.mobile-menu__nav a.is-current .mobile-menu__n { color: var(--seed); }
.mobile-menu__nav a.is-current .mobile-menu__arrow { opacity: 1; transform: none; }
.mobile-menu__nav a:focus-visible { outline-offset: -2px; }

/* Tarjeta para agricultores: foto de finca con velo, texto blanco y botón */
.mobile-menu__join {
  position: relative; display: block; isolation: isolate; overflow: hidden; border-radius: 20px; text-decoration: none;
  color: var(--on-dark); background: var(--seed-dark); -webkit-tap-highlight-color: transparent;
  box-shadow: 0 1px 2px rgba(var(--photo-shade), .08), 0 26px 48px -30px rgba(var(--photo-shade), .7);
}
.mobile-menu__join-media { position: absolute; inset: 0; z-index: -2; }
.mobile-menu__join-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.6s var(--ease); }
.mobile-menu.is-open .mobile-menu__join-media img { transform: scale(1.01); }
.mobile-menu__join::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(var(--photo-shade), .82) 0%, rgba(var(--photo-shade), .58) 52%, rgba(var(--photo-shade), .18) 100%); }
.mobile-menu__join-copy { display: grid; justify-items: start; gap: 6px; padding: clamp(16px, 2.6svh, 22px) 20px; max-width: 340px; }
.mobile-menu__join-eyebrow { font: 600 10.5px/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--flesh); }
.mobile-menu__join-title { font: 400 clamp(21px, 5.6vw, 25px)/1.12 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
.mobile-menu__join-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; min-height: 40px; padding: 0 8px 0 16px; border-radius: 999px;
  background: #fff; color: #3f2616; font: 500 14px/1.15 var(--sans);
}
.mobile-menu__join-cta svg { width: 26px; height: 26px; padding: 5px; flex: none; border-radius: 50%; background: #6b4226; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease); }
.mobile-menu__join:is(:hover, :active) .mobile-menu__join-cta svg { transform: translateX(3px); }
.mobile-menu__join:focus-visible { outline-offset: 3px; border-radius: 20px; }

/* Llamar a cada centro */
.mobile-menu__call { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mobile-menu__call a {
  display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 10px 12px; border-radius: 16px;
  background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; -webkit-tap-highlight-color: transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.mobile-menu__call a:active { background: var(--sand); }
.mobile-menu__call svg { flex: none; width: 32px; height: 32px; padding: 8px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); fill: none; stroke: var(--seed); stroke-width: 1.5; stroke-linejoin: round; }
.mobile-menu__call-txt { display: grid; gap: 3px; min-width: 0; }
.mobile-menu__call-place { font: 600 10px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mobile-menu__call-num { font: 400 clamp(14.5px, 4.1vw, 16.5px)/1.2 var(--serif); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }

/* Lema y redes */
.mobile-menu__follow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 6px; }
.mobile-menu__claim { min-width: 0; font: italic 400 clamp(13px, 3.8vw, 16px)/1.25 var(--serif); color: var(--seed-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mobile-menu__social { flex: none; list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.mobile-menu__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--seed); transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.mobile-menu__social a:is(:hover, :active) { background: var(--seed); border-color: var(--seed); color: var(--on-seed); }
.mobile-menu__social a:focus-visible { border-radius: 50%; }
.mobile-menu__social svg { width: 17px; height: 17px; fill: currentColor; }

/* Idiomas: selector segmentado, el actual relleno en marrón */
.mobile-menu__langs { display: flex; align-items: center; gap: 10px; padding-top: 2px; }
.mobile-menu__langs .lang__ico { color: var(--seed-text); }
.mobile-menu__langs ul {
  list-style: none; margin: 0; padding: 3px; flex: 1; min-width: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  border-radius: 999px; background: var(--white); border: 1px solid var(--line);
}
.mobile-menu .mobile-menu__langs a {
  display: grid; place-items: center; height: 38px; border-radius: 999px; text-decoration: none;
  font: 600 12px/1 var(--sans); letter-spacing: .1em; color: var(--muted); transition: color .3s var(--ease), background-color .3s var(--ease);
}
.mobile-menu .mobile-menu__langs a:hover { color: var(--seed-dark); }
.mobile-menu .mobile-menu__langs a[aria-current] { color: var(--on-seed); background: var(--seed); }
.mobile-menu .mobile-menu__langs a:focus-visible { outline-offset: 1px; border-radius: 999px; }
/* Pantallas bajas (móvil pequeño o en horizontal): todo más junto */
@media (max-height: 780px) {
  .mobile-menu__inner { gap: 12px; }
  .mobile-menu__nav a { min-height: 50px; }
}
:root[data-theme="dark"] .mobile-menu::before { opacity: .16; }
/* Tableta o móvil en horizontal: enlaces a la izquierda; tarjeta, llamadas, redes e idiomas a la derecha,
   el conjunto centrado en el alto libre (con margen automático: si no cabe, se desplaza sin cortar) */
@media (min-width: 700px) {
  .mobile-menu__inner {
    flex: none; margin: auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto auto minmax(0, 1fr); column-gap: clamp(32px, 5vw, 64px); row-gap: 14px; max-width: 1040px;
  }
  .mobile-menu__nav { grid-column: 1; grid-row: 1 / -1; align-self: start; }
  .mobile-menu__join, .mobile-menu__call, .mobile-menu__follow, .mobile-menu__langs { grid-column: 2; }
  .mobile-menu__follow { margin-top: 4px; }
}
@media (min-width: 700px) and (min-height: 900px) {
  .mobile-menu__label { font-size: clamp(40px, 5.6vw, 54px); }
  .mobile-menu__nav a { min-height: 82px; }
  .mobile-menu__inner { row-gap: 18px; }
}
@media (max-width: 340px) { .mobile-menu__claim { display: none; } .mobile-menu__follow { justify-content: flex-end; } }
@media (max-height: 700px) {
  .mobile-menu__label { font-size: clamp(25px, 7.4vw, 32px); }
  .mobile-menu__nav a { min-height: 46px; }
  .mobile-menu__join-copy { padding-block: 14px; }
  .mobile-menu__join-title { font-size: 20px; }
}
@media (max-height: 660px) {
  .mobile-menu__inner { gap: 10px; }
  .mobile-menu__nav a { min-height: 44px; }
  .mobile-menu__join-eyebrow { display: none; }
}

/* Modo claro / oscuro: botón redondo con sol y luna de línea que se relevan girando.
   Sin JS el <head> no pone data-theme y el botón no aparece (no haría nada) */
.theme-toggle {
  position: relative; flex: none; display: grid; place-items: center; width: 42px; height: 42px; padding: 0;
  border-radius: 50%; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); background: transparent; color: inherit;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: border-color .35s var(--ease), background-color .35s var(--ease), transform .35s var(--ease);
}
.theme-toggle:active { transform: scale(.93); }
.theme-toggle:focus-visible { border-radius: 50%; }
.theme-toggle svg { width: 20px; height: 20px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle__sun, .theme-toggle__moon { transform-origin: 12px 12px; transition: opacity .45s var(--ease), transform .9s var(--ease); }
.theme-toggle__sun { opacity: 0; transform: rotate(-100deg) scale(.4); }
:root[data-theme="dark"] .theme-toggle__sun { opacity: 1; transform: none; }
:root[data-theme="dark"] .theme-toggle__moon { opacity: 0; transform: rotate(100deg) scale(.4); }
:root:not([data-theme]) .theme-toggle { display: none; }
@media (hover: hover) {
  .theme-toggle:hover { border-color: color-mix(in srgb, currentColor 75%, transparent); background-color: color-mix(in srgb, currentColor 9%, transparent); }
}
/* Al cambiar de tema, todo cambia de golpe (sin transiciones a medias); solo giran el sol y la luna.
   Con View Transitions el cambio se revela en un círculo que crece desde el botón (main.js) */
:root.theme-instant *:not(.theme-toggle *), :root.theme-instant *::before, :root.theme-instant *::after { transition: none !important; }
:root.theme-vt::view-transition-old(root), :root.theme-vt::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* --------------------------------------------------------------------------
   Idiomas: botón con el código del idioma (ES) y menú de idiomas en la cabecera;
   en el móvil, fila de códigos dentro del menú. El botón toma el color de la
   cabecera (blanco sobre el vídeo, tinta sobre la cabecera sólida).
   -------------------------------------------------------------------------- */
.lang { position: relative; flex: none; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px 0 11px; border-radius: 999px;
  border: 1px solid rgba(127,127,127,.45); border-color: color-mix(in srgb, currentColor 36%, transparent);
  font: 600 12.5px/1 var(--sans); letter-spacing: .12em; list-style: none; cursor: pointer; user-select: none; -webkit-user-select: none;
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
}
.lang__btn::-webkit-details-marker { display: none; }
.lang__btn::marker { content: ""; }
.lang__btn:hover, .lang[open] .lang__btn { background: color-mix(in srgb, currentColor 9%, transparent); border-color: color-mix(in srgb, currentColor 60%, transparent); }
.header:not(.is-solid) .lang__btn { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lang__ico { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.25; }
.lang__code { padding-top: 1px; }
.lang__chev { width: 10px; height: 10px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: .7; transition: transform .45s var(--ease); }
.lang[open] .lang__chev { transform: rotate(180deg); }
.lang__menu {
  position: absolute; top: calc(100% + 10px); left: 50%; z-index: 5; min-width: 214px; margin: 0; padding: 6px; list-style: none;
  transform: translateX(-50%); background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 32px 60px -30px rgba(var(--photo-shade), .5), 0 2px 8px rgba(var(--photo-shade), .06);
}
.lang[open] .lang__menu { animation: lang-in .4s var(--ease); }
@keyframes lang-in { from { opacity: 0; transform: translate(-50%, -6px); } }
.lang__menu a {
  display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 0 14px 0 12px; border-radius: 11px;
  font: 450 15px/1.2 var(--sans); color: var(--ink); text-decoration: none; transition: background-color .25s var(--ease);
}
.lang__menu a:hover { background: var(--paper); }
.header .lang .lang__menu a:focus-visible { outline: 2px solid var(--seed); outline-offset: -2px; border-radius: 11px; background: var(--paper); }
.lang__iso { width: 22px; flex: none; font: 600 11px/1 var(--sans); letter-spacing: .12em; color: var(--seed-text); }
.lang__menu a[aria-current] { color: var(--seed-dark); font-weight: 600; }
.lang__menu a[aria-current]::after {
  content: ""; flex: none; width: 15px; height: 15px; margin-left: auto; background-color: var(--seed);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.2 8.4l3.1 3.1 6.5-6.8' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.2 8.4l3.1 3.1 6.5-6.8' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (max-width: 640px) { .header .lang { display: none; } }
@media (prefers-reduced-motion: reduce) { .lang[open] .lang__menu { animation: none; } }
/* Textos traducidos más largos que el español: un botón pasa a dos líneas antes que cortar el texto
   (los de la cabecera, no); una palabra que no cabe en su caja se parte y, en alemán y neerlandés
   (palabras compuestas muy largas), las palabras largas se parten con guion. */
.btn { white-space: normal; text-align: center; text-wrap: balance; }
.header .btn { white-space: nowrap; }
:root:not([lang="es"]) :is(h1, h2, h3, .btn, .eyebrow, .stat__label, .field__label, legend, label, .chip, dt, dd, .footer__list a) { overflow-wrap: break-word; }
:root:is([lang="de"], [lang="nl"]) :is(h1, h2, h3, .btn, .eyebrow, .stat__label, .field__label, legend, label, .chip, dt, dd, .footer__list a) { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 10 4 4; }
/* Cabecera que no cabe en una línea (main.js pone .is-compact): menú en el botón, como en pantallas pequeñas */
.header.is-compact .header__nav { display: none; }
.header.is-compact .header__inner { grid-template-columns: 1fr auto; }
.header.is-compact .burger { display: block; }

/* --------------------------------------------------------------------------
   Portada con vídeo
   -------------------------------------------------------------------------- */
.hero { position: relative; height: 100svh; min-height: 600px; color: #fff; overflow: hidden; isolation: isolate; background: var(--seed-dark); }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__poster, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__poster { transform-origin: 60% 50%; animation: kenburns 24s ease-in-out infinite alternate; }
.hero__video { opacity: 0; transition: opacity 1.2s ease-in-out; }
.hero__video.is-active { opacity: 1; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
.hero__shade { position: absolute; inset: 0; z-index: 2; background:
  linear-gradient(180deg, rgba(30,18,10,.5) 0%, rgba(30,18,10,0) 24%),
  linear-gradient(0deg, rgba(30,18,10,.8) 0%, rgba(30,18,10,.6) 40%, rgba(30,18,10,.4) 65%, rgba(30,18,10,0) 85%),
  linear-gradient(90deg, rgba(30,18,10,.35) 0%, rgba(30,18,10,0) 60%); }
.hero__buffer { position: absolute; z-index: 3; right: var(--pad); top: calc(var(--header-h) + 24px); }
.hero__content { position: absolute; left: 0; right: 0; bottom: clamp(96px, 14vh, 150px); padding: 0 var(--pad); max-width: 1100px; }
.hero__logo-wrap { display: inline-block; margin-bottom: 28px; filter: drop-shadow(0 4px 18px rgba(0,0,0,.3)); }
.hero__logo { display: block; height: clamp(56px, 7vw, 84px); }
.hero__title { font-size: clamp(44px, 7.6vw, 116px); line-height: .98; margin-bottom: 22px; text-shadow: 0 2px 30px rgba(0,0,0,.18); }
.hero__title em { color: var(--flesh); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .line > span { display: inline-block; }
.hero__lead { font-size: clamp(16px, 1.5vw, 19px); max-width: 520px; margin-bottom: 32px; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__chapters { position: absolute; left: var(--pad); right: var(--pad); bottom: 34px; display: flex; gap: 14px; }
.chapter { flex: 1; min-width: 0; display: grid; gap: 10px; font: 500 12px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.chapter__bar { height: 2px; background: rgba(255,255,255,.28); border-radius: 2px; overflow: hidden; }
.chapter__bar span { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
.chapter.is-active { color: #fff; }
.chapter.is-done .chapter__bar span { transform: scaleX(1); }
.chapter__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__sound { position: absolute; right: var(--pad); bottom: 70px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); }
.hero__sound svg { width: 16px; fill: currentColor; }
.hero__sound .i-play { display: none; }
.hero__sound[aria-pressed="true"] .i-play { display: block; }
.hero__sound[aria-pressed="true"] .i-pause { display: none; }
.hero.no-video .hero__chapters, .hero.no-video .hero__sound, .hero__chapters[hidden] { display: none; }
.hero.is-paused .hero__poster { animation-play-state: paused; }

/* --------------------------------------------------------------------------
   Nosotros + cifras
   -------------------------------------------------------------------------- */
.intro { padding: clamp(90px, 13vw, 180px) 0 clamp(70px, 9vw, 120px); background: var(--white); }
.intro__grid { display: grid; grid-template-columns: 220px 1fr; gap: 24px 48px; }
.intro__eyebrow { padding-top: 14px; }
.intro__quote { margin: 0; font: 300 clamp(28px, 3.7vw, 54px)/1.18 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.intro__quote .w { opacity: .16; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(70px, 9vw, 120px); border-top: 1px solid var(--line); }
.stat { padding: 32px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat__num { font: 300 clamp(48px, 6vw, 88px)/1 var(--serif); color: var(--seed); letter-spacing: -.03em; font-variant-numeric: lining-nums; }
.stat__label { color: var(--muted); font-size: 15px; margin-top: 10px; max-width: 220px; }

/* --------------------------------------------------------------------------
   Pilares
   -------------------------------------------------------------------------- */
.pillars { padding: clamp(60px, 8vw, 110px) 0 clamp(90px, 12vw, 160px); background: var(--paper); }
.pillars__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { background: var(--white); border-radius: var(--radius); padding: clamp(28px, 3vw, 44px); box-shadow: 0 1px 0 var(--line), 0 30px 60px -40px rgba(63,38,22,.25); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.pillar:hover { transform: translateY(-6px); box-shadow: 0 1px 0 var(--line), 0 40px 70px -40px rgba(63,38,22,.35); }
.pillar h3 { font-size: clamp(22px, 2vw, 28px); margin-bottom: 14px; }
.pillar p { color: var(--muted); }
/* Iconos de línea propios (SVG en el HTML): medallón con filete fino y trazo marrón semilla */
.pillar__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: clamp(30px, 3.2vw, 44px); }
.pillar__icon { --pillar-disc: var(--paper); position: relative; flex: none; display: grid; place-items: center; width: 92px; height: 92px; border: 1px solid var(--line); border-radius: 50%; color: var(--seed); transition: border-color .6s var(--ease); }
.pillar__icon::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--pillar-disc); transition: background-color .6s var(--ease); }
.pillar__icon svg { position: relative; width: 60px; height: 60px; overflow: visible; }
.pillar__halo { stroke: var(--pillar-disc); stroke-width: 3.6; transition: stroke .6s var(--ease); }
.pillar__num { padding-top: 4px; font: 500 13px/1 var(--sans); letter-spacing: .14em; color: var(--seed-text); font-variant-numeric: tabular-nums; }
.pillar:hover .pillar__icon { --pillar-disc: var(--sand); border-color: var(--seed-light); }
@media (min-width: 1101px) {
  /* Títulos y textos alineados entre las tres tarjetas */
  @supports (grid-template-rows: subgrid) {
    .pillars .pillar { grid-row: span 3; display: grid; grid-template-rows: subgrid; row-gap: 0; }
    .pillar h3 { align-self: end; }
  }
}
@media (max-width: 1100px) {
  .pillars .pillar { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto 1fr; gap: 0 clamp(24px, 4vw, 44px); align-items: start; }
  .pillars .pillar__top { display: contents; }
  .pillar__icon { grid-row: 1 / -1; }
  .pillar__num { padding-top: 6px; margin-bottom: 14px; }
  .pillar p { max-width: 62ch; }
}
@media (max-width: 640px) {
  .pillars .pillar { display: block; }
  .pillars .pillar__top { display: flex; margin-bottom: 26px; }
  .pillar__icon { width: 76px; height: 76px; }
  .pillar__icon::before { inset: 4px; }
  .pillar__icon svg { width: 50px; height: 50px; }
  .pillar__num { margin-bottom: 0; }
}

/* Banda de foto a sangre */
.band { position: relative; height: clamp(420px, 78vh, 820px); overflow: hidden; color: #fff; background: var(--paper); }
/* Marco que se recorta en la entrada (main.js); la foto con paralaje va dentro */
.band__frame { --band-shade: 1; position: absolute; inset: 0; overflow: hidden; background: var(--sand); }
.band__media { position: absolute; inset: -12% 0; }
.band__media img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 60%; }
/* Sombra para leer el texto: aparece con él (--band-shade) */
.band__frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--band-shade);
  background: linear-gradient(0deg, rgba(var(--photo-shade), .78) 0%, rgba(var(--photo-shade), .56) 30%, rgba(var(--photo-shade), .2) 58%, rgba(var(--photo-shade), 0) 80%); }
.band__caption { position: absolute; left: 0; right: 0; bottom: clamp(32px, 6vw, 72px); z-index: 1; }
.band__eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(14px, 1.6vw, 22px); font: 600 12px/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-shadow: 0 1px 12px rgba(var(--photo-shade), .5); }
.band__rule { flex: none; width: clamp(36px, 4vw, 56px); height: 1px; background: currentColor; opacity: .85; transform-origin: 0 50%; }
.band__text { font: 300 clamp(26px, 3.4vw, 48px)/1.15 var(--serif); max-width: 760px; text-wrap: balance; text-shadow: 0 2px 28px rgba(var(--photo-shade), .35); }
/* Líneas del texto (main.js): cada una sube desde su máscara */
.band__text .line { display: block; overflow: hidden; padding: .06em 0 .14em; margin: -.06em 0 -.14em; }
.band__text .line > span { display: inline-block; }
@media (max-width: 640px) {
  .band__eyebrow { gap: 12px; letter-spacing: .18em; }
}

/* --------------------------------------------------------------------------
   Variedades
   -------------------------------------------------------------------------- */
.varieties { padding: clamp(90px, 13vw, 170px) 0; background: var(--white); }
.varieties__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); }
/* Tarjeta con algo de relieve. Al pasar por encima se eleva con "translate", que no choca
   con la aparición de GSAP (esa usa "transform") */
.variety {
  position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0;
  padding: 10px 10px 12px; border-radius: 28px; background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(63,38,22,.05), 0 26px 50px -38px rgba(63,38,22,.34);
  transition: translate .7s var(--ease), box-shadow .7s var(--ease);
}
.variety > :not(.variety__img) { margin-inline: 12px; }
@media (hover: hover) {
  .variety:hover { translate: 0 -6px; box-shadow: 0 1px 2px rgba(63,38,22,.05), 0 46px 70px -44px rgba(63,38,22,.48); }
}
.variety__img { position: relative; aspect-ratio: 1; border-radius: 18px; background: var(--paper); overflow: hidden; margin-bottom: 10px; }
.variety__img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform 1.1s var(--ease), opacity .7s var(--ease); }
.variety:hover .variety__img img { transform: scale(1.06) rotate(-2deg); }
.varieties.is-live .variety__img { cursor: pointer; }
/* «+» sobre la foto: indica que se abre la ficha (decorativo; el botón real es «Ver ficha») */
.variety__peek {
  position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; background: var(--white); color: var(--seed-dark); box-shadow: 0 8px 18px -8px rgba(63,38,22,.45);
  transition: transform .6s var(--ease), background-color .35s var(--ease), color .35s var(--ease);
}
.variety__peek svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.variety:hover .variety__peek { transform: rotate(90deg); background: var(--seed); color: var(--on-seed); }
.variety__tag { font: 600 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--seed-text); }
.variety h3 { font-size: clamp(34px, 3.2vw, 46px); }
.variety p { color: var(--muted); font-size: 15.5px; }
.variety__harvest { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink) !important; font: 400 18px/1.3 var(--serif) !important; }
.variety__harvest span { display: block; font: 600 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.cal { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; }
.cal i { font-style: normal; font-size: 10px; line-height: 1; text-align: center; padding: 6px 0; border-radius: 5px; background: var(--sand); color: var(--muted); }
.cal i.on { background: var(--seed); color: var(--on-seed); font-weight: 600; }
/* Acciones: «Ver ficha» (enlace con flecha) y «Pedir» (botón pequeño) */
.variety__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.variety__more {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none;
  font: 500 15px/1.2 var(--sans); color: var(--seed); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.variety__more::after { content: ""; position: absolute; left: 0; right: 26px; bottom: 11px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.variety__more svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease); }
.variety__more:hover::after { transform: scaleX(1); transform-origin: left; }
.variety__more:hover svg { transform: translateX(4px); }
.variety__order { min-height: 44px; padding-inline: 1.35em; }
/* Llamada a pedir, bajo las tarjetas */
.varieties__cta {
  display: flex; align-items: center; gap: 20px clamp(20px, 3vw, 40px); margin-top: clamp(36px, 4.6vw, 60px);
  padding: clamp(22px, 2.6vw, 30px) clamp(22px, 3vw, 40px); border-radius: 28px; background: var(--paper); border: 1px solid var(--line);
}
.varieties__fruits { display: flex; flex: none; }
.varieties__fruits span { width: 60px; height: 60px; border-radius: 50%; overflow: hidden; background: var(--white); box-shadow: 0 0 0 3px var(--paper), 0 10px 18px -10px rgba(63,38,22,.45); }
.varieties__fruits span + span { margin-left: -14px; }
.varieties__fruits img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transform: scale(1.32) translateY(4%); }
.varieties__cta-copy { flex: 1; min-width: 0; }
.varieties__cta-title { font: 400 clamp(24px, 2.3vw, 32px)/1.15 var(--serif); letter-spacing: -.015em; color: var(--ink); }
.varieties__cta-text { margin-top: 6px; color: var(--muted); font-size: 16px; max-width: 540px; }
.varieties__cta-btn { flex: none; }
.varieties__cta-btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease); }
.varieties__cta-btn:hover svg { transform: translateX(3px); }
.variety__actions[hidden], .variety__peek[hidden], .varieties__cta[hidden] { display: none; }

/* Diálogos de ficha y de pedido: caja centrada en escritorio, hoja a pantalla completa en móvil.
   Mientras están abiertos, la página de fondo no se mueve (Lenis parado y overflow oculto). */
html.vdialog-open { overflow: hidden; }
.vdialog {
  --vd-h: min(760px, calc(100vh - 48px));
  position: fixed; width: min(1060px, calc(100% - 48px)); max-width: none; height: var(--vd-h); max-height: none;
  margin: auto; padding: 0; border: 0; border-radius: 28px; overflow: hidden; background: var(--white); color: var(--ink);
  box-shadow: 0 60px 120px -40px rgba(63,38,22,.55), 0 0 0 1px rgba(63,38,22,.06);
}
@supports (height: 100dvh) { .vdialog { --vd-h: min(760px, calc(100dvh - 48px)); } }
.vdialog[open] { display: flex; flex-direction: column; animation: vd-in .7s var(--ease) both; }
.vdialog::backdrop { background: rgba(42,28,18,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.vdialog[open]::backdrop { animation: vd-fade .5s ease both; }
.vdialog.is-closing { animation: vd-out .24s ease-in both; }
.vdialog.is-closing::backdrop { animation: vd-fade-out .24s ease-in both; }
@keyframes vd-in { from { opacity: 0; transform: translateY(28px) scale(.985); } }
@keyframes vd-out { to { opacity: 0; transform: translateY(14px) scale(.99); } }
@keyframes vd-fade { from { opacity: 0; } }
@keyframes vd-fade-out { to { opacity: 0; } }
.vdialog__scroll { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.vdialog__close {
  position: absolute; top: 14px; right: 14px; z-index: 5; width: 44px; height: 44px; display: grid; place-items: center; padding: 0;
  border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer;
  box-shadow: 0 10px 22px -12px rgba(63,38,22,.45); transition: transform .5s var(--ease), background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.vdialog__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.vdialog__close:hover { transform: rotate(90deg); background: var(--seed); border-color: var(--seed); color: var(--on-seed); }
.vdialog__close:focus-visible { border-radius: 50%; }
[data-vdialog-title]:focus { outline: none; }

/* Ficha: foto grande a la izquierda, datos a la derecha; «Pedir» siempre a la vista */
.ficha { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100%; }
.ficha__media {
  position: sticky; top: 0; height: var(--vd-h); display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(75% 62% at 50% 44%, var(--white) 0%, var(--paper) 58%, var(--sand) 100%);
}
.ficha__media img { width: 86%; height: 86%; object-fit: contain; mix-blend-mode: multiply; transition: opacity .6s var(--ease); }
.ficha__media.is-loading img { opacity: 0; }
.ficha__body { display: flex; flex-direction: column; min-width: 0; min-height: var(--vd-h); padding: clamp(40px, 4vw, 56px) clamp(28px, 4vw, 56px) 0; }
.ficha__content { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.ficha__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 16px; }
.ficha__tag { font: 600 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--seed-text); }
.ficha__season { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px 6px 9px; border-radius: 999px; background: var(--flesh); color: var(--skin); font: 600 12px/1 var(--sans); }
.ficha__season::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ficha__season[hidden] { display: none; }
.ficha__name { font-size: clamp(52px, 5vw, 76px); font-weight: 300; line-height: .95; letter-spacing: -.035em; margin-bottom: 18px; }
.ficha__text { color: var(--muted); font-size: 16.5px; max-width: 46ch; text-wrap: pretty; }
.ficha__block { margin-top: 28px; }
.ficha__row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 12px; }
.ficha__label { font: 600 11px/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.ficha__months { font: 400 18px/1.3 var(--serif); color: var(--ink); }
.ficha__cal { list-style: none; margin: 0; padding: 0 0 10px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.ficha__cal li {
  position: relative; display: grid; place-items: center; height: 40px; border-radius: 8px; background: var(--sand); color: var(--muted);
  font: 600 10.5px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; overflow: visible;
}
.ficha__cal li.is-on { background: var(--seed); color: var(--on-seed); }
.ficha__cal li.is-now { box-shadow: 0 0 0 2px var(--white), 0 0 0 3.5px var(--ink); }
.ficha__cal li.is-now::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--ink); }
.ficha__legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.ficha__key { display: inline-flex; align-items: center; gap: 8px; }
.ficha__key::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--seed); }
.ficha__key--now::before { background: none; box-shadow: inset 0 0 0 1.5px var(--ink); }
.ficha__facts { margin: 12px 0 0; border-top: 1px solid var(--line); }
.ficha__facts > div { display: grid; grid-template-columns: minmax(7.5em, 32%) minmax(0, 1fr); gap: 4px 18px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.ficha__facts dt { color: var(--muted); font-size: 14.5px; }
.ficha__facts dd { margin: 0; color: var(--ink); font-size: 15.5px; }
.ficha__actions {
  position: sticky; bottom: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px;
  margin: 28px calc(-1 * clamp(28px, 4vw, 56px)) 0; padding: 18px clamp(28px, 4vw, 56px) 26px;
  background: var(--white); border-top: 1px solid var(--line);
}
.ficha__order { min-height: 52px; padding-inline: 1.8em; font-size: 16px; }
.ficha__note { flex: 1 1 160px; max-width: 30ch; color: var(--muted); font-size: 14px; line-height: 1.45; }

/* Pedido: foto y presentación a la izquierda, formulario a la derecha */
.vdialog--order { --vd-h: min(840px, calc(100vh - 48px)); width: min(1120px, calc(100% - 48px)); }
@supports (height: 100dvh) { .vdialog--order { --vd-h: min(840px, calc(100dvh - 48px)); } }
.pedido { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 100%; }
.pedido__aside {
  position: sticky; top: 0; height: var(--vd-h); display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(28px, 3vw, 44px); overflow: hidden; isolation: isolate; color: var(--on-dark); background: var(--seed-dark);
}
.pedido__photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.pedido__aside::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--shade) 5%, transparent) 0%, color-mix(in srgb, var(--shade) 38%, transparent) 30%, color-mix(in srgb, var(--shade) 80%, transparent) 56%, color-mix(in srgb, var(--shade) 92%, transparent) 100%);
}
.pedido__intro .eyebrow { color: var(--flesh); }
.pedido__title { font-size: clamp(38px, 3.6vw, 54px); line-height: 1.02; color: inherit; margin-bottom: 14px; text-wrap: balance; }
.pedido__title em { color: var(--flesh); }
.pedido__lead { font-size: 17px; max-width: 34ch; }
.pedido__points { list-style: none; margin: 24px 0 0; padding: 20px 0 0; display: grid; gap: 10px; font-size: 14.5px; line-height: 1.45; border-top: 1px solid color-mix(in srgb, var(--on-dark) 28%, transparent); }
.pedido__points li { display: flex; gap: 10px; }
.pedido__points li::before {
  content: ""; flex: none; width: 16px; height: 16px; margin-top: 2px; background-color: var(--flesh);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.2 8.4l3.1 3.1 6.5-6.8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.2 8.4l3.1 3.1 6.5-6.8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pedido__main { min-width: 0; padding: clamp(40px, 4.4vw, 60px) clamp(24px, 4vw, 56px) clamp(32px, 3.4vw, 48px); }
/* Solo maquetación: los campos, opciones, casilla y botones usan los estilos comunes del formulario */
.order { position: relative; container-type: inline-size; }
.order__fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; }
.order__fields[hidden] { display: none; }
.order__group { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.order .field-row { align-items: start; } /* un aviso de error bajo un campo no descuadra el de al lado */
.order__legend { display: flex; align-items: baseline; gap: 12px; padding: 0; margin-bottom: 20px; font: 400 26px/1.15 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.order__legend span { font: 600 12px/1 var(--sans); letter-spacing: .14em; color: var(--seed-text); }
.order__err { display: flex; gap: 8px; align-items: flex-start; color: var(--error); font-size: 14px; line-height: 1.4; }
.order__err::before {
  content: ""; flex: none; width: 16px; height: 16px; margin-top: 1px; background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='7.25' fill='none' stroke='black' stroke-width='1.5'/%3E%3Cpath d='M9 5.2v4.6M9 12.6v.1' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='7.25' fill='none' stroke='black' stroke-width='1.5'/%3E%3Cpath d='M9 5.2v4.6M9 12.6v.1' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.order__err[hidden] { display: none; }
.order__consent { display: grid; gap: 4px; }
.order__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.order__submit .btn { min-height: 52px; padding-inline: 1.9em; font-size: 16px; }
.order__call { flex: 1 1 220px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.order__call a { color: var(--seed); font-weight: 600; white-space: nowrap; text-decoration: none; }
.order__call a:hover { text-decoration: underline; text-underline-offset: 3px; }
.order .form__done:not([hidden]) { min-height: calc(var(--vd-h) - 140px); align-content: center; }

/* Tableta: una columna (foto arriba en la ficha, sin foto en el pedido) */
@media (max-width: 1100px) {
  .varieties .varieties__grid { row-gap: clamp(16px, 2.6vw, 28px); }
}
@media (max-width: 960px) {
  .vdialog, .vdialog--order { width: min(680px, calc(100% - 48px)); height: auto; max-height: calc(100vh - 48px); }
  @supports (height: 100dvh) { .vdialog, .vdialog--order { max-height: calc(100dvh - 48px); } }
  .ficha, .pedido { grid-template-columns: minmax(0, 1fr); }
  .ficha__media { position: relative; height: auto; aspect-ratio: 16 / 11; }
  .ficha__media img { width: auto; height: 88%; max-width: 88%; }
  .ficha__body { min-height: 0; padding-top: 36px; }
  .pedido__aside { position: static; height: auto; padding: clamp(32px, 6vw, 48px) clamp(24px, 5vw, 44px) 0; color: var(--ink); background: none; }
  .pedido__photo, .pedido__aside::before, .pedido__points { display: none; }
  .pedido__intro .eyebrow { color: var(--seed-text); }
  .pedido__title { padding-right: 48px; }
  .pedido__title em { color: var(--seed); }
  .pedido__lead { color: var(--muted); max-width: none; }
  .pedido__main { padding: 30px clamp(24px, 5vw, 44px) clamp(28px, 5vw, 40px); }
  .order .form__done:not([hidden]) { min-height: 0; padding-block: 24px 8px; }
}
/* Móvil: hoja a pantalla completa que se desplaza; «Pedir» fijo abajo en la ficha */
@media (max-width: 640px) {
  .varieties__cta { flex-wrap: wrap; }
  .varieties__cta-copy { flex-basis: calc(100% - 120px); }
  .varieties__cta-btn { width: 100%; }
  .vdialog, .vdialog--order { width: 100%; height: calc(100vh - 10px); max-height: none; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  @supports (height: 100dvh) { .vdialog, .vdialog--order { height: calc(100dvh - 10px); max-height: none; } }
  .vdialog[open] { animation-name: vd-up; animation-duration: .6s; }
  .vdialog.is-closing { animation-name: vd-down; animation-duration: .26s; }
  .vdialog__close { top: 12px; right: 12px; }
  .ficha__media { aspect-ratio: 5 / 4; }
  .ficha__body { padding: 28px 20px 0; }
  .ficha__name { font-size: 54px; margin-bottom: 16px; }
  .ficha__text { font-size: 16px; }
  .ficha__block { margin-top: 26px; }
  .ficha__cal { gap: 3px; }
  .ficha__cal li { height: 36px; font-size: 9.5px; letter-spacing: 0; border-radius: 6px; }
  .ficha__facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ficha__actions { margin: 24px -20px 0; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); }
  .ficha__order { flex: 1 1 100%; }
  .ficha__note { flex-basis: 100%; max-width: none; font-size: 13.5px; text-align: center; }
  .pedido__aside { padding: 30px 20px 0; }
  .pedido__title { font-size: 38px; }
  .pedido__lead { font-size: 16px; }
  .pedido__main { padding: 26px 20px calc(28px + env(safe-area-inset-bottom)); }
  .order__legend { font-size: 24px; }
  .order__submit .btn { flex: 1 1 100%; }
}
@keyframes vd-up { from { transform: translateY(70px); opacity: 0; } }
@keyframes vd-down { to { transform: translateY(60px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .vdialog[open], .vdialog[open]::backdrop, .vdialog.is-closing, .vdialog.is-closing::backdrop { animation: none; }
  .variety:hover { translate: none; }
}

/* --------------------------------------------------------------------------
   Servicios
   -------------------------------------------------------------------------- */
/* Colores fijos de los aguacates decorativos: son una ilustración, no cambian con el tema */
:root {
  --avo-skin-hi: #5d6f34;     /* piel iluminada */
  --avo-skin: #2f3a20;        /* piel */
  --avo-skin-deep: #12170b;   /* piel en sombra */
  --avo-rim: #557a20;         /* verde intenso bajo la piel */
  --avo-flesh-edge: #93ad3e;  /* pulpa junto a la piel */
  --avo-flesh-mid: #cbd472;   /* pulpa intermedia */
  --avo-flesh: #e8e8a8;       /* pulpa */
  --avo-flesh-core: #f6f1cb;  /* pulpa junto a la semilla */
  --avo-seed-hi: #e3bb8f;     /* brillo de la semilla */
  --avo-seed-light: #b27c4b;  /* semilla iluminada */
  --avo-seed: #7b4828;        /* semilla */
  --avo-seed-deep: #2b1609;   /* semilla en sombra */
  --avo-stem: #8a6a43;        /* rabillo */
  --avo-leaf-hi: #6b8a3a;     /* hoja iluminada */
  --avo-leaf: #3f5e27;        /* hoja */
  --avo-leaf-deep: #22381a;   /* hoja en sombra */
  --avo-leaf-vein: #b9c98a;   /* nervios de la hoja */
  --avo-light: #fffaf0;       /* luz y brillos (también el reflejo sobre las fotos) */
}
.services {
  /* Distancia del borde de la página al de las tarjetas (el hueco lateral) */
  --svc-g: calc((100% - min(100%, var(--max))) / 2 + var(--pad));
  --svc-shadow: 0 1px 1px rgba(63,38,22,.04), 0 2px 6px -1px rgba(63,38,22,.05), 0 10px 22px -8px rgba(63,38,22,.09), 0 26px 48px -20px rgba(63,38,22,.13), 0 50px 90px -40px rgba(63,38,22,.16);
  --svc-shadow-up: 0 2px 4px rgba(63,38,22,.04), 0 8px 16px -6px rgba(63,38,22,.08), 0 22px 40px -14px rgba(63,38,22,.14), 0 46px 80px -28px rgba(63,38,22,.2), 0 80px 130px -50px rgba(63,38,22,.24);
  position: relative; isolation: isolate; overflow: hidden; overflow: clip;
  padding: clamp(90px, 13vw, 170px) 0; background: var(--paper);
}
.services > .container { position: relative; z-index: 1; }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.2vw, 32px); }

/* Tarjetas con profundidad */
.service { display: flex; }
.service__card {
  position: relative; flex: 1; display: flex; flex-direction: column;
  padding: 10px 10px clamp(26px, 2.4vw, 34px);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--svc-shadow);
  transition: transform .7s var(--ease), border-color .6s var(--ease);
}
/* Sombra más honda al pasar (se funde con opacidad: más fluido que animar la sombra) */
.service__card::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: var(--svc-shadow-up); opacity: 0; transition: opacity .7s var(--ease); pointer-events: none; }
/* Brillo que sigue al puntero sobre la foto */
.service__card::before {
  content: ""; position: absolute; z-index: 1; top: 10px; left: 10px; right: 10px; aspect-ratio: 4 / 3;
  border-radius: calc(var(--radius) - 10px); pointer-events: none; opacity: 0; transition: opacity .6s var(--ease);
  background: radial-gradient(circle at var(--svc-mx, 30%) var(--svc-my, 20%), color-mix(in srgb, var(--avo-light) 30%, transparent), transparent 58%);
}
.service__img { position: relative; isolation: isolate; aspect-ratio: 4 / 3; border-radius: calc(var(--radius) - 10px); overflow: hidden; background: var(--sand); margin: 0 0 clamp(22px, 2.2vw, 28px); }
.service__img::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(63,38,22,.07); pointer-events: none; }
.service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease), opacity .7s var(--ease); }
/* Número: píldora de cristal sobre la esquina de la foto */
.service__num {
  position: absolute; z-index: 2; top: 22px; left: 22px;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px 8px 11px; border-radius: 999px;
  font: 400 16px/1 var(--serif); letter-spacing: .03em; font-variant-numeric: lining-nums tabular-nums; color: var(--ink);
  background: var(--white); background: color-mix(in srgb, var(--white) 76%, transparent);
  border: 1px solid color-mix(in srgb, var(--white) 70%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(1.6); backdrop-filter: blur(12px) saturate(1.6);
  box-shadow: 0 8px 20px -8px rgba(63,38,22,.4), inset 0 1px 0 color-mix(in srgb, var(--white) 85%, transparent);
}
.service__num::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--seed); box-shadow: 0 0 0 3px color-mix(in srgb, var(--seed) 16%, transparent); }
.service h3, .service p { padding: 0 clamp(14px, 1.3vw, 20px); }
.service h3 { font-size: clamp(24px, 2.2vw, 30px); margin-bottom: 10px; }
.service p { color: var(--muted); font-size: 15.5px; }
.service:focus-within .service__card { transform: translateY(-6px); }
.service:focus-within .service__card::after { opacity: 1; }
/* Solo con ratón o trackpad: se eleva, se inclina hacia el puntero (main.js) y la foto se acerca */
@media (hover: hover) and (pointer: fine) {
  .service:hover .service__card { transform: perspective(1100px) rotateX(var(--svc-rx, 0deg)) rotateY(var(--svc-ry, 0deg)) translate3d(0, -8px, 0); }
  .service:hover .service__card::after, .service:hover .service__card::before { opacity: 1; }
  .service:hover .service__img img { transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .service:hover .service__img img { transform: none; }
}

/* Detalles laterales: raíles con texto vertical y aguacates (solo donde hay hueco) */
.services__decor { display: none; }
.services__rail { --svc-rail: min(calc(var(--svc-g) * .42), 76px); position: absolute; top: clamp(96px, 9vw, 150px); bottom: clamp(96px, 9vw, 150px); left: var(--svc-rail); width: 1px; background: var(--line); }
.services__rail--r { left: auto; right: var(--svc-rail); }
.services__rail::before, .services__rail::after { content: ""; position: absolute; left: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--seed-light); }
.services__rail::before { top: -2px; }
.services__rail::after { bottom: -2px; }
.services__rail-fill { position: absolute; inset: 0; background: linear-gradient(var(--seed-light), var(--seed)); transform: scaleY(0); transform-origin: 50% 0; }
.services__rail-text {
  position: absolute; left: 50%; top: var(--svc-at, 50%); padding: 22px 0; background: var(--paper);
  writing-mode: vertical-rl; transform: translate(-50%, -50%) rotate(180deg); white-space: nowrap;
  font: 600 10.5px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--seed-text);
}
.services__rail--l .services__rail-text { --svc-at: 50%; }
.services__rail--r .services__rail-text { --svc-at: 86%; transform: translate(-50%, -50%); }
.services__avo { position: absolute; width: var(--svc-w); filter: drop-shadow(0 26px 22px rgba(63,38,22,.16)) drop-shadow(0 6px 6px rgba(63,38,22,.18)); will-change: transform; }
.services__avo svg { width: 100%; height: auto; overflow: visible; rotate: var(--svc-r, 0deg); }
/* Cada aguacate asoma desde el borde: su tamaño sale del hueco y nunca llega a las tarjetas */
.services__avo--half { --svc-w: clamp(140px, calc(var(--svc-g) * 1.15 + 20px), 330px); --svc-r: -28deg; top: 5%; left: min(calc(var(--svc-g) - 40px - var(--svc-w)), calc(var(--svc-w) * -.3)); }
.services__avo--whole { --svc-w: clamp(120px, calc(var(--svc-g) * .95 + 20px), 270px); --svc-r: -22deg; top: 40%; right: min(calc(var(--svc-g) - 40px - var(--svc-w)), calc(var(--svc-w) * -.28)); }
.services__avo--cut { --svc-w: clamp(115px, calc(var(--svc-g) * .9 + 20px), 240px); --svc-r: -24deg; bottom: 7%; left: min(calc(var(--svc-g) - 40px - var(--svc-w)), calc(var(--svc-w) * -.22)); }
@media (min-width: 1180px) {
  .services__decor { display: block; position: absolute; inset: 0; z-index: 0; pointer-events: none; }
}
@media (max-width: 1399px) {
  .services__avo { display: none; }
}

/* Calidad */
.quality { position: relative; min-height: clamp(460px, 90vh, 880px); display: grid; align-items: center; overflow: hidden; color: #fff; background: var(--seed-dark); }
.quality__media { position: absolute; inset: -12% 0; }
.quality__media img { width: 100%; height: 100%; object-fit: cover; }
.quality::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 70% at 50% 50%, rgba(30,18,10,.55), rgba(30,18,10,.2)); }
.quality__content { position: relative; z-index: 1; text-align: center; }
.quality__text { font: 300 clamp(40px, 7vw, 112px)/1 var(--serif); letter-spacing: -.03em; max-width: 1100px; margin: 0 auto; }
.quality__text .w { opacity: .2; }

/* --------------------------------------------------------------------------
   Agricultores
   -------------------------------------------------------------------------- */
.growers { padding: clamp(90px, 13vw, 170px) 0 clamp(60px, 8vw, 100px); background: var(--white); }
.growers__top { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(40px, 6vw, 80px); }
.growers__top .head { margin-bottom: 0; }
.growers .title { font-size: clamp(32px, 4.6vw, 64px); }
.growers__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; background: var(--sand); }
.growers__img img { width: 100%; height: 100%; object-fit: cover; }
.perks { list-style: none; margin: 0 0 clamp(50px, 7vw, 90px); padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.perk { padding: 32px 28px 36px 0; border-bottom: 1px solid var(--line); }
.perk:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.perk__n { font: 500 13px/1 var(--sans); color: var(--seed-text); letter-spacing: .14em; }
.perk h3 { font-size: 24px; margin: 14px 0 8px; }
.perk p { color: var(--muted); font-size: 15.5px; }
.steps { list-style: none; margin: 0; padding: clamp(28px, 4vw, 52px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-radius: var(--radius); background: var(--sand); }
.steps li { position: relative; }
.steps li span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--seed); color: var(--on-seed); font: 600 15px var(--sans); margin-bottom: 16px; position: relative; z-index: 1; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: 54px; right: -12px; border-top: 1px dashed rgba(107,66,38,.4); }
.steps strong { display: block; font: 400 21px/1.2 var(--serif); margin-bottom: 4px; }
.steps p { font-size: 14.5px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Formulario
   -------------------------------------------------------------------------- */
.join { padding: clamp(60px, 8vw, 100px) 0 clamp(90px, 13vw, 170px); background: var(--white); }
.join__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.join__intro { position: sticky; top: calc(var(--header-h) + 40px); }
.join__intro .title { margin-bottom: 20px; }
.join__intro > p { color: var(--muted); font-size: 18px; max-width: 440px; }
.join__direct { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 12px; max-width: 380px; }
.join__direct li { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.join__direct span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .16em; }
.join__direct a { font: 400 26px var(--serif); text-decoration: none; color: var(--seed); }
.join__hours { margin-top: 14px; color: var(--muted); font-size: 14px; max-width: 380px; }
.form {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 3.4vw, 48px); overflow: hidden;
  box-shadow: 0 1px 0 var(--line), 0 40px 80px -60px rgba(63,38,22,.28);
  container-type: inline-size; /* los grupos de opciones se recolocan según el ancho real del formulario */
}
.form__progress { position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--line); }
.form__progress span { display: block; height: 100%; width: 50%; background: var(--seed); transition: width .6s var(--ease); }
.form__stepinfo { font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.form__step { border: 0; margin: 0; padding: 0; min-width: 0; display: none; }
.form__step.is-active { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; animation: step-in .6s var(--ease); }
@keyframes step-in { from { opacity: 0; transform: translateX(20px); } }
.form legend { font: 400 34px/1.1 var(--serif); letter-spacing: -.015em; padding: 0; margin-bottom: 28px; }

/* Campos: mismo alto, borde, esquina y tamaño de letra en todos los controles */
.field { display: grid; gap: 10px; min-width: 0; align-content: start; }
.field__label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font: 600 14px/1.35 var(--sans); color: var(--ink); }
.field__opt { font: italic 400 15px/1 var(--serif); letter-spacing: 0; color: var(--muted); }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: end; }
.field :where(input:not([type="checkbox"], [type="radio"]), select, textarea) {
  display: block; width: 100%; min-width: 0; height: var(--ctl-h); margin: 0; padding: 0 16px;
  font: 400 16px/1.4 var(--sans); color: var(--ink); background-color: var(--white);
  border: 1px solid var(--control-line); border-radius: var(--ctl-radius); box-shadow: none;
  -webkit-appearance: none; appearance: none;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.field textarea { height: auto; min-height: 124px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
/* Desplegable sin estilo nativo (Safari lo pintaba cuadrado y más bajo): flecha dibujada con el color del tema */
.field select {
  padding-right: 46px; cursor: pointer; text-overflow: ellipsis;
  background-image:
    linear-gradient(45deg, transparent 41%, var(--seed) 44% 56%, transparent 59%),
    linear-gradient(-45deg, transparent 41%, var(--seed) 44% 56%, transparent 59%);
  background-position: right 25px center, right 18px center;
  background-size: 7px 7px; background-repeat: no-repeat;
}
.field select:has(option[value=""]:checked) { color: var(--muted); }
.field option { color: var(--ink); background-color: var(--white); }
.field ::placeholder { color: var(--muted); opacity: 1; }
@media (hover: hover) {
  .field :where(input:not([type="checkbox"], [type="radio"]), select, textarea):hover { border-color: var(--seed-text); }
}
.field :where(input:not([type="checkbox"], [type="radio"]), select, textarea):focus { outline: none; border-color: var(--seed); box-shadow: 0 0 0 1px var(--seed), 0 0 0 5px rgba(63,38,22,.12); }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--ink); box-shadow: inset 0 0 0 100px var(--paper); }
.field input:-webkit-autofill:focus { box-shadow: inset 0 0 0 100px var(--paper), 0 0 0 1px var(--seed), 0 0 0 5px rgba(63,38,22,.12); }
.is-invalid { border-color: var(--error) !important; }
.field .is-invalid { box-shadow: 0 0 0 1px var(--error); }
.field .is-invalid:focus { box-shadow: 0 0 0 1px var(--error), 0 0 0 5px rgba(63,38,22,.12); }

/* Grupos de opciones: un solo bloque segmentado, celdas del mismo alto separadas por una raya fina.
   Marcado: <div class="chips" style="--n: N"> > <label class="chip"><input radio|checkbox><span>Texto</span></label>
   --n = número de opciones = columnas en una fila. La raya entre celdas es el hueco de 1px de la rejilla. */
.chips, .check {
  --ico-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.2 8.4l3.1 3.1 6.5-6.8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --ico-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5v9M3.5 8h9' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
}
/* Cada grupo se mide por el ancho de su caja (aquí .field): se recoloca igual en cualquier formulario */
:has(> .chips) { container-type: inline-size; }
.chips {
  display: grid; grid-template-columns: repeat(var(--n, 3), auto); gap: 1px;
  background: var(--line); border: 1px solid var(--control-line); border-radius: var(--ctl-radius); overflow: hidden;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.chip { position: relative; display: grid; min-width: 0; background: var(--white); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.chip span {
  display: flex; align-items: center; justify-content: center; gap: 7px; min-height: calc(var(--ctl-h) - 2px); padding: 8px 10px;
  font: 450 16px/1.25 var(--sans); color: var(--ink); text-align: center; overflow-wrap: break-word; hyphens: auto;
  background: var(--white); transition: background-color .3s var(--ease), color .3s var(--ease);
}
@media (hover: hover) { .chip:hover span { background: var(--paper); } }
.chip input:checked + span { background: var(--seed); color: var(--white); }
.chip input:focus-visible + span { outline: 2px solid var(--seed); outline-offset: -6px; }
.chip input:checked:focus-visible + span { outline-color: var(--white); }
/* Casillas (varias respuestas): un «+» que pasa a ✓ al marcar; mismo ancho, sin saltos */
.chip input[type="checkbox"] + span::before {
  content: ""; flex: none; width: 14px; height: 14px; background-color: currentColor; opacity: .6;
  -webkit-mask: var(--ico-plus) center / contain no-repeat; mask: var(--ico-plus) center / contain no-repeat;
}
.chip input[type="checkbox"]:checked + span::before { -webkit-mask-image: var(--ico-check); mask-image: var(--ico-check); opacity: 1; animation: tick-in .45s var(--ease); }
@keyframes tick-in { from { transform: scale(.3) rotate(-25deg); } }
.chips.is-invalid { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
/* Si no caben en una fila: rejilla ordenada dentro del mismo bloque, sin celdas vacías */
@container (400px <= width < 540px) {
  .chips:has(> :nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chips:has(> :nth-child(5)) > .chip:last-child:nth-child(3n + 2) { grid-column: span 2; }
  .chips:has(> :nth-child(5)) > .chip:last-child:nth-child(3n + 1) { grid-column: span 3; }
}
@container (width < 400px) {
  .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chips > .chip:last-child:nth-child(odd) { grid-column: span 2; }
  .chips:has(> :nth-child(3):last-child) { grid-template-columns: minmax(0, 1fr); }
  .chips:has(> :nth-child(3):last-child) > .chip:last-child { grid-column: auto; }
}
@container (width < 260px) { .chip span { padding-inline: 6px; } }

/* Casilla de privacidad */
.check { display: flex; gap: 12px; align-items: center; min-height: 44px; font-size: 15px; line-height: 1.45; color: var(--ink); cursor: pointer; }
.check input {
  flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin: 0;
  background: var(--white); border: 1px solid var(--control-line); border-radius: 6px; cursor: pointer;
  -webkit-appearance: none; appearance: none; transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.check input::before {
  content: ""; width: 14px; height: 14px; background-color: var(--white); transform: scale(0); transition: transform .3s var(--ease);
  -webkit-mask: var(--ico-check) center / contain no-repeat; mask: var(--ico-check) center / contain no-repeat;
}
.check input:checked { background-color: var(--seed); border-color: var(--seed); }
.check input:checked::before { transform: none; }
@media (hover: hover) { .check:hover input:not(:checked) { border-color: var(--seed-text); } }
.check.is-invalid input { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.check a { color: var(--seed); text-underline-offset: 3px; }

/* Botones dentro de formularios: misma esquina que los campos */
.form .btn, .order .btn { border-radius: var(--ctl-radius); }
.form .btn { min-height: var(--ctl-h); padding: .9em 1.7em; font-size: 16px; }
.form .btn--line { --bg: var(--white); --bd: var(--control-line); }
.form__next { justify-self: start; margin-top: 4px; }
.form__next svg { width: 18px; height: 18px; flex: none; transition: transform .45s var(--ease); }
.form__next:hover svg { transform: translateX(3px); }
.form__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.form__error { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border: 1px solid var(--error); border-radius: var(--ctl-radius); background: var(--white); color: var(--error); font-size: 15px; line-height: 1.45; }
.form__error::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='7.25' fill='none' stroke='black' stroke-width='1.5'/%3E%3Cpath d='M9 5.2v4.6M9 12.6v.1' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='7.25' fill='none' stroke='black' stroke-width='1.5'/%3E%3Cpath d='M9 5.2v4.6M9 12.6v.1' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.form__error:empty { display: none; }
.btn__spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid transparent; border-top-color: currentColor; border-left-color: currentColor; animation: spin .8s linear infinite; }
.btn.is-busy .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Paneles de gracias y de envío fallido */
.form__done { text-align: center; padding: 28px 0 4px; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 14px; }
.form__done[hidden] { display: none; }
.form__done:focus { outline: none; }
.form__done-ico { width: 72px; height: 72px; border-radius: 50%; background: var(--seed); color: var(--white); display: grid; place-items: center; margin-bottom: 6px; }
.form__done-ico svg { width: 34px; }
.form__done-ico--warn { background: var(--sand); color: var(--seed); box-shadow: inset 0 0 0 1px var(--line); }
.form__done h3 { font-size: clamp(28px, 3vw, 34px); max-width: 520px; text-wrap: balance; }
.form__done p { color: var(--muted); max-width: 380px; text-wrap: pretty; }
.form__fb-actions { display: grid; gap: 10px; width: 100%; max-width: 470px; margin-top: 12px; }
.form__fb-actions .btn { width: 100%; white-space: normal; text-align: center; overflow-wrap: anywhere; line-height: 1.3; }
.form__fb-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 22px; }
.form__fb-links .link-btn { min-height: 44px; padding: 0 4px; font-size: 15px; text-underline-offset: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Formulario estrecho (móvil o columna lateral estrecha) */
@container (width < 400px) {
  .form legend { font-size: 30px; margin-bottom: 22px; }
  .form__step.is-active { gap: 24px; }
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .form__next { justify-self: stretch; }
  .form__actions { display: grid; grid-template-columns: auto minmax(0, 1fr); }
  .form__actions .btn { padding-inline: 1.2em; }
  .form__fb-actions .btn { padding-inline: 14px; font-size: 15px; }
}

/* --------------------------------------------------------------------------
   Mercados, partners, cita final
   -------------------------------------------------------------------------- */
.markets {
  --mk-pad: clamp(90px, 13vw, 170px);
  /* Mapa: ancho y punto de la sección donde cae Tenerife (el resto del mapa se coloca solo) */
  --mk-w: min(1080px, 76.7vw);
  --mk-x: calc(50% - var(--mk-w) * .27);
  --mk-y: calc(var(--mk-pad) + var(--mk-w) * .366);
  --mk-fade: 100px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  padding: var(--mk-pad) 0;
  background: var(--paper);
  background: radial-gradient(90% 80% at 50% 42%, transparent 58%, color-mix(in srgb, var(--sand) 70%, transparent)), var(--paper);
}
.markets > .container { position: relative; z-index: 1; }
/* El texto se separa del mapa con un halo del color del papel */
.markets .title, .markets__list li { text-shadow: 0 0 2px var(--paper), 0 0 5px var(--paper), 0 0 12px var(--paper); }
.markets .eyebrow { background: var(--paper); border-radius: 999px; box-shadow: 0 0 10px 8px var(--paper); }

/* Mapa de puntos de fondo (decorativo). Los puntos son una máscara (mapa-mercados.svg,
   generado con scripts/build-map.mjs) y el SVG superpuesto comparte su viewBox: islas,
   rutas y destinos. Los colores salen de las variables. En las máscaras solo cuenta la opacidad. */
.markets__map {
  position: absolute; inset: -32px 0; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, rgb(0 0 0 / .3) calc(var(--mk-fade) * .55), black var(--mk-fade), black calc(100% - var(--mk-fade)), transparent);
          mask-image: linear-gradient(to bottom, transparent, rgb(0 0 0 / .3) calc(var(--mk-fade) * .55), black var(--mk-fade), black calc(100% - var(--mk-fade)), transparent);
}
.markets__frame {
  position: absolute; left: var(--mk-x); top: calc(var(--mk-y) + 32px); width: var(--mk-w); aspect-ratio: 864 / 723;
  transform: translate(-18.68%, -79.6%); /* Tenerife (161.4, 575.5 de 864 × 723) */
  -webkit-mask-image: radial-gradient(64% 72% at 36% 54%, black 46%, transparent 100%);
          mask-image: radial-gradient(64% 72% at 36% 54%, black 46%, transparent 100%);
}
.markets__dots {
  position: absolute; inset: 0; background: var(--seed-light); opacity: .36;
  -webkit-mask: url("/assets/img/mapa-mercados.svg") 0 0 / 100% 100% no-repeat;
          mask: url("/assets/img/mapa-mercados.svg") 0 0 / 100% 100% no-repeat;
}
.markets__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.markets__glow-in { stop-color: var(--flesh); stop-opacity: .95; }
.markets__glow-out { stop-color: var(--flesh); stop-opacity: 0; }
.markets__isles { fill: var(--seed); stroke: var(--seed); stroke-width: .9; stroke-linejoin: round; }
.markets__ring { fill: none; stroke: var(--seed); stroke-width: .8; opacity: .3; }
.markets__ring--pulse { opacity: 0; transform-box: fill-box; transform-origin: center; }
.markets__route { fill: none; stroke: var(--seed); stroke-width: 1; stroke-linecap: round; opacity: .55; }
.markets__pin-ring { fill: var(--paper); stroke: var(--seed); stroke-width: .9; }
.markets__pin-dot { fill: var(--seed); }
.markets__trail { fill: none; stroke: var(--seed-dark); stroke-width: 1.6; stroke-linecap: round; opacity: 0; }
.markets__light { opacity: 0; }
.markets__light-glow { fill: url(#mk-glow); }
.markets__light-dot { fill: var(--seed-dark); }
@media (prefers-reduced-motion: no-preference) {
  .markets__map.is-live .markets__ring--pulse { animation: mk-pulse 3.6s cubic-bezier(.2, .6, .3, 1) infinite; }
}
@keyframes mk-pulse { 0% { opacity: .6; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.9); } }
/* Encuadre por anchos: Canarias bajo la lista, a la izquierda, y los destinos en los huecos del texto */
@media (max-width: 1100px) {
  .markets { --mk-w: 85vw; --mk-x: calc(50% - var(--mk-w) * .17); --mk-y: calc(var(--mk-pad) + var(--mk-w) * .368); --mk-fade: 64px; }
}
@media (max-width: 760px) {
  .markets { --mk-w: 90vw; --mk-y: calc(var(--mk-pad) + var(--mk-w) * .37); }
}
@media (max-width: 640px) {
  .markets { --mk-pad: 112px; --mk-w: 665px; --mk-x: calc(50% - 176px); --mk-y: calc(var(--mk-pad) + 232px); --mk-fade: 56px; }
  .markets__route { stroke-width: 1.5; }
  .markets__isles { stroke-width: 1.4; }
  .markets__pin-ring { stroke-width: 1.3; }
  .markets__trail { stroke-width: 2.2; }
}
@media (max-width: 449px) {
  .markets { --mk-w: 743px; --mk-x: calc(50% - 140px); --mk-y: calc(var(--mk-pad) + 266px); }
}
@media (max-width: 389px) {
  .markets { --mk-w: 221vw; --mk-x: 28px; --mk-y: calc(var(--mk-pad) + var(--mk-w) * .375); }
}

/* Lista y partners */
.markets__list { list-style: none; margin: 0 auto clamp(60px, 8vw, 100px); padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px clamp(22px, 3.2vw, 48px); max-width: 900px; }
.markets__list li { font: 300 clamp(30px, 4.6vw, 64px)/1.1 var(--serif); color: var(--ink); letter-spacing: -.02em; }
.markets__list li::before { content: ""; display: inline-block; width: .14em; height: .14em; margin: 0 .3em .18em 0; border-radius: 50%; background: var(--seed-light); vertical-align: middle; }
.partners { text-align: center; }
.partners__row { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.partner { width: min(320px, 100%); aspect-ratio: 2 / 1; display: grid; place-items: center; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); overflow: hidden; box-shadow: 0 1px 2px rgba(63,38,22,.05), 0 12px 24px -16px rgba(63,38,22,.18), 0 34px 60px -40px rgba(63,38,22,.28); }
.partner:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(63,38,22,.05), 0 18px 32px -18px rgba(63,38,22,.24), 0 44px 70px -38px rgba(63,38,22,.34); }
.partner img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
/* Cita del gerente: foto con marco desplazado, comillas grandes y firma con monograma */
.closing { padding: clamp(80px, 11vw, 150px) 0; background: var(--white); overflow: hidden; }
.closing__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6.5vw, 104px); align-items: center; }
.closing__media { position: relative; isolation: isolate; margin-right: 22px; }
.closing__media::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; z-index: -1; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--seed) 38%, transparent); }
.closing__frame { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--sand); box-shadow: 0 34px 70px -38px rgba(var(--photo-shade), .55); }
.closing__img { position: absolute; inset: -9% 0; }
.closing__img img { width: 100%; height: 100%; object-fit: cover; }
.closing__body { margin: 0; min-width: 0; }
.closing__mark { display: block; height: .42em; margin-bottom: clamp(20px, 2.4vw, 32px); font: 400 clamp(120px, 12vw, 190px)/.78 var(--serif); color: var(--seed); user-select: none; }
.closing__text { margin: 0; }
.closing__quote { margin: 0; max-width: 780px; font: 300 clamp(26px, 2.8vw, 42px)/1.22 var(--serif); letter-spacing: -.01em; text-wrap: pretty; }
.closing__quote .w { opacity: .16; }
.closing__sign { display: flex; align-items: center; gap: 16px; max-width: 780px; margin-top: clamp(32px, 4vw, 48px); padding-top: clamp(24px, 3vw, 32px); border-top: 1px solid var(--line); }
.closing__mono { flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--seed) 45%, transparent); color: var(--seed-text); font: italic 400 21px/1 var(--serif); letter-spacing: .02em; }
.closing__who { display: grid; gap: 5px; }
.closing__name { font: 400 22px/1.2 var(--serif); color: var(--ink); }
.closing__role { font: 600 11.5px/1.35 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 900px) {
  .closing__grid { grid-template-columns: minmax(0, 1fr); }
  .closing__media { margin-right: 14px; }
  .closing__media::before { inset: 14px -14px -14px 14px; }
  .closing__frame { aspect-ratio: 16 / 11; }
}

/* Contacto */
.contact { padding: clamp(80px, 11vw, 150px) 0; background: var(--paper); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: stretch; }
.contact__img { border-radius: var(--radius); overflow: hidden; background: var(--sand); min-height: 320px; }
.contact__img img { width: 100%; height: 100%; object-fit: cover; }
.offices { display: grid; gap: 20px; }
.office { background: var(--white); border-radius: var(--radius); padding: clamp(26px, 3vw, 40px); border: 1px solid var(--line); display: grid; gap: 14px; }
.office h3 { font-size: clamp(32px, 3.4vw, 46px); }
.office p { color: var(--muted); }
.office p a { color: var(--ink); text-decoration: none; }
.office p a:hover { color: var(--seed); }
.office dl { margin: 0; display: grid; gap: 6px; font-size: 15px; }
.office dl div { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 8px; }
.office dt { color: var(--muted); }
.office dd { margin: 0; text-align: right; }
.office__map { justify-self: start; color: var(--seed); font-weight: 600; text-decoration: none; }
.office__map::after { content: " →"; }

/* Pie: marca y redes, secciones, contacto y llamada a agricultores; barra legal abajo */
.footer { padding: clamp(64px, 8vw, 104px) 0 28px; background: var(--white); border-top: 1px solid var(--line); }
/* Columnas flexibles que nunca bajan del ancho del lema, del correo o del botón */
.footer__top { display: grid; grid-template-columns: 1.25fr .6fr 1fr 1.2fr; gap: 48px clamp(32px, 3.6vw, 56px); align-items: start; padding-bottom: clamp(56px, 7vw, 88px); }
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; }
.footer__logo { height: 64px; }
.footer__claim { margin-top: 26px; color: var(--seed-text); font: italic 400 19px/1.3 var(--serif); letter-spacing: -.005em; overflow-wrap: break-word; }
.footer__about { margin-top: 10px; max-width: 30ch; color: var(--muted); font-size: 15px; line-height: 1.6; }
.footer__social { list-style: none; margin: 28px 0 0; padding: 0; display: flex; gap: 12px; }
.footer__social a {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--seed); color: var(--seed); overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease), transform .35s var(--ease);
}
.footer__social a::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--seed); transform: scale(0); transition: transform .45s var(--ease); }
.footer__social a:hover { color: var(--white); }
.footer__social a:hover::before { transform: none; }
.footer__social a:active { transform: scale(.94); }
.footer__social a:focus-visible { border-radius: 50%; }
.footer__social svg { width: 18px; height: 18px; fill: currentColor; }

.footer__heading { margin: 0 0 16px; font: 600 12px/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--seed-text); }
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__contact { display: grid; gap: 20px; font-style: normal; }
.footer__place { margin-bottom: 2px; font: 400 19px/1.3 var(--serif); color: var(--ink); }
/* Enlaces: subrayado que crece como en el menú de la cabecera; zona táctil de 44px */
.footer__list a, .footer__bottom nav a { position: relative; display: inline-block; text-decoration: none; transition: color .3s var(--ease); }
.footer__list a { padding: 10px 0; font-size: 15.5px; line-height: 24px; color: var(--ink); overflow-wrap: break-word; }
.footer__list a::after, .footer__bottom nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 9px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.footer__list a:hover, .footer__bottom nav a:hover { color: var(--seed); }
.footer__list a:hover::after, .footer__bottom nav a:hover::after,
.footer__list a:focus-visible::after, .footer__bottom nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

.footer__join { padding: clamp(24px, 2.4vw, 32px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.footer__join-title { font: 400 25px/1.15 var(--serif); letter-spacing: -.015em; color: var(--ink); }
.footer__join-text { margin: 10px 0 22px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.footer__join-btn { width: 100%; justify-content: space-between; }
.footer__join-btn svg { width: 18px; height: 18px; flex: none; transition: transform .45s var(--ease); }
.footer__join-btn:hover svg { transform: translateX(4px); }

.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 4px 32px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 20px; }
.footer__bottom p { padding: 12px 0; }
.footer__sep { margin: 0 .35em; color: var(--seed-light); }
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 0 28px; }
.footer__bottom nav a { padding: 12px 0; color: var(--muted); }
.footer__bottom nav a::after { bottom: 11px; }

@media (max-width: 1180px) {
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px clamp(32px, 6vw, 72px); }
}
@media (max-width: 720px) {
  .footer__top { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .footer__claim { font-size: clamp(17px, 4.9vw, 19px); }
  .footer__list--nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 0; }
  .footer__bottom nav { gap: 0 22px; }
}

/* Botón fijo "¿Tienes una finca? Únete" (aparece al pasar la portada) */
.sticky-cta {
  display: flex; justify-content: center; gap: 6px; position: fixed; right: 24px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 40;
  padding: 14px 22px; border-radius: 999px; background: var(--seed); color: var(--on-seed); text-decoration: none; font-size: 15px;
  box-shadow: 0 14px 30px rgba(63,38,22,.35); transform: translateY(calc(100% + 80px + env(safe-area-inset-bottom))); transition: transform .5s var(--ease), background .3s;
}
.sticky-cta:hover { background: var(--seed-dark); }
.sticky-cta.is-visible { transform: none; }

/* Política de privacidad */
.privacy { max-width: 560px; width: calc(100% - 32px); border: 0; border-radius: 24px; padding: 32px; background: var(--white); color: var(--ink); box-shadow: 0 40px 80px rgba(0,0,0,.25); }
.privacy::backdrop { background: rgba(42,28,18,.55); backdrop-filter: blur(4px); }
.privacy h2 { font-size: 30px; margin-bottom: 16px; }
.privacy p { margin-bottom: 10px; font-size: 15px; color: var(--muted); }
.privacy p strong { color: var(--ink); }
.privacy .btn { margin-top: 12px; }

/* --------------------------------------------------------------------------
   Carga: logotipo en vuelo, imágenes que aún cargan, logotipo de reserva
   -------------------------------------------------------------------------- */
.logo-fly { position: fixed; z-index: 260; margin: 0; pointer-events: none; }
.img-wait { background-image: linear-gradient(105deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.65) 50%, rgba(255,255,255,0) 65%); background-size: 250% 100%; animation: shimmer 1.6s linear infinite; }
.img-wait > img { opacity: 0; }
.variety__img.img-wait, .partner.img-wait { background-color: var(--sand); }
@keyframes shimmer { from { background-position: 130% 0; } to { background-position: -30% 0; } }

/* Si el SVG del logotipo no carga, se escribe el nombre */
.no-logo .logo { -webkit-mask: none; mask: none; background: none !important; aspect-ratio: auto; width: auto; height: auto; font: 500 22px/1 var(--serif); letter-spacing: -.01em; white-space: nowrap; color: var(--brand-green); }
.no-logo .logo::before { content: "Agro-Rincón"; }
.no-logo .logo--brand { color: var(--brand-green); }
.no-logo .logo--white, .no-logo .header .logo { color: #fff; }
.no-logo .header.is-solid .logo, .no-logo body.menu-open .header .logo { color: var(--brand-green); }
.no-logo .preloader__logo, .no-logo .hero__logo { font-size: clamp(34px, 5vw, 58px); }
.no-logo .footer__logo { font-size: 30px; }

/* --------------------------------------------------------------------------
   Página de error 404
   -------------------------------------------------------------------------- */
.notfound { min-height: 100svh; display: grid; align-items: center; padding: calc(var(--header-h) + 40px) 0 80px; text-align: center; overflow: hidden; background: radial-gradient(110% 70% at 50% 0%, var(--paper), var(--white) 62%); }
.notfound__code { display: flex; justify-content: center; align-items: center; gap: .06em; font: 300 clamp(118px, 23vw, 290px)/.9 var(--serif); color: var(--seed); letter-spacing: -.04em; margin: 0 0 clamp(26px, 4vw, 48px); }
.notfound__title { font-size: clamp(34px, 5vw, 66px); margin-bottom: 18px; }
.notfound__text { color: var(--muted); font-size: 18px; max-width: 540px; margin: 0 auto 34px; }
.notfound__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.notfound__links { margin-top: clamp(40px, 6vw, 64px); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; font-size: 15px; }
.notfound__links a { color: var(--muted); text-decoration: none; }
.notfound__links a:hover { color: var(--seed); }

.page-404 [data-intro] { animation: intro-rise 1.1s var(--ease) both; }
.page-404 [data-intro]:nth-child(2) { animation-delay: .09s; }
.page-404 [data-intro]:nth-child(3) { animation-delay: .18s; }
.page-404 [data-intro]:nth-child(4) { animation-delay: .27s; }
.page-404 [data-intro]:nth-child(5) { animation-delay: .36s; }
@keyframes intro-rise { from { opacity: 0; transform: translateY(30px); } }

/* Páginas legales */
.legal { padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 clamp(70px, 9vw, 120px); background: var(--white); }
.legal__inner { max-width: 820px; }
.legal h1 { font-size: clamp(38px, 5vw, 64px); margin-bottom: clamp(28px, 4vw, 44px); }
.legal__body { color: var(--ink); font-size: 16.5px; }
.legal__body h2, .legal__body h3, .legal__body h4, .legal__body h5 { font-family: var(--serif); font-weight: 400; line-height: 1.2; margin: 2em 0 .6em; }
.legal__body h2 { font-size: 30px; } .legal__body h3 { font-size: 25px; } .legal__body h4 { font-size: 22px; } .legal__body h5 { font-size: 19px; }
.legal__body p, .legal__body ul, .legal__body ol, .legal__body table { margin: 0 0 1em; }
.legal__body ul, .legal__body ol { padding-left: 1.3em; }
.legal__body a { color: var(--seed); overflow-wrap: anywhere; }
.legal__body table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.legal__body th, .legal__body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal__body th { background: var(--paper); }
.legal__id { margin: 0 0 2em; padding: 22px 24px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); font-size: 15px; }
.legal__id dt { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
.legal__id dd { margin: 0 0 10px; }
.legal__updated { margin-top: 3em; color: var(--muted); font-size: 14px; }

/* Medio aguacate con su semilla (hecho con degradados) */
.avo { position: relative; display: inline-block; width: .7em; height: .92em; flex: none; animation: avo-float 6s ease-in-out infinite; }
.avo__skin { position: absolute; inset: 0; border-radius: 50% 50% 47% 47% / 62% 62% 40% 40%; background:
  radial-gradient(60% 50% at 30% 25%, rgba(255,255,255,.12), transparent 60%),
  radial-gradient(120% 90% at 50% 70%, #3c4a24 0%, #26301a 55%, #161c0f 100%);
  box-shadow: 0 .06em .12em rgba(40,30,15,.25), 0 .14em .3em -.06em rgba(40,30,15,.35); }
.avo__flesh { position: absolute; inset: 5%; border-radius: inherit; border-radius: 50% 50% 47% 47% / 62% 62% 40% 40%; background:
  radial-gradient(70% 60% at 50% 64%, #f6f1c4 0%, #ece7a6 40%, #d6dc86 70%, #a9b95a 92%, #7f9440 100%);
  box-shadow: inset 0 0 .02em .012em rgba(255,255,255,.4), inset 0 -.04em .08em rgba(90,100,30,.25); }
.avo__pit { position: absolute; left: 50%; top: 62%; width: 42%; aspect-ratio: 1 / 1.06; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 50% 45%, rgba(120,90,30,.35), transparent 70%); }
.avo__seed { position: absolute; inset: 7%; border-radius: 50% 50% 48% 48% / 54% 54% 46% 46%; background:
  radial-gradient(28% 22% at 34% 28%, rgba(255,240,220,.75), transparent 70%),
  radial-gradient(circle at 40% 36%, #b98657, #7a4a29 48%, #4a2a16 82%, #2e190c 100%);
  box-shadow: 0 .02em .05em rgba(30,15,5,.45); animation: seed-rock 4s ease-in-out infinite; transform-origin: 50% 80%; }
.avo::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: -.1em; height: .06em; border-radius: 50%; background: radial-gradient(closest-side, rgba(63,38,22,.28), transparent); filter: blur(2px); animation: avo-shadow 6s ease-in-out infinite; }
@keyframes avo-float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-.04em) rotate(3deg); } }
@keyframes avo-shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.86); opacity: .7; } }
@keyframes seed-rock { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }

/* --------------------------------------------------------------------------
   Modo oscuro: verde de piel de aguacate, texto crema, pulpa y semilla de acento.
   Lo elige el visitante con el botón de la cabecera (data-theme="dark" en <html>).
   Casi todo sale de los tokens; aquí van además los fondos de foto (no cambian),
   las sombras (más hondas y sin marrón) y los «platos» claros de fotos y logotipos.
   -------------------------------------------------------------------------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --white: #121a10;          /* fondo: piel del aguacate en sombra */
  --paper: #172014;          /* secciones alternas */
  --sand: #212c1c;           /* rellenos suaves */
  --raised: #1b2517;         /* tarjetas sobre --paper (un punto más claras: se elevan) */
  --line: #2f3b28;
  --seed: #d8df9b;           /* acento en pulpa: botones, enlaces, opciones marcadas */
  --seed-dark: #eef0c6;      /* pulpa más clara (al pasar por encima) */
  --seed-light: #94805a;     /* semilla apagada, solo decorativo */
  --seed-text: #d3aa7f;      /* semilla clara: cursivas, antetítulos y etiquetas (≥ 4.5:1) */
  --control-line: #76806a;   /* borde de campos (≥ 3:1) */
  --error: #f4a092;
  --brand-green: #e4e6b4;    /* logotipo en pulpa: el verde de marca no se lee sobre verde */
  --ink: #f1ebda;
  --muted: #b0ae96;
  --on-seed: #121a10;
  --plate: #f3eee1;          /* «plato» claro para fotos de fruta y logotipos con fondo blanco */
  --dk-hi: inset 0 1px 0 rgba(241, 235, 218, .055); /* filete de luz arriba en tarjetas */
  scrollbar-color: #3a4732 var(--white);
}
:where(:root[data-theme="dark"]) em { color: var(--seed-text); }
:root[data-theme="dark"] ::selection { background: var(--seed); color: var(--on-seed); }

/* Sobre fotos y vídeo todo sigue igual que en claro */
:root[data-theme="dark"] .hero, :root[data-theme="dark"] .quality { background: var(--shade); }
@media (min-width: 961px) { :root[data-theme="dark"] .pedido__aside { background: var(--shade); } }
:root[data-theme="dark"] .btn--white,
:root[data-theme="dark"] body:not(.menu-open) .header:not(.is-solid) .btn--seed { --fg: var(--shade); }
:root[data-theme="dark"] .header.is-solid { background: color-mix(in srgb, var(--white) 86%, transparent); }
:root[data-theme="dark"] .seed-loader__seed { background: radial-gradient(circle at 35% 30%, var(--avo-seed-light), var(--avo-seed) 55%, var(--avo-seed-deep)); }

/* Tarjetas: un punto más claras que su sección, filete de luz y sombra negra */
:root[data-theme="dark"] :is(.pillar, .service__card, .office) { background: var(--raised); }
:root[data-theme="dark"] .pillar { box-shadow: var(--dk-hi), 0 30px 60px -36px rgba(0, 0, 0, .6); }
:root[data-theme="dark"] .pillar:hover { box-shadow: var(--dk-hi), 0 40px 70px -34px rgba(0, 0, 0, .75); }
:root[data-theme="dark"] .office { box-shadow: var(--dk-hi); }
:root[data-theme="dark"] .variety { background: var(--paper); box-shadow: var(--dk-hi), 0 26px 50px -34px rgba(0, 0, 0, .7); }
@media (hover: hover) {
  :root[data-theme="dark"] .variety:hover { box-shadow: var(--dk-hi), 0 46px 70px -40px rgba(0, 0, 0, .85); }
}
:root[data-theme="dark"] .variety__peek { box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .55); }
:root[data-theme="dark"] .services {
  --svc-shadow: var(--dk-hi), 0 2px 6px -1px rgba(0, 0, 0, .25), 0 10px 22px -8px rgba(0, 0, 0, .3), 0 26px 48px -20px rgba(0, 0, 0, .4), 0 50px 90px -40px rgba(0, 0, 0, .5);
  --svc-shadow-up: 0 8px 16px -6px rgba(0, 0, 0, .3), 0 22px 40px -14px rgba(0, 0, 0, .4), 0 46px 80px -28px rgba(0, 0, 0, .55), 0 80px 130px -50px rgba(0, 0, 0, .6);
}
:root[data-theme="dark"] .service__img::after { box-shadow: inset 0 0 0 1px rgba(241, 235, 218, .06); }
:root[data-theme="dark"] .services__avo { filter: drop-shadow(0 26px 22px rgba(0, 0, 0, .4)) drop-shadow(0 6px 6px rgba(0, 0, 0, .35)); }
:root[data-theme="dark"] .form { box-shadow: var(--dk-hi), 0 34px 60px -44px rgba(0, 0, 0, .6); }
:root[data-theme="dark"] .markets__glow-in { stop-opacity: .3; }
:root[data-theme="dark"] .steps li:not(:last-child)::after { border-top-color: color-mix(in srgb, var(--seed-light) 70%, transparent); }

/* Fotos de fruta y logotipos de partners con fondo blanco: sobre un plato claro conservan sus colores */
:root[data-theme="dark"] .variety__img, :root[data-theme="dark"] .varieties__fruits span { background-color: var(--plate); }
:root[data-theme="dark"] .varieties__fruits span { box-shadow: 0 0 0 3px var(--paper), 0 10px 18px -10px rgba(0, 0, 0, .6); }
:root[data-theme="dark"] .ficha__media { background: radial-gradient(75% 62% at 50% 44%, #fbf8ef 0%, var(--plate) 58%, #e3dcc8 100%); }
:root[data-theme="dark"] .partner { background-color: var(--plate); border-color: transparent; box-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 24px -16px rgba(0, 0, 0, .5), 0 34px 60px -40px rgba(0, 0, 0, .7); }
:root[data-theme="dark"] .partner:hover { box-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 32px -18px rgba(0, 0, 0, .6), 0 44px 70px -38px rgba(0, 0, 0, .8); }
:root[data-theme="dark"] .img-wait:not(.variety__img, .partner) { background-image: linear-gradient(105deg, transparent 35%, rgba(241, 235, 218, .07) 50%, transparent 65%); }

/* Diálogos */
:root[data-theme="dark"] .vdialog { box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .85), 0 0 0 1px rgba(241, 235, 218, .08); }
:root[data-theme="dark"] .vdialog__close { box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .6); }
:root[data-theme="dark"] .vdialog::backdrop, :root[data-theme="dark"] .privacy::backdrop { background: rgba(5, 8, 4, .72); }
:root[data-theme="dark"] .privacy { background: var(--paper); box-shadow: 0 40px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(241, 235, 218, .08); }
@media (max-width: 960px) { :root[data-theme="dark"] .pedido__title em { color: var(--seed-text); } }

/* Formularios: halo de foco en pulpa (el marrón no se ve sobre verde) */
:root[data-theme="dark"] .field :where(input:not([type="checkbox"], [type="radio"]), select, textarea):focus { box-shadow: 0 0 0 1px var(--seed), 0 0 0 5px color-mix(in srgb, var(--seed) 16%, transparent); }
:root[data-theme="dark"] .field input:-webkit-autofill:focus { box-shadow: inset 0 0 0 100px var(--paper), 0 0 0 1px var(--seed), 0 0 0 5px color-mix(in srgb, var(--seed) 16%, transparent); }
:root[data-theme="dark"] .field .is-invalid:focus { box-shadow: 0 0 0 1px var(--error), 0 0 0 5px color-mix(in srgb, var(--error) 16%, transparent); }

:root[data-theme="dark"] .sticky-cta { box-shadow: 0 14px 30px rgba(0, 0, 0, .5); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .header__nav { display: none; }
  .header__inner { grid-template-columns: 1fr auto; }
  .burger { display: block; }
  .varieties__grid { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .pillars__grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .head--split, .growers__top, .join__grid, .contact__grid { grid-template-columns: 1fr; }
  .join__intro { position: static; }
  .intro__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .perks { grid-template-columns: 1fr 1fr; }
  .perk:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .perk:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(2)::after { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { min-height: 560px; }
  .hero__content { bottom: 104px; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .hero__chapters { bottom: 26px; gap: 8px; }
  .chapter__label { display: none; }
  .hero__sound { bottom: 52px; }
  .chapter { padding: 21px 0; margin: -21px 0; }
  .header__actions .btn { display: none; }
  .header__actions { gap: 6px; }
  .header__logo .logo { height: 38px; }
  .header.is-solid .header__logo .logo { height: 34px; }
  .varieties__grid, .services__grid, .perks, .steps { grid-template-columns: 1fr; }
  .perk:nth-child(even) { padding-left: 0; border-left: 0; }
  .steps li::after { display: none; }
  .stat { padding: 24px 12px 0 0; }
  .stat + .stat { padding-left: 12px; }
  .field-row { grid-template-columns: 1fr; }
  .sticky-cta { left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); padding: 15px; }
  .footer { padding-bottom: 110px; }
}

/* --------------------------------------------------------------------------
   Móvil: portada compacta y ordenada (menos scroll)
   Variedades y servicios en carruseles que se deslizan de lado con contador,
   barra y flechas; secciones con menos aire; listas y tarjetas más juntas.
   -------------------------------------------------------------------------- */
.rail-nav[hidden] { display: none; }
@media (max-width: 640px) {
  /* Aire vertical: la mitad que en escritorio */
  .varieties, .services { padding: 72px 0 60px; }
  .growers { padding: 72px 0 36px; }
  .join { padding: 36px 0 72px; }
  .intro { padding: 72px 0 56px; }
  .pillars { padding: 60px 0 72px; }
  .closing { padding: 64px 0 68px; }
  .contact { padding: 68px 0 72px; }
  .head { margin-bottom: 26px; }
  .head__lead { font-size: 16px; margin-top: 12px; }
  .head--split { gap: 12px; }
  .eyebrow { margin-bottom: 14px; }
  .title { font-size: clamp(31px, 8.6vw, 36px); }
  .band { height: clamp(400px, 62svh, 540px); }
  .quality { min-height: clamp(380px, 66svh, 560px); }

  /* Carruseles */
  .varieties__grid[data-rail], .services__grid[data-rail] {
    display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(84%, 340px); gap: 12px;
    margin: 0 calc(var(--pad) * -1); padding: 4px var(--pad) 24px;
    overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
    scrollbar-width: none;
  }
  [data-rail]::-webkit-scrollbar { display: none; }
  [data-rail] > * { scroll-snap-align: start; scroll-snap-stop: always; }
  [data-rail]:focus-visible { outline-offset: -3px; border-radius: 0; }
  .rail-nav { display: flex; align-items: center; gap: 10px; }
  .rail-nav__count { flex: none; min-width: 58px; font: 400 15px/1 var(--serif); color: var(--muted); font-variant-numeric: lining-nums tabular-nums; letter-spacing: .02em; }
  .rail-nav__count span { color: var(--ink); }
  .rail-nav__track { position: relative; flex: 1; height: 2px; margin-right: 6px; border-radius: 2px; background: var(--line); overflow: hidden; }
  .rail-nav__track span { position: absolute; inset: 0; border-radius: inherit; background: var(--seed); transform-origin: 0 50%; transform: scaleX(.25); transition: transform .4s var(--ease); }
  .rail-nav__btn {
    flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%;
    border: 1px solid var(--line); background: var(--white); color: var(--seed-dark); cursor: pointer; -webkit-tap-highlight-color: transparent;
    transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), opacity .3s var(--ease);
  }
  .rail-nav__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .rail-nav__btn:not(:disabled):active { background: var(--seed); border-color: var(--seed); color: var(--on-seed); }
  .rail-nav__btn:disabled { opacity: .38; cursor: default; }
  .rail-nav__btn:focus-visible { border-radius: 50%; }

  /* Tarjeta de variedad: foto apaisada y texto en tres líneas (completo en «Ver ficha») */
  .variety { gap: 10px; padding: 8px 8px 10px; border-radius: 24px; box-shadow: 0 1px 2px rgba(63,38,22,.05), 0 14px 22px -16px rgba(63,38,22,.32); }
  .variety > :not(.variety__img) { margin-inline: 10px; }
  .variety__img { aspect-ratio: 16 / 11; margin-bottom: 2px; border-radius: 17px; }
  .variety__img img { object-position: 50% 54%; }
  .variety__peek { width: 36px; height: 36px; right: 10px; bottom: 10px; }
  .variety h3 { font-size: 31px; }
  .variety p { font-size: 15px; line-height: 1.55; }
  .varieties.is-live .variety__text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
  .variety__harvest { padding-top: 12px; font-size: 17px !important; }
  .variety__harvest span { margin-bottom: 4px; }
  .cal i { padding: 5px 0; }
  .variety__actions { flex-wrap: nowrap; gap: 8px; margin-top: 0; padding-top: 6px; }
  .variety__order { flex: none; padding-inline: 16px; }
  .varieties__cta { gap: 14px; margin-top: 26px; padding: 18px 18px 20px; border-radius: 22px; }
  .varieties__fruits span { width: 44px; height: 44px; }
  .varieties__fruits span + span { margin-left: -12px; }
  .varieties__cta-copy { flex-basis: 100%; }
  .varieties__cta-title { font-size: 22px; }
  .varieties__cta-text { font-size: 14.5px; line-height: 1.5; }

  /* Tarjeta de servicio */
  .services { --svc-shadow: 0 1px 2px rgba(63,38,22,.05), 0 14px 22px -16px rgba(63,38,22,.3); }
  .service__card { padding: 8px 8px 22px; }
  .service__img, .service__card::before { aspect-ratio: 16 / 10; }
  .service__card::before { top: 8px; left: 8px; right: 8px; }
  .service__img { margin-bottom: 18px; }
  .service__num { top: 18px; left: 18px; padding: 6px 11px 6px 9px; font-size: 14px; }
  .service h3, .service p { padding: 0 12px; }
  .service h3 { font-size: 23px; margin-bottom: 8px; }
  .service p { font-size: 15px; line-height: 1.55; }

  /* Agricultores: ventajas en filas con número al margen y pasos como línea de tiempo */
  .growers__top { gap: 22px; margin-bottom: 14px; }
  .growers .title { font-size: clamp(29px, 8vw, 34px); }
  .growers__img { aspect-ratio: 16 / 9; border-radius: 20px; }
  .perks { margin-bottom: 30px; border-top: 0; }
  .perk { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 4px; padding: 16px 0 17px; }
  .perk:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .perk__n { grid-row: 1 / span 2; padding-top: 7px; }
  .perk h3 { font-size: 20px; margin: 0 0 3px; }
  .perk p { font-size: 15px; line-height: 1.55; }
  .steps { gap: 0; padding: 22px 20px; border-radius: 20px; }
  .steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 14px; padding-bottom: 18px; }
  .steps li:last-child { padding-bottom: 0; }
  .steps li span { grid-row: 1 / span 2; width: 34px; height: 34px; margin: 0; font-size: 13.5px; }
  .steps li:not(:last-child)::after { display: block; top: 40px; bottom: 4px; left: 16.5px; right: auto; border-top: 0; border-left: 1px dashed rgba(107,66,38,.4); }
  .steps strong { margin: 6px 0 1px; font-size: 18px; }
  .steps p { font-size: 14px; line-height: 1.5; }

  /* Formulario */
  .join__grid { gap: 28px; }
  .join__intro .title { margin-bottom: 14px; }
  .join__intro > p { font-size: 16px; }
  .join__direct { margin-top: 20px; gap: 8px; }
  .join__direct li { padding-bottom: 8px; }
  .join__direct a { font-size: 23px; }
  .join__hours { margin-top: 10px; font-size: 13.5px; }
  .form { padding: 24px 18px 22px; border-radius: 22px; }

  /* Mercados: los dos partners lado a lado */
  .markets .head { margin-bottom: 36px; }
  .markets .title { font-size: 36px; }
  .markets__list { margin-bottom: 60px; }
  .partners__row { flex-wrap: nowrap; gap: 12px; }
  .partner { flex: 1 1 0; width: auto; min-width: 0; aspect-ratio: 3 / 2; border-radius: 18px; }

  /* Nosotros y cifras */
  .intro__quote { font-size: clamp(23px, 6.4vw, 26px); line-height: 1.24; }
  .stats { margin-top: 40px; }
  .stat { padding-top: 20px; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat__num { font-size: clamp(40px, 11vw, 46px); }
  .stat__label { margin-top: 6px; font-size: 14px; line-height: 1.45; }

  /* Pilares: icono al margen, número, título y texto en columna */
  .pillars__grid { gap: 12px; }
  .pillars .pillar { display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 16px; padding: 20px 20px 22px; border-radius: 20px; }
  .pillars .pillar__top { display: contents; }
  .pillar__icon { grid-row: 1 / 3; align-self: start; width: 56px; height: 56px; }
  .pillar__icon::before { inset: 3px; }
  .pillar__icon svg { width: 38px; height: 38px; }
  .pillar__num { grid-column: 2; grid-row: 1; padding-top: 2px; margin-bottom: 6px; font-size: 11.5px; }
  .pillar h3 { grid-column: 2; font-size: 20px; margin-bottom: 6px; }
  .pillar p { grid-column: 1 / -1; margin-top: 8px; font-size: 15px; line-height: 1.55; }

  /* Cita del gerente */
  .closing__grid { gap: 34px; }
  .closing__frame { aspect-ratio: 16 / 10; }
  .closing__mark { margin-bottom: 14px; font-size: 96px; }
  .closing__quote { font-size: clamp(21px, 5.8vw, 24px); }
  .closing__sign { margin-top: 22px; padding-top: 18px; gap: 14px; }
  .closing__mono { width: 50px; height: 50px; font-size: 18px; }
  .closing__name { font-size: 20px; }

  /* Contacto */
  .contact__grid { gap: 12px; }
  .contact__img { min-height: 0; aspect-ratio: 5 / 2; border-radius: 20px; }
  .offices { gap: 12px; }
  .office { gap: 10px; padding: 22px 20px; border-radius: 20px; }
  .office h3 { font-size: 28px; }
  .office dl { font-size: 14px; }

  /* Pie */
  .footer { padding: 44px 0 calc(20px + env(safe-area-inset-bottom)); }
  .footer__top { gap: 30px; padding-bottom: 26px; }
  .footer__brand { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 16px; }
  .footer__logo { height: 52px; }
  .footer__social { grid-column: 2; grid-row: 1; margin: 0; }
  .footer__claim, .footer__about { grid-column: 1 / -1; }
  .footer__claim { margin-top: 18px; }
  .footer__heading { margin-bottom: 6px; }
  .footer__contact { gap: 10px; }
  .footer__join { padding: 20px; }
  .footer__join-title { font-size: 21px; }
  .footer__join-text { margin: 6px 0 16px; font-size: 14.5px; }
  .footer__bottom nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; align-self: stretch; }

  :root[data-theme="dark"] .variety { box-shadow: var(--dk-hi), 0 14px 22px -16px rgba(0, 0, 0, .6); }
  :root[data-theme="dark"] .services { --svc-shadow: var(--dk-hi), 0 14px 22px -16px rgba(0, 0, 0, .55); }

  /* Botón fijo: píldora centrada que solo aparece al subir (al bajar, para leer, se esconde) */
  .sticky-cta {
    left: 12px; right: 12px; width: -webkit-fit-content; width: fit-content; margin-inline: auto;
    bottom: calc(12px + env(safe-area-inset-bottom)); align-items: center; gap: 6px;
    min-height: 50px; padding: 6px 6px 6px 20px; font-size: 14.5px; white-space: nowrap;
    transform: translateY(calc(100% + 40px + env(safe-area-inset-bottom)));
  }
  .sticky-cta.is-visible { transform: none; }
  .sticky-cta::after {
    content: ""; flex: none; width: 36px; height: 36px; margin-left: 6px; border-radius: 50%; background: #fff;
    -webkit-mask: none; mask: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12h12M13 7l5 5-5 5' fill='none' stroke='%236b4226' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: 18px; background-position: center; background-repeat: no-repeat;
  }
}
@media (max-width: 380px) {
  .mobile-menu__call a { gap: 8px; padding-inline: 10px; }
  .mobile-menu__call svg { width: 28px; height: 28px; padding: 6px; }
  .sticky-cta { font-size: 14px; padding-left: 16px; }
}
@media (max-width: 340px) {
  .sticky-cta { white-space: normal; text-align: center; font-size: 13.5px; line-height: 1.2; padding-left: 14px; }
  .variety__actions { flex-wrap: wrap; }
  .variety__order { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .intro__quote .w, .quality__text .w, .closing__quote .w { opacity: 1; }
  .hero__poster { animation: none; }
  [data-menu-item], .mobile-menu__nav::before, .mobile-menu__nav a::after, .mobile-menu__join-media img { transition-delay: 0s !important; transform: none !important; }
}
