/* ============================================================================
   Domilio — styles.css
   Tema: claro y vibrante — paleta corporativa (fucsia, morado, azul, cyan, verde, petróleo)
   ============================================================================ */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* ---- Paleta corporativa ------------------------------------------------
     fucsia #fc008f · morado #ab1aa4 · azul #00aaec · cyan #32eded
     verde #82c341 · rosa #ffccf0 · petróleo #083449 · blanco             */
  /* ---- Paleta v3: una sola identidad — verde + ámbar --------------------
     verde #16A34A · verde vivo #22C55E · verde profundo #14532D
     ámbar #F59E0B · ámbar claro #FBBF24 · tinta #1F2937 · fondo #F8FAFC   */
  --fucsia:   #16A34A;   /* (repuntado a verde: primario) */
  --morado:   #14532D;   /* (repuntado a verde profundo: acento texto) */
  --azul:     #F59E0B;   /* (repuntado a ámbar: acciones secundarias) */
  --cian:     #FBBF24;   /* (repuntado a ámbar claro: hover) */
  --verde:    #16A34A;
  --rosa:     #FEF3C7;   /* (repuntado a ámbar muy suave: chips/avisos) */
  --petroleo: #1F2937;   /* tinta (texto, topbar, footer) */

  /* alias de acento de categorías — ahora todo dentro de verde/ámbar */
  --pink:   var(--fucsia);
  --cyan:   var(--cian);
  --lime:   var(--verde);
  --yellow: var(--azul);
  --orange: var(--morado);

  /* Fondos claros */
  --bg:     #FFFFFF;   /* blanco (superficies/cards) */
  --bg-2:   rgba(224, 240, 205, .62);  /* verde muy suave (secciones) — translúcido para dejar ver la textura */
  --bg-3:   #FFFFFF;   /* blanco puro */
  --bg-4:   rgba(233, 244, 218, .55);  /* verde apenas perceptible (secciones alternas) */

  /* Acento principal: verde */
  --brand:      #16A34A;
  --brand-deep: #14532D;
  --brand-ink:  #FFFFFF;
  --brand-grad: linear-gradient(120deg, #16A34A 0%, #17A64B 55%, #22C55E 100%);

  /* Acento secundario reutilizable */
  --amber:      #F59E0B;
  --amber-deep: #92400E;

  /* alias (el HTML usa --violet como acento de texto) */
  --violet:   var(--brand-deep);
  --violet-2: var(--brand-deep);
  --violet-lo: rgba(22, 163, 74, .28);

  /* Texto (tinta sobre claro) */
  --cream:   var(--petroleo);  /* alias: texto principal */
  --cream-2: #4B5563;          /* texto secundario */
  --cream-3: #6B7280;          /* metadatos / apagado */

  --line:   rgba(31, 41, 55, 0.13);
  --line-2: rgba(31, 41, 55, 0.06);

  --fresh:  #16A34A;    /* verde legible para "fresco/disponible" */

  --gutter: clamp(1.15rem, 4vw, 3.5rem);
  --maxw: 1240px;
  --radius: 18px;
  --topbar-h: 62px;

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --serif: "Poppins", system-ui, -apple-system, Segoe UI, sans-serif;
}

@property --mesh-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  color: var(--cream);
  /* Fondo premium sutil: patrón de hojas finas fijo detrás de toda la web (#2) */
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27180%27%20height%3D%27180%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27%23e0efd4%27%20stroke-width%3D%271.1%27%20stroke-linecap%3D%27round%27%3E%3Cpath%20d%3D%27M28%2018c19%208%2023%2031%208%2054C21%2049%2016%2031%2028%2018z%27%2F%3E%3Cpath%20d%3D%27M36%2072C26%2054%2026%2035%2028%2018%27%2F%3E%3Cpath%20d%3D%27M128%20102c19%208%2023%2031%208%2054c-15-23-20-40-8-54z%27%2F%3E%3Cpath%20d%3D%27M136%20156c-10-18-10-37-8-54%27%2F%3E%3Cpath%20d%3D%27M96%2024c-14%204-22%2016-22%2030%27%20opacity%3D%27.55%27%2F%3E%3Cpath%20d%3D%27M44%20138c14-4%2022-16%2022-30%27%20opacity%3D%27.55%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  background-size: 190px 190px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.04; letter-spacing: -0.02em; font-weight: 500; }
ul { list-style: none; padding: 0; }
::selection { background: var(--brand); color: var(--brand-ink); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.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;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--cream); color: #fff;
  z-index: 9999; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brand-deep);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px; border-radius: 2px;
  background: var(--brand);
  display: inline-block;
}

.serif { font-family: var(--serif); }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--brand-deep); }

/* =============================================================
   4. Typography scale
   ============================================================= */
.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.5rem, 7.5vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.lead {
  font-size: clamp(1.05rem, 1.9vw, 1.4rem);
  color: var(--cream-2);
  line-height: 1.55;
  max-width: 46ch;
}

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .01em;
  transition: transform .5s var(--ease-out), background .3s, box-shadow .5s var(--ease-out), color .3s;
  will-change: transform;
  line-height: 1;
}
.btn svg { width: 19px; height: 19px; }
.btn-primary {
  background: var(--brand-grad);
  color: var(--brand-ink);
  box-shadow: 0 12px 30px -10px rgba(22,163,74,.55);
}
.btn-primary:hover {
  background: var(--brand-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -12px rgba(22,163,74,.7);
}
.btn-ghost {
  background: #fff;
  color: var(--cream);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
  transform: translateY(-2px);
}
.btn-wa { background: #25D366; color: #05270f; box-shadow: 0 12px 30px -12px rgba(37,211,102,.6); }
.btn-wa:hover { background: #2ee874; transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(37,211,102,.7); }

.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .8rem; font-weight: 600;
  padding: .4rem .85rem;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--cream);
}
.chip .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--fresh);
  box-shadow: 0 0 0 0 rgba(22,163,74,.5);
  animation: pulse 2.6s var(--ease-soft) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(22,163,74,.45); }
  70% { box-shadow: 0 0 0 8px rgba(22,163,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); }
}

/* =============================================================
   6. Splash
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 1000;
  /* fondo premium OPACO (mismo patrón de hojas de la web) — sin transparencias */
  background-color: #F4FAEC;
  background-image:
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27180%27%20height%3D%27180%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27%23cfe6d4%27%20stroke-width%3D%271.2%27%20stroke-linecap%3D%27round%27%3E%3Cpath%20d%3D%27M28%2018c19%208%2023%2031%208%2054C21%2049%2016%2031%2028%2018z%27%2F%3E%3Cpath%20d%3D%27M36%2072C26%2054%2026%2035%2028%2018%27%2F%3E%3Cpath%20d%3D%27M128%20102c19%208%2023%2031%208%2054c-15-23-20-40-8-54z%27%2F%3E%3Cpath%20d%3D%27M136%20156c-10-18-10-37-8-54%27%2F%3E%3Cpath%20d%3D%27M96%2024c-14%204-22%2016-22%2030%27%20opacity%3D%27.55%27%2F%3E%3Cpath%20d%3D%27M44%20138c14-4%2022-16%2022-30%27%20opacity%3D%27.55%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"),
    radial-gradient(120% 80% at 50% 0%, #ffffff 0%, #EAF5DC 72%, #dcecc8 100%);
  background-size: 190px 190px, cover;
  display: grid; place-items: center; overflow: hidden;
}
.splash.is-out {
  opacity: 0;
  pointer-events: none;
  clip-path: inset(0 0 100% 0);
  transition: opacity .7s var(--ease-out), clip-path .9s var(--ease-out);
}
.splash-stage {
  display: grid; justify-items: center; gap: clamp(1.1rem, 4vw, 1.8rem);
  padding: 1.5rem; text-align: center;
}
.splash-word {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  color: var(--cream);
  letter-spacing: -.03em;
  position: relative;
  overflow: hidden;
}
.splash-word > .logo { animation: rise .7s var(--ease-bounce) both; }
.logo-xl .logo-word { font-size: clamp(1.9rem, 7vw, 2.8rem); }
.logo-xl .logo-mark { width: clamp(42px, 9vw, 58px); height: clamp(42px, 9vw, 58px); }
@keyframes rise { from { transform: translateY(110%); } to { transform: translateY(0); } }

/* ---- Secuencia de mensajes en la carga (flip 3D + scooter) ------------ */
.splash-facts {
  position: relative;
  width: min(90vw, 25rem);
  height: 2.6em;
  perspective: 900px;
}
.splash-fact {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--sans, inherit);
  font-size: clamp(1.05rem, 4.4vw, 1.5rem);
  font-weight: 700; color: var(--petroleo);
  transform-origin: center bottom;
  transform: rotateX(-92deg) translateY(30%);
  opacity: 0;
  will-change: transform, opacity;
}
.splash-fact.is-in {
  transform: rotateX(0) translateY(0);
  opacity: 1;
  transition: transform .42s var(--ease-bounce), opacity .24s ease;
}
.splash-fact.is-out {
  transform-origin: center top;
  transform: rotateX(92deg) translateY(-30%);
  opacity: 0;
  transition: transform .34s var(--ease-out), opacity .24s ease;
}
.splash-fact b { color: var(--c, var(--brand)); font-weight: 800; }
.splash-fact .sf-ic {
  width: 36px; height: 36px; object-fit: contain; flex: none;
  filter: drop-shadow(0 4px 8px rgba(8,52,73,.18));
}

.splash-track {
  position: relative;
  width: min(74vw, 18rem); height: 4px;
  background: rgba(8,52,73,.12); border-radius: 999px;
}
.splash-fill {
  position: absolute; left: 0; top: 0; height: 100%; width: 0%;
  background: var(--brand-grad); border-radius: 999px;
  transition: width .45s var(--ease-out);
}
.splash-scooter {
  position: absolute; top: 50%; left: 0;
  width: 40px; height: 40px; object-fit: contain;
  transform: translate(-50%, -58%) scaleX(-1);
  transition: left .45s var(--ease-out);
  filter: drop-shadow(0 4px 6px rgba(8,52,73,.25));
}

/* =============================================================
   7. Nav
   ============================================================= */
/* ---- Barra superior (aviso de despacho + contacto) ---- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 101;
  height: var(--topbar-h);
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  color: var(--cream);
  display: flex; align-items: center;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 14px -8px rgba(31,41,55,.25);
}
.topbar-msg { color: var(--cream-2); }
.topbar-msg b { color: var(--brand-deep); }

/* Logo como imagen (imagen 1) con respaldo al SVG si el archivo no está */
.logo-img { height: 40px; width: auto; display: block; }
.logo-img-xl { height: 62px; }
.logo-fallback { display: none; align-items: center; gap: .5rem; }
.logo.no-img .logo-fallback { display: inline-flex; }
.logo.logo-xl.no-img .logo-fallback { display: flex; align-items: center; gap: .6rem; }

.topbar.is-hidden { transform: none; }  /* la barra ya no se esconde: lleva el logo */
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; }
.topbar-msg { font-size: .82rem; font-weight: 600; display: flex; gap: .35rem; align-items: center; }
.topbar-msg b { font-weight: 800; }
.topbar-links { display: flex; align-items: center; gap: 1.2rem; }
.topbar-links a { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; font-weight: 700; transition: opacity .2s; }
.topbar-links a:hover { opacity: .7; }
.topbar-links svg { flex: none; }
@media (max-width: 719px) {
  /* móvil: logo a la izquierda + frase corta a la derecha, SIEMPRE en una línea */
  :root { --topbar-h: 54px; }
  .topbar-links { display: none; }
  .topbar-inner { gap: .5rem; }
  .topbar-msg {
    font-size: .74rem; line-height: 1.15; text-align: right;
    white-space: nowrap; margin-left: auto;
  }
}
@media (max-width: 380px) {
  .topbar-msg { font-size: .68rem; }
}

