/* Hallmark · shape: app screen (storefront) · genre: atmospheric · theme: custom (brand: nørdix shopping, PROYECTO.md § 3 y § 4)
 * paper: oklch(14.6% 0.012 268) · accent: oklch(51% 0.23 277) · display: Montserrat 800 · body: Montserrat
 * nav: glass top bar (wordmark, search with voice and photo, favourites, cart) + section links; phone: bottom tab bar from the APK plan · signature: the lit showcase, real product photos from the stores standing in cyan light under the campaign line · states: loading, empty, no-results, error, full
 * axes: dark/grotesk-heavy/chromatic-indigo · posture: brand-led, owner's palette (black #090B10, titanium #64748B, indigo #6366F1, cyan #22D3EE), "iluminación digital" as rim light, never a gradient fill · contrast: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R3 V4 · weakest: R, the departments grid repeats the tile rhythm, so it carries line icons and live counts instead of copy */
/* waive 65, 29: near-black with a bright accent, glass bars and cyan rim light are the owner's brief ("iluminación digital y transparencias", PROYECTO.md § 3)
 * waive F7: every pill here is a control (search field, icon buttons, chips, counters)
 */

:root {
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.2rem; --text-xl: 1.5rem; --text-2xl: 1.875rem; --text-hero: clamp(2.4rem, 1.2rem + 4.2vw, 4.6rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 600ms;
  --container: 1280px; --gutter: 40px; --gap-columns: 20px;
  --z-sticky: 200; --z-tab: 250; --z-modal: 400; --z-toast: 500;
  --color-paper: oklch(14.6% 0.012 268);
  --color-paper-2: oklch(18.5% 0.016 268);
  --color-paper-3: oklch(23% 0.02 268);
  --color-ink: oklch(97.5% 0.004 268);
  --color-ink-2: oklch(83% 0.015 260);
  --color-muted: oklch(72% 0.03 257);
  --color-titanio: oklch(55.4% 0.041 257);
  --color-rule: oklch(29% 0.022 266);
  --color-accent: oklch(51% 0.23 277);
  --color-accent-2: oklch(58.5% 0.2 277);
  --color-accent-ink: oklch(99% 0.005 277);
  --color-cian: oklch(82% 0.13 210);
  --color-focus: oklch(82% 0.13 210);
  --color-luz-cian: oklch(82% 0.13 210 / 0.28);
  --color-luz-cian-2: oklch(82% 0.13 210 / 0.10);
  --color-luz-indigo: oklch(58.5% 0.2 277 / 0.30);
  --color-luz-indigo-2: oklch(58.5% 0.2 277 / 0.12);
  --color-vidrio: oklch(14.6% 0.012 268 / 0.78);
  --color-velo: oklch(8% 0.01 268 / 0.74);
  --color-fav: oklch(70% 0.19 15);
  --color-error: oklch(70% 0.17 27);
  --font-display: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --radius-card: 18px; --radius-input: 12px; --radius-pill: 999px;
  --tabbar: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: 140px; scrollbar-color: var(--color-titanio) var(--color-paper); }
body { margin: 0; padding-bottom: var(--tabbar); background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.55; -webkit-font-smoothing: antialiased; caret-color: var(--color-cian); }
::selection { background: var(--color-luz-cian); color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-underline-offset: 0.18em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
img { max-width: 100%; height: auto; display: block; }
svg { display: block; flex: none; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nota { color: var(--color-muted); font-size: var(--text-sm); }
.saltar { position: absolute; left: var(--space-md); top: -100px; z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); border-radius: var(--radius-input); }
.saltar:focus-visible { top: var(--space-md); }

/* botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-lg); border: 1px solid var(--color-accent); border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font-weight: 600; font-size: var(--text-md); line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
.btn:hover { background: var(--color-accent-2); border-color: var(--color-accent-2); box-shadow: 0 0 28px var(--color-luz-indigo); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn--quiet { background: transparent; color: var(--color-ink); border-color: var(--color-rule); }
.btn--quiet:hover { background: var(--color-paper-2); border-color: var(--color-titanio); box-shadow: none; }

/* barra superior (vidrio) */
.barra { position: sticky; top: 0; z-index: var(--z-sticky); background: var(--color-vidrio); backdrop-filter: blur(16px) saturate(1.2); border-bottom: 1px solid var(--color-rule); }
.barra-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-lg); min-height: 72px; }
.marca { display: flex; align-items: baseline; gap: var(--space-xs); text-decoration: none; }
.marca img { height: 26px; width: auto; align-self: center; }
.marca span { font-weight: 500; font-size: var(--text-lg); color: var(--color-cian); }
.buscar { position: relative; display: flex; align-items: center; gap: var(--space-2xs); max-width: 680px; width: 100%; justify-self: center; padding: 0 var(--space-2xs) 0 var(--space-md); min-height: 50px; border: 1px solid var(--color-rule); border-radius: var(--radius-pill); background: var(--color-paper-2); transition: border-color var(--dur-short) var(--ease-out); }
.buscar:hover { border-color: var(--color-titanio); }
.buscar:focus-within { border-color: var(--color-cian); }
.buscar .lupa { color: var(--color-muted); }
.buscar input[type="search"] { flex: 1; min-width: 0; min-height: 48px; padding: 0 var(--space-xs); border: 0; background: none; font-size: var(--text-md); }
.buscar input[type="search"]:focus-visible { outline: none; }
.buscar input::placeholder { color: var(--color-muted); }
.ico { width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: var(--radius-pill); background: none; color: var(--color-ink-2); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.ico:hover { background: var(--color-paper-3); color: var(--color-cian); }
.ico:active { transform: scale(0.96); }
.ico.escucha { color: var(--color-paper); background: var(--color-cian); }
#fFoto:focus-visible + .ico, .buscar label.ico:has(+ #fFoto:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.acciones { display: flex; gap: var(--space-2xs); }
.ico-b { position: relative; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--color-rule); border-radius: var(--radius-pill); background: none; cursor: pointer; transition: border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.ico-b:hover { border-color: var(--color-cian); color: var(--color-cian); }
.ico-b:active { transform: scale(0.97); }
.ico-b b, .tabbar b { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 var(--space-2xs); border-radius: var(--radius-pill); background: var(--color-cian); color: var(--color-paper); font-size: var(--text-xs); font-weight: 700; display: grid; place-items: center; }
.subnav { display: flex; gap: var(--space-lg); overflow-x: auto; scrollbar-width: none; font-size: var(--text-sm); }
.subnav a { display: inline-flex; align-items: center; gap: var(--space-2xs); min-height: 40px; color: var(--color-ink-2); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; transition: color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.subnav a:hover { color: var(--color-ink); border-color: var(--color-cian); }
.subnav small { color: var(--color-titanio); font-size: var(--text-xs); }

/* campaña */
.campana { position: relative; overflow: hidden; border-bottom: 1px solid var(--color-rule); }
.campana::before { content: ""; position: absolute; inset: -30% -10% auto 45%; height: 140%; background: radial-gradient(closest-side, var(--color-luz-indigo-2), transparent 70%); pointer-events: none; }
.campana::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: min(560px, 60%); height: 1px; transform: translateX(-50%); background: var(--color-cian); opacity: 0.7; box-shadow: 0 0 18px 1px var(--color-luz-cian); }
.campana-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--space-xl); align-items: center; min-height: min(560px, calc(100svh - 160px)); padding-block: var(--space-2xl); }
.campana h1 { font-size: var(--text-hero); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; max-width: 12ch; }
.campana-txt > p { margin-top: var(--space-md); font-size: var(--text-lg); color: var(--color-ink-2); max-width: 34ch; }
.campana-acc { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }
.cifras { margin-top: var(--space-lg); color: var(--color-muted); font-size: var(--text-sm); }
.cifras b { color: var(--color-ink); font-weight: 700; }
/* la vitrina iluminada: fotos reales de las tiendas */
.vitrina { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: var(--space-md); height: 460px; }
.v { position: relative; margin: 0; border-radius: var(--radius-card); overflow: hidden; background: var(--color-paper-3); border: 1px solid var(--color-rule); transition: border-color var(--dur-short) var(--ease-out); }
.v img { width: 100%; height: 100%; object-fit: cover; }
.v figcaption { position: absolute; left: var(--space-sm); right: var(--space-sm); bottom: var(--space-sm); display: grid; padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-input); background: var(--color-vidrio); backdrop-filter: blur(8px); font-size: var(--text-sm); }
.v figcaption b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v figcaption span { color: var(--color-cian); font-weight: 700; }
.v1 { grid-row: 1 / 3; border-color: var(--color-luz-cian); box-shadow: 0 0 0 1px var(--color-luz-cian-2), 0 40px 90px -40px var(--color-luz-cian); }
.v2 { transform: translateY(-14px); }
.v3 { transform: translateY(14px); }
.vitrina a { display: block; width: 100%; height: 100%; }
.vitrina .v:hover { border-color: var(--color-cian); }
.vitrina:has(.v:only-child) { grid-template-columns: minmax(0, 1fr); }

