/* ============================================================
   Todo Empanadas - App Cliente
   Mobile-first, premium UX, smooth & friendly
   ============================================================ */

:root {
  /* Brand */
  --brand-blue: #1A5DB5;
  --brand-blue-dark: #144A91;
  --brand-yellow: #F5A623;

  /* Action / CTA */
  --action: #FF4D4D;
  --action-dark: #E63E3E;
  --action-soft: #FFE5E5;

  /* Neutral */
  --bg: #FAFAFA;
  --card: #FFFFFF;
  --surface: #F4F4F5;
  --border: #E8E8EA;
  --text: #1A1A1A;
  --text-2: #6B7280;
  --text-3: #9CA3AF;
  /* Gris de lo secundario en Direcciones (calles, descripciones, km). El de
     Rappi es más oscuro que --text-2; mitad --text-2 y mitad --text da ese
     gris sin tocar el token global. Sin color-mix se queda en --text-2. */
  --texto-sec: var(--text-2);

  /* Semantic */
  --success: #10B981;
  /* El verde del boton de pagar. Sacado con cuentagotas de la captura de
     Rappi —rgb(51,201,91)— y no a ojo: el nuestro (#10B981) tira a esmeralda
     y el de ellos a pasto, y puestos uno junto al otro no se parecen. */
  --cta-verde: #33C95B;
  /* El punto azul de "tú estás aquí" en los mapas. NO es de la marca: es la
     convención de todos los mapas (Google, Apple), y con una marca roja el
     punto se confundiría con el destino. */
  --punto-tu-ubicacion: #1A73E8;
  --warn: #F59E0B;
  --danger: #EF4444;

  /* Sizing */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  /* Shadows */
  --sh-soft: 0 2px 8px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --sh-card: 0 4px 16px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --sh-pop:  0 12px 32px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.08);
  --sh-cta:  0 8px 24px rgba(255,77,77,0.32);

  /* Easing */
  --e-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --e-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --e-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --header-h: 96px;
  /* 76 + 10 + los 34 de la raya del iPhone = 120 pt de barra, contra 83 de
     una barra normal de iPhone: abajo de las etiquetas quedaba un hueco
     muerto de 60 pt. */
  --bottomnav-h: 56px;
  /* Aire DEBAJO de la barra cuando el aparato no trae raya del gesto (web,
     Android): sin esto las etiquetas quedan al filo. En el iPhone el lugar
     de la raya ya es ese aire; sumarle más era el hueco. */
  --bottomnav-aire: max(0px, calc(10px - var(--safe-bot)));
  --max-w: 480px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);
  /* La cámara y la barra de estado DE LADO: un iPhone acostado y el iPhone
     Duo (cerrado y abierto) en cuanto la app se compila con el SDK de iOS 27. */
  --safe-izq: env(safe-area-inset-left, 0px);
  --safe-der: env(safe-area-inset-right, 0px);
  /* La isla de abajo flota arriba de la rayita del iPhone (34 de zona: queda
     a 22, sin tocar la rayita, como la de Instagram) y a 6 donde no hay raya.
     Ocupa esto + su alto (--bottomnav-h + 2 de borde), menos que la barra de
     antes: los rellenos de abajo de las pantallas siguen alcanzando. */
  --isla-abajo: max(6px, calc(var(--safe-bot) - 12px));
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

/* En iOS, el WebView rebota (rubber band) por default. Para evitar que toda
   la app se mueva arriba/abajo al hacer scroll, fijamos html/body y el scroll
   ocurre dentro de .screen (overflow-y:auto).
   IMPORTANTE: solo aplicamos en native (Capacitor agrega .is-native al body
   via JS). En WEB dejamos el scroll natural del body — sin esto rompe los
   listeners de window.scroll y la navegacion por tabs/scrollIntoView.
   En Capacitor config tambien deshabilitamos scrollEnabled del WKWebView. */
html, body {
  height: 100%;
}
html.is-native, body.is-native {
  position: fixed;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}
/* Con la cámara de lado (4-nov, iPhone Duo): en la app el cuerpo se recorta a
   la zona segura y, con el transform, todo lo `position: fixed` (barra de
   abajo, carrito, hojas, avisos) se acomoda dentro de él sin tocar cada regla.
   Aquí el transform no despega a los pies (ver deslizarEntrada en app.js): el
   body no se desplaza, el scroll es de cada .screen. Sólo cuando hay orilla
   (la clase la pone app.js): parado en un iPhone normal no cambia nada. */
body.is-native.con-orillas {
  left: var(--safe-izq);
  right: var(--safe-der);
  width: auto;
  transform: translateZ(0);
}
/* En la web el documento sí se desplaza: basta con no meter el contenido
   debajo de la cámara. */
body:not(.is-native) {
  padding-left: var(--safe-izq);
  padding-right: var(--safe-der);
}

/* Cuando html no tiene background y el body se pone position:fixed (body lock para
   sheets con inputs), iOS muestra el background del UA que es negro. Forzamos el
   bg para que el "fondo" detras del sheet quede del color del app, no negro. */
html { background: var(--bg); }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'SF Pro Display', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
input, button { -webkit-appearance: none; appearance: none; }

/* ============================================================
   APP CONTAINER (mobile frame, max width)
   ============================================================ */
.app {
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
  padding-bottom: calc(var(--bottomnav-h) + var(--safe-bot) + var(--bottomnav-aire));
}

/* ============================================================
   SCROLL CONTAINER (iOS bounce fix) — solo en native
   ============================================================
   En iOS WebView el body rebota por default (rubber band). Para evitarlo
   hicimos body fixed con overflow:hidden. Pero entonces NINGUN elemento
   scrollea — el contenido se queda inmovil.
   Solucion: cada .screen es su PROPIO scroll container (overflow-y:auto).
   IMPORTANTE: solo aplica con body.is-native (Capacitor). En WEB el
   scroll natural del body funciona y este override rompe listeners de
   window.scroll que usa la nav por tabs.
   ============================================================ */
body.is-native .screen {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* ============================================================
   RESPONSIVE — TABLET / DESKTOP
   La app sigue siendo phone-first (max-w 480px en mobile), pero en
   pantallas mas anchas crece y aprovecha el espacio:
   - Tablet (>=768px): contenedor 720px + grid de productos 3 cols
   - Desktop (>=1100px): contenedor 960px + grid 4 cols
   - Sheets fixed (carrito/checkout/sheets) se centran al ancho del contenedor
   ============================================================ */
@media (min-width: 600px) {
  :root { --max-w: 720px; }
  /* Catalogo: 2 → 3 columnas */
  .products-grid { grid-template-columns: 1fr 1fr 1fr; gap: 14px; padding: 0 20px; }
  /* FABs y barras FIXED al viewport se centran al ancho del .app.
     OJO: NO incluir .reord-fab aqui — vive dentro del sheet (no es fixed),
     entonces el translateX(-50%) lo desplaza 50% a la IZQUIERDA dentro del
     sheet y el boton verde queda cortado del lado izquierdo en desktop. */
  .cart-fab, .co-fab, .suc-fab {
    left: 50% !important; right: auto !important;
    transform: translateX(-50%);
    max-width: var(--max-w);
    width: 100%;
  }
  /* Sheets bottom centrados como modales (no full-width). Combinamos el centrado
     horizontal (translateX(-50%)) con el slide-up (translateY) en un solo
     transform: translate(X, Y). Sin esto, una de las dos transforms se pierde. */
  .sheet, .sheet--product, .sheet--reorder, .sheet--info, .sheet--time, .sheet--receipt, .sheet--report, .sheet--rating {
    left: 50% !important;
    right: auto !important;
    width: 100% !important;
    max-width: var(--max-w) !important;
    transform: translate(-50%, 100%) !important;
  }
  .sheet.show, .sheet--product.show, .sheet--reorder.show,
  .sheet--info.show, .sheet--time.show, .sheet--receipt.show, .sheet--report.show, .sheet--rating.show {
    transform: translate(-50%, 0) !important;
  }
  /* sheet--addr-new tiene su propia logica (full-screen, slide top:0 bottom:0) */
  /* LOGIN: full-bleed en tablet — hero edge-to-edge + form ocupa el viewport
     completo con padding lateral generoso. Asi no quedan franjas blancas a
     los lados del form. Inputs/botones siguen en max-width 520px centrados
     dentro del form para que sean comodos de tocar y no demasiado anchos. */
  .screen--login {
    max-width: none;
    width: 100%;
    margin: 0;
  }
  .login-body {
    max-width: none;
    padding: 32px 24px calc(var(--safe-bot) + 22px);
  }
  .login-body > * { max-width: 520px; margin-left: auto; margin-right: auto; }
}
@media (min-width: 600px) {
  /* Los lados del MISMO color que el contenido. Antes el body iba gris
     lavanda y el .app blanco con sombra: se veia un marco, una caja flotando
     en una pagina. Ellos no tienen borde — la pagina es una sola. */
  html, body { background: var(--bg); }
  .app { background: var(--bg); box-shadow: none; }
  .screen { background: var(--bg); }
}
@media (min-width: 1024px) {
  :root { --max-w: 1100px; }
  /* Catalogo: 3 → 4 columnas */
  .products-grid { grid-template-columns: repeat(4, 1fr); }
  .app { box-shadow: none; }

  /* ===== LOGIN DESKTOP: 2-column estilo Uber Eats / Airbnb =====
     Foto del hero ocupa la mitad izquierda (full height), el form ocupa
     la mitad derecha centrado verticalmente. Ocupa todo el viewport (sin
     max-w) porque es la pantalla de entrada y se ve mas espectacular asi.
     IMPORTANTE: usamos !important porque la definicion original de
     .screen--login (display:flex column, mas abajo en el archivo) viene
     DESPUES en el orden de cascada y sin !important nos sobrescribiria. */
  .screen--login {
    width: 100vw !important;
    max-width: none !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    flex-direction: row !important;
    min-height: 100dvh !important;
    background: var(--bg) !important;
  }
  .login-hero {
    height: 100dvh !important;
    min-height: 100dvh !important;
    grid-column: 1 !important;
    flex: 1 !important;
  }
  .login-hero__logo {
    width: 140px; height: 140px;
    border-radius: 36px;
    font-size: 52px;
  }
  .login-body {
    grid-column: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 60px 80px !important;
    max-width: none !important;
    flex: 1 !important;
  }
  /* Inputs y botones del form alineados a la izquierda dentro de la columna
     derecha (no centrados al medio de la mitad), max 480px de ancho. */
  .login-body > * {
    max-width: 480px !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    width: 100% !important;
  }
  .login-title { font-size: 36px; }
  .login-sub { font-size: 16px; margin-bottom: 32px; }

  /* ===== CATALOGO DESKTOP: hero arriba + sidebar de categorias + grid productos =====
     Hero full-width arriba (con max-width). Las categorias (menu-tabs) se vuelven
     un sidebar vertical sticky a la izquierda. Los productos (menu-body) ocupan el
     resto con grid de 3-4 columnas. !important porque la def base esta mas abajo. */
  .screen--menu {
    max-width: 1320px !important;
    margin: 0 auto !important;
    padding: 0 32px !important;
    background: var(--bg) !important;
  }
  .store-hero {
    border-radius: 18px !important;
    /* El aire de arriba lo pone .store-cover-ancla: la portada ya no vive
       dentro del hero, es su hermana de arriba. */
    margin-top: 0 !important;
    overflow: hidden !important;
  }
  /* Tabs como sidebar vertical sticky a la izquierda */
  .menu-tabs {
    position: sticky !important;
    /* 🪤 Se pegaba a 24 del borde y la barra flotante del menu —la que trae el
       nombre de la tienda, 64 de alto y z-index 30— le pasaba por encima:
       "Promociones", la primera categoria, quedaba cortada a la mitad. Se pega
       DEBAJO de ella. */
    top: 80px !important;
    float: left !important;
    width: 220px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    overflow-x: visible !important;
    overflow-y: auto !important;
    max-height: calc(100dvh - 104px) !important;
    background: var(--card) !important;
    border-radius: 14px !important;
    padding: 14px 10px !important;
    margin-top: 18px !important;
    margin-right: 32px !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--sh-soft) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid var(--border) !important;
  }
  .menu-tab {
    width: 100% !important;
    text-align: left !important;
    border-radius: 10px !important;
    padding: 11px 14px !important;
    box-shadow: none !important;
    background: transparent !important;
    border: 1.5px solid transparent !important;
  }
  .menu-tab:hover {
    background: var(--bg) !important;
  }
  .menu-tab.active {
    background: var(--brand-blue) !important;
    color: #fff !important;
    border-color: var(--brand-blue) !important;
  }
  .menu-body {
    margin-left: 252px !important;
    padding-bottom: 80px !important;
  }
  .menu-section {
    padding: 0 !important;
  }
  /* Grid de productos del MENU: 4 cols en desktop (era 2 en mobile, ahora cards 50% mas compactas) */
  .menu-section__list {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px 14px !important;
  }
  /* Grid alternativo (.products-grid) tambien a 4 cols por consistencia */
  .menu-section .products-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    padding: 0 !important;
    gap: 14px !important;
  }
  /* Promo banners arriba del catalogo, antes del split */
  .menu-promo-banner, .menu-promo-strip {
    margin: 16px 0 !important;
  }

  /* ===== HOME DESKTOP: aprovechar el ancho de pantalla =====
     El home (.screen--home) hereda max-width de .app pero queremos darle mas
     espacio en desktop. Subimos a 1200px y centramos. Las "rows" (banners,
     featured) naturalmente se expanden al nuevo ancho. */
  .screen--home {
    max-width: 1200px !important;
    padding-left: 32px !important;
    padding-right: 32px !important;
  }
  /* HEADER LOCATION: en desktop el header__location estaba flex:1 1 auto y
     se estiraba ocupando todo el ancho del header (~1100px). Con tanto
     espacio horizontal y el address en display:block, visualmente parecia
     que "ENTREGAR EN" estaba a la izquierda y la direccion flotando lejos
     a la derecha. Fix: no estirar mas alla de lo necesario para la direccion. */
  .header__location {
    flex: 0 0 auto !important;
    max-width: 360px;
  }
  /* Banners en desktop: mantener proporcion similar a mobile (no estirados al ancho completo)
     Cada banner ~400px de ancho, scroll horizontal natural. */
  .banner {
    flex: 0 0 400px !important;
    height: 160px !important;
  }
  .banners { gap: 16px !important; }

  /* CARRITO DESKTOP: barra fija centrada abajo (como mobile, no esquina derecha) */
  .menu-body { padding-bottom: 120px !important; }
  .menu-tabs { padding-bottom: 14px !important; }

  /* ===== CHECKOUT DESKTOP: 2-column estilo Uber Eats =====
     Body completo a la izquierda (toggle, dirección, pago, opciones, notas).
     Summary sticky en column 2 derecha. Boton "Pagar" como tarjeta flotante
     bottom-right (mismo patron que el cart-fab, consistente). */
  .screen--checkout {
    max-width: 1100px !important;
    padding: 0 32px !important;
  }
  .co-body {
    display: grid !important;
    grid-template-columns: 1fr 360px !important;
    grid-auto-rows: min-content !important;
    column-gap: 32px !important;
    row-gap: 0 !important;
    align-items: start !important;
    padding-bottom: 80px !important;
  }
  /* TODOS los hijos del co-body van al column 1 EXCEPTO el summary */
  .co-body > *:not(.co-summary) {
    grid-column: 1 !important;
  }
  /* Summary sticky en column 2 derecha (estilo Uber Eats).
     span 99 evita que su altura estire la fila 1 (que dejaria hueco vacio
     bajo el toggle/secciones izquierdas). grid-auto-rows: min-content asegura
     que no se creen filas vacias. */
  .co-summary {
    grid-column: 2 !important;
    grid-row: 1 / span 99 !important;
    position: sticky !important;
    top: 24px !important;
    background: var(--card) !important;
    border-radius: 16px !important;
    padding: 22px !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--sh-soft) !important;
    margin: 0 !important;
    align-self: start !important;
  }
  /* CHECKOUT DESKTOP: el .co-fab queda como barra fija centrada abajo (como mobile),
     no en columna ni esquina. Asi la pagina acaba donde debe y el boton es prominente. */
  /* No customizamos .co-fab — usa los estilos base (position:fixed bottom 0 full-width) */
  .screen--cart, .screen--checkout {
    padding-bottom: calc(120px + var(--safe-bot)) !important;
  }
  /* Mostrar el bloque de sucursal en desktop (oculto en mobile) */
  .co-summary__store {
    display: flex !important;
  }
  /* Ocultar el "Resumen del carrito" duplicado en panel derecho — ahora movemos
     el .co-items real DENTRO del .co-summary via JS, no necesitamos el duplicado. */
  .co-summary__cart-toggle, .co-summary__cart-list {
    display: none !important;
  }
  /* .co-items movido al panel derecho: sin sombra ni fondo propio (ya estamos
     dentro del card del summary) + borde inferior separador */
  .co-summary .co-items {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 0 14px 0 !important;
    margin: 0 0 14px 0 !important;
    border-bottom: 1px solid var(--border) !important;
  }
  /* (padding-bottom de las screens lo dejamos en su valor original — calc(120px+safe)) */

  /* ===== CHECKOUT DESKTOP: secciones unificadas en un solo card =====
     En mobile cada seccion (.co-pay, .co-coupon, etc) es una card flotante separada.
     En desktop las unificamos en un card grande con divisores sutiles entre cada
     seccion — estilo Uber Eats. Mas profesional, menos awkward. */
  .co-body > *:not(.co-summary):not(.co-mode-toggle) {
    background: var(--card) !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    border-bottom: 1px solid var(--border) !important;
    margin: 0 !important;
  }
  /* Mode toggle (Domicilio/Recoger) queda como pill arriba, sin margen extra */
  .co-mode-toggle {
    margin: 0 0 12px 0 !important;
    padding: 3px !important;
  }
  /* Confirm-block (Recoger en + Se entrega en) sin margen extra */
  .co-confirm-block {
    margin: 0 !important;
  }
  /* Wrap visual del card: el primer hijo tras el mode-toggle redondea arriba,
     el ultimo redondea abajo y quita su border-bottom */
  .co-body > .co-mode-toggle + * {
    border-radius: 14px 14px 0 0 !important;
    border-top: 1px solid var(--border) !important;
  }
  .co-body > .co-confirm-block,
  .co-body > .co-items {
    border-radius: 0 0 14px 14px !important;
    border-bottom: none !important;
  }
}
/* Animacion solo opacity — NO transform: translateY porque el transform en
   un contenedor crea un nuevo "containing block" para position:fixed
   descendientes, lo cual rompe los fab buttons (cart-fab, co-fab) que
   deberian quedar pegados al viewport, no al .screen. */
.screen { animation: screenIn 0.32s var(--e-out) both; }
.screen[hidden] { display: none !important; }
@keyframes screenIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Pasar de hoja: el menu y el carrito se deslizan.
   Adelante entra por la derecha, de regreso por la izquierda.

   🪤 Estas SI llevan transform, contra la regla de arriba — por eso el JS
   quita la clase en cuanto termina la animacion. Mientras dura, los pies
   fijos viajan con la pantalla, que es justo lo que se quiere; si la clase se
   quedara puesta, se quedarian pegados a la pantalla para siempre. */
.screen--entra-der { animation: entraDerecha 0.3s var(--e-out) both; }
.screen--entra-izq { animation: entraIzquierda 0.3s var(--e-out) both; }
@keyframes entraDerecha {
  from { transform: translateX(100%); opacity: 0.6; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes entraIzquierda {
  from { transform: translateX(-100%); opacity: 0.6; }
  to   { transform: translateX(0);     opacity: 1; }
}
/* Quien pidio menos movimiento en su telefono no lo quiere aqui tampoco. */
@media (prefers-reduced-motion: reduce) {
  .screen--entra-der, .screen--entra-izq { animation: screenIn 0.2s var(--e-out) both; }
}

/* ============================================================
   SCREEN: SELECTOR SUCURSAL
   ============================================================ */
.screen--sucursal {
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
  padding: calc(var(--safe-top) + 28px) 0 calc(120px + var(--safe-bot));
  position: relative;
}

.suc-hero {
  text-align: center;
  padding: 4px 24px 22px;
}
.screen--sucursal.is-changing .suc-hero { display: none; }
/* El boton "Volver" es absolute (top: safe-top + 16px, ~38px de alto), asi que
   el toggle Domicilio/Recoger tiene que empezar POR DEBAJO o se encima. */
.screen--sucursal.is-changing .suc-mode { margin-top: calc(var(--safe-top, 0px) + 66px); }

/* Back button (solo visible cuando se entra en modo cambiar sucursal) */
.suc-back-top {
  display: none;
  align-items: center;
  gap: 6px;
  position: absolute;
  top: calc(var(--safe-top, 0px) + 16px);
  left: 16px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  padding: 9px 14px 9px 10px;
  border-radius: 100px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  z-index: 10;
  cursor: pointer;
}
.screen--sucursal.is-changing .suc-back-top,
.screen--sucursal.can-go-back .suc-back-top { display: inline-flex; }
/* Con el hero visible (no is-changing) el boton flotante se encimaria encima
   del logo: le abrimos espacio arriba. */
.screen--sucursal.can-go-back:not(.is-changing) .suc-hero { padding-top: calc(var(--safe-top, 0px) + 58px); }
.suc-back-top:active { transform: scale(0.97); }

/* Header tipo modal — se activa cuando .is-from-checkout esta presente.
   Reemplaza el back-button "Volver" por una X y agrega un titulo arriba,
   asi se ve igual que el modal de Direcciones. */
.suc-modal-header {
  display: none;
  position: absolute;
  top: var(--safe-top, 0px);
  left: 0; right: 0;
  padding: 14px 16px 12px;
  background: var(--bg);
  align-items: center;
  gap: 12px;
  z-index: 10;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.suc-modal-header .icon-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(0,0,0,0.05);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.suc-modal-header .icon-btn:active { transform: scale(0.94); }
.suc-modal-header__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  flex: 1;
}
.screen--sucursal.is-from-checkout .suc-modal-header { display: flex; }
/* Cuando se entra desde checkout: ocultar elementos que no aplican
   (hero "Hola", toggle delivery/pickup interno, back-button antiguo). */
.screen--sucursal.is-from-checkout .suc-back-top { display: none !important; }
.screen--sucursal.is-from-checkout .suc-hero { display: none !important; }
.screen--sucursal.is-from-checkout .suc-mode { display: none !important; }
.screen--sucursal.is-from-checkout {
  /* Mas padding-top para acomodar el header modal */
  padding-top: calc(var(--safe-top) + 64px);
}
.suc-logo {
  width: 72px; height: 72px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--brand-blue) 0%, #2A7BD8 100%);
  margin: 0 auto 18px;
  display: grid; place-items: center;
  box-shadow: 0 12px 28px rgba(26,93,181,0.32);
  position: relative;
}
.suc-logo::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 22px;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.35), transparent 55%);
}
.suc-logo__mark {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.04em;
  z-index: 1;
}
.suc-hello {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.suc-tagline {
  font-size: 15px;
  color: var(--text-2);
  font-weight: 500;
}

.suc-mode {
  margin: 8px 16px 14px;
  display: flex;
  background: var(--surface);
  border-radius: 14px;
  padding: 4px;
  position: relative;
}
.suc-mode__indicator {
  position: absolute;
  top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px);
  background: var(--card);
  border-radius: 10px;
  box-shadow: var(--sh-soft);
  transition: transform 0.32s var(--e-spring);
}
.suc-mode[data-mode="pickup"] .suc-mode__indicator { transform: translateX(100%); }
.suc-mode__btn {
  flex: 1;
  padding: 11px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: color 0.24s var(--e-smooth);
}
.suc-mode__btn.active { color: var(--text); }

.suc-search {
  margin: 0 16px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--sh-soft);
  transition: box-shadow 0.2s var(--e-smooth);
}
.suc-search:focus-within { box-shadow: var(--sh-card); }
.suc-search__icon { color: var(--text-2); display: grid; place-items: center; }
.suc-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  color: var(--text);
  font-size: 14px;
}
.suc-search input::placeholder { color: var(--text-3); }

.suc-locate-row {
  display: flex;
  gap: 8px;
  margin: 0 16px 18px;
}
/* Sin la raya punteada (31-oct, la propuesta): blanco con borde gris, el
   ícono y el texto en azul; "Cambiar mi dirección" en negro. */
.suc-locate {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--brand-blue);
  font-size: 13px;
  font-weight: 600;
  justify-content: center;
  transition: all 0.22s var(--e-spring);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
/* El ícono no se encoge: con el texto largo se quedaba en 0 de ancho. */
.suc-locate svg { flex-shrink: 0; }
.suc-locate--alt {
  border-style: solid;
  border-color: var(--border);
  color: var(--text);
  background: var(--card);
}
.suc-locate:active {
  transform: scale(0.97);
  background: rgba(26,93,181,0.06);
}
.suc-locate--alt:active {
  background: var(--bg);
}

/* "Sucursales en tu zona" grande y normal (ya no en mayúsculas grises), el
   conteo a la derecha y el alcance abajo en gris. */
.suc-listhead {
  padding: 6px 20px 2px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.suc-listhead span:first-child {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.suc-listhead__sub {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text-3);
  font-weight: 500;
}
.suc-listhead__nota {
  margin: 2px 20px 0;
  font-size: 13px;
  color: var(--text-2);
}
.suc-listhead__nota b { color: var(--text); font-weight: 700; }
.suc-listhead__nota[hidden] { display: none; }
/* La nota de arriba (debajo del selector) ya no se usa: en la sugerida va
   dentro de "Cerca de…" y en la lista abajo del título. */
.screen--sucursal .suc-mode-note { display: none; }

.suc-list {
  padding: 14px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* La tarjeta de la propuesta (31-oct): sin el cuadrito del pin, el nombre
   grande, la dirección completa y "Ver fotos y detalles" como renglón. */
.suc-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 18px;
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--sh-soft);
  border: 2px solid transparent;
  transition: all 0.22s var(--e-spring);
  position: relative;
  cursor: pointer;
}
.suc-card__top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
/* "Detalles ›" al final del renglón de estado | tiempo | distancia (31-oct:
   la tarjeta compacta de la propuesta; antes un renglón aparte "Ver fotos y
   detalles"). */
.suc-card__details-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  padding: 4px 0 4px 10px;
  border: 0;
  background: transparent;
  color: var(--brand-blue);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
}
.suc-card__details-btn:active { opacity: 0.6; }
.suc-card__km { color: var(--text); font-weight: 700; }
.suc-card__rating-tiny {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--text-2);
  font-weight: 600;
}
.suc-card__rating-tiny svg { fill: var(--brand-yellow); }
.suc-card:active { transform: scale(0.98); }
.suc-card.selected {
  border-color: var(--brand-blue);
  box-shadow: 0 8px 24px rgba(26,93,181,0.12);
}
.suc-card__body { flex: 1; min-width: 0; }
.suc-card__name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.suc-card__row1 {
  display: flex; align-items: center; gap: 14px;
}
.suc-card__city {
  font-size: 14px;
  color: var(--text-2);
  font-weight: 500;
}
/* La dirección completa (antes se cortaba con "…"). */
.suc-card__addr {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.45;
}
/* Estado | tiempo | distancia, con una rayita entre cada uno, y "Detalles ›"
   al final. */
.suc-card__meta {
  display: flex;
  align-items: center;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-2);
  font-weight: 500;
}
.suc-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.suc-card__meta-item + .suc-card__meta-item {
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
}
.suc-card__meta-item.closed { color: var(--danger); }
.suc-card__meta-item.open  { color: var(--success); }
.suc-card__meta-item.open::before,
.suc-card__meta-item.closed::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}
.suc-card__check {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: all 0.32s var(--e-spring);
  color: transparent;
}
.suc-card.selected .suc-card__check {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
  transform: scale(1.06);
}

.suc-empty {
  text-align: center;
  padding: 40px 24px;
  color: var(--text-2);
}
.suc-empty__icon {
  width: 56px; height: 56px;
  border-radius: 18px;
  background: var(--surface);
  margin: 0 auto 12px;
  display: grid; place-items: center;
  color: var(--text-3);
}
.suc-empty__title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.suc-empty__sub { font-size: 13px; color: var(--text-2); }

/* "Continuar con …" dentro de una tarjeta blanca que flota abajo, como el pie
   de "Te atiende" (31-oct, la propuesta de Federico). */
.suc-fab {
  position: fixed;
  left: 16px; right: 16px;
  bottom: calc(var(--safe-bot) + 12px);
  max-width: calc(var(--max-w) - 32px);
  margin: 0 auto;
  z-index: 70;
  padding: 12px;
  background: var(--card);
  border-radius: 22px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.suc-fab .btn-primary, .suc-fab .btn-secondary { max-width: var(--max-w); width: 100%; }
.suc-fab .btn-primary { border-radius: 14px; }

/* Los botones de acción en el MISMO verde que los del carrito ("Ir al
   carrito", "Continuar", "Hacer pedido") y con su resplandor (Federico,
   31-oct: "todos los botones son azules, ¿no deberían ser verdes?"). El azul
   se queda para la marca: pestañas, ligas, palomitas. */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 22px;
  background: var(--cta-verde);
  color: #fff;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 5px 14px rgba(51,201,91,0.35);
  transition: all 0.22s var(--e-spring);
}
.btn-primary:active { transform: scale(0.97); }
.btn-primary:disabled {
  background: var(--border);
  color: var(--text-3);
  box-shadow: none;
  cursor: not-allowed;
}
.btn-primary:disabled:active { transform: none; }

.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  padding: 14px 18px;
  background: transparent;
  color: var(--text);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  border: 1.5px solid var(--border);
  transition: all 0.22s var(--e-spring);
  width: 100%;
}
.btn-secondary:active {
  transform: scale(0.98);
  background: var(--surface);
  border-color: var(--text-3);
}

/* Variante naranja Todo Empanadas para CTAs secundarios destacados */
/* Accion secundaria (ej. "Esta no es mi sucursal"): antes era un boton solido
   ambar con sombra, que pesaba visualmente IGUAL que el CTA azul y competia con
   el. Ahora va en estilo fantasma: se ve y se toca bien, pero deja claro cual es
   la accion principal. */
/* "Esta no es mi sucursal": ahora es el UNICO boton del footer (el CTA de pedir
   vive en la tarjeta), asi que va grande y en ambar para que se note. */
.btn-secondary--orange {
  background: var(--brand-orange, #F5A623);
  color: #fff;
  border-color: var(--brand-orange, #F5A623);
  box-shadow: 0 4px 14px rgba(245,166,35,0.32);
  font-size: 16px;
  font-weight: 800;
  padding: 16px 20px;
}
.btn-secondary--orange:active {
  background: #DD8E0E;
  border-color: #DD8E0E;
  color: #fff;
}

/* ============================================================
   SUC VIEW - SUGGESTED
   ============================================================ */
.suc-view[hidden] { display: none !important; }

/* "Cerca de Oficina" como renglón (31-oct, la segunda foto de Federico): el
   ícono azul, el texto en negro y abajo, en gris, el alcance de entrega. Ya
   no es una pastilla. */
.suc-locate-pill {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 6px 16px 16px;
  padding: 0;
  background: none;
  font-family: inherit;
  text-align: left;
  color: var(--text);
  transition: opacity 0.18s;
}
.suc-locate-pill:active { opacity: 0.6; }
.suc-locate-pill > svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--brand-blue); margin-top: 1px; }
.suc-locate-pill__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
#sucLocatePillTxt { font-size: 16px; font-weight: 600; }
.suc-locate-pill__nota { font-size: 13px; color: var(--text-2); line-height: 1.35; }
.suc-locate-pill__nota b { color: var(--text); font-weight: 700; }
.suc-locate-pill__nota[hidden] { display: none; }
/* La nota de arriba (debajo del selector) se esconde en la sugerida: ahí va
   dentro del renglón "Cerca de…". En la lista se queda. */
.screen--sucursal.vista-sugerida .suc-mode-note { display: none; }

.suc-suggested-card {
  margin: 0 16px 16px;
  background: var(--card);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--sh-card);
  position: relative;
  animation: suggestedIn 0.5s var(--e-spring) both;
}
@keyframes suggestedIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.suc-suggested-card__hero {
  height: 150px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.suc-suggested-card__hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.4), transparent 55%),
              radial-gradient(circle at 70% 80%, rgba(0,0,0,0.08), transparent 50%);
}
.suc-suggested-card__pill {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255,255,255,0.96);
  color: var(--brand-blue);
  padding: 7px 12px;
  border-radius: 100px;
  /* "Tu sucursal" en minúsculas y un poco más grande (31-oct). */
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: var(--sh-soft);
  z-index: 2;
}
.suc-suggested-card__status {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255,255,255,0.96);
  padding: 7px 12px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--sh-soft);
  z-index: 2;
}
.suc-suggested-card__status.open { color: var(--success); }
.suc-suggested-card__status.closed { color: var(--danger); }
.suc-suggested-card__status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.suc-suggested-card__hero-emoji {
  font-size: 78px;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.18));
  z-index: 1;
}
/* Logo del tenant como fallback cuando una sucursal no tiene cover_url.
   POSICIONADO ABSOLUTO + transform center para garantizar centrado real,
   sin importar el aspect ratio del logo. Tamaños FIJOS en px (no %), para
   que NUNCA se salga del container. Sin puck blanco. */
.store-fallback-logo {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  max-width: 80px;
  max-height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.32));
  z-index: 2;
  pointer-events: none;
}
/* Cards mas chicas (carousel + tiendas list thumb) — logo proporcional */
.store-mini__hero .store-fallback-logo {
  max-width: 70px;
  max-height: 56px;
}
.store-card__thumb .store-fallback-logo {
  max-width: 60px;
  max-height: 60px;
}
/* Card de "Pedir de nuevo" usa thumb chico (50x50) — logo casi llena */
.reorder-card__thumb .store-fallback-logo {
  max-width: 42px;
  max-height: 42px;
}
/* En el bottom sheet (hero mas grande) un poco mayor */
#sheetHeroEmoji .store-fallback-logo {
  max-width: 110px;
  max-height: 80px;
}

.suc-suggested-card__body {
  padding: 16px 18px 18px;
}
/* El nombre grande con la ciudad abajo, y la calificación a la derecha. */
.suc-suggested-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.suc-suggested-card__titulo { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.suc-suggested-card__name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.suc-suggested-card__city { font-size: 14px; color: var(--text-2); font-weight: 500; }
.suc-suggested-card__rating {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  padding-top: 3px;
}
.suc-suggested-card__rating-num { display: inline-flex; align-items: center; gap: 4px; font-size: 16px; }
.suc-suggested-card__rating svg { fill: var(--brand-yellow); }
.suc-suggested-card__rating b { color: var(--text); font-weight: 700; }
.suc-suggested-card__rating-n { font-size: 12px; color: var(--text-2); margin-top: 1px; }
.suc-suggested-card__addr {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.45;
  margin-bottom: 12px;
}
/* Tiempo | distancia, con una rayita entre los dos. */
.suc-suggested-card__meta {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--text-2);
  font-weight: 600;
}
.suc-suggested-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.suc-suggested-card__meta-item + .suc-suggested-card__meta-item {
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--border);
}
.suc-suggested-card__meta-item svg { color: var(--brand-blue); width: 16px; height: 16px; }

.suc-suggested-card__cta-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
/* Tercer boton de la tarjeta: mismo alto y tipografia que los dos de arriba,
   pero al ancho completo de los dos juntos. */
.suc-suggested-card__change {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--brand-orange, #F5A623);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.16s var(--e-spring), background 0.15s;
}
.suc-suggested-card__change:active { transform: scale(0.975); background: #DD8E0E; }
/* Nota del alcance de entrega, justo debajo del toggle Domicilio/Recoger (es
   donde el usuario elige, asi que ahi es donde la explicacion tiene sentido).
   El km sale de DELIVERY_MAX_KM (tenant.delivery.maxKm), el MISMO valor con que
   se valida el rango, para que el texto nunca se desincronice de la regla. */
.suc-mode-note {
  margin: 8px 16px 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-2);
  text-align: center;
}
.suc-mode-note b { color: var(--text); font-weight: 700; }
/* En recoger el usuario va a la tienda: el rango de envio no aplica. */
#sucMode[data-mode="pickup"] + .suc-mode-note { display: none; }
/* "Ver fotos y detalles" como renglón con raya arriba y flechita al final. */
.suc-suggested-card__details-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
  padding: 14px 0 0;
  border-top: 1px solid var(--border);
  background: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-blue);
  text-align: left;
}
.suc-suggested-card__details-chev { margin-left: auto; }
.suc-suggested-card__details-link:active { opacity: 0.6; }
/* "Esta no es mi sucursal": un renglón gris abajo de la tarjeta. */
.suc-cambiar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px auto 0;
  padding: 10px 14px;
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}
.suc-cambiar:active { opacity: 0.6; }
.suc-cambiar[hidden] { display: none; }
/* El pie de la sugerida: "Tu sucursal · Las Brisas" y "Pedir aquí". Flota
   abajo como tarjeta; la vista deja lugar para que no tape nada. */
.suc-view--suggested { padding-bottom: calc(110px + var(--safe-bot)); }
.suc-pie {
  position: fixed;
  left: 16px; right: 16px;
  bottom: calc(var(--safe-bot) + 12px);
  max-width: calc(var(--max-w) - 32px);
  margin: 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 14px 20px;
  background: var(--card);
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.suc-pie[hidden] { display: none; }
.suc-pie__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.suc-pie__label { font-size: 13px; color: var(--text-2); }
.suc-pie__nombre { font-size: 17px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suc-pie__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  background: var(--cta-verde);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 5px 14px rgba(51,201,91,0.35);
}
.suc-pie__btn:active { transform: scale(0.97); }
.suc-suggested-card__order-cta {
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: var(--brand-blue, #1A5DB5);
  border-radius: 12px;
  justify-content: center;
  border: 0;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(26,93,181,0.3);
  transition: transform 0.15s ease;
}
.suc-suggested-card__order-cta:active { transform: scale(0.97); }
.suc-suggested-card__order-cta:disabled { opacity: 0.5; box-shadow: none; }

/* When picker is active, hide secondary "change" button */
.suc-fab.picker-mode #sucChange { display: none; }
/* Vista "sugerida": la tarjeta ya trae su CTA "Pedir aqui", asi que el
   "Continuar con X" de abajo repetia la misma accion y ademas apilaba dos
   botones grandes. Aqui abajo queda solo el escape ("Esta no es mi sucursal").
   En la lista completa (picker-mode) SI se necesita: ahi es el confirmar. */
.suc-fab:not(.picker-mode) #sucContinue { display: none; }
/* En la vista sugerida el footer queda vacio: el CTA de pedir y el de cambiar
   sucursal ya viven DENTRO de la tarjeta. */
.suc-fab:not(.picker-mode) { display: none; }

/* ============================================================
   STORES ROW (Home carousel: "Conoce nuestras tiendas")
   ============================================================ */
.stores-row {
  display: flex;
  gap: 12px;
  padding: 0 16px 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-left: 16px;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.stores-row::-webkit-scrollbar { display: none; }
.store-mini {
  flex: 0 0 220px;
  scroll-snap-align: start;
  background: var(--card);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--sh-soft);
  overflow: hidden;
  transition: transform 0.22s var(--e-spring), box-shadow 0.22s var(--e-out);
}
.store-mini:active { transform: scale(0.97); box-shadow: var(--sh-card); }
.store-mini__hero {
  height: 92px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.store-mini__hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.4), transparent 55%);
}
.store-mini__hero-emoji {
  font-size: 38px;
  z-index: 1;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.12));
}
.store-mini__status {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(255,255,255,0.94);
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}
.store-mini__status.open { color: var(--success); }
.store-mini__status.closed { color: var(--danger); }
.store-mini__status::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.store-mini__body { padding: 10px 12px 12px; }
.store-mini__name {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.store-mini__city {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
  margin-bottom: 6px;
}
.store-mini__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 600;
}
.store-mini__rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--text-2);
}
.store-mini__rating svg { fill: var(--brand-yellow); width: 11px; height: 11px; }
.store-mini__rating b { color: var(--text); font-weight: 800; }
.store-mini__km { color: var(--text-3); }

/* ============================================================
   SCREEN: TIENDAS (directorio)
   ============================================================ */
.screen--tiendas {
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
  padding-bottom: calc(40px + var(--safe-bot));
}

.tiendas-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  padding: calc(var(--safe-top) + 12px) 16px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.tiendas-header .icon-btn { width: 40px; height: 40px; }
.tiendas-header__title h1 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.tiendas-header__title span {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
}

.tiendas-search {
  margin: 14px 16px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--sh-soft);
}
.tiendas-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--text);
}
.tiendas-search input::placeholder { color: var(--text-3); }

.tiendas-cities {
  display: flex;
  gap: 8px;
  padding: 0 16px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tiendas-cities::-webkit-scrollbar { display: none; }
.city-chip {
  flex: 0 0 auto;
  padding: 8px 14px;
  background: var(--card);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  box-shadow: var(--sh-soft);
  transition: all 0.22s var(--e-spring);
  border: 1.5px solid transparent;
}
.city-chip:active { transform: scale(0.94); }
.city-chip.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
.city-chip__count {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  background: var(--surface);
  color: var(--text-2);
  border-radius: 100px;
  font-size: 10px;
  font-weight: 800;
}
.city-chip.active .city-chip__count {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.tiendas-list {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.store-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--sh-soft);
  overflow: hidden;
  transition: transform 0.22s var(--e-spring), box-shadow 0.22s var(--e-out);
}
.store-card:active { transform: scale(0.99); box-shadow: var(--sh-card); }

.store-card__main {
  display: flex;
  gap: 12px;
  padding: 12px;
  cursor: pointer;
}
.store-card__thumb {
  width: 78px;
  height: 78px;
  border-radius: 14px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  font-size: 30px;
}
.store-card__thumb::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.4), transparent 55%);
}
.store-card__body { flex: 1; min-width: 0; }
.store-card__row1 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
  flex-wrap: wrap;
}
.store-card__name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.store-card__city {
  font-size: 11px;
  color: var(--text-3);
  background: var(--surface);
  padding: 2px 7px;
  border-radius: 100px;
  font-weight: 600;
}
/* "Pedir aqui" en el directorio de tiendas: ancho completo bajo las acciones. */
.store-card__order {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; margin-top: 8px; padding: 11px 12px;
  font-family: inherit; font-size: 13.5px; font-weight: 800;
  color: #fff; background: var(--cta-verde); border: 0; border-radius: 12px;
  cursor: pointer; transition: transform .16s var(--e-spring), background .15s;
}
.store-card__order:active { transform: scale(0.98); background: #14498f; }
.store-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11.5px;
  color: var(--text-2);
  font-weight: 600;
}
.store-card__rating svg { fill: var(--brand-yellow); width: 11px; height: 11px; }
.store-card__rating b { color: var(--text); font-weight: 800; }
.store-card__addr {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.35;
  margin-bottom: 4px;
}
.store-card__meta {
  display: flex;
  gap: 10px;
  font-size: 11.5px;
  color: var(--text-2);
  font-weight: 600;
}
.store-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.store-card__meta-item.open { color: var(--success); }
.store-card__meta-item.closed { color: var(--danger); }
.store-card__meta-item.open::before,
.store-card__meta-item.closed::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

.store-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid var(--border);
}
.store-card__action {
  padding: 12px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  background: transparent;
  transition: background 0.18s var(--e-smooth);
  border-right: 1px solid var(--border);
}
.store-card__action:last-child { border-right: none; }
.store-card__action:active { background: var(--surface); }
.store-card__action svg { color: var(--brand-blue); }
.store-card__action--call svg { color: var(--success); }
.store-card__action--map  svg { color: var(--action); }

/* ============================================================
   PEDIR DE NUEVO (reorder row)
   ============================================================ */
.reorder-row {
  display: flex;
  gap: 12px;
  padding: 0 16px 4px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-left: 16px;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.reorder-row::-webkit-scrollbar { display: none; }
.reorder-card {
  flex: 0 0 270px;
  scroll-snap-align: start;
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--sh-soft);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.22s var(--e-spring), box-shadow 0.22s var(--e-out);
  position: relative;
}
.reorder-card:active { transform: scale(0.97); box-shadow: var(--sh-card); }
.reorder-card__thumb {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 24px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: var(--surface);
}
.reorder-card__thumb::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.4), transparent 55%);
}
.reorder-card__thumb.has-photo::before { display: none; }
.reorder-card__thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.reorder-card__thumb span { z-index: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15)); }
.reorder-card__body {
  flex: 1;
  min-width: 0;
}
.reorder-card__date {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.reorder-card__resumen {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.reorder-card__total {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 2px;
}
.reorder-card__meta {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
}
.reorder-card__btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: transform 0.18s var(--e-spring), background 0.18s var(--e-smooth);
}
.reorder-card__btn:active { transform: scale(0.85); background: var(--action); }

/* ============================================================
   SHEET: PRODUCT DETAIL
   ============================================================ */
.sheet--product {
  border-radius: 28px 28px 0 0;
  /* height: auto + max-height para que el sheet se ajuste al contenido cuando
     es corto (sin espacio muerto) y limite a 92dvh cuando es largo.
     !important porque .sheet base (mas abajo en el CSS) tiene padding-bottom
     fijo que sobreescribe esto sin la priority. */
  height: auto !important;
  /* Abre casi de pantalla completa, como Rappi. El platillo es la pantalla, no
     un cajon asomandose por abajo. El hueco que sobra cuando el producto no
     tiene opciones NO queda en blanco: se lo come la foto (ver .prod-hero). */
  min-height: 88dvh;
  max-height: 92dvh !important;
  padding-bottom: 0 !important;
  overflow: hidden;
}
/* Handle del sheet del producto: flotante encima del hero, semi-transparente
   para que se vea sobre cualquier foto. Indica al usuario que puede arrastrar. */
.sheet--product > .sheet__handle-zone {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5; /* sobre el hero, debajo del boton X (z-index 10) */
  padding: 8px 0 4px;
  pointer-events: auto;
}
.sheet--product > .sheet__handle-zone .sheet__handle {
  background: rgba(255,255,255,0.85);
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
.prod-scroll {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.prod-hero {
  /* 320 de piso y crece con lo que sobre: con opciones se queda en 320 y el
     resto scrollea; sin opciones se estira y llena el sheet en vez de dejar
     un hueco blanco arriba del boton. */
  flex: 1 0 320px;
  position: relative;
  background: linear-gradient(135deg, #FFE5BD 0%, #F5A623 100%);
  display: grid;
  place-items: center;
}
.prod-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.4), transparent 55%),
              radial-gradient(circle at 70% 80%, rgba(0,0,0,0.06), transparent 50%);
}
.prod-hero__emoji {
  font-size: 140px;
  filter: drop-shadow(0 12px 32px rgba(0,0,0,0.22));
  z-index: 1;
}

/* Floating buttons over the sheet — stay fixed while hero scrolls */
.prod-fb {
  position: absolute;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.96);
  color: var(--text);
  display: grid; place-items: center;
  z-index: 5;
  box-shadow: var(--sh-soft);
  transition: transform 0.18s var(--e-spring), background 0.22s var(--e-out);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.prod-fb:active { transform: scale(0.88); }
.prod-fb--close {
  top: calc(var(--safe-top) + 12px);
  left: 14px;
}
.prod-fb-actions {
  position: absolute;
  top: calc(var(--safe-top) + 12px);
  right: 14px;
  display: flex;
  gap: 8px;
  z-index: 5;
}
.prod-fb-actions .prod-fb { position: static; }

.prod-body {
  padding: 22px 20px 24px;
  background: var(--bg);
  flex-shrink: 0;
}
.prod-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.prod-name {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.1;
}
.prod-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 22px;
}

.prod-groups {
  display: flex;
  flex-direction: column;
  gap: 22px;
  border-top: 8px solid var(--surface);
  margin: 0 -20px;
  padding: 22px 20px 0;
}

/* Instrucciones especiales (estilo Uber Eats — al final del producto) */
.prod-special {
  margin: 22px -20px 0;
  padding: 18px 20px;
  border-top: 8px solid var(--surface);
}
.prod-special__head {
  margin-bottom: 10px;
}
.prod-special__title {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}
.prod-special__sub {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}
.prod-special__input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--text);
  background: var(--surface);
  resize: none;
  outline: none;
  transition: border-color 0.18s;
}
.prod-special__input:focus { border-color: var(--brand-blue); }
.prod-special__input::placeholder { color: var(--text-3); }
.prod-group__head {
  margin: 0 0 14px;
  padding: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
}
.prod-group__head:active { opacity: 0.7; }
.prod-group__head-text {
  flex: 1;
  min-width: 0;
}
.prod-group__title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.prod-group__sub {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prod-group__pill {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--surface);
  color: var(--text-2);
  letter-spacing: 0.02em;
}
.prod-group__pill.required { background: var(--text); color: #fff; }
/* Empezaste pero te falta. Es el estado que mas se ve mientras el cliente
   escoge, y antes no existia: decia "Obligatorio" igual con 0 que con 19. */
.prod-group__pill.faltan { background: var(--warn); color: #fff; }
.prod-group__pill.satisfied { background: var(--success); color: #fff; }
.prod-group__chev {
  flex-shrink: 0;
  color: var(--text-2);
  transition: transform 0.22s var(--e-spring);
}
.prod-group__head[aria-expanded="true"] .prod-group__chev { transform: rotate(180deg); }

/* Cuando esta colapsada, el header reduce su margen inferior y separa con linea sutil de la siguiente seccion */
.prod-group.is-collapsed { padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.prod-group.is-collapsed:last-child { border-bottom: 0; }
.prod-group.is-collapsed + .prod-group { margin-top: 14px; }
.prod-group.is-collapsed .prod-group__head { margin-bottom: 0; }
.prod-group.is-collapsed .prod-group__title { font-size: 18px; }

/* La caja que se abre y se cierra.
   🪤 Para animar la altura hay que saber cuanto mide, y con 20 opciones eso
   solo lo sabe el navegador. `grid-template-rows: 1fr -> 0fr` lo resuelve sin
   inventar un max-height: la fila crece hasta lo que mida su contenido. Donde
   no se sepa animar, el estado final igual es el correcto (cerrado es cerrado),
   asi que lo peor que pasa es que vuelva a abrirse de golpe como antes. */
.prod-options-caja {
  display: grid;
  grid-template-rows: 1fr;
  overflow: hidden;
  transition: grid-template-rows 0.34s var(--e-out), opacity 0.26s ease 0.04s;
}
.prod-group.is-collapsed .prod-options-caja {
  grid-template-rows: 0fr;
  opacity: 0;
  /* La visibilidad cambia AL FINAL: si se apagara desde el principio, el
     contenido se iria de golpe y no habria nada que ver encogerse. */
  visibility: hidden;
  transition: grid-template-rows 0.3s var(--e-out), opacity 0.2s ease, visibility 0s 0.3s;
}
.prod-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* Sin esto la fila del grid nunca baja de la altura de su contenido y el
     0fr no sirve de nada. */
  min-height: 0;
  overflow: hidden;
}
.prod-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--sh-soft);
  border: 2px solid transparent;
  transition: all 0.22s var(--e-spring);
  position: relative;
}
.prod-option.has-qty {
  border-color: var(--brand-blue);
  background: linear-gradient(135deg, rgba(26,93,181,0.04) 0%, rgba(26,93,181,0.01) 100%);
}
.prod-option__thumb {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: grid; place-items: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  font-size: 22px;
  color: rgba(255,255,255,0.95);
  font-weight: 800;
}
.prod-option__thumb::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.35), transparent 55%);
}
.prod-option__body { flex: 1; min-width: 0; }
.prod-option__name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 1px;
}
.prod-option__desc {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.3;
  margin-bottom: 2px;
}
.prod-option__extra {
  font-size: 12px;
  color: var(--brand-blue);
  font-weight: 700;
}
.prod-option__qty {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.prod-option__btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #FFF1E5;
  color: #FF7A1A;
  border: 2px solid #FFD0A8;
  transition: all 0.22s var(--e-spring);
  box-shadow: 0 2px 6px rgba(255,122,26,0.2);
}
.prod-option__btn:active { transform: scale(0.82); background: #FFE2C7; }
.prod-option__btn--add {
  background: #E8FBF1;
  color: var(--success);
  border-color: #B6F0D2;
  box-shadow: 0 2px 6px rgba(16,185,129,0.22);
}
.prod-option__btn--add:active { transform: scale(0.82); background: #C8F4DD; }
.prod-option__btn:disabled { opacity: 0.35; cursor: not-allowed; }
.prod-option__num {
  min-width: 22px;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
}

/* Bottom fab */
.prod-fab {
  position: sticky;
  bottom: 0;
  background: var(--card);
  padding: 14px 16px calc(14px + var(--safe-bot));
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.prod-qty {
  display: flex;
  align-items: center;
  /* Mitad y mitad con el boton de agregar: el - y el + se van a las orillas y
     el numero queda al centro. Antes esto media lo que midiera su contenido y
     el de agregar se comia el resto del renglon. */
  flex: 1;
  justify-content: space-between;
  gap: 4px;
  padding: 6px 10px;
  min-height: 54px;
  background: var(--surface);
  border-radius: 100px;
}
/* Bloquear el double-tap-zoom de iOS Safari en los botones de cantidad
   y opciones — sin esto, picar rapido + + + dispara zoom y se atora. */
.prod-qty__btn,
.prod-option__btn,
.prod-option {
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.prod-qty__btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--card);
  display: grid; place-items: center;
  box-shadow: var(--sh-soft);
  transition: transform 0.18s var(--e-spring);
}
.prod-qty__btn:active { transform: scale(0.85); }
.prod-qty__num {
  min-width: 22px;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
}
.prod-add {
  flex: 1;
  min-height: 54px;
  background: var(--success);
  box-shadow: 0 8px 22px rgba(16,185,129,0.32);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  line-height: 1.15;
}
.prod-add:disabled,
.prod-add.is-incompleto {
  background: var(--text-3);
  color: rgba(255,255,255,0.85);
  box-shadow: none;
  opacity: 0.95;
}
.prod-add__main {
  font-size: 15px;
  font-weight: 800;
}
.prod-add__hint {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.92;
  letter-spacing: 0.02em;
}
.prod-add__hint[hidden] { display: none; }
/* Estado "soft": aparece cuando hay aderezo gratis no elegido y el cliente puede continuar sin él
   tras un segundo click. Color más sutil para invitar a elegir el aderezo primero. */
.prod-add--soft {
  background: var(--text-2) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18) !important;
}
/* Precio tachado al lado del precio efectivo cuando BOGO aplica descuento (estilo Uber Eats) */
.prod-add__strike {
  font-weight: 600;
  opacity: 0.7;
  margin-left: 8px;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

/* ============================================================
   WIZARD POST-AGREGAR (aderezos gratis → upsell de postres)
   Cuando data-post-step != "", se oculta foto/qty/desc del producto y se muestra
   el header del paso correspondiente.
   ============================================================ */
/* En post-step "extras" se oculta foto/qty/desc del producto y queda solo: aderezos + upsell */
.sheet--product[data-post-step="extras"] .prod-hero,
.sheet--product[data-post-step="extras"] .prod-name,
.sheet--product[data-post-step="extras"] .prod-desc,
.sheet--product[data-post-step="extras"] .prod-price,
.sheet--product[data-post-step="extras"] .prod-qty {
  display: none !important;
}

/* En el wizard de combo paso 2 (eligiendo aderezos incluidos), también ocultamos foto/desc/precio
   para que el cliente solo vea los aderezos sin distracciones */
.sheet--product[data-combo-step="2"] .prod-hero,
.sheet--product[data-combo-step="2"] .prod-name,
.sheet--product[data-combo-step="2"] .prod-desc,
.sheet--product[data-combo-step="2"] .prod-price {
  display: none !important;
}
.prod-step-header[hidden] { display: none !important; }
.prod-step-header {
  padding: 28px 4px 12px;
  text-align: center;
}
.prod-step-header__title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.prod-step-header__sub {
  font-size: 14px;
  color: var(--text-2);
  font-weight: 500;
  line-height: 1.3;
}

/* Banner de ahorro de promo (3x2 etc.) en sheet del producto.
   Se muestra cuando una promo BOGO aplica a este producto y motiva a llegar al threshold. */
.prod-promo-hint[hidden] { display: none !important; }
.prod-promo-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #FFF1E5 0%, #FFE2C7 100%);
  border: 1.5px solid #F5A623;
  border-radius: 14px;
  margin: 4px 0 14px;
}
.prod-promo-hint--earned {
  background: linear-gradient(135deg, #E8F8F0 0%, #D8F4E1 100%);
  border-color: var(--success);
}
.prod-promo-hint__icon {
  font-size: 22px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(245,166,35,0.32));
}
.prod-promo-hint__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.prod-promo-hint__title {
  font-size: 14px;
  font-weight: 800;
  color: #B27200;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.prod-promo-hint--earned .prod-promo-hint__title { color: var(--success); }
.prod-promo-hint__sub {
  font-size: 12px;
  color: #8B5A00;
  margin-top: 2px;
}
.prod-promo-hint--earned .prod-promo-hint__sub { color: #14794F; }

/* Grupos diferenciados en step 'sauces' (gratis vs con costo) */
.prod-group--free {
  background: linear-gradient(135deg, rgba(16,185,129,0.06) 0%, rgba(16,185,129,0.02) 100%);
  border: 1.5px solid rgba(16,185,129,0.25);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 14px;
  position: relative;
}
.prod-group--free .prod-group__title { color: var(--success); }
/* Ribbon viejo "GRATIS" eliminado — ahora el pill "Gratis"/"Listo" del header colapsable
   ya comunica el estado, sin duplicar. */
.prod-group--extras {
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
  background: rgba(0,0,0,0.012);
  position: relative;
}
/* Cuando el grupo de extras pagados va después del de gratis, mostramos un divisor
   que captura la atención del cliente para que sepa que hay más abajo. */
.prod-group--free + .prod-group--extras::before {
  content: '↓ Si quieres más sabor, agrégale extras (con costo)';
  display: block;
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-2);
  background: var(--card, #fff);
  border-radius: 100px;
  padding: 6px 14px;
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  border: 1px solid var(--border);
  z-index: 1;
  letter-spacing: -0.01em;
}
.prod-group--extras .prod-group__title {
  font-size: 13.5px;
  color: var(--text-2);
  font-weight: 700;
}
.prod-group--extras .prod-group__sub {
  font-size: 11.5px;
  color: var(--text-3);
}

/* Upsell (cards de postres sugeridos) */
.prod-upsell[hidden] { display: none !important; }
/* El encabezado del bloque, con el mismo peso que el de un grupo de
   modificadores: es una seccion mas del platillo, no un anuncio metido. */
.prod-upsell__head { margin-bottom: 10px; }
.prod-upsell__title { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.prod-upsell__sub { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.prod-upsell {
  display: grid;
  gap: 10px;
  padding: 4px 0 16px;
}
.prod-upsell__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--card, #fff);
  border: 1px solid var(--border, #E5E7EB);
  border-radius: 14px;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.18s var(--e-spring), border-color 0.15s;
}
.prod-upsell__item:active { transform: scale(0.99); }
.prod-upsell__item:hover { border-color: var(--text-3, #9CA3AF); }
.prod-upsell__thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 28px;
  background-size: cover;
  background-position: center;
}
.prod-upsell__body { flex: 1; min-width: 0; }
.prod-upsell__name {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.prod-upsell__price {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-top: 3px;
}
.prod-upsell__add {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(16,185,129,0.32);
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
}
.prod-upsell__item.added .prod-upsell__add {
  background: var(--text-3);
  box-shadow: none;
}

/* When product sheet open, hide product tab navigation if needed */
.sheet--product.show { transform: translateX(-50%) translateY(0); }

/* ============================================================
   SHEET: REORDER (pedir de nuevo - detalle editable)
   ============================================================ */
.sheet--reorder {
  border-radius: 28px 28px 0 0;
  max-height: 88dvh;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
}
.reord-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 18px 12px;
}
.reord-head__icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-blue), #4A90E2);
  color: #fff;
  display: grid; place-items: center;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(26,93,181,0.28);
}
.reord-head__body { flex: 1; min-width: 0; }
.reord-head__date {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}
.reord-head__title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.reord-head__close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface);
  display: grid; place-items: center;
  color: var(--text);
  flex-shrink: 0;
  transition: transform 0.18s var(--e-spring);
}
.reord-head__close:active { transform: scale(0.88); }

.reord-store {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 18px 16px;
  padding: 10px 12px;
  background: var(--surface);
  border-radius: 12px;
  font-size: 13px;
  color: var(--text-2);
  font-weight: 600;
}
.reord-store svg { color: var(--brand-blue); flex-shrink: 0; }
.reord-store b { color: var(--text); font-weight: 800; }

.reord-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 18px;
}
.reord-section__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.reord-section__head span:last-child {
  text-transform: none;
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0;
  font-weight: 500;
}

.reord-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 14px;
}
.reord-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--sh-soft);
  border: 2px solid transparent;
  transition: all 0.22s var(--e-spring);
}
.reord-item.removed {
  opacity: 0.5;
  background: var(--surface);
}
.reord-item.removed .reord-item__name {
  text-decoration: line-through;
  color: var(--text-3);
}
.reord-item__thumb {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  color: rgba(255,255,255,0.95);
  font-weight: 800;
}
.reord-item__thumb::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.3), transparent 55%);
  z-index: 1;
  pointer-events: none;
}
.reord-item__body { flex: 1; min-width: 0; }
.reord-item__name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}
.reord-item__price {
  font-size: 12.5px;
  color: var(--text-2);
  font-weight: 600;
}
.reord-item__sels {
  font-size: 11.5px;
  color: var(--text-2);
  margin-top: 4px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.reord-item__edit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(26,93,181,0.1);
  color: var(--brand-blue);
  font-size: 11px;
  font-weight: 700;
  transition: all 0.18s var(--e-spring);
}
.reord-item__edit:active { transform: scale(0.94); background: rgba(26,93,181,0.18); }

.reord-add-more {
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--card);
  border: 1.5px dashed var(--brand-blue);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--brand-blue);
  font-size: 14px;
  font-weight: 700;
  width: 100%;
  transition: all 0.22s var(--e-spring);
}
.reord-add-more:active {
  transform: scale(0.98);
  background: rgba(26,93,181,0.06);
}
.reord-item__qty {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--surface);
  border-radius: 100px;
  flex-shrink: 0;
}
.reord-item__qty-btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card);
  box-shadow: var(--sh-soft);
  transition: transform 0.18s var(--e-spring);
}
.reord-item__qty-btn:active { transform: scale(0.85); }
.reord-item__qty-btn.delete { color: var(--danger); }
.reord-item__qty-btn.minus  { color: #FF7A1A; background: #FFF1E5; box-shadow: none; }
.reord-item__qty-btn.plus   { color: var(--success); background: #E8FBF1; box-shadow: none; }
.reord-item__qty-num {
  min-width: 18px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}
.reord-item__restore {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-blue);
  padding: 6px 10px;
  border-radius: 100px;
  background: rgba(26,93,181,0.1);
}
.reord-item__restore:active { transform: scale(0.94); }

.reord-fab {
  padding: 14px 18px calc(14px + var(--safe-bot));
  background: var(--card);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.reord-fab .btn-primary {
  width: 100%;
  background: var(--success);
  box-shadow: 0 8px 22px rgba(16,185,129,0.32);
}
.reord-fab .btn-primary:disabled {
  background: var(--border);
  color: var(--text-3);
  box-shadow: none;
}

/* Wizard step transitions */
.prod-step {
  animation: stepIn 0.32s var(--e-out) both;
}
@keyframes stepIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.prod-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 18px;
}
.prod-stepper__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.32s var(--e-spring);
}
.prod-stepper__dot.active {
  width: 28px;
  border-radius: 100px;
  background: var(--brand-blue);
}
.prod-stepper__dot.done { background: var(--success); }
.prod-back-step {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 14px;
  padding: 6px 0;
  background: transparent;
  transition: opacity 0.18s;
}
.prod-back-step:active { opacity: 0.5; }

/* ============================================================
   SCREEN: CART
   ============================================================ */
.screen--cart {
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
  padding-bottom: calc(120px + var(--safe-bot));
  position: relative;
}

/* ============================================================
   SCREEN: LOGIN (entry point con OTP por SMS)
   ============================================================ */
.screen--login {
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  position: relative;
}
.login-hero {
  flex: 0 0 auto;
  height: 38dvh;
  background: linear-gradient(135deg, var(--brand-orange, #F5A623) 0%, var(--brand-red, #C44536) 100%);
  display: grid;
  place-items: center;
  padding-top: var(--safe-top);
  background-size: cover;
  background-position: center;
  position: relative;
}
.login-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), transparent 60%);
  pointer-events: none;
}
/* Cuando hay foto custom del tenant, oscurecer un poco para que el logo destaque */
.login-hero.has-image::after {
  background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.30) 100%);
}
.login-hero__logo {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  background: rgba(255,255,255,0.96);
  display: grid;
  place-items: center;
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--brand-orange, #F5A623);
  box-shadow: 0 12px 30px rgba(0,0,0,0.22);
  z-index: 1;
}
.login-hero__logo img {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  object-fit: cover;
}
.login-body {
  flex: 1;
  padding: 28px 22px calc(var(--safe-bot) + 22px);
  display: flex;
  flex-direction: column;
}
.login-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.login-sub {
  font-size: 14.5px;
  color: var(--text-2);
  margin: 0 0 24px;
  line-height: 1.4;
}
.login-step[hidden] { display: none !important; }
.login-input-wrap[hidden] { display: none !important; }
.login-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
  transition: border-color 0.2s;
}
.login-input-wrap:focus-within {
  border-color: var(--text);
}
.login-input-prefix {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-2);
  border-right: 1px solid var(--border);
  padding-right: 10px;
}
.login-input-wrap input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.04em;
  color: var(--text);
}
.login-input-wrap input::placeholder { color: var(--text-3); }
.login-cta {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 12px;
}
.login-guest {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.login-guest:active { opacity: 0.6; }

/* Link discreto "¿Otra cuenta de Google?" — fuerza picker via OAuth2 explicit */
.login-link {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  cursor: pointer;
  text-align: center;
}
.login-link:active { opacity: 0.6; }

/* Divisor "or" entre teléfono y social */
.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 12px;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 600;
}
.login-divider::before, .login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Botones sociales (Apple, Google, Email) */
.login-social {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  background: var(--surface, #f3f3f4);
  border: 0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  margin-bottom: 8px;
  transition: transform 0.18s var(--e-spring), background 0.18s;
}
.login-social:active {
  transform: scale(0.98);
  background: rgba(0,0,0,0.06);
}
.login-social svg { flex-shrink: 0; }
/* 🧨 El boton de Apple nace `hidden` y el JS solo lo destapa en la app de
   iPhone, que es donde funciona. Pero `.login-social` le pone `display`, y eso
   le gana al `hidden`: en la web se veia, y al picarle no pasaba nada — el
   JS nunca le engancho el clic fuera del iPhone. Un boton muerto en la
   primera pantalla. Mismo parche que .screen, .suc-view y los demas. */
.login-social[hidden] { display: none !important; }
/* Sign in with Apple — debe ser negro/blanco per Apple Human Interface
   Guidelines. Si lo dejaramos con el estilo default (border claro, text gris)
   el review nos pediria cambiarlo. */
.login-social--apple {
  background: #000;
  color: #fff;
  border-color: #000;
}
.login-social--apple:active {
  background: #222;
}
.login-social--apple svg { fill: #fff; }

/* Botón de modo invitado — discreto pero visible. Estilo "link" para que
   no compita visualmente con los botones de login social. Importante:
   Google Play exige que este botón sea visible para revisores que prueban
   sin credenciales (App Access declaration). */
.login-guest-btn {
  width: 100%;
  background: none;
  border: 0;
  padding: 14px 20px 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2, #6b6b6b);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 6px;
  transition: color 0.18s, transform 0.18s var(--e-spring);
}
.login-guest-btn:hover { color: var(--text); }
.login-guest-btn:active { transform: scale(0.98); }

/* Wrap del botón Google: el botón nativo se monta INVISIBLE pero clickable
   sobre el botón custom estilizado. Branding-compliant + diseño consistente. */
.login-social-wrap {
  position: relative;
}
.login-social-wrap .login-social {
  pointer-events: none; /* deja pasar el click al botón nativo de Google */
}
.login-google-native {
  position: absolute;
  inset: 0;
  opacity: 0.001; /* invisible pero capturable */
  z-index: 2;
}
.login-google-native > div { width: 100% !important; }
.login-otp-hint {
  font-size: 13.5px;
  color: var(--text-2);
  margin: 0 0 18px;
  line-height: 1.4;
}
/* "Continuar con correo": el correo y, sólo para una cuenta de antes sin
   celular, la contraseña debajo. (Las pestañas "Iniciar sesión / Crear
   cuenta" se quitaron el 25-sep: ya no se crean cuentas con contraseña.) */
#loginStepEmail .login-input-wrap {
  margin-bottom: 10px;
}
/* Quick login Face ID: boton outline secundario arriba del telefono.
   Estilo no-primary (no compite con el CTA azul de "Continuar") pero
   claro y descubrible. Sin datos personales — el OS los muestra al
   disparar el prompt nativo. */
.login-face-cta[hidden] { display: none !important; }
.login-face-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 16px;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  margin-bottom: 14px;
  transition: border-color .15s, background .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.login-face-cta:hover { border-color: var(--brand-blue); }
.login-face-cta:active { transform: scale(0.985); background: var(--bg-2, #f7f8fa); }
.login-face-cta svg { flex-shrink: 0; color: var(--brand-blue); }
.login-otp-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
/* 4 o 6 casillas (25-sep, como Rappi): 4 al celular que se escribió, 6
   cuando el código lo pidió un correo. app.js pone la clase y esconde las
   casillas que sobran. Con 4, la cuadrícula es más angosta para que cada
   círculo quede del tamaño de los de 6. */
.login-otp-grid--6 {
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}
.login-otp-grid--4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 248px;
  margin-left: auto;
  margin-right: auto;
}
/* Las que sobran (index.html trae 6): fuera del todo, aunque algún día una
   regla les ponga display. */
.login-otp-cell[hidden], .ph-otp__cell[hidden] { display: none !important; }
.login-otp-cell {
  width: 100%;
  aspect-ratio: 1;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  font-family: inherit;
  outline: 0;
  transition: border-color 0.18s, transform 0.18s var(--e-spring);
  color: var(--text);
}
.login-otp-cell:focus {
  border-color: var(--text);
  transform: scale(1.05);
}
.login-otp-cell.has-value {
  background: var(--surface);
  border-color: var(--text);
}
.login-link {
  display: block;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 8px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-link, #1A5DB5);
  cursor: pointer;
  margin-top: 4px;
}
.login-link:active { opacity: 0.6; }
.login-terms {
  margin-top: auto;
  padding-top: 18px;
  font-size: 11.5px;
  color: var(--text-3);
  text-align: center;
  line-height: 1.5;
}
.login-terms a {
  color: var(--text-2);
  text-decoration: underline;
}

/* ============================================================
   SCREEN: PASSKEY (post-login, estilo Uber Eats)
   ============================================================ */
.screen--passkey {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  min-height: 100dvh;
  padding: calc(var(--safe-top) + 24px) 22px calc(var(--safe-bot) + 22px);
  max-width: var(--max-w);
  margin: 0 auto;
}
.passkey-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
  padding-top: 28px;
}
.passkey-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border: 1.5px solid var(--border);
}
.passkey-bullets {
  list-style: none;
  margin: 18px 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.passkey-bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.passkey-bullet__ico {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* ============================================================
   SHEET: PRODUCT INFO (popup info estilo directorio + CTA pedir)
   ============================================================ */
.sheet--info {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  max-width: var(--max-w);
  margin: 0 auto;
  background: var(--card);
  border-radius: 22px 22px 0 0;
  z-index: 50;
  transform: translateY(100%);
  transition: transform 0.3s var(--e-spring);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 85dvh;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.18);
}
.sheet--info.show { transform: translateY(0); }
/* Handle del sheet info: flotante encima del hero, semi-transparente. */
.sheet--info > .sheet__handle-zone {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
  padding: 8px 0 4px;
  pointer-events: auto;
}
.sheet--info > .sheet__handle-zone .sheet__handle {
  background: rgba(255,255,255,0.85);
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
.prod-info-hero {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: var(--surface);
  display: grid;
  place-items: center;
  font-size: 80px;
  position: relative;
  overflow: hidden;
}
.prod-info-hero__emoji { z-index: 1; }
.prod-info-body {
  padding: 18px 20px 14px;
  flex: 1;
  overflow-y: auto;
}
.prod-info-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.prod-info-rating {
  font-size: 13px;
  font-weight: 700;
  color: #FFB400;
}
.prod-info-price {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.prod-info-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 8px;
}
.prod-info-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
  margin: 0;
}
.prod-info-cta {
  padding: 12px 16px calc(var(--safe-bot) + 14px);
  border-top: 1px solid var(--border);
  background: var(--card);
}
.prod-info-cta__btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 800;
}

/* ============================================================
   SCREEN: COMPLETE — "Completa tu pedido" (entre el carrito y el pago),
   como la de Uber Eats: la flecha, el título grande y las fotos de dos en dos
   con su "+". El pie es el del carrito (.cart-fab), con "No, gracias".
   ============================================================ */
.screen--complete {
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--card);
  padding: 0 16px calc(110px + var(--safe-bot));
  position: relative;
}
.complete-head { padding: calc(var(--safe-top) + 8px) 0 4px; }
.complete-head__atras {
  width: 44px; height: 44px;
  margin-left: -10px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--text);
}
.complete-head__atras:active { background: var(--surface); }
.complete-head__titulo {
  margin: 8px 0 0;
  font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15;
}
.complete-upsell-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 14px;
  margin-top: 18px;
}
.complete-upsell-card { min-width: 0; cursor: pointer; }
.complete-upsell-card__media { position: relative; margin-bottom: 8px; }
.complete-upsell-card__photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-color: var(--surface);
  display: grid;
  place-items: center;
}
/* El verde oscuro de la etiqueta de Uber: en el verde del botón la letra
   blanca casi no se lee. */
.complete-upsell-card__popular {
  position: absolute;
  top: 8px; left: 8px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #0E8345;
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
}
/* El "+" blanco sobre la foto; ya agregado, "− 2 +". Sin gap en flex: los
   teléfonos con WebView viejo no lo entienden. */
.complete-upsell-card__ctrl {
  position: absolute;
  right: 8px; bottom: 8px;
  display: flex;
  align-items: center;
  height: 38px;
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.complete-upsell-card__ctrl button {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  font-size: 24px; font-weight: 400; line-height: 1;
  color: inherit;
}
.complete-upsell-card__ctrl span { min-width: 14px; text-align: center; font-size: 15px; font-weight: 700; }
.complete-upsell-card__name {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.complete-upsell-card__price { margin-top: 2px; font-size: 15px; color: var(--text); }
/* Todavía no agrega nada: "No, gracias" oscuro, como el de Uber. Al agregar
   algo vuelve al verde de "Continuar". */
#completeContinue.is-no-gracias { background: var(--text); box-shadow: none; }

.cart-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
  padding: calc(var(--safe-top) + 12px) 16px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.cart-header__title { flex: 1; }
.cart-header__title h1 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.cart-header__title span {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
}
.cart-header__clear {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--card);
  color: var(--danger);
  display: grid; place-items: center;
  box-shadow: var(--sh-soft);
  transition: transform 0.18s var(--e-spring);
}
.cart-header__clear:active { transform: scale(0.88); }

/* Blanco como los demás renglones, sin el azul (minimalista, 30-oct). */
.cart-suc {
  margin: 14px 16px;
  padding: 12px 14px;
  background: var(--card);
  box-shadow: var(--sh-soft);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
/* Sin color, como los del pago (minimalista, 30-oct). */
.cart-suc__icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  color: var(--text);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.cart-suc__icon svg { width: 22px; height: 22px; }
.cart-suc__body { flex: 1; min-width: 0; }
.cart-suc__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cart-suc__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-suc__mode {
  font-size: 12px;
  color: var(--text-2);
}
/* El mismo "Cambiar" gris del pago. */
.cart-suc__change {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  padding: 7px 14px;
  border-radius: 100px;
  background: var(--surface);
  flex-shrink: 0;
  transition: opacity 0.18s;
}
.cart-suc__change:active { opacity: 0.5; }

.cart-body {
  /* Sin padding-bottom: ahora hay elementos abajo (Agregar mas, upsell, notas)
     que protegen el ultimo item del FAB fijo. El espacio para el FAB lo da
     #screenCart con padding-bottom (mas abajo). */
  padding: 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* Asegurar que el screen del cart tenga padding-bottom para no ocultar
   el ultimo elemento (cart-notes) detras del FAB fijo. */
#screenCart { padding-bottom: 110px; }
/* Wrap del cart-item para soportar swipe-to-delete (estilo Uber Eats / Rappi).
   El item desliza hacia la izquierda revelando el boton rojo "Eliminar" debajo. */
.cart-swipe {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  animation: cartItemIn 0.32s var(--e-out) both;
}
.cart-swipe.is-removing {
  animation: cartItemOut 0.32s var(--e-out) forwards;
}
.cart-swipe__bg {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  background: var(--danger, #E53935);
  border-radius: var(--radius);
  z-index: 0;
}
.cart-swipe__delete-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 88px;
  background: transparent;
  border: 0;
  color: #fff;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.cart-swipe__delete-btn:active { background: rgba(0,0,0,0.1); }

.cart-item {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--sh-soft);
  touch-action: pan-y; /* permitir scroll vertical, capturamos pan horizontal con JS */
  will-change: transform;
}
@keyframes cartItemIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cart-item.removing {
  animation: cartItemOut 0.32s var(--e-out) forwards;
}
@keyframes cartItemOut {
  to { opacity: 0; transform: translateX(60px) scale(0.92); height: 0; padding: 0; margin: 0; }
}
.cart-item__thumb {
  width: 64px; height: 64px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 28px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.cart-item__thumb::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.4), transparent 55%);
}
.cart-item__thumb span { z-index: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15)); }
.cart-item__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.cart-item__name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}
.cart-item__sels {
  font-size: 11.5px;
  color: var(--text-2);
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Toggle de detalles (sabores + aderezos) estilo Uber Eats — colapsado por default */
.cart-item__sels-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 2px 0 8px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--text-2);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.2;
  align-self: flex-start;
}
.cart-item__sels-toggle:active { opacity: 0.6; }
.cart-item__sels-summary {
  text-decoration: underline;
  text-decoration-color: rgba(0,0,0,0.18);
  text-underline-offset: 2px;
}
.cart-item__sels-chev {
  flex-shrink: 0;
  transition: transform 0.22s var(--e-spring);
}
.cart-item__sels-toggle[aria-expanded="true"] .cart-item__sels-chev { transform: rotate(180deg); }

.cart-item__detail[hidden] { display: none !important; }
.cart-item__detail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
  padding: 10px 12px;
  background: var(--surface, #f7f7f8);
  border-radius: 10px;
}
.cart-item__detail-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cart-item__detail-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-2);
}
.cart-item__detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.cart-item__detail-list li {
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.4;
}
.cart-item__detail-list strong {
  font-weight: 800;
  color: var(--text);
}
.cart-item__row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cart-item__price {
  font-size: 14px;
  font-weight: 800;
}
.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--surface);
  border-radius: 100px;
}
.cart-item__qty-btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--card);
  display: grid; place-items: center;
  box-shadow: var(--sh-soft);
  transition: transform 0.18s var(--e-spring);
}
.cart-item__qty-btn:active { transform: scale(0.85); }
.cart-item__qty-btn.delete { color: var(--danger); }
.cart-item__qty-num {
  min-width: 18px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

/* Summary block */
.cart-summary {
  margin: 16px 16px 0;
  padding: 16px 18px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--sh-soft);
}
.cart-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 14px;
}
.cart-summary__row span:first-child { color: var(--text-2); font-weight: 500; }
.cart-summary__row span:last-child { color: var(--text); font-weight: 700; }
.cart-summary__row small { font-size: 11px; color: var(--text-3); font-weight: 500; }
.cart-summary__total {
  border-top: 1.5px dashed var(--border);
  margin-top: 10px;
  padding-top: 14px;
}
.cart-summary__total span:first-child { color: var(--text); font-weight: 700; font-size: 15px; }
.cart-summary__total span:last-child { color: var(--text); font-weight: 900; font-size: 20px; letter-spacing: -0.01em; }

.cart-summary__tip {
  margin: 12px -2px 4px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.cart-summary__tip-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
}
.cart-summary__tip-head span:first-child { color: var(--text-2); font-weight: 500; }
.cart-summary__tip-head span:last-child { color: var(--text); font-weight: 700; }

.cart-tip-pills {
  display: flex;
  gap: 6px;
}
.cart-tip-pill {
  flex: 1;
  padding: 9px 6px;
  background: var(--surface);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  transition: all 0.22s var(--e-spring);
  border: 1.5px solid transparent;
}
.cart-tip-pill:active { transform: scale(0.94); }
.cart-tip-pill.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

/* FAB checkout */
/* 🪞 El pie del carrito usa las reglas del pie de pagar (el total de un lado,
   el boton del otro) y ENCIMA las medidas de la barra del menu: ver
   `.cart-fab` despues de `.co-fab`. */

/* Empty */
.cart-empty {
  padding: 80px 24px 40px;
  text-align: center;
}
/* Minimalista (30-oct): ícono de línea en un círculo gris, el mismo molde que
   el vacío de Cupones (.cp-empty__ic). */
.cart-empty__icon {
  width: 72px; height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface);
  color: var(--text-3);
}
.cart-empty__title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.cart-empty__sub {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 24px;
}
.cart-empty .btn-primary { display: inline-flex; }

/* ============================================================
   SCREEN: CHECKOUT
   ============================================================ */
.screen--checkout {
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
  padding-bottom: calc(120px + var(--safe-bot));
  position: relative;
}
.co-header {
  position: sticky;
  top: 0;
  z-index: 30;
  /* Background SOLIDO. Antes era rgba(250,250,250,0.92) translucido +
     blur. Pero con viewport-fit=cover, la Dynamic Island (hardware negro
     del iPhone) se veia A TRAVES de la translucencia, creando la ilusion
     de una "Dynamic Island falsa" en el header. Solucion: hacer opaco. */
  background: var(--bg);
  padding: calc(var(--safe-top) + 12px) 16px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.co-header__title { flex: 1; }
.co-header__title h1 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.co-header__title span {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
}

.co-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.co-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--sh-soft);
  width: 100%;
  text-align: left;
  transition: transform 0.18s var(--e-spring), box-shadow 0.18s var(--e-out);
}
.co-row:active { transform: scale(0.99); box-shadow: var(--sh-card); }
/* CRITICAL: cuando hay display:flex, el atributo [hidden] no aplica display:none.
   Forzarlo para que el toggle Domicilio/Recoger oculte la row correcta. */
.co-row[hidden] { display: none !important; }
/* Bloque de confirmacion (origen + destino) — estilo Uber: sin marco amarillo,
   solo dos rows pegados que comparten visualmente el espacio. */
.co-confirm-block {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 12px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--sh-soft);
  background: var(--card);
}
.co-confirm-block .co-row--confirm {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 12px 14px;
}
.co-confirm-block .co-row--confirm + .co-row--confirm {
  border-top: 1px solid var(--border);
}

/* Variante inline: row de una sola linea (valor + ETA a la derecha).
   Para no ocupar 2 renglones — estilo Uber Eats. */
.co-row--inline {
  padding: 12px 14px;
}
.co-row__inline-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
}
.co-row__inline-main .co-row__value {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}
.co-row__inline-eta {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
}
.co-row__chev { color: var(--text-3); flex-shrink: 0; margin-left: 8px; }
/* El mismo "Cambiar" gris del método de pago (sin azul: minimalista). */
.co-row__change {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 100px;
  background: var(--surface);
}
.co-row--confirm:active .co-row__change { background: var(--border); }
/* Minimalista (30-oct, Federico: "más minimalista quitando los colores"):
   íconos de línea en tinta, sin el cuadro de color, como los de Rappi. Las
   clases de color (--blue, --green…) se quedan en el HTML pero ya no pintan. */
.co-row__icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  flex-shrink: 0;
  color: var(--text);
}
.co-row__icon svg { width: 22px; height: 22px; }
/* "Tu pedido" con el logo de la marca, redondo como el del restaurante en Rappi. */
.co-row__icon--logo img {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}
.co-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.co-row__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
}
.co-row__value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.co-row__hint {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.co-row__chev { color: var(--text-3); flex-shrink: 0; }

.co-instructions {
  padding: 12px 14px;
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--sh-soft);
  transition: padding 0.22s var(--e-out);
}
/* Compacto cuando colapsado */
.co-instructions:not(.is-open) { padding: 10px 14px; }
.co-instructions__head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 0;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.co-instructions.is-open .co-instructions__head { margin-bottom: 12px; }
.co-instructions .co-row__chev { transition: transform 0.22s var(--e-spring); color: var(--text-3); flex-shrink: 0; }
.co-instructions.is-open .co-row__chev { transform: rotate(180deg); }
.co-instructions__input[hidden] { display: none !important; }
.co-instructions__input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  font-size: 13.5px;
  color: var(--text);
  resize: none;
  outline: none;
  background: var(--bg);
  transition: border-color 0.2s;
}
.co-instructions__input:focus { border-color: var(--brand-blue); }
.co-instructions__input::placeholder { color: var(--text-3); }

/* Método de pago como el de Rappi (30-oct): el título y "Cambiar" arriba, y
   lo escogido SIEMPRE a la vista abajo — sin abrir y cerrar. La lista para
   escoger otro vive en la hoja #sheetPago. */
.co-pay {
  padding: 14px;
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--sh-soft);
}
.co-pay__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.co-pay__titulo { font-size: 17px; font-weight: 800; }
.co-pay__cambiar {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
}
.co-pay__cambiar:active { transform: scale(0.96); }
.co-pay__elegido {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}
.co-pay__elegido-body { flex: 1; min-width: 0; }
.co-pay__elegido-label { display: block; font-size: 16px; font-weight: 600; }
.co-pay__elegido-sub {
  display: block;
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-top: 1px;
}
/* Sin método escogido: se dice en el mismo lugar, en el color de aviso. */
.co-pay__elegido--falta .co-pay__elegido-label { color: var(--brand-blue); }
/* El logo de lo escogido: redondo como el de Rappi. Las tres marcas que más
   llegan con su color; las demás, con el ícono de siempre. */
.pago-marca {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
  color: #fff;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.02em;
}
.pago-marca--visa { background: #1A1F71; font-style: italic; font-size: 13px; }
.pago-marca--amex { background: #2E77BC; font-size: 10px; }
.pago-marca--mastercard { background: #111; }
.pago-marca.co-pay-opt__icon { width: 44px; height: 44px; border-radius: 50%; font-size: 18px; }
.co-pay__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
/* CRITICAL: cuando display:flex esta seteado, el atributo [hidden] no aplica
   automaticamente display:none. Hay que forzarlo explicito. */
.co-pay__list[hidden] { display: none !important; }
.co-pay-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  background: var(--bg);
  border-radius: 12px;
  border: 1.5px solid transparent;
  font-family: inherit;
  text-align: left;
  transition: all 0.22s var(--e-spring);
}
/* El nombre arriba y "Termina en 4242" abajo (en la hoja salían en una sola
   línea y centrados). */
.co-pay-opt__label,
.co-pay-opt__sub { display: block; }
.co-pay-opt:active { transform: scale(0.98); }
.co-pay-opt.selected {
  border-color: var(--text);
  background: var(--card);
}
.co-pay-opt__icon {
  width: 32px; height: 28px;
  border-radius: 6px;
  display: grid; place-items: center;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -0.04em;
}
/* Tarjeta generica: azul de marca, no el azul de Visa. Pintarlo de Visa era
   parte de la mentira — la marca de la tarjeta no se sabe hasta que la
   teclean. */
.co-pay-opt__icon--tarjeta { background: linear-gradient(135deg, var(--brand-blue) 0%, #0F3D82 100%); }
.co-pay-opt__icon--visa { background: linear-gradient(135deg, #1A1F71 0%, #0F1452 100%); }
.co-pay-opt__icon--apple { background: #000; }
.co-pay-opt__icon--google { background: #4285F4; }
.co-pay-opt__icon--cash { background: var(--success); }
.co-pay-opt__icon--plus { background: var(--surface); color: var(--text); border: 1.5px dashed var(--border); }
.co-pay-opt__body { flex: 1; min-width: 0; }
.co-pay-opt__label {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 1px;
}
.co-pay-opt__sub {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
}
.co-pay-opt__radio {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: all 0.22s var(--e-spring);
  color: transparent;
}
.co-pay-opt.selected .co-pay-opt__radio {
  border-color: var(--text);
  background: var(--text);
  color: #fff;
}

.co-coupon {
  padding: 12px 14px;
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--sh-soft);
  transition: padding 0.22s var(--e-out);
}
/* Cuando esta colapsado: padding mas chico para no ocupar tanto */
.co-coupon:not(.is-open) { padding: 10px 14px; }
/* Toggle del cupon (head). Cuando esta cerrado, solo se ve esta linea. */
.co-coupon__toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 0;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.co-coupon.is-open .co-coupon__toggle { margin-bottom: 12px; }
.co-coupon .co-row__chev { transition: transform 0.22s var(--e-spring); color: var(--text-3); flex-shrink: 0; }
.co-coupon.is-open .co-row__chev { transform: rotate(180deg); }
.co-coupon__row[hidden] { display: none !important; }
.co-coupon__row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.co-coupon__row input {
  flex: 1;
  min-width: 0;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  font-size: 13.5px;
  background: var(--bg);
  outline: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--text);
  transition: border-color 0.2s;
}
.co-coupon__row input:focus { border-color: var(--brand-blue); }
.co-coupon__apply {
  padding: 10px 16px;
  background: var(--text);
  color: #fff;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.18s var(--e-spring);
  flex-shrink: 0;
}
.co-coupon__apply:active { transform: scale(0.94); }
/* Sin bloque de color (Federico, 30-oct: "estorba mucho"): el "listo" sale
   arriba un momento (toast) y aquí sólo queda, si algo falla, una línea roja. */
.co-coupon__msg {
  margin: 8px 0 0 52px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
}
.co-coupon__msg.err { color: var(--danger); }
.co-coupon__msg[hidden],
.co-coupon__quitar[hidden],
.co-coupon__desc[hidden] { display: none; }
/* Con un cupón puesto: el código, lo que descuenta y la tachita al final. */
.co-coupon__fila { display: flex; align-items: center; gap: 6px; }
.co-coupon__fila .co-coupon__toggle { flex: 1; min-width: 0; }
.co-coupon__desc { margin-left: 8px; font-size: 14px; font-weight: 700; color: var(--success); }
.co-coupon.tiene-cupon .co-row__chev { display: none; }
.co-coupon__quitar {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface);
  color: var(--text-2);
}
.co-coupon__quitar:active { transform: scale(0.92); }

.co-summary {
  padding: 16px 18px;
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--sh-soft);
  margin-top: 4px;
}

/* === Sucursal referencia (top del summary, solo desktop) === */
.co-summary__store {
  display: none; /* hidden por default; CSS desktop lo muestra */
  align-items: center;
  gap: 12px;
  padding: 0 0 14px 0;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.co-summary__store-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--bg);
  display: grid; place-items: center;
  font-size: 18px;
  flex-shrink: 0;
  overflow: hidden;
}
.co-summary__store-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.co-summary__store-body { min-width: 0; flex: 1; }
.co-summary__store-name {
  font-weight: 800; font-size: 14px; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.co-summary__store-addr {
  font-size: 12px; color: var(--text-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* === Resumen del carrito (toggle colapsable estilo Uber Eats) ===
   Ya no se usa: en desktop reemplazado por mover .co-items dentro del summary.
   Lo ocultamos en TODOS los viewports para que no aparezca en mobile. */
.co-summary__cart-toggle, .co-summary__cart-list { display: none !important; }
.co-summary__cart-toggle--legacy {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0;
  background: transparent;
  border: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  font-family: inherit;
  cursor: pointer;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  margin-bottom: 12px;
}
.co-summary__cart-toggle:hover { background: var(--bg); }
.co-summary__cart-toggle-icon { font-size: 16px; }
.co-summary__cart-toggle-label { flex: 1; }
.co-summary__cart-toggle-count { color: var(--text-2); font-weight: 500; font-size: 13px; }
.co-summary__cart-toggle-chev {
  color: var(--text-2);
  transition: transform 0.2s ease;
}
.co-summary__cart-toggle[aria-expanded="true"] .co-summary__cart-toggle-chev {
  transform: rotate(180deg);
}
.co-summary__cart-list {
  padding: 0 0 12px 0;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
}
/* hidden gana sobre display:flex (sino el toggle no oculta) */
.co-summary__cart-list[hidden] { display: none !important; }

/* === Boton "Como llegar" en tracking pickup === */
.track-info__directions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--brand-blue, #1A5DB5);
  color: #fff;
  border: 0;
  border-radius: 100px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.15s;
}
.track-info__directions:active { transform: scale(0.96); }
.track-info__directions:hover { background: var(--brand-blue-dark, #144A91); }
.track-info__directions[hidden] { display: none !important; }
.co-summary__cart-item {
  display: flex; gap: 10px; align-items: center;
  font-size: 13.5px;
}
.co-summary__cart-item-qty {
  color: var(--text-2); font-weight: 700; flex-shrink: 0;
  min-width: 24px;
}
.co-summary__cart-item-name { flex: 1; color: var(--text); }
.co-summary__cart-item-price { font-weight: 700; color: var(--text); }
.co-summary__cart-empty {
  color: var(--text-3); font-size: 13px; text-align: center; padding: 8px 0;
}
.co-summary__row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 14px;
}
/* 🫥 El display:flex de arriba le ganaba al atributo [hidden] (#17): se veían
   "Envío $0" al recoger, "Descuento −$0" en todo checkout y la promo de la
   cotización ANTERIOR junto al total nuevo. pintarTotalesCheckout los esconde
   con hidden; esto hace que de verdad se escondan. */
.co-summary__row[hidden] { display: none !important; }
.co-summary__row span:first-child { color: var(--text-2); font-weight: 500; }
.co-summary__row span:last-child { color: var(--text); font-weight: 700; }
.co-summary__total {
  border-top: 1.5px dashed var(--border);
  margin-top: 10px;
  padding-top: 14px;
}
.co-summary__total span:first-child { color: var(--text); font-weight: 700; font-size: 15px; }
.co-summary__total span:last-child { color: var(--text); font-weight: 900; font-size: 22px; letter-spacing: -0.01em; }

.co-fab,
.cart-fab {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  z-index: 50;
  /* Aire arriba del boton. Medido en la captura de Rappi: 16 entre la linea
     del pie y el borde del boton; el nuestro tenia 12 y el boton se veia
     apretado contra el contenido de arriba — de ahi la sensacion de que el de
     ellos era "mas grande" aunque su boton mide 44.8 y el nuestro 47.
     Va a 26 —mas que sus 16— porque aqui el contenido de arriba llega hasta
     el borde del pie y sin ese aire los dos bloques se tocan. */
  padding: 26px 16px calc(20px + var(--safe-bot));
  background: var(--card);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
}
/* El total de un lado y el boton del otro.
   Antes era un solo boton con todo adentro: "Pagar $164 · A Casa desde
   Vasconcelos". El precio —lo que la gente busca con los ojos antes de
   pagar— iba del mismo tamaño que el resto de la frase y a veces se partia
   en dos renglones. Ahora el numero se lee solo. */
.co-fab__inner {
  width: 100%;
  max-width: var(--max-w);
  display: flex;
  align-items: center;
  /* Dos MITADES exactas: el total manda en la izquierda, el boton en la
     derecha, y cada una centra lo suyo. Sin hueco entre ellas — un gap aqui
     mueve las dos mitades y el centro deja de ser el centro. El aire que se
     ve no lo hace el gap: lo hace que el texto y el boton esten centrados en
     su propia mitad. */
  justify-content: space-between;
  gap: 0;
}
/* Al ras de la izquierda, como el de Rappi: "Subtotal" arriba y el monto
   debajo, los dos alineados al mismo borde. Lo probamos centrado en su mitad
   y no: el numero deja de tener un borde contra el cual leerse, y la etiqueta
   y el monto —que miden distinto— quedan cada uno empezando en otro lado. */
.co-fab__total {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.12;
}
.co-fab__total-label { font-size: 13px; color: var(--text-2); font-weight: 600; }
.co-fab__total-amount { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.co-fab .btn-primary,
.cart-fab .btn-primary {
  /* La mitad derecha, entera. El texto del boton ya viene centrado, asi que
     al ocupar su mitad exacta cae justo en el centro de ella — igual que el
     monto en la suya.
     Es min-width y no width para que un texto largo ("Agregar direccion")
     lo haga crecer en vez de partirse en dos renglones. */
  flex: 0 0 auto;
  min-width: 50%;
  min-height: 47px;
  padding: 12px 20px;
  background: var(--cta-verde);
  /* Un halo, no una mancha. El de antes —30% de opacidad, 20 de difuminado y
     8 de caida— pintaba un borron verde debajo del boton. En la captura de
     Rappi la sombra se apaga en unos 25 y casi no se nota. */
  box-shadow: 0 4px 12px rgba(51,201,91,0.22);
}
/* 🧨 El fondo apagado era var(--text-3) y el texto de .btn-primary:disabled
   TAMBIEN es var(--text-3): gris sobre el mismo gris. El boton salia vacio.
   No decia "Sucursal cerrada", no decia "Pagar" — no decia nada, y un boton
   gris sin letras se lee como que la app se trabo.
   El fondo se queda gris —tiene que verse apagado— y la letra va blanca. */
.co-fab .btn-primary:disabled,
.cart-fab .btn-primary:disabled {
  background: var(--text-3);
  color: #fff;
  box-shadow: none;
}
/* El pie del CARRITO sigue a la barra del menu (.cart-bar) con sus mismas
   medidas (30-oct, Federico: "este footer continualo igual acomodado y mismo
   tamaño exacto en el que sigue, pero con continuar"): del menu al carrito el
   pie no brinca — misma altura, mismas letras y el boton a la misma altura.
   Como en el de Rappi, aqui ya no va la foto: "Subtotal" y el monto a la
   orilla, y su boton es mas ancho (175 contra 137 del menu, medidos en sus
   dos capturas). El de PAGAR (.co-fab) va igual ("acomodalo igual que los
   de atras"), con "Total" y "Hacer pedido"; esto reemplaza el relleno de
   26 de arriba. */
.cart-fab,
.co-fab {
  padding: 11px 22px max(11px, calc(var(--safe-bot) - 7px));
  border-top: 0;
  box-shadow: 0 0 24px rgba(0,0,0,0.2);
}
/* El display:flex de .co-fab le ganaba al [hidden]: con el carrito vacio
   seguia el pie con "Subtotal $0" y un "Continuar" que no hacia nada. */
.cart-fab[hidden] { display: none !important; }
/* 52 de alto, lo de la cajita de la foto del menu: asi la barra mide lo mismo
   y el boton cae en el mismo lugar. */
.cart-fab .co-fab__inner,
.co-fab .co-fab__inner { min-height: 52px; gap: 12px; }
.cart-fab .co-fab__total,
.co-fab .co-fab__total { line-height: 1.2; }
.cart-fab .co-fab__total-label,
.co-fab .co-fab__total-label { font-size: 13px; font-weight: 500; color: var(--text); }
.cart-fab .co-fab__total-amount,
.co-fab .co-fab__total-amount { font-size: 22px; font-weight: 700; letter-spacing: 0; white-space: nowrap; }
.cart-fab .btn-primary,
.co-fab .btn-primary {
  min-width: 175px; min-height: 0;
  padding: 12.5px 16px;
  font-size: 17px; font-weight: 600; line-height: 20px;
  box-shadow: 0 5px 14px rgba(51,201,91,0.35);
}
/* Se ve apagado pero SI recibe el toque: al tocarlo señala lo que falta en vez
   de no hacer nada. Un boton muerto no explica; este si. */
.btn-primary--apagado {
  background: var(--text-3) !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* La sacudida que señala la seccion que falta. Corta y seca: es un "aqui",
   no un aspaviento. */
@keyframes sacudir {
  0%, 100% { transform: translateX(0); }
  15%      { transform: translateX(-7px); }
  30%      { transform: translateX(6px); }
  45%      { transform: translateX(-4px); }
  60%      { transform: translateX(3px); }
  75%      { transform: translateX(-2px); }
}
.sacude { animation: sacudir 0.55s var(--e-out) both; }
@media (prefers-reduced-motion: reduce) {
  .sacude { animation: none; outline: 2px solid var(--warn); outline-offset: 2px; }
}

/* ============================================================
   SCREEN: SUCCESS (post-checkout)
   ============================================================ */
.screen--success {
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--safe-top) + 32px);
}
.success-hero {
  flex: 1;
  padding: 0 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.success-check {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--success);
  display: grid; place-items: center;
  margin-bottom: 20px;
  box-shadow: 0 20px 40px rgba(16,185,129,0.35);
  animation: checkPop 0.6s var(--e-spring) both;
}
@keyframes checkPop {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}
.success-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
/* Numero de orden corto (#1043) — el cliente lo da a soporte / lo referencia */
.success-ordernum {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--brand-blue, #1A5DB5);
  background: rgba(26,93,181,0.10);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.track-ordernum {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 800;
  color: var(--brand-blue, #1A5DB5);
  background: rgba(26,93,181,0.10);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.success-sub {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 24px;
  line-height: 1.4;
}
.success-eta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 30px;
}
.success-eta__num {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--brand-blue);
  line-height: 1;
}
.success-eta__label {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
}
.success-progress {
  width: 100%;
  height: 6px;
  border-radius: 100px;
  background: var(--border);
  overflow: hidden;
  margin-bottom: 14px;
}
.success-progress__bar {
  height: 100%;
  width: 25%;
  background: var(--success);
  border-radius: 100px;
  animation: progSlide 1.2s var(--e-spring) both;
}
@keyframes progSlide {
  from { width: 0; }
  to   { width: 25%; }
}
.success-steps {
  display: flex;
  width: 100%;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.success-step.active { color: var(--success); }

.success-fab {
  padding: 14px 16px calc(14px + var(--safe-bot));
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ============================================================
   SCREEN: TRACKING
   ============================================================ */
.screen--tracking {
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
  display: flex;
  flex-direction: column;
}
.track-back {
  position: absolute;
  top: calc(var(--safe-top) + 14px);
  left: 14px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: grid; place-items: center;
  z-index: 10;
  box-shadow: var(--sh-card);
  transition: transform 0.18s var(--e-spring);
}
.track-back:active { transform: scale(0.88); }

.track-map {
  height: 42dvh;
  min-height: 280px;
  position: relative;
  overflow: hidden;
  background: var(--surface);
}
.track-map__canvas { position: absolute; inset: 0; }

.track-sheet {
  flex: 1;
  background: var(--card);
  border-radius: 28px 28px 0 0;
  margin-top: -22px;
  padding: 12px 20px calc(20px + var(--safe-bot));
  position: relative;
  z-index: 4;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.06);
}
.track-sheet__handle {
  width: 40px; height: 4px;
  border-radius: 100px;
  background: var(--border);
  margin: 4px auto 18px;
}

.track-eta {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 22px;
}
.track-eta__num {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}
.track-eta__label {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-2);
}
.track-eta__label small {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
  margin-top: 2px;
}

.track-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 22px;
  padding: 16px 16px 4px;
  background: var(--bg);
  border-radius: 14px;
}
.track-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  padding-bottom: 18px;
}
.track-step:last-child { padding-bottom: 0; }
.track-step::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 13px;
  width: 2px;
  bottom: 0;
  background: var(--border);
}
.track-step:last-child::before { display: none; }
.track-step__dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-3);
  display: grid; place-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: all 0.32s var(--e-spring);
  border: 3px solid var(--bg);
}
.track-step.done .track-step__dot {
  background: var(--success);
  color: #fff;
}
.track-step.active .track-step__dot {
  background: var(--success);
  color: #fff;
  animation: stepPulse 1.6s ease-out infinite;
}
@keyframes stepPulse {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0.6); }
  70%  { box-shadow: 0 0 0 12px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}
.track-step.done + .track-step::before { background: var(--success); }
.track-step__body { padding-top: 2px; flex: 1; }
.track-step__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: -0.01em;
}
.track-step.active .track-step__label,
.track-step.done .track-step__label { color: var(--text); }
.track-step.active .track-step__label { color: var(--success); }
.track-step__time {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
  margin-top: 2px;
}

.track-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  background: var(--bg);
  border-radius: 14px;
  margin-bottom: 16px;
}
/* Tu pedido — items detallados arriba del bloque info, estilo Rappi */
.track-items {
  padding: 14px 16px 12px;
  background: var(--bg);
  border-radius: 14px;
  margin-bottom: 12px;
}
.track-items__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}
.track-items__title { font-weight: 800; font-size: 15px; }
.track-items__count {
  font-size: 12px; color: var(--muted);
  background: var(--card);
  padding: 3px 8px; border-radius: 999px;
  font-weight: 600;
}
.track-items__list {
  display: flex; flex-direction: column; gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border, rgba(0,0,0,.06));
}
.track-items__row {
  display: flex; align-items: flex-start; gap: 10px;
}
.track-items__qty {
  font-weight: 800; color: var(--accent, #1A5DB5);
  min-width: 26px; font-size: 14px;
}
.track-items__body { flex: 1; min-width: 0; }
.track-items__name { font-weight: 600; font-size: 14px; line-height: 1.3; }
.track-items__mods {
  font-size: 12px; color: var(--muted); margin-top: 2px;
  line-height: 1.35;
}
.track-items__price {
  font-weight: 700; font-size: 13px;
  white-space: nowrap;
}
.track-items__total {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px;
  font-weight: 700; font-size: 14px;
}
.track-items__total b { font-size: 16px; }
.track-info__row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.track-info__icon {
  width: 36px; height: 36px;
  border-radius: 12px;
  background: var(--card);
  display: grid; place-items: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: var(--sh-soft);
}
.track-info__row > div:nth-child(2) { flex: 1; min-width: 0; }
.track-info__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
}
.track-info__value {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-info__call {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: transform 0.18s var(--e-spring);
}
.track-info__call:active { transform: scale(0.88); }

.track-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.track-actions .btn-secondary { margin: 0; }

/* ============================================================
   SCREEN: PEDIDOS
   ============================================================ */
.screen--orders {
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
  padding-bottom: calc(var(--bottomnav-h) + var(--safe-bot) + var(--bottomnav-aire) + 32px);
}
.orders-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(var(--safe-top) + 18px) 16px 12px;
}
.orders-header__title { flex: 1; min-width: 0; }
.orders-header__title h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.orders-header__title span {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
}

.orders-body {
  padding: 4px 16px 0;
}
.orders-active {
  margin-bottom: 22px;
}
.orders-active__head, .orders-history__head {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  padding-left: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.orders-active__head::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: dotPulse 1.6s ease-out infinite;
}

/* Card activa GRANDE estilo banner */
.order-active-big {
  background: linear-gradient(135deg, var(--success) 0%, #14B981 100%);
  border-radius: 20px;
  padding: 18px;
  color: #fff;
  margin-bottom: 14px;
  box-shadow: 0 16px 32px rgba(16,185,129,0.28);
  position: relative;
  overflow: hidden;
  animation: orderPulse 2.4s ease-in-out infinite;
}
.order-active-big::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 90% -20%, rgba(255,255,255,0.18), transparent 50%),
    radial-gradient(circle at 10% 110%, rgba(0,0,0,0.12), transparent 50%);
  pointer-events: none;
}
.order-active-big__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.order-active-big__icon {
  font-size: 38px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.22));
  animation: rideShake 1.6s ease-in-out infinite;
}
.order-active-big__status {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  opacity: 0.92;
  margin-bottom: 2px;
}
.order-active-big__eta {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}
.order-active-big__eta small {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.86;
  margin-left: 4px;
}

.order-active-big__progress {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 14px 0 16px;
  position: relative;
  z-index: 1;
}
.order-active-big__step {
  flex: 1;
  height: 4px;
  border-radius: 100px;
  background: rgba(255,255,255,0.24);
  position: relative;
}
.order-active-big__step.done {
  background: rgba(255,255,255,0.95);
}
.order-active-big__step.active {
  background: rgba(255,255,255,0.95);
  animation: stepActive 1.6s ease-in-out infinite;
}
@keyframes stepActive {
  0%,100% { opacity: 1; }
  50%     { opacity: 0.55; }
}
.order-active-big__steps-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.85;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.order-active-big__items {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  opacity: 0.92;
  position: relative;
  z-index: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.order-active-big__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  opacity: 0.86;
  font-weight: 500;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.order-active-big__meta b { font-weight: 800; opacity: 1; }

.order-active-big__cta {
  width: 100%;
  background: rgba(255,255,255,0.95);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  z-index: 1;
  transition: transform 0.18s var(--e-spring);
}
.order-active-big__cta:active { transform: scale(0.97); }

.order-card {
  background: var(--card);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--sh-soft);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  transition: transform 0.22s var(--e-spring), box-shadow 0.22s var(--e-out);
  position: relative;
}
.order-card:active { transform: scale(0.99); box-shadow: var(--sh-card); }
.order-card__icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 26px;
  flex-shrink: 0;
}
.order-card__body { flex: 1; min-width: 0; }
/* Estrellas de "ya calificaste" (recibo + lista de pedidos) */
.star-inline { color: var(--border); font-size: 13px; letter-spacing: 1px; }
.star-inline.on { color: #f5b301; }
.order-card__stars { margin-left: auto; display: inline-flex; }
.order-card__stars .star-inline { font-size: 12px; }
.receipt-rated-stars { display: inline-flex; font-size: 15px; letter-spacing: 1.5px; }
.receipt-foot .btn-secondary.is-rated { color: var(--text); background: var(--surface); }
.order-card__top {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 3px;
}
.order-card__pill {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.order-card__pill--active { background: var(--success); color: #fff; }
.order-card__pill--done { background: var(--surface); color: var(--text-2); }
.order-card__pill--cancel { background: rgba(239,68,68,0.12); color: var(--danger); }
.order-card__num { font-size: 11px; font-weight: 800; color: var(--brand-blue, #1A5DB5); }
.order-card__date {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 600;
}
.order-card__items {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.order-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-2);
}
.order-card__meta b { color: var(--text); font-weight: 800; font-size: 13px; }

.orders-empty {
  padding: 80px 24px 40px;
  text-align: center;
}
.orders-empty__icon {
  font-size: 64px;
  margin-bottom: 14px;
  opacity: 0.6;
}
.orders-empty__title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.orders-empty__sub {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 20px;
}
.orders-empty .btn-primary { display: inline-flex; }

/* Bottom nav badge for active orders */
.nav-item__badge {
  position: absolute;
  /* En la esquina del icono, que va centrado en la isla (baja 8.5). */
  top: 14px; right: calc(50% - 18px);
  min-width: 8px; height: 8px;
  border-radius: 8px;
  background: var(--success);
  border: 2px solid var(--card);
  animation: dotPulse 1.6s ease-out infinite;
}

/* ============================================================
   SCREEN: MENU (catalogo completo)
   ============================================================ */
.screen--menu {
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
  padding-bottom: calc(var(--bottomnav-h) + var(--safe-bot) + 80px);
  position: relative;
}

/* Botones flotantes sobre la foto del hero (estilo Rappi) */
.menu-floating-actions {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(var(--safe-top) + 10px) 12px 10px;
  pointer-events: none; /* solo los botones reciben eventos */
  transition: background 0.22s ease, backdrop-filter 0.22s ease, box-shadow 0.22s ease;
}
.menu-floating-actions.is-stuck {
  background: var(--bg);
  box-shadow: 0 1px 0 var(--border);
}
/* 🧨 Aqui la barra pintaba SU PROPIA copia de la foto. Eran dos fotos: la de
   verdad se iba con el scroll y esta se encendia de golpe mucho despues.
   Ahora la portada de verdad esta pegada JUSTO DETRAS (.store-cover, z-index
   29), asi que aqui solo va el velo que hace legible el nombre. Tampoco crece
   6px: crecer movia la barra y desajustaba el sidebar y los tabs, que se
   pegan contra su alto. */
.menu-floating-actions.is-stuck.has-cover {
  background: linear-gradient(rgba(16,24,34,0.58), rgba(16,24,34,0.58));
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}
/* El fondo de la propia barra ya cubre el notch, asi que el parche solido sobra
   (si no, se veria una franja plana encima de la foto). */
.menu-floating-actions.is-stuck.has-cover::before { background: transparent; }
.menu-floating-actions.is-stuck.has-cover .menu-fab-title {
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.45);
}
/* Pseudo-element extra para cubrir la zona del notch/Dynamic Island con fondo
   solido cuando el header esta stuck. Asi el contenido scrolleando atras no
   se cuela bajo la barra de estatus de iOS. */
.menu-floating-actions.is-stuck::before {
  content: '';
  position: absolute;
  top: -1px; /* sobrepasa cualquier subpixel gap */
  left: 0; right: 0;
  height: var(--safe-top);
  background: var(--bg);
  z-index: -1;
}
.menu-fab-btn {
  pointer-events: auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.96);
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: transform 0.18s var(--e-spring);
}
.menu-fab-btn:active { transform: scale(0.92); }
.menu-fab-title {
  flex: 1;
  min-width: 0;
  pointer-events: none;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.menu-floating-actions.is-stuck .menu-fab-title {
  opacity: 1;
  transform: translateY(0);
}

/* Banner promo agresivo del día (estilo Rappi "Hasta 33% OFF imperdible") */
.menu-promo-banner[hidden] { display: none !important; }
.menu-promo-banner {
  margin: 0 16px 12px;
  padding: 12px 15px;
  background: #FFF1A8;
  border-radius: 14px;
  cursor: pointer;
  border: 0;
  text-align: left;
  font-family: inherit;
  width: calc(100% - 32px);
  display: block;
  transition: transform 0.18s var(--e-spring);
}
.menu-promo-banner:active { transform: scale(0.99); }

/* ===== Lealtad "Pide y gana gratis" (tarjeta de sellos) ===== */
.loyalty-card {
  margin: 0 16px 12px;
  background: linear-gradient(135deg, #fff5f6, #ffe6ea);
  border-radius: 18px;
  padding: 12px 14px 12px;
  cursor: pointer;
  transition: transform 0.18s var(--e-spring);
}
.loyalty-card:active { transform: scale(0.985); }
/* Los iconos van pegados al texto como si fueran una letra mas. */
.loyalty-card .ico, .loyalty-pop__brand .ico, .loyalty-card__badge .ico, .loyalty-pop__count .ico,
.prof-plan__title .ico {
  vertical-align: -3px;
  flex-shrink: 0;
}
/* La corona se queda dorada: es el unico color de la tarjeta que dice "premio". */
.ico--corona { color: #E8A33D; }
.loyalty-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.loyalty-card__title { font-weight: 700; font-size: 15px; color: var(--text); line-height: 1.3; }
.loyalty-card__tc { background: none; border: 0; color: #2563eb; font-weight: 700; font-size: 13px; text-decoration: underline; cursor: pointer; padding: 0; font-family: inherit; }
.loyalty-card__sub { font-size: 13px; color: var(--text-2); margin-top: 3px; }
.loyalty-card__sub b { color: var(--text); }
.loyalty-card__badge { flex-shrink: 0; background: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: 14px; display: flex; align-items: center; gap: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.06); white-space: nowrap; }
.loyalty-card__dots, .loyalty-pop__dots { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
.loyalty-card__dots::-webkit-scrollbar, .loyalty-pop__dots::-webkit-scrollbar { display: none; }
.loyalty-dot { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; color: #d8b9be; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.loyalty-dot.is-done { background: #22c55e; color: #fff; box-shadow: 0 2px 8px rgba(34,197,94,.35); }
.loyalty-card__reward { margin-top: 12px; background: #fff; border: 1px dashed #22c55e; border-radius: 12px; padding: 10px 12px; font-size: 13px; font-weight: 600; color: #16803a; }
.loyalty-terms { font-size: 13.5px; line-height: 1.55; color: var(--text-2); white-space: pre-wrap; }
/* Pop-up celebratorio post-pedido */
.sheet--loyalty-pop .receipt-body { text-align: center; }
.loyalty-pop__brand { font-weight: 800; font-size: 20px; margin: 4px 0 16px; }
.loyalty-pop__title { font-weight: 800; font-size: 22px; line-height: 1.25; margin-bottom: 18px; }
.loyalty-pop__dots { justify-content: flex-start; margin-top: 0; padding: 4px 0 8px; }
.loyalty-pop__dots .loyalty-dot { width: 64px; height: 64px; font-size: 24px; }
.loyalty-pop__dots .loyalty-dot.is-new { box-shadow: 0 0 0 4px rgba(34,197,94,.25), 0 2px 10px rgba(34,197,94,.45); }
.loyalty-pop__note { font-size: 14px; color: var(--text-3); margin: 18px 0 14px; }
.loyalty-pop__remain { font-size: 15px; font-weight: 700; color: #16803a; }
/* Pop-up informativo (al tocar la tarjeta) — estilo Pro Rewards */
.sheet--loyalty-pop .receipt-body.is-info { text-align: left; }
.loyalty-pop__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 18px; }
.loyalty-pop__brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; }
.loyalty-pop__crown { font-size: 20px; }
.loyalty-pop__count { flex-shrink: 0; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 6px 13px; font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 5px; }
.loyalty-pop__desc { font-size: 15px; color: var(--text-2); line-height: 1.5; margin-bottom: 18px; }
.loyalty-pop__avg { font-size: 15px; color: var(--text-2); line-height: 1.5; margin-bottom: 18px; }
.loyalty-pop__avg b { color: var(--text); font-size: 22px; font-weight: 800; }
.loyalty-pop__tc { display: inline-block; background: none; border: 0; padding: 0; font-family: inherit; color: var(--text); font-weight: 700; font-size: 15px; text-decoration: underline; cursor: pointer; }
/* Sube al abrir y baja al cerrar, con el MISMO movimiento en ambos sentidos.
   Antes tenia una @keyframes de entrada que peleaba con la transicion del sheet:
   el cierre no acompanaba y se sentia un corte. Con transicion (no animacion) el
   gesto es simetrico y se ve el recorrido completo. */
.sheet--loyalty-pop {
  transition: transform 0.52s cubic-bezier(0.32, 0.72, 0, 1);
}
/* Tarjeta 100% independiente: cierra el circulo ABAJO igual que arriba y flota
   separada del borde, en vez de pegarse al fondo como una hoja.
   OJO: se usa `margin-bottom` y NO se tocan `bottom` ni `transform` — el
   mostrar/ocultar del sheet depende de ellos y al sobrescribirlos el pop-up se
   iba fuera de pantalla. La especificidad (.sheet.sheet--...) es para ganarle a
   `.sheet`, que esta mas abajo en el archivo. */
.sheet.sheet--loyalty-pop {
  --pop-gap: max(var(--safe-bot, 0px), 14px);
  width: calc(100% - 28px);
  max-width: 420px;
  margin-bottom: var(--pop-gap);
  /* Cerrada tiene que bajar TAMBIEN el margin-bottom. El `.sheet` base la
     esconde con translateY(100%), que la baja su propia altura — pero el
     margin ya la habia subido --pop-gap, asi que se quedaba asomando esos
     14px por encima del bottomnav: la "panzita" que se veia en el footer de
     todas las pantallas. */
  transform: translateX(-50%) translateY(calc(100% + var(--pop-gap)));
  border-radius: 24px;
  /* El chasis base reserva 88px abajo para el home indicator; en una tarjeta
     flotante eso deja un hueco enorme. */
  padding-bottom: 0;
  box-shadow: 0 18px 50px rgba(0,0,0,0.30);
}
.sheet.sheet--loyalty-pop.show { transform: translateX(-50%) translateY(0); }
.sheet.sheet--loyalty-pop .receipt-head { border-radius: 24px 24px 0 0; }
.sheet.sheet--loyalty-pop .receipt-foot {
  border-radius: 0 0 24px 24px;
  padding-bottom: 16px;
}
@media (prefers-reduced-motion: reduce) {
  .sheet--loyalty-pop { transition: transform 0.01s linear; }
}
.sheet--loyalty-pop.show .receipt-body { animation: loyaltyContentIn 0.44s 0.08s both cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes loyaltyContentIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.menu-promo-banner__title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 2px;
}
.menu-promo-banner__sub {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-2);
  line-height: 1.3;
  /* Una sola fila: si no cabe en pantallas muy angostas, corta con "…" en vez de saltar a 2 líneas */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tira angosta de promos activas (visible al entrar al menú) */
.menu-promo-strip[hidden] { display: none !important; }
.menu-promo-strip {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.menu-promo-strip::-webkit-scrollbar { display: none; }
.menu-promo-strip__item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 10px 8px;
  background: linear-gradient(135deg, #FF6B6B 0%, #F5A623 100%);
  color: #fff;
  border-radius: 100px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 14px rgba(245,166,35,0.32);
  cursor: pointer;
  transition: transform 0.18s var(--e-spring);
  white-space: nowrap;
}
.menu-promo-strip__item:active { transform: scale(0.97); }
.menu-promo-strip__tag {
  background: rgba(255,255,255,0.28);
  padding: 3px 8px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.menu-promo-strip__text { line-height: 1.1; }

.menu-tabs {
  position: sticky;
  top: calc(var(--safe-top) + 58px);
  z-index: 25;
  display: flex;
  gap: 8px;
  padding: 8px 16px 12px;
  overflow-x: auto;
  scrollbar-width: none;
  /* Background SOLIDO para evitar que las cards se vean atras al scrollear
     en iOS WebView (donde backdrop-filter no funciona confiablemente).
     Era rgba(255,255,255,0.94) con blur — visualmente bonito pero las cards
     se transparentaban en iPhone. Mejor 100% opaco. */
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  /* Sombra suave debajo para separar visualmente cuando esta stuck */
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.menu-tabs::-webkit-scrollbar { display: none; }
/* Tabs estilo Rappi: solo texto. La seleccionada va en negro con un subrayado
   que se DESLIZA de una a otra (la barra .menu-tabs__ink, movida por JS).
   Antes eran pildoras con fondo negro solido — mas pesadas visualmente. */
.menu-tab {
  flex: 0 0 auto;
  padding: 9px 2px;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-3);
  transition: color 0.22s var(--e-out);
  cursor: pointer;
  font-family: inherit;
}
.menu-tab + .menu-tab { margin-left: 14px; }
.menu-tab:active { transform: scale(0.96); }
.menu-tab.active { color: var(--text); }
.menu-tabs__ink {
  position: absolute;
  bottom: 0; left: 0;
  height: 2.5px;
  width: 0;
  background: var(--text);
  border-radius: 2px 2px 0 0;
  pointer-events: none;
  transform: translateX(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (prefers-reduced-motion: reduce) {
  .menu-tabs__ink { transition: none; }
}

.menu-body {
  padding: 8px 0 0;
}
.menu-section {
  padding: 0 16px;
  /* El titulo de una seccion tiene que leerse como el principio de algo, no
     como un renglon mas. Con 18px de aire quedaba pegado al precio del
     platillo anterior y las dos secciones se veian como una sola lista. */
  margin-top: 40px;
  scroll-margin-top: calc(var(--safe-top) + 124px);
}
.menu-section__title {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.03em;
  /* Se queda en 4: el hueco real hasta los platillos lo pone el margin-top de
     .menu-section__list, que COLAPSA con este y con el del subtitulo. Asi el
     espacio es el mismo tenga subtitulo o no, sin reglas condicionales. */
  margin-bottom: 4px;
}
.menu-section__sub {
  font-size: 12.5px;
  color: var(--text-2);
  font-weight: 500;
  margin-bottom: 12px;
}
/* Grid 2 cols estilo Rappi/Uber: foto grande arriba, "+" flotante encima */
.menu-section__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 14px;
  margin-top: 18px;
}
/* «Pedir de nuevo» dentro del menú: la fila trae su margen de 16 (es del
   inicio, que no tiene el de la sección). Aquí sale a la orilla para
   deslizarse de lado a lado, y su primera tarjeta arranca donde el título. */
.menu-section--reorder .reorder-row {
  margin: 18px -16px 0;
}
.menu-item {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  position: relative;
  transition: transform 0.22s var(--e-spring);
  display: flex;
  flex-direction: column;
}
.menu-item:active { transform: scale(0.97); }
.menu-item__thumb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 46px;
  position: relative;
  overflow: hidden;
  font-weight: 900;
  color: rgba(255,255,255,0.95);
  letter-spacing: -0.04em;
  margin-bottom: 14px;
  box-shadow: var(--sh-soft);
}
.menu-item__thumb::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.25), transparent 55%);
  z-index: 1;
  pointer-events: none;
}
.menu-item__body {
  display: flex;
  flex-direction: column;
  padding: 0;
  gap: 4px;
}
/* Como Rappi: primero el precio (lo que manda), abajo el nombre más ligero. */
.menu-item__name {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.menu-item__price {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.menu-item__price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.menu-item__price-row .menu-item__price-orig {
  font-size: 13px;
}
.menu-item__desc {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* "+" flotante verde sobre la foto (estilo Uber Eats) */
.menu-item__add {
  position: absolute;
  top: 8px; right: 8px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  display: grid; place-items: center;
  transition: all 0.22s var(--e-spring);
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  z-index: 3;
}
.menu-item__add:active { transform: scale(0.85); background: #0E9F71; }

/* Stepper inline cuando ya hay unidades en carrito (sin abrir sheet) */
.menu-item__stepper {
  position: absolute;
  top: 8px; right: 8px;
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--success);
  color: #fff;
  border-radius: 100px;
  padding: 3px;
  z-index: 3;
  box-shadow: 0 6px 14px rgba(16,185,129,0.45);
  animation: stepperIn 0.32s var(--e-spring);
}
@keyframes stepperIn {
  from { transform: scale(0.6); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.menu-item__step-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: #fff;
  display: grid; place-items: center;
  transition: transform 0.15s var(--e-spring), background 0.15s;
}
.menu-item__step-btn:active { transform: scale(0.85); background: rgba(255,255,255,0.35); }
.menu-item__step-num {
  min-width: 22px;
  text-align: center;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.01em;
}

/* Banner aderezos gratis en pantalla carrito */
/* Banner de promociones activas en el carrito (3x2, etc.) */
.cart-promo[hidden] { display: none !important; }
.cart-promo {
  margin: 14px 16px 0;
  padding: 14px;
  background: linear-gradient(135deg, #FFE9E9 0%, #FFE2C7 100%);
  border: 1.5px solid #F5A623;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.18s var(--e-spring);
  width: calc(100% - 32px);
  text-align: left;
  font-family: inherit;
}
.cart-promo:active { transform: scale(0.99); }
.cart-promo__icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, #FF6B6B, #F5A623);
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 22px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(245,166,35,0.32);
}
.cart-promo__body { flex: 1; min-width: 0; }
.cart-promo__title {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #B27200;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.cart-promo__sub {
  display: block;
  font-size: 12px;
  color: #8B5A00;
  margin-top: 2px;
  font-weight: 500;
}
.cart-promo__chev { color: #B27200; flex-shrink: 0; }
.cart-promo.satisfied {
  background: linear-gradient(135deg, #E8F8F0 0%, #D8F4E1 100%);
  border-color: var(--success);
}
.cart-promo.satisfied .cart-promo__title { color: var(--success); }
.cart-promo.satisfied .cart-promo__sub { color: #14794F; }
.cart-promo.satisfied .cart-promo__chev { color: var(--success); }
.cart-promo.satisfied .cart-promo__icon {
  background: linear-gradient(135deg, var(--success), #14B981);
  box-shadow: 0 4px 10px rgba(16,185,129,0.32);
}

/* Avisos de las promos del pedido en el carrito: "Te faltan $X para envío
   gratis" (con su barrita de avance) y "Agrega tu … gratis" con su botón.
   Márgenes en vez de `gap`: el WebView viejo de Android no entiende gap en
   flex y los pegaba. */
.cart-avisos-promo[hidden] { display: none !important; }
.cart-avisos-promo { margin: 12px 16px 14px; }
.cart-aviso-promo {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0 0 8px;
  padding: 12px 14px;
  background: #FFF8E1;
  border: 1.5px solid #F5C451;
  border-radius: 14px;
  text-align: left;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.18s var(--e-spring);
}
.cart-aviso-promo:last-child { margin-bottom: 0; }
.cart-aviso-promo:active { transform: scale(0.99); }
.cart-aviso-promo__icon {
  width: 36px; height: 36px;
  margin-right: 12px;
  flex-shrink: 0;
  border-radius: 10px;
  display: grid; place-items: center;
  background: #F5A623;
  color: #fff;
}
.cart-aviso-promo__body { flex: 1; min-width: 0; display: block; }
.cart-aviso-promo__title {
  display: block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: #8B5A00;
}
.cart-aviso-promo__sub {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
}
.cart-aviso-promo__barra {
  display: block;
  height: 6px;
  margin-top: 7px;
  border-radius: 3px;
  background: rgba(245, 166, 35, 0.22);
  overflow: hidden;
}
.cart-aviso-promo__barra i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: #F5A623;
}
.cart-aviso-promo--regalo {
  background: #E8F8F0;
  border-color: var(--success);
  cursor: default;
}
.cart-aviso-promo--regalo:active { transform: none; }
.cart-aviso-promo--regalo .cart-aviso-promo__icon { background: var(--success); }
.cart-aviso-promo--regalo .cart-aviso-promo__title { color: #0E6B47; }
.cart-aviso-promo__btn {
  flex-shrink: 0;
  margin-left: 10px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--success);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.cart-aviso-promo__btn:active { transform: scale(0.97); }

/* El renglón regalado por una promo: "Gratis" junto al nombre (el precio ya
   sale tachado). */
.cart-item__gratis {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #E8F8F0;
  color: #0E6B47;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  vertical-align: 1px;
  text-transform: uppercase;
}

/* Envío gratis por promo en el resumen del checkout: el precio tachado y
   "Gratis" en verde. */
#coShip .co-envio-orig {
  font-weight: 500;
  opacity: 0.55;
  margin-right: 4px;
  text-decoration: line-through;
}
#coShip .co-envio-gratis { color: var(--success); font-weight: 800; }

/* Un letrero de promo del PEDIDO (envío gratis, % en tu pedido) no lleva a
   ninguna sección: no parece botón. */
.menu-promo-banner--sin-destino { cursor: default; }
.menu-promo-banner--sin-destino:active { transform: none; }

/* Picker de aderezos gratis (compacto, colapsable) */
.cart-free-picker[hidden] { display: none !important; }
.cart-free-picker {
  margin: 12px 16px 0;
  background: var(--card);
  border: 0;
  border-radius: 14px;
  box-shadow: var(--sh-soft);
  overflow: hidden;
}
.cart-free-picker__head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--text);
}
.cart-free-picker__head:active { background: rgba(0,0,0,0.03); }
.cart-free-picker__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #E8F8F0 0%, #D8F4E1 100%);
}
.cart-free-picker__head-text {
  flex: 1;
  min-width: 0;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.cart-free-picker__head strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.cart-free-picker__head small {
  display: block;
  font-size: 11px;
  color: var(--success);
  font-weight: 700;
}
.cart-free-picker__chev {
  flex-shrink: 0;
  color: var(--text-2);
  transition: transform 0.22s var(--e-spring);
}
.cart-free-picker__head[aria-expanded="true"] .cart-free-picker__chev { transform: rotate(180deg); }
.cart-free-picker__options[hidden] { display: none !important; }
.cart-free-picker__options {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 10px 10px;
}
.cart-free-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  background: var(--card, #fff);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.15s, opacity 0.15s;
}
.cart-free-opt.has-qty {
  border-color: var(--success);
  background: rgba(16,185,129,0.05);
}
.cart-free-opt.is-disabled { opacity: 0.5; }
.cart-free-opt__thumb {
  width: 24px; height: 24px;
  border-radius: 6px;
  display: grid; place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  flex-shrink: 0;
}
.cart-free-opt__name {
  flex: 1;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}
.cart-free-opt__qty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 12.5px;
  color: var(--text);
}
.cart-free-opt__btn {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.cart-free-opt__btn.add {
  background: var(--success);
  color: #fff;
  box-shadow: 0 2px 5px rgba(16,185,129,0.28);
}
.cart-free-opt__btn:disabled { opacity: 0.32; cursor: not-allowed; box-shadow: none; }

/* Botón "+ Agregar más" en carrito (estilo Uber Eats) — regresa al menú */
.cart-add-more[hidden] { display: none !important; }
/* Agregar a la izquierda, vaciar a la derecha. */
.cart-acciones {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 16px 0;
}
.cart-acciones .cart-add-more { margin: 0; }
/* Vaciar el carrito es destructivo pero NO es lo que la gente viene a hacer:
   en texto y en gris se encuentra cuando se busca, y no se pica sin querer. */
.cart-vaciar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  background: none;
  border: 0;
  color: var(--text-3);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.cart-vaciar:active { color: var(--danger); }
.cart-vaciar[hidden] { display: none; }
.cart-add-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 16px 16px 0;
  padding: 9px 16px 9px 12px;
  background: var(--card, #fff);
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.15s var(--e-spring), border-color 0.15s, background 0.15s;
}
.cart-add-more:hover { border-color: var(--text-3); background: var(--bg); }
.cart-add-more:active { transform: scale(0.97); }

/* Upsell horizontal en el carrito (postres / extras sugeridos) */
.cart-upsell {
  margin: 14px 0 0;
  padding: 12px 0 12px 16px;
  background: var(--card);
}
.cart-upsell[hidden] { display: none !important; }
.cart-upsell__head {
  padding-right: 16px;
  margin-bottom: 10px;
}
.cart-upsell__title {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}
.cart-upsell__row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-right: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cart-upsell__row::-webkit-scrollbar { display: none; }
.cart-upsell-card {
  flex: 0 0 116px;
  scroll-snap-align: start;
  background: var(--surface);
  border-radius: 12px;
  border: 1.5px solid var(--border);
  padding: 6px 6px 8px;
  text-align: left;
  position: relative;
  cursor: pointer;
  transition: transform 0.18s var(--e-spring), border-color 0.18s;
  font-family: inherit;
}
.cart-upsell-card:active { transform: scale(0.97); border-color: var(--brand-blue); }
.cart-upsell-card__thumb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 9px;
  overflow: hidden;
  background: var(--card);
  display: grid; place-items: center;
  margin-bottom: 6px;
}
.cart-upsell-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-upsell-card__letter {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
}
.cart-upsell-card__name {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 2px;
}
.cart-upsell-card__price {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--brand-blue);
}
.cart-upsell-card__plus {
  position: absolute;
  top: 8px; right: 8px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--text);
  color: var(--card);
  display: grid; place-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* Instrucciones del pedido (en el carrito, colapsable) */
.cart-notes {
  margin: 14px 16px 0;
  padding: 12px 14px;
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--sh-soft);
  transition: padding 0.22s var(--e-out);
}
.cart-notes:not(.is-open) { padding: 10px 14px; }
.cart-notes[hidden] { display: none !important; }
.cart-notes__head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 0;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.cart-notes.is-open .cart-notes__head { margin-bottom: 12px; }
.cart-notes__icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  color: var(--text);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.cart-notes__icon svg { width: 22px; height: 22px; }
.cart-notes__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.cart-notes__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.cart-notes__sub {
  font-size: 11.5px;
  color: var(--text-3);
  line-height: 1.3;
}
.cart-notes__chev {
  color: var(--text-3);
  flex-shrink: 0;
  transition: transform 0.22s var(--e-spring);
}
.cart-notes.is-open .cart-notes__chev { transform: rotate(180deg); }
.cart-notes__input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--text);
  background: var(--surface);
  resize: none;
  outline: none;
  transition: border-color 0.18s;
}
.cart-notes__input:focus { border-color: var(--brand-blue); }
.cart-notes__input[hidden] { display: none !important; }

/* Notas para el repartidor (en checkout, solo domicilio) — mismo patron que cart-notes */
.co-deliv-notes {
  margin-bottom: 12px;
  padding: 10px 14px;
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--sh-soft);
  transition: padding 0.22s var(--e-out);
}
.co-deliv-notes.is-open { padding: 12px 14px; }
.co-deliv-notes[hidden] { display: none !important; }
.co-deliv-notes__head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 0;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.co-deliv-notes.is-open .co-deliv-notes__head { margin-bottom: 12px; }
.co-deliv-notes__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.co-deliv-notes__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.co-deliv-notes__sub {
  font-size: 11.5px;
  color: var(--text-3);
  line-height: 1.3;
}
/* Con notas guardadas, se leen abajo del título (hasta 2 renglones). */
.co-deliv-notes.tiene-notas .co-deliv-notes__sub {
  font-size: 13px;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* La hoja de las notas: el campo, la ayuda y cuántas letras lleva. */
.notas-input {
  width: 100%;
  min-height: 110px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  color: var(--text);
  resize: none;
}
.notas-input:focus { outline: none; border-color: var(--brand-blue); background: var(--card); }
.notas-pie {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--text-3);
}
.co-deliv-notes__chev {
  color: var(--text-3);
  flex-shrink: 0;
  transition: transform 0.22s var(--e-spring);
}
.co-deliv-notes.is-open .co-deliv-notes__chev { transform: rotate(180deg); }
.co-deliv-notes__input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--text);
  background: var(--surface);
  resize: none;
  outline: none;
  transition: border-color 0.18s;
}
.co-deliv-notes__input:focus { border-color: var(--brand-blue); }
.co-deliv-notes__input[hidden] { display: none !important; }

.cart-free[hidden] { display: none !important; }
.cart-free {
  margin: 14px 16px 0;
  padding: 14px;
  background: linear-gradient(135deg, #FFF1E5 0%, #FFE2C7 100%);
  border: 1.5px solid #F5A623;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.18s var(--e-spring);
}
.cart-free:active { transform: scale(0.99); }
.cart-free__icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #F5A623, #FF7A1A);
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(245,166,35,0.3);
  animation: rideShake 1.6s ease-in-out infinite;
}
.cart-free__body { flex: 1; min-width: 0; }
.cart-free__title {
  font-size: 14px;
  font-weight: 800;
  color: #B27200;
  margin-bottom: 2px;
}
.cart-free__sub {
  font-size: 12.5px;
  color: var(--text-2);
}
.cart-free__chev { color: #B27200; flex-shrink: 0; }
.cart-free.satisfied {
  background: linear-gradient(135deg, #E8FBF1 0%, #C8F4DD 100%);
  border-color: var(--success);
}
.cart-free.satisfied .cart-free__title { color: var(--success); }
.cart-free.satisfied .cart-free__icon { background: linear-gradient(135deg, var(--success), #14B981); animation: none; }
.cart-free.satisfied .cart-free__chev { color: var(--success); }

/* row antiguo ya no se usa - row vacio */
.menu-item__row { display: contents; }

.menu-item__badge {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--action);
  color: #fff;
  padding: 4px 9px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  z-index: 3;
  box-shadow: 0 4px 10px rgba(255,77,77,0.4);
}
.menu-item__promo {
  position: absolute;
  top: 8px; left: 8px;
  background: linear-gradient(135deg, #FF6B6B 0%, #F5A623 100%);
  color: #fff;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  z-index: 4;
  box-shadow: 0 4px 12px rgba(245,166,35,0.42);
  text-transform: uppercase;
  animation: promoBadgeIn 0.4s var(--e-spring);
}
/* Si el producto ya tiene badge propio (Limitado, Premium, etc.), el promo se desplaza abajo para no encimarse */
.menu-item__badge ~ .menu-item__promo { top: 36px; }
@keyframes promoBadgeIn {
  from { transform: scale(0.7); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* ============================================================
   SCREEN: PROFILE
   ============================================================ */
.screen--profile {
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
  padding-bottom: calc(var(--bottomnav-h) + var(--safe-bot) + var(--bottomnav-aire) + 32px);
}
.prof-body { padding: calc(var(--safe-top) + 18px) 20px 0; }

/* ── Identidad ────────────────────────────────────────────── */
.prof-id { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.prof-id__avatar {
  width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface);
  color: var(--text-2);
  font-size: 20px; font-weight: 800; letter-spacing: .5px;
  flex-shrink: 0;
}
.prof-id__body { min-width: 0; }
.prof-id__name {
  font-size: 21px; font-weight: 800; letter-spacing: -0.4px;
  color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.prof-id__edit {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 2px; padding: 0;
  font-size: 14.5px; font-weight: 500; color: var(--text-2);
}
.prof-id__edit:active { opacity: .55; }

/* ── Tarjeta del programa (Mega Rewards) ──────────────────── */
.prof-plan {
  display: block; width: 100%; text-align: left;
  border: 1.5px solid var(--brand-yellow);
  border-radius: 16px;
  padding: 14px 16px 16px;
  margin-bottom: 22px;
  background: var(--card);
  transition: transform .18s var(--e-out);
}
/* `display:block` de arriba le GANA al `display:none` que el navegador aplica
   por el atributo `hidden` → sin esto la tarjeta se veia igual, vacia y sin
   sellos, en tiendas sin lealtad o sin sesion. */
.prof-plan[hidden] { display: none; }
.prof-plan:active { transform: scale(0.985); }
.prof-plan__eyebrow { font-size: 13px; color: var(--text-3); margin-bottom: 2px; }
.prof-plan__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.prof-plan__title { font-size: 19px; font-weight: 800; letter-spacing: -0.3px; color: var(--text); }
.prof-plan__chev { color: var(--text-3); flex-shrink: 0; }
.prof-plan__sub { font-size: 14px; color: var(--text-2); line-height: 1.45; margin-top: 6px; }
/* Los sellos aqui son un resumen, no la tarjeta completa: mas chicos que en el
   home para que no le roben el protagonismo al resto del perfil. */
.prof-plan__dots { display: flex; gap: 7px; margin-top: 12px; }
.prof-plan__dots .loyalty-dot { width: 30px; height: 30px; font-size: 12px; }

/* ── Accesos rapidos ──────────────────────────────────────── */
.prof-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 30px; }
.prof-quick__tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px;
  padding: 18px 6px;
  background: var(--card);
  border-radius: 16px;
  color: var(--text);
  transition: transform .18s var(--e-out);
}
.prof-quick__tile:active { transform: scale(0.95); }
.prof-quick__tile span { font-size: 13px; font-weight: 600; color: var(--text-2); }

/* ── Bloques con titulo ───────────────────────────────────── */
.prof-block { margin-bottom: 30px; }
.prof-block__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.prof-block__title { font-size: 21px; font-weight: 800; letter-spacing: -0.4px; color: var(--text); margin-bottom: 6px; }
.prof-block__head .prof-block__title { margin-bottom: 0; }
.prof-seeall {
  flex-shrink: 0;
  background: var(--surface);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14px; font-weight: 700; color: var(--text);
}
.prof-seeall:active { opacity: .6; }

/* ── Renglones ────────────────────────────────────────────── */
/* Sin tarjeta ni fondo: linea divisoria y ya, como Rappi. Los iconos son de
   TRAZO en el color del texto — nada de mosaicos de colores, que era justo lo
   que hacia ver el perfil viejo como otra app. */
.prof-rows { display: flex; flex-direction: column; }
.prof-row {
  display: flex; align-items: center; gap: 14px;
  width: 100%; text-align: left;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.prof-row:last-child { border-bottom: none; }
.prof-row:active { opacity: .5; }
.prof-row__ic { flex-shrink: 0; display: grid; place-items: center; color: var(--text); }
.prof-row__label { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.1px; }
.prof-row__val { flex-shrink: 0; font-size: 15px; font-weight: 600; color: var(--text-3); }
.prof-row__chev { color: var(--text-3); flex-shrink: 0; }

/* Renglon de pedido (Ultimos pedidos): logo redondo + nombre + estado */
.prof-order { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 15px 0; color: var(--text); }
.prof-order:active { opacity: .5; }
.prof-order__logo {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: var(--surface) center/cover no-repeat;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 800; color: var(--text-2);
  overflow: hidden;
}
/* Los hijos son <span>: sin esto el nombre y el estado se pegan en un solo
   renglon ("Vasconcelos Entregado · 18 de julio"). */
.prof-order__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.prof-order__name { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prof-order__sub { font-size: 14px; color: var(--text-3); margin-top: 1px; }

/* ── Toggle ───────────────────────────────────────────────── */
.prof-toggle {
  width: 44px; height: 26px; border-radius: 999px;
  background: var(--border); position: relative; flex-shrink: 0;
  transition: background .22s var(--e-out);
}
.prof-toggle::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform .22s var(--e-out);
}
.prof-toggle.on { background: var(--success); }
.prof-toggle.on::after { transform: translateX(18px); }

/* ── Salir ────────────────────────────────────────────────── */
.prof-logout {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 15px;
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--card);
  font-size: 15.5px; font-weight: 700; color: var(--danger);
}
.prof-logout:active { background: var(--action-soft); border-color: var(--danger); }

.prof-foot {
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 18px;
  padding-bottom: 8px;
}
.prof-foot span { color: var(--text-2); font-weight: 700; }

@supports (color: color-mix(in srgb, red 50%, blue)) {
  :root { --texto-sec: color-mix(in srgb, var(--text-2) 50%, var(--text)); }
}

/* ============================================================
   SCREEN: ADDRESSES (como la de Rappi)
   ============================================================
   Medida contra la captura de Rappi que mandó Federico (16-oct-2026): X
   redonda gris y título a la izquierda, títulos de sección grandes,
   tarjetas con borde fino (no sombra), la activa con borde grueso oscuro, y
   el botón de la marca fijo abajo. */
.screen--addr {
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 100dvh;
  /* Blanco, como Rappi: tarjetas blancas con borde gris sobre blanco. */
  background: var(--card);
  padding-bottom: calc(96px + var(--safe-bot));
  position: relative;
}

.addr-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--card);
  padding: calc(var(--safe-top) + 18px) 20px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
}
/* El título del encabezado de Rappi es semibold y más chico que los de
   sección (18 contra 22). */
.addr-header__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}
/* La X redonda gris de Rappi (y la flecha de "Agregar dirección", que es el
   mismo botón con otra cara). Se ve de 28 y toca de 44: el ::before
   agranda el área sin agrandar el círculo. */
.addr-x,
.addr-new-x {
  position: relative;
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface);
  color: var(--text);
  transition: transform 0.18s var(--e-spring), background 0.18s var(--e-smooth);
}
.addr-x::before,
.addr-new-x::before { content: ''; position: absolute; inset: -8px; }
.addr-x:active,
.addr-new-x:active { transform: scale(0.9); }

.addr-search {
  margin: 8px 16px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--sh-soft);
}
.addr-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--text);
}
.addr-search input::placeholder { color: var(--text-3); }

.addr-section-head {
  margin: 24px 0 16px;
  padding: 0 20px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
}
.addr-frequent + .addr-section-head { margin-top: 30px; }

/* Empty state cuando ADDRESSES esta vacio */
.addr-empty {
  text-align: center;
  padding: 40px 20px 20px;
}
.addr-empty__icon {
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface);
  color: var(--text-2);
}
.addr-empty__icon svg { width: 28px; height: 28px; }
.addr-empty__title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.addr-empty__sub {
  font-size: 13.5px;
  color: var(--text-2);
  margin-bottom: 20px;
  line-height: 1.4;
}

/* Frecuentes: tarjetas angostas de lado (como Rappi, se asoma la tercera
   para que se note que hay más). */
.addr-frequent {
  display: flex;
  gap: 8px;
  padding: 0 16px 4px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  scroll-padding-left: 16px;
}
.addr-frequent::-webkit-scrollbar { display: none; }
.addr-freq-card {
  flex: 0 0 136px;
  /* min-width: 0 es CRITICO: sin esto, los flex items usan min-width:auto
     (= min-content del contenido). Como .addr-freq-card__line tiene
     white-space:nowrap y direcciones largas, el min-content era el ancho
     del texto entero (~500px), anulando el flex-basis y haciendo que la
     card creciera fuera del viewport. Con min-width:0 el flex-basis manda y
     el ellipsis del __line si funciona. */
  min-width: 0;
  max-width: 136px;
  scroll-snap-align: start;
  background: var(--card);
  border-radius: 14px;
  padding: 6px 16px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  text-align: left;
  font-family: inherit;
  color: var(--text);
  transition: transform 0.22s var(--e-spring);
}
.addr-freq-card:active { transform: scale(0.97); }
.addr-freq-card__label {
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.addr-freq-card__line {
  font-size: 13px;
  color: var(--texto-sec);
  line-height: 17px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Guardadas: nombre en negritas, dirección en gris (2 renglones) y el
   "•••" a la derecha. Las letras de Rappi, medidas con la misma palabra en
   las dos capturas: el nombre en ~15 y el gris en ~13. */
.addr-list {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.addr-card {
  display: flex;
  align-items: center;
  gap: 4px;
  /* Sin alto mínimo: lo da el texto (Rappi: 68 con dos renglones, 50 con
     uno). El "•••" toca de 44 aunque la tarjeta mida menos de 56. */
  padding: 7px 4px 7px 18px;
  background: var(--card);
  border-radius: 14px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.22s var(--e-spring), border-color 0.18s var(--e-smooth), box-shadow 0.18s var(--e-smooth);
}
.addr-card:active { transform: scale(0.99); }
/* La activa: borde grueso oscuro. El grosor extra va en la sombra (sin
   correr el texto 1.5 px al elegirla). */
.addr-card.selected {
  border-color: var(--text);
  box-shadow: 0 0 0 1.5px var(--text);
}
.addr-card:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 3px; }
.addr-card__body { flex: 1; min-width: 0; }
.addr-card__label {
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.addr-card__line {
  font-size: 13px;
  color: var(--texto-sec);
  line-height: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.addr-card__mas {
  flex-shrink: 0;
  width: 44px; height: 44px;
  /* Toca de 44 sin empujar el alto de la tarjeta. */
  margin: -4px 0;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text);
  transition: transform 0.18s var(--e-spring), background 0.18s var(--e-smooth);
}
.addr-card__mas:active { transform: scale(0.88); background: var(--surface); }

.addr-store-link {
  margin: 26px 16px 0;
  padding: 14px 16px;
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--sh-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  width: calc(100% - 32px);
  border: 1.5px dashed var(--brand-blue);
  background: transparent;
  color: var(--brand-blue);
  transition: all 0.22s var(--e-spring);
}
.addr-store-link:active { transform: scale(0.98); background: rgba(26,93,181,0.06); }
.addr-store-link svg:last-child { margin-left: auto; }

/* El botón de abajo: de la marca (era el verde de "éxito"), sin sombra como
   el de Rappi, sobre un desvanecido para que la lista pase por debajo. */
.addr-fab {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  z-index: 30;
  padding: 14px 20px calc(8px + var(--safe-bot));
  background: linear-gradient(to top, var(--card) 60%, rgba(255,255,255,0));
  background: linear-gradient(to top, var(--card) 60%, color-mix(in srgb, var(--card) 0%, transparent));
  display: flex;
  justify-content: center;
}
.addr-fab .btn-primary {
  width: 100%;
  max-width: calc(var(--max-w) - 40px);
  min-height: 50px;
  padding: 0 22px;
  font-size: 17px;
  font-weight: 600;
  box-shadow: none;
}

/* ---------- Hoja de opciones (velo + hoja que sube) ----------
   La usan el "•••" de una dirección y "Tipo de lugar". Siempre está en el
   HTML; cerrada no se ve ni recibe toques (visibility, con retraso para
   que la hoja alcance a bajar). */
.hoja-op {
  position: fixed;
  inset: 0;
  z-index: 95;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 0.32s;
}
.hoja-op.abierta {
  visibility: visible;
  pointer-events: auto;
  transition: none;
}
/* La de "Tipo de lugar" vive dentro de la ventana de dirección: cubre sólo
   esa ventana (en escritorio, el diálogo de 660). */
.hoja-op--dentro { position: absolute; z-index: 6; }
.hoja-op__velo {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity 0.28s var(--e-out);
  touch-action: none;
}
.hoja-op.abierta .hoja-op__velo { opacity: 1; }
.hoja-op__hoja {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  max-height: calc(100% - var(--safe-top) - 24px);
  display: flex;
  flex-direction: column;
  padding: 6px 20px calc(var(--safe-bot) + 14px);
  background: var(--card);
  border-radius: 22px 22px 0 0;
  transform: translateY(100%);
  transition: transform 0.32s var(--e-out);
  overscroll-behavior: contain;
  /* La hoja no es una caja con scroll: sin esto, el dedo sobre su título
     movía la lista de atrás (iOS no siempre respeta el overflow:hidden del
     body). Lo que sí scrollea es su lista (pan-y, abajo). */
  touch-action: none;
}
.hoja-op.abierta .hoja-op__hoja {
  transform: none;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.18);
}
/* "Tipo de lugar" es alta, como la de Rappi: arranca casi arriba y se asoma
   el encabezado de atrás. */
.hoja-op--alta .hoja-op__hoja { top: calc(var(--safe-top) + 38px); max-height: none; }
.hoja-op__cabeza {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.hoja-op__titulos { min-width: 0; }
.hoja-op__cabeza h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hoja-op__cabeza--grande { padding: 14px 0 16px; }
.hoja-op__cabeza--grande h2 { font-size: 28px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.hoja-op__linea {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--texto-sec);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Se ve de 28 (como la X de Rappi) y toca de 44. */
.hoja-op__x {
  position: relative;
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface);
  color: var(--text);
}
.hoja-op__x::before { content: ''; position: absolute; inset: -8px; }
.hoja-op__sub {
  margin: 20px 0 4px;
  font-size: 15px;
  line-height: 1.3;
  color: var(--texto-sec);
  flex-shrink: 0;
}
.hoja-op__lista {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
.hoja-op__lista[hidden] { display: none; }
.hoja-op__fila {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 14px 0;
  text-align: left;
  font-family: inherit;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background 0.12s ease;
}
.hoja-op__fila:active { background: var(--surface); }
.hoja-op__ico {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface);
  color: var(--text);
}
.hoja-op__ico svg { width: 20px; height: 20px; }
.hoja-op__txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.hoja-op__txt strong { font-size: 15px; font-weight: 600; line-height: 1.25; }
.hoja-op__txt small { font-size: 13px; line-height: 1.25; color: var(--texto-sec); }
.hoja-op__chev { flex-shrink: 0; color: var(--text); }
.hoja-op__fila--peligro,
.hoja-op__fila--peligro .hoja-op__ico { color: var(--danger); }
.hoja-op__confirmar { padding: 18px 0 4px; }
.hoja-op__confirmar[hidden] { display: none; }
.hoja-op__pregunta { margin: 0 0 16px; font-size: 16px; line-height: 1.4; color: var(--text); }
.hoja-op__peligro,
.hoja-op__cancelar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  border-radius: 100px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
}
.hoja-op__peligro { background: var(--danger); color: #fff; }
.hoja-op__cancelar { margin-top: 8px; background: var(--surface); color: var(--text); }
.hoja-op :focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 2px; }
/* La hoja misma recibe el foco al abrir (para el lector de pantalla): sin
   anillo, que nadie la "seleccionó". */
.hoja-op .hoja-op__hoja:focus,
.hoja-op .hoja-op__hoja:focus-visible { outline: 0; }
/* En tablet y compu, la hoja del "•••" no va de orilla a orilla: centrada,
   del ancho de una app de teléfono (480). No --max-w: en compu vale 1100. */
@media (min-width: 600px) {
  .hoja-op:not(.hoja-op--dentro) .hoja-op__hoja {
    left: 50%; right: auto;
    width: min(480px, 100%);
    transform: translate(-50%, 100%);
  }
  .hoja-op.abierta:not(.hoja-op--dentro) .hoja-op__hoja { transform: translate(-50%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hoja-op, .hoja-op__velo, .hoja-op__hoja { transition: none; }
}

/* ============================================================
   BOTTOM SHEET (sucursal detail)
   ============================================================ */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.48);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  z-index: 80;
  transition: opacity 0.32s var(--e-out);
}
.sheet-backdrop.show { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: var(--max-w);
  max-height: 92dvh;
  background: var(--bg);
  border-radius: 28px 28px 0 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  transition: transform 0.42s var(--e-spring);
  box-shadow: 0 -16px 48px rgba(0,0,0,0.18);
  overflow: hidden;
  padding-bottom: calc(var(--safe-bot) + 88px);
}
.sheet.show { transform: translateX(-50%) translateY(0); }
.sheet.dragging { transition: none; }

.sheet__handle-zone {
  padding: 10px 0 6px;
  display: grid; place-items: center;
  cursor: grab;
  touch-action: none;
}
.sheet__handle {
  width: 40px;
  height: 5px;
  border-radius: 100px;
  background: var(--border);
  transition: background 0.2s;
}
.sheet__handle-zone:active .sheet__handle { background: var(--text-3); }

.sheet__hero {
  height: 180px;
  display: grid;
  place-items: center;
  position: relative;
  background: linear-gradient(135deg, #FFE5BD 0%, #F5A623 100%);
  margin: 0 16px;
  border-radius: 22px;
  overflow: hidden;
}
.sheet__hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.4), transparent 55%),
              radial-gradient(circle at 70% 80%, rgba(0,0,0,0.08), transparent 50%);
}
.sheet__hero-emoji {
  font-size: 90px;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.18));
  z-index: 1;
}
.sheet__close {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.94);
  display: grid; place-items: center;
  z-index: 2;
  box-shadow: var(--sh-soft);
  transition: transform 0.18s var(--e-spring);
}
.sheet__close:active { transform: scale(0.88); }
.sheet__hero-status {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  background: rgba(255,255,255,0.94);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: var(--sh-soft);
}
.sheet__hero-status.open { color: var(--success); }
.sheet__hero-status.closed { color: var(--danger); }
.sheet__hero-status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.sheet__photos {
  display: flex;
  gap: 10px;
  padding: 14px 16px 4px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-left: 16px;
  scrollbar-width: none;
}
.sheet__photos::-webkit-scrollbar { display: none; }
.sheet__photo {
  flex: 0 0 130px;
  height: 100px;
  border-radius: 14px;
  scroll-snap-align: start;
  display: grid; place-items: center;
  font-size: 38px;
  position: relative;
  overflow: hidden;
  filter: saturate(1.05);
  box-shadow: var(--sh-soft);
}
.sheet__photo::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.35), transparent 55%),
              radial-gradient(circle at 70% 80%, rgba(0,0,0,0.08), transparent 50%);
}
.sheet__photo-label {
  position: absolute;
  bottom: 6px; left: 6px;
  background: rgba(255,255,255,0.92);
  color: var(--text);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 100px;
  text-transform: capitalize;
  z-index: 1;
}

.sheet__body {
  padding: 18px 20px 0;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}
.sheet__name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.sheet__name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.sheet__city-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  background: var(--surface);
  padding: 4px 10px;
  border-radius: 100px;
}
.sheet__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 14px;
  font-weight: 600;
}
.sheet__stars {
  display: inline-flex; gap: 1px;
}
.sheet__stars svg { width: 16px; height: 16px; }
.sheet__stars .star-on { fill: var(--brand-yellow); }
.sheet__stars .star-off { fill: var(--border); }
.sheet__rating-num { color: var(--text); font-weight: 800; }
.sheet__rating-reviews { color: var(--text-2); }

.sheet__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 18px;
}
.sheet__info-item {
  display: flex;
  gap: 12px;
}
.sheet__info-icon {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--brand-blue);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.sheet__info-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}
.sheet__info-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}
.sheet__info-sub {
  font-size: 12.5px;
  color: var(--text-2);
  margin-top: 4px;
  line-height: 1.4;
}
.sheet__info-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 2px;
}
.sheet__info-list-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.sheet__info-list-row span:first-child { color: var(--text-2); }
.sheet__info-list-row span:last-child { color: var(--text); font-weight: 600; }

.sheet__quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 6px;
}
.sheet__quick-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  transition: all 0.22s var(--e-spring);
}
.sheet__quick-btn:active {
  transform: scale(0.97);
  background: var(--surface);
  border-color: var(--text-3);
}

.sheet__fab {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 16px calc(14px + var(--safe-bot));
  background: linear-gradient(to top, var(--bg) 60%, rgba(250,250,250,0));
}
/* Variante con 3 botones en fila: Llamar | Como llegar | Pedir aqui */
.sheet__fab--row {
  display: flex;
  gap: 8px;
}
.sheet__fab-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
  min-width: 0;
}
.sheet__fab-btn:active { transform: scale(0.97); }
.sheet__fab-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.sheet__fab-btn--secondary {
  background: var(--card);
  color: var(--text);
  border: 1.5px solid var(--border);
}
.sheet__fab-btn--primary {
  background: var(--cta-verde);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 5px 14px rgba(51,201,91,0.35);
  flex: 1.2;
}

/* delivery range banner (no shops within range) */
.suc-norange {
  margin: 4px 16px 12px;
  padding: 14px 16px;
  background: #FFF5E6;
  border-radius: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1.5px solid #F5D08F;
}
.suc-norange__icon {
  width: 36px; height: 36px;
  border-radius: 12px;
  background: var(--brand-yellow);
  color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.suc-norange__title { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.suc-norange__sub { font-size: 13px; color: var(--text-2); line-height: 1.4; }
.suc-norange__sub b {
  color: var(--brand-blue);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: var(--safe-top);
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--e-out);
}
.header.scrolled { border-bottom-color: var(--border); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 14px;
}
.header__location {
  flex: 1 1 auto;
  min-width: 0; /* permite que el texto se trunque sin empujar a los iconos */
  display: flex;
  align-items: center;
  gap: 8px;
  /* <button> trae text-align:center por default → la dirección (span block)
     lo heredaba y se veía centrada/corrida en pantallas anchas (iPhone 14 Pro
     Max). Forzamos left para que quede pegada a la izquierda bajo el label. */
  text-align: left;
  padding: 6px 4px;
  border-radius: var(--radius-sm);
  transition: background 0.18s var(--e-smooth), transform 0.18s var(--e-smooth);
  overflow: hidden;
}
.header__location:active { background: var(--surface); transform: scale(0.98); }
.header__location-pin {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--action-soft);
  color: var(--action);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.header__location-text {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  /* Apilar label + address verticalmente de forma explicita.
     Sin esto el <span> queda inline y en desktop con header ancho
     el browser puede dejar label + address en la misma fila visual. */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.header__location-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 4px;
}
.header__location-addr {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  width: 100%;
}
.header__icons {
  display: flex;
  gap: 6px;
  flex-shrink: 0; /* iconos nunca se comprimen */
}
.icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card);
  box-shadow: var(--sh-soft);
  transition: transform 0.18s var(--e-spring), background 0.18s var(--e-smooth);
  position: relative;
}
.icon-btn:active { transform: scale(0.88); background: var(--surface); }
.icon-btn .badge {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  background: var(--action);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid; place-items: center;
  padding: 0 4px;
  border: 2px solid var(--card);
  animation: badgePop 0.4s var(--e-spring);
}

/* ============================================================
   MODE TOGGLE (Domicilio / Pickup)
   ============================================================ */
.mode-toggle {
  margin: 4px 16px 16px;
  display: flex;
  background: var(--surface);
  border-radius: 14px;
  padding: 4px;
  position: relative;
}
.mode-toggle__indicator {
  position: absolute;
  top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px);
  background: var(--card);
  border-radius: 10px;
  box-shadow: var(--sh-soft);
  transition: transform 0.32s var(--e-spring);
}
.mode-toggle[data-mode="pickup"] .mode-toggle__indicator { transform: translateX(100%); }
.mode-toggle__btn {
  flex: 1;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: color 0.24s var(--e-smooth);
}
.mode-toggle__btn.active { color: var(--text); }

/* ============================================================
   HOME: SALUDO + QUICK CATEGORIES
   ============================================================ */
.hello {
  padding: 16px 18px 6px;
}
.hello__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 16px;
  background: rgba(26, 93, 181, 0.08);
  color: var(--brand-blue, #1A5DB5);
  border: 1.5px solid rgba(26, 93, 181, 0.2);
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.18s var(--e-spring);
}
.hello__cta:hover { background: rgba(26, 93, 181, 0.14); border-color: rgba(26, 93, 181, 0.32); }
.hello__cta:active { transform: scale(0.97); }

/* OPTION 1 — Home store hero card (CTA grande con foto/info de la sucursal) */
.home-store-hero[hidden] { display: none !important; }
.home-store-hero {
  position: relative;
  margin: 12px 16px 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface, #fff);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: transform 0.18s var(--e-spring);
}
.home-store-hero:active { transform: scale(0.99); }
.home-store-hero__bg {
  height: 88px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 12px 16px;
  color: #fff;
}
.home-store-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.32) 100%);
  pointer-events: none;
}
.home-store-hero__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.95);
  color: var(--success, #10B981);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.home-store-hero__emoji {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  font-size: 44px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.18));
  z-index: 1;
}
.home-store-hero__content {
  padding: 14px 16px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.home-store-hero__info {
  flex: 1;
  min-width: 0;
}
.home-store-hero__name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text);
  line-height: 1.15;
}
.home-store-hero__meta {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 3px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.home-store-hero__meta-dot { color: var(--text-3); }
.home-store-hero__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: var(--cta-verde);
  color: #fff;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 5px 14px rgba(51,201,91,0.35);
}
.hello__title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 4px;
}
.hello__sub {
  font-size: 15px;
  color: var(--text-2);
  font-weight: 500;
}

.quick-cats {
  display: flex;
  gap: 8px;
  padding: 6px 16px 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-left: 16px;
  scrollbar-width: none;
}
.quick-cats::-webkit-scrollbar { display: none; }
.quick-cat {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--card);
  border: 1px solid var(--border, #E5E7EB);
  border-radius: 100px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  transition: transform 0.18s var(--e-spring), border-color 0.15s, background 0.15s;
}
.quick-cat:active { transform: scale(0.96); }
.quick-cat:hover { border-color: var(--text-3, #9CA3AF); }
.quick-cat__emoji { font-size: 14px; line-height: 1; }
.quick-cat__photo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  margin-right: -2px;
}
.quick-cat__label { letter-spacing: -0.01em; }

/* Letra inicial cuando no hay foto del producto/sucursal — sustituye al emoji */
.thumb-letter {
  font-family: inherit;
  font-size: 38px;
  font-weight: 800;
  color: rgba(255,255,255,0.92);
  letter-spacing: -0.02em;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.18));
  z-index: 1;
}

/* ============================================================
   HOME: FEATURED (destacados)
   ============================================================ */
.featured-row {
  display: flex;
  gap: 12px;
  padding: 0 16px 4px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-left: 16px;
  scrollbar-width: none;
}
.featured-row::-webkit-scrollbar { display: none; }
.featured-card {
  flex: 0 0 168px;
  scroll-snap-align: start;
  background: var(--card);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--sh-soft);
  position: relative;
  transition: transform 0.22s var(--e-spring), box-shadow 0.22s var(--e-out);
}
.featured-card:active { transform: scale(0.96); box-shadow: var(--sh-card); }
.featured-card__img {
  height: 110px;
  border-radius: 12px;
  margin-bottom: 8px;
  display: grid; place-items: center;
  font-size: 48px;
  position: relative;
  overflow: hidden;
}
.featured-card__img::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.4), transparent 55%);
}
.featured-card__img span { z-index: 1; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.18)); }
.featured-card__rating {
  position: absolute;
  top: 18px; left: 18px;
  background: rgba(255,255,255,0.95);
  padding: 3px 7px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 800;
  display: flex; align-items: center; gap: 3px;
  box-shadow: var(--sh-soft);
  z-index: 2;
}
.featured-card__rating svg { fill: var(--brand-yellow); }
.featured-card__name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}
.featured-card__row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 4px;
}
.featured-card__price {
  font-size: 14px;
  font-weight: 800;
}
/* Wrapper para precio + precio tachado cuando hay promo */
.featured-card__price-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.featured-card__price-orig,
.popular-card__price-orig,
.prod-card__price-orig,
.menu-item__price-orig {
  font-size: 11.5px;
  color: var(--text-3);
  font-weight: 600;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  margin-left: 6px;
}
/* Cuando hay descuento, el precio efectivo va en color de promo */
.popular-card__price + .popular-card__price-orig,
.prod-card__price + .prod-card__price-orig,
.menu-item__price + .menu-item__price-orig {
  /* solo selector — el strike va en el .price-orig directamente */
}
.popular-card .popular-card__price,
.prod-card .prod-card__price,
.menu-item .menu-item__price {
  /* Si tiene hermano price-orig (= hay descuento), poner color de descuento */
}
.popular-card__price:has(+ .popular-card__price-orig),
.prod-card__price:has(+ .prod-card__price-orig),
.menu-item__price:has(+ .menu-item__price-orig) {
  color: var(--action, #FF4D4D);
}
/* Badge de promo arriba a la izquierda de la card (mismo lugar que el rating) */
.featured-card__promo-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--action, #FF4D4D);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 8px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(255,77,77,0.4);
}
.featured-card__add {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  display: grid; place-items: center;
  transition: all 0.22s var(--e-spring);
  flex-shrink: 0;
}
.featured-card__add:active { transform: scale(0.85); background: var(--action); }

/* ============================================================
   ACTIVE ORDER BANNER (visible cuando hay pedido en curso)
   ============================================================ */
/* Container para multiples banners de pedidos activos. Cada uno
   es un .active-order independiente (mismo estilo, tap individual). */
.active-orders[hidden] { display: none !important; }
.active-orders {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 16px 0;
}
.active-orders .active-order { margin: 0; width: 100%; }
.active-orders__more {
  background: none;
  border: 0;
  color: var(--text-2);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 4px;
  text-align: center;
  cursor: pointer;
}
.active-order[hidden] { display: none !important; }
.active-order {
  margin: 14px 16px 0;
  width: calc(100% - 32px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(135deg, var(--success) 0%, #14B981 100%);
  border-radius: 16px;
  color: #fff;
  box-shadow: 0 12px 28px rgba(16,185,129,0.38);
  position: relative;
  overflow: hidden;
  animation: orderPulse 2.4s ease-in-out infinite, fadeUp 0.4s var(--e-out);
  text-align: left;
  border: 0;
  font: inherit;
  cursor: pointer;
}
@keyframes orderPulse {
  0%, 100% { box-shadow: 0 12px 28px rgba(16,185,129,0.38); }
  50%      { box-shadow: 0 12px 32px rgba(16,185,129,0.55); }
}
.active-order:active { transform: scale(0.99); }
.active-order__pulse {
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  top: 14px; right: 14px;
  animation: dotPulse 1.4s ease-out infinite;
}
@keyframes dotPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.6); }
  70%  { box-shadow: 0 0 0 12px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.active-order__icon {
  font-size: 32px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.2));
  flex-shrink: 0;
  animation: rideShake 1.6s ease-in-out infinite;
}
@keyframes rideShake {
  0%,100% { transform: translateX(0); }
  50%     { transform: translateX(2px); }
}
.active-order__body { flex: 1; min-width: 0; }
.active-order__label {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}
.active-order__status {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.active-order__eta {
  font-size: 12px;
  opacity: 0.92;
  font-weight: 500;
}

/* ============================================================
   STORE CHIP (no sticky — scrollea con el contenido)
   ============================================================ */
/* Como la muestra de Federico (31-oct): tarjeta blanca con orilla fina, el
   ícono en línea sin el cuadro azul y la flecha hacia abajo. */
.store-chip {
  margin: 14px 16px 0;
  width: calc(100% - 32px);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: all 0.22s var(--e-spring);
}
.store-chip:active {
  transform: scale(0.99);
  background: var(--surface);
}
.store-chip__icon {
  width: 24px; height: 24px;
  color: var(--text);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.store-chip__text { flex: 1; min-width: 0; text-align: left; }
.store-chip__label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.25;
}
.store-chip__name {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.store-chip__chev { color: var(--text-2); flex-shrink: 0; }

/* Estado vacio: sin sucursal seleccionada — mas prominente para invitar a tocar */
.store-chip--empty {
  border-color: var(--brand-blue);
  background: linear-gradient(135deg, rgba(26,93,181,0.06) 0%, rgba(26,93,181,0.02) 100%);
}
.store-chip--empty .store-chip__label { color: var(--brand-blue); }
.store-chip--empty .store-chip__name { color: var(--brand-blue); }
.store-chip--empty .store-chip__chev { color: var(--brand-blue); }

/* ============================================================
   SEARCH
   ============================================================ */
.search {
  margin: 0 16px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--sh-soft);
  color: var(--text-2);
  font-size: 14px;
  transition: transform 0.2s var(--e-spring), box-shadow 0.2s var(--e-smooth);
}
.search:active { transform: scale(0.98); box-shadow: var(--sh-card); }

/* ============================================================
   BANNER CAROUSEL
   ============================================================ */
.banners {
  display: flex;
  /* El hueco entre banners mide lo mismo que el margen de la pagina: asi el
     carrusel lleva UN ritmo y no dos. */
  gap: 16px;
  padding: 0 16px 6px;
  overflow-x: auto;
  /* 🪤 `mandatory` obliga a reposar SIEMPRE en un punto de anclaje, y el
     anclaje alinea el borde del banner con el borde del scrollport — el
     padding no cuenta. Sin scroll-padding, el carrusel nacia en scrollLeft=16
     y el primer banner quedaba pegado a la orilla mientras la tarjeta de
     arriba respetaba su margen. */
  scroll-snap-type: x mandatory;
  scroll-padding-left: 16px;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.banners::-webkit-scrollbar { display: none; }
.banner {
  flex: 0 0 84%;
  scroll-snap-align: start;
  height: 140px;
  border-radius: var(--radius-lg);
  color: #fff;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  box-shadow: var(--sh-card);
  transition: transform 0.22s var(--e-spring);
}
.banner:active { transform: scale(0.97); }

/* La columna del texto. Manda ella: la foto ocupa lo que sobre. */
.banner__texto {
  flex: 1 1 auto;
  min-width: 0;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  position: relative;
  z-index: 1;
}
/* El renglon chiquito de arriba: dice de que tipo es la promo. */
.banner__eyebrow {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0.88;
}
/* La foto va a la DERECHA y se desvanece hacia el texto, para que se funda con
   el color del banner sea cual sea. Con un borde duro se ve pegoteada. */
.banner__foto {
  flex: 0 0 42%;
  align-self: stretch;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 36%);
          mask-image: linear-gradient(to right, transparent 0%, #000 36%);
}
/* Con foto, el texto se queda con su mitad y no se mete debajo de ella. */
.banner--con-foto .banner__texto { flex: 0 1 60%; }
.banner__icon {
  position: absolute;
  right: -10px; bottom: -10px;
  font-size: 100px;
  opacity: 0.25;
  transform: rotate(-12deg);
  line-height: 1;
}
.banner__title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.banner__subtitle {
  font-size: 13px;
  opacity: 0.92;
  font-weight: 500;
  /* Dos renglones y para. Un subtitulo largo empujaba al boton fuera del
     banner y la promo se quedaba sin como pedirse. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.banner__cta {
  align-self: flex-start;
  margin-top: 6px;
  padding: 7px 14px;
  background: rgba(255,255,255,0.95);
  color: #1A1A1A;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex; align-items: center; gap: 4px;
  transition: transform 0.18s var(--e-spring);
}
.banner__cta:active { transform: scale(0.92); }

.banners-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 12px 0 4px;
}
.banners-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border);
  transition: width 0.3s var(--e-spring), background 0.3s var(--e-out);
}
.banners-dot.active { width: 22px; background: var(--brand-blue); }

/* ============================================================
   CATEGORIES (chips)
   ============================================================ */
.categories {
  display: flex;
  gap: 10px;
  padding: 12px 16px 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.categories::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 12px;
  background: var(--card);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  box-shadow: var(--sh-soft);
  transition: all 0.22s var(--e-spring);
  border: 1.5px solid transparent;
}
.cat-chip:active { transform: scale(0.94); }
.cat-chip.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
.cat-chip__icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--surface);
  display: grid; place-items: center;
  font-size: 14px;
  transition: background 0.22s var(--e-out);
}
.cat-chip.active .cat-chip__icon {
  background: rgba(255,255,255,0.18);
}

/* ============================================================
   SECTION
   ============================================================ */
.section { margin-top: 8px; }
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px 16px 12px;
}
.section__title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section__sub {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 2px;
  font-weight: 500;
}
.section__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-blue);
  display: flex; align-items: center; gap: 2px;
  transition: opacity 0.18s var(--e-smooth);
}
.section__link:active { opacity: 0.5; }

/* ============================================================
   POPULAR ROW (carousel)
   ============================================================ */
.popular-row {
  display: flex;
  gap: 12px;
  padding: 0 16px 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-left: 16px;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.popular-row::-webkit-scrollbar { display: none; }
.popular-card {
  flex: 0 0 158px;
  scroll-snap-align: start;
  background: var(--card);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--sh-soft);
  position: relative;
  transition: transform 0.22s var(--e-spring), box-shadow 0.22s var(--e-out);
}
.popular-card:active { transform: scale(0.96); box-shadow: var(--sh-card); }
.popular-card__img {
  height: 110px;
  border-radius: 12px;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
  display: grid; place-items: center;
  font-size: 52px;
  font-weight: 900;
  color: rgba(255,255,255,0.95);
  letter-spacing: -0.04em;
}
/* Imágenes de cards: cover el thumb completo */
.popular-card__img img,
.prod-card__img img,
.menu-item__thumb img,
.featured-card__img img,
.cart-item__thumb img,
.reorder-card__thumb img,
.prod-option__thumb img,
/* Foto de portada de la sucursal (cover_url) — llena todo el container.
   Excluye al logo de fallback (.store-fallback-logo) que tiene su propio
   sizing centrado (max-width/height en px). Sin esta exclusion, el logo se
   renderizaba a 100% del container y salia recortado en la esquina sup-izq. */
.store-card__thumb img:not(.store-fallback-logo),
.store-mini__hero img:not(.store-fallback-logo),
.suc-suggested-card__hero img:not(.store-fallback-logo) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

/* Precio original tachado al lado del efectivo en el header del popup */
.prod-hero__price-orig {
  font-size: 0.7em;
  font-weight: 600;
  opacity: 0.65;
  margin-left: 8px;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  vertical-align: 2px;
}
/* Precio actual cuando hay descuento — destacado en color de marca */
.prod-hero__price-now {
  color: var(--brand-orange, #FF6B35);
  font-weight: 800;
}
/* Badge "3X2" / "-15%" / "HAPPY HOUR" arriba del precio en el sheet */
.prod-hero__promo-badge {
  display: inline-block;
  background: var(--brand-orange, #FF6B35);
  color: #fff;
  font-size: 0.75em;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  margin-right: 8px;
  letter-spacing: 0.04em;
  vertical-align: 2px;
  text-transform: uppercase;
}
/* Mismo patron en items del carrito y resumen de checkout */
.cart-item__price-orig,
.co-items__price-orig {
  font-size: 0.78em;
  font-weight: 500;
  opacity: 0.6;
  margin-left: 6px;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.prod-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.popular-card__name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}
.popular-card__row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 6px;
}
.popular-card__price {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}
.add-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  display: grid; place-items: center;
  transition: transform 0.18s var(--e-spring), background 0.18s var(--e-smooth);
  flex-shrink: 0;
}
.add-btn:active { transform: scale(0.85); background: var(--action); }
.add-btn--lg { width: 36px; height: 36px; }

/* ============================================================
   HOME: BIG CTA "Quiero pedir"
   ============================================================ */
.home-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Mismo aire arriba que abajo. Con 18 arriba y 6 abajo la tarjeta se veia
     pegada al banner y huerfana del saludo: parecian una sola pieza partida.
     Dos bloques distintos se separan igual por los dos lados. */
  margin: 18px 16px;
  padding: 15px 20px;
  /* El verde de los demás botones de acción (carrito, "Pedir aquí"). */
  background: var(--cta-verde);
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 5px 14px rgba(51,201,91,0.35);
  width: calc(100% - 32px);
  transition: transform 0.22s var(--e-spring);
}
.home-cta:active { transform: scale(0.98); }
.home-cta__left {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}
.home-cta__text { display: flex; flex-direction: column; }
.home-cta__title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.home-cta__sub {
  font-size: 14px;
  opacity: 0.92;
  font-weight: 500;
  margin-top: 3px;
}

/* ============================================================
   STORE HERO (en el tab Menu)
   ============================================================ */
.store-hero {
  margin: 0 0 12px;
  background: var(--card);
  border-radius: 0 0 22px 22px;
  overflow: hidden;
  /* Sin sombra: era la "linea" que partia el encabezado de la tarjeta de
     premios. El fondo de la pagina y el de la tarjeta casi no se distinguen
     (#FAFAFA contra #FFF), asi que lo unico que dibujaba el corte era esta
     sombra. Sin ella, las dos secciones se leen como una sola pieza. */
  position: relative;
  animation: fadeUp 0.4s var(--e-out) both;
}

/* ---------- La portada, que se encoge y se para ----------
   Vive FUERA del hero. Una pegajosa sólo se queda mientras su contenedor
   está en pantalla: dentro del hero se despegaba en cuanto el hero se
   acababa, y de ahí salía el defecto de que la foto se iba y volvía. Aquí
   su contenedor es la pantalla entera, así que se queda todo el scroll. */
.store-cover {
  position: sticky;
  top: 0;
  z-index: 29;            /* debajo de la barra (30), encima del menu (25) */
  /* Lo que encoge la foto se devuelve como margen: lo de abajo no se mueve. */
  margin-bottom: var(--cover-hueco, 0px);
}
/* Alto cero, sólo sirve de testigo: dice dónde ESTARÍA la portada si no se
   pegara. Preguntárselo a la portada pegada siempre contesta 0. Se lleva el
   margen negativo que antes tenía el hero, el que la mete bajo la barra. */
.store-cover-ancla {
  height: 0;
  margin-top: calc(-1 * (var(--safe-top) + 58px));
}
/* Lo que se monta sobre la foto se va desvaneciendo antes de que termine de
   encogerse: si no, el logo se quedaría colgado sobre el menú. */
.store-cover .store-hero__logo,
.store-cover .store-hero__status,
.store-cover .store-hero__brand {
  opacity: calc(1 - var(--cover-p, 0) * 1.8);
  pointer-events: none;
}
.store-hero__cover {
  height: var(--cover-h, calc(var(--safe-top) + 118px));
  padding-top: calc(var(--safe-top) + 58px);
  position: relative;
  display: grid;
  place-items: center;
  font-size: 60px;
  overflow: hidden;
}
.store-hero__cover::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.4), transparent 55%);
}
/* Cuando hay foto real, gradiente oscuro abajo para legibilidad del status "Abierto ahora" */
.store-hero__cover.has-photo::before {
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.32) 100%);
}
.store-hero__cover span { z-index: 1; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.18)); }

/* Diseno simple: solo nombre, sin foto. Para tiendas sin foto custom. */
.store-hero__cover--simple {
  background: var(--bg);
  font-size: inherit; /* override del 60px del cover normal */
}
.store-hero__cover--simple::before { display: none; }
.store-hero__brand {
  z-index: 1;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  text-align: center;
  padding: 0 24px 18px;
  filter: none; /* sin drop-shadow del cover normal */
}
.store-hero__status {
  position: absolute;
  bottom: 12px; left: 12px;
  background: rgba(255,255,255,0.96);
  padding: 5px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: var(--sh-soft);
  z-index: 2;
}
.store-hero__status.open { color: var(--success); }
.store-hero__status.closed { color: var(--danger); }
.store-hero__status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
/* 12 abajo (antes 6): el cuadro de Entrega/Horario/Calificación queda a la
   MISMA distancia del selector Domicilio/Recoger que el selector del borde de
   abajo de la tarjeta (sus 12 de margen), haya o no premios debajo (30-oct). */
.store-hero__body {
  padding: 12px 16px 12px;
}
.store-hero__info { flex: 1; min-width: 0; }
.store-hero__row1 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.store-hero__name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
/* Tarjeta de stats estilo Rappi: Entrega | Horario | Calificación */
.store-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.store-hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 9px 4px;
  text-align: center;
  min-width: 0;
}
/* Sin lineas entre dato y dato (estilo Rappi): solo el recuadro exterior. */
.store-hero__stat-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-2);
  font-weight: 600;
  white-space: nowrap;
}
.store-hero__stat-ic { width: 12px; height: 12px; flex-shrink: 0; color: var(--text-2); }
.store-hero__star { fill: var(--brand-yellow); stroke: none; }
.store-hero__stat-value {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.store-hero__stat-value small { font-weight: 600; color: var(--text-2); font-size: 11.5px; }
.store-hero__city {
  font-size: 11px;
  color: var(--text-2);
  font-weight: 700;
  background: var(--surface);
  padding: 2px 8px;
  border-radius: 100px;
}
.store-hero__meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--text-2);
  font-weight: 600;
}
.store-hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.store-hero__meta-item svg { fill: var(--brand-yellow); width: 12px; height: 12px; }
.store-hero__meta-item b { color: var(--text); font-weight: 800; }
.store-hero__change {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-blue);
  padding: 8px 12px;
  border-radius: 100px;
  background: rgba(26,93,181,0.08);
  flex-shrink: 0;
  margin-left: auto;
  transition: all 0.22s var(--e-spring);
}
.store-hero__change:active { transform: scale(0.94); background: rgba(26,93,181,0.16); }

/* Toggle Domicilio/Recoger dentro del hero del menu (movido del home) */
.store-hero__modrow { display: flex; align-items: stretch; gap: 8px; margin: 0 16px 12px; }
.store-hero__modrow .store-hero__mode { flex: 1; margin: 0; }
.store-hero__map-btn {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  border-radius: 100px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  font-family: inherit; font-size: 13px; font-weight: 700; color: var(--text);
  cursor: pointer; white-space: nowrap;
  transition: transform .12s;
}
.store-hero__map-btn:active { transform: scale(0.97); }
/* Sheet de cambio rápido de tienda (1 toque) */
.switch-list { display: flex; flex-direction: column; gap: 8px; }
.switch-row {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left;
  padding: 12px 14px;
  background: var(--surface);
  border: 1.5px solid transparent;
  border-radius: 14px;
  font-family: inherit; cursor: pointer;
  transition: transform .12s var(--e-spring), border-color .15s, background .15s;
}
.switch-row:active { transform: scale(0.985); }
.switch-row.is-current { border-color: var(--brand-blue); background: rgba(26,93,181,0.06); }
.switch-row.is-closed { opacity: .62; }
.switch-row__body { flex: 1; min-width: 0; }
.switch-row__name { font-size: 15px; font-weight: 750; color: var(--text); }
.switch-row__meta { font-size: 12.5px; color: var(--text-2); margin-top: 2px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.switch-row__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success, #16a34a); flex-shrink: 0; }
.switch-row__dot.closed { background: var(--danger, #dc2626); }
.switch-row__check { flex-shrink: 0; color: var(--brand-blue); display: none; }
.switch-row.is-current .switch-row__check { display: block; }
.switch-empty { color: var(--text-3); font-size: 14px; text-align: center; padding: 20px 0; }

/* Sheet del mapa de la sucursal (Ver mapa) */
.sheet--map { padding: 0; }
.store-map__canvas { width: 100%; height: 300px; background: var(--surface); }
.store-map__card { padding: 16px 18px 20px; }
.store-map__name { font-weight: 800; font-size: 18px; }
.store-map__addr { font-size: 14px; color: var(--text-2); margin-top: 4px; line-height: 1.4; }
.store-map__meta { font-size: 13px; color: var(--text-3); margin-top: 8px; }

.store-hero__mode {
  display: flex;
  gap: 0;
  padding: 0;
  margin: 0 16px 12px;
  background: var(--surface);
  border-radius: 100px;
  border: 1.5px solid var(--border);
}
.store-hero__mode-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 100px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: all 0.22s var(--e-spring);
}
.store-hero__mode-btn.active {
  background: var(--card);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* "A domicilio" cuando esta sucursal no reparte hasta tu direccion. Se ve
   apagado pero SIGUE siendo picable a proposito: al tocarlo dice por que, con
   los dos numeros. Un boton que no responde no explica nada, y el usuario se
   queda creyendo que la app se trabo. */
.store-hero__mode-btn.is-off {
  opacity: 0.42;
  cursor: default;
}
.store-hero__mode-btn.is-off:active { transform: none; }

/* El por que, debajo del toggle. Va pegado a el —no al final de la tarjeta—
   porque es lo que explica el boton apagado que tiene justo arriba. */
/* Fuera del alcance de reparto: un renglón tranquilo (icono + "Solo para
   recoger" + el porqué en gris), no una caja de advertencia naranja. */
.store-hero__aviso {
  margin: 2px 16px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--text-2);
}
.store-hero__aviso-ico {
  width: 32px; height: 32px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
}
.store-hero__aviso-txt { display: flex; flex-direction: column; min-width: 0; }
.store-hero__aviso-txt b { color: var(--text); font-weight: 700; font-size: 13.5px; }
.store-hero__mode-btn:active { transform: scale(0.97); }

/* ================================================================
   CART / CHECKOUT MODE TOGGLE (Uber Eats-style)
   Permite cambiar de "A domicilio" a "Recoger" sin salir del carrito.
   Misma estetica que store-hero__mode pero adaptada al cart screen.
   ================================================================ */
.cart-mode-toggle {
  display: flex;
  gap: 0;
  margin: 14px 16px 0;
  background: var(--surface);
  border-radius: 100px;
  border: 1.5px solid var(--border);
  padding: 3px;
}
.cart-mode-toggle__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 100px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: all 0.22s var(--e-spring);
  position: relative;
}
.cart-mode-toggle__btn.active {
  background: var(--card);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.cart-mode-toggle__btn:active { transform: scale(0.97); }
.cart-mode-toggle__badge {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 100px;
  background: rgba(46, 160, 67, 0.14);
  color: #1a8038;
  margin-left: 2px;
}

/* "Ver" arrow button — used on home cards (no direct add) */
.see-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  display: grid; place-items: center;
  transition: all 0.22s var(--e-spring);
  flex-shrink: 0;
}
.see-btn:active { transform: scale(0.88); background: var(--text); color: #fff; }
.see-btn--lg { width: 36px; height: 36px; }

.popular-card__rating {
  position: absolute;
  top: 18px; left: 18px;
  background: rgba(255,255,255,0.95);
  padding: 3px 7px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  display: flex; align-items: center; gap: 3px;
  box-shadow: var(--sh-soft);
}

/* ============================================================
   PRODUCT GRID (saladas, etc)
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px;
}
.prod-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--sh-soft);
  position: relative;
  transition: transform 0.22s var(--e-spring), box-shadow 0.22s var(--e-out);
  display: flex;
  flex-direction: column;
}
.prod-card:active { transform: scale(0.97); box-shadow: var(--sh-card); }
.prod-card__img {
  aspect-ratio: 1.15;
  border-radius: 12px;
  margin-bottom: 10px;
  display: grid; place-items: center;
  font-size: 56px;
  font-weight: 900;
  color: rgba(255,255,255,0.95);
  letter-spacing: -0.04em;
  position: relative;
  overflow: hidden;
}
.prod-card__name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}
.prod-card__desc {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.3;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.prod-card__row {
  display: flex; align-items: center; justify-content: space-between;
}
.prod-card__price {
  font-size: 15px;
  font-weight: 800;
}

.badge-discount {
  position: absolute;
  top: 18px; right: 18px;
  background: var(--action);
  color: #fff;
  padding: 4px 8px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(255,77,77,0.4);
}

/* "fire" decoration on image */
.prod-card__img::before, .popular-card__img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.25), transparent 50%);
}

/* ============================================================
   CART BAR — el pie del carrito de Rappi, con sus medidas (30-oct, sacadas
   de su captura): pegado abajo y de lado a lado; la foto en una cajita
   pegada a la orilla izquierda, "N productos" chico arriba del total, y el
   boton verde "Ir al carrito".
   ============================================================ */
.cart-bar {
  position: fixed;
  left: 50%;
  /* Default: arriba de la isla de abajo, con 8 de aire. Cuando
     body.no-bottomnav (ej. menu) va hasta abajo. */
  bottom: calc(var(--isla-abajo) + var(--bottomnav-h) + 2px + 8px);
  transform: translateX(-50%) translateY(120%);
  width: min(var(--max-w), 100%);
  background: var(--card);
  color: var(--text);
  padding: 11px 22px 11px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  /* Sin raya: la orilla la marca una sombra suave hacia arriba, como la de ellos. */
  box-shadow: 0 0 24px rgba(0,0,0,0.2);
  z-index: 40;
  transition: transform 0.42s var(--e-spring), opacity 0.3s var(--e-out);
  opacity: 0;
  pointer-events: none;
}
.cart-bar.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
/* Sin bottomnav (ej. menu) va al fondo y el mismo blanco cubre la zona de la
   rayita del iPhone. Como en el de ellos, el contenido se mete un poco en esa
   zona (deja 27 de sus 34 puntos) sin llegar a la rayita. */
body.no-bottomnav .cart-bar {
  bottom: 0;
  padding-bottom: max(11px, calc(var(--safe-bot) - 7px));
}
.cart-bar__left { display: flex; align-items: center; gap: 20px; min-width: 0; }
/* La cajita de la foto sale de la orilla izquierda: sin borde de ese lado. */
.cart-bar__caja {
  flex: none;
  padding: 6px 6px 6px 26px;
  border: 1px solid var(--border);
  border-left: 0;
  border-radius: 0 12px 12px 0;
}
.cart-bar__count {
  width: 40px; height: 38px;
  border-radius: 6px;
  /* Respaldo para cuando ningun platillo del carrito tiene foto: el numero. */
  background: var(--surface);
  color: var(--text);
  display: grid; place-items: center;
  font-size: 15px;
  font-weight: 800;
}
/* Con foto: la imagen llena el cuadro y el numero va en un circulo blanco
   DENTRO de la esquina de abajo. */
.cart-bar__count--foto { background: none; position: relative; }
.cart-bar__count--foto img {
  width: 40px; height: 38px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
}
.cart-bar__count--foto span {
  position: absolute;
  right: 2px; bottom: 2px;
  min-width: 15px; height: 15px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font-size: 10px; font-weight: 800;
  display: grid; place-items: center;
}
.cart-bar__textos { min-width: 0; }
.cart-bar__items { font-size: 13px; font-weight: 500; line-height: 1.2; }
.cart-bar__total { font-size: 22px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.cart-bar__right {
  flex: none;
  font-size: 17px; font-weight: 600; line-height: 20px;
  /* El MISMO verde de abajo, con su resplandor como el de ellos. */
  background: var(--cta-verde);
  color: #fff;
  padding: 12.5px 16px;
  border-radius: 100px;
  box-shadow: 0 5px 14px rgba(51,201,91,0.35);
  white-space: nowrap;
}

/* ============================================================
   HOME FAB CTA — "Ver menu completo" sticky encima del bottom nav
   ============================================================ */
.home-fab-cta[hidden] { display: none !important; }
.home-fab-cta {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(72px + var(--safe-bot, 0px));
  width: calc(100% - 32px);
  max-width: calc(var(--max-w) - 32px);
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px 13px 16px;
  background: var(--cta-verde);
  border-radius: 100px;
  color: #fff;
  font-family: inherit;
  text-align: left;
  box-shadow: 0 5px 14px rgba(51,201,91,0.35), 0 4px 10px rgba(0,0,0,0.08);
  animation: ctaIn 0.4s var(--e-spring);
  transition: transform 0.18s var(--e-spring);
}
@keyframes ctaIn {
  from { transform: translate(-50%, 16px); opacity: 0; }
  to   { transform: translate(-50%, 0);    opacity: 1; }
}
.home-fab-cta:active { transform: translate(-50%, 1px); }
.home-fab-cta__emoji {
  font-size: 22px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.18));
  flex-shrink: 0;
}
.home-fab-cta__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
.home-fab-cta__title {
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.home-fab-cta__sub {
  font-size: 11.5px;
  opacity: 0.88;
  font-weight: 600;
  margin-top: 2px;
}

/* ============================================================
   BOTTOM NAVIGATION — la isla de vidrio (30-oct, como la de Instagram y la
   de sus otras apps): una sola barra redondeada que flota a 6 de los lados,
   arriba de la rayita del iPhone, y deja ver difuminado lo de abajo.
   ============================================================ */
.bottomnav {
  position: fixed;
  z-index: 60;
  left: 6px; right: 6px;
  bottom: var(--isla-abajo);
  /* En tablet/compu no se estira de lado a lado: 4 iconos en 1100 px se
     pierden. Centrada con los margenes automaticos. */
  max-width: min(calc(var(--max-w) - 12px), 440px);
  margin: 0 auto;
  padding: 0 4px;
  border-radius: 30px;
  /* Sin vidrio (navegador que no lo sabe hacer): blanco y raya gris. */
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 10px 28px -8px rgba(20,26,20,0.20);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .bottomnav {
    background: linear-gradient(rgba(255,255,255,0.72), rgba(255,255,255,0.58));
    -webkit-backdrop-filter: blur(26px) saturate(150%);
    backdrop-filter: blur(26px) saturate(150%);
    border-color: rgba(255,255,255,0.7);
    box-shadow:
      0 0 0 0.5px rgba(20,26,20,0.10),
      0 10px 28px -8px rgba(20,26,20,0.20),
      inset 0 1px 0 rgba(255,255,255,0.95),
      inset 0 -1px 0 rgba(255,255,255,0.4),
      inset 0 0 14px rgba(255,255,255,0.45);
  }
}
.bottomnav__inner {
  position: relative;
  display: grid;
  /* Todas del MISMO ancho: nada se mueve ni se estira al cambiar de pestaña. */
  grid-template-columns: repeat(4, 1fr);
  height: var(--bottomnav-h);
}
/* UNA sola pildora para la activa, que se DESLIZA de una a otra. Como todas
   miden lo mismo, su lugar sale de aqui (--activa = 0 a 3, lo pone app.js) y
   se acomoda sola al rotar o cambiar de tamaño. 2 de aire a los lados del
   boton y 5 arriba y abajo. */
.bottomnav__pildora {
  position: absolute;
  top: 5px; bottom: 5px; left: 0;
  width: calc(25% - 4px);
  border-radius: 26px;
  background: rgba(26,93,181,0.14);
  background: color-mix(in srgb, var(--brand-blue) 14%, transparent);
  transform: translateX(calc(var(--activa, 0) * (100% + 4px) + 2px));
  pointer-events: none;
}
.bottomnav__inner--sin-activa .bottomnav__pildora { opacity: 0; }
/* La primera vez se pone sin animacion; despues se desliza. */
.bottomnav__inner--anima .bottomnav__pildora {
  transition: transform 0.45s cubic-bezier(.3,1.15,.4,1), width 0.45s cubic-bezier(.3,1.15,.4,1), opacity 0.2s;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-3);
  position: relative;
  transition: color 0.22s var(--e-out);
}
/* La activa: el icono en el color de la marca, con su relleno suave. */
.nav-item.active { color: var(--brand-blue); }
.nav-item__icon {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  /* Sin texto, pero la isla NO cambia de alto: el texto sigue ocupando su
     lugar (invisible) y el icono baja la mitad de ese lugar (4 del espacio +
     13 del texto) para quedar centrado. */
  transform: translateY(8.5px);
}
/* El "pop" al escogerla anima `scale` y no `transform`: asi no pisa el
   translateY que la centra. No en la primera pintada (sin --anima). */
.bottomnav__inner--anima .nav-item.active .nav-item__icon {
  animation: navPop 0.42s cubic-bezier(.3,1.5,.5,1);
}
@keyframes navPop {
  from { scale: 0.8; }
  to   { scale: 1; }
}
.nav-relleno { opacity: 0; transition: opacity 0.25s; }
.nav-item.active .nav-relleno { opacity: 0.2; }
.nav-item__label {
  font-size: 11px;
  font-weight: 600;
  line-height: 13px;
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .bottomnav__inner--anima .bottomnav__pildora { transition: none; }
  .bottomnav__inner--anima .nav-item.active .nav-item__icon { animation: none; }
}

/* ============================================================
   FLY-TO-CART animation
   ============================================================ */
.fly-dot {
  position: fixed;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--action);
  color: #fff;
  display: grid; place-items: center;
  font-size: 14px;
  font-weight: 900;
  z-index: 100;
  pointer-events: none;
  box-shadow: 0 6px 20px rgba(255,77,77,0.5);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes badgePop {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.4s var(--e-out) both; }

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, #EEE 0%, #F8F8F8 50%, #EEE 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
  border-radius: 8px;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  /* Bottom toast (estilo Uber/Instagram): antes estaba en top y se pegaba
     a la Dynamic Island. Ahora va abajo PERO arriba de la barra de
     navegacion (.bottom-nav, height 76px).
     Usamos opacity + visibility + pointer-events para esconderlo. El
     transform solo da el efecto spring al aparecer. translateY(N%) NO
     funciona para esconder porque el bottom esta lejos del 0 (safe-area
     + bottomnav lo elevan), entonces el 150% de su propia altura no
     alcanza a sacarlo de pantalla → quedaba asomado siempre. */
  position: fixed;
  bottom: calc(var(--bottomnav-h) + var(--safe-bot) + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: var(--text);
  color: #fff;
  padding: 12px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--sh-pop);
  z-index: 200;
  transition: transform 0.32s var(--e-spring), opacity 0.22s ease, visibility 0s linear 0.22s;
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
  /* 100% y no 100vw: con la cámara de lado se mide contra el cuerpo recortado. */
  max-width: calc(100% - 32px);
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.32s var(--e-spring), opacity 0.22s ease, visibility 0s linear 0s;
}
/* Arriba, debajo de la barra de la hora: un "listo" momentáneo que baja y se
   va (el de los cupones, 30-oct). */
.toast.toast--arriba {
  top: calc(var(--safe-top) + 12px);
  bottom: auto;
  transform: translateX(-50%) translateY(-12px);
}
.toast.toast--arriba.show { transform: translateX(-50%) translateY(0); }
.toast__check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--success);
  display: grid; place-items: center;
}

/* ============================================================
   SCROLL & MISC
   ============================================================ */
.divider { height: 8px; background: transparent; }
.spacer-lg { height: 32px; }

/* ====== PAY SHEET (Stripe Elements) ====== */
.pay-backdrop[hidden] { display: none !important; }
.pay-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  z-index: 90;
  animation: fadeIn 0.2s ease-out;
}
.pay-sheet[hidden] { display: none !important; }
.pay-sheet {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: var(--max-w);
  background: #fff;
  border-radius: 24px 24px 0 0;
  z-index: 91;
  padding: 28px 22px 32px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.18);
  animation: slideUpCentered 0.32s var(--e-spring);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@keyframes slideUpCentered {
  from { transform: translate(-50%, 100%); }
  to   { transform: translate(-50%, 0); }
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.pay-sheet__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.05);
  display: grid; place-items: center;
  color: var(--text);
  z-index: 1;
}
.pay-sheet__close:active { background: rgba(0,0,0,0.1); }

.pay-sheet__head {
  text-align: center;
  padding-top: 8px;
}
.pay-sheet__title {
  font-size: 14px;
  color: var(--text-2);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.pay-sheet__amount {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 6px 0 4px;
}
.pay-sheet__sub {
  font-size: 11.5px;
  color: var(--text-3);
  font-weight: 600;
}

/* 🪤 `flex-shrink: 0` NO es adorno. El sheet es una columna flex que scrollea,
   y por omision sus hijos se ENCOGEN: el formulario de Stripe —que ahora trae
   Link y el bloque de "Save my information"— quedaba aplastado a menos de su
   altura y su contenido se pintaba ENCIMA del boton de pagar. Con esto la
   caja conserva su alto y el sheet scrollea, que es lo que debia pasar. */
.pay-sheet__body {
  background: var(--card, #fff);
  border: 1px solid var(--border, #E5E7EB);
  border-radius: 14px;
  padding: 16px;
  min-height: 240px;
  flex-shrink: 0;
}
#payElement { min-height: 220px; }
.pay-sheet__error {
  margin-top: 12px;
  padding: 10px 14px;
  background: #FEE2E2;
  color: #991B1B;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}

/* El boton de pagar se queda pegado abajo aunque el formulario sea larguisimo:
   nadie deberia tener que adivinar que hay que scrollear para poder pagar. */
.pay-sheet__foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  background: #fff;
  padding-top: 12px;
}
.pay-sheet__foot .btn-primary {
  width: 100%;
  padding: 16px;
  font-size: 15px;
  font-weight: 700;
}
.pay-sheet__foot .btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.pay-sheet__test-hint {
  font-size: 11px;
  color: var(--text-3);
  text-align: center;
  margin: 0;
  padding: 0 8px;
  line-height: 1.5;
}
.pay-sheet__test-hint code {
  background: rgba(0,0,0,0.05);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10.5px;
}

/* ============================================================
   SHEET: NUEVA DIRECCION (buscador de Google + pin ajustable)
   ============================================================
   Dos pasos en la misma ventana, como Rappi: BUSCAR (la píldora, "usar mi
   ubicación", "seleccionar en el mapa") y ya elegida, COMPLETAR (mapa de
   orilla a orilla, tipo de lugar, campos, nombre). El 16-oct-2026 Federico
   mandó las capturas de Rappi y se igualó acomodo, jerarquías y tamaños,
   con nuestros iconos de línea.
   Colores SIEMPRE de la marca (--brand-blue y los neutros): es white-label.
   Los tonos suaves salen de color-mix; donde no existe, la línea de antes
   deja un neutro y no un hueco. */

/* Sheet full-screen: el de "Agregar direccion" es un sheet largo (input + mapa
   + form). En mobile cuando aparece el teclado, un bottom-sheet con max-height
   se descuadraba y el input quedaba fuera de pantalla. Mejor full-screen — se
   ve como una pantalla normal con encabezado arriba y el body scrollea.

   IMPORTANTE: pointer-events: none cuando no esta visible. Sino, aunque
   transform: translateY(100%) lo saque de pantalla, el sheet sigue capturando
   clicks en su area original (top:0, bottom:0 = toda la pantalla) y bloquea
   los botones detras. */
.sheet--addr-new {
  position: fixed;
  top: 0; bottom: 0; left: 0; right: 0;
  max-width: var(--max-w);
  margin: 0 auto;
  background: var(--card);
  z-index: 90;
  transform: translateY(100%);
  /* Sin rebote: el resorte de las hojas chicas, en una de pantalla completa,
     la subía de más y por un instante se veía la pantalla de atrás abajo. */
  transition: transform 0.34s var(--e-out);
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.18);
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  /* Es una pantalla, no una hoja que asoma: sin las esquinas redondas de
     .sheet, que dejaban ver la pantalla de atrás arriba. */
  border-radius: 0;
  /* La orilla del contenido: el mapa la usa para salirse de ella y llegar
     de lado a lado. */
  --orilla: 20px;
  /* El alto del mapa del detalle: el de Rappi mide ~162 pt. */
  --mapa-alto: 162px;
}
.sheet--addr-new.show {
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}
/* 🧨 `.sheet` reserva abajo `safe-bot + 88px` para que una hoja de las que
   suben desde el pie no quede debajo de la barra de navegacion. Esta no sube
   desde el pie: ocupa la pantalla (o es un dialogo centrado en escritorio),
   asi que esos 88px eran una franja blanca DEBAJO del boton de guardar —
   espacio robado al formulario, que es lo que empujaba el tipo de lugar
   (obligatorio) fuera de la vista. El aire del pie lo pone .addr-new-cta. */
.sheet--addr-new {
  padding-bottom: 0;
  /* `.sheet` la topa en 92dvh porque las que suben desde el pie no deben
     tapar la pantalla entera. Esta si: va de `top: 0` a `bottom: 0`, y con el
     tope quedaba 65px corta — se veia una franja de la pantalla de atras
     justo debajo del boton de guardar. */
  max-height: none;
}

/* ---------- Encabezado: "<" redonda + título a la izquierda (Rappi) ----------
   Sin raya fija: la raya fina sale sólo cuando el contenido pasa por debajo
   (.con-scroll, la pone el JS al hacer scroll). El botón comparte estilo con
   la X de la lista (.addr-x, arriba). */
.addr-new-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px var(--orilla);
  padding-top: calc(var(--safe-top, 0px) + 18px);
  flex-shrink: 0;
  background: var(--card);
  position: relative;
  z-index: 2;
  transition: box-shadow 0.2s var(--e-smooth);
}
.sheet--addr-new.con-scroll .addr-new-head { box-shadow: 0 1px 0 var(--border); }
/* Buscando, la píldora va pegadita al encabezado (Rappi: ~9 pt). */
.sheet--addr-new.en-buscar .addr-new-head { padding-bottom: 3px; }
.addr-new-head h2 {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.addr-new-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0 var(--orilla) 28px;
}

/* Cada paso entra suave al aparecer (al pasar de buscar al detalle y de
   regreso): corto, para que se sienta que cambió, no que saltó. */
@keyframes addrAparece {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
.addr-new-buscar:not([hidden]),
.addr-new-detalle:not([hidden]) { animation: addrAparece 0.26s var(--e-out) both; }
.addr-new-buscar[hidden],
.addr-new-detalle[hidden] { display: none; }

/* ---------- Paso 1: el buscador ----------
   La píldora blanca con sombra suave de Rappi, lupa oscura y la tachita en
   círculo gris. 🧨 Antes era una caja dentro de otra: la regla de los inputs
   del formulario también le caía al buscador. Los inputs del formulario se
   pintan por .addr-new-campo y el buscador no hereda nada. */
.addr-new-buscar { padding-top: 6px; }
.addr-new-search {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 6px 0 18px;
  background: var(--card);
  /* Sin borde que se vea (como Rappi): la sombra la separa del fondo. El
     borde casi blanco sólo la dibuja donde no hay color-mix. */
  border: 1px solid var(--surface);
  border-color: color-mix(in srgb, var(--border) 55%, transparent);
  border-radius: 100px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  transition: box-shadow 0.18s var(--e-smooth);
}
/* Con el foco la sombra crece un poco: se nota dónde se escribe sin el
   anillo de color. */
.addr-new-search:focus-within { box-shadow: 0 8px 26px rgba(0,0,0,0.13); }
.addr-new-search > svg {
  flex-shrink: 0;
  color: var(--text);
}
.addr-new-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  outline: 0;
  font-family: inherit;
  /* 16px o más: con menos, Safari del iPhone le hace zoom a la página. */
  font-size: 17px;
  color: var(--text);
  /* iOS quitar autocomplete del sistema (que abre overlay nativo) */
  -webkit-text-fill-color: var(--text);
}
/* Oscuro como el de Rappi: con el cursor delante se lee como invitación, y
   la tachita (que sólo sale con texto) distingue escrito de vacío. */
.addr-new-search input::placeholder { color: var(--text); -webkit-text-fill-color: var(--text); opacity: 1; }
/* La tachita: 44px de toque, círculo gris con la X oscura. Sin texto no existe. */
.addr-new-search__borrar {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  color: var(--text);
}
.addr-new-search__borrar svg {
  width: 22px; height: 22px;
  padding: 6px;
  border-radius: 50%;
  background: var(--surface);
}
.addr-new-search input:placeholder-shown + .addr-new-search__borrar { display: none; }

.addr-new-hint {
  display: block;
  margin: 12px 4px 0;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--text-2);
}
.addr-new-hint:empty { display: none; }

/* Sugerencias: como Rappi, sin icono a la izquierda; principal en negritas,
   abajo el resto en gris, raya fina entre una y otra, y a la derecha la
   pastilla con la distancia (cuando la sabemos). */
.addr-new-suggestions[hidden] { display: none !important; }
.addr-new-suggestions {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
}
.addr-suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  transition: background 0.12s ease;
}
.addr-suggestion-item:last-child { border-bottom: 0; }
.addr-suggestion-item:active,
.addr-suggestion-item:hover {
  background: var(--surface);
}
.addr-suggestion-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.addr-suggestion-item strong,
.addr-suggestion-item small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.addr-suggestion-item strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 19px;
}
.addr-suggestion-item small {
  font-size: 13px;
  color: var(--texto-sec);
  line-height: 17px;
}
.addr-suggestion-dist {
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 100px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--texto-sec);
  white-space: nowrap;
}

/* "Usar mi ubicación actual" y "Seleccionar en el mapa": renglones de la
   lista con su icono (sin círculo, como Rappi) y raya fina abajo. */
.addr-new-opcion {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 10px 0;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  transition: background 0.12s ease;
}
.addr-new-opcion:first-of-type { margin-top: 6px; }
.addr-new-opcion:active { background: var(--surface); }
.addr-new-uselocation:disabled { cursor: progress; }
/* Mientras hay sugerencias, la lista manda: la ubicación se hace a un
   lado y "Seleccionar en el mapa" queda después de la lista, separado por
   una franja gris de lado a lado (como Rappi). */
.addr-new-suggestions:not([hidden]) ~ .addr-new-uselocation { display: none; }
.addr-new-suggestions:not([hidden]) ~ .addr-new-enmapa {
  position: relative;
  margin-top: 8px;
}
.addr-new-suggestions:not([hidden]) ~ .addr-new-enmapa::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--orilla));
  right: calc(-1 * var(--orilla));
  top: -8px;
  height: 8px;
  background: var(--surface);
}
.addr-new-uselocation__icono {
  position: relative;
  flex-shrink: 0;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  color: var(--text);
}
.addr-new-uselocation__giro {
  display: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2.5px solid var(--border);
  border-color: color-mix(in srgb, var(--brand-blue) 25%, transparent);
  border-top-color: var(--brand-blue);
  animation: addrGira 0.8s linear infinite;
}
@keyframes addrGira { to { transform: rotate(360deg); } }
.addr-new-uselocation.cargando .addr-new-uselocation__icono svg { display: none; }
.addr-new-uselocation.cargando .addr-new-uselocation__giro { display: block; }
.addr-new-uselocation__texto {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.addr-new-uselocation__texto strong { font-size: 15px; font-weight: 500; line-height: 1.3; }
.addr-new-uselocation__texto small { font-size: 13px; line-height: 1.35; color: var(--text-2); }
.addr-new-uselocation__texto small:empty { display: none; }
.addr-new-uselocation.con-error small { color: var(--danger); }
/* "Powered by Google": centrado y gris, como lo pide Google cuando sus
   sugerencias no van sobre un mapa suyo. */
.addr-new-google {
  margin: 22px 0 8px;
  text-align: center;
  font-size: 11px;
  color: var(--text-3);
}
/* Todo en el mismo gris claro, "Google" en peso medio (como Rappi). */
.addr-new-google__logo {
  margin-left: 2px;
  font-size: 12.5px;
  font-weight: 500;
  color: inherit;
}

/* ---------- Paso 2: el detalle ----------
   El mapa de orilla a orilla arriba (sin tarjeta), la dirección con
   "Cambiar" y una raya fina, como Rappi. */
/* 🧨 Uno de 220 que recibía gestos se comía la rueda del ratón: le hacía
   zoom al mapa en vez de bajar por el formulario. Ahora es una vista previa
   que NO escucha gestos (`gestureHandling: 'none'` en el JS) y para moverla
   está "Ajustar ubicación de entrega". */
.addr-new-map {
  position: relative;
  height: var(--mapa-alto);
  /* Un poco de aire bajo el encabezado, como el de Rappi (16 pt). */
  margin: 16px calc(-1 * var(--orilla)) 0;
  background: var(--surface);
  /* Sin esto Safari no recorta el mapa de Google dentro de su caja. */
  isolation: isolate;
  overflow: hidden;
}
.addr-new-map[hidden] { display: none; }
.addr-new-map__lienzo { position: absolute; inset: 0; }
/* El marcador: círculo blanco con sombra, el icono del tipo de lugar
   adentro y una puntita abajo. La PUNTA cae en el centro exacto del mapa
   (el mapa siempre se centra en la dirección). */
.addr-new-map__marcador {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 46px; height: 46px;
  margin-left: -23px;
  margin-bottom: 7px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 4px 12px rgba(0,0,0,0.24);
  pointer-events: none;
  z-index: 1;
}
.addr-new-map__marcador::after {
  content: '';
  position: absolute;
  left: 50%; top: 100%;
  margin: -2px 0 0 -7px;
  border: 7px solid transparent;
  border-top: 9px solid var(--card);
  border-bottom: 0;
  filter: drop-shadow(0 2px 1.5px rgba(0,0,0,0.16));
}
.addr-new-map__marcador svg { width: 22px; height: 22px; }
.addr-new-map__ajustar {
  position: absolute;
  left: 50%;
  /* Arriba de los créditos de Google (van en el borde de abajo y no se
     pueden tapar). */
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 12px;
  border-radius: 100px;
  border: 0;
  background: var(--card);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0,0,0,0.16);
  transition: transform 0.18s var(--e-spring);
}
/* 44px de toque aunque se vea de 24. */
.addr-new-map__ajustar::before { content: ''; position: absolute; inset: -10px 0; }
.addr-new-map__ajustar:active { transform: translateX(-50%) scale(0.96); }
.addr-new-elegida__fila {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0 12px;
  border-bottom: 1px solid var(--border);
}
/* Con el mapa arriba, el círculo con pin repetía lo que el mapa ya enseña.
   Sólo se queda si Google no cargó. */
.addr-new-map:not([hidden]) + .addr-new-elegida__fila .addr-new-elegida__icono { display: none; }
.addr-new-elegida__icono {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface);
  color: var(--text);
}
.addr-new-elegida__texto {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
/* Un renglón cada uno, con "…" si no cabe (como Rappi): la dirección
   completa ya se ve en el mapa y en la lista. */
.addr-new-elegida__texto strong {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.addr-new-elegida__texto small {
  font-size: 14px;
  line-height: 1.3;
  color: var(--texto-sec);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.addr-new-elegida__texto small:empty { display: none; }
.addr-new-elegida__texto .addr-new-elegida__nota { color: var(--brand-blue); font-weight: 600; white-space: normal; }
.addr-new-elegida__nota[hidden] { display: none; }
/* "Cambiar": la pastilla gris de Rappi. Se ve de 28, toca de 44. */
.addr-new-elegida__cambiar {
  position: relative;
  flex-shrink: 0;
  height: 28px;
  padding: 0 10px;
  border-radius: 100px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.18s var(--e-spring);
}
.addr-new-elegida__cambiar::before { content: ''; position: absolute; inset: -8px 0; }
.addr-new-elegida__cambiar:active { transform: scale(0.96); }

/* ---------- Tipo de lugar (selector que abre su hoja) ---------- */
.addr-new-tipo { scroll-margin: 90px; }
.addr-new-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 0 12px 0 16px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  text-align: left;
  font-family: inherit;
  font-size: 17px;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.18s var(--e-smooth);
}
.addr-new-selector__valor {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.addr-new-selector__valor.vacio { color: var(--text-3); }
.addr-new-selector__flecha {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface);
  color: var(--text);
}
/* Lo obligatorio no se grita de entrada: sólo si intenta guardar sin
   elegir, la etiqueta y el selector se pintan en rojo suave. */
.addr-new-tipo.falta .addr-new-label { color: var(--danger); }
.addr-new-tipo.falta .addr-new-selector {
  border-color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 55%, var(--border));
}

/* ---------- Campos del lugar, indicaciones y nombre ----------
   Como los de Rappi: blancos con borde gris redondeado (no rellenos),
   etiqueta arriba, pegadita a su campo, y "(opcional)" donde aplica. */
.addr-new-campo { margin-top: 28px; }
.addr-new-campo.addr-new-tipo { margin-top: 17px; }
.addr-new-label {
  display: block;
  margin: 0 0 3px;
  font-size: 15px;
  line-height: 18px;
  font-weight: 400;
  color: var(--text);
  transition: color 0.18s var(--e-smooth);
}
.addr-new-opc { font-weight: 400; color: var(--text-3); }
.addr-new-campo input[type="text"],
.addr-new-campo textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  font-family: inherit;
  /* 16px o más: con menos, Safari del iPhone le hace zoom a la página. */
  font-size: 17px;
  line-height: 1.4;
  color: var(--text);
  outline: 0;
  resize: none;
  transition: border-color 0.18s var(--e-smooth), box-shadow 0.18s var(--e-smooth);
}
.addr-new-campo textarea { overflow: hidden; }
.addr-new-campo input::placeholder,
.addr-new-campo textarea::placeholder { color: var(--text-3); }
.addr-new-campo input[type="text"]:focus,
.addr-new-campo textarea:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-blue) 12%, transparent);
}
/* Marcado se queda rojo aunque tenga el foco (al tocar el botón apagado se
   le pone el cursor ahí): con el azul del foco no se notaba qué faltaba. */
.addr-new-campo input[type="text"].falta,
.addr-new-campo input[type="text"].falta:focus {
  border-color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 55%, transparent);
  background: var(--card);
  background: color-mix(in srgb, var(--danger) 6%, var(--card));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 12%, transparent);
}
/* Las pastillas rápidas del nombre: tres iguales, como Rappi. Se ven de 28
   y tocan de 44. 🧨 Sin overflow:hidden: recortaba el ::before y el toque
   real se quedaba en lo que se ve. Los tres textos son cortos y caben a 320. */
.addr-new-nombres {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
}
.addr-new-nombre-pill {
  position: relative;
  min-width: 0;
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--card);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  transition: border-color 0.18s var(--e-smooth), background 0.18s var(--e-smooth), transform 0.18s var(--e-spring);
}
.addr-new-nombre-pill::before { content: ''; position: absolute; inset: -8px 0; }
.addr-new-nombre-pill:active { transform: scale(0.97); }
.addr-new-nombre-pill.active {
  border-color: var(--text);
  box-shadow: inset 0 0 0 1px var(--text);
}

/* ---------- El botón de abajo ----------
   Fijo al pie (la ventana es una columna: el cuerpo scrollea y esto no), de
   orilla a orilla con el área segura del iPhone. Sin raya arriba (como
   Rappi): lo de atrás se desvanece al pasar por debajo. Apagado se ve gris
   claro y DICE lo que falta. En el paso de buscar no está (.en-buscar). */
.addr-new-cta {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding: 8px var(--orilla);
  padding-bottom: calc(var(--safe-bot, 0px) + 8px);
  background: var(--card);
}
.addr-new-cta::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 100%;
  height: 22px;
  background: linear-gradient(to top, var(--card), rgba(255,255,255,0));
  background: linear-gradient(to top, var(--card), color-mix(in srgb, var(--card) 0%, transparent));
  pointer-events: none;
}
.addr-new-cta[hidden],
.sheet--addr-new.en-buscar .addr-new-cta { display: none; }
.addr-new-cta .btn-primary {
  width: 100%;
  min-height: 50px;
  padding: 0 22px;
  font-size: 17px;
  font-weight: 600;
  /* Sin la sombra de .btn-primary: es el azul de TE escrito a mano (con
     otra marca, un halo azul) y el de Rappi no lleva. */
  box-shadow: none;
}
.addr-new-cta .btn-primary.btn-primary--apagado {
  background: var(--surface) !important;
  color: var(--text-2) !important;
  box-shadow: none !important;
}
.addr-new-cta .btn-primary span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Paso 3: el mapa con el pin fijo ----------
   Para ajustar la dirección o escoger una ("Seleccionar en el mapa"). El
   pin está CLAVADO en el centro y lo que se mueve es el mapa. Con un pin
   arrastrable, al mover el mapa el pin se queda en su coordenada y se va
   de pantalla: se pierde. Así no hay manera de perderlo. */
.addr-pin-edit {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.addr-pin-edit[hidden] { display: none; }
.addr-pin-edit__marco {
  position: relative;
  flex: 1;
  min-height: 320px;
  background: var(--surface);
}
.addr-pin-edit__map { position: absolute; inset: 0; }
.addr-pin-edit__pin {
  position: absolute;
  left: 50%;
  /* El borde de ABAJO cae en el centro exacto del mapa: la punta del asta es
     la coordenada que se guarda, no el centro del globo. */
  bottom: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;   /* el arrastre es del mapa, no del pin */
  z-index: 2;
}
/* El globo es de la marca, letra blanca, como el botón de la marca. */
.addr-pin-edit__globo {
  background: var(--brand-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,0.28);
}
.addr-pin-edit__asta {
  position: relative;
  width: 3px;
  height: 22px;
  background: var(--brand-blue);
  border-radius: 0 0 2px 2px;
}
/* La sombrita en el piso: dice dónde cae la punta. */
.addr-pin-edit__asta::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -3px;
  width: 12px; height: 6px;
  margin-left: -6px;
  border-radius: 50%;
  background: rgba(0,0,0,0.25);
  z-index: -1;
}
/* Mismo pie que el formulario. 🧨 Antes no sumaba el área segura (creía que
   la hoja ya la reservaba, y esta hoja la pone en 0): en el iPhone el botón
   de confirmar quedaba encima de la raya de inicio. */
.addr-pin-edit__cta {
  flex-shrink: 0;
  padding: 14px var(--orilla);
  padding-bottom: calc(var(--safe-bot, 0px) + 8px);
  background: var(--card);
  border-top: 1px solid var(--border);
}
.addr-pin-edit__hint {
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-2);
}
.addr-pin-edit__cta .btn-primary {
  width: 100%;
  min-height: 50px;
  padding: 0 22px;
  font-size: 17px;
  font-weight: 600;
  box-shadow: none;
}

/* Navegando con Tab (en la compu), el anillo de foco es de la marca y no el
   azul del navegador. El buscador y los campos ya pintan el suyo. */
.sheet--addr-new :focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 2px; }
.addr-new-search input:focus-visible,
.addr-new-campo input:focus-visible,
.addr-new-campo textarea:focus-visible { outline: 0; }

/* iPhone SE de primera (320): 4px menos de orilla. */
@media (max-width: 340px) {
  .sheet--addr-new { --orilla: 16px; }
  .addr-new-nombre-pill { font-size: 14px; }
}
/* Pantalla chaparra (SE, o el teclado arriba en Android): el mapa cede alto
   para que el tipo de lugar se alcance a ver sin bajar. */
@media (max-height: 680px) {
  .sheet--addr-new { --mapa-alto: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  .sheet--addr-new { transition: none; }
  .addr-new-buscar:not([hidden]),
  .addr-new-detalle:not([hidden]) { animation: none; }
}

/* Google Places Autocomplete dropdown — mismo z-index que el sheet para que se vea sobre el mapa */
.pac-container {
  z-index: 200 !important;
  border-radius: 12px;
  margin-top: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border: 1px solid var(--border);
  font-family: inherit;
}

/* ============================================================
   SHEET: SELECTOR DE HORARIO (programar pedido)
   ============================================================ */
.sheet--time {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: var(--max-w);
  margin: 0 auto;
  background: var(--card);
  border-radius: 22px 22px 0 0;
  z-index: 90;
  transform: translateY(100%);
  transition: transform 0.3s var(--e-spring);
  display: flex;
  flex-direction: column;
  max-height: 90dvh;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.18);
}
.sheet--time.show { transform: translateY(0); }
/* Sin los 88 de abajo de .sheet (son para el botón flotante de la hoja del
   platillo): aquí "Aplicar" va dentro y dejaban un hueco blanco debajo. La
   zona de la rayita ya la cubre .time-sheet-cta. */
.sheet.sheet--time { padding-bottom: 0; }
/* La hoja de "Método de pago" (y la de notas): el mismo chasis que la de horario. */
.sheet--pago,
.sheet--notas {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: var(--max-w);
  margin: 0 auto;
  background: var(--card);
  border-radius: 22px 22px 0 0;
  z-index: 90;
  transform: translateY(100%);
  transition: transform 0.3s var(--e-spring);
  display: flex;
  flex-direction: column;
  max-height: 90dvh;
  padding-bottom: var(--safe-bot);
  box-shadow: 0 -10px 40px rgba(0,0,0,0.18);
}
.sheet--pago.show,
.sheet--notas.show { transform: translateY(0); }
/* La de notas trae su "Guardar" adentro (.time-sheet-cta ya cubre la rayita). */
.sheet.sheet--notas { padding-bottom: 0; }

/* ============================================================
   SHEET: RECIBO (mismo chasis que sheet--time)
   ============================================================ */
.sheet--receipt,
.sheet--report,
.sheet--rating {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: var(--max-w);
  margin: 0 auto;
  background: var(--card);
  border-radius: 22px 22px 0 0;
  z-index: 90;
  transform: translateY(100%);
  transition: transform 0.3s var(--e-spring);
  display: flex;
  flex-direction: column;
  max-height: 90dvh;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.18);
}
.sheet--receipt.show,
.sheet--report.show,
.sheet--rating.show { transform: translateY(0); }
/* Estos sheets traen la clase base .sheet (padding-bottom: safe-bot + 88px) que
   dejaba un hueco muerto debajo de los botones. Los footers ya llevan su propio
   safe-area, así que aquí lo anulamos y el sheet termina pegado al contenido. */
.sheet--receipt, .sheet--report, .sheet--rating { padding-bottom: 0; }
.sheet--rating .receipt-body { padding-bottom: calc(var(--safe-bot, 0px) + 18px); }

.receipt-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px 14px;
  border-bottom: 1px solid var(--border);
}
.receipt-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}

.receipt-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
}
.receipt-paper {
  background: var(--surface);
  border-radius: 14px;
  padding: 18px 16px;
  font-size: 13px;
  color: var(--text);
}
.receipt-brand { text-align: center; margin-bottom: 12px; }
.receipt-brand__name { font-size: 17px; font-weight: 800; }
.receipt-brand__rfc, .receipt-brand__store, .receipt-brand__addr {
  font-size: 12px; color: var(--text-2); margin-top: 2px;
}
.receipt-meta {
  font-size: 12.5px; line-height: 1.7; color: var(--text);
}
.receipt-meta span { color: var(--text-3); }
.receipt-divider {
  border-top: 1px dashed var(--border);
  margin: 14px 0;
}
.receipt-item { margin-bottom: 8px; }
.receipt-item__head {
  display: flex; align-items: baseline; gap: 8px;
}
.receipt-item__qty {
  font-weight: 700; min-width: 28px; color: var(--brand-blue);
}
.receipt-item__name { flex: 1; font-weight: 600; }
.receipt-item__price { font-weight: 700; }
.receipt-item__detail {
  font-size: 11px; color: var(--text-2); padding-left: 32px; margin-top: 2px;
}
.receipt-totals { margin-top: 4px; }
.receipt-total-row {
  display: flex; justify-content: space-between; padding: 4px 0;
  font-size: 13px;
}
.receipt-total-row--disc { color: var(--success, #16a34a); }
.receipt-total-row--grand {
  font-size: 15px; font-weight: 800;
  border-top: 1px solid var(--text); padding-top: 8px; margin-top: 6px;
}
.receipt-footer-note {
  font-size: 10.5px; color: var(--text-3);
  text-align: center; margin-top: 12px; line-height: 1.4;
}

.receipt-foot {
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px 16px calc(var(--safe-bot, 0px) + 16px);
  border-top: 1px solid var(--border);
}
.receipt-foot__row { display: flex; gap: 8px; }
.receipt-foot .btn-secondary, .receipt-foot .btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.receipt-foot__row .btn-secondary { flex: 1; }
.receipt-foot > .btn-primary { width: 100%; }

/* Calificar pedido (sheet de estrellas, reusa .receipt-head/body) */
.rating-q { font-size: 15px; font-weight: 700; text-align: center; margin: 4px 0 14px; }
.rating-stars { display: flex; justify-content: center; gap: 6px; margin-bottom: 6px; }
.rating-star { background: none; border: none; padding: 4px; cursor: pointer; color: #d1d5db; line-height: 0; transition: color .12s, transform .12s; }
.rating-star.is-on { color: #f5b301; }
.rating-star:active { transform: scale(0.86); }
.rating-follow { margin-top: 10px; }
.rating-msg { font-size: 15px; font-weight: 700; text-align: center; }
.rating-sub { font-size: 13px; color: var(--text-2); text-align: center; margin-top: 4px; line-height: 1.45; }
/* Calificar cada producto (👍/👎 estilo Uber Eats) */
.rating-products-title { font-size: 13.5px; font-weight: 700; color: var(--text); text-align: center; margin: 18px 0 10px; }
.rating-products { display: flex; flex-direction: column; gap: 8px; }
.rating-product {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  background: var(--surface);
  border-radius: 12px;
}
.rating-product__name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.3; }
.rating-product__thumbs { display: flex; gap: 8px; flex-shrink: 0; }
.rating-thumb {
  width: 38px; height: 38px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border);
  background: var(--card);
  border-radius: 50%;
  color: var(--text-2);
  cursor: pointer;
  transition: transform .12s var(--e-spring), background .15s, border-color .15s, color .15s;
}
.rating-thumb svg { width: 18px; height: 18px; }
.rating-thumb:active { transform: scale(0.86); }
.rating-thumb--up.is-on { background: #dcfce7; border-color: #22c55e; color: #16a34a; }
.rating-thumb--down.is-on { background: #fee2e2; border-color: #ef4444; color: #dc2626; }
.btn-text { background: none; border: none; color: var(--text-2); font-size: 14px; font-weight: 600; cursor: pointer; padding: 8px; }

/* Reportar un problema (formulario dentro del sheet, reusa .receipt-head/body/foot) */
.report-intro { font-size: 13px; color: var(--text-2); line-height: 1.5; margin: 0 0 4px; }
.report-label { font-size: 13px; font-weight: 800; margin: 18px 0 8px; }
.report-label--first { margin-top: 8px; }
.report-opt { color: var(--text-3); font-weight: 500; font-size: 12px; }
.report-reasons { display: flex; flex-direction: column; gap: 8px; }
.report-reason {
  text-align: left; padding: 13px 14px; border: 1.5px solid var(--border);
  border-radius: 12px; background: var(--surface); font-size: 14px; font-weight: 600;
  color: var(--text); cursor: pointer; transition: border-color .15s, color .15s, background .15s;
}
.report-reason.is-active {
  border-color: var(--brand-blue); color: var(--brand-blue);
  background: color-mix(in srgb, var(--brand-blue) 7%, transparent);
}
.report-items { display: flex; flex-direction: column; }
.report-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 2px; cursor: pointer;
  border-bottom: 1px solid var(--border);
}
.report-item:last-child { border-bottom: none; }
.report-item input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 22px; height: 22px; flex-shrink: 0; cursor: pointer;
  border: 2px solid var(--border); border-radius: 6px; background: var(--surface);
  position: relative; transition: background .15s, border-color .15s;
}
.report-item input[type="checkbox"]:checked { background: var(--brand-blue); border-color: var(--brand-blue); }
.report-item input[type="checkbox"]:checked::after {
  content: ''; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.report-item__qty { font-weight: 700; color: var(--brand-blue); min-width: 26px; }
.report-item__name { font-weight: 600; font-size: 14px; }
.report-empty { color: var(--text-3); font-size: 13px; padding: 6px 0; }
.report-note {
  width: 100%; border: 1.5px solid var(--border); border-radius: 12px; padding: 12px;
  font-size: 14px; font-family: inherit; resize: vertical; background: var(--surface); color: var(--text);
}
.report-note:focus { outline: none; border-color: var(--brand-blue); }

/* (Estilos de invoice-form removidos — flujo postergado) */
.time-sheet-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 18px 12px;
  border-bottom: 1px solid var(--border);
}
.time-sheet-head h2 {
  font-size: 17px;
  font-weight: 800;
  margin: 0;
}
.time-sheet-body {
  padding: 16px 18px;
  overflow-y: auto;
  flex: 1;
}
.time-asap-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.18s var(--e-spring);
}
.time-asap-card.active {
  border-color: var(--text);
  background: var(--surface);
}
.time-asap-card:active { transform: scale(0.99); }
/* Sin el cuadro azul, como los íconos del pago (minimalista, 30-oct). */
.time-asap-card__icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  color: var(--text);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.time-asap-card__icon svg { width: 22px; height: 22px; }
.time-asap-card__body {
  flex: 1;
  text-align: left;
}
.time-asap-card__title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}
.time-asap-card__sub {
  font-size: 12.5px;
  color: var(--text-2);
  margin-top: 2px;
}
.time-asap-card__radio {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: grid; place-items: center;
  color: transparent;
  flex-shrink: 0;
}
.time-asap-card.active .time-asap-card__radio {
  border-color: var(--text);
  background: var(--text);
  color: var(--card);
}
.time-sheet-section-head {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 22px 0 10px;
}
.time-days-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.time-days-row::-webkit-scrollbar { display: none; }
.time-day-pill {
  flex-shrink: 0;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 9px 14px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: all 0.18s;
}
.time-day-pill.active {
  background: var(--text);
  color: var(--card);
  border-color: var(--text);
}
.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.time-slot {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 6px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: all 0.18s;
}
.time-slot:hover { border-color: var(--text-3); }
.time-slot.active {
  background: var(--text);
  color: var(--card);
  border-color: var(--text);
}
.time-slots-empty {
  text-align: center;
  padding: 24px 12px;
  color: var(--text-2);
  font-size: 13.5px;
}

/* ============================================================
   TIME PICKER ESTILO IPHONE (scroll wheels)
   3 columnas verticales: Día / Hora / Minuto. Cada una scrollea con
   snap. La banda central marca el item seleccionado.
   ============================================================ */
.time-wheels {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
  padding: 0 8px;
  /* 7 items visibles a 44px = 308 (antes 5 = 220): más horas a la vista y
     menos scroll (Federico, 30-oct). Los 3 espaciadores de cada lado
     (renderWheelColumn) son justo los que pide 7 para centrar el primero y
     el último en la banda. */
  height: 308px;
  background: var(--surface);
}
/* En la hoja de horario la rueda toma el lugar que haya, de 5 a 7 renglones
   (220 a 308): en un teléfono alto se ven 7, en uno más bajo se encoge antes
   de que el cuerpo tenga que hacer scroll o "Aplicar" la tape. */
#sheetTime .time-sheet-body { display: flex; flex-direction: column; }
#sheetTime .time-sheet-body > * { flex-shrink: 0; }
/* Con "Lo antes posible" escogido, la rueda se ve en espera: enseña las horas
   pero apagadita, hasta que la toque (30-oct). */
.time-wheels--en-espera .time-wheels__list { opacity: 0.4; }
.time-wheels__list { transition: opacity 0.2s; }
#sheetTime .time-wheels {
  flex: 0 1 308px;
  height: auto;
  min-height: 220px;
  border-radius: 16px;
  overflow: hidden;
}
.time-wheels.is-empty { display: none; }
.time-wheels__band {
  position: absolute;
  top: 50%; left: 8px; right: 8px;
  height: 44px;
  transform: translateY(-50%);
  background: var(--card);
  border-radius: 10px;
  pointer-events: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  z-index: 0;
}
.time-wheels__col {
  position: relative;
  z-index: 1;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-behavior: auto;
  /* Mascara para fundir items lejanos al centro (efecto iPhone) */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 25%, #000 75%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 25%, #000 75%, transparent 100%);
}
.time-wheels__col::-webkit-scrollbar { display: none; }
.time-wheels__list {
  display: flex;
  flex-direction: column;
}
.time-wheels__item {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: center;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-2);
  transition: color 0.18s, transform 0.18s, font-weight 0.18s;
  user-select: none;
  -webkit-user-select: none;
}
.time-wheels__item.is-active {
  color: var(--text);
  font-weight: 800;
  transform: scale(1.02);
}
.time-wheels__item--empty { color: var(--text-3); font-weight: 500; }
.time-wheels__spacer { height: 44px; flex-shrink: 0; }

.time-sheet-cta {
  padding: 14px 18px calc(var(--safe-bot, 0px) + 16px);
  border-top: 1px solid var(--border);
}
.time-sheet-cta .btn-primary { width: 100%; }

/* ============================================================
   CART: cart-subtotal-bar removido — el subtotal vive ahora dentro del CTA.
   ============================================================ */

/* ============================================================
   CHECKOUT: order summary toggleable (estilo Uber Eats)
   Linea con conteo+total siempre visible. Al tocar, despliega items.
   ============================================================ */
.co-items {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  padding: 14px 16px;
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--sh-soft);
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.18s var(--e-smooth);
}
.co-items:active { background: var(--surface); }
.co-items__head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.co-items__head .co-row__icon { flex-shrink: 0; }
.co-items__head .co-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.co-items__chev {
  color: var(--text-3);
  transition: transform 0.22s var(--e-spring);
  flex-shrink: 0;
}
.co-items.is-open .co-items__chev { transform: rotate(180deg); }
.co-items__list {
  display: block;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
/* CRITICAL: el atributo [hidden] no aplica si hay display:block. Forzarlo. */
.co-items__list[hidden] { display: none !important; }
.co-items__item {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}
.co-items__item:last-child { border-bottom: 0; }
.co-items__item-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.co-items__qty {
  font-size: 13px;
  font-weight: 800;
  color: var(--brand-blue);
  flex-shrink: 0;
  min-width: 28px;
}
.co-items__name {
  flex: 1;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.co-items__price {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}
.co-items__detail {
  margin-top: 6px;
  padding-left: 36px;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.5;
}
.co-items__detail-line { display: block; }
.co-items__detail-line b { color: var(--text); font-weight: 700; }

/* ============================================================
   CHECKOUT: upsell de postres / extras (estilo Uber Eats)
   Aparece entre el cupon y la propina, antes del resumen.
   ============================================================ */
.co-upsell {
  margin-bottom: 14px;
  padding: 14px 0 14px 16px;
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--sh-soft);
}
.co-upsell__head {
  padding-right: 16px;
  margin-bottom: 12px;
}
.co-upsell__title {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}
.co-upsell__sub {
  display: block;
  font-size: 12px;
  color: var(--text-2);
  margin-top: 2px;
}
.co-upsell__row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-right: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.co-upsell__row::-webkit-scrollbar { display: none; }
.co-upsell-card {
  flex: 0 0 132px;
  scroll-snap-align: start;
  background: var(--surface);
  border-radius: 14px;
  border: 1.5px solid var(--border);
  padding: 8px 8px 10px;
  text-align: left;
  position: relative;
  cursor: pointer;
  transition: transform 0.18s var(--e-spring), border-color 0.18s;
}
.co-upsell-card:active { transform: scale(0.97); border-color: var(--brand-blue); }
.co-upsell-card__thumb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--card);
  display: grid; place-items: center;
  margin-bottom: 8px;
}
.co-upsell-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.co-upsell-card__letter {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
}
.co-upsell-card__name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.co-upsell-card__price {
  font-size: 12px;
  font-weight: 800;
  color: var(--brand-blue);
}
.co-upsell-card__plus {
  position: absolute;
  top: 12px; right: 12px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--text);
  color: var(--card);
  display: grid; place-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ============================================================
   CHECKOUT: tip pills (movidas del cart)
   ============================================================ */
.co-tip {
  margin-bottom: 12px;
  padding: 14px 16px;
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--sh-soft);
}
.co-tip__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.co-tip__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.co-tip__amount {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}
.co-tip-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.co-tip-pill {
  flex: 1 1 auto;
  background: var(--surface);
  border: 1.5px solid transparent;
  border-radius: 18px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.co-tip-pill.active {
  background: var(--text);
  color: var(--card);
  border-color: var(--text);
}

/* ============================================================
   SCREEN: LEGAL (Terminos y Privacidad)
   ============================================================ */
.screen--legal {
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
  padding-bottom: calc(var(--safe-bot) + 40px);
}
.legal-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(250,250,250,0.94);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  padding: calc(var(--safe-top) + 12px) 16px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.legal-header h1 {
  flex: 1;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.legal-back {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card);
  border: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.legal-back:active { transform: scale(0.92); }
.legal-tabs {
  display: flex;
  gap: 8px;
  padding: 14px 16px 8px;
  border-bottom: 1px solid var(--border);
}
.legal-tab {
  flex: 1;
  padding: 10px 14px;
  background: var(--card);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  border: 1.5px solid transparent;
  cursor: pointer;
}
.legal-tab.active {
  background: rgba(26,93,181,0.08);
  color: var(--brand-blue);
  border-color: var(--brand-blue);
}
.legal-content {
  padding: 18px 18px 40px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text);
}
.legal-content h2 {
  font-size: 16px;
  font-weight: 800;
  margin: 22px 0 8px;
  color: var(--text);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { margin-bottom: 10px; color: var(--text-2); }
.legal-content ul { margin: 8px 0 12px 18px; color: var(--text-2); }
.legal-content ul li { margin-bottom: 6px; }
.legal-content a { color: var(--brand-blue); text-decoration: underline; }
.legal-updated {
  font-size: 12px;
  color: var(--text-3);
  font-style: italic;
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: calc(var(--bottomnav-h) + var(--safe-bot) + 12px);
  left: 12px; right: 12px;
  max-width: var(--max-w);
  margin: 0 auto;
  background: var(--text);
  color: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  z-index: 80;
  box-shadow: 0 12px 32px rgba(0,0,0,0.24);
  animation: slideUpFade 0.4s var(--e-spring) both;
}
body.no-bottomnav .cookie-banner {
  bottom: calc(var(--safe-bot) + 12px);
}
@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner__text {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 12px;
  opacity: 0.92;
}
.cookie-banner__link {
  background: transparent;
  border: 0;
  color: var(--brand-yellow);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  font-size: 13px;
  padding: 0;
  margin-left: 4px;
}
.cookie-banner__actions {
  display: flex;
  gap: 8px;
}
.cookie-banner__btn {
  flex: 1;
  padding: 9px 12px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}
.cookie-banner__btn--decline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
}
.cookie-banner__btn--accept {
  background: var(--cta-verde);
  color: #fff;
}

/* ============================================================
   TIME DAY CHIPS — selector horizontal de dias para programar pedido
   ============================================================ */
.time-day-chips {
  display: flex;
  gap: 10px;
  padding: 14px 16px 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.time-day-chips::-webkit-scrollbar { display: none; }
/* Tarjetas como las de Uber (30-oct): el día arriba en negritas y la fecha
   abajo; la escogida con el borde en negro. El borde mide lo mismo en las
   dos para que nada brinque al escoger. */
.time-day-chip {
  flex-shrink: 0;
  min-width: 140px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 14px;
  font-family: inherit;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color 0.18s, transform 0.18s var(--e-spring);
  white-space: nowrap;
}
.time-day-chip__dia { font-size: 16px; font-weight: 700; }
.time-day-chip__fecha { font-size: 15px; font-weight: 400; }
.time-day-chip:active { transform: scale(0.97); }
.time-day-chip.active { border-color: var(--text); }
.time-wheels--compact { padding-top: 4px; }

/* ============================================================
   DESKTOP GRANDE (>= 1440px) — aprovechar pantalla amplia
   ============================================================
   Antes la app quedaba topada a 960px → en monitores 1920px
   se veian gigantes franjas grises a los lados. Ahora:
   - Container hasta 1320px (en vez de 960)
   - Grid de productos 5 cols (en vez de 4)
   Cero impacto en mobile/tablet. */
@media (min-width: 1440px) {
  :root { --max-w: 1320px; }
  .products-grid { grid-template-columns: repeat(5, 1fr); }
}
/* Desktop ULTRA-WIDE (>= 1920px) — monitores 4K, ultrawide */
@media (min-width: 1920px) {
  :root { --max-w: 1600px; }
  .products-grid { grid-template-columns: repeat(6, 1fr); }
}

/* ============================================================
   WEB STORE BANNER — Federico 14-jun-2026 (#185)
   Aparece arriba de todo en la version web (no en Capacitor).
   Sticky, dismissible. Muestra: aviso de stores pendientes,
   botones App Store/Google Play (disabled hasta publicar), QR
   para abrir en movil. Se oculta en mobile (<= 600px) porque
   ahi la idea es que abran la app nativa cuando este lista.
   ============================================================ */
.web-banner {
  /* 🧨 Era `position: sticky; top: 0` con z-index 9000, o sea que se quedaba
     arriba TAPANDO la barra del menu y el encabezado de la tienda. Y ni
     siquiera se quedaba: su contenedor es el <body>, que mide 776 porque las
     pantallas van por dentro — a los 776px de scroll se despegaba sola. Un
     aviso de "bajate la app" no puede ganarle al nombre de la tienda: ahora
     se va con el scroll, como cualquier otro aviso. */
  position: relative;
  z-index: 9000;
  background: linear-gradient(135deg, #0F172A 0%, #1A5DB5 100%);
  color: #fff;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.18);
}
.web-banner__content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 16px;
  position: relative;
}
.web-banner__text {
  flex: 1;
  min-width: 0;
}
.web-banner__title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1.2;
}
.web-banner__icon {
  font-size: 16px;
}
/* El ícono de la app (28-nov), como el de la tienda de apps. */
.web-banner__appicon {
  width: 22px;
  height: 22px;
  border-radius: 22.5%;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.web-banner__sub {
  font-size: 11px;
  opacity: 0.82;
  margin-top: 2px;
  line-height: 1.3;
}
.web-banner__cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.web-banner__store {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 0.15s, transform 0.06s;
  cursor: pointer;
}
.web-banner__store:hover {
  background: rgba(255, 255, 255, 0.22);
}
.web-banner__store:active {
  transform: translateY(1px);
}
.web-banner__store[aria-disabled="true"] {
  cursor: default;
  opacity: 0.7;
}
.web-banner__store[aria-disabled="true"]:hover {
  background: rgba(255, 255, 255, 0.13);
}
.web-banner__store span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.web-banner__store small {
  font-size: 9px;
  font-weight: 600;
  opacity: 0.75;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.web-banner__qr {
  background: white;
  padding: 4px;
  border-radius: 8px;
  height: 56px;
  width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  flex-shrink: 0;
}
.web-banner__qr img {
  width: 100%;
  height: 100%;
  display: block;
}
.web-banner__dismiss {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.12s;
  flex-shrink: 0;
}
.web-banner__dismiss:hover {
  background: rgba(255, 255, 255, 0.14);
  color: white;
}

/* En mobile chico: ocultar QR + simplificar layout. El user ya esta
   en movil — cuando la app este publicada, los botones lo llevan
   directo a la store correcta. */
@media (max-width: 720px) {
  .web-banner__qr { display: none; }
  .web-banner__sub { display: none; }
  .web-banner__content { padding: 8px 12px; gap: 8px; }
  .web-banner__store { padding: 5px 9px; font-size: 11px; }
  .web-banner__store small { display: none; }
}

/* Qué tienda sale lo decide el TELÉFONO (index.html), no el ancho: en
   iPhone App Store, en Android Google Play (antes en <= 480 px se escondía
   Google Play también en Android). El QR, sólo en compu. */
.web-banner:not(.web-banner--compu) .web-banner__qr { display: none; }

/* ============================================================
   SCREEN: BILLETERA
   ============================================================ */
.screen--wallet {
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
  padding-bottom: calc(var(--bottomnav-h) + var(--safe-bot) + var(--bottomnav-aire) + 32px);
}
.wallet-header {
  display: flex; align-items: center; gap: 12px;
  padding: calc(var(--safe-top) + 12px) 20px 14px;
}
.wallet-header h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.6px; }
.wallet-body { padding: 4px 20px 0; }
.wallet-label {
  text-align: center; font-size: 13px; color: var(--text-3);
  margin: 18px 0 10px;
}
/* Bloque gris con las tarjetas dentro, como Rappi */
.wallet-group { background: var(--surface); border-radius: 18px; padding: 10px; }
.wallet-card, .wallet-add {
  display: flex; align-items: center; gap: 14px;
  width: 100%; text-align: left;
  background: var(--card); border-radius: 14px;
  padding: 15px 16px; color: var(--text);
}
.wallet-card + .wallet-card, .wallet-add + .wallet-add { margin-top: 10px; }
.wallet-card:active, .wallet-add:active { opacity: .6; }
/* La marca va como texto corto en pastilla: sin logos de terceros que
   habria que licenciar y mantener. */
.wallet-card__brand {
  flex-shrink: 0; min-width: 46px; height: 30px;
  display: grid; place-items: center;
  border-radius: 7px; background: var(--surface);
  font-size: 10.5px; font-weight: 800; letter-spacing: .3px;
  text-transform: uppercase; color: var(--text-2);
}
.wallet-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wallet-card__num { font-size: 15.5px; font-weight: 700; }
.wallet-card__exp { font-size: 13px; color: var(--text-3); margin-top: 1px; }
.wallet-card__exp.is-expired { color: var(--danger); font-weight: 700; }
.wallet-card__del {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; color: var(--text-3);
}
.wallet-card__del:active { background: var(--action-soft); color: var(--danger); }
.wallet-add__ic { flex-shrink: 0; color: var(--success); }
.wallet-add__label { flex: 1; font-size: 15.5px; font-weight: 700; color: var(--success); }
.wallet-add__plus { flex-shrink: 0; font-size: 22px; font-weight: 400; color: var(--text-2); line-height: 1; }

.wallet-empty { text-align: center; padding: 26px 16px; }
.wallet-empty__ic {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 12px;
  display: grid; place-items: center;
  background: var(--card); color: var(--text-3);
}
.wallet-empty__title { font-size: 16px; font-weight: 800; }
.wallet-empty__sub { font-size: 13.5px; color: var(--text-3); margin-top: 4px; }

.wallet-note {
  font-size: 12.5px; color: var(--text-3); line-height: 1.5;
  text-align: center; margin: 22px 6px 0;
}

/* ============================================================
   SCREEN: EDITAR PERFIL
   ============================================================ */
.screen--editprof {
  max-width: var(--max-w); margin: 0 auto; min-height: 100dvh; background: var(--bg);
  /* Espacio para la barra fija de Guardar, si no tapa el ultimo campo. */
  padding-bottom: calc(var(--safe-bot) + 104px);
}
.ep-header { display: flex; align-items: center; gap: 12px; padding: calc(var(--safe-top) + 12px) 20px 8px; }
.ep-header h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.ep-body { padding: 8px 20px 0; }
.ep-avatar {
  width: 96px; height: 96px; border-radius: 50%; margin: 6px auto 26px;
  display: grid; place-items: center;
  background: var(--surface); color: var(--text-2);
  font-size: 30px; font-weight: 800; letter-spacing: .5px;
}
.ep-label { display: block; font-size: 14.5px; color: var(--text-2); margin: 18px 0 7px; }
.ep-input {
  width: 100%; height: 54px; padding: 0 16px;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  font-family: inherit; font-size: 16px; color: var(--text);
  transition: border-color .18s var(--e-out);
}
.ep-input:focus { outline: none; border-color: var(--brand-blue); }
.ep-input--locked { background: var(--surface); color: var(--text-3); }
.ep-select { appearance: none; -webkit-appearance: none; background-image: none; }
.ep-locked { position: relative; }
.ep-locked__ic { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.ep-hint { font-size: 12.5px; color: var(--text-3); margin: 7px 2px 0; line-height: 1.45; }
.ep-error {
  margin-top: 18px; padding: 12px 14px; border-radius: 12px;
  background: var(--action-soft); color: var(--danger);
  font-size: 14px; font-weight: 600; line-height: 1.45;
}
.ep-delete {
  width: 100%; margin-top: 34px; padding: 15px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--card);
  font-size: 15.5px; font-weight: 700; color: var(--danger);
}
.ep-delete:active { background: var(--action-soft); border-color: var(--danger); }
.ep-save-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  max-width: var(--max-w); margin: 0 auto;
  padding: 12px 20px calc(var(--safe-bot) + 12px);
  background: rgba(250,250,250,0.94);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid var(--border);
}
.ep-save {
  width: 100%; padding: 16px; border-radius: 14px;
  background: var(--cta-verde); color: #fff;
  font-size: 16px; font-weight: 800;
  transition: opacity .18s var(--e-out);
}
/* Deshabilitado mientras no cambies nada: si siempre se ve activo, tocarlo y
   que no pase nada se siente roto. */
.ep-save:disabled { background: var(--border); color: var(--text-3); }
.ep-save:not(:disabled):active { opacity: .8; }

/* ============================================================
   SHEET: PICKER GENERICO (Genero / Fecha)
   ============================================================ */
.sheet--picker { padding-bottom: 0; }
.picker-head { padding: 4px 24px 0; }
.picker-head h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.8px; }
.picker-body { padding: 18px 24px 0; max-height: 56dvh; overflow-y: auto; }

/* Lista de opciones con radio a la derecha, como la referencia */
.picker-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; text-align: left;
  padding: 20px 0; border-bottom: 1px solid var(--border);
  font-size: 17px; font-weight: 700; color: var(--text);
}
.picker-opt:last-child { border-bottom: none; }
.picker-opt:active { opacity: .55; }
.picker-opt__radio {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--text-3); position: relative;
}
.picker-opt.is-sel .picker-opt__radio { border-color: var(--text); }
.picker-opt.is-sel .picker-opt__radio::after {
  content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--text);
}

/* 🚨 El atributo hidden NO basta: .picker-cal usa display:block y
   .picker-options display:flex, y una regla de clase le GANA al display:none
   que el navegador aplica por hidden. Sin esto se veian las DOS cosas a la vez
   (Federico vio el calendario dentro de la hoja de Genero). Es el mismo bug
   que ya me habia mordido con la tarjeta de Mega Rewards. */
.picker-options[hidden], .picker-cal[hidden], .picker-cal__years[hidden] { display: none; }

/* Calendario */
.picker-cal { padding-bottom: 4px; }
.picker-cal__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.picker-cal__label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: -0.3px;
}
.picker-cal__label svg { transition: transform .22s var(--e-out); }
.picker-cal.is-years .picker-cal__label svg { transform: rotate(90deg); }
.picker-cal__label:active { opacity: .55; }
.picker-cal__nav { display: flex; gap: 4px; }
.picker-cal__nav button {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; color: var(--text);
}
.picker-cal__nav button:active { background: var(--surface); }
.picker-cal__nav button:disabled { color: var(--text-3); opacity: .4; }

.picker-cal__dow, .picker-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.picker-cal__dow { margin-bottom: 6px; }
.picker-cal__dow span {
  text-align: center; font-size: 11.5px; font-weight: 700;
  color: var(--text-3); text-transform: uppercase; letter-spacing: .4px;
}
.picker-cal__grid { gap: 2px 0; }
.cal-day {
  aspect-ratio: 1; display: grid; place-items: center;
  border-radius: 50%; font-size: 16px; font-weight: 600; color: var(--text);
}
.cal-day:active { background: var(--surface); }
.cal-day.is-out { color: transparent; pointer-events: none; }
/* Un dia futuro no se puede elegir como cumpleaños: se ve apagado y no responde,
   en vez de dejar picarlo y rebotarlo despues. */
.cal-day:disabled { color: var(--text-3); opacity: .35; pointer-events: none; }
.cal-day.is-sel { background: var(--text); color: #fff; font-weight: 800; }

/* Lista de años: sin esto habria que retroceder 400 meses de mes en mes para
   llegar a un cumpleaños. Se abre tocando el mes/año del encabezado. */
.picker-cal__years {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  max-height: 40dvh; overflow-y: auto; padding: 2px;
}
.cal-year { padding: 13px 0; border-radius: 12px; background: var(--surface); font-size: 15px; font-weight: 700; color: var(--text); }
.cal-year.is-sel { background: var(--text); color: #fff; }
.cal-year:active { opacity: .6; }

.picker-foot {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 24px calc(var(--safe-bot) + 16px);
  border-top: 1px solid var(--border); margin-top: 14px;
}
.picker-clear {
  flex-shrink: 0; padding: 15px 20px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--card);
  font-size: 15.5px; font-weight: 700; color: var(--text-2);
}
.picker-done {
  flex: 1; padding: 16px; border-radius: 14px;
  background: var(--brand-blue); color: #fff;
  font-size: 16px; font-weight: 800;
}
.picker-done:active { opacity: .8; }

/* Los campos que abren el picker se ven como input pero son botones */
.ep-picker {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; height: 54px; padding: 0 16px;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  font-family: inherit; font-size: 16px; color: var(--text); text-align: left;
}
.ep-picker:active { opacity: .6; }
.ep-picker.is-empty { color: var(--text-3); }
.ep-picker__chev { flex-shrink: 0; color: var(--text-3); }

/* ============================================================
   SCREEN: CAMBIAR TELEFONO
   ============================================================ */
.screen--phone {
  max-width: var(--max-w); margin: 0 auto; min-height: 100dvh; background: var(--bg);
  padding-bottom: calc(var(--safe-bot) + 24px);
}
.ph-header { padding: calc(var(--safe-top) + 12px) 20px 4px; }
.ph-body { padding: 12px 20px 0; }
.ph-title { font-size: 30px; font-weight: 800; letter-spacing: -0.9px; line-height: 1.12; }
.ph-sub { font-size: 14px; color: var(--text-2); margin-top: 10px; line-height: 1.5; }

.ph-input-row { display: flex; align-items: center; gap: 12px; margin-top: 40px; }
.ph-country {
  flex-shrink: 0; display: flex; align-items: center; gap: 6px;
  padding: 13px 14px; border-radius: 999px;
  background: var(--card); box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  font-size: 19px; font-weight: 700; color: var(--text);
}
.ph-country:active { opacity: .6; }
.ph-country svg { color: var(--text-3); }
.ph-number {
  flex: 1; min-width: 0; border: none; background: none; padding: 4px 0;
  font-family: inherit; font-size: 26px; font-weight: 800; letter-spacing: -0.5px; color: var(--text);
}
.ph-number:focus { outline: none; }
.ph-number::placeholder { color: var(--text-3); font-weight: 700; }

.ph-error {
  margin-top: 20px; padding: 12px 14px; border-radius: 12px;
  background: var(--action-soft); color: var(--danger);
  font-size: 14px; font-weight: 600; line-height: 1.45;
}
.ph-cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; margin-top: 44px; padding: 17px;
  border-radius: 999px; background: var(--success); color: #fff;
  font-size: 16.5px; font-weight: 800;
}
.ph-cta:disabled { background: var(--border); color: var(--text-3); }
.ph-cta:not(:disabled):active { opacity: .82; }
.ph-link {
  display: block; width: 100%; margin-top: 18px; padding: 12px;
  font-size: 15px; font-weight: 700; color: var(--text-2);
}

/* Tantas casillas como el código que manda el servidor (y como el de
   entrar): 4 al cambiar de celular; 6 sólo si reusó uno de correo. */
.ph-otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; gap: clamp(6px, 2.2vw, 10px); max-width: 360px; margin-top: 34px; }
.ph-otp--4 { grid-template-columns: repeat(4, 1fr); gap: 10px; gap: clamp(8px, 3vw, 12px); max-width: 248px; }
.ph-otp__cell {
  width: 100%; min-width: 0; padding: 0; height: 56px; text-align: center;
  border: 1.5px solid var(--border); border-radius: 14px; background: var(--card);
  font-family: inherit; font-size: 25px; font-weight: 800; color: var(--text);
}
.ph-otp__cell:focus { outline: none; border-color: var(--brand-blue); }
.ph-otp__cell.has-value { border-color: var(--text-3); }

/* Hoja de paises */
.sheet--country { padding-bottom: 0; max-height: 88dvh; }
.country-search {
  display: flex; align-items: center; gap: 10px;
  margin: 4px 20px 8px; padding: 13px 16px;
  background: var(--card); border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06); color: var(--text-3);
}
.country-search input {
  flex: 1; min-width: 0; border: none; background: none;
  font-family: inherit; font-size: 16px; color: var(--text);
}
.country-search input:focus { outline: none; }
.country-list { overflow-y: auto; padding: 4px 20px calc(var(--safe-bot) + 16px); max-height: 62dvh; }
.country-row {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 16px 0; border-bottom: 1px solid var(--border);
  font-size: 16px; color: var(--text);
}
.country-row:last-child { border-bottom: none; }
.country-row:active { opacity: .55; }
.country-row__flag { font-size: 22px; flex-shrink: 0; line-height: 1; }
.country-row__name { flex: 1; min-width: 0; font-weight: 600; }
.country-row__dial { flex-shrink: 0; font-weight: 700; color: var(--text-2); }
.country-empty { text-align: center; padding: 34px 10px; color: var(--text-3); font-size: 14.5px; }

/* ============================================================
   SCREEN: NOTIFICACIONES
   ============================================================ */
.screen--notifs {
  max-width: var(--max-w); margin: 0 auto; min-height: 100dvh; background: var(--bg);
  padding-bottom: calc(var(--safe-bot) + 32px);
}
.nt-header { padding: calc(var(--safe-top) + 12px) 20px 4px; }
.nt-body { padding: 12px 20px 0; }
.nt-title { font-size: 30px; font-weight: 800; letter-spacing: -0.9px; }
.nt-sub { font-size: 15px; color: var(--text-2); margin-top: 10px; line-height: 1.5; }
.nt-sub b { color: var(--text); font-weight: 800; }
.nt-rows { display: flex; flex-direction: column; margin-top: 30px; }
.nt-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; text-align: left;
  padding: 20px 0; border-bottom: 1px solid var(--border);
}
.nt-row:last-child { border-bottom: none; }
.nt-row:active { opacity: .6; }
.nt-row__label { font-size: 16.5px; font-weight: 700; color: var(--text); }
.nt-foot { font-size: 13px; color: var(--text-3); line-height: 1.55; margin-top: 26px; }
.nt-error {
  margin-top: 16px; padding: 12px 14px; border-radius: 12px;
  background: var(--action-soft); color: var(--danger); font-size: 14px; font-weight: 600;
}

/* ============================================================
   SCREEN: CUPONES
   ============================================================ */
.screen--coupons {
  max-width: var(--max-w); margin: 0 auto; min-height: 100dvh; background: var(--bg);
  padding-bottom: calc(var(--bottomnav-h) + var(--safe-bot) + var(--bottomnav-aire) + 32px);
}
/* Desde el pago, Cupones es una hoja que sube de abajo ENCIMA del pago y baja
   al cerrarla (30-oct, Federico: "me gusta ese efecto"). Sin el fundido de
   .screen, que le quitaba fuerza a la subida. */
.screen--coupons.cp-hoja {
  position: fixed;
  top: 0; bottom: 0; left: 0; right: 0;
  z-index: 95;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: none;
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 -10px 40px rgba(0,0,0,0.18);
}
.screen--coupons.cp-hoja--arriba { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .screen--coupons.cp-hoja { transition: none; }
}
.cp-header { padding: calc(var(--safe-top) + 12px) 20px 4px; }
.cp-body { padding: 10px 20px 0; }
.cp-title { font-size: 30px; font-weight: 800; letter-spacing: -0.9px; margin-bottom: 20px; }

.cp-add { background: var(--card); border-radius: 18px; padding: 18px 18px 20px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.cp-add__row { display: flex; align-items: center; gap: 12px; }
.cp-add__row > svg { flex-shrink: 0; color: var(--text); }
.cp-add__row input {
  flex: 1; min-width: 0; border: none; border-bottom: 1px solid var(--border);
  background: none; padding: 8px 0;
  font-family: inherit; font-size: 16px; color: var(--text); text-transform: uppercase;
}
.cp-add__row input::placeholder { color: var(--text-3); text-transform: none; }
.cp-add__row input:focus { outline: none; border-bottom-color: var(--brand-blue); }
.cp-add__row button {
  flex-shrink: 0; padding: 12px 22px; border-radius: 999px;
  background: var(--brand-blue); color: #fff; font-size: 15px; font-weight: 800;
}
.cp-add__row button:disabled { background: var(--border); color: var(--text-3); }
.cp-add__row button:not(:disabled):active { opacity: .8; }

/* Sin bloque (30-oct): el "listo" sale arriba un momento (toast); aquí sólo
   queda, si falla, una línea roja debajo del campo. */
.cp-msg { margin: 10px 4px 0; font-size: 13.5px; font-weight: 600; line-height: 1.45; }
.cp-msg.is-ok  { color: #0f7a5a; }
.cp-msg.is-bad { color: var(--danger); }

.cp-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-top: 26px; }
.cp-tab {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 6px; border-bottom: 2px solid transparent;
  font-size: 15.5px; font-weight: 700; color: var(--text-3);
}
.cp-tab.is-active { color: var(--text); border-bottom-color: var(--success); }

.cp-list { padding-top: 8px; }
.cp-card {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--card); border-radius: 16px; padding: 16px;
  margin-top: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.cp-card.is-dead { opacity: .55; }
.cp-card__ic {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--surface); color: var(--text-2);
}
/* Los hijos son <span>: sin flex-column el valor, el detalle y el codigo se
   pegan en un solo renglon. */
.cp-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.cp-card__value { font-size: 17px; font-weight: 800; letter-spacing: -0.3px; }
.cp-card__desc { font-size: 13.5px; color: var(--text-2); margin-top: 3px; line-height: 1.45; }
.cp-card__code {
  display: inline-block; margin-top: 9px; padding: 4px 10px;
  border-radius: 7px; background: var(--surface);
  font-size: 12.5px; font-weight: 800; letter-spacing: .6px; color: var(--text-2);
}
.cp-card__tag { display: inline-block; margin-top: 9px; margin-left: 8px; font-size: 12px; font-weight: 700; color: var(--danger); }
.cp-card__tag--ok { color: var(--success); }
/* Abierta desde el pago, cada disponible es un botón para usarla. */
button.cp-card {
  width: 100%;
  text-align: left;
  font-family: inherit;
  color: inherit;
  align-items: center;
}
button.cp-card:active { transform: scale(0.98); }
.cp-card__usar {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 100px;
  background: var(--cta-verde);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.cp-empty { text-align: center; padding: 60px 20px; }
.cp-empty__ic {
  width: 66px; height: 66px; border-radius: 50%; margin: 0 auto 16px;
  display: grid; place-items: center; background: var(--surface); color: var(--text-3);
}
.cp-empty__title { font-size: 17px; font-weight: 800; }
.cp-empty__sub { font-size: 14px; color: var(--text-3); margin-top: 5px; }

/* ============================================================
   🪤 UNA HOJA GUARDADA NO SE VE, PERO SU SOMBRA SI
   ============================================================
   Todas las hojas (sheets) viven fuera de la pantalla con
   `transform: translateY(100%)` y llevan una sombra que sube
   —`0 -16px 48px rgba(0,0,0,.18)`—. Estar fuera del viewport NO apaga la
   sombra: cada hoja cerrada pintaba una franja oscura en el borde de abajo, y
   como hay seis apiladas, se sumaban. Eso era la "sombra rara" del pie, y
   estaba en TODAS las pantallas — hasta en las que no tienen pie.

   La sombra solo tiene sentido cuando la hoja esta arriba. */
.sheet:not(.show),
.sheet--info:not(.show),
.sheet--addr-new:not(.show),
.sheet--time:not(.show),
.sheet--pago:not(.show),
.sheet--notas:not(.show),
.sheet--rating:not(.show),
.sheet--receipt:not(.show),
.sheet--report:not(.show),
.sheet--reorder:not(.show),
.sheet--product:not(.show) {
  box-shadow: none;
}

/* Aviso dentro de la ficha de una sucursal: hoy solo uno — "esta abierta pero
   no llega hasta tu direccion". Va PEGADO a los botones y no arriba con el
   resto de la informacion, porque es lo que explica por que el boton dice
   "Recoger aqui" y no "Pedir aqui". Separado de ellos, el boton parece un
   error. */
.sheet__aviso {
  margin: 0 16px 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(240, 160, 30, 0.10);
  border: 1px solid rgba(240, 160, 30, 0.28);
  color: var(--text-1, #16181d);
  font-size: 12.5px;
  line-height: 1.55;
}
.sheet__aviso b { font-weight: 800; }

/* La tarjeta que YA es suya, dentro de la hoja de pago. No hay formulario que
   montar: se le enseña con cual va a pagar y se cobra. */
.pay-guardada {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.pay-guardada__ico { font-size: 26px; line-height: 1; }
.pay-guardada__nombre { font-size: 15px; font-weight: 800; }
.pay-guardada__sub { font-size: 13px; color: var(--text-2); margin-top: 2px; }

/* Se le avisa ANTES de teclear que la tarjeta se va a quedar guardada. Va con
   el mismo peso que el resto del pie: es un dato, no una advertencia. */
.pay-sheet__guarda-hint {
  margin: 10px 0 0;
  text-align: center;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-3);
}

/* La sucursal cerrada, dicha al ENTRAR al checkout y no al picarle a pagar.
   Va hasta arriba del cuerpo: es lo que decide si el resto de la pantalla
   sirve de algo. */
.co-cerrada {
  margin: 0 0 14px;
  padding: 13px 15px;
  border-radius: 13px;
  background: rgba(240, 160, 30, 0.12);
  border: 1px solid rgba(240, 160, 30, 0.3);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 600;
  color: var(--text);
}

/* Algo del carrito se acabó en esta sucursal (#10): va junto al de "cerrada"
   y con su forma, pero en rojo: sin quitarlo no hay total ni pedido. */
.co-agotado {
  background: rgba(239, 68, 68, 0.09);
  border-color: rgba(239, 68, 68, 0.32);
}
/* La cuenta de revisión de Apple: sólo recoger y efectivo. Es un dato, no un
   problema: va con la forma de "cerrada", en azul. */
.co-revision {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
}
/* A esa cuenta se le esconde el selector Domicilio/Recoger (sólo hay uno):
   el display:flex de .cart-mode-toggle le gana al [hidden] del navegador. */
.cart-mode-toggle[hidden] { display: none !important; }
.co-items__item--falta .co-items__name { color: var(--danger); text-decoration: line-through; }
.co-items__falta { color: var(--danger); font-weight: 800; text-decoration: none; display: inline-block; }

/* Se acabó SÓLO en esta tienda (#10): se ve, en gris, pero no se agrega. El
   + y la flecha se quitan (tocar la tarjeta sólo dice que se acabó). */
.prod-card.is-agotado,
.popular-card.is-agotado,
.featured-card.is-agotado { opacity: 0.5; filter: grayscale(0.7); }
/* En el menú la etiqueta "Agotado" se queda nítida; lo demás, en gris. */
.menu-item.is-agotado .menu-item__thumb { filter: grayscale(0.8); }
.menu-item.is-agotado .menu-item__thumb > :not(.menu-item__badge--agotado),
.menu-item.is-agotado .menu-item__body { opacity: 0.5; }
.menu-item.is-agotado .menu-item__add,
.prod-card.is-agotado .see-btn,
.popular-card.is-agotado .see-btn,
.featured-card.is-agotado .featured-card__add { display: none; }
.menu-item__badge--agotado { background: var(--text-2); box-shadow: none; }
.cart-item__agotado { margin-top: 2px; font-size: 12px; font-weight: 800; color: var(--danger); }
/* Un sabor de combo que se acabó en esta tienda: se ve en gris con su
   "Agotado" nítido, y el + apagado (el − se queda si ya estaba elegido). */
.prod-option.is-agotado .prod-option__thumb { filter: grayscale(0.8); opacity: 0.5; }
.prod-option.is-agotado .prod-option__name,
.prod-option.is-agotado .prod-option__desc,
.prod-option.is-agotado .prod-option__extra { opacity: 0.5; }
.prod-option__agotado { margin: 1px 0 2px; font-size: 12px; font-weight: 800; color: var(--text-2); }

/* 🔜 «Próximamente» (30-nov-2026): la MISMA tarjeta del menú; sólo cambia lo
   que va en el cuadro de la foto (cuadroProximamente, js/app.js): el azul
   claro de la marca, su isotipo y la cinta «PRÓXIMAMENTE». Los colores son
   los de la página de la marca (--dt-*, los pone ponerLaMarca en la web);
   sin ellos, los de Todo Empanadas. En lugar del precio, «Próximamente». */
.menu-item__thumb--prox, .prox {
  --prox-fondo: var(--dt-fondo, #67ABE4);
  --prox-cinta: var(--dt-pie, #17437F);
  --prox-acento: var(--dt-acento, #FFB719);
}
.menu-item__thumb--prox { background: var(--prox-fondo); }
.prox { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.prox__fondo { fill: var(--prox-fondo); }
.prox__halo { fill: #FFFFFF; opacity: 0.13; }
.prox__chispa { fill: #FFFFFF; opacity: 0.9; }
.prox__chispa--acento { fill: var(--prox-acento); opacity: 1; }
.prox__vapor { fill: none; stroke: #FFFFFF; stroke-width: 4; stroke-linecap: round; opacity: 0.6; }
.prox__reloj { fill: none; stroke: var(--prox-acento); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.prox__cinta { fill: var(--prox-cinta); }
.prox__cola { fill: var(--prox-cinta); }
.prox__sombra { fill: #000000; opacity: 0.22; }
.prox__doblez { fill: #000000; opacity: 0.35; }
.prox__texto { fill: #FFFFFF; font-family: inherit; font-size: 14.5px; font-weight: 900; letter-spacing: 0.04em; }
.menu-item__prox { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; color: var(--brand-blue); }
.cart-item__price--prox { font-size: 14px; font-weight: 800; color: var(--brand-blue); }
.reord-item.is-proximamente .reord-item__price { color: var(--brand-blue); font-weight: 800; }

/* ============================================================
   PLATILLO EN ESCRITORIO: la foto de un lado, lo que se elige del otro
   ============================================================
   En el telefono el platillo se abre como cajon: foto grande arriba y las
   opciones abajo. En una pantalla ancha eso deja la foto ocupando media
   ventana y los modificadores —que son a lo que el cliente VINO— fuera de
   vista, abajo del doblez.

   Aqui se parte en dos, como Uber: foto fija a la izquierda, todo lo que se
   elige a la derecha, y el boton de agregar cruzando el pie completo.

   🪤 El que scrollea sigue siendo .prod-scroll, no se cambia. El JS lo usa
   para llevarte al siguiente grupo de modificadores y para medir si un grupo
   quedo fuera de vista; con `display: contents` esa caja deja de existir y
   scrollTo() y getBoundingClientRect() se vuelven mudos. */
@media (min-width: 1024px) {
  .sheet--product {
    --prod-alto: min(640px, 84vh);
    width: min(1040px, 94vw) !important;
    max-width: 1040px !important;
    height: var(--prod-alto) !important;
    min-height: 0 !important;
    max-height: var(--prod-alto) !important;
    top: 50% !important;
    bottom: auto !important;
    border-radius: 22px !important;
    overflow: hidden !important;
    box-shadow: 0 24px 70px rgba(0,0,0,0.28) !important;
    /* Un modal centrado, no un cajon que sube. El de 768px lo deja en
       translate(-50%, 100%): aqui se centra tambien en vertical. */
    transform: translate(-50%, -46%) scale(0.97) !important;
    opacity: 0;
    /* 🧨 SIN ESTO la app se queda sin scroll en escritorio.
       Las demas hojas, cerradas, se van ABAJO de la pantalla
       (translate -50%, 100%) y no estorban. Esta, al centrarla para que se
       abra como modal, se queda EN MEDIO cuando esta cerrada: invisible por
       la opacidad, pero presente, de 1009x621, comiendose la rueda del mouse
       y los clics de medio viewport. Desde el inicio parecia que la pagina
       se habia trabado.
       🪤 Mi prueba no lo caza: yo scrolleaba con window.scrollTo(), que no
       pasa por el elemento de encima. Una persona usa la rueda. */
    visibility: hidden !important;
    pointer-events: none !important;
    transition: transform .26s var(--e-out), opacity .2s var(--e-out),
                visibility 0s linear .26s;
  }
  .sheet--product.show {
    transform: translate(-50%, -50%) scale(1) !important;
    opacity: 1;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: transform .26s var(--e-out), opacity .2s var(--e-out),
                visibility 0s;
  }
  /* Un modal no se arrastra hacia abajo para cerrarlo: se cierra con la X. */
  .sheet--product > .sheet__handle-zone { display: none !important; }

  .prod-scroll {
    display: grid !important;
    grid-template-columns: 45% 1fr;
    align-items: start;
  }
  .prod-hero {
    position: sticky !important;
    top: 0 !important;
    /* El alto del modal menos el pie. Fija, para que la foto se quede quieta
       mientras la columna de la derecha corre. */
    height: calc(var(--prod-alto) - 86px) !important;
    flex: none !important;
    border-radius: 0 !important;
  }
  .prod-body { padding: 30px 32px 26px !important; }
  .prod-name { font-size: 30px !important; }
  /* El pie cruza las dos columnas, como el boton negro de ellos. */
  .prod-fab { border-top: 1px solid var(--border) !important; }
}

/* ============================================================
   ENCABEZADO DE LA TIENDA — acomodado como el de Uber
   ============================================================
   En el telefono se queda la tarjeta de tres columnas (Entrega / Horario /
   Calificacion): apilada se lee mejor en vertical. En escritorio manda la
   linea corrida, que es como lo pone Uber, y la tarjeta se va. */
.store-hero__linea,
.store-hero__dir { display: none; }

@media (min-width: 1024px) {
  .store-hero { background: var(--bg) !important; border: 0 !important; box-shadow: none !important; }
  .store-hero__body { padding: 20px 0 0 !important; }

  /* El nombre manda: es lo primero que se lee de una tienda. */
  .store-hero__row1 { align-items: baseline !important; }
  .store-hero__name { font-size: 34px !important; letter-spacing: -0.02em !important; }
  /* La ciudad ya va en la direccion completa, debajo. Repetirla es ruido. */
  .store-hero__city { display: none !important; }

  /* La tarjeta de tres columnas cede su lugar a la linea. */
  .store-hero__stats { display: none !important; }

  .store-hero__linea {
    display: flex !important;
    align-items: center;
    gap: 7px;
    margin: 8px 0 3px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text);
  }
  .store-hero__linea-rating { display: inline-flex; align-items: center; gap: 5px; }
  .store-hero__linea-rating svg { width: 15px; height: 15px; fill: #F5A623; }
  .store-hero__linea-tenue { color: var(--text-2); font-weight: 500; }
  .store-hero__linea-punto { color: var(--text-3); }

  .store-hero__dir {
    display: block !important;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-2);
    max-width: 46ch;
  }

  /* El renglon de A domicilio / Recoger, separado por una linea: cierra el
     bloque de identidad de la tienda y abre el de "como lo quieres". */
  .store-hero__modrow {
    margin-top: 18px !important;
    padding-top: 18px !important;
    border-top: 1px solid var(--border) !important;
  }
}

/* El encabezado de la columna de categorias. En el telefono los tabs son una
   tira horizontal que se desliza: un titulo ahi estorba. */
.menu-tabs__head { display: none; }

@media (min-width: 1024px) {
  .menu-tabs__head {
    display: block;
    padding: 4px 14px 12px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--border);
  }
  .menu-tabs__head-title { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
  .menu-tabs__head-sub { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }

  /* 🧨 Los botones de A domicilio / Recoger se estiraban a 549px CADA UNO
     —media pantalla por boton— porque heredan el flex:1 del telefono, donde
     eso esta bien. Aqui son dos pastillas compactas a la izquierda, como las
     de ellos, y el renglon deja de verse como una barra vacia. */
  .store-hero__modrow { justify-content: flex-start !important; gap: 10px !important; }
  .store-hero__modrow .store-hero__mode { flex: 0 0 auto !important; }
  .store-hero__mode-btn { flex: 0 0 auto !important; padding: 9px 20px !important; }
  .store-hero__map-btn { margin-left: 2px !important; }
}

/* El logo de la marca montado sobre la esquina del banner. En telefono no se
   pinta: ahi el banner mide poco y el logo le comeria la foto. */
.store-hero__logo { display: none; }

@media (min-width: 1024px) {
  .store-hero { position: relative; }
  .store-hero__logo {
    display: grid;
    place-items: center;
    position: absolute;
    left: 26px;
    /* Montado a caballo sobre el borde de abajo del banner, no flotando
       encima de la foto: asi une el banner con el nombre en vez de taparlos. */
    /* 🪤 Antes esto era un `top` en pixeles calculado del alto del banner. El
       banner ahora es proporcional al ancho, asi que ese numero dejaba de
       servir en cuanto cambiaba el tamaño de la ventana. Colgado del BORDE DE
       ABAJO del banner no hay nada que adivinar. */
    top: auto;
    bottom: -42px;
    width: 84px; height: 84px;
    border-radius: 50%;
    background: var(--card);
    border: 3px solid var(--bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    overflow: hidden;
    z-index: 2;
  }
  .store-hero__logo img { width: 100%; height: 100%; object-fit: cover; }
  /* El nombre baja para no quedar debajo del logo. */
  .store-hero__body { padding-top: 52px !important; }
}

@media (min-width: 1024px) {
  /* La pastilla de Abierto/Cerrado se va a la DERECHA del banner: el logo
     ocupa la esquina de abajo a la izquierda y la estaba tapando. */
  .store-hero__status { left: auto !important; right: 14px !important; top: 14px !important; bottom: auto !important; }
}

/* Los datos del cuadro de "como lo quieres" solo salen en escritorio: en el
   telefono ya estan en la tarjeta de tres columnas de arriba. */
.store-hero__moddatos { display: none; }

@media (min-width: 1024px) {
  /* ---------- 1. La foto de display, del tamaño de la de ellos ----------
     La suya mide 1586x336 en su captura: casi 4.7 a 1. La nuestra iba a 118
     de alto contra 1224 de ancho —10 a 1— una tira, no una foto. */
  .store-hero__cover {
    /* Sin --cover-h la razon 4.7:1 da el alto de arranque; con ella manda el
       scroll. El alto le gana a aspect-ratio, que es justo lo que se busca. */
    height: var(--cover-h, auto) !important;
    /* 🧨 `aspect-ratio` con un alto definido y `width: auto` calcula el ANCHO
       a partir del alto: al encogerse a 58 la foto se hizo de 273px de ancho.
       Con el ancho fijado, la razon solo manda mientras el alto es auto. */
    width: 100% !important;
    aspect-ratio: 4.7 / 1 !important;
    /* Las esquinas se enderezan conforme se pega arriba: una foto redondeada
       en el borde mismo de la pantalla se ve despegada. */
    border-radius: calc(16px * (1 - var(--cover-p, 0))) !important;
  }
  .store-cover-ancla { margin-top: 24px; }

  /* ---------- 2. El menu dejaba de ser columna ----------
     🧨 `.menu-tab + .menu-tab { margin-left: 14px }` es del telefono, donde
     los tabs son una tira horizontal. En la columna ese margen empujaba cada
     renglon 14px a la derecha SOBRE un ancho que ya era 100%: se salian de la
     tarjeta y aparecia una barra de scroll horizontal. */
  .menu-tab + .menu-tab { margin-left: 0 !important; margin-top: 2px !important; }
  .menu-tabs { overflow-x: hidden !important; }
  /* El subrayado deslizante es de la tira horizontal; en columna estorba. */
  .menu-tabs__ink { display: none !important; }

  /* ---------- 3. "Cambiar" al lado del nombre ---------- */
  .store-hero__change { margin-left: 12px !important; align-self: center !important; }
  .store-hero__row1 { justify-content: flex-start !important; }

  /* ---------- 4. El cuadro claro de "como lo quieres" ---------- */
  .store-hero__modrow {
    border: 1px solid var(--border) !important;
    border-radius: 14px !important;
    padding: 12px 16px !important;
    background: var(--card) !important;
    border-top: 1px solid var(--border) !important;
    align-items: center !important;
  }
  .store-hero__moddatos {
    display: flex !important;
    align-items: center;
    gap: 26px;
    margin-left: auto;
    padding-left: 22px;
  }
  .store-hero__moddato { text-align: center; }
  .store-hero__moddato + .store-hero__moddato {
    border-left: 1px solid var(--border);
    padding-left: 26px;
  }
  .store-hero__moddato-valor { font-size: 14.5px; font-weight: 700; }
  .store-hero__moddato-label { font-size: 12px; color: var(--text-2); margin-top: 1px; }
}

/* El envoltorio del banner: le da al logo un ancla de la que colgarse. */
.store-hero__coverwrap { position: relative; }

/* ---------- Cambiar de tienda: dialogo en escritorio ----------
   En el telefono sube desde el pie, como todas. En escritorio se centra,
   igual que el de direcciones: desde el menu se cambia de tienda sin salir
   de la pantalla ni perder el lugar. */
@media (min-width: 1024px) {
  .sheet--switch {
    top: 50% !important;
    bottom: auto !important;
    left: 50% !important;
    right: auto !important;
    width: min(560px, 92vw) !important;
    max-width: none !important;
    max-height: 80vh !important;
    border-radius: 18px !important;
    box-shadow: 0 24px 70px rgba(0,0,0,0.3) !important;
    padding-bottom: 0 !important;
    transform: translate(-50%, -50%) scale(0.97) !important;
    opacity: 0;
    /* 🪤 Cerrada sigue estando EN MEDIO de la pantalla. Con solo `opacity: 0`
       se traga los clics de lo que hay debajo — ya paso con la hoja del
       platillo, que dejo la app sin scroll. */
    visibility: hidden;
    pointer-events: none;
    transition: transform .24s var(--e-out), opacity .18s var(--e-out) !important;
  }
  .sheet--switch.show {
    transform: translate(-50%, -50%) scale(1) !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .sheet--switch .sheet__handle-zone { display: none; }
}

/* La direccion en la barra del menu: solo escritorio. En el telefono esa
   barra mide 64 y ya trae el nombre de la tienda; meterle la direccion es
   pelear por el mismo renglon. */
.menu-fab-dir { display: none !important; }

@media (min-width: 1024px) {
  .menu-fab-dir {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    margin-left: auto;
    padding: 8px 14px;
    border-radius: 100px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    max-width: 380px;
  }
  .menu-fab-dir[hidden] { display: none !important; }
  .menu-fab-dir > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .menu-fab-dir__chev { color: var(--text-3); flex-shrink: 0; }
  .menu-fab-dir:hover { border-color: var(--text-3); }
}

@media (min-width: 1024px) {
  /* El encabezado en DOS columnas, como el de ellos: a la izquierda quien es
     la tienda (nombre, datos, direccion), a la derecha como lo quieres.
     Antes el cuadro de A domicilio / Recoger iba debajo, cruzando todo el
     ancho — se leia como un paso aparte en vez de como la otra mitad de la
     misma decision. */
  .store-hero {
    display: grid !important;
    grid-template-columns: minmax(300px, 34%) 1fr !important;
    column-gap: 32px !important;
    align-items: start !important;
  }
  /* El aviso cruza las dos columnas. (La portada ya no esta en la reja:
     se salio del hero para poder quedarse pegada arriba.) */
  .store-hero__body { grid-column: 1 !important; }
  .store-hero__aviso { grid-column: 1 / -1 !important; margin-left: 0 !important; margin-right: 0 !important; }
  /* El cuadro arranca a la altura del nombre, no debajo de la direccion. */
  .store-hero__modrow {
    grid-column: 2 !important;
    margin-top: 52px !important;
    align-self: start !important;
    padding-top: 12px !important;
  }
}

@media (min-width: 1024px) {
  /* El tiempo y el horario ya viven en el cuadro de la derecha, con su
     etiqueta. Repetirlos aqui es decir dos veces lo mismo en la misma
     pantalla — en la linea se queda solo la calificacion. */
  .store-hero__linea-dup { display: none !important; }
}

@media (min-width: 1024px) {
  /* 🧨 La barra del menu es click-through a proposito —`pointer-events: none`,
     para no tapar la foto de abajo— y cada boton tiene que volver a
     encenderlos. El mio no lo hacia: el clic le pasaba DE LARGO y caia en la
     pantalla. Se veia como un boton muerto.
     🔎 Lo dijo `document.elementFromPoint` sobre el centro del boton:
     contestaba #screenMenu, no el boton. */
  .menu-fab-dir { pointer-events: auto !important; }

  /* Y va a la IZQUIERDA, pegada al boton de volver, que es donde la pone
     Uber: lo primero que se lee de la pagina es a donde va a llegar tu
     comida, antes que en que tienda estas parado.
     🪤 `margin-right: auto` no bastaba: el titulo de en medio lleva `flex: 1`
     y se come todo el hueco, asi que empujaba el boton al borde derecho
     igual. Con `order` se cambia el ORDEN de verdad y el titulo se acomoda
     despues. */
  .menu-fab-dir { order: 1; margin-left: 0 !important; margin-right: 0 !important; }
  .menu-fab-title { order: 2; }
}

@media (min-width: 1024px) {
  /* Las direcciones abiertas DESDE EL MENU salen como dialogo encima, no como
     otra pantalla. Cambiar de pantalla para escoger una direccion te saca de
     donde ibas a medio pedido; un dialogo te deja ver que sigues ahi atras,
     que es justo lo que hace el de ellos. */
  .screen--addr.es-dialogo {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: min(660px, 92vw) !important;
    max-width: none !important;
    height: auto !important;
    /* 🪤 .screen--addr trae min-height: 100dvh para la version de pantalla
       completa. Sin apagarlo, la tarjeta medía la ventana entera. */
    min-height: 0 !important;
    max-height: 86vh !important;
    /* Sin aire abajo: el botón pegado (sticky) se queda a la distancia del
       padding y por ese hueco se asomaba la tarjeta que pasaba por debajo.
       El aire lo pone el propio botón. */
    padding-bottom: 0 !important;
    overflow-y: auto !important;
    border-radius: 18px !important;
    background: var(--card) !important;
    box-shadow: 0 24px 70px rgba(0,0,0,0.3) !important;
    /* 🧨 Estaba en 200 y tapaba la hoja de "Agregar nueva direccion", que vive
       en 90: se abria la hoja y el dialogo se le montaba encima. Las capas ya
       estaban repartidas —velo 80, hojas 90— asi que el dialogo va EN MEDIO:
       encima del velo y debajo de cualquier hoja que se abra desde el. */
    z-index: 85 !important;
  }
  /* 🧨 El velo estaba como ::before con z-index -1 DENTRO de la tarjeta. Pero
     la tarjeta lleva `transform`, y eso le crea su propio contexto de
     apilado: el negativo ya no se va detras de la pagina, se queda detras del
     CONTENIDO pero ENCIMA del fondo de la tarjeta. Resultado: la tarjeta se
     veia gris, como si el velo la tapara a ella. El velo se pide prestado al
     #sheetBackdrop que ya existe, que vive fuera y no tiene ese problema. */
  .screen--addr.es-dialogo .addr-header {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    box-shadow: none;
  }
  /* 🧨 El boton verde es `position: fixed` —pensado para la pantalla completa
     del telefono, donde flota sobre la lista. Dentro del dialogo flotaba
     sobre el CONTENIDO: sin direcciones guardadas, tapaba justo el renglon
     que dice como agregar la primera. Aqui va pegado abajo pero EN EL FLUJO,
     asi que el contenido termina donde el boton empieza. */
  .screen--addr.es-dialogo .addr-fab {
    position: sticky !important;
    bottom: 0;
    left: auto; right: auto;
    margin-top: auto;
    padding: 14px 18px 18px !important;
    background: var(--card) !important;
  }
}

@media (min-width: 1024px) {
  /* El formulario de nueva direccion, cuando viene del dialogo, se pone en su
     mismo lugar y con su mismo tamaño: se siente que el cuadro cambio de
     contenido, no que se abrio otra cosa encima. Es lo que hace Uber cuando
     pasas de "Addresses" a "Address info".
     🧨 Va para TODAS las aperturas en escritorio, no sólo las del dialogo
     (antes `.es-dialogo`): abierta desde el checkout sin dirección o desde
     Direcciones del encabezado salía de 1100px, con un buscador y un botón
     de orilla a orilla de la pantalla. */
  .sheet--addr-new {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) scale(0.97) !important;
    width: min(660px, 92vw) !important;
    max-width: none !important;
    /* Alto FIJO: el paso de buscar es corto y el de completar largo; con
       alto automático el cuadro crecía y se recorría al elegir la dirección.
       Lo que no cabe scrollea DENTRO (.addr-new-body) y el botón de guardar
       se queda siempre a la vista, abajo. */
    height: min(720px, 86vh) !important;
    max-height: 86vh !important;
    overflow: hidden !important;
    border-radius: 18px !important;
    box-shadow: 0 24px 70px rgba(0,0,0,0.3) !important;
    z-index: 90 !important;
    opacity: 0;
    transition: transform .24s var(--e-out), opacity .18s var(--e-out);
  }
  .sheet--addr-new.show {
    transform: translate(-50%, -50%) scale(1) !important;
    opacity: 1;
  }
  /* Más orilla en el cuadro de 660 (el mapa la usa para seguir llegando de
     lado a lado) y un mapa un poco más alto, que aquí sobra ancho. */
  .sheet--addr-new { --orilla: 28px; --mapa-alto: 200px; }
  .sheet--addr-new .addr-new-head { padding: 14px var(--orilla) 12px; }
  .sheet--addr-new .addr-new-cta,
  .sheet--addr-new .addr-pin-edit__cta { padding: 14px var(--orilla); }
  /* "Tipo de lugar" dentro del diálogo: sin el área segura del iPhone. */
  .sheet--addr-new .hoja-op--alta .hoja-op__hoja { top: 64px; padding-bottom: 18px; }
}

@media (min-width: 1024px) {
  /* Los sellos en UN renglon.
     Medida: la tarjeta se comia 121px de alto en una ventana de 950 —13% de
     la pantalla— para enseñar cinco puntitos. En el telefono apilada esta
     bien, porque ahi el ancho es lo escaso; en escritorio sobra ancho y falta
     alto, asi que todo cabe de lado.
     El "A este ritmo ganarias" se va: ya lo cuenta el pop-up al tocarla, y en
     una barra de un renglon es la linea que menos se necesita. */
  .loyalty-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 9px 16px;
    border-radius: 14px;
  }
  /* Sus dos hijos pasan a ser hijos del renglon, para poder ordenarlos.
     Nadie mide esta caja desde el JS, asi que perderla no rompe nada. */
  .loyalty-card__top { display: contents; }
  .loyalty-card__info { order: 1; flex: 1; min-width: 0; }
  .loyalty-card__dots { order: 2; margin-top: 0 !important; gap: 6px; }
  .loyalty-card__badge { order: 3; }
  .loyalty-card__sub { display: none; }
  .loyalty-card__title { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .loyalty-card .loyalty-dot { width: 28px; height: 28px; font-size: 12.5px; }
  .loyalty-card__reward { order: 4; margin-top: 0 !important; }
}

/* ============================================================
   LA PRIMERA VEZ, EN COMPUTADORA: una columna al centro
   ============================================================
   La llave de acceso y el "Hola, ¿dónde recibes tu pedido?" son pantallas de
   UNA decisión, como el formulario de entrada (480px). Tomaban el ancho de la
   tienda (--max-w: hasta 1320px en 1440 y 1600px en 1920): la tarjeta de la
   sucursal sugerida salía de lado a lado con una foto de 150px de alto, y las
   tres opciones de la llave eran renglones de 1,300px. Va al FINAL del
   archivo a propósito: las reglas base de estas pantallas están más abajo que
   los bloques de tamaños de arriba y, con la misma fuerza, las pisarían.
   En celular no cambia nada (< 768px). */
@media (min-width: 600px) {
  :root { --primera-vez-w: 600px; }
  .screen--sucursal { max-width: var(--primera-vez-w); }
  /* Los botones de abajo (fijos a la ventana) van al ancho de la columna. */
  .suc-fab { max-width: var(--primera-vez-w); }
  /* La ficha de la sucursal ("Ver fotos y detalles") se abre desde aquí. */
  #sheetSuc { max-width: var(--primera-vez-w) !important; }

  .screen--passkey { max-width: 480px; justify-content: center; }
  .passkey-card { flex: 0 0 auto; padding-top: 0; }
}

/* "Agregar" con algo obligatorio sin escoger lleva a ese grupo y lo marca un
   momento (irALoQueFalta en app.js). */
.prod-group--falta { animation: grupoFalta 1.4s ease-out; border-radius: 16px; }
@keyframes grupoFalta {
  0%, 35% { box-shadow: 0 0 0 3px var(--brand-blue, #1A5DB5); background: rgba(26, 93, 181, 0.06); }
  100%    { box-shadow: 0 0 0 3px transparent; background: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .prod-group--falta { animation: none; box-shadow: 0 0 0 3px var(--brand-blue, #1A5DB5); }
}

/* La tarjeta de lealtad (#sheetLoyaltyPop) CERRADA asomaba 14px en la parte de
   abajo de la pantalla en tablet y computadora: el bloque de >=768px de arriba
   le pone a TODO .sheet `translate(-50%, 100%) !important` y eso le quitaba el
   margen extra con el que se esconde completa (su propia regla, más arriba). */
@media (min-width: 600px) {
  .sheet.sheet--loyalty-pop:not(.show) {
    transform: translate(-50%, calc(100% + var(--pop-gap, 14px))) !important;
  }
  /* El mismo bloque la estiraba al ancho de la tienda (1320px en 1440): es
     una tarjeta flotante de 420px, como en el celular. */
  .sheet.sheet--loyalty-pop { max-width: 420px !important; }
}

/* Menú de una tienda SIN foto, en computadora: la portada de 4.7:1 quedaba
   como una franja vacía enorme con el nombre de la marca en medio. Se deja
   sólo el espacio de la barra de arriba (volver + "Recoger en…") y el nombre
   de la tienda sube. El logo va colgado del borde de la foto: sin foto, se va.
   En el teléfono se queda la franja sencilla con el nombre (mide poco). */
@media (min-width: 1024px) {
  .menu--sin-foto .store-hero__cover {
    aspect-ratio: auto !important;
    height: calc(var(--safe-top, 0px) + 58px) !important;
    background: transparent;
  }
  .menu--sin-foto .store-hero__brand,
  .menu--sin-foto .store-hero__logo { display: none !important; }
  .menu--sin-foto .store-hero__body { padding-top: 12px !important; }
}

/* "Reenviar en 0:25": apagado mientras corre la espera (app.js). */
.login-link:disabled { color: var(--text-3); cursor: default; }

/* ============================================================
   ENTRAR, COMO RAPPI (24/25-sep)
   ============================================================
   Una PORTADA: la foto a pantalla completa con el titular, y las formas de
   entrar apiladas en botones grandes (Apple, celular, Google, correo). Cada
   forma abre su paso en una pantalla limpia, sin foto, con flecha para
   regresar (celular → código). Antes era todo junto: campo de teléfono,
   "o", Google, correo e invitado en la misma pantalla — mucho ruido.
   data-paso lo pone showLoginStep() en app.js. */

/* Flecha para regresar (en la portada no se ve) */
.login-atras[hidden] { display: none !important; }
.login-atras {
  display: inline-grid;
  place-items: center;
  width: 44px !important;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--card);
  color: var(--text);
  box-shadow: var(--sh-soft);
  margin: 0 0 18px -4px !important;
  cursor: pointer;
  flex: 0 0 auto;
}
.login-sub[hidden] { display: none; }
/* El número ya va en el subtítulo del paso del código */
.login-otp-hint { display: none; }
.login-hero__texto { display: none; }

/* Botones grandes apilados de la portada */
.login-opcion {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 54px;
  padding: 0 52px;
  border-radius: 28px;
  border: 0;
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.005em;
  position: relative;
  cursor: pointer;
  transition: transform 0.15s var(--e-spring), filter 0.15s;
}
.login-opcion:active { transform: scale(0.98); }
.login-opcion svg { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); }
.login-opcion--celular { background: var(--brand-blue, #1A5DB5); color: #fff; box-shadow: 0 8px 22px rgba(26, 93, 181, 0.28); }
.login-opcion--google { background: #fff; color: #1f1f1f; border: 1px solid rgba(0, 0, 0, 0.10); }
.login-social--apple.login-opcion { background: #000; color: #fff; border: 0; }
.login-social--apple.login-opcion svg { fill: #fff; }
/* El botón oficial de Apple es una imagen (su logo y su texto, Guideline 4):
   el botón sólo la centra sobre el mismo negro, sin relleno propio. */
.login-social--apple.login-opcion { padding: 0; overflow: hidden; justify-content: center; }
.login-apple-oficial { display: block; height: 100%; max-height: 56px; width: auto; max-width: 100%; margin: 0 auto; pointer-events: none; }
.login-opcion--correo { background: var(--card); color: var(--text); border: 1px solid var(--border); }
.login-face-cta.login-opcion { background: transparent; border: 2px solid var(--brand-blue, #1A5DB5); color: var(--brand-blue, #1A5DB5); }
.login-social-wrap { margin: 0 0 12px; }
.login-social-wrap .login-opcion { margin: 0; }
/* El botón oficial de Google va invisible encima del nuestro; el tamaño
   exacto se lo pone ajustarBotonGoogle() (app.js). */
.login-google-native { overflow: hidden; border-radius: 28px; }
.login-guest-btn { margin-top: 4px; }

/* El código: 4 o 6 círculos, como Rappi. El hueco se encoge con la
   pantalla: en un iPhone SE (320) seis círculos con 14px de hueco no caben.
   Los 4 van en una cuadrícula más angosta, del mismo tamaño de círculo. */
.login-otp-grid--6 { max-width: 360px; gap: 8px; gap: clamp(6px, 2.4vw, 12px); margin-bottom: 22px; }
.login-otp-grid--4 { max-width: 248px; gap: 10px; gap: clamp(8px, 3vw, 14px); margin-bottom: 22px; }
.login-otp-cell { border-radius: 50%; font-size: 26px; min-width: 0; padding: 0; }
#loginStepOtp .login-link:disabled { color: var(--text-3); }

@media (max-width: 1023px) {
  /* ----- Portada: la foto a pantalla completa y los botones abajo -----
     La foto es el FONDO de la pantalla (--login-foto, lo pone app.js/api.js)
     y el titular va EN EL FLUJO, arriba de los botones: en un iPhone chico,
     o con Face ID y Apple visibles, los botones empujan hacia abajo y la
     pantalla se desplaza en vez de encimarse sobre el titular. Sin foto de
     la marca, el degradado de la marca. */
  .screen--login[data-paso="inicio"] {
    max-width: none;            /* de 481 a 1023 la base la dejaba en una caja con franjas a los lados */
    width: 100%;
    margin: 0;
    background-color: #111;
    background-image:
      linear-gradient(180deg, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.30) 38%, rgba(0,0,0,0.86) 100%),
      var(--login-foto, linear-gradient(135deg, var(--brand-orange, #F5A623) 0%, var(--brand-red, #C44536) 100%));
    background-size: cover;
    background-position: center;
  }
  .screen--login[data-paso="inicio"] .login-hero {
    position: relative;
    height: auto;
    min-height: 0;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: calc(var(--safe-top, 0px) + min(11vh, 88px)) 24px 24px;
    background: none !important;   /* la foto ya es el fondo de la pantalla */
  }
  .screen--login[data-paso="inicio"] .login-hero::after { display: none; }
  /* Los botones no se estiran de más en celular girado o tablet */
  .screen--login[data-paso="inicio"] #loginStepInicio,
  .screen--login[data-paso="inicio"] .login-terms { width: 100%; max-width: 480px; margin-left: auto; margin-right: auto; }
  .screen--login[data-paso="inicio"] .login-hero__logo { width: 76px; height: 76px; border-radius: 22px; }
  .screen--login[data-paso="inicio"] .login-hero__logo img { border-radius: 22px; }
  .screen--login[data-paso="inicio"] .login-hero__texto {
    display: block;
    position: relative;
    z-index: 1;
    margin-top: 22px;
    text-align: center;
    color: #fff;
    max-width: 420px;
  }
  .login-hero__titulo {
    font-size: 34px;
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin: 0 0 10px;
    text-shadow: 0 2px 18px rgba(0,0,0,0.35);
  }
  .login-hero__sub { font-size: 16px; font-weight: 600; opacity: 0.92; margin: 0; }
  .screen--login[data-paso="inicio"] .login-body {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;           /* la base es flex:1 y se estiraba a todo lo alto */
    margin-top: auto;
    background: transparent;
    padding: 0 22px calc(var(--safe-bot, 0px) + 16px);
  }
  .screen--login[data-paso="inicio"] .login-terms { margin-top: 6px; padding-top: 8px; }
  .screen--login[data-paso="inicio"] .login-title,
  .screen--login[data-paso="inicio"] .login-sub { display: none; }
  .screen--login[data-paso="inicio"] .login-opcion--correo {
    background: rgba(255,255,255,0.14);
    color: #fff;
    border-color: rgba(255,255,255,0.30);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
  .screen--login[data-paso="inicio"] .login-opcion--google { border-color: transparent; }
  /* Face ID sobre la foto: blanco sólido, como los demás botones (transparente
     con borde se veía "raro" y su ícono azul se perdía en la foto). */
  .screen--login[data-paso="inicio"] .login-face-cta.login-opcion {
    background: #fff;
    color: #1f1f1f;
    border-color: transparent;
  }
  .screen--login[data-paso="inicio"] .login-face-cta.login-opcion svg { color: var(--brand-blue, #1A5DB5); }
  .screen--login[data-paso="inicio"] .login-guest-btn { color: rgba(255,255,255,0.92); }
  .screen--login[data-paso="inicio"] .login-terms,
  .screen--login[data-paso="inicio"] .login-terms a { color: rgba(255,255,255,0.72); }

  /* ----- Pasos (celular, código, correo): pantalla limpia, sin foto ----- */
  .screen--login:not([data-paso="inicio"]) .login-hero { display: none; }
  .screen--login:not([data-paso="inicio"]) .login-body { padding-top: calc(var(--safe-top, 0px) + 18px); }
  .screen--login:not([data-paso="inicio"]) .login-title { font-size: 30px; line-height: 1.1; margin-bottom: 8px; }
}

@media (min-width: 1024px) {
  /* Computadora: la foto a la izquierda con el titular; a la derecha la
     portada (los botones) o el paso. */
  .login-hero { display: flex !important; flex-direction: column; align-items: center; justify-content: center; }
  .login-hero.has-image::after { background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.58) 100%); }
  .login-hero__texto { display: block; position: relative; z-index: 1; margin-top: 26px; padding: 0 48px; text-align: center; color: #fff; max-width: 560px; }
  .login-hero__titulo { font-size: 46px; line-height: 1.04; font-weight: 900; letter-spacing: -0.03em; margin: 0 0 12px; text-shadow: 0 2px 20px rgba(0,0,0,0.35); }
  .login-hero__sub { font-size: 18px; font-weight: 600; opacity: 0.92; margin: 0; }
  .login-title { font-size: 34px; }
  /* Los términos van debajo de los botones: con margin-top:auto se comían el
     espacio y los botones quedaban pegados arriba en vez de centrados. */
  .login-terms { margin-top: 20px !important; }
}
/* Correo: la flecha de arriba ya regresa; el "Volver" de abajo sobraba. */
#loginEmailBack { display: none; }

/* ============================================================
   CREAR TU CUENTA, COMO RAPPI (25-sep)
   ============================================================
   Después de entrar, lo que le falte a la cuenta se pide UNA cosa por
   pantalla, en los mismos pasos limpios del login (sin foto, con flecha):
   celular → nombre → apellido → correo → hoja de Términos → primera
   dirección. Lo maneja siguientePasoDelAlta() en app.js. */

/* El campo va grande y sin caja, con la raya abajo (como Rappi). 28px: de
   paso el iPhone no hace zoom al enfocarlo (lo hace con menos de 16px). */
.alta-grande {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 2px solid var(--border);
  border-radius: 0;
  background: transparent;
  padding: 10px 0 12px;
  margin: 6px 0 28px;
  font-family: inherit;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  outline: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s;
}
.alta-grande::placeholder { color: var(--text-3); font-weight: 700; }
.alta-grande:focus { border-bottom-color: var(--brand-blue, #1A5DB5); }
/* Un correo es largo: más chico para que quepa en un celular angosto. */
.alta-grande--correo { font-size: 22px; letter-spacing: -0.01em; }

/* El pin de "Agrega tu primera dirección". */
.alta-pin {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 8px auto 26px;
  background: rgba(26, 93, 181, 0.10);
  color: var(--brand-blue, #1A5DB5);
}

/* Un aviso en el subtítulo del paso ("Ese celular ya tiene una cuenta...",
   "Ese correo ya está en otra cuenta"): se queda escrito, no se va como
   el toast. */
.login-sub.login-sub--aviso {
  color: #B42318;
  background: #FEF3F2;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 600;
}
/* "Salir de esta cuenta": secundario, no compite con el botón azul. */
#loginSalir { color: var(--text-2); margin-top: 10px; }
/* 🧨 .login-link trae display:block y le ganaba al `hidden` del navegador:
   "Salir de esta cuenta" salía en TODOS los pasos del celular (también al
   entrar, sin cuenta que cerrar). Lo mismo con los links nuevos. */
.login-link[hidden] { display: none !important; }
/* "Continuar con tu celular" cuando ese correo no tiene cuenta. */
#loginEmailConCelular { margin-top: 10px; }

/* ----- Hoja de Términos: de abajo, con velo -----
   No se cierra tocando afuera: sin aceptar Términos y Privacidad no se
   sigue (como Rappi). Encima de las hojas (90) y su velo (80); el aviso
   (toast, 200) queda encima de ella. */
.alta-terminos[hidden] { display: none !important; }
.alta-terminos {
  position: fixed;
  inset: 0;
  z-index: 150;
}
.alta-terminos__velo {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
  opacity: 0;
  transition: opacity 0.28s var(--e-out);
}
.alta-terminos.show .alta-terminos__velo { opacity: 1; }
.alta-terminos__hoja {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: var(--max-w);
  max-height: 92dvh;
  margin: 0 auto;
  overflow-y: auto;
  background: var(--bg);
  border-radius: 28px 28px 0 0;
  padding: 10px 22px calc(var(--safe-bot, 0px) + 20px);
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.18);
  transform: translateY(100%);
  transition: transform 0.36s var(--e-out);
}
.alta-terminos.show .alta-terminos__hoja { transform: translateY(0); }
.alta-terminos__asa {
  width: 40px;
  height: 5px;
  border-radius: 100px;
  background: var(--border);
  margin: 0 auto 16px;
}
.alta-terminos__titulo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 6px;
}
.alta-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.4;
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.alta-check:last-of-type { border-bottom: 0; }
/* La casilla, redonda de esquinas y azul al palomearla. La palomita es un
   fondo (no ::after): en inputs no todos los navegadores pintan ::after. */
.alta-check input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 2px solid var(--text-3);
  border-radius: 7px;
  background: var(--card);
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.alta-check input[type="checkbox"]:checked {
  border-color: var(--brand-blue, #1A5DB5);
  background: var(--brand-blue, #1A5DB5) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.alta-check input[type="checkbox"]:focus-visible { outline: 2px solid var(--brand-blue, #1A5DB5); outline-offset: 2px; }
.alta-check a {
  color: var(--brand-blue, #1A5DB5);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
#altaAceptar { margin: 18px 0 0; }
/* "Tus recibos llegarán a juan@gmial.com": un error de dedo se ve antes de
   aceptar. El correo puede ser largo: se parte donde sea. */
.alta-terminos__correo {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-2);
  overflow-wrap: anywhere;
}
.alta-terminos__correo[hidden] { display: none; }
#altaTerminosAtras { margin-top: 8px; }

@media (min-width: 600px) {
  /* La columna de la primera vez (la misma que la sucursal y la llave). */
  .alta-terminos__hoja { max-width: var(--primera-vez-w, 600px); }
}
@media (min-width: 1024px) {
  /* En computadora es un cuadro al centro, como los demás diálogos: una
     hoja pegada abajo de una pantalla de 1,440 se ve perdida. */
  .alta-terminos__hoja {
    top: 50%;
    bottom: auto;
    max-width: 480px;
    border-radius: 24px;
    padding: 26px 28px 24px;
    opacity: 0;
    transform: translateY(-46%);
    transition: transform 0.3s var(--e-out), opacity 0.2s ease;
  }
  .alta-terminos.show .alta-terminos__hoja { transform: translateY(-50%); opacity: 1; }
  .alta-terminos__asa { display: none; }
}

/* Avisos largos ("Ese celular ya tiene una cuenta. Sal y entra con tu
   celular.") se salían de la píldora en el celular: con nowrap no cabían,
   y sin él se partían a la mitad del ancho (con left:50% el ancho
   automático sólo tiene esa mitad). max-content con tope: una línea si
   cabe, dos si no. */
.toast { width: max-content; white-space: normal; text-align: center; line-height: 1.3; }

/* Vista previa del panel (js/vista-previa.js): lo que sólo existe en la web
   ("descarga la app") no sale en el teléfono de la vista previa. */
html.vista-previa #webStoreBanner { display: none !important; }
/* …y deja el aire de un iPhone (la barra de la hora y la raya de abajo), que
   el panel pinta encima del teléfono: lo de la app no queda debajo. */
html.vista-previa { --safe-top: 47px; --safe-bot: 34px; }

/* 📱 iPhone plegable abierto y tablets chicas (600–1023px), vertical y
   acostado (Federico, 23-oct-2026: "viene el iPhone Duo, hay que ser
   responsivos"). Las reglas de "más ancho que un teléfono" ahora arrancan en
   600px (antes 768: el plegable abierto, ~740px, se quedaba en una columna de
   teléfono de 480px en medio). Aquí sólo lo que ese tamaño necesita aparte:
   el menú a 3 columnas (2 dejaba fotos enormes; 4 es de computadora) y la
   hoja del platillo de un ancho cómodo, no estirada a todo el contenedor. */
@media (min-width: 600px) and (max-width: 1023px) {
  .menu-section__list { grid-template-columns: repeat(3, 1fr) !important; gap: 16px 12px !important; }
  .menu-section .products-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .sheet--product, .sheet--info { max-width: min(var(--max-w), 620px) !important; }
}
/* Acostado (ancho pero chaparro, como el plegable abierto de lado): la foto
   del platillo con su piso de 320px se comía media pantalla y dejaba poco
   para escoger sabores. Ahí la foto va al 30% del alto. */
@media (min-width: 600px) and (max-width: 1023px) and (max-height: 820px) and (orientation: landscape) {
  .sheet--product .prod-hero { flex: 0 0 30vh; }
}

/* ============================================================
   LA PÁGINA DE PEDIDOS — la entrada de la WEB (29/30-nov-2026)
   ============================================================
   La propuesta 18 que aprobó Federico (herramientas/bocetos/
   inicio-web-propuesta-18.html), white label: los colores y la letra de
   cada marca llegan del servidor (GET /api/stores/directorio) y se ponen
   como variables en la pantalla (ponerLaMarca, js/app.js):
     --dt-fondo      el fondo de la página           (TE #67ABE4)
     --dt-primario   «Pedir aquí», ligas, el menú     (TE #1E59AF)
     --dt-acento     lo escogido, «Nuestra app»       (TE #FFB719)
     --dt-pie        el pie                          (TE #17437F)
     --dt-sobre-fondo  la letra sobre el fondo (blanca, u oscura si el fondo es claro)
     --dt-letra      la letra de la marca (TE Gooper; se baja sólo aquí)
   Sólo en la web: en la app del teléfono esta pantalla nunca se enseña. */
.screen--elegir {
  --dt-fondo: #1A5DB5; --dt-primario: #1A5DB5; --dt-acento: #F5A623; --dt-pie: #14284B;
  --dt-sobre-fondo: #FFFFFF; --dt-texto: #1A1A1A; --dt-gris: #5B6B78; --dt-verde: #3A9346;
  --dt-letra: -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif;
  --dt-r: 22px;
  background: var(--dt-fondo);
  color: var(--dt-texto);
  font-family: var(--dt-letra);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
html.web-elegir, html.web-elegir body { background: var(--dt-fondo, #FFFFFF); }
html.web-elegir #webStoreBanner { display: none !important; }
.screen--elegir button { font-family: inherit; }
.screen--elegir a { color: inherit; text-decoration: none; }
.screen--elegir svg { display: block; }
.dt-main { flex: 1; width: 100%; }
.dt-vista { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.dt-vista[hidden] { display: none; }

/* ── el encabezado con menú ── */
.dt-cab { position: sticky; top: 0; z-index: 30; background: #FFFFFF; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); padding-top: env(safe-area-inset-top, 0px); }
.dt-cab__in { max-width: 1280px; margin: 0 auto; height: 72px; padding: 0 28px; display: flex; align-items: center; gap: 28px; }
.dt-cab__logo { flex: none; display: flex; align-items: center; padding: 0; border: 0; background: none; cursor: pointer; }
.dt-cab__logo img { height: 34px; width: auto; max-width: 220px; object-fit: contain; display: block; }
.dt-cab__nombre { font-weight: 900; font-size: 20px; color: var(--dt-primario); }
.dt-nav { flex: 1; display: flex; justify-content: center; gap: 6px; }
.dt-nav__it { border: 0; background: none; cursor: pointer; font-weight: 900; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--dt-primario); padding: 10px 16px; border-radius: 999px; }
.dt-nav__it:hover { background: rgba(0, 0, 0, 0.04); }
.dt-nav__it.on { background: var(--dt-acento); color: var(--dt-texto); }
.dt-entrar { flex: none; display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; font-weight: 700; font-size: 15px; color: var(--dt-primario); padding: 9px 16px; border-radius: 999px; background: #EEF5FC; }
.dt-entrar svg { width: 20px; height: 20px; }
.dt-hamb { display: none; flex: none; width: 42px; height: 42px; border: 0; border-radius: 999px; background: #EEF5FC; color: var(--dt-primario); align-items: center; justify-content: center; cursor: pointer; }
.dt-hamb svg { width: 22px; height: 22px; }
.dt-menu-cel { border-top: 1px solid #EEF1F5; padding: 6px 16px 12px; display: flex; flex-direction: column; }
.dt-menu-cel[hidden] { display: none; }
.dt-menu-cel__it { border: 0; background: none; text-align: left; cursor: pointer; font-weight: 900; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; color: var(--dt-primario); padding: 13px 8px; border-radius: 12px; }
.dt-menu-cel__it.on { background: var(--dt-acento); color: var(--dt-texto); }

/* ── cambiando de tienda (desde el carrito o el pago) ── */
.dt-cambiando { display: flex; align-items: center; gap: 12px; padding: 18px 2px 0; color: var(--dt-sobre-fondo); font-weight: 900; font-size: 17px; }
.dt-cambiando[hidden] { display: none; }
.dt-cambiando__atras { border: 0; cursor: pointer; background: #FFFFFF; color: var(--dt-primario); font-weight: 700; font-size: 14px; padding: 9px 14px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10); }
.elegir-pedidos { margin: 16px 0 0; }

/* ── los filtros: compu ── */
.dt-filtros { padding-top: 30px; }
.dt-f { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.dt-seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.dt-seg::-webkit-scrollbar { display: none; }
.dt-seg__it { border: 0; cursor: pointer; background: transparent; color: var(--dt-sobre-fondo); font-weight: 700; font-size: 16px; padding: 11px 22px; border-radius: 999px; white-space: nowrap; }
.dt-seg__it.on { background: #FFFFFF; color: var(--dt-primario); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10); }
.dt-tabs2 { display: flex; gap: 26px; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 2px 4px 8px; }
.dt-tabs2::-webkit-scrollbar { display: none; }
.dt-tab2 { position: relative; border: 0; background: none; cursor: pointer; color: var(--dt-sobre-fondo); font-weight: 700; font-size: 15px; white-space: nowrap; opacity: .78; padding: 4px 0; }
.dt-tab2:hover { opacity: 1; }
.dt-tab2.on { opacity: 1; font-weight: 900; }
.dt-tab2.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; border-radius: 3px; background: var(--dt-acento); }
.dt-conteo { margin: 0 0 18px; text-align: center; color: var(--dt-sobre-fondo); font-weight: 700; font-size: 14px; opacity: .9; }

/* ── la lista y el mapa ── */
.dt-zona { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; padding-bottom: 48px; }
.dt-zona:has(.dt-mapa[hidden]) { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin: 0 auto; }
.dt-lista { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dt-grupo { margin: 6px 4px -4px; color: var(--dt-sobre-fondo); font-weight: 900; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.dt-mapa { position: sticky; top: 92px; height: calc(100vh - 112px); min-height: 460px; border-radius: var(--dt-r); overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12); border: 4px solid #FFFFFF; background: #E8EEF3; isolation: isolate; z-index: 0; }
.dt-mapa[hidden] { display: none; }
#dtMapa { width: 100%; height: 100%; }
.dt-mapa .leaflet-container { font-family: inherit; }

/* ── cada tienda ── */
.dt-tienda { background: #FFFFFF; border-radius: var(--dt-r); padding: 20px 22px 16px; box-shadow: 0 6px 18px rgba(23, 67, 127, 0.10); transition: box-shadow .2s; min-width: 0; }
.dt-tienda.sel { box-shadow: 0 0 0 3px var(--dt-acento), 0 10px 26px rgba(23, 67, 127, 0.16); }
.dt-animar .dt-tienda { animation: dtEntra .28s ease-out both; }
@keyframes dtEntra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.dt-tienda__nombre { font-weight: 900; font-size: 21px; letter-spacing: -.01em; line-height: 1.2; }
.dt-tienda__badge { display: inline-block; vertical-align: 3px; margin-left: 8px; font-size: 10.5px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: var(--dt-acento); color: var(--dt-texto); }
.dt-tienda__estado { margin-top: 4px; font-size: 13.5px; color: var(--dt-gris); display: flex; align-items: center; gap: 6px; }
.dt-tienda__estado b { font-weight: 700; color: var(--dt-gris); }
.dt-punto { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #9AA7B2; box-shadow: 0 0 0 3px rgba(154, 167, 178, 0.18); margin-right: 2px; }
.dt-punto.is-abierta { background: var(--dt-verde); box-shadow: 0 0 0 3px rgba(58, 147, 70, 0.15); }
.dt-punto.is-abierta + b { color: var(--dt-verde); }
.dt-punto--info { background: var(--dt-primario); box-shadow: 0 0 0 3px rgba(30, 89, 175, 0.14); }
.dt-tienda--info .dt-tienda__estado { color: var(--dt-texto); font-weight: 700; }
.dt-tienda__dir { margin-top: 4px; font-size: 14px; color: var(--dt-gris); display: flex; align-items: center; gap: 6px; min-width: 0; }
.dt-tienda__dir svg { width: 15px; height: 15px; flex: none; color: var(--dt-primario); }
.dt-tienda__dir-txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dt-llegar { flex: none; font-weight: 700; color: var(--dt-primario) !important; white-space: nowrap; }
.dt-acciones { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 14px; }
/* El botón de pedir: el color de la marca para él (--dt-boton; 30-nov, TE:
   negro) o su principal, con la letra que se lee encima (--dt-sobre-boton). */
.dt-pedir { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 58px; border: 0; cursor: pointer; border-radius: 16px; background: var(--dt-boton, var(--dt-primario)); background: linear-gradient(180deg, color-mix(in srgb, var(--dt-boton, var(--dt-primario)) 84%, #FFFFFF) 0%, var(--dt-boton, var(--dt-primario)) 100%); color: var(--dt-sobre-boton, #FFFFFF) !important; font-weight: 900; font-size: 19px; letter-spacing: .01em; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22); box-shadow: 0 6px 16px color-mix(in srgb, var(--dt-boton, var(--dt-primario)) 32%, transparent); text-decoration: none; }
.dt-pedir svg { width: 20px; height: 20px; }
.dt-pedir:active { transform: translateY(1px); }
.dt-pedir.is-pronto { cursor: default; background: #EEF2F6; color: #7C8A96 !important; box-shadow: none; font-size: 17px; }
.dt-pedir--llamar { background: linear-gradient(180deg, #44B056 0%, #2F8A3C 100%); color: #FFFFFF !important; box-shadow: 0 6px 16px rgba(47, 138, 60, 0.28); }
.dt-pedir--llamar .dt-ico svg { width: 22px; height: 22px; }
.dt-mas { margin-top: 12px; display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; cursor: pointer; font-weight: 700; font-size: 14px; color: var(--dt-primario); padding: 4px 0; }
.dt-mas > svg { width: 16px; height: 16px; transition: transform .2s; }
.dt-tienda.abierta .dt-mas > svg { transform: rotate(180deg); }
.dt-minis { display: inline-flex; align-items: center; gap: 5px; margin-left: 10px; opacity: .9; }
.dt-tienda.abierta .dt-minis { display: none; }
.dt-mini { width: 20px; height: 20px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; object-fit: cover; }
.dt-mini--tel { background: rgba(58, 147, 70, 0.14); color: var(--dt-verde); }
.dt-mini--tel svg { width: 12px; height: 12px; }
.dt-otras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.dt-otras[hidden] { display: none; }
/* 30-nov (Federico): con un número impar (una tienda sin Uber o sin Rappi)
   la última ya NO va a lo ancho: «parece que es el principal». Todas del
   mismo tamaño; el principal es «Pedir aquí». */
.dt-otra { display: flex; align-items: center; justify-content: flex-start; gap: 10px; height: 54px; padding: 0 12px 0 8px; border: 0; cursor: pointer; border-radius: 14px; font-weight: 800; font-size: 15px; color: #FFFFFF !important; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14); white-space: nowrap; overflow: hidden; text-decoration: none; }
.dt-otra > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.dt-otra__ico { flex: none; display: flex; align-items: center; justify-content: center; }
.dt-otra__ico img { width: 34px; height: 34px; border-radius: 9px; display: block; object-fit: cover; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18); background: #FFFFFF; }
.dt-otra--tel .dt-otra__ico { width: 34px; height: 34px; }
.dt-otra--tel .dt-otra__ico svg { width: 26px; height: 26px; color: #FFFFFF; }
.dt-otra--tel { background: linear-gradient(180deg, #44B056 0%, #2F8A3C 100%); }
.dt-otra--app { background: var(--dt-acento); background: linear-gradient(180deg, color-mix(in srgb, var(--dt-acento) 80%, #FFFFFF) 0%, var(--dt-acento) 100%); color: var(--dt-texto) !important; }
.dt-otra--rappi { background: linear-gradient(180deg, #FF6A4A 0%, #FF441F 100%); }
.dt-otra--uber { background: linear-gradient(180deg, #2C2C2C 0%, #050505 100%); }
.dt-otra--didi { background: linear-gradient(180deg, #FF9A55 0%, #FF7A1A 100%); }

/* ── lo que se dice en lugar de la lista ── */
.elegir-cargando { display: flex; flex-direction: column; gap: 14px; }
.elegir-esqueleto { height: 168px; border-radius: var(--dt-r, 22px); background: rgba(255, 255, 255, 0.55); animation: dtLatido 1.2s ease-in-out infinite alternate; }
@keyframes dtLatido { from { opacity: .55; } to { opacity: 1; } }
/* 30-nov (Federico: «¿por qué mientras carga sale esto?»): la primera vez,
   mientras llega la marca, un esqueleto NEUTRO (gris claro): ni el nombre en
   texto, ni el azul genérico, ni el pie con el lema viejo. Las siguientes
   visitas ya arrancan con la marca guardada (app.js, marcaGuardada). */
.screen--elegir.dt-sin-marca .dt-pie { display: none; }
.screen--elegir.dt-sin-marca .elegir-esqueleto { background: #E3E8EE; }
.dt-cab__esqueleto { display: block; width: 148px; height: 26px; border-radius: 8px; background: #E3E8EE; animation: dtLatido 1.2s ease-in-out infinite alternate; }
.elegir-aviso { background: #FFFFFF; border-radius: var(--dt-r, 22px); padding: 26px 22px; text-align: center; box-shadow: 0 6px 18px rgba(23, 67, 127, 0.10); color: var(--dt-texto, #1A1A1A); }
.elegir-aviso__titulo { margin: 0 0 6px; font-weight: 900; font-size: 18px; }
.elegir-aviso__sub { margin: 0 0 16px; font-size: 14px; color: var(--dt-gris, #5B6B78); }
.elegir-aviso__btn { max-width: 280px; margin: 0 auto; }

/* ── los pines del mapa ── */
.dt-pin { position: relative; width: 42px; height: 42px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28); display: flex; align-items: center; justify-content: center; transform-origin: 50% 115%; transition: transform .15s, background .15s; }
.dt-pin::after { content: ''; position: absolute; left: 50%; bottom: -5px; width: 12px; height: 12px; background: inherit; border-radius: 2px; transform: translateX(-50%) rotate(45deg); z-index: -1; }
.dt-pin span { width: 32px; height: 19px; background-position: center; background-size: contain; background-repeat: no-repeat; }
.dt-pin .dt-pin__punto { width: 14px; height: 14px; border-radius: 50%; background: var(--dt-primario); }
.dt-pin.sel { background: var(--dt-primario); transform: scale(1.22); }
.dt-pin.sel .dt-pin__punto { background: #FFFFFF; }
.leaflet-tooltip.dt-pin-nombre { font-family: var(--dt-letra); font-weight: 700; font-size: 13px; border: 0; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15); color: var(--dt-texto); }

/* ── el Menú ── */
.dt-menu-cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 34px 0 16px; color: var(--dt-sobre-fondo); }
.dt-menu-cab h1 { margin: 0; font-weight: 900; font-size: 46px; line-height: 1.05; }
.dt-menu-cab p { margin: 4px 0 0; font-size: 16px; opacity: .95; }
.dt-pedir--cta { width: auto; flex: none; padding: 0 26px; height: 54px; font-size: 17px; }
/* 📌 30-nov (Federico, «Escoge tu tienda y pide» en Menú): «que siempre se
   quede fijo y no se vaya». Flota abajo mientras se ve el menú (en compu,
   centrado; en el celular, a lo ancho). El menú y el pie dejan su lugar al
   final, para que no tape la última fila ni las ligas del pie. Debajo de la
   hoja de abajo (z 85) y de la cabecera (z 30). */
#dtVistaMenu .dt-pedir--cta {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 25; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.30); box-shadow: 0 10px 28px color-mix(in srgb, var(--dt-boton, var(--dt-primario)) 42%, transparent);
}
#dtVistaMenu .dt-pedir--cta:active { transform: translateX(-50%) translateY(1px); }
#dtVistaMenu { padding-bottom: 96px; }
/* 🔎 30-nov: el platillo en grande al picar su foto en el Menú. Sólo enseña:
   cualquier toque la cierra (también sobre la tarjeta) y Esc. Encima de todo
   (la hoja de abajo es z 85). */
.dt-prod[data-prod] { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.dt-prod[data-prod]:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 3px; }
.dt-plato { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(13, 36, 72, 0.58); opacity: 0; transition: opacity .16s ease; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.dt-plato[hidden] { display: none; }
.dt-plato.on { opacity: 1; }
.dt-plato__caja { position: relative; width: min(460px, 100%); max-height: calc(100dvh - 48px); overflow: auto; background: #FFFFFF; border-radius: 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); transform: translateY(10px) scale(.98); transition: transform .16s ease; outline: none; }
.dt-plato.on .dt-plato__caja { transform: none; }
.dt-plato__caja img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #E8EEF3; }
/* Lo de la vitrina sin foto (30-nov): el cuadro «Próximamente» o el
   isotipo de la marca, del tamaño de la foto. */
.dt-prod__cuadro, .dt-plato__cuadro { position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: var(--dt-fondo, #67ABE4); }
.dt-plato__caja img[hidden], .dt-plato__cuadro[hidden] { display: none; }
/* En la rejilla el fondo de la página es ese mismo azul y la tarjeta se
   perdía arriba: ahí el cuadro va un tono más claro (un velo blanco debajo
   del dibujo; el fondo propio del dibujo, transparente). */
.dt-prod__cuadro::before { content: ''; position: absolute; inset: 0; background: rgba(255, 255, 255, 0.3); }
.dt-prod__cuadro .prox { z-index: 1; }
.dt-prod__cuadro .prox__fondo { fill: transparent; }
.dt-plato__cerrar { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.94); color: #17437F; font-size: 26px; font-weight: 700; line-height: 1; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18); }
.dt-plato__texto { padding: 18px 22px 22px; color: #1A1A1A; }
.dt-plato__texto h2 { margin: 0; font-weight: 900; font-size: 27px; line-height: 1.1; }
.dt-plato__texto p { margin: 8px 0 0; font-size: 16px; line-height: 1.45; color: #4A5560; }
.dt-plato__texto b { display: block; margin-top: 12px; font-size: 23px; font-weight: 900; color: var(--dt-primario, #1E59AF); }
html.dt-plato-abierto, html.dt-plato-abierto body { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .dt-plato, .dt-plato__caja { transition: none; } }
.screen--elegir:has(#dtVistaMenu:not([hidden])) .dt-pie { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
.dt-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.dt-chip { border: 0; cursor: pointer; display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.22); color: var(--dt-sobre-fondo); font-weight: 700; font-size: 15px; white-space: nowrap; }
.dt-chip.on { background: #FFFFFF; color: var(--dt-primario); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10); }
.dt-rejilla { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding-bottom: 48px; }
.dt-prod { position: relative; background: #FFFFFF; border-radius: var(--dt-r); overflow: hidden; box-shadow: 0 6px 18px rgba(23, 67, 127, 0.10); min-width: 0; }
/* La etiqueta del producto (su «Badge» en el panel, la misma que pinta la
   app; 30-nov: «Tiempo limitado» va como etiqueta, no como grupo). Debajo de
   la tira pegada del celular (z 20). */
.dt-prod__tag { position: absolute; top: 10px; left: 10px; z-index: 2; max-width: calc(100% - 20px); padding: 5px 11px; border-radius: 999px; background: var(--dt-acento); color: var(--dt-texto); font-weight: 900; font-size: 12.5px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18); }
.dt-plato__tag { display: inline-block; margin-bottom: 8px; padding: 5px 12px; border-radius: 999px; background: var(--dt-acento, #FFB719); color: #1A1A1A; font-weight: 900; font-size: 13px; line-height: 1.2; }
.dt-plato__tag[hidden] { display: none; }
/* «Cargando» / «No pudimos cargar el menú»: a todo lo ancho de la rejilla
   (si no, quedaba apretado en la primera columna). */
#dtMenuRejilla > .elegir-aviso { grid-column: 1 / -1; }
.dt-prod img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: #F2F6FB; }
.dt-prod > div { padding: 14px 16px 16px; }
.dt-prod h3 { margin: 0; font-weight: 900; font-size: 17px; line-height: 1.2; color: var(--dt-texto); }
.dt-prod b { display: block; margin-top: 6px; font-weight: 900; font-size: 17px; color: var(--dt-primario); }

/* ── el pie ── */
.dt-pie { background: var(--dt-pie); color: #FFFFFF; }
.dt-pie__in { max-width: 1280px; margin: 0 auto; padding: 38px 28px 26px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.dt-pie__logo img { height: 58px; width: auto; max-width: 320px; object-fit: contain; display: block; }
/* 30-nov (Federico): el lema del pie como la imagen de la marca (TE: «(Very)
   Mucho Argentino», versión blanca). */
.dt-pie__lema--img img { display: block; height: 124px; width: auto; max-width: 100%; margin: 0 auto; object-fit: contain; }
.dt-pie__nombre { font-weight: 900; font-size: 22px; }
.dt-pie__lema { text-align: center; font-weight: 900; font-size: 30px; line-height: 1.05; }
.dt-pie__lema small { display: block; font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--dt-acento); margin-bottom: 4px; }
.dt-pie__redes { justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.dt-pie__redes p { margin: 0; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.dt-redes { display: flex; gap: 10px; flex-wrap: wrap; }
.dt-redes a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, 0.12); display: flex; align-items: center; justify-content: center; color: #FFFFFF !important; }
.dt-redes a svg { width: 20px; height: 20px; }
.dt-redes a img { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; }
.dt-pie__abajo { max-width: 1280px; margin: 0 auto; padding: 14px 28px 22px; padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 13px; display: flex; justify-content: space-between; gap: 12px; }
.dt-pie__abajo > span { opacity: .75; }
.dt-pie__abajo button { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; padding: 0; }
.dt-pie__abajo button:hover { text-decoration: underline; }
/* Con algo en el carrito, su barra va abajo: el pie no se queda debajo. */
html.web-elegir:has(#cartBar.show) .dt-pie { padding-bottom: 92px; }

/* ── la hoja de abajo (estado → municipio; descarga la app) ── */
.dt-hoja { position: fixed; inset: 0; z-index: 85; }
.dt-hoja[hidden] { display: none; }
.dt-hoja__velo { position: absolute; inset: 0; background: rgba(10, 25, 50, 0.45); opacity: 0; transition: opacity .2s; }
.dt-hoja__caja { position: absolute; left: 0; right: 0; bottom: 0; max-height: 78vh; overflow-y: auto; background: #FFFFFF; color: var(--dt-texto); border-radius: 24px 24px 0 0; padding: 8px 18px calc(26px + env(safe-area-inset-bottom, 0px)); transform: translateY(100%); transition: transform .22s ease-out; box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.18); }
.dt-hoja.ver .dt-hoja__velo { opacity: 1; }
.dt-hoja.ver .dt-hoja__caja { transform: none; }
.dt-hoja__asa { width: 42px; height: 5px; border-radius: 5px; background: #DDE3EA; margin: 0 auto 10px; }
.dt-hoja__cab { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; margin-bottom: 6px; }
.dt-hoja__atras { grid-column: 1 / -1; justify-self: start; border: 0; background: none; cursor: pointer; font-weight: 700; font-size: 14.5px; color: var(--dt-primario); padding: 2px 0 4px; }
.dt-hoja__tit { font-weight: 900; font-size: 21px; line-height: 1.2; }
.dt-hoja__x { width: 36px; height: 36px; border: 0; cursor: pointer; border-radius: 50%; background: #F1F4F8; font-size: 22px; line-height: 1; color: var(--dt-gris); }
.dt-hoja__lista { list-style: none; margin: 0; padding: 0; }
.dt-hoja__lista li + li { border-top: 1px solid #EEF1F5; }
.dt-hoja__lista button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 15px 4px; border: 0; background: none; cursor: pointer; text-align: left; font-weight: 700; font-size: 17px; color: var(--dt-texto); }
.dt-hoja__lista button span { flex: 1; }
.dt-hoja__lista button small { font-weight: 400; font-size: 14px; color: var(--dt-gris); }
.dt-hoja__lista button.on, .dt-hoja__lista button.on small { color: var(--dt-primario); }
.dt-hoja__lista button svg { width: 20px; height: 20px; color: var(--dt-primario); flex: none; }
.dt-apps { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 6px 0 4px; }
.dt-apps p { margin: 0; font-size: 15px; color: var(--dt-gris); }
.dt-apps__icono { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14); }
.dt-apps__botones { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.dt-apps__boton { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 12px; background: #111111; color: #FFFFFF !important; font-weight: 700; font-size: 15px; }
.dt-apps__boton svg { width: 18px; height: 18px; }
.dt-apps__qr { width: 150px; height: 150px; border-radius: 12px; border: 1px solid #EEF1F5; }
.dt-apps small { font-size: 12.5px; color: var(--dt-gris); }
@media (min-width: 900px) {
  /* En compu, la hoja es una ventana al centro. */
  .dt-hoja__caja { left: 50%; right: auto; bottom: auto; top: 50%; width: 440px; max-width: calc(100% - 32px); border-radius: 24px; padding: 14px 22px 24px; transform: translate(-50%, -46%); opacity: 0; transition: transform .2s ease-out, opacity .2s; }
  .dt-hoja.ver .dt-hoja__caja { transform: translate(-50%, -50%); opacity: 1; }
  .dt-hoja__asa { display: none; }
}

/* ── celular ── */
@media (max-width: 899px) {
  .dt-cab__in { height: 62px; padding: 0 16px; gap: 10px; }
  .dt-cab__logo img { height: 28px; max-width: 170px; }
  .dt-nav { display: none; }
  .dt-entrar { margin-left: auto; padding: 8px 12px; font-size: 14px; }
  .dt-hamb { display: inline-flex; }
  .dt-vista { padding: 0 16px; }
  .dt-filtros { padding-top: 18px; }
  .dt-barra { position: relative; z-index: 2; margin: 0 auto 10px; max-width: 640px; background: #FFFFFF; border-radius: 20px; box-shadow: 0 14px 36px rgba(23, 67, 127, 0.20); display: flex; align-items: center; padding: 6px; gap: 4px; }
  .dt-bseg { flex: 1; min-width: 0; text-align: left; border: 0; background: none; cursor: pointer; padding: 8px 30px 8px 12px; border-radius: 16px; display: flex; flex-direction: column; position: relative; color: var(--dt-texto); }
  .dt-bseg small { font-weight: 900; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dt-gris); }
  .dt-bseg b { font-weight: 900; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dt-bseg svg { position: absolute; right: 8px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--dt-primario); }
  .dt-bseg[disabled] { cursor: default; opacity: .55; }
  .dt-barra i { flex: none; width: 1px; height: 36px; background: #E3E9F1; }
  .dt-conteo { margin: 4px 0 18px; }
  .dt-zona { grid-template-columns: minmax(0, 1fr); }
  .dt-mapa { display: none !important; }
  .dt-tienda { padding: 18px 18px 14px; }
  .dt-tienda__nombre { font-size: 19px; }
  .dt-pedir { height: 54px; font-size: 18px; }
  .dt-otra { height: 52px; font-size: 14.5px; padding: 0 10px 0 7px; }
  .dt-menu-cab { flex-direction: column; align-items: stretch; padding: 22px 0 12px; }
  .dt-menu-cab h1 { font-size: 34px; }
  .dt-pedir--cta { width: 100%; }
  #dtVistaMenu .dt-pedir--cta { left: 16px; right: 16px; width: auto; transform: none; }
  #dtVistaMenu .dt-pedir--cta:active { transform: translateY(1px); }
  .dt-plato { padding: 16px; }
  .dt-plato__texto h2 { font-size: 23px; }
  .dt-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 14px; padding: 0 16px; scrollbar-width: none; }
  .dt-tabs::-webkit-scrollbar { display: none; }
  .dt-rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .dt-prod > div { padding: 10px 12px 12px; }
  .dt-prod h3 { font-size: 14.5px; }
  .dt-prod b { font-size: 15px; }
  .dt-prod__tag { top: 8px; left: 8px; max-width: calc(100% - 16px); padding: 4px 9px; font-size: 11.5px; }
  /* 📱 30-nov (Federico): el Menú todo corrido, como el de la app: cada grupo
     con su título, y las pestañas pegadas JUSTO abajo del encabezado (su alto
     MEDIDO, --dt-cab-alto) con el fondo de la página, para que no se asome
     nada por arriba. La marcada es la del grupo en el que vas. */
  .dt-tabs--pegada { position: sticky; top: var(--dt-cab-alto, calc(62px + env(safe-area-inset-top, 0px))); z-index: 20; background: var(--dt-fondo); padding-top: 10px; padding-bottom: 10px; margin-bottom: 4px; transition: box-shadow .15s ease; }
  .dt-tabs--pegada.pegada { box-shadow: 0 10px 14px -12px rgba(13, 36, 72, 0.6); }
  .dt-corrido { padding-bottom: 48px; }
  .dt-corrido .dt-rejilla { padding-bottom: 0; }
  /* 30-nov (Federico): «más personalidad a cada grupo, más tamaño y más
     aire entre el grupo y la primera foto, para que se vea que vas
     navegando»: título grande con la raya del acento de la marca, aire
     antes de las fotos y entre un grupo y otro. */
  .dt-menu-grupo { padding-top: 22px; }
  .dt-menu-grupo + .dt-menu-grupo { margin-top: 40px; }
  .dt-menu-grupo__titulo { margin: 0 0 26px; font-weight: 900; font-size: 33px; line-height: 1.05; letter-spacing: -0.01em; color: var(--dt-sobre-fondo); }
  .dt-menu-grupo__titulo::after { content: ''; display: block; width: 54px; height: 6px; margin-top: 12px; border-radius: 999px; background: var(--dt-acento); }
  .dt-pie__in { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding: 30px 16px 18px; gap: 18px; }
  .dt-pie__redes { justify-self: center; align-items: center; }
  .dt-pie__logo img { height: 50px; }
  .dt-pie__lema--img img { height: 104px; }
  .dt-redes { justify-content: center; }
  /* 30-nov (Federico): sin el logo horizontal cuando el lema es la imagen de
     la marca, y el © con los avisos en UN renglón, en letra más chica (11 px:
     con Gooper cabe desde 360 de ancho). Si el nombre de una marca es muy
     largo, se corta el nombre con «…», nunca los avisos. */
  .dt-pie__logo--compu { display: none; }
  .dt-pie__abajo { justify-content: center; align-items: center; gap: 0; padding: 10px 10px calc(14px + env(safe-area-inset-bottom, 0px)); font-size: 11px; }
  .dt-pie__abajo > span { white-space: nowrap; flex-shrink: 0; }
  .dt-pie__abajo > span:first-child { flex-shrink: 1; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .dt-pie__abajo > span + span::before { content: '·'; margin: 0 5px; }
}
/* En el teléfono más angosto no cabe: el © arriba y los avisos abajo. */
@media (max-width: 359px) {
  .dt-pie__abajo { flex-direction: column; }
  .dt-pie__abajo > span + span::before { content: none; }
}