/* ---- Móvil: tarjetas compactas (dos frutas por fila, sin texto de más) ---- */
@media (max-width: 719px) {
  .product {
    border-radius: 18px;
    margin-top: 46px;
    box-shadow: 0 14px 30px -16px rgba(31, 41, 55, .24),
                0 4px 12px -8px rgba(31, 41, 55, .12);
  }
  .product-media {
    margin: -44px .35rem -6px;
  }
  .product-media img { filter: drop-shadow(0 11px 9px rgba(31, 41, 55, .2)); }
  .product-body { padding: .55rem .65rem .7rem; }
  .product-tag { font-size: .58rem; letter-spacing: .06em; margin-bottom: .15rem; }
  .product-top { flex-direction: column; align-items: flex-start; gap: .05rem; }
  .product-name { font-size: .94rem; line-height: 1.15; }
  .product-price { font-size: 1.05rem; }
  .product-price small { font-size: .6rem; }
  .product-note { display: none; }          /* la nota se lee, no se compra */
  .product-add { margin-top: .55rem; padding: .58rem .5rem; font-size: .82rem; border-radius: 10px; }
  .product-add svg { width: 14px; height: 14px; }
  .badge-gancho, .badge-out { font-size: .56rem; padding: .24rem .5rem; top: auto; bottom: 4px; left: 5px; }
  .qty { margin-top: .55rem; gap: .3rem; }
  .qty-btn { width: 32px; height: 32px; font-size: 1.1rem; border-radius: 9px; }
  .qty-num { font-size: .74rem; }
  .cat-tile { padding: .34rem .7rem; font-size: .8rem; }
  .cat-tile .emoji { font-size: .95rem; }
  .banano-media { width: clamp(80px, 22vw, 104px); }

  /* carrito: una sola línea, que no tape las frutas */
  .cartbar { padding-inline: .5rem; }
  .cartbar-inner { padding: .45rem .5rem .45rem .8rem; gap: .5rem; margin-bottom: .45rem; }
  .cartbar-total { font-size: 1.08rem; }
  .cartbar-warn { font-size: .72rem; padding: .35rem .7rem; }
  .cartbar-chev { font-size: .76rem; padding: .38rem .65rem; }
  .cartbar-actions .btn { padding: .58rem .85rem; font-size: .84rem; }
}
@media (max-width: 480px) { .wa-long { display: none; } }

.nav {
  position: fixed; top: var(--topbar-h); left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--gutter);
  transition: background .4s var(--ease-out), backdrop-filter .4s, padding .4s, box-shadow .4s, border-color .4s, top .4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-solid { top: 0; }
.nav.is-solid {
  background: rgba(255, 253, 248, .82);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: var(--line-2);
  box-shadow: 0 6px 24px -18px rgba(8,52,73,.5);
  padding-block: .8rem;
}
/* ---- Logo Domilio: fruta + hoja (marca de frutería) ---- */
.logo {
  display: inline-flex; align-items: center; gap: .44rem;
  color: inherit; flex: none;
  transition: transform .35s var(--ease-bounce);
}
.logo:hover { transform: scale(1.04); }
.logo-mark {
  width: 30px; height: 30px; flex: none;
  filter: drop-shadow(0 3px 6px rgba(20,83,45,.28));
}
.logo-word {
  font-family: var(--serif);
  font-weight: 800; font-size: 1.3rem;
  letter-spacing: -.03em; line-height: 1; white-space: nowrap;
}
.logo-lg .logo-mark { width: 38px; height: 38px; }
.logo-lg .logo-word { font-size: 1.6rem; }
@media (max-width: 400px) { .logo-word { font-size: 1.12rem; } .logo-mark { width: 26px; height: 26px; } }

.nav-logo {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.55rem;
  letter-spacing: -.02em;
  color: var(--cream);
  display: flex; align-items: baseline; gap: .05rem;
}
.nav-logo i { color: var(--brand-deep); font-style: normal; }
.nav-links {
  display: none;
  gap: 2rem;
  font-size: .95rem;
  font-weight: 500;
  color: var(--cream-2);
}
.nav-links a { position: relative; transition: color .3s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px;
  width: 100%; height: 2px; border-radius: 2px; background: var(--brand);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: none; }
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
}

/* =============================================================
   8. Hero
   ============================================================= */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
  padding-top: calc(var(--topbar-h) + 92px);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

/* fruta flotante del hero (recortes sobre blanco) */
.hero-art { position: relative; display: grid; place-items: center; min-height: 240px; }
.hero-art img { filter: drop-shadow(0 26px 34px rgba(8,52,73,.26)); }
.hero-art > img:first-child {
  width: min(100%, 440px);
  animation: floaty 6s var(--ease-soft) infinite;
}
.hero-art-2, .hero-art-3 { position: absolute; }
.hero-art-2 { left: 0; bottom: 2%; width: 34%; max-width: 165px; animation: floaty 7s var(--ease-soft) .6s infinite; }
.hero-art-3 { right: 2%; top: 0; width: 27%; max-width: 135px; animation: floaty 8s var(--ease-soft) 1.2s infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-13px); } }
@media (max-width: 720px) {
  .hero-art-2, .hero-art-3 { display: none; }
  .hero-art > img:first-child { width: min(72%, 280px); }
  .hero-art { min-height: 0; margin-top: 1.5rem; }
}
.hero-mesh {
  position: absolute; inset: -10%; z-index: 1;
  background:
    radial-gradient(26% 30% at 20% 32%, rgba(252,0,143,.5), transparent 70%),
    radial-gradient(24% 28% at 78% 20%, rgba(0,170,236,.5), transparent 72%),
    radial-gradient(22% 26% at 60% 48%, rgba(130,195,65,.45), transparent 72%);
  filter: blur(60px);
  mix-blend-mode: multiply;
  opacity: .55;
  animation: meshFloat 18s var(--ease-soft) infinite alternate;
  pointer-events: none;
}
@keyframes meshFloat {
  0% { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(3%, -3%, 0) scale(1.12); }
}
.hero-grain { display: none; }
.hero-inner {
  position: relative; z-index: 3; width: 100%;
  display: grid; gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 960px) { .hero-inner { grid-template-columns: 1.05fr .95fr; } }
.hero-meta { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.6rem; }
.hero-title { margin-top: 1.1rem; max-width: 15ch; color: var(--cream); }
.hero-sub {
  margin-top: 1.5rem;
  color: var(--cream-2);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  max-width: 42ch;
  line-height: 1.5;
}
.hero-actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-facts {
  margin-top: 2.6rem;
  display: flex; flex-wrap: wrap; gap: 1.6rem 2.4rem;
  padding-top: 1.8rem;
  border-top: 2px solid var(--line);
  max-width: 640px;
}
.hero-fact { display: flex; flex-direction: column; gap: .15rem; }
.hero-fact b { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--cream); }
.hero-fact span { font-size: .82rem; color: var(--cream-3); letter-spacing: .02em; }

/* =============================================================
   9. Section shell
   ============================================================= */
.section { position: relative; padding-block: clamp(2.6rem, 6vw, 4.5rem); }
#catalogo { padding-top: clamp(1rem, 2.5vw, 1.6rem); }
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .h2 { margin-top: 1rem; }
.section-head p { margin-top: 1.1rem; color: var(--cream-2); font-size: 1.08rem; max-width: 54ch; }
.bg-2 { background: var(--bg-2); }
.bg-3 { background: var(--bg-4); }

/* =============================================================
   10b. Hook banano + tira de confianza
   ============================================================= */
/* sin hero: el contenido arranca despejando la barra superior + el nav fijo */
main { padding-top: var(--topbar-h); }

.hook { padding-block: 0 clamp(1.1rem, 2.5vw, 1.6rem); }
.banano {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  padding: clamp(.7rem, 2vw, 1.05rem);
  padding-right: clamp(1rem, 2.5vw, 1.6rem);
  border-radius: 26px;
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 16px 36px -20px rgba(22,163,74,.7);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
  overflow: hidden;
}
.banano:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -20px rgba(22,163,74,.8); }
.banano-media {
  width: clamp(84px, 21vw, 116px); aspect-ratio: 4/3; border-radius: 14px; overflow: hidden;
  flex: none; box-shadow: 0 8px 18px -10px rgba(0,0,0,.5);
}
.banano-media {
  background: radial-gradient(circle at 50% 40%, #ffffff 0%, #fff6db 55%, #FEF3C7 100%);
  box-shadow: 0 8px 18px -10px rgba(0,0,0,.5), inset 0 0 0 2px rgba(245,158,11,.35);
}
.banano-media img { width: 100%; height: 100%; object-fit: contain; padding: .18rem;
  filter: drop-shadow(0 6px 8px rgba(146,64,14,.28)); }
.banano-body { min-width: 0; }
.banano-tag { font-weight: 800; font-size: clamp(.7rem, 2vw, .85rem); text-transform: uppercase; letter-spacing: .04em; }
.banano-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.45rem, 5.4vw, 2.5rem); line-height: 1.05; letter-spacing: -.02em;
}
.banano-title b { color: #fff; text-decoration: underline; text-decoration-color: var(--cian); text-underline-offset: 5px; text-decoration-thickness: 4px; }
.banano-unit { font-weight: 700; font-size: clamp(.8rem, 2vw, .98rem); opacity: .8; margin-left: .45rem; white-space: nowrap; }
.banano-cta {
  flex: none; display: inline-flex; align-items: center; gap: .4rem;
  background: var(--amber); color: #3b2600; font-weight: 800;
  padding: .85rem 1.35rem; border-radius: 999px; white-space: nowrap; font-size: 1.02rem;
  box-shadow: 0 8px 18px -8px rgba(245,158,11,.7);
}
.banano-cta svg { width: 18px; height: 18px; transition: transform .3s var(--ease-out); }
.banano:hover .banano-cta svg { transform: translateX(4px); }

.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .6rem; margin-top: 1.1rem; }
.trust li { display: flex; align-items: baseline; gap: .5rem; padding: .75rem 1.05rem; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; }
.trust b { font-weight: 800; white-space: nowrap; }
.trust span { color: var(--cream-2); font-size: .92rem; }


@media (max-width: 620px) {
  .banano { grid-template-columns: auto 1fr; text-align: left; }
  .banano-cta { grid-column: 1 / -1; justify-content: center; }
}

/* =============================================================
   10. Propuesta / pilares
   ============================================================= */
.pillars {
  display: grid; gap: 1.1rem;
  grid-template-columns: 1fr;
}
.pillar {
  padding: 2rem 1.9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .4s, transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.pillar:hover { transform: translateY(-5px); box-shadow: 0 24px 50px -30px rgba(8,52,73,.4); }
.pillar-ic {
  width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center;
  color: #fff;
  margin-bottom: 1.2rem;
}
.pillar-ic svg { width: 25px; height: 25px; }
.pillar:nth-child(1) .pillar-ic { background: var(--brand); }
.pillar:nth-child(1):hover { border-color: var(--brand); }
.pillar:nth-child(2) .pillar-ic { background: var(--orange); }
.pillar:nth-child(2):hover { border-color: var(--orange); }
.pillar:nth-child(3) .pillar-ic { background: var(--cyan); color: #063843; }
.pillar:nth-child(3):hover { border-color: var(--cyan); }
.pillar h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; }
.pillar p { margin-top: .6rem; color: var(--cream-2); font-size: .98rem; }
@media (min-width: 720px) { .pillars { grid-template-columns: repeat(3, 1fr); } }

/* =============================================================
   11. Catálogo del día
   ============================================================= */
.cat-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1.4rem; margin-bottom: clamp(2rem, 4vw, 3rem);
}
.cat-date {
  font-size: .92rem; color: var(--cream-3);
  display: flex; align-items: center; gap: .6rem;
}
.cat-date b { color: var(--fresh); font-weight: 700; }