/* bloques */
.bloque { padding-top: var(--space-2xl); }
.cab { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: var(--space-md); margin-bottom: var(--space-lg); }
.cab h2 { font-size: var(--text-2xl); letter-spacing: -0.02em; }
.filtros { display: flex; align-items: center; gap: var(--space-md); }
.filtros select { min-height: 40px; padding: 0 var(--space-md); border: 1px solid var(--color-rule); border-radius: var(--radius-pill); background: var(--color-paper-2); cursor: pointer; }
.filtros select:hover { border-color: var(--color-titanio); }

/* asesor */
.asesor-in { position: relative; display: grid; gap: var(--space-md); padding: var(--space-xl); border: 1px solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper-2); border-top: 1px solid var(--color-luz-cian); box-shadow: 0 -12px 40px -28px var(--color-luz-cian); }
.asesor-cab { display: flex; gap: var(--space-md); align-items: center; }
.asesor-ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: var(--radius-input); color: var(--color-cian); border: 1px solid var(--color-luz-cian); box-shadow: 0 0 24px var(--color-luz-cian-2); }
.asesor h2 { font-size: var(--text-xl); }
.asesor-cab p { color: var(--color-ink-2); margin-top: var(--space-3xs); }
.asesor-f { display: flex; gap: var(--space-sm); }
.asesor-f input { flex: 1; min-width: 0; min-height: 52px; padding: 0 var(--space-lg); border: 1px solid var(--color-rule); border-radius: var(--radius-pill); background: var(--color-paper); transition: border-color var(--dur-short) var(--ease-out); }
.asesor-f input:hover { border-color: var(--color-titanio); }
.asesor-f input:focus-visible { outline: none; border-color: var(--color-cian); }
.asesor-f input::placeholder { color: var(--color-muted); }
.sug { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.sug button { min-height: 36px; padding: 0 var(--space-md); border: 1px solid var(--color-rule); border-radius: var(--radius-pill); background: none; color: var(--color-ink-2); font-size: var(--text-sm); cursor: pointer; transition: border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.sug button:hover { border-color: var(--color-cian); color: var(--color-ink); }
.asesor-res { display: grid; gap: var(--space-md); padding-top: var(--space-md); border-top: 1px solid var(--color-rule); }
.asesor-res > p { font-size: var(--text-lg); }
.asesor-res .error { color: var(--color-error); }

/* departamentos */
.dep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-sm); }
.dep { display: grid; gap: var(--space-sm); justify-items: start; min-height: 128px; padding: var(--space-md); border: 1px solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper-2); text-align: left; cursor: pointer; transition: border-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
.dep svg { width: 30px; height: 30px; color: var(--color-cian); }
.dep b { font-weight: 600; line-height: 1.25; }
.dep small { color: var(--color-muted); font-size: var(--text-xs); }
.dep:hover { border-color: var(--color-luz-cian); box-shadow: 0 0 0 1px var(--color-luz-cian-2), 0 12px 40px -16px var(--color-luz-cian); transform: translateY(-2px); }
.dep:active { transform: none; }
.dep[aria-pressed="true"] { border-color: var(--color-cian); }

