/* =============================================================
   FUENTE — Urbanist variable self-hosted
============================================================= */
@font-face {
  font-family: "Urbanist";
  src: url("fonts/urbanist/urbanist-variable.woff2") format("woff2-variations"),
       url("fonts/urbanist/urbanist-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* =============================================================
   TOKENS LIGHT
============================================================= */
:root {
  /* Brand warm Latyon (BrandBook) */
  --warm-yellow: #EAC44F;
  --warm-orange: #EAA03F;
  --warm-gradient: linear-gradient(180deg, #EAC44F 0%, #EAA03F 100%);
  --warm-glow: rgba(234, 160, 63, .28);

  /* Backgrounds (lila perla del case study) */
  --bg-stage: #efedf2;
  --bg-app: #f7f6f3;
  --bg-card: #ffffff;
  --bg-subtle: #f2f0eb;
  --bg-tinted: #faf6ec;

  /* Texto */
  --text-primary: #15151a;
  --text-secondary: #4a4a52;
  --text-muted: #8a8a93;
  --text-on-warm: #ffffff;

  /* Estado */
  --success: #22c55e;
  --info: #3b82f6;

  /* Borders & shadows */
  --border-card: rgba(0, 0, 0, .06);
  --border-active: var(--warm-orange);
  --shadow-card: 0 1px 2px rgba(0,0,0,.04), 0 4px 14px rgba(0,0,0,.05);
  --shadow-elevated: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px rgba(0,0,0,.08);
  --shadow-phone: 0 30px 80px rgba(0,0,0,.16), 0 12px 24px rgba(0,0,0,.08);

  /* Radius */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;
}

[data-theme="dark"] {
  --bg-stage: #0c0c10;
  --bg-app: #15151a;
  --bg-card: #1c1c22;
  --bg-subtle: #20202a;
  --bg-tinted: #211e17;

  --text-primary: #f4f4f6;
  --text-secondary: #b0b0b8;
  --text-muted: #6a6a72;

  --border-card: rgba(255, 255, 255, .07);
  --shadow-card: 0 1px 2px rgba(0,0,0,.4), 0 4px 14px rgba(0,0,0,.3);
  --shadow-elevated: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.5);
  --shadow-phone: 0 30px 80px rgba(0,0,0,.65), 0 12px 24px rgba(0,0,0,.4);
}

/* MODO OSCURO AUTOMÁTICO DESACTIVADO (decisión 30-04 — no merece recursos en MVP)
   Las variables [data-theme="dark"] siguen disponibles para activar manualmente si en el futuro
   queremos un toggle, pero el sistema NO sigue prefers-color-scheme automáticamente. */

/* =============================================================
   RESET
============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Urbanist", system-ui, sans-serif;
  font-weight: 400;
  color: var(--text-primary);
  background: var(--bg-stage);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s ease, color .35s ease;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input { cursor: text; outline: none; }
a { color: inherit; text-decoration: none; }

/* =============================================================
   DEMO TOP BAR
============================================================= */
.demo-bar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(239, 237, 242, .9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-card);
  padding: 14px 24px;
  display: flex; align-items: center; gap: 16px;
  transition: background-color .35s, border-color .35s;
}
[data-theme="dark"] .demo-bar { background: rgba(12, 12, 16, .85); }
.demo-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 16px; letter-spacing: -0.02em;
}
.demo-brand img { width: 32px; height: 32px; border-radius: 7px; }
.demo-meta { color: var(--text-muted); font-weight: 500; font-size: 13px; margin-left: 6px; }
.demo-spacer { flex: 1; }
.theme-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  display: grid; place-items: center;
  color: var(--text-primary);
  box-shadow: var(--shadow-card);
  transition: all .2s ease;
}
.theme-btn:hover { transform: rotate(15deg); }
.theme-btn .icon-moon { display: none; }
[data-theme="dark"] .theme-btn .icon-sun { display: none; }
[data-theme="dark"] .theme-btn .icon-moon { display: block; }

/* =============================================================
   SECTION HEADERS
============================================================= */
.sect-head {
  padding: 64px 24px 32px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.sect-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--r-pill);
  font-weight: 600; font-size: 12px;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}
.sect-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--warm-orange);
}
.sect-title {
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.sect-title em {
  font-style: normal;
  font-weight: 400;
  color: var(--warm-orange);
}
.sect-title span {
  font-weight: 400;
  color: var(--text-muted);
}
.sect-desc {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
}

/* =============================================================
   PHONE FRAME
============================================================= */
.phones-row {
  display: flex; gap: 24px;
  padding: 0 24px 80px;
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.phones-row > * { scroll-snap-align: center; }
.phones-row::-webkit-scrollbar { height: 6px; }
.phones-row::-webkit-scrollbar-thumb { background: var(--border-card); border-radius: 3px; }

.phone {
  flex-shrink: 0;
  width: 320px;
  background: #111;
  border-radius: 44px;
  padding: 8px;
  box-shadow: var(--shadow-phone);
  position: relative;
}
.phone-screen {
  background: var(--bg-app);
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  height: 680px;
  display: flex; flex-direction: column;
}
.phone-notch {
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 26px;
  background: #000;
  border-radius: 999px;
  z-index: 5;
}
.phone-status {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px 4px;
  font-size: 13.5px; font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-app);
}
.phone-status .icons { display: flex; gap: 5px; align-items: center; color: var(--text-primary); }
.phone-status .icons svg { width: 14px; height: 11px; }
.phone-content { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.phone-content::-webkit-scrollbar { width: 0; }
.phone-label {
  text-align: center;
  margin-top: 14px;
  font-weight: 600; font-size: 13px;
  color: var(--text-secondary);
}
.phone-label .num {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  background: var(--warm-gradient);
  color: #fff;
  border-radius: 50%;
  font-size: 11px; font-weight: 700;
  margin-right: 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 2px 6px var(--warm-glow);
}

/* =============================================================
   APP HEADER (dentro de phone)
============================================================= */
.scr-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px 8px;
}
.scr-back {
  width: 34px; height: 34px;
  border-radius: 50%;
  /* Negro sólido */
  background: #15151a;
  border: 1px solid rgba(0, 0, 0, .25);
  display: grid; place-items: center;
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 4px 14px rgba(0, 0, 0, .18);
}
.scr-back svg { width: 14px; height: 14px; }
.scr-title {
  font-weight: 700; font-size: 16px;
  letter-spacing: -0.015em;
}
.scr-title strong { font-weight: 700; }
.scr-title span { font-weight: 400; color: var(--text-muted); margin-left: 2px; }

/* =============================================================
   SEARCH
============================================================= */
.scr-search {
  display: flex; gap: 8px;
  padding: 6px 18px 14px;
}
.search-pill {
  flex: 1;
  display: flex; align-items: center; gap: 8px;
  padding: 0 14px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-card);
}
.search-pill svg { width: 14px; height: 14px; color: var(--text-muted); flex-shrink: 0; }
.search-pill input {
  flex: 1; font-size: 12.5px;
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
}
.search-pill input::placeholder { color: var(--text-muted); }
.search-pill .cam { color: var(--text-secondary); }
.btn-filter {
  width: 40px; height: 40px;
  border-radius: 50%;
  /* Negro sólido */
  background: #15151a;
  border: 1px solid rgba(0, 0, 0, .25);
  color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 4px 14px rgba(0, 0, 0, .18);
}
.btn-filter svg { width: 14px; height: 14px; }