/* fichas de categoría (filtros de colores) */
.cat-filters {
  display: flex; flex-wrap: nowrap; gap: .4rem;
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
  margin-bottom: clamp(.8rem, 2vw, 1.2rem);
  padding-bottom: .2rem; scroll-snap-type: x proximity;
}
.cat-filters::-webkit-scrollbar { display: none; }
/* el degradado de la derecha avisa que hay más categorías */
.cat-filters:not(.at-end) {
  -webkit-mask-image: linear-gradient(to right, #000 82%, rgba(0,0,0,.15) 100%);
          mask-image: linear-gradient(to right, #000 82%, rgba(0,0,0,.15) 100%);
}
.cat-tile { scroll-snap-align: start; }
@media (min-width: 900px) { .cat-filters { flex-wrap: wrap; overflow: visible; } }
.cat-tile {
  --c: var(--brand);
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .38rem .8rem; border-radius: 999px;
  font-weight: 700; font-size: .86rem; color: var(--cream);
  background: #fff; border: 2px solid var(--line);
  cursor: pointer; white-space: nowrap;
  transition: transform .3s var(--ease-out), border-color .3s, background .3s, color .3s, box-shadow .4s;
}
.cat-tile .emoji { font-size: 1rem; line-height: 1; display: inline-flex; align-items: center; }
.cat-ic-img { width: 28px; height: 28px; object-fit: contain; display: block; }
.cat-tile:hover { border-color: var(--c); transform: translateY(-2px); }
.cat-tile.is-active {
  background: var(--c); border-color: var(--c); color: var(--c-ink, #fff);
  box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--c) 70%, transparent);
}
/* el texto de la ficha activa se adapta al color de fondo para que se lea */
.cat-tile.c-mango  { --c: var(--fucsia);   --c-ink: #fff; }
.cat-tile.c-pink   { --c: var(--fucsia);   --c-ink: #fff; }
.cat-tile.c-orange { --c: var(--morado);   --c-ink: #fff; }
.cat-tile.c-yellow { --c: var(--azul);     --c-ink: var(--petroleo); }
.cat-tile.c-cyan   { --c: var(--cian);     --c-ink: var(--petroleo); }
.cat-tile.c-lime   { --c: var(--verde);    --c-ink: var(--petroleo); }

.grid-cat {
  display: grid; gap: .7rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px)  { .grid-cat { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 1100px) { .grid-cat { grid-template-columns: repeat(4, 1fr); } }

.product {
  position: relative;
  display: flex; flex-direction: column;
  border: none;
  border-radius: 24px;
  overflow: visible;
  /* Reserva espacio para la fruta que sobresale por arriba */
  margin-top: 62px;
  /* Tarjeta blanca con sombra suave y limpia */
  background: #fff;
  box-shadow: 0 20px 42px -20px rgba(31, 41, 55, .24),
              0 6px 16px -10px rgba(31, 41, 55, .12);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
  transform-style: preserve-3d;
  will-change: transform;
  --card: var(--brand);
}
.product:nth-child(5n+1) { --card: var(--brand); }
.product:nth-child(5n+2) { --card: var(--cyan); }
.product:nth-child(5n+3) { --card: var(--lime); }
.product:nth-child(5n+4) { --card: var(--pink); }
.product:nth-child(5n+5) { --card: var(--yellow); }
.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 54px -22px rgba(31, 41, 55, .3),
              0 10px 20px -10px rgba(31, 41, 55, .16);
}
.product-media {
  position: relative;
  /* La fruta transparente sobresale por encima de la tarjeta */
  margin: -58px .5rem -8px;
  aspect-ratio: 16 / 11;
  overflow: visible;
  display: grid; place-items: end center;
  background: transparent;
  z-index: 1;
}
.product-media img {
  width: 100%; height: 100%; object-fit: contain; object-position: bottom;
  filter: drop-shadow(0 16px 13px rgba(31, 41, 55, .20));
  transition: transform .8s var(--ease-out), filter .5s;
}
.product:hover .product-media img { transform: translateY(-3px) scale(1.05); filter: saturate(1.1) drop-shadow(0 22px 16px rgba(31, 41, 55, .24)); }
.badge-gancho {
  position: absolute; bottom: 4px; left: 6px; z-index: 3;
  font-size: .58rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  padding: .22rem .5rem; border-radius: 999px;
  background: var(--brand-grad); color: var(--brand-ink);
  box-shadow: 0 8px 20px -8px rgba(252,0,143,.8);
}
.badge-out {
  position: absolute; bottom: 6px; left: 8px; z-index: 3;
  font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: .36rem .72rem; border-radius: 999px;
  background: #fff; color: var(--cream-3);
  border: 1.5px solid var(--line);
}
.product-body { padding: .8rem 1rem 1rem; display: flex; flex-direction: column; flex: 1; }
.product-control { margin-top: auto; }
.product-top { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; }
.product-name { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
.product-price { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; color: var(--cream); white-space: nowrap; }
.product-price small { font-size: .72rem; color: var(--cream-3); font-family: var(--sans); font-weight: 500; }
.product-note { margin-top: .35rem; color: var(--cream-3); font-size: .9rem; }
.product-add {
  margin-top: 1rem; width: 100%;
  padding: .78rem 1rem; border-radius: 12px;
  background: var(--azul);
  color: #fff;
  font-weight: 700; font-size: .92rem;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  transition: background .3s, transform .3s var(--ease-out);
}
.product-add:hover { background: var(--cian); color: var(--petroleo); }
.product-add:active { transform: scale(.97); }
.product-add:disabled { opacity: .45; cursor: not-allowed; background: var(--cream-3); }
.product.is-out { opacity: .78; }
.product.is-out .product-media img { filter: grayscale(.55) brightness(.96); }

.qty { margin-top: 1rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.qty-btn {
  width: 42px; height: 42px; border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 12%, #fff); border: 1.5px solid var(--violet-lo);
  color: var(--brand-deep); font-size: 1.35rem; line-height: 1; font-weight: 700;
  display: grid; place-items: center;
  transition: background .25s, transform .2s;
}
.qty-btn:hover { background: var(--brand); color: var(--brand-ink); }
.qty-btn:active { transform: scale(.9); }
.qty-num { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--cream); }

.cat-foot {
  margin-top: 2rem; padding: 1.1rem 1.3rem;
  border: 2px dashed var(--line); border-radius: 14px;
  color: var(--cream-2); font-size: .92rem;
  display: flex; align-items: center; gap: .7rem;
}
.cat-foot svg { width: 20px; height: 20px; color: var(--brand); flex: none; }

/* =============================================================
   12. Combos
   ============================================================= */
.combos { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .combos { grid-template-columns: repeat(3, 1fr); } }
.combo {
  position: relative;
  padding: 1.7rem 1.5rem 1.5rem; border-radius: var(--radius);
  border: 1.5px solid var(--line);
  background: #fff;
  display: flex; flex-direction: column; gap: .6rem;
  transition: transform .5s var(--ease-out), border-color .4s, box-shadow .5s var(--ease-out);
  overflow: hidden;
  --card: var(--brand);
}
.combo::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--card); }
.combo:nth-child(3n+1) { --card: var(--brand); }
.combo:nth-child(3n+2) { --card: var(--cyan); }
.combo:nth-child(3n+3) { --card: var(--lime); }
.combo:hover { transform: translateY(-5px); border-color: var(--card); box-shadow: 0 24px 50px -30px color-mix(in srgb, var(--card) 70%, transparent); }
.combo h3 { font-size: 1.15rem; font-weight: 700; margin-top: .3rem; }
.combo p { color: var(--cream-2); font-size: .93rem; flex: 1; }
.combo-foot { display: flex; align-items: center; justify-content: space-between; margin-top: .4rem; }
.combo-price { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; }
.combo-add { font-size: .88rem; font-weight: 700; color: var(--brand-deep); display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; transition: gap .3s; }
.combo:hover .combo-add { gap: .6rem; }

/* =============================================================
   13. Cómo funciona
   ============================================================= */
.how {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 960px) { .how { grid-template-columns: 1.05fr .95fr; } }
.how.how-solo { grid-template-columns: 1fr !important; max-width: 760px; }
.how-figure {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1.5px solid var(--line);
  box-shadow: 0 30px 60px -40px rgba(8,52,73,.5);
}
.how-figure img { width: 100%; height: 100%; object-fit: cover; }
.how-figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(20,10,20,.55)); }
.how-figure figcaption {
  position: absolute; left: 1.2rem; bottom: 1.1rem; z-index: 2;
  font-size: .88rem;
}
.steps { display: flex; flex-direction: column; gap: .3rem; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 1.2rem;
  padding: 1.3rem 0;
  border-bottom: 1.5px solid var(--line-2);
}
.step:last-child { border-bottom: 0; }
.step-n {
  font-family: var(--serif); font-weight: 600; font-size: 1.3rem; color: var(--brand-deep);
  padding-top: .05rem;
}
.step h3 { font-size: 1.15rem; font-weight: 700; }
.step p { margin-top: .35rem; color: var(--cream-2); font-size: .96rem; }

/* =============================================================
   14. Zona / pago
   ============================================================= */
.zona {
  display: grid; gap: 2rem; grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 860px) { .zona { grid-template-columns: 1fr 1fr; } }
.zona-card {
  padding: clamp(1.8rem, 4vw, 2.8rem);
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(50,237,237,.22), transparent 55%),
    radial-gradient(120% 100% at 0% 100%, rgba(0,170,236,.22), transparent 55%),
    #fff;
}
.pagos { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.pago-chip {
  padding: .55rem 1rem; border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  font-weight: 700; font-size: .92rem; color: var(--cream);
}

/* =============================================================
   15. CTA final
   ============================================================= */
.cta { position: relative; overflow: hidden; text-align: center; }
.cta.bg-2 {
  background:
    radial-gradient(60% 80% at 15% 20%, rgba(252,0,143,.16), transparent 60%),
    radial-gradient(60% 80% at 85% 30%, rgba(50,237,237,.18), transparent 60%),
    radial-gradient(70% 90% at 50% 110%, rgba(130,195,65,.2), transparent 60%),
    var(--bg-2);
}
.cta-inner { position: relative; z-index: 2; max-width: 720px; margin-inline: auto; }
.cta .h2 { margin-top: 1rem; }
.cta p { margin: 1.2rem auto 2rem; color: var(--cream-2); max-width: 46ch; font-size: 1.1rem; }
.cta-glow { display: none; }

/* =============================================================
   16. Footer
   ============================================================= */
.footer {
  padding-block: 3.2rem 2.5rem;
  background: var(--petroleo);
  color: #fff;
}
.footer-top { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
.footer-logo { font-family: var(--serif); font-weight: 500; font-size: 1.65rem; color: #fff; }
.footer-logo i { color: var(--cian); font-style: normal; }
.footer p { color: rgba(255,255,255,.62); font-size: .92rem; margin-top: .6rem; max-width: 34ch; }
.footer-col h4 { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cian); margin-bottom: .8rem; }
.footer-col a, .footer-col span { display: block; color: rgba(255,255,255,.82); font-size: .95rem; padding: .2rem 0; transition: color .3s; }
.footer-col a:hover { color: var(--cian); }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.16);
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between;
  color: rgba(255,255,255,.55); font-size: .84rem;
}
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: var(--cian); }

/* =============================================================
   17. Carrito flotante
   ============================================================= */
.cartbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  transform: translateY(120%);
  transition: transform .55s var(--ease-out);
  padding: 0 var(--gutter) max(1rem, env(safe-area-inset-bottom));
}
.cartbar.is-open { transform: translateY(0); }
.cartbar-inner {
  max-width: var(--maxw); margin-inline: auto;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 60px -18px rgba(8,52,73,.45);
  padding: .5rem .55rem .5rem .95rem;
  display: flex; align-items: center; gap: .7rem; flex-wrap: nowrap;
  margin-bottom: .55rem;
}
.cartbar-info { flex: 1; min-width: 0; display: flex; align-items: center; gap: .55rem; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; }
.cartbar-chev {
  margin-left: auto; font-size: .8rem; font-weight: 800; white-space: nowrap;
  color: #fff; background: var(--azul);
  padding: .4rem .75rem; border-radius: 999px;
  box-shadow: 0 4px 12px -3px rgba(0,170,236,.5);
  transition: background .25s, transform .2s var(--ease-out);
}
.cartbar-info:hover .cartbar-chev { background: var(--cian); color: var(--petroleo); }
.cartbar-info:active .cartbar-chev { transform: scale(.96); }

/* Aviso de mínimo: franja propia sobre la barra, no mueve los botones. */
.cartbar-warn {
  max-width: var(--maxw); margin: 0 auto .45rem; text-align: center;
  background: var(--rosa); color: var(--brand-deep);
  font-size: .78rem; font-weight: 700; line-height: 1.3;
  padding: .4rem .8rem; border-radius: 999px;
}
.cartbar-warn[hidden] { display: none; }

/* Barra de progreso con moto hacia el pedido mínimo */
.cart-prog {
  max-width: var(--maxw); margin: 0 auto .5rem;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 10px 26px -16px rgba(8,52,73,.4);
  padding: .6rem .85rem .5rem;
}
.cart-prog[hidden] { display: none; }
.cart-prog-track {
  position: relative; height: 8px; border-radius: 999px;
  background: rgba(31,41,55,.1); margin: .55rem .2rem .1rem;
}
.cart-prog-fill {
  position: absolute; left: 0; top: 0; height: 100%; width: 0%;
  background: var(--brand-grad); border-radius: 999px;
  transition: width .5s var(--ease-out);
}
.cart-prog-moto {
  position: absolute; top: 50%; left: 0;
  width: 34px; height: 34px; object-fit: contain;
  transform: translate(-50%, -60%) scaleX(-1);
  transition: left .5s var(--ease-out);
  filter: drop-shadow(0 3px 4px rgba(8,52,73,.3));
}
.cart-prog-msg {
  text-align: center; font-size: .82rem; font-weight: 600;
  color: var(--cream-2); margin-top: .5rem; line-height: 1.3;
}
.cart-prog-msg b { color: var(--brand-deep); font-weight: 800; }
.cart-prog.is-done .cart-prog-msg { color: var(--brand); }
.cart-prog.is-done .cart-prog-msg b { color: var(--brand); }