/* rieles */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(16rem, 23%); gap: var(--gap-columns); overflow-x: auto; scroll-snap-type: x mandatory; list-style: none; margin: 0; padding: 0 0 var(--space-sm); overscroll-behavior-x: contain; scrollbar-width: thin; }
.rail > li { scroll-snap-align: start; min-width: 0; }
.rail:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.rail-p { grid-auto-columns: minmax(13rem, 19%); }
.tienda { position: relative; display: grid; gap: var(--space-sm); height: 100%; padding: var(--space-md); border: 1px solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper-2); text-decoration: none; transition: border-color var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
.tienda:hover { border-color: var(--color-cian); transform: translateY(-2px); }
.tienda:active { transform: none; }
.tienda .top { display: flex; align-items: center; gap: var(--space-sm); min-width: 0; }
.tienda .logo { width: 52px; height: 52px; flex: none; border-radius: var(--radius-input); overflow: hidden; display: grid; place-items: center; background: var(--color-paper-3); color: var(--color-ink); font-weight: 700; }
.tienda .logo img { width: 100%; height: 100%; object-fit: cover; }
.tienda .top div { min-width: 0; }
.tienda b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tienda .top div span { display: block; color: var(--color-muted); font-size: var(--text-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tienda .mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2xs); }
.tienda .mini span { aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--color-paper-3); }
.tienda .mini img { width: 100%; height: 100%; object-fit: cover; }
.tienda .ir { display: flex; align-items: center; justify-content: space-between; color: var(--color-ink-2); font-size: var(--text-sm); }