/* =============================================================
   MINI CATEGORIES (top, 4 cards)
============================================================= */
/* Mini-cats: carrusel horizontal scrolleable (estilo Glovo/Uber Eats) — sin huecos */
.mini-cats {
  display: flex;
  gap: 16px;
  padding: 4px 18px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.mini-cats::-webkit-scrollbar { display: none; }
.mini-cats .mini-cat {
  flex-shrink: 0;
  scroll-snap-align: start;
  min-width: 64px;
}
/* Mini-cat SIN contenedor — emoji grande directo + label, mismo lenguaje que .icon-chip */
.mini-cat {
  background: transparent;
  border: none;
  padding: 6px 4px;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.mini-cat:hover, .mini-cat:focus, .mini-cat:active {
  outline: none;
  text-decoration: none;
}
.mini-cat-icon {
  width: 48px; height: 48px;
  margin: 0 auto 6px;
  display: grid; place-items: center;
  background: transparent;
  font-size: 38px;
  line-height: 1;
  filter: saturate(1.15);
  transition: transform .15s ease;
}
.mini-cat-icon img {
  width: 42px; height: 42px;
  object-fit: contain;
}
.mini-cat.active .mini-cat-icon {
  background: transparent;
  transform: scale(1.08);
  filter: saturate(1.25) drop-shadow(0 2px 6px rgba(0,0,0,.18));
}
.mini-cat-name {
  font-size: 11.5px; font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: .01em;
  position: relative;
  padding-bottom: 9px;
}
.mini-cat-name::after {
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%) scale(0);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--warm-orange);
  transition: transform .2s cubic-bezier(.34,1.56,.64,1);
}
.mini-cat.active .mini-cat-name {
  color: var(--warm-orange);
  font-weight: 700;
}
.mini-cat.active .mini-cat-name::after {
  transform: translateX(-50%) scale(1);
}

/* =============================================================
   FILTER PILLS
============================================================= */
.fpills {
  display: flex; gap: 6px;
  padding: 4px 18px 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.fpills::-webkit-scrollbar { display: none; }
.fpill {
  padding: 7px 14px;
  font-size: 11px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--r-pill);
  white-space: nowrap;
  cursor: pointer;
  /* Transition específica (NO 'all') — evita estados intermedios con texto blanco residual */
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
  /* Reset iOS Safari: tap-highlight, appearance, focus, hover residual */
  -webkit-tap-highlight-color: transparent !important;
  -webkit-appearance: none;
  appearance: none;
  outline: none !important;
  text-decoration: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.fpill:focus,
.fpill:focus-visible,
.fpill:active,
.fpill:hover { outline: none !important; }

/* CAPA 1: forzar color/fondo base con !important cuando NO está active.
   Esto SIEMPRE sobrescribe cualquier estado :focus/:hover residual de iOS Safari */
.fpill:not(.active),
.fpill:not(.active):focus,
.fpill:not(.active):focus-visible,
.fpill:not(.active):active,
.fpill:not(.active):hover {
  background: var(--bg-card) !important;
  color: var(--text-secondary) !important;
  box-shadow: none !important;
}

.fpill.active {
  /* Amarillo warm sólido (sin blur) */
  background: var(--warm-gradient);
  border: none;
  color: #fff;
  box-shadow: 0 3px 10px var(--warm-glow);
}

/* =============================================================
   PRODUCTS GRID
============================================================= */
.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 18px 110px;
}
.product {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  transition: all .25s;
}
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow-elevated); }
.product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--bg-tinted), var(--bg-subtle));
  position: relative;
  overflow: hidden;
}
.product-img img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  margin: auto;
  padding: 11%;
}
.product-img.product-img-bleed { background: none; }
.product-img.product-img-bleed img {
  padding: 0;
  object-fit: cover;
}
.product-body { padding: 10px 12px 12px; }
.product-name {
  font-weight: 600; font-size: 13px;
  color: var(--text-primary);
  margin-bottom: 1px;
}
.product-vendor { font-size: 10.5px; color: var(--text-muted); margin-bottom: 8px; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.product-price {
  font-weight: 700; font-size: 13.5px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.btn-add {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--warm-gradient);
  color: #fff;
  display: grid; place-items: center;
  font-size: 16px; font-weight: 500;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 3px 8px var(--warm-glow);
  transition: transform .15s;
}
.btn-add:hover { transform: scale(1.1); }
.btn-add.sub {
  background: var(--bg-card);
  color: var(--warm-orange);
  border: 1.5px solid var(--warm-orange);
  box-shadow: none;
}

/* =============================================================
   BOTTOM NAV
============================================================= */
/* =============================================================
   BOTTOM NAV — REHECHA DESDE CERO
   Técnica: warm yellow base + ::before con blur+mask que excluye
   el área del óvalo activo. Resultado: óvalo realmente transparente.
============================================================= */
.bottom-nav {
  position: absolute;
  bottom: 12px; left: 14px; right: 14px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px;
  /* Glass blanco con blur intensidad landing latyon.com */
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: none;
  border-radius: var(--r-pill);
  /* HALO BLANCO debajo estilo Uber — despega la barra del fondo */
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, .85),
    0 12px 32px rgba(0, 0, 0, .14),
    0 4px 12px rgba(0, 0, 0, .06);
  isolation: isolate;
  overflow: hidden;
}
/* Pseudo deshabilitado: el blur ya va directo en .bottom-nav (uniforme, sin agujero) */
.bottom-nav::before { content: none; }
.nav-item {
  position: relative;          /* sobre el ::before */
  z-index: 1;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: rgba(20, 20, 26, .58);
  transition: all .2s;
}
.nav-item:hover { color: rgba(20, 20, 26, .95); }
.nav-item svg { width: 16px; height: 16px; }
.nav-item.active {
  /* Óvalo amarillo warm sólido — consistente con tabs activos */
  background: var(--warm-gradient);
  border: none;
  color: #fff;
  width: 56px;
  border-radius: var(--r-pill);
  box-shadow: 0 4px 12px var(--warm-glow);
}