/* ---- Resumen editable del pedido (se despliega sobre la barra) ---------- */
.cart-items {
  max-width: var(--maxw); margin: 0 auto .5rem; background: #fff;
  border: 1.5px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 60px -18px rgba(8,52,73,.45);
  padding: .35rem .6rem; max-height: 46vh; overflow-y: auto;
}
.ci {
  display: grid; grid-template-columns: auto 1fr auto auto auto;
  align-items: center; gap: .5rem;
  padding: .5rem .15rem; border-bottom: 1px solid var(--line);
}
.ci:last-child { border-bottom: 0; }
.ci-img {
  width: 34px; height: 34px; flex: none; border-radius: 9px;
  object-fit: cover; background: var(--bg-2); border: 1px solid var(--line);
}
.ci-img--ph { display: block; }
.ci-n { font-weight: 600; font-size: .9rem; color: var(--petroleo); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-qty { display: inline-flex; align-items: center; gap: .35rem; }
.ci-qty .qty-btn {
  width: 26px; height: 26px; border-radius: 50%; padding: 0;
  display: grid; place-items: center; font-size: 1rem; font-weight: 800;
  background: var(--rosa); color: var(--brand-deep); border: 0; line-height: 1;
}
.ci-qty .qty-btn:disabled { opacity: .35; }
.ci-u { min-width: 62px; text-align: center; font-size: .8rem; font-weight: 700; color: var(--petroleo); }
.ci-sub { font-weight: 800; font-size: .9rem; color: var(--petroleo); min-width: 62px; text-align: right; }
.ci-x { width: 26px; height: 26px; border-radius: 50%; padding: 0; display: grid; place-items: center; font-size: .78rem; color: var(--cream-3); background: rgba(8,52,73,.06); border: 0; }
.ci-x:hover { color: #fff; background: var(--fucsia); }
.cartbar-total { font-weight: 800; font-size: 1.22rem; color: var(--cream); letter-spacing: -.02em; }
.cartbar-count { font-size: .76rem; color: var(--cream-3); font-weight: 600; }
.cartbar-warn { font-size: .72rem; color: var(--brand-deep); font-weight: 700; line-height: 1.25; }
.cartbar-actions { display: flex; align-items: center; gap: .4rem; }
.cart-clear {
  width: 30px; height: 30px; padding: 0; border-radius: 50%;
  display: grid; place-items: center; font-size: .85rem;
  color: var(--cream-3); background: rgba(8,52,73,.06); transition: .25s;
}
.cart-clear:hover { color: #fff; background: var(--cream); }
.cartbar-actions .btn { padding: .62rem 1.05rem; font-size: .88rem; }
.cartbar-actions .btn svg { width: 17px; height: 17px; }
/* Botón "Pedir": verde (cierre de la compra) */
.cartbar-actions .btn-primary {
  background: var(--verde); color: #fff;
  box-shadow: 0 12px 30px -10px rgba(130,195,65,.75);
}
.cartbar-actions .btn-primary:hover {
  background: #6fae33; color: #fff;
  box-shadow: 0 20px 40px -12px rgba(130,195,65,.9);
}

@supports not ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .nav.is-solid { background: rgba(255,253,248,.98); }
}

/* =============================================================
   18. Reveal on scroll
   ============================================================= */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }

.is-ready .hero-bg img { animation: heroZoom 16s var(--ease-soft) forwards; }
@keyframes heroZoom { to { transform: scale(1.0); } }

/* =============================================================
   19. Reduced motion (solo lo intrusivo)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-mesh { animation: none; }
  .chip .dot { animation: none; }
  .is-ready .hero-bg img { animation: none; transform: scale(1.03); }
  .float-wa { animation: none; }
}

/* =============================================================
   20. Añadidos: etiqueta de tipo, contador, WhatsApp flotante
   ============================================================= */
.cat-count { margin-top: .7rem; color: var(--cream-2); font-size: .98rem; font-weight: 600; }
.cat-count b { color: var(--brand-deep); font-weight: 800; }

.product-tag {
  display: inline-block; font-size: .68rem; font-weight: 800;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--brand-deep); margin-bottom: .35rem;
}

/* modal de checkout */
.modal {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(36, 24, 38, .55);
  display: grid; place-items: center; padding: 1rem;
  overflow-y: auto;
}
.modal[hidden] { display: none; }
.modal-card {
  position: relative; width: 100%; max-width: 440px;
  background: #fff; border-radius: 22px; padding: clamp(1.4rem, 4vw, 2rem);
  box-shadow: 0 40px 80px -30px rgba(8,52,73,.6);
}
.modal-card h3 { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; letter-spacing: -.02em; color: var(--brand-deep); }
.nowrap { white-space: nowrap; }
.h3-apple { height: 1.02em; width: auto; vertical-align: -.12em; margin-left: .1rem; }
.modal-sub { color: var(--cream-2); font-size: .95rem; margin-top: .3rem; margin-bottom: 1.1rem; }
.modal-card label { display: block; font-size: .92rem; font-weight: 800; color: var(--brand-deep); margin-bottom: .7rem; letter-spacing: -.01em; }
.modal-card input {
  width: 100%; margin-top: .25rem; padding: .75rem .85rem;
  border: 1.5px solid var(--line); border-radius: 12px; font: inherit; color: var(--cream); background: #fff;
}
.modal-card input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.modal-x {
  position: absolute; top: .7rem; right: .9rem; font-size: 1.7rem; line-height: 1;
  color: var(--cream-3); background: none; border: 0; cursor: pointer;
}
.modal-x:hover { color: var(--cream); }
.modal-legal { font-size: .76rem; color: var(--cream-3); margin-top: .8rem; text-align: center; }

.float-wa {
  position: fixed; right: clamp(1rem, 3vw, 1.6rem); bottom: clamp(1rem, 3vw, 1.6rem);
  z-index: 190;
  display: inline-flex; align-items: center; gap: .5rem;
  background: #25D366; color: #05270f; font-weight: 800; font-size: .95rem;
  padding: .7rem 1.15rem .7rem .8rem; border-radius: 999px;
  box-shadow: 0 14px 34px -10px rgba(37,211,102,.7);
  transition: transform .5s var(--ease-out), opacity .4s, box-shadow .4s;
  animation: waBob 3.2s var(--ease-soft) infinite;
}
.float-wa svg { width: 27px; height: 27px; flex: none; }
.float-wa:hover { transform: translateY(-3px); box-shadow: 0 22px 42px -10px rgba(37,211,102,.85); }
.float-wa.is-tucked { opacity: 0; pointer-events: none; transform: translateY(30px) scale(.9); }
@keyframes waBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (max-width: 520px) { .float-wa span { display: none; } .float-wa { padding: .85rem; } }

/* ---- Checkout: error y confirmación ---- */
.modal-error {
  background: #fde8ef; color: #a3004f; border: 1.5px solid #f9b9d2;
  padding: .6rem .8rem; border-radius: 10px; font-size: .85rem; font-weight: 600; margin-bottom: .8rem;
}
.modal-error[hidden] { display: none; }
.modal-ok { text-align: center; }
.modal-ok-icon {
  width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 1rem;
  display: grid; place-items: center; font-size: 1.9rem; font-weight: 800;
  background: var(--verde); color: #fff;
  box-shadow: 0 12px 26px -12px rgba(130,195,65,.9);
}
.modal-ok h3 { font-family: var(--serif); font-weight: 600; font-size: 1.55rem; }
.modal-num {
  margin: .9rem 0 1.2rem; font-size: .92rem; color: var(--cream-2);
  background: var(--bg-2); padding: .55rem; border-radius: 10px;
}
.modal-num b { color: var(--brand-deep); }