/* productos */
.grilla { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-columns); }
.prod { position: relative; display: flex; flex-direction: column; min-width: 0; height: 100%; border: 1px solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper-2); overflow: hidden; transition: border-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
.prod:hover { border-color: var(--color-luz-cian); box-shadow: 0 16px 48px -24px var(--color-luz-cian); }
.prod:focus-within { border-color: var(--color-cian); }
.prod .ver { display: flex; flex-direction: column; flex: 1; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.prod .ver:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.foto { position: relative; aspect-ratio: 1; background: var(--color-paper-3); display: grid; place-items: center; overflow: hidden; }
.foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.foto .ini { font-size: 2.5rem; font-weight: 800; color: var(--color-titanio); }
.prod .dat { display: grid; gap: var(--space-3xs); padding: var(--space-sm) var(--space-md) var(--space-md); }
.prod .nom { font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod .pre { font-size: var(--text-lg); font-weight: 700; }
.prod .pre small { color: var(--color-muted); font-weight: 500; font-size: var(--text-xs); }
.prod .tie { color: var(--color-muted); font-size: var(--text-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prod .agr { margin: auto var(--space-md) var(--space-md); }
.corazon { position: absolute; top: var(--space-xs); right: var(--space-xs); z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: var(--radius-pill); background: var(--color-vidrio); backdrop-filter: blur(6px); color: var(--color-ink); cursor: pointer; transition: color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.corazon:hover { color: var(--color-fav); }
.corazon:active { transform: scale(0.9); }
.corazon[aria-pressed="true"] { color: var(--color-fav); }
.esq { min-height: 120px; aspect-ratio: 3 / 4; border-radius: var(--radius-card); background: linear-gradient(100deg, var(--color-paper-2) 30%, var(--color-paper-3) 50%, var(--color-paper-2) 70%); background-size: 300% 100%; animation: brillo 1.4s linear infinite; }
.vitrina .esq { aspect-ratio: auto; }
@keyframes brillo { from { background-position: 100% 0; } to { background-position: 0 0; } }
.estado { display: grid; justify-items: start; gap: var(--space-sm); padding: var(--space-xl); border: 1px dashed var(--color-rule); border-radius: var(--radius-card); }
.estado h3 { font-size: var(--text-lg); }
.estado p { color: var(--color-ink-2); max-width: 52ch; }
.mas { display: flex; justify-content: center; padding-top: var(--space-lg); }

/* chips */
.seg { display: flex; gap: var(--space-xs); flex-wrap: nowrap; overflow-x: auto; min-inline-size: 0; max-width: 100%; margin: 0 0 var(--space-lg); padding: var(--space-2xs) 0 var(--space-xs); border: 0; scrollbar-width: none; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 40px; padding: 0 var(--space-md); border: 1px solid var(--color-rule); border-radius: var(--radius-pill); font-size: var(--text-sm); white-space: nowrap; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.seg label:hover { border-color: var(--color-titanio); }
.seg label small { color: var(--color-muted); font-size: var(--text-xs); }
.seg input:checked + label { background: var(--color-ink); color: var(--color-paper); border-color: var(--color-ink); }
.seg input:checked + label small { color: var(--color-paper-3); }
.seg input:focus-visible + label { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* lo que viene */
.pronto { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); }
.pronto article { padding: var(--space-lg); border: 1px solid var(--color-rule); border-radius: var(--radius-card); border-top: 2px solid var(--color-accent-2); }
.pronto h3 { font-size: var(--text-lg); }
.pronto p { margin-top: var(--space-xs); color: var(--color-ink-2); }

/* vende aquí */
.vende { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); margin-top: var(--space-3xl); padding: var(--space-xl); border: 1px solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper-2); border-bottom: 1px solid var(--color-luz-indigo); }
.vende h2 { font-size: var(--text-xl); }
.vende p { margin-top: var(--space-2xs); color: var(--color-ink-2); }

/* pie */
.pie { margin-top: var(--space-2xl); border-top: 1px solid var(--color-rule); }
.pie-in { display: grid; gap: var(--space-md); padding-block: var(--space-xl); }
.pie-marca { display: flex; align-items: center; gap: var(--space-md); }
.pie-marca img { height: 22px; width: auto; }
.pie-marca p { color: var(--color-ink-2); }
.pie nav { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); font-size: var(--text-sm); }
.pie nav a { color: var(--color-ink-2); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.pie nav a:hover { color: var(--color-ink); text-decoration: underline; }
.firma { display: flex; align-items: center; gap: var(--space-xs); color: var(--color-muted); font-size: var(--text-sm); }
.firma img { height: 16px; width: auto; }

/* barra inferior (celular) */
.tabbar { display: none; }

/* hojas */
.hoja { width: min(900px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper-2); color: var(--color-ink); }
.hoja::backdrop { background: var(--color-velo); backdrop-filter: blur(4px); }
.hoja[open] { animation: entra var(--dur-short) var(--ease-out); }
@keyframes entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hoja-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cerrar { position: absolute; top: var(--space-sm); right: var(--space-sm); z-index: 3; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--color-rule); border-radius: var(--radius-pill); background: var(--color-paper); cursor: pointer; transition: border-color var(--dur-short) var(--ease-out); }
.cerrar:hover { border-color: var(--color-titanio); }
.p-foto .foto { aspect-ratio: 1; }
.p-dat { display: grid; align-content: start; gap: var(--space-sm); padding: var(--space-xl) var(--space-lg) var(--space-lg); }
.p-tienda { color: var(--color-cian); font-size: var(--text-sm); font-weight: 600; text-decoration: none; justify-self: start; min-height: 32px; display: inline-flex; align-items: center; }
.p-tienda:hover { text-decoration: underline; }
.p-dat h2 { font-size: var(--text-2xl); line-height: 1.15; padding-right: var(--space-2xl); }
.p-precio { font-size: var(--text-2xl); font-weight: 800; }
.p-desc { color: var(--color-ink-2); }
.p-acc, .p-acc2 { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.p-acc { margin-top: var(--space-xs); }
#pFav[aria-pressed="true"] { color: var(--color-fav); border-color: var(--color-fav); }
.cant { display: inline-flex; align-items: center; border: 1px solid var(--color-rule); border-radius: var(--radius-pill); }
.cant button { width: 44px; height: 44px; border: 0; background: none; font-size: var(--text-lg); cursor: pointer; border-radius: var(--radius-pill); }
.cant button:hover { background: var(--color-paper-3); }
.cant button:disabled { opacity: 0.4; cursor: not-allowed; }
.cant output { min-width: 2ch; text-align: center; font-weight: 600; }
.lado { margin-right: 0; margin-left: auto; width: min(460px, 100%); height: 100dvh; max-height: 100dvh; border-radius: 0; border-width: 0 0 0 1px; }
.lado .hoja-in { display: block; padding: var(--space-xl) var(--space-lg); }
.lado h2 { font-size: var(--text-xl); margin-bottom: var(--space-2xs); }
.grupo { margin-top: var(--space-lg); padding-top: var(--space-md); border-top: 1px solid var(--color-rule); }
.grupo h3 { font-size: var(--text-md); margin-bottom: var(--space-sm); }
.item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: var(--space-sm); align-items: center; padding-block: var(--space-xs); }
.item .foto { width: 52px; border-radius: var(--radius-input); }
.item .foto .ini { font-size: var(--text-md); }
.item b { display: block; font-weight: 600; font-size: var(--text-sm); }
.item span { color: var(--color-muted); font-size: var(--text-sm); }
.item .cant button { width: 36px; height: 36px; }
.item .quitar { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--color-rule); border-radius: var(--radius-pill); background: none; cursor: pointer; }
.item .quitar:hover { border-color: var(--color-titanio); }
.item-b { display: contents; }
.grupo .tot { display: flex; justify-content: space-between; margin: var(--space-sm) 0; font-weight: 700; }
.grupo .btn { width: 100%; }

.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar) + var(--space-lg)); z-index: var(--z-toast); transform: translateX(-50%); padding: var(--space-sm) var(--space-lg); border-radius: var(--radius-pill); background: var(--color-ink); color: var(--color-paper); font-weight: 600; font-size: var(--text-sm); max-width: calc(100% - 32px); }