/* =============================================================
   FILTER MODAL (categories scr)
============================================================= */
.fil-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px 8px;
}
.fil-close, .fil-trash {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  display: grid; place-items: center;
  box-shadow: var(--shadow-card);
}
.fil-close svg, .fil-trash svg { width: 13px; height: 13px; color: var(--text-primary); }
.fil-title { font-weight: 700; font-size: 16px; }
.fil-sub {
  padding: 16px 18px 10px;
  font-weight: 600; font-size: 13.5px;
  letter-spacing: -0.01em;
}
.fil-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 18px 14px;
}
.fil-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--r-md);
  padding: 12px 4px 8px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
}
.fil-card:hover { border-color: var(--warm-yellow); }
.fil-card.active {
  background: var(--warm-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px var(--warm-glow);
}
.fil-card-icon { font-size: 20px; height: 24px; display: grid; place-items: center; margin-bottom: 4px; }
.fil-card-name { font-size: 9.5px; font-weight: 500; line-height: 1.2; }
.range-block { padding: 14px 18px; }
.range-block-h { font-weight: 600; font-size: 13px; margin-bottom: 10px; }
.range-chart {
  height: 50px;
  display: flex; align-items: flex-end; gap: 2px;
  padding: 4px;
  border-radius: 8px;
  margin-bottom: 8px;
  position: relative;
}
.range-chart .bar { flex: 1; background: var(--warm-gradient); border-radius: 2px 2px 0 0; opacity: .9; }
.range-thumb {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--warm-orange);
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,.15);
  bottom: -2px;
}
.range-inputs { display: flex; gap: 8px; }
.range-input {
  flex: 1;
  padding: 9px 12px;
  border-radius: var(--r-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  font-size: 12px; font-weight: 500;
  color: var(--text-primary);
  display: flex; align-items: center; gap: 6px;
}
.range-input strong { color: var(--text-muted); font-weight: 400; }

/* =============================================================
   PRODUCT DETAIL (Overview)
============================================================= */
.det-photo {
  height: 340px;                                  /* foto más alta, full bleed */
  background: linear-gradient(180deg, #f1eff1 0%, #e6e4e6 100%);
  display: grid; place-items: center;
  position: relative;
  margin: 0;                                       /* sin padding lateral, full width */
}
[data-theme="dark"] .det-photo {
  background: linear-gradient(180deg, #1c1c22 0%, #14141a 100%);
}
.det-photo img { max-width: 75%; max-height: 85%; object-fit: contain; }
.det-photo-bleed img { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: cover; }
.det-card {
  /* GLASS effect — deja ver la foto difuminada detrás */
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  margin: -56px 0 0;                              /* full width, traslape sobre la foto */
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  padding: 22px 20px 18px;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .05);
}
[data-theme="dark"] .det-card {
  background: rgba(28, 28, 34, .55);
  border-top: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .35);
}
.det-name-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.det-name { font-weight: 700; font-size: 17px; letter-spacing: -0.015em; }
.det-vendor { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.qty-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 4px;
  background: var(--bg-app);
  border-radius: var(--r-pill);
}
.qty-btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 600;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-card);
}
.qty-btn.plus {
  background: var(--warm-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 2px 6px var(--warm-glow);
}
.qty-num { min-width: 24px; text-align: center; font-weight: 700; font-size: 13px; }
.det-stats {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 8px; margin-bottom: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
  text-align: center;
}
.det-stat-num { font-weight: 700; font-size: 13.5px; }
.det-stat-num .stars { color: var(--warm-orange); letter-spacing: -1px; font-size: 12px; }
.det-stat-label { font-size: 10.5px; color: var(--text-muted); margin-top: 2px; }
.det-desc { font-size: 12.5px; color: var(--text-secondary); line-height: 1.5; }
.det-desc .more { color: var(--warm-orange); font-weight: 700; }
.det-tabs {
  display: flex; gap: 8px;
  padding: 14px 14px 8px;
}
.det-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 12.5px; font-weight: 600;
  border-radius: var(--r-pill);
  color: var(--text-secondary);
  cursor: pointer;
}
.det-tab.active {
  /* Amarillo warm sólido (sin blur) */
  background: var(--warm-gradient);
  border: none;
  color: #fff;
  box-shadow: 0 3px 10px var(--warm-glow);
}
.det-section-h { padding: 10px 18px 8px; font-weight: 600; font-size: 14px; }
.you-might {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 18px 100px;
}
.det-footer {
  position: absolute;
  bottom: 12px; left: 14px; right: 14px;
  display: flex; align-items: center; gap: 10px;
  padding: 5px 5px 5px 16px;
  /* Negro sólido — proporción del bottom-nav del home */
  background: #15151a;
  border: none;
  border-radius: var(--r-pill);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, .18),
    0 4px 12px rgba(0, 0, 0, .10);
}
.det-footer .det-footer-price { color: #fff; }    /* texto blanco sobre pill negro */
.det-footer-price { font-weight: 700; font-size: 16px; flex-shrink: 0; }
.det-footer-cta {
  flex: 1;
  padding: 9px 16px;
  /* Texto blanco directo sobre pill negro */
  background: transparent;
  border: none;
  color: #fff;
  border-radius: var(--r-pill);
  font-weight: 700; font-size: 13px;
  text-align: center;
}

/* =============================================================
   CART
============================================================= */
.cart-list { padding: 14px 18px 0; display: flex; flex-direction: column; gap: 10px; }
.cart-item {
  display: flex; gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--r-md);
  padding: 8px;
}
.cart-img {
  width: 64px; height: 64px;
  background: var(--bg-tinted);
  border-radius: 12px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.cart-img img { width: 80%; height: 80%; object-fit: contain; }
.cart-img.cart-img-real { background: none; padding: 0; overflow: hidden; }
.cart-img.cart-img-real img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.cart-info-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.cart-info-name { font-weight: 600; font-size: 13.5px; }
.cart-info-vendor { font-size: 10.5px; color: var(--text-muted); margin-top: 1px; }
.cart-rating { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--text-primary); }
.cart-rating svg { width: 12px; height: 12px; color: var(--warm-orange); fill: var(--warm-orange); }
.cart-info-bot { display: flex; align-items: center; justify-content: space-between; }
.cart-price { font-weight: 700; font-size: 13.5px; }
.cart-qty { display: flex; align-items: center; gap: 6px; }
.cart-qty .qty-btn { width: 22px; height: 22px; font-size: 12px; }
/* Capa glass flotante inferior del carrito (voucher + totals + CTA) */
.cart-bottom-glass {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, .62);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  border-top: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .07);
  padding: 16px 0 14px;
}
[data-theme="dark"] .cart-bottom-glass {
  background: rgba(28, 28, 34, .58);
  border-top: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .4);
}
.cart-bottom-glass .voucher { margin: 0 18px 4px; }
.cart-bottom-glass .totals { padding: 10px 18px 4px; }
.cart-bottom-glass .det-footer { position: relative; left: auto; right: auto; bottom: auto; margin: 8px 14px 0; }

.voucher {
  margin: 14px 18px 0;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-card);
}
.voucher-tag {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #15151a;
  display: grid; place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.voucher-tag svg { width: 13px; height: 13px; }
.voucher input { flex: 1; font-size: 12px; background: transparent; color: var(--text-primary); font-family: inherit; }
.voucher input::placeholder { color: var(--text-muted); }
.totals { padding: 14px 18px 4px; }
.totals-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 12.5px; }
.totals-row .lbl { color: var(--text-muted); }
.totals-row .val { font-weight: 600; }
.totals-divider { border-top: 1px dashed var(--border-card); margin: 6px 0; }
.totals .total-row .lbl { color: var(--text-primary); font-weight: 600; font-size: 13px; }
.totals .total-row .val { color: var(--warm-orange); font-weight: 800; font-size: 14px; }