/* ---- Validación de dirección en el checkout ---- */
.campo-aviso {
  display: block; margin-top: .35rem;
  font-size: .78rem; font-weight: 600; line-height: 1.35;
  color: #a3004f; background: #fde8ef;
  border: 1.5px solid #f9b9d2; border-radius: 9px; padding: .45rem .6rem;
}
.campo-aviso[hidden] { display: none; }
.modal-card input.campo-malo { border-color: #f9b9d2; background: #fff7fa; }
.modal-card input.campo-malo:focus { outline-color: #dc2626; }
/* el "+" al llegar al tope: inerte y sin explicaciones */
.qty-btn:disabled { opacity: .35; cursor: not-allowed; }
.qty-btn:disabled:hover { background: color-mix(in srgb, var(--brand) 12%, #fff); color: var(--brand-deep); }

/* ---- Botón de ubicación GPS en el checkout ---- */
.btn-ubicacion {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  width: 100%; margin-bottom: .7rem;
  padding: .7rem 1rem; border-radius: 12px;
  background: #fff; border: 2px dashed var(--brand);
  color: var(--brand-deep); font-weight: 700; font-size: .9rem;
  cursor: pointer; transition: background .25s, border-color .25s;
}
.btn-ubicacion:hover { background: var(--bg-2); }
.btn-ubicacion:disabled { opacity: .6; cursor: wait; }
.btn-ubicacion svg { width: 18px; height: 18px; flex: none; }
.geo-estado {
  font-size: .78rem; font-weight: 600; line-height: 1.35;
  padding: .5rem .65rem; border-radius: 9px; margin-bottom: .8rem;
}
.geo-estado[hidden] { display: none; }
.geo-bien    { background: #e7f7dd; color: #2f6b12; border: 1.5px solid #bfe5a3; }
.geo-mal     { background: #fde8ef; color: #a3004f; border: 1.5px solid #f9b9d2; }
.geo-dudoso  { background: #fff6e0; color: #7a5300; border: 1.5px solid #f3d99b; }
.geo-buscando{ background: var(--bg-4); color: #0b5c68; border: 1.5px solid #a8e9ec; }

/* ---- Mapa del checkout ---- */
.geo-hint { font-size: .78rem; color: var(--cream-2); font-weight: 600; margin: .1rem 0 .4rem; }
.geo-map {
  height: 190px; border-radius: 12px; overflow: hidden;
  border: 1.5px solid var(--line); margin-bottom: .6rem; background: #e9eef0;
  position: relative; z-index: 0;
}
.geo-map .leaflet-container { font: inherit; }
/* pin propio (sin depender de imágenes de Leaflet) */
.pin-domi span {
  display: block; width: 20px; height: 20px; border-radius: 50% 50% 50% 0;
  background: var(--fucsia); border: 3px solid #fff;
  transform: rotate(-45deg); box-shadow: 0 3px 8px rgba(8,52,73,.5);
}

/* =============================================================
   v3 — Hero con propuesta de valor (estilo v2: verde + ámbar)
   ============================================================= */
.btn-lg { padding: .95rem 1.7rem; font-size: 1.02rem; }

.v3hero {
  background:
    radial-gradient(120% 90% at 85% 6%, #DCFCE7 0%, rgba(220,252,231,0) 55%),
    linear-gradient(180deg, #EAF7EE 0%, var(--bg) 62%);
  padding: clamp(1.6rem, 4vw, 3rem) 0 clamp(1rem, 3vw, 2rem);
}
.v3hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.2rem; align-items: center; }
.v3hero-eyebrow {
  display: inline-block; font-family: var(--sans); font-weight: 700; font-size: .82rem;
  color: var(--brand-deep); background: #DCFCE7; padding: .35rem .85rem; border-radius: 999px;
}
.v3hero-copy h1 {
  font-family: var(--serif); font-weight: 800; letter-spacing: -.02em;
  font-size: clamp(2.3rem, 5.2vw, 3.6rem); line-height: 1.08;
  color: var(--petroleo); margin-top: 1rem;
}
.v3hero-copy h1 .accent { color: var(--brand); }
.v3hero-lead { margin-top: 1rem; font-size: clamp(1.02rem, 2.2vw, 1.18rem); color: var(--cream-2); max-width: 36ch; }
.v3hero-lead b { color: var(--brand-deep); font-weight: 700; }

.v3hero-chips { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem .9rem; margin: 1.5rem 0 1.7rem; padding: 0; }
.v3hero-chips li { display: flex; align-items: center; gap: .55rem; font-size: .92rem; font-weight: 500; color: var(--petroleo); }
.v3chip-ic { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: #DCFCE7; flex: none; font-size: 19px; line-height: 1; box-shadow: inset 0 0 0 1px rgba(0,0,0,.03); }
.v3chip-ic svg { width: 18px; height: 18px; }
/* variantes de color para el ícono-proceso */
.v3chip-ic--amber { background: #FEF3C7; }
.v3chip-ic--green { background: #DCFCE7; }
.v3chip-ic--deep  { background: #D1FAE0; }
.v3chip-ic--cash  { background: #FEF9C3; }
/* número de paso (como los de "Cómo funciona") */
.v3chip-n {
  position: absolute; top: -6px; right: -6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-family: var(--sans); font-style: normal; font-weight: 800; font-size: .68rem;
  display: grid; place-items: center; box-shadow: 0 2px 5px -1px rgba(20,83,45,.5);
}
.v3chip-tx { font-weight: 700; color: var(--petroleo); }
.v3hero-chips--proceso li b { font-weight: 800; color: var(--brand-deep); }

.v3hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
/* CTA principal del hero en naranja (más llamativo) */
.v3hero-actions .btn-primary { background: var(--amber); color: #3b2600; box-shadow: 0 12px 30px -10px rgba(245,158,11,.6); }
.v3hero-actions .btn-primary:hover { background: #fbbf24; color: #3b2600; box-shadow: 0 20px 40px -12px rgba(245,158,11,.75); }

/* Visual del hero: canasta de fruta sobre blob verde */
.v3hero-visual { position: relative; min-height: 380px; }
.v3hero-blob { position: absolute; inset: 6% 0 4% 4%; background: radial-gradient(circle at 50% 45%, #d6f3df 0%, #bfe9cb 62%, #a9e0b8 100%); border-radius: 44% 56% 52% 48% / 52% 44% 56% 48%; }
.v3hero-badge {
  position: absolute; top: 0; right: 2%; z-index: 3;
  width: 104px; height: 104px; border-radius: 50%;
  background: #fff; box-shadow: 0 20px 45px -18px rgba(20,83,45,.5);
  display: grid; place-content: center; text-align: center;
  font-family: var(--serif); font-weight: 800; font-size: 1.4rem; color: var(--brand);
  border: 3px solid #DCFCE7;
}
.v3hero-badge small { display: block; font-size: .52rem; letter-spacing: .06em; text-transform: uppercase; color: var(--cream-2); font-weight: 700; margin-top: 2px; }
.v3hero-cluster { position: absolute; inset: 0; }
.v3hero-cluster .hf { position: absolute; filter: drop-shadow(0 14px 16px rgba(20,83,45,.28)); }
.hf1 { width: 150px; left: 30%; top: 8%; z-index: 2; }
.hf2 { width: 130px; left: 4%;  top: 30%; transform: rotate(-10deg); }
.hf3 { width: 104px; right: 6%; top: 24%; z-index: 3; }
.hf4 { width: 98px;  left: 16%; top: 60%; z-index: 3; }
.hf5 { width: 120px; right: 10%; top: 58%; transform: rotate(9deg); }

@media (max-width: 820px){
  .v3hero-grid { grid-template-columns: 1fr; }
  .v3hero-visual { min-height: 300px; order: -1; }
  .v3hero-chips { max-width: 420px; }
}
@media (max-width: 480px){
  .v3hero-chips { grid-template-columns: 1fr; }
  .v3hero-actions .btn { flex: 0 1 auto; }
  .v3hero-actions .btn-lg { padding: .78rem 1.2rem; font-size: .94rem; }
  .hf1 { width: 120px; } .hf2 { width: 104px; } .hf5 { width: 96px; }
}

/* =============================================================
   v3 — Canasta principal (imagen 2) + capa de hojas cayendo
   ============================================================= */
.v3hero-photo {
  position: relative; z-index: 2;
  display: block; width: min(100%, 470px); height: auto; margin: 0 auto;
  filter: drop-shadow(0 24px 30px rgba(20,83,45,.26));
}
.v3hero-fallback { display: none; }
.v3hero-visual.no-photo .v3hero-photo { display: none; }
.v3hero-visual.no-photo .v3hero-fallback { display: block; }

/* Capa de hojas: fija, no intercepta clics, por encima del contenido
   pero por debajo de topbar/carrito/modal. */
.leaf-layer {
  position: fixed; inset: 0; z-index: 6;
  pointer-events: none;
  width: 100%; height: 100%;
}
@media (prefers-reduced-motion: reduce) { .leaf-layer { display: none; } }

/* ---- Selector de pago + ñapa (ruleta) --------------------------------- */
/* ---- Selector de método de pago (estilo :has()) -------------------- */
.paylist { border: 0; padding: 0; margin: .3rem 0 0; }
.pay-q {
  font-size: 1.05rem; font-weight: 800; color: var(--brand-deep); margin-bottom: .5rem; padding: 0;
  letter-spacing: -.01em;
}
/* Medios de pago en rejilla de 2 en 2 */
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
/* Celda: logo (siempre) + nombre que aparece al seleccionar. Sin punto. */
.pm {
  position: relative; overflow: hidden; margin: 0; cursor: pointer;
  display: flex; align-items: center; gap: .6rem; min-width: 0;
  padding: .6rem .7rem; border-radius: 13px; background: #fff;
  border: 1.5px solid var(--line);
  transition: border-color .5s var(--ease-out), background .5s var(--ease-out), box-shadow .5s var(--ease-out), transform .2s;
}
.pm:hover { background: #F6FBF3; }
.pm:active { transform: scale(.99); }
.pm input { position: absolute; opacity: 0; pointer-events: none; }
.pm:has(input:checked) {
  border-color: var(--brand); background: #F0FDF4;
  box-shadow: 0 10px 22px -14px rgba(22,163,74,.75);
}
.pm-logo { height: 22px; width: auto; max-width: 58px; object-fit: contain; flex: none; }
/* El nombre del método se muestra SIEMPRE junto a su logo */
.pm-name {
  font-weight: 800; font-size: .9rem; color: var(--brand-deep);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Panel de datos de pago + comprobante (según el método) */
.pay-info { margin-top: .6rem; }
.pay-dato {
  background: #F0FDF4; border: 1.5px solid rgba(22,163,74,.3); border-radius: 13px;
  padding: .7rem .85rem; font-size: .9rem; color: var(--brand-deep); line-height: 1.4;
  animation: rulPop .35s var(--ease-out);
}
.pay-dato .pd-lbl { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .03em; font-weight: 800; color: #15803D; margin-bottom: .1rem; }
.pay-dato .pd-val { display: inline-flex; align-items: center; gap: .5rem; font-size: 1.15rem; font-weight: 900; color: var(--petroleo); letter-spacing: .01em; }
.pd-copy { border: 0; background: var(--brand); color: #fff; font-weight: 800; font-size: .78rem; padding: .34rem .7rem; border-radius: 999px; cursor: pointer; white-space: nowrap; box-shadow: 0 6px 14px -8px rgba(22,163,74,.9); }
.pd-copy:hover { filter: brightness(1.06); }
.pd-copy:active { transform: scale(.95); }
.pd-copy.ok { background: #15803D; }
.pd-titular { display: block; margin-top: .35rem; font-size: .82rem; color: var(--cream-3); font-weight: 600; }
@keyframes rulPop { 0% { transform: translateY(6px); opacity: 0; } 100% { transform: none; opacity: 1; } }

.pay-comp { margin-top: .5rem; }
.comp-btn {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1rem; border-radius: 12px; cursor: pointer;
  background: #fff; border: 1.5px dashed var(--brand); color: var(--brand-deep);
  font-family: var(--sans); font-weight: 800; font-size: .9rem; transition: background .2s;
}
.comp-btn:hover { background: #F0FDF4; }
.comp-prev {
  display: flex; align-items: center; gap: .7rem;
  background: #F0FDF4; border: 1.5px solid rgba(22,163,74,.3); border-radius: 12px; padding: .5rem .6rem;
}
.comp-prev[hidden] { display: none; }
.comp-prev img { width: 46px; height: 46px; object-fit: cover; border-radius: 9px; flex: none; border: 1px solid rgba(22,163,74,.3); }
.comp-prev-tx { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; flex: 1; }
.comp-prev-tx b { font-size: .86rem; color: #15803D; }
.comp-prev-tx span { font-size: .76rem; color: var(--cream-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.comp-x { border: 0; background: #fff; color: var(--cream-3); width: 26px; height: 26px; border-radius: 50%; cursor: pointer; font-size: 1rem; line-height: 1; flex: none; border: 1px solid var(--line); }
.comp-x:hover { color: #b91c1c; }

/* ---- Modal de pago anticipado (llave/número + comprobante) --------- */
.paymodal {
  position: fixed; inset: 0; z-index: 460;
  background: rgba(20, 40, 25, .6); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 1rem; overflow-y: auto;
}
.paymodal[hidden] { display: none; }
.paymodal-card {
  position: relative; width: 100%; max-width: 400px; background: #fff;
  border-radius: 22px; padding: clamp(1.3rem, 4vw, 1.8rem);
  box-shadow: 0 40px 80px -28px rgba(8,52,73,.65);
  animation: rulPop .3s var(--ease-out);
}
.paymodal-top { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.paymodal-logo { height: 34px; width: auto; max-width: 96px; object-fit: contain; flex: none; }
.paymodal-head { min-width: 0; }
.paymodal-h { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--brand-deep); margin: 0; letter-spacing: -.01em; }
.paymodal-sub { color: var(--cream-2); font-size: .84rem; margin: .2rem 0 0; line-height: 1.35; }
.paymodal-dato { margin: 0 0 .7rem; }
.paymodal-total {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg-2); border-radius: 12px; padding: .6rem .85rem; margin-bottom: .8rem;
  font-size: .92rem; font-weight: 700; color: var(--cream-2);
}
.paymodal-total b { font-size: 1.2rem; color: var(--brand-deep); }
.paymodal-ok { width: 100%; margin-top: .9rem; justify-content: center; }
.paymodal-ok:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; filter: grayscale(.3); }
.paymodal-cancel {
  display: block; width: 100%; margin-top: .55rem; padding: .4rem;
  background: none; border: 0; color: var(--cream-3); font-weight: 700; font-size: .84rem;
  cursor: pointer; text-decoration: underline;
}
.paymodal-cancel:hover { color: var(--cream); }

/* La grilla de métodos usa display:grid, así que el [hidden] necesita ganar */
.pay-grid[hidden] { display: none !important; }

/* Resumen cuando el comprobante ya está adjunto (ocultamos los botones) */
.pay-done {
  display: flex; align-items: center; gap: .7rem;
  background: #F0FDF4; border: 1.5px solid rgba(22,163,74,.3); border-radius: 14px;
  padding: .6rem .75rem;
}
.pay-done[hidden] { display: none; }
.pay-done-logo { height: 30px; width: auto; max-width: 74px; object-fit: contain; flex: none; }
.pay-done-tx { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; flex: 1; }
.pay-done-tx b { font-size: .92rem; color: var(--brand-deep); }
.pay-done-ok { font-size: .8rem; font-weight: 700; color: #15803D; }
.pay-done-edit {
  flex: none; background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .35rem .8rem; font-family: var(--sans); font-weight: 800; font-size: .8rem;
  color: var(--brand-deep); cursor: pointer; transition: background .2s;
}
.pay-done-edit:hover { background: var(--bg-2); }

/* ---- Confirmación de pedido (overlay aparte) --------------------- */
.okmodal {
  position: fixed; inset: 0; z-index: 480;
  background: rgba(20, 40, 25, .62); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 1rem; overflow-y: auto;
}
.okmodal[hidden] { display: none; }
.okmodal-card {
  position: relative; width: 100%; max-width: 400px; background: #fff;
  border-radius: 24px; padding: clamp(1.6rem, 5vw, 2.1rem); text-align: center;
  box-shadow: 0 40px 80px -28px rgba(8,52,73,.65);
  animation: rulPop .32s var(--ease-out);
}
.okmodal-check {
  width: 74px; height: 74px; object-fit: contain; margin: 0 auto .8rem; display: block;
  animation: okPop .5s var(--ease-out) both;
}
@keyframes okPop { 0% { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
.okmodal-card h3 { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; color: var(--brand-deep); margin: 0 0 .5rem; }
.okmodal-sub { color: var(--cream-2); font-size: .95rem; line-height: 1.45; margin: 0 0 1rem; }
.okmodal-sub b { color: var(--brand-deep); }
.okmodal-num {
  margin: 0 0 .7rem; font-size: .95rem; color: var(--cream-2);
  background: var(--bg-2); padding: .6rem; border-radius: 12px;
}
.okmodal-num b { color: var(--brand-deep); }
.okmodal-napa { margin: 0 0 .9rem; background: #FEF3C7; color: #92400E; font-weight: 700; font-size: .92rem; padding: .55rem .8rem; border-radius: 12px; }
.okmodal-napa[hidden] { display: none; }
.okmodal-track { width: 100%; justify-content: center; text-decoration: none; text-align: center; }
.okmodal-listo {
  display: block; width: 100%; margin-top: .6rem; padding: .55rem;
  background: none; border: 0; color: var(--cream-3); font-weight: 800; font-size: .9rem; cursor: pointer;
}
.okmodal-listo:hover { color: var(--brand-deep); }

/* ---- Modal "Mis pedidos" (estado + historial) -------------------- */
.mped-modal .modal-card { max-width: 460px; }
.mped-gate label { display: block; font-weight: 700; color: var(--brand-deep); font-size: .9rem; margin-bottom: .7rem; }
.mped-gate input {
  display: block; width: 100%; margin-top: .3rem; padding: .75rem .85rem;
  border: 1.5px solid #d1d5db; border-radius: 12px; font-family: inherit; font-size: 1.02rem; color: var(--brand-deep);
}
.mped-gate input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(22,163,74,.16); }
.mped-gate .ganga-cta { width: 100%; justify-content: center; margin-top: .3rem; }
.mped-load { text-align: center; color: var(--cream-2); padding: 1.4rem 0; font-weight: 600; }
.mped-load[hidden], .mped-res[hidden], .mped-gate[hidden] { display: none; }
.mped-saludo { color: var(--cream-2); font-size: .95rem; margin: 0 0 .8rem; }
.mped-saludo b { color: var(--brand-deep); }
.mped-otro { display: block; margin: .4rem auto 0; background: none; border: 0; color: var(--brand); font-weight: 800; font-size: .85rem; cursor: pointer; }

.mped-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: .95rem 1rem; box-shadow: 0 12px 26px -22px rgba(20,83,45,.5); margin-bottom: .85rem; }
.mped-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.mped-id { font-weight: 800; color: var(--brand-deep); font-size: 1.02rem; }
.mped-fecha { color: var(--cream-3); font-size: .8rem; }
.mped-badge { margin-left: auto; font-weight: 800; font-size: .74rem; padding: .26rem .6rem; border-radius: 999px; white-space: nowrap; }
.mped-badge.b-live { background: #DCFCE7; color: #166534; }
.mped-badge.b-done { background: #E0E7FF; color: #3730a3; }
.mped-badge.b-cancel { background: #FEE2E2; color: #991b1b; }

.mped-steps { display: flex; margin: .85rem 0 .5rem; padding: 0; list-style: none; }
.mped-steps li { flex: 1; text-align: center; position: relative; font-size: .62rem; color: var(--cream-3); font-weight: 700; }
.mped-steps li .dot { width: 19px; height: 19px; border-radius: 50%; background: #e5e7eb; margin: 0 auto .3rem; display: grid; place-items: center; color: #fff; font-size: .66rem; position: relative; z-index: 2; }
.mped-steps li::before { content: ""; position: absolute; top: 9px; left: -50%; width: 100%; height: 3px; background: #e5e7eb; z-index: 1; }
.mped-steps li:first-child::before { display: none; }
.mped-steps li.on { color: var(--brand-deep); }
.mped-steps li.on .dot { background: var(--brand); }
.mped-steps li.on::before { background: var(--brand); }
.mped-steps.cancel li .dot { background: #fca5a5; }
.mped-steps.cancel li::before { background: #fca5a5; }

.mped-items { list-style: none; margin: .5rem 0 0; padding: .6rem 0 0; border-top: 1px dashed var(--line); }
.mped-items li { display: flex; gap: .5rem; font-size: .88rem; padding: .1rem 0; }
.mped-items .q { color: var(--brand); font-weight: 800; flex: none; }
.mped-items .n { flex: 1; min-width: 0; }
.mped-items .s { color: var(--cream-3); font-weight: 700; }
.mped-napa { margin-top: .55rem; background: #FEF3C7; color: #92400E; font-weight: 700; font-size: .84rem; padding: .42rem .7rem; border-radius: 10px; }
.mped-tot { display: flex; justify-content: space-between; align-items: center; margin-top: .65rem; font-weight: 800; color: var(--brand-deep); font-size: 1.02rem; }
.mped-comp { display: inline-block; margin-top: .55rem; font-size: .82rem; font-weight: 800; color: var(--brand); text-decoration: none; }
.mped-empty { text-align: center; color: var(--cream-2); padding: 1.6rem 1rem; }
.mped-empty .em { font-size: 2.2rem; display: block; margin-bottom: .45rem; }

/* ---- Resumen del pedido (frutas + ñapa) --------------------------- */
.ck-resumen {
  background: #F0FDF4; border: 1.5px solid rgba(22,163,74,.22); border-radius: 16px;
  padding: .8rem .95rem; margin: .2rem 0 .3rem;
}
.ck-resumen[hidden] { display: none; }
.ckr-head { font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 800; color: var(--brand-deep); margin-bottom: .5rem; }
.ckr-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.ckr-row { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--cream); }
.ckr-q { flex: none; min-width: 1.9rem; font-weight: 800; color: var(--brand-deep); }
.ckr-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ckr-sub { flex: none; font-weight: 700; color: var(--cream-2); }
.ckr-napa { background: #FEF3C7; margin: .15rem -.35rem 0; padding: .4rem .55rem; border-radius: 10px; color: #92400E; font-weight: 700; }
.ckr-napa .ckr-n { white-space: normal; }
.ckr-napa i { font-style: normal; font-weight: 600; opacity: .85; }
.ckr-free { flex: none; background: #16A34A; color: #fff; font-size: .68rem; font-weight: 800; padding: .2rem .5rem; border-radius: 999px; letter-spacing: .03em; }
.ckr-napa-off { opacity: .92; }
.ckr-total {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: .6rem; padding-top: .55rem; border-top: 1.5px dashed rgba(22,163,74,.3);
  font-weight: 700; color: var(--cream-2); font-size: .92rem;
}
.ckr-total b { font-size: 1.2rem; color: var(--brand-deep); }

/* ---- Botón de pedido (mismo brillo del banner gancho) -------------- */
.pedir-cta { margin-top: .8rem; }

/* ---- Camión cargando (mientras se envía el pedido) ---------------- */
.pedir-cta.is-loading { pointer-events: none; }
.truck-loader { display: inline-flex; align-items: center; gap: .7rem; }
.tl-wrap {
  position: relative; width: 96px; height: 38px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
}
.tl-body { width: 66px; margin-bottom: 4px; animation: tlMotion 1s linear infinite; }
.tl-body svg { width: 66px; height: auto; display: block; }
@keyframes tlMotion { 50% { transform: translateY(2px); } }
.tl-tires {
  width: 66px; position: absolute; bottom: 2px;
  display: flex; justify-content: space-between; padding: 0 5px 0 8px;
}
.tl-tires svg { width: 14px; height: 14px; animation: tlSpin 1s linear infinite; }
@keyframes tlSpin { to { transform: rotate(360deg); } }
.tl-road {
  width: 100%; height: 3px; border-radius: 3px; align-self: flex-end;
  background-color: rgba(0, 0, 0, .22);
  background-image: linear-gradient(90deg, #fff 0 13px, transparent 13px 26px);
  background-size: 26px 100%; background-repeat: repeat-x;
  animation: tlRoad .55s linear infinite;
}
@keyframes tlRoad { to { background-position: -26px 0; } }
.tl-tx { font-family: var(--sans); font-weight: 800; font-size: .98rem; color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .tl-body, .tl-tires svg, .tl-road { animation: none; }
}

/* ---- Resumen "ya te conocemos" ------------------------------------ */
.checkout-known {
  background: #F0FDF4; border: 1.5px solid rgba(22,163,74,.28); border-radius: 16px;
  padding: .8rem .9rem; margin-bottom: .3rem; display: flex; flex-direction: column; gap: .5rem;
}
.ck-row { display: flex; align-items: center; gap: .6rem; }
.ck-ic { width: 26px; height: 26px; object-fit: contain; flex: none; }
.ck-tx { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.ck-tx b { font-size: .74rem; text-transform: uppercase; letter-spacing: .03em; color: var(--brand-deep); font-weight: 800; }
.ck-tx > span { font-size: .95rem; color: var(--cream); font-weight: 600; }
.ck-ver { color: #15803D; font-size: .68rem; font-weight: 800; }
.ck-edit {
  align-self: flex-start; margin-top: .1rem; background: none; border: 0; padding: 0;
  color: var(--brand); font-weight: 700; font-size: .86rem; cursor: pointer; text-decoration: underline;
}
.modal-napa { margin-top: .6rem; background: #FEF3C7; color: #92400E; font-weight: 700; font-size: .92rem; padding: .55rem .8rem; border-radius: 12px; }

/* Efecto máquina de escribir en "domicilio" (juego domilio→domicilio) */
.typeword { white-space: nowrap; }
/* cursor de escritura, pegado al final de la palabra que se escribe */
.typeword.is-typing::after {
  content: ""; display: inline-block; width: 2px; height: 1em;
  background: currentColor; vertical-align: -1px; margin-left: 1px;
  animation: twBlink .7s steps(1) infinite;
}
@keyframes twBlink { 50% { opacity: 0; } }

/* Fondo premium sutil: patron de hojas finas detras del hero (#1) */
.v3hero { position: relative; }
.v3hero::before { content:''; position:absolute; inset:0; z-index:0; pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27160%27%20height%3D%27160%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27%23cfe6d4%27%20stroke-width%3D%271.3%27%20stroke-linecap%3D%27round%27%3E%3Cpath%20d%3D%27M28%2018c19%208%2023%2031%208%2054C21%2049%2016%2031%2028%2018z%27%2F%3E%3Cpath%20d%3D%27M36%2072C26%2054%2026%2035%2028%2018%27%2F%3E%3Cpath%20d%3D%27M118%2092c19%208%2023%2031%208%2054c-15-23-20-40-8-54z%27%2F%3E%3Cpath%20d%3D%27M126%20146c-10-18-10-37-8-54%27%2F%3E%3Cpath%20d%3D%27M92%2020c-14%204-22%2016-22%2030%27%20opacity%3D%27.6%27%2F%3E%3Cpath%20d%3D%27M40%20128c14-4%2022-16%2022-30%27%20opacity%3D%27.6%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); background-size:160px 160px; opacity:.45; }
.v3hero > .container, .v3hero > .valuestrip { position:relative; z-index:1; }

/* ======================================================================
   Cobertura al ingresar (#4): chip en la barra + modal de 3 pasos
   ====================================================================== */
/* --- chip de ubicación en la barra superior --- */
.loc-chip {
  display: none; align-items: center; gap: .5rem;
  margin-left: auto; padding: .3rem .6rem .3rem .5rem;
  background: #fff; border: 1.5px solid var(--brand); border-radius: 999px;
  color: var(--brand-deep); font: inherit; cursor: pointer;
  max-width: 60vw; transition: box-shadow .2s, transform .1s;
}
.loc-chip[hidden] { display: none !important; }
.loc-chip.is-on { display: inline-flex; }
.loc-chip:active { transform: scale(.98); }
.loc-chip-pin { width: 26px; height: 26px; object-fit: contain; flex: none; }
.loc-chip-body { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; text-align: left; }
.loc-chip-lbl { font-size: .62rem; text-transform: uppercase; letter-spacing: .04em; color: var(--cream-3); font-weight: 700; }
.loc-chip-dir { font-size: .82rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42vw; }
.loc-chip-edit { flex: none; font-size: .7rem; font-weight: 800; color: #fff; background: var(--brand);
  padding: .18rem .5rem; border-radius: 999px; }
/* cuando el chip está activo, ocultamos el botón de ubicación para dar espacio */
.topbar.has-loc .loc-btn { display: none; }

/* Botón "Pon tu ubicación" (se ve cuando aún no hay dirección) */
.loc-btn {
  display: inline-flex; align-items: center; gap: .4rem; margin-left: auto;
  padding: .38rem .8rem .38rem .55rem; border-radius: 999px; cursor: pointer;
  background: var(--brand-grad); color: #fff; border: 0;
  font-family: var(--sans); font-weight: 800; font-size: .82rem; white-space: nowrap;
  box-shadow: 0 8px 18px -10px rgba(22,163,74,.9);
}
.loc-btn:hover { filter: brightness(1.05); }
.loc-btn:active { transform: scale(.98); }
.loc-btn-pin { width: 20px; height: 20px; object-fit: contain; flex: none; filter: brightness(0) invert(1); }
.topbar.has-loc .loc-btn { display: none; }

/* Chip que voltea entre "Estás en…" y "Estado de mi pedido" (efecto wow) */
.loc-chip { perspective: 800px; overflow: visible; }
.loc-flip { display: grid; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.5,1.4,.5,1); }
.loc-face { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: .5rem; backface-visibility: hidden; }
.loc-face--estado { transform: rotateX(180deg); pointer-events: none; }
.loc-chip.show-estado .loc-flip { transform: rotateX(180deg); }
.loc-chip.show-estado .loc-face--dir { pointer-events: none; }
.loc-chip.show-estado .loc-face--estado { pointer-events: auto; }
.loc-estado-ic { font-size: 1.15rem; flex: none; }
.loc-chip-go { background: var(--amber) !important; color: #3b2600 !important; }
@media (max-width: 720px) {
  .loc-chip-dir { max-width: 38vw; }
}
/* Móvil: el botón/chip pegado a la derecha y sin espacios de más */
@media (max-width: 480px) {
  .topbar-inner.container { padding-left: .6rem; padding-right: .5rem; }
  .loc-btn { margin-left: auto; padding: .3rem .6rem .3rem .42rem; font-size: .74rem; gap: .28rem; }
  .loc-btn-pin { width: 16px; height: 16px; }
  .loc-chip { margin-left: auto; padding: .24rem .38rem; gap: .32rem; }
  .loc-chip-pin { width: 21px; height: 21px; }
  .loc-chip-lbl { font-size: .56rem; }
  .loc-chip-dir { font-size: .74rem; max-width: 32vw; }
  .loc-chip-edit { font-size: .62rem; padding: .15rem .4rem; }
  .loc-estado-ic { font-size: .98rem; }
}

/* --- modal de cobertura --- */
.cobmodal {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center;
  padding: 1.1rem;
  background: rgba(15, 34, 22, .55); backdrop-filter: blur(3px);
  animation: cobFade .25s ease both;
}
.cobmodal[hidden] { display: none; }
@keyframes cobFade { from { opacity: 0; } to { opacity: 1; } }
/* En móvil, subimos el modal para que el teclado no tape el campo ni los
   resultados del buscador (el desplegable además abre hacia arriba). */
@media (pointer: coarse) {
  .cobmodal { align-items: flex-start; overflow-y: auto; padding-top: 3vh; }
  .cobmodal-card { margin-top: 0; }
}
.cobmodal-card {
  position: relative; width: 100%; max-width: 430px;
  background: #fff; border-radius: 22px; padding: 2rem 1.5rem 1.4rem;
  box-shadow: 0 30px 70px -20px rgba(8, 40, 20, .55);
  text-align: center; animation: cobPop .32s var(--ease-bounce) both;
}
@keyframes cobPop { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
.cob-x {
  position: absolute; top: .6rem; right: .7rem; width: 34px; height: 34px;
  border: 0; background: var(--bg-2); border-radius: 50%; font-size: 1.3rem; line-height: 1;
  color: var(--cream-2); cursor: pointer;
}
.cob-x:hover { background: #e6f1d8; }
.cob-emoji { font-size: 2.6rem; line-height: 1; margin-bottom: .3rem; filter: drop-shadow(0 6px 10px rgba(0,0,0,.12)); }
.cob-title { font-family: var(--serif); font-size: 1.32rem; line-height: 1.2; color: var(--brand-deep); margin-bottom: .35rem; }
.cob-sub { color: var(--cream-2); font-size: .95rem; margin-bottom: 1rem; }
.cob-dir-eco { background: var(--bg-2); border-radius: 12px; padding: .55rem .7rem; color: var(--brand-deep); font-weight: 600; }
.cob-map {
  width: 100%; height: 240px; border-radius: 14px; overflow: hidden;
  margin: .3rem 0 .55rem; background: #eef6e5; border: 1px solid rgba(22,163,74,.22);
}
.cob-mapfb { font-size: .86rem; font-weight: 700; margin: 0 0 .7rem; }
.cob-mapfb.is-ok { color: #15803d; }
.cob-mapfb.is-bad { color: #b91c1c; }
.cob-tipo { display: flex; gap: .6rem; margin-bottom: .8rem; }
.cob-tipo-op {
  flex: 1; padding: .8rem .6rem; border: 2px solid var(--line); border-radius: 14px;
  background: #fff; color: var(--brand-deep); font: inherit; font-weight: 700; cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
}
.cob-tipo-op:hover { border-color: var(--brand); }
.cob-tipo-op:active { transform: scale(.98); }
.cob-tipo-op.is-on { border-color: var(--brand); background: #DCFCE7; color: #15803d; }
.cob-field { margin-bottom: .7rem; text-align: left; }
.cob-field input, .cob-label input {
  width: 100%; padding: .8rem .9rem; font: inherit;
  border: 1.6px solid var(--line); border-radius: 13px; background: #fff; color: var(--petroleo);
}
.cob-field input:focus, .cob-label input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(22,163,74,.16); }
.cob-label { display: block; text-align: left; font-weight: 600; color: var(--brand-deep); font-size: .9rem; margin-bottom: .9rem; }
.cob-label input { margin-top: .35rem; font-weight: 400; }
.cob-verificar { width: 100%; justify-content: center; margin-bottom: .5rem; }
.cob-btn { width: 100%; justify-content: center; margin-top: .2rem; }
.cob-geo {
  width: 100%; justify-content: center; margin-bottom: .5rem; background: #fff;
  border: 1.5px dashed var(--brand); color: var(--brand-deep);
}
.cob-geo:hover { background: var(--bg-2); }
.cob-geo svg { width: 18px; height: 18px; }
.cob-estado { font-size: .86rem; font-weight: 600; padding: .5rem .6rem; border-radius: 10px; margin-bottom: .5rem; }
.cob-estado[hidden] { display: none; }
.cob-estado.buscando { background: #FEF9C3; color: #854D0E; }
.cob-estado.mal { background: #FEE2E2; color: #991B1B; }
.cob-estado.bien { background: #DCFCE7; color: #166534; }
.cob-skip { display: block; width: 100%; margin-top: .7rem; background: none; border: 0;
  color: var(--cream-3); font: inherit; font-size: .85rem; text-decoration: underline; cursor: pointer; }
.cob-skip:hover { color: var(--cream-2); }

/* --- banner de ubicación ya cargada en el checkout --- */
.checkout-loc {
  display: flex; align-items: center; gap: .5rem;
  background: var(--bg-2); border: 1.5px solid rgba(22,163,74,.35); border-radius: 13px;
  padding: .6rem .7rem; margin-bottom: .8rem; color: var(--brand-deep);
}
.checkout-loc[hidden] { display: none; }
.checkout-loc svg { width: 20px; height: 20px; color: var(--brand); flex: none; }
.checkout-loc-txt { flex: 1; min-width: 0; font-size: .88rem; line-height: 1.3; }
.checkout-loc-txt b { color: var(--brand-deep); }
.checkout-loc-edit { flex: none; border: 0; background: var(--brand); color: #fff; font: inherit;
  font-size: .74rem; font-weight: 800; padding: .3rem .6rem; border-radius: 999px; cursor: pointer; }
.checkout-loc-edit:hover { background: var(--brand-deep); }
/* cuando la dirección ya viene precargada, colapsamos el bloque de mapa/pin del checkout */
.modal.loc-lista [data-geo-map],
.modal.loc-lista .geo-hint,
.modal.loc-lista [data-geo],
.modal.loc-lista label:has([name="direccion"]),
.modal.loc-lista label:has([name="conjunto"]) { display: none; }

/* Ya te conocemos: ocultamos nombre + WhatsApp + banner de dirección y mostramos el resumen */
.modal.datos-listos label:has([name="nombre"]),
.modal.datos-listos label:has([name="telefono"]),
.modal.datos-listos [data-checkout-loc] { display: none; }
.modal:not(.datos-listos) [data-checkout-known] { display: none !important; }

/* ======================================================================
   Ajustes de layout (barra del carrito, pasos, zona)
   ====================================================================== */
/* Secciones compactas + encabezado centrado */
.section--tight { padding-block: clamp(1.9rem, 4vw, 3rem); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center p { margin-left: auto; margin-right: auto; }

/* "Cómo funciona" en fila compacta de tarjetas */
.steps--row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem;
  margin-top: clamp(1.1rem, 3vw, 1.8rem);
}
.steps--row .step {
  border-bottom: 0; padding: 1.1rem .8rem .95rem; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 12px 28px -22px rgba(8,52,73,.45);
  display: flex; flex-direction: column; align-items: center; gap: .12rem;
  position: relative; transition: transform .25s var(--ease-out), box-shadow .25s;
}
.steps--row .step:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -20px rgba(8,52,73,.4); }
.steps--row .step-ic { font-size: 1.85rem; line-height: 1; margin-bottom: .35rem; }
.steps--row .step-n {
  position: absolute; top: .5rem; right: .6rem;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg-2); color: var(--brand-deep);
  font-size: .72rem; font-weight: 800; display: grid; place-items: center;
}
.steps--row .step h3 { font-size: 1rem; font-weight: 700; color: var(--petroleo); }
.steps--row .step p { margin-top: .12rem; color: var(--cream-2); font-size: .84rem; line-height: 1.35; }
@media (max-width: 640px) {
  .steps--row { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .steps--row .step { padding: .9rem .6rem .8rem; }
  .steps--row .step-ic { font-size: 1.6rem; }
}

/* Tarjeta de pago centrada (sección zona, sin el bloque de cobertura) */
.zona-card--solo { max-width: 620px; margin: 0 auto; text-align: center; }
.zona-card--solo .pagos { justify-content: center; }

/* --- Barra del carrito: en escritorio al costado derecho --- */
@media (min-width: 992px) {
  .cartbar { left: auto; right: 0; width: min(430px, 42vw); padding: 0 1.2rem 1.2rem 0; }
  .cartbar .cart-items, .cartbar .cart-prog, .cartbar-inner { max-width: none; margin-left: 0; margin-right: 0; }
  body.cart-abierto { padding-bottom: 150px; }   /* que el pie no quede tapado por el panel */
}
/* --- En móvil/tablet: reserva espacio abajo para que la barra fija no tape el contenido --- */
@media (max-width: 991px) {
  body.cart-abierto { padding-bottom: 215px; }
}

/* ======================================================================
   Mercado Solidario — barra de anuncio superior (#5)
   ====================================================================== */
:root { --sol-h: 0px; }
body.has-sol { --sol-h: 36px; }
.solbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 102;
  height: var(--sol-h); width: 100%;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 0 1rem; overflow: hidden; border: 0; cursor: pointer;
  background: linear-gradient(90deg, var(--brand-deep) 0%, var(--brand) 55%, var(--amber) 100%);
  color: #fff; font-family: var(--sans); font-size: .82rem; line-height: 1;
  box-shadow: 0 2px 10px -4px rgba(8,40,20,.5);
}
.solbar[hidden] { display: none; }
.solbar-ic { width: 28px; height: 28px; object-fit: contain; flex: none; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.solbar-marquee { flex: 1 1 auto; min-width: 0; overflow: hidden; height: 100%; display: flex; align-items: center; }
.solbar-track { white-space: nowrap; will-change: transform; letter-spacing: -.005em; }
.solbar-track b { font-weight: 800; }
.solbar-track.is-fixed { width: 100%; text-align: center; overflow: hidden; text-overflow: ellipsis; }
.solbar-scroll { display: inline-block; padding-left: 100%; animation: solScroll 22s linear 1 both; }
@keyframes solScroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .solbar-scroll { animation: none; padding-left: 0; } }
.solbar-prog { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: rgba(255,255,255,.22); }
.solbar-prog > span { display: block; height: 100%; width: 0%; background: #fff; border-radius: 0 2px 2px 0; transition: width .7s var(--ease-out); }
/* desplazar las barras fijas y el contenido cuando la barra de anuncio está visible */
.topbar { top: var(--sol-h); }
.nav { top: calc(var(--topbar-h) + var(--sol-h)); }
main { padding-top: calc(var(--topbar-h) + var(--sol-h)); }
@media (max-width: 480px) {
  body.has-sol { --sol-h: 34px; }
  .solbar { font-size: .72rem; gap: .35rem; padding: 0 .6rem; }
  .solbar-donados { display: none; }   /* en móvil, ahorramos espacio */
}

/* Hint "¿Qué es?" en la barra del Mercado Solidario */
.solbar-que {
  flex: none; font-size: .72rem; font-weight: 800; letter-spacing: .01em;
  background: rgba(255,255,255,.22); color: #fff;
  padding: .16rem .5rem; border-radius: 999px; white-space: nowrap;
}
@media (max-width: 480px) {
  .solbar-que { padding: .16rem .42rem; font-size: .82rem; }
  .solbar-que-tx { display: none; }   /* en móvil dejamos solo la ⓘ, que sigue abriendo la explicación */
}

/* Modal: qué es el Mercado Solidario */
.solinfo {
  position: fixed; inset: 0; z-index: 130; display: flex; align-items: center; justify-content: center;
  padding: 1.1rem; background: rgba(15,34,22,.55); backdrop-filter: blur(3px);
  animation: cobFade .25s ease both;
}
.solinfo[hidden] { display: none; }
.solinfo-card {
  position: relative; width: 100%; max-width: 420px; background: #fff; border-radius: 22px;
  padding: 2rem 1.5rem 1.5rem; text-align: center;
  box-shadow: 0 30px 70px -20px rgba(8,40,20,.55); animation: cobPop .32s var(--ease-bounce) both;
}
.solinfo-emoji { font-size: 2.7rem; line-height: 1; margin-bottom: .3rem; filter: drop-shadow(0 6px 10px rgba(0,0,0,.12)); }
.solinfo-h { font-family: var(--serif); font-size: 1.4rem; color: var(--brand-deep); margin-bottom: .45rem; }
.solinfo-p { color: var(--cream-2); font-size: .95rem; line-height: 1.5; margin-bottom: 1rem; }
.solinfo-prog { height: 12px; border-radius: 999px; background: rgba(31,41,55,.1); overflow: hidden; margin: .4rem 0 .7rem; }
.solinfo-prog > span { display: block; height: 100%; width: 0%; border-radius: 999px; background: var(--brand-grad); transition: width .7s var(--ease-out); }
.solinfo-num { color: var(--brand-deep); font-size: .95rem; }
.solinfo-num b { color: var(--brand-deep); }
.solinfo-don { margin-top: .5rem; background: var(--bg-2); border-radius: 12px; padding: .5rem .7rem; color: var(--brand-deep); font-size: .9rem; }
.solinfo-btn { width: 100%; justify-content: center; margin-top: 1rem; }

/* ======================================================================
   Logo con letras (wordmark), flujo premium "Cómo funciona", medios de pago
   ====================================================================== */
/* Logo wordmark (imagen con letras) */
.logo-wordmark { height: 58px; width: auto; display: block; }
.logo--wordmark { gap: 0; }
.logo--wordmark .logo-fallback { display: none; }
.logo--wordmark.no-img .logo-fallback { display: inline-flex; align-items: center; gap: .5rem; }
.logo--wordmark-lg .logo-wordmark { height: 44px; }
.logo-wordmark-xl { height: clamp(90px, 24vw, 160px); }
@media (max-width: 480px) { .logo-wordmark { height: 48px; } }

/* --- "Cómo funciona": flujo premium con línea conectora --- */
.flow {
  list-style: none; padding: 0; margin: clamp(1.4rem, 3vw, 2.3rem) 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; position: relative;
}
.flow::before {
  content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 3px; border-radius: 999px;
  background: linear-gradient(90deg, #86EFAC, #16A34A 45%, #F59E0B); opacity: .5; z-index: 0;
}
.flow-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .12rem; }
.flow-node {
  position: relative; width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 3px solid var(--brand); font-size: 1.9rem; line-height: 1; margin-bottom: .75rem;
  box-shadow: 0 14px 30px -14px rgba(20,83,45,.55); transition: transform .3s var(--ease-bounce);
}
.flow-step:hover .flow-node { transform: translateY(-5px) scale(1.05); }
.flow-ic { width: 46px; height: 46px; object-fit: contain; display: block; }
.flow-num {
  position: absolute; bottom: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand-grad); color: #fff; font-weight: 800; font-size: .76rem; display: grid; place-items: center;
  border: 2px solid #fff; box-shadow: 0 3px 6px -1px rgba(20,83,45,.5);
}
.flow-step h3 { font-family: var(--serif); font-size: 1.05rem; font-weight: 700; color: var(--brand-deep); }
.flow-step p { color: var(--cream-2); font-size: .88rem; line-height: 1.4; max-width: 22ch; }
.flow-note {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  margin: clamp(1.5rem, 3vw, 2.3rem) auto 0; max-width: 580px;
  background: linear-gradient(100deg, #FEF3C7, #FDE68A); color: #92400E; font-weight: 600;
  padding: .7rem 1.15rem; border-radius: 999px; font-size: .95rem; line-height: 1.35;
  box-shadow: 0 12px 26px -16px rgba(245,158,11,.75);
  text-wrap: balance;
}
.flow-note-ic { width: 30px; height: 30px; object-fit: contain; flex: none; }
.flow-note b { color: #7c2d12; }
@media (max-width: 480px) {
  .flow-note { font-size: .82rem; padding: .55rem .8rem; gap: .45rem; }
  .flow-note-ic { width: 24px; height: 24px; }
}

/* Aviso "tu último pedido ya fue entregado" en el modal de pedidos */
.mped-msg { text-align: center; color: var(--cream-2); font-size: .85rem; font-weight: 600; margin: 0 0 .7rem; }
@media (max-width: 640px) {
  .flow { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
  .flow::before { display: none; }
  .flow-node { width: 58px; height: 58px; }
  .flow-ic { width: 40px; height: 40px; }
  .flow-note { font-size: .86rem; text-align: left; }
}

/* --- Medios de pago (logos de billeteras) --- */
.pay-title { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--brand-deep); }
.pay-sub { color: var(--cream-2); margin: .6rem auto 0; max-width: 46ch; line-height: 1.5; text-wrap: balance; }
.paylogos { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1.2rem; }
.pay-logo {
  display: inline-flex; align-items: center; gap: .5rem; background: #fff;
  border: 1.5px solid var(--line); border-radius: 12px; padding: .4rem .85rem .4rem .45rem;
  font-weight: 700; font-size: .9rem; color: var(--petroleo); box-shadow: 0 8px 18px -14px rgba(8,52,73,.55);
}
.pay-logo-mk {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  color: #fff; font-weight: 900; font-size: 1rem; flex: none;
}
.pay-nequi  .pay-logo-mk { background: #2B0A4E; color: #FF2E86; }
.pay-davi   .pay-logo-mk { background: #ED1C24; }
.pay-transf .pay-logo-mk { background: #0F766E; font-size: .95rem; }
.pay-breb   .pay-logo-mk { background: #00A499; }
.pay-efec   .pay-logo-mk { background: #16A34A; font-size: .95rem; }

/* ======================================================================
   Banner de la oferta gancho — impacto + escasez (#5 #6)
   ====================================================================== */
.hook { padding: clamp(.5rem, 2vw, 1.1rem) 0; }
.ganga {
  position: relative; overflow: hidden; border-radius: 26px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(134,239,172,.55), transparent 60%),
    linear-gradient(120deg, #F3FBE8 0%, #E7F7D6 55%, #DCF3C6 100%);
  box-shadow: 0 26px 60px -28px rgba(20,83,45,.5), inset 0 0 0 1px rgba(22,163,74,.14);
}
/* patrón de hojas muy sutil */
.ganga::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M30 20c18 0 30 12 30 30 0 0-12 0-21-9S30 20 30 20Z' fill='none' stroke='%2316a34a' stroke-width='1.5' opacity='.13'/%3E%3Cpath d='M92 78c-14 0-24 10-24 24 0 0 10 0 17-7s7-17 7-17Z' fill='none' stroke='%2316a34a' stroke-width='1.5' opacity='.1'/%3E%3C/svg%3E");
}
.ganga-main {
  position: relative; z-index: 2; display: grid; align-items: center;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(1rem, 3vw, 2rem);
  padding: clamp(1.3rem, 3vw, 2rem) clamp(1.3rem, 3.5vw, 2.4rem) clamp(1rem, 2.5vw, 1.4rem);
}
.ganga-info { min-width: 0; }
.ganga-badges { display: inline-flex; align-items: center; gap: .35rem; }
.ganga-flame {
  display: inline-flex; align-items: center; gap: .3rem;
  background: linear-gradient(180deg, #16632F, #124A25); color: #fff; font-weight: 900;
  font-size: clamp(.82rem, 2.4vw, 1rem); letter-spacing: .02em; text-transform: uppercase;
  padding: .4rem .85rem; border-radius: 999px 4px 4px 999px;
  box-shadow: 0 10px 20px -10px rgba(18,74,37,.9);
}
.ganga-today {
  background: linear-gradient(180deg, #22C55E, #16A34A); color: #fff; font-weight: 900;
  font-size: clamp(.72rem, 2vw, .86rem); letter-spacing: .04em; text-transform: uppercase;
  padding: .4rem .7rem; border-radius: 4px 999px 999px 4px;
}
.ganga-name {
  font-family: var(--serif); font-weight: 800; color: var(--brand-deep);
  font-size: clamp(1.7rem, 5.4vw, 2.9rem); line-height: 1.02; letter-spacing: -.01em;
  text-transform: uppercase; margin-top: .7rem;
}
.ganga-desc { color: #3f6b46; font-weight: 600; font-size: clamp(.9rem, 2.4vw, 1.05rem); margin-top: .3rem; }
.ganga-price { display: flex; align-items: baseline; gap: .3rem; margin-top: .7rem; }
.ganga-now {
  font-family: var(--serif); font-weight: 900; color: var(--brand);
  font-size: clamp(2.4rem, 8vw, 3.6rem); line-height: .9; letter-spacing: -.02em;
}
.ganga-unit { color: #4b7a52; font-weight: 700; font-size: clamp(.95rem, 2.6vw, 1.15rem); }
.ganga-savings { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .8rem; margin-top: .55rem; }
.ganga-before { color: #6b7280; font-weight: 600; font-size: clamp(.9rem, 2.4vw, 1.05rem); }
.ganga-before s { color: #9ca3af; }
.ganga-save {
  display: inline-flex; align-items: baseline; gap: .3rem;
  background: #DCFCE7; color: #15803D; font-weight: 800; font-size: clamp(.82rem, 2.2vw, .98rem);
  text-transform: uppercase; letter-spacing: .02em; padding: .4rem .8rem; border-radius: 999px;
}
.ganga-save b { font-weight: 900; }
.ganga-cta {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  margin-top: 1.1rem; width: 100%; max-width: 420px; border: 0; cursor: pointer;
  background: linear-gradient(180deg, #22C55E, #16A34A); color: #fff;
  font-family: var(--sans); font-weight: 900; font-size: clamp(1rem, 2.8vw, 1.18rem); letter-spacing: .01em;
  padding: .95rem 1.4rem; border-radius: 16px; text-transform: uppercase;
  transition: transform .2s var(--ease-out), filter .2s;
  animation: gangaGlow 2.2s ease-in-out infinite;
}
/* brillo pulsante ("luz") */
@keyframes gangaGlow {
  0%, 100% { box-shadow: 0 16px 30px -12px rgba(22,163,74,.85); }
  50%      { box-shadow: 0 18px 40px -10px rgba(34,197,94,.95), 0 0 24px 2px rgba(74,222,128,.6); }
}
/* destello que barre el botón como un haz de luz */
.ganga-cta::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -75%; width: 55%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-18deg); pointer-events: none;
  animation: gangaShine 3.2s ease-in-out infinite;
}
@keyframes gangaShine { 0% { left: -75%; } 55%, 100% { left: 135%; } }
.ganga-cta-ic { width: 30px; height: 30px; object-fit: contain; flex: none; filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0,0,0,.3)); }
.ganga-cta > span { position: relative; z-index: 1; }
.ganga-cta:hover { transform: translateY(-2px) scale(1.015); filter: brightness(1.06); }
.ganga-cta:active { transform: translateY(0) scale(.99); }
/* --- media: fruta dentro de una canasta Domilio (cambia con el catálogo) --- */
.ganga-media { position: relative; align-self: stretch; display: grid; place-items: center; min-height: 240px; }
.ganga-basket {
  width: 100%; max-width: 400px; height: auto; object-fit: contain;
  filter: drop-shadow(0 22px 26px rgba(20,83,45,.3));
}
@media (max-width: 720px) {
  .ganga-main { grid-template-columns: 1fr; gap: .4rem; padding: 1.3rem 1.2rem 1.2rem; }
  .ganga-info { order: 2; }
  .ganga-media { order: 1; min-height: 0; margin-bottom: .2rem; }
  .ganga-basket { max-width: 300px; }
  .ganga-cta { max-width: none; }
}
/* Aviso solidario del tope de la fruta gancho */
.gtoast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 320;
  width: min(440px, calc(100vw - 28px)); display: flex; align-items: flex-start; gap: .7rem;
  background: #fff; border-radius: 16px; padding: .9rem 1.05rem;
  box-shadow: 0 22px 46px -16px rgba(20,83,45,.6), inset 0 0 0 1px rgba(22,163,74,.16);
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease-out);
}
.gtoast.is-on { opacity: 1; transform: translate(-50%, 0); }
.gtoast-ic { font-size: 1.5rem; line-height: 1; flex: none; }
.gtoast-tx { display: flex; flex-direction: column; gap: .18rem; }
.gtoast-tx > b { color: var(--brand); font-weight: 800; font-size: .98rem; }
.gtoast-tx span { color: #40614a; font-size: .86rem; line-height: 1.42; }
.gtoast-tx span b { color: var(--brand-deep); font-weight: 800; }
@media (max-width: 560px) { .gtoast { bottom: 96px; } }
@media (prefers-reduced-motion: reduce) {
  .ganga-cta { transition: none; animation: none; }
  .ganga-cta::after { animation: none; display: none; }
}

/* ======================================================================
   Iconos de imagen (thiings) — chips del hero y medios de pago con logos
   ====================================================================== */
.v3chip-img { width: 34px; height: 34px; object-fit: contain; display: block; }

/* Medios de pago: tarjetas uniformes con logo + etiqueta */
.paylogos { gap: .7rem; }
.pay-logo {
  flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
  padding: .65rem .75rem .55rem; min-width: 90px;
}
.pay-logo-img { height: 38px; width: auto; max-width: 96px; object-fit: contain; display: block; }
.pay-logo-tx { font-size: .72rem; font-weight: 800; color: var(--cream-2); }

/* Fix: el reset img{max-width:100%} colapsa estos iconos dentro de contenedores
   flex sin ancho fijo -> forzamos su ancho real. */
.sf-ic, .splash-scooter, .cart-prog-moto, .loc-chip-pin,
.solbar-ic, .cat-ic-img, .flow-note-ic, .ganga-cta-ic, .ck-ic, .h3-apple { max-width: none; }