@media (max-width: 60rem) {
  :root { --gutter: 24px; }
  .campana-in { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: var(--space-xl); }
  .vitrina { height: 340px; }
  .grilla { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rail { grid-auto-columns: minmax(15rem, 42%); }
  .rail-p { grid-auto-columns: minmax(12rem, 34%); }
  .hoja-in { grid-template-columns: minmax(0, 1fr); }
  .p-foto .foto { aspect-ratio: 4 / 3; }
  .pronto { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 40rem) {
  :root { --gutter: 16px; --gap-columns: 12px; --tabbar: 68px; }
  html { scroll-padding-top: 130px; }
  .barra-in { grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-sm); padding-block: var(--space-sm); min-height: 0; }
  .buscar { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .acciones { display: none; }
  .marca img { height: 22px; }
  .subnav { gap: var(--space-md); }
  .campana h1 { font-size: 2.6rem; }
  .campana-txt > p { font-size: var(--text-md); }
  .campana-acc .btn { flex: 1; }
  .vitrina { height: 280px; gap: var(--space-sm); }
  .v figcaption { left: var(--space-xs); right: var(--space-xs); bottom: var(--space-xs); padding: var(--space-2xs) var(--space-xs); font-size: var(--text-xs); }
  .v2, .v3 { transform: none; }
  .cab h2 { font-size: var(--text-xl); }
  .asesor-in { padding: var(--space-lg); }
  .asesor-f { flex-direction: column; }
  .asesor-cab { flex-direction: column; align-items: flex-start; }
  .dep-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dep { min-height: 104px; }
  .grilla { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prod .dat { padding: var(--space-xs) var(--space-sm) var(--space-sm); }
  .prod .pre { font-size: var(--text-md); }
  .prod .agr { margin: auto var(--space-sm) var(--space-sm); padding: 0 var(--space-sm); min-height: 40px; }
  .rail { grid-auto-columns: minmax(14rem, 80%); }
  .rail-p { grid-auto-columns: minmax(10rem, 46%); }
  .vende { flex-direction: column; align-items: flex-start; padding: var(--space-lg); }
  .filtros { width: 100%; justify-content: space-between; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-tab); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--color-vidrio); backdrop-filter: blur(16px); border-top: 1px solid var(--color-rule); }
  .tabbar a, .tabbar button { position: relative; display: grid; place-items: center; align-content: center; gap: var(--space-3xs); border: 0; background: none; color: var(--color-muted); font-size: 0.6875rem; text-decoration: none; cursor: pointer; }
  .tabbar a:hover, .tabbar button:hover { color: var(--color-ink); }
  .tabbar .on { color: var(--color-cian); }
  .tabbar b { top: 6px; right: calc(50% - 22px); }
  .hoja { width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: var(--radius-card) var(--radius-card) 0 0; }
  .lado { height: 100dvh; max-height: 100dvh; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .tienda:hover, .dep:hover { transform: none; }
}

/* aviso de departamentos con reglas (farmacia, licores) */
.aviso-dep { padding: var(--space-xs) var(--space-sm); border-left: 2px solid var(--color-cian); background: var(--color-paper-3); border-radius: var(--radius-input); color: var(--color-ink-2); }