/* =============================================================
   CHECKOUT
============================================================= */
.cko-tabs { display: flex; gap: 8px; padding: 12px 18px 14px; }
.cko-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 12.5px; font-weight: 600;
  border-radius: var(--r-pill);
  color: var(--text-secondary);
  cursor: pointer;
}
.cko-tab.active {
  /* Amarillo warm sólido (sin blur) */
  background: var(--warm-gradient);
  border: none;
  color: #fff;
  box-shadow: 0 3px 10px var(--warm-glow);
}
.cko-map {
  position: relative;
  margin: 0 18px 14px;
  height: 130px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, #2a3a4a 0%, #3a4a5a 100%);
  overflow: hidden;
}
.cko-map svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .35; }
.cko-pin {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -100%);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--warm-gradient);
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.cko-edit {
  position: absolute;
  bottom: 10px; left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  background: rgba(0,0,0,.7);
  color: #fff;
  border-radius: var(--r-pill);
  font-size: 11px; font-weight: 600;
  backdrop-filter: blur(8px);
}
.cko-h { padding: 0 18px 8px; font-weight: 700; font-size: 14px; }
.cko-list { padding: 0 18px 100px; display: flex; flex-direction: column; gap: 8px; }
.cko-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--r-md);
}
.cko-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-app);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.cko-icon svg { width: 14px; height: 14px; color: var(--text-primary); }
.cko-row-info { flex: 1; }
.cko-row-lbl { font-weight: 600; font-size: 12px; color: var(--text-primary); }
.cko-row-val { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.cko-row-arrow { color: var(--warm-orange); font-weight: 700; font-size: 16px; }

.cko-cta-bar {
  position: absolute;
  bottom: 12px; left: 14px; right: 14px;
  padding: 5px;
  /* Negro sólido — proporción del bottom-nav del home */
  background: #15151a;
  border: none;
  border-radius: var(--r-pill);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, .18),
    0 4px 12px rgba(0, 0, 0, .10);
}
.cko-cta {
  display: block; width: 100%;
  padding: 10px;
  /* Texto blanco directo sobre pill negro */
  background: transparent;
  border: none;
  color: #fff;
  border-radius: var(--r-pill);
  font-weight: 700; font-size: 13.5px;
  text-align: center;
}

/* =============================================================
   DESKTOP CHECKOUT (4 STEPS)
============================================================= */
.dk-stage { padding: 0 24px 80px; max-width: 1180px; margin: 0 auto; }
.dk-frame {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  margin-bottom: 32px;
}
.dk-step-label {
  display: flex; align-items: center; gap: 10px;
  padding: 0 24px 14px;
  font-weight: 700; font-size: 14px;
}
.dk-step-num {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: 11px; font-weight: 700;
  color: #fff;
}
.dk-step-num.s1 { background: var(--warm-orange); }
.dk-step-num.s2 { background: #facc15; }
.dk-step-num.s3 { background: #3b82f6; }
.dk-step-num.s4 { background: #a855f7; }

/* Header con stepper */
.dk-header {
  display: flex; align-items: center; gap: 18px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-card);
}
.dk-back {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: var(--bg-app);
  border: 1px solid var(--border-card);
  font-size: 13px; font-weight: 600;
  color: var(--text-primary);
}
.dk-back svg { width: 14px; height: 14px; }
.dk-stepper { flex: 1; display: flex; align-items: center; gap: 14px; justify-content: center; flex-wrap: wrap; }
.dk-step { display: flex; align-items: center; gap: 8px; }
.dk-step-circle {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 12px;
  background: var(--bg-app);
  color: var(--text-muted);
  border: 1px solid var(--border-card);
}
.dk-step.done .dk-step-circle {
  background: var(--success);
  color: #fff;
  border-color: transparent;
}
.dk-step.current .dk-step-circle {
  background: #15151a;
  color: #fff;
  border-color: transparent;
}
[data-theme="dark"] .dk-step.current .dk-step-circle { background: #fff; color: #15151a; }
.dk-step-text { font-weight: 600; font-size: 13.5px; color: var(--text-primary); }
.dk-step-arrow { color: var(--text-muted); font-size: 14px; }
.dk-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffc6a0, #ffa06e);
  display: grid; place-items: center;
  font-weight: 700; color: #fff; font-size: 14px;
  border: 2px solid var(--bg-card);
  box-shadow: var(--shadow-card);
}

/* Body 2 cols */
.dk-body {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  padding: 24px 28px;
}
@media (max-width: 880px) {
  .dk-body { grid-template-columns: 1fr; }
}
.dk-main h2 { font-weight: 700; font-size: 18px; letter-spacing: -0.015em; margin-bottom: 4px; }
.dk-main .sub { color: var(--text-muted); font-size: 13px; margin-bottom: 18px; }

/* Cards radio */
.dk-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all .2s;
  margin-bottom: 10px;
}
.dk-card:hover { border-color: var(--warm-yellow); }
.dk-card.active {
  border-color: var(--warm-orange);
  background: rgba(234, 160, 63, .04);
}
.dk-card-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #15151a;
  color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
}
[data-theme="dark"] .dk-card-icon { background: #fff; color: #15151a; }
.dk-card-icon svg { width: 16px; height: 16px; }
.dk-card-info { flex: 1; }
.dk-card-info-h { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.dk-card-info-h .badge {
  padding: 2px 8px;
  background: rgba(234, 160, 63, .15);
  color: var(--warm-orange);
  border-radius: var(--r-pill);
  font-size: 10px; font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.dk-card-info-d { font-size: 12px; color: var(--text-muted); }
.dk-card-radio {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-card);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.dk-card.active .dk-card-radio {
  border-color: var(--warm-orange);
}
.dk-card.active .dk-card-radio::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--warm-orange);
}

.dk-divider {
  text-align: center; margin: 18px 0;
  color: var(--text-muted); font-weight: 600; font-size: 12px;
  position: relative;
}
.dk-divider::before, .dk-divider::after {
  content: ""; position: absolute; top: 50%;
  width: 38%; height: 1px;
  background: var(--border-card);
}
.dk-divider::before { left: 0; }
.dk-divider::after { right: 0; }

/* Form */
.dk-field { margin-bottom: 14px; }
.dk-field-l { font-weight: 600; font-size: 12.5px; margin-bottom: 6px; color: var(--text-primary); }
.dk-input {
  display: flex; align-items: center; gap: 8px;
  padding: 0 14px;
  height: 44px;
  background: var(--bg-app);
  border: 1.5px solid var(--border-card);
  border-radius: var(--r-md);
}
.dk-input.active { border-color: var(--warm-orange); }
.dk-input input {
  flex: 1; font-size: 13px; background: transparent; color: var(--text-primary);
  font-family: inherit;
}
.dk-input .check { color: var(--success); width: 16px; height: 16px; }
.dk-input .eye { color: var(--text-muted); width: 16px; height: 16px; cursor: pointer; }
.dk-input .badge-card {
  background: #1f6cd5; color: #fff;
  font-size: 9px; font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: .08em;
}
.dk-fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.dk-actions {
  display: flex; gap: 12px;
  margin-top: 22px;
}
.dk-btn {
  padding: 12px 24px;
  border-radius: var(--r-pill);
  font-weight: 700; font-size: 13.5px;
  cursor: pointer;
  flex: 1;
  text-align: center;
}
.dk-btn-light {
  background: var(--bg-app);
  color: var(--text-primary);
  border: 1px solid var(--border-card);
}
.dk-btn-dark {
  background: #15151a;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
[data-theme="dark"] .dk-btn-dark { background: #fff; color: #15151a; }
.dk-btn-warm {
  background: var(--warm-gradient);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 6px 18px var(--warm-glow);
}

.dk-link-right { text-align: right; font-size: 12px; font-weight: 600; color: var(--warm-orange); margin-top: -4px; }

/* Address card */
.addr-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  background: var(--bg-app);
  border-radius: var(--r-md);
  margin-bottom: 18px;
}
.addr-card-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--bg-card);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.addr-card-icon svg { width: 16px; height: 16px; color: var(--warm-orange); }
.addr-card-info { flex: 1; }
.addr-card-name { font-weight: 700; font-size: 14px; }
.addr-card-line { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.addr-card-edit {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  display: grid; place-items: center;
  cursor: pointer;
}
.addr-card-edit svg { width: 12px; height: 12px; color: var(--text-primary); }

/* Express delivery card */
.exp-warning {
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--bg-app);
  border-radius: var(--r-md);
  font-size: 12px;
  display: flex; align-items: center; gap: 8px;
}
.exp-warning svg { color: var(--text-muted); width: 14px; height: 14px; }
.exp-warning strong { color: var(--warm-orange); }

/* Order Summary sidebar */
.dk-summary {
  background: var(--bg-app);
  border: 1px solid var(--border-card);
  border-radius: var(--r-md);
  padding: 20px;
  position: sticky;
  top: 80px;
  height: fit-content;
}
.dk-summary-h {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.dk-summary-h h3 { font-weight: 700; font-size: 15px; }
.dk-summary-h svg { width: 16px; height: 16px; color: var(--text-muted); }
.os-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-card);
}
.os-item:last-child { border: 0; }
.os-img {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--bg-tinted);
  display: grid; place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.os-img img { width: 80%; height: 80%; object-fit: contain; }
.os-info { flex: 1; min-width: 0; }
.os-cat { font-size: 10.5px; color: var(--info); font-weight: 600; }
.os-name {
  font-weight: 700; font-size: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.os-price { font-weight: 600; font-size: 12px; color: var(--text-secondary); margin-top: 1px; }
.os-x {
  position: absolute; top: 8px; right: 8px;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text-muted);
  font-size: 12px; cursor: pointer;
}
.os-qty {
  display: flex; align-items: center; gap: 6px;
  margin-left: auto;
}
.os-qty .qty-btn { width: 22px; height: 22px; font-size: 12px; }
.os-promo {
  margin-top: 16px;
  display: flex; gap: 8px;
}
.os-promo-h { font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.os-promo-input {
  flex: 1; display: flex; align-items: center; gap: 6px;
  padding: 0 14px;
  height: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--r-md);
}
.os-promo-input input { flex: 1; font-size: 12.5px; background: transparent; color: var(--text-primary); font-family: inherit; }
.os-promo-send {
  width: 38px; height: 38px;
  border-radius: var(--r-md);
  background: #15151a; color: #fff;
  display: grid; place-items: center;
}
[data-theme="dark"] .os-promo-send { background: #fff; color: #15151a; }
.os-promo-send svg { width: 14px; height: 14px; }
.os-totals { margin-top: 16px; }
.os-tot-h { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.os-tot-row {
  display: flex; justify-content: space-between;
  padding: 5px 0;
  font-size: 13px;
}
.os-tot-row .lbl { color: var(--text-muted); }
.os-tot-row .val { font-weight: 600; }
.os-tot-divider { border-top: 1px dashed var(--border-card); margin: 6px 0; }
.os-tot-row.total .lbl { font-weight: 700; color: var(--text-primary); }
.os-tot-row.total .val { color: var(--info); font-weight: 800; font-size: 15px; }

.os-banner {
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(234, 196, 79, .15);
  border-radius: var(--r-md);
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Review summary cards */
.rev-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--bg-app);
  border-radius: var(--r-md);
  margin-bottom: 10px;
}
.rev-card-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.rev-card-icon svg { width: 14px; height: 14px; color: var(--text-primary); }
.rev-card-info { flex: 1; }
.rev-card-l { font-weight: 700; font-size: 13px; }
.rev-card-v { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.rev-card-edit {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  display: grid; place-items: center;
  cursor: pointer;
}
.rev-card-edit svg { width: 12px; height: 12px; }

.rev-phone-row { display: flex; gap: 6px; }
.rev-flag {
  display: flex; align-items: center; gap: 6px;
  padding: 0 10px;
  background: var(--bg-app);
  border: 1.5px solid var(--border-card);
  border-radius: var(--r-md);
  font-size: 12px; font-weight: 600;
  color: var(--text-primary);
}
.rev-flag .dot-red { width: 8px; height: 8px; border-radius: 50%; background: #d11b2c; }
.rev-phone-input {
  flex: 1;
  display: flex; align-items: center; gap: 8px;
  padding: 0 14px;
  height: 44px;
  background: var(--bg-app);
  border: 1.5px solid var(--border-card);
  border-radius: var(--r-md);
}
.rev-phone-input input { flex: 1; font-size: 13px; background: transparent; color: var(--text-primary); font-family: inherit; }
.rev-phone-input .send {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #15151a;
  color: #fff;
  display: grid; place-items: center;
}
[data-theme="dark"] .rev-phone-input .send { background: #fff; color: #15151a; }
.rev-phone-input .send svg { width: 12px; height: 12px; }
.rev-check-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px;
  background: rgba(34, 197, 94, .08);
  border-radius: var(--r-md);
  margin: 14px 0 18px;
  font-size: 12.5px;
  font-weight: 500;
}
.rev-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.rev-check svg { width: 10px; height: 10px; }

/* =============================================================
   FOOTER NOTES
============================================================= */
.notes {
  text-align: center;
  padding: 40px 24px 60px;
  color: var(--text-muted);
  font-size: 13px;
}
.notes strong { color: var(--text-secondary); }

/* =============================================================
   PRODUCT DETAIL — RICH (extensión 6valley features)
   Añade: header con share+wishlist, galería con dots+discount badge,
   total price dinámico, trust strip, vendor card, info tabs con
   contenido (Detalles/Specs/Reseñas), 2 carruseles, footer 2-CTAs
============================================================= */

/* ----- Header: back + share + wishlist con contador ----- */
.det-header-icons {
  display: flex; gap: 8px;
}
.det-icon-btn {
  position: relative;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #15151a;
  display: grid; place-items: center;
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 4px 14px rgba(0,0,0,.18);
}
.det-icon-btn svg { width: 14px; height: 14px; }
.det-icon-btn .badge-count {
  position: absolute;
  top: -3px; right: -3px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  background: var(--warm-gradient);
  color: #fff;
  border-radius: 999px;
  font-size: 9.5px; font-weight: 700;
  display: grid; place-items: center;
  border: 1.5px solid var(--bg-app);
}

/* ----- Galería: dots indicators + badge descuento sobre foto ----- */
.det-photo-discount {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 10px;
  background: var(--warm-gradient);
  color: #fff;
  border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 3px 10px var(--warm-glow);
  z-index: 2;
}
.det-photo-dots {
  position: absolute;
  bottom: 14px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 5px;
  z-index: 2;
}
.det-photo-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  transition: all .2s;
}
.det-photo-dot.active {
  width: 22px;
  border-radius: 999px;
  background: #fff;
}

/* ----- Total price dinámico bajo qty ----- */
.det-total-row {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 4px 0 12px;
}
.det-total-lbl { font-size: 11.5px; color: var(--text-muted); font-weight: 500; }
.det-total-val { font-weight: 700; font-size: 18px; color: var(--warm-orange); letter-spacing: -0.02em; }

/* Stat extra (orders + wishlist) en grid de 4 */
.det-stats.cols-5 { grid-template-columns: repeat(5, 1fr); }

/* ----- Strip horizontal de trust badges ----- */
.det-trust-strip {
  display: flex; gap: 6px;
  padding: 0 18px 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.det-trust-strip::-webkit-scrollbar { display: none; }
.det-trust-chip {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 6px;
  padding: 7px 11px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--r-pill);
  font-size: 11px; font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}
.det-trust-chip svg { width: 12px; height: 12px; color: var(--warm-orange); flex-shrink: 0; }

/* ----- Vendor card ----- */
.det-vendor-card {
  display: flex; align-items: center; gap: 12px;
  margin: 0 18px 14px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
}
.det-vendor-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--warm-gradient);
  display: grid; place-items: center;
  color: #fff;
  font-weight: 700; font-size: 16px;
  flex-shrink: 0;
  overflow: hidden;
}
.det-vendor-avatar img { width: 100%; height: 100%; object-fit: cover; }
.det-vendor-info { flex: 1; min-width: 0; }
.det-vendor-name { font-weight: 700; font-size: 13.5px; color: var(--text-primary); }
.det-vendor-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.det-vendor-meta strong { color: var(--text-secondary); font-weight: 600; }
.det-vendor-cta {
  flex-shrink: 0;
  padding: 8px 14px;
  background: #15151a;
  color: #fff;
  border-radius: var(--r-pill);
  font-size: 11.5px; font-weight: 700;
  display: flex; align-items: center; gap: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.det-vendor-cta svg { width: 12px; height: 12px; }

/* ----- Info tabs (Detalles / Especificaciones / Reseñas) ----- */
.det-info-tabs {
  display: flex; gap: 4px;
  padding: 0 14px;
  margin: 4px 0 12px;
  border-bottom: 1px solid var(--border-card);
}
.det-info-tab {
  flex: 1;
  padding: 10px 4px;
  text-align: center;
  font-size: 12px; font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: all .2s;
}
.det-info-tab.active {
  color: var(--warm-orange);
  border-bottom-color: var(--warm-orange);
}
.det-info-content { padding: 0 18px 18px; }
.det-info-content.hidden { display: none; }
.det-info-h {
  font-weight: 700; font-size: 13px;
  margin: 12px 0 8px;
  color: var(--text-primary);
}
.det-info-p {
  font-size: 12.5px; color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 10px;
}

/* Tabla de especificaciones */
.det-spec-list { display: flex; flex-direction: column; gap: 0; }
.det-spec-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border-card);
  font-size: 12px;
}
.det-spec-row:last-child { border-bottom: none; }
.det-spec-row .lbl { color: var(--text-muted); font-weight: 500; }
.det-spec-row .val { color: var(--text-primary); font-weight: 600; text-align: right; }

/* Lista key features con bullet warm */
.det-keyfeatures { list-style: none; padding: 0; margin: 4px 0 0; }
.det-keyfeatures li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}
.det-keyfeatures li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 5px;
  width: 16px; height: 16px;
  background: var(--warm-gradient);
  color: #fff;
  border-radius: 50%;
  font-size: 9px; font-weight: 700;
  display: grid; place-items: center;
}

/* ----- Reseñas: resumen + lista ----- */
.det-reviews-summary {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 0;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-card);
}
.det-reviews-avg {
  text-align: center;
  flex-shrink: 0;
  padding-right: 16px;
  border-right: 1px solid var(--border-card);
}
.det-reviews-avg .num {
  font-weight: 700; font-size: 32px;
  color: var(--text-primary); letter-spacing: -0.03em;
  line-height: 1;
}
.det-reviews-avg .stars { color: var(--warm-orange); font-size: 12px; margin-top: 4px; letter-spacing: -1px; }
.det-reviews-avg .total { color: var(--text-muted); font-size: 10.5px; margin-top: 2px; }
.det-reviews-bars { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.det-rating-row { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--text-muted); }
.det-rating-row .lvl { width: 10px; flex-shrink: 0; font-weight: 600; }
.det-rating-row .bar-track {
  flex: 1;
  height: 6px;
  background: var(--bg-app);
  border-radius: 999px;
  overflow: hidden;
}
.det-rating-row .bar-fill {
  height: 100%;
  background: var(--warm-gradient);
  border-radius: 999px;
}
.det-rating-row .pct { width: 28px; text-align: right; flex-shrink: 0; font-weight: 600; color: var(--text-secondary); }

.det-review-item {
  display: flex; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-card);
}
.det-review-item:last-child { border-bottom: none; }
.det-review-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--warm-gradient);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 13px;
  flex-shrink: 0;
}
.det-review-body { flex: 1; min-width: 0; }
.det-review-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.det-review-name { font-weight: 700; font-size: 12.5px; color: var(--text-primary); }
.det-review-date { font-size: 10.5px; color: var(--text-muted); }
.det-review-stars { color: var(--warm-orange); font-size: 11px; letter-spacing: -1px; margin-bottom: 4px; }
.det-review-text { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }

/* ----- Carrusel horizontal genérico (More From Store + Similares) ----- */
.car-h-section { margin-bottom: 14px; }
.car-h-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 18px 10px;
}
.car-h-title { font-weight: 700; font-size: 14px; color: var(--text-primary); }
.car-h-link {
  font-size: 11.5px; font-weight: 600;
  color: var(--warm-orange);
}
.car-h {
  display: flex; gap: 10px;
  padding: 0 18px 4px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.car-h::-webkit-scrollbar { display: none; }
.car-h-item {
  flex-shrink: 0;
  width: 130px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
}
.car-h-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--bg-tinted), var(--bg-subtle));
  position: relative; overflow: hidden;
}
.car-h-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.car-h-discount {
  position: absolute;
  top: 8px; left: 8px;
  padding: 3px 8px;
  background: var(--warm-gradient);
  color: #fff;
  border-radius: var(--r-pill);
  font-size: 9.5px; font-weight: 700;
  z-index: 1;
}
.car-h-body { padding: 8px 10px 10px; }
.car-h-stars { color: var(--warm-orange); font-size: 9.5px; letter-spacing: -1px; margin-bottom: 2px; }
.car-h-name {
  font-size: 11.5px; font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.car-h-price { font-size: 12px; font-weight: 700; color: var(--text-primary); }
.car-h-price .old { color: var(--text-muted); font-weight: 400; text-decoration: line-through; margin-left: 4px; font-size: 10.5px; }

/* ----- Footer con 2 CTAs (Comprar ya warm + Al carrito negro) ----- */
.det-footer-2 {
  position: absolute;
  bottom: 12px; left: 14px; right: 14px;
  display: flex; gap: 8px;
}
.det-footer-2 .det-cta {
  flex: 1;
  padding: 13px 14px;
  text-align: center;
  font-weight: 700; font-size: 13px;
  border-radius: var(--r-pill);
  border: none;
  letter-spacing: -0.005em;
}
.det-footer-2 .det-cta-cart {
  background: #15151a;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.20);
}
.det-footer-2 .det-cta-buy {
  background: var(--warm-gradient);
  color: #fff;
  box-shadow: 0 6px 18px var(--warm-glow);
}

/* =============================================================
   PRODUCT DETAIL — IMMERSIVE (foto hasta el notch + parallax + ante-barra)
   Activado con clases .det-photo-immersive y .det-header-immersive
============================================================= */

/* ----- Header flotante sin título sobre la foto ----- */
.scr-header.det-header-immersive {
  position: absolute;
  top: env(safe-area-inset-top, 0px);
  left: 0; right: 0;
  z-index: 10;
  background: transparent;
  padding: 12px 18px 8px;
}
.scr-header.det-header-immersive .scr-title { display: none; }
/* Refuerzo de legibilidad de los iconos sobre foto immersive (sombra más fuerte) */
.scr-header.det-header-immersive .scr-back,
.scr-header.det-header-immersive .det-icon-btn {
  box-shadow:
    0 3px 14px rgba(0, 0, 0, .35),
    inset 0 1px 0 rgba(255, 255, 255, .10);
}

/* ----- Foto extendida con aspect-ratio proporcional (sin cortes raros) ----- */
.det-photo.det-photo-immersive {
  margin: 0;
  width: 100%;
  /* Proporción 4:5 — imagen se mantiene proporcional al ancho real, sin distorsión */
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
}
/* Wrapper galería múltiple con swipe horizontal snap */
.det-photo.det-photo-immersive .det-gallery {
  display: flex;
  width: 100%; height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.det-photo.det-photo-immersive .det-gallery::-webkit-scrollbar { display: none; }
.det-photo.det-photo-immersive .det-gallery-slide {
  flex: 0 0 100%;
  width: 100%; height: 100%;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
}
.det-photo.det-photo-immersive .det-gallery-slide img,
.det-photo.det-photo-immersive img {  /* fallback single-img */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 110%;            /* +10% para que el parallax no descubra el fondo */
  object-fit: cover;
  object-position: center 30%;  /* prioriza la zona superior-central (sujeto típico en fotos verticales) */
  will-change: transform;
  transition: none;
}
/* Dots clicables */
.det-photo-dot { cursor: pointer; transition: all .2s; }
/* Gradient oscuro en la parte superior — legibilidad de iconos sobre foto */
.det-photo.det-photo-immersive::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 160px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .32) 0%, rgba(0, 0, 0, 0) 100%);
  z-index: 1;
  pointer-events: none;
}
/* El badge de descuento y los dots quedan SOBRE el gradient */
.det-photo.det-photo-immersive .det-photo-discount,
.det-photo.det-photo-immersive .det-photo-dots {
  z-index: 3;
}
/* En modo immersive, el badge baja un poco para no quedar bajo el header */
.det-photo.det-photo-immersive .det-photo-discount {
  top: calc(env(safe-area-inset-top, 0px) + 60px);
}

/* ----- Footer 2-CTAs: visible siempre + HALO BLANCO estilo Uber ----- */
.det-footer-2 {
  background: rgba(255, 255, 255, .65);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  padding: 8px;
  border-radius: var(--r-pill);
  /* HALO BLANCO debajo — despega la barra del fondo */
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, .85),
    0 12px 32px rgba(0, 0, 0, .14),
    0 -2px 10px rgba(0, 0, 0, .04);
}
[data-theme="dark"] .det-footer-2 {
  background: rgba(15, 15, 18, .72);
}

/* =============================================================
   ICON CHIPS — chips con icono circular + label estilo Uber Eats
   Reemplaza .fpills (pills warm de texto) en Home y Listing
============================================================= */
.icon-chips {
  display: flex; gap: 14px;
  padding: 8px 18px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.icon-chips::-webkit-scrollbar { display: none; }

.icon-chip {
  flex-shrink: 0;
  scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  min-width: 64px;
  /* Reset iOS Safari */
  -webkit-tap-highlight-color: transparent !important;
  -webkit-appearance: none;
  appearance: none;
  outline: none !important;
  background: none;
  border: none;
  padding: 0;
}
.icon-chip:focus, .icon-chip:focus-visible, .icon-chip:active, .icon-chip:hover {
  outline: none !important;
  text-decoration: none;
}

/* Icon chip SIN círculo — emoji grande directo + label + dot indicator (estilo Glovo / App Store) */
.icon-chip-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  position: relative;
  transition: transform .15s ease;
}
.icon-chip-icon svg { width: 28px; height: 28px; color: var(--text-secondary); }
.icon-chip-icon img {
  width: 42px; height: 42px;
  object-fit: contain;
}
/* Emojis nativos a color a tamaño premium (38px) sin contenedor */
.icon-chip-icon .icon-emoji {
  font-size: 38px;
  line-height: 1;
  filter: saturate(1.15);
}
/* Active: ligero zoom + drop-shadow para destacar el emoji (no fondo amarillo) */
.icon-chip.active .icon-chip-icon {
  transform: scale(1.08);
}
.icon-chip.active .icon-chip-icon .icon-emoji {
  filter: saturate(1.25) drop-shadow(0 2px 6px rgba(0,0,0,.18));
}

.icon-chip-label {
  font-size: 11.5px; font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  white-space: nowrap;
  letter-spacing: .01em;
  transition: color .15s ease, font-weight .15s ease;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  padding-bottom: 9px;
}
/* DOT INDICATOR debajo del label cuando está active — patrón App Store / iOS Tab bar */
.icon-chip-label::after {
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%) scale(0);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--warm-orange);
  transition: transform .2s cubic-bezier(.34,1.56,.64,1);
}
.icon-chip.active .icon-chip-label::after {
  transform: translateX(-50%) scale(1);
}

/* CAPA iOS protección: estados inactivos forzados con !important */
.icon-chip:not(.active) .icon-chip-label,
.icon-chip:not(.active):focus .icon-chip-label,
.icon-chip:not(.active):hover .icon-chip-label {
  color: var(--text-secondary) !important;
  font-weight: 600 !important;
}
.icon-chip:not(.active) .icon-chip-icon,
.icon-chip:not(.active):focus .icon-chip-icon,
.icon-chip:not(.active):hover .icon-chip-icon {
  transform: none !important;
}

/* Active: SIN sombra/glow amarillo — solo label warm bold + dot indicator + zoom emoji */
.icon-chip.active .icon-chip-label {
  color: var(--warm-orange);
  font-weight: 700;
}

/* =============================================================
   LISTING PREMIUM — hero banner ofertas + cards enriquecidas
   estilo Uber Eats / Glovo / Just Eats
============================================================= */

/* Carrusel HERO — 3 banners en slide horizontal con scroll-snap + dots indicadores */
.hero-carousel {
  position: relative;
  margin: 6px 0 16px;
}
.hero-track {
  display: flex; gap: 12px;
  padding: 0 18px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.hero-track::-webkit-scrollbar { display: none; }

.hero-slide {
  flex: 0 0 calc(100% - 36px);
  scroll-snap-align: center;
  border-radius: var(--r-md);
  padding: 18px 20px;
  display: flex; align-items: center; gap: 14px;
  position: relative;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  min-height: 110px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
}
.hero-slide-icon {
  font-size: 42px;
  filter: saturate(1.2) drop-shadow(0 2px 4px rgba(0,0,0,.22));
  flex-shrink: 0;
  z-index: 2;
}
.hero-slide-text { z-index: 2; }
.hero-slide-title {
  font-weight: 700; font-size: 17px;
  letter-spacing: -0.015em;
  margin-bottom: 3px;
}
.hero-slide-sub {
  font-size: 12.5px;
  opacity: .94;
  font-weight: 500;
  line-height: 1.35;
}
.hero-slide-deco {
  position: absolute;
  font-size: 110px;
  opacity: .12;
  right: -16px; top: -28px;
  transform: rotate(15deg);
  filter: saturate(1.3);
  pointer-events: none;
}

/* Variantes de color por slide */
.hero-slide.warm   { background: var(--warm-gradient); }
.hero-slide.rose   { background: linear-gradient(135deg, #ff7eb3 0%, #ff5f8f 100%); }
.hero-slide.cyan   { background: linear-gradient(135deg, #4facfe 0%, #00d4ff 100%); }
.hero-slide.violet { background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%); }
.hero-slide.green  { background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); }

/* Dots indicadores debajo del carrusel */
.hero-dots {
  display: flex; justify-content: center; gap: 6px;
  margin-top: 10px;
}
.hero-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(20, 20, 26, .18);
  transition: all .2s ease;
}
.hero-dot.active {
  width: 22px;
  border-radius: 999px;
  background: var(--warm-orange);
}

/* Badge descuento DESACTIVADO (decisión 30-04) — mantenemos precio tachado solo
   Si en el futuro queremos volver, solo cambiar display:none a flex */
.product .product-discount-badge { display: none; }

/* Vendor con rating en línea (estilo Glovo) */
.product-vendor-row {
  display: flex; align-items: center; gap: 6px;
  font-size: 10.5px; color: var(--text-muted);
  margin-bottom: 6px;
}
.product-vendor-row .rating {
  display: inline-flex; align-items: center; gap: 2px;
  color: var(--text-secondary);
  font-weight: 600;
}
.product-vendor-row .rating svg {
  width: 11px; height: 11px;
  color: var(--warm-orange);
}
.product-vendor-row .sep { color: var(--text-muted); }

/* Precio con descuento: precio actual warm + tachado al lado */
.product-price-row {
  display: flex; align-items: center; gap: 6px;
}
.product-price-row .product-price-old {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 400;
}

/* =============================================================
   HOME PREMIUM — secciones temáticas con título + carrusel vendors
   estilo Glovo / Uber Eats
============================================================= */

/* Header de sección con título + link "Ver todo" */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 16px 18px 8px;
}
.section-title {
  font-weight: 700; font-size: 17px;
  letter-spacing: -0.018em;
  color: var(--text-primary);
}
.section-link {
  font-size: 12.5px; font-weight: 600;
  color: var(--warm-orange);
  text-decoration: none;
}

/* Sub-texto opcional debajo del título */
.section-sub {
  padding: 0 18px 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Carrusel horizontal de vendors (tiendas destacadas) */
.vendor-carousel {
  display: flex; gap: 12px;
  padding: 4px 18px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.vendor-carousel::-webkit-scrollbar { display: none; }

.vendor-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--r-md);
  padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.vendor-card:hover, .vendor-card:active {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

.vendor-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--warm-gradient);
  display: grid; place-items: center;
  color: #fff;
  font-weight: 700; font-size: 18px;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 3px 10px var(--warm-glow);
}
.vendor-avatar img { width: 100%; height: 100%; object-fit: cover; }

.vendor-info { flex: 1; min-width: 0; }
.vendor-name {
  font-weight: 700; font-size: 13px;
  color: var(--text-primary);
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vendor-meta {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--text-muted);
  margin-top: 3px;
  font-weight: 500;
}
.vendor-meta .star {
  color: var(--warm-orange);
  font-size: 11px;
}
.vendor-meta strong {
  color: var(--text-secondary);
  font-weight: 600;
}
.vendor-meta .sep { color: var(--text-muted); }

/* Mini badge de "Top vendor" o "Nuevo" en avatar (opcional) */
.vendor-card .badge-top {
  position: absolute;
  /* TODO si se usa */
}

/* =============================================================
   VENDOR CARDS LARGE — estilo Uber Eats / Glovo
   Cover image grande arriba + info debajo (nombre, rating, tiempo, tags)
============================================================= */
.vendor-carousel-large {
  display: flex; gap: 12px;
  padding: 4px 18px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.vendor-carousel-large::-webkit-scrollbar { display: none; }

.vendor-card-large {
  flex: 0 0 260px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
  display: block;
}
.vendor-card-large:hover, .vendor-card-large:active {
  transform: translateY(-3px);
  box-shadow: var(--shadow-elevated);
}

.vendor-cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--bg-tinted), var(--bg-subtle));
  position: relative;
  overflow: hidden;
}
.vendor-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.vendor-cover-fallback {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 56px;
  filter: saturate(1.2);
}

/* Tag opcional sobre el cover (top-left): "Excelente precio", "Nuevo", etc. */
.vendor-cover-tag {
  position: absolute;
  top: 10px; left: 10px;
  padding: 4px 10px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--r-pill);
  font-size: 10.5px; font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
}
.vendor-cover-tag.warm {
  background: var(--warm-gradient);
  color: #fff;
}
.vendor-cover-tag.green {
  background: var(--success);
  color: #fff;
}

.vendor-info-large {
  padding: 12px 14px 14px;
}
.vendor-name-large {
  font-weight: 700; font-size: 14.5px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vendor-meta-large {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--text-muted);
  font-weight: 500;
}
.vendor-meta-large .rating-pill {
  display: inline-flex; align-items: center; gap: 3px;
  font-weight: 700;
  color: var(--text-primary);
}
.vendor-meta-large .rating-pill svg {
  width: 12px; height: 12px;
  color: var(--warm-orange);
}
.vendor-meta-large .sep { color: var(--text-muted); opacity: .6; }
.vendor-meta-large .delivery-time { color: var(--text-secondary); }

/* =============================================================
   LATYON DESIGN SYSTEM (Sprint S1.1 — 2026-05-06)
   Fundacion visual global: --bg-app premium + clase maestra .latyon-card.
   Override de --bg-app del bloque TOKENS LIGHT (anterior #f7f6f3 -> #F7F7F9).
============================================================= */
:root {
  --bg-app: #F7F7F9;
  --card-radius: var(--r-md, 18px);
  --card-shadow-soft:
      0 1px 2px rgba(15, 15, 20, .04),
      0 8px 24px rgba(15, 15, 20, .05);
  --card-border-subtle: rgba(15, 15, 20, .05);
}

.latyon-card {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--card-border-subtle);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow-soft);
}

[data-theme="dark"] {
  --bg-app: #15151a;
  --card-border-subtle: rgba(255, 255, 255, .07);
  --card-shadow-soft:
      0 1px 2px rgba(0, 0, 0, .4),
      0 8px 24px rgba(0, 0, 0, .35);
}
