/* =====================================================================
   VidrieraLive — estilos compartidos (v3 · paleta "Cartulina")
   Tokens + componentes de todas las páginas (CONTRACT.md §9, CONTRACT-v2 §8,
   CONTRACT-v3 §4 y §5). Sin dependencias; las fuentes vienen de Google Fonts
   (ver el <head> de cada página) y caen en las del sistema si no cargan.

   Regla madre: fucsia = la casa · lima = la acción principal (una por pantalla)
   · rojo = EN VIVO y nada más. Precios y estrellas en tinta. La única píldora
   sólida saturada del sistema es EN VIVO.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Tokens
   --------------------------------------------------------------------- */
:root {
  /* Marca */
  --brand: #9A1584;
  --brand-strong: #6F0E5F;
  --brand-soft: #FBE9F5;
  --on-brand: #FFFFFF;
  /* Acción principal */
  --accent: #A8E43C;
  --accent-soft: #EEF9D9;
  --on-accent: #1F1520;
  --accent-edge: #4D7C0F;
  /* EN VIVO */
  --live: #D42A1C;
  --on-live: #FFFFFF;
  --live-ring-outer: #171116;
  /* Estados */
  --success: #1B7238;
  --success-soft: #E7F4EB;
  --verified: #1659B5;
  --verified-soft: #E9F0FB;
  --commerce: #4E0F44;
  --warning: #8A4300;
  --warning-soft: #FFF3DA;
  --danger: #921B1B;
  --danger-soft: #FDE9E2;
  --info: #455D76;
  --info-soft: #EEF1F4;
  /* Superficies y texto */
  --bg: #F6F2F5;
  --surface: #FFFFFF;
  --surface-alt: #EFE8ED;
  --border: #E2D8DF;
  --border-strong: #8C7D88;
  --text: #1F1520;
  --text-muted: #695B66;
  --scrim: rgba(23, 17, 22, .62);
  --cta-scrim: rgba(23, 17, 22, .75);
  /* Oscuro (solo sala del vivo y overlays) */
  --dark-bg: #171116;
  --dark-surface: #231B22;
  --dark-text: #F5EEF3;
  --dark-text-muted: #B8A9B4;
  --dark-border: #3D323B;
  --brand-on-dark: #F08AD2;
  --live-on-dark: #FF7A6E;
  --danger-on-dark: #F47B74;
  --verified-on-dark: #81B4F6;
  --info-on-dark: #AEBBC9;

  /* Derivados (todos con contraste medido: texto ≥ 4,5:1, controles ≥ 3:1) */
  --brand-deep: #560A4A;          /* hover de --brand-strong */
  --brand-soft-hover: #F6D8EC;
  --brand-line: #EDC3E2;          /* borde decorativo de cajas --brand-soft */
  --on-brand-muted: #F7DDF0;      /* texto secundario sobre el header (5,9:1) */
  --accent-hover: #9BD92F;
  --accent-active: #8FCB28;
  --live-hover: #B8231A;
  --surface-hover: #FAF7F9;
  --success-line: #BFDFC9;
  --warning-line: #EFCB8F;
  --danger-line: #F1C0B2;
  --verified-line: #C5D7F2;
  --info-line: #D3DAE2;
  --star-off: #D9CDD5;

  /* Foco: anillo de 2 px --brand-strong con 2 px de separación blanca (en el header: anillo blanco). */
  --focus-ring: var(--brand-strong);
  --focus-gap: #FFFFFF;

  /* v4 (CONTRACT-v4 §2.4): Centro de vendedores, barra inferior y filas del inicio */
  --centro-bg: #4E0F44;
  --centro-text: #FFFFFF;
  --centro-surface: #F6E8F3;
  --centro-text-muted: #EBD3E5;   /* 10,1:1 sobre --centro-bg */
  --bottom-bar-h: 64px;
  --row-card-w: 172px;            /* 220px desde 768 px */
  /* v4 §10.2: medallas por mérito (dorado sobre crema; nunca el gris de «Destacado») */
  --medal-bg: #FFF6DA;
  --medal-line: #B8860B;
  --medal-text: #6B4700;          /* 7,7:1 sobre --medal-bg */

  /* Forma, sombras, movimiento */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-btn: 10px;
  --shadow-sm: 0 0 0 1px var(--border), 0 1px 2px rgba(31, 21, 32, .06);
  --shadow-md: 0 0 0 1px var(--border), 0 4px 14px rgba(31, 21, 32, .08);
  --shadow-lg: 0 0 0 1px var(--border), 0 12px 28px rgba(31, 21, 32, .14);
  --shadow-pop: 0 0 0 1px rgba(31, 21, 32, .06), 0 16px 40px rgba(31, 21, 32, .22);
  --ease: cubic-bezier(.2, .7, .3, 1);

  /* Tipografía (§5): Archivo para títulos, precios, EN VIVO y logo; Atkinson Hyperlegible Next para todo lo demás. */
  --font-display: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-ui: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;

  /* ---- Alias v1/v2 (las páginas los siguen usando; apuntan a la paleta nueva) ---- */
  --vl-yellow: var(--brand);
  --vl-yellow-dark: var(--brand-strong);
  --vl-yellow-soft: var(--warning-soft);   /* se usaba para avisos "ojo": cae en el amarillo de advertencia */
  --vl-blue: var(--brand-strong);          /* links y acentos de marca (texto y fondos con texto blanco) */
  --vl-blue-dark: var(--brand-deep);
  --vl-blue-soft: var(--brand-soft);
  --vl-blue-text: var(--brand-strong);
  --vl-red: var(--live);
  --vl-red-dark: var(--danger);
  --vl-red-soft: var(--danger-soft);
  --vl-green: var(--success);
  --vl-green-text: var(--success);
  --vl-green-strong: var(--success);
  --vl-green-soft: var(--success-soft);
  --vl-text: var(--text);
  --vl-muted: var(--text-muted);
  --vl-border: var(--border);
  --vl-bg: var(--bg);
  --vl-card: var(--surface);
  --vl-navy: var(--brand-strong);
  --vl-radius: var(--radius);
  --vl-shadow: var(--shadow-sm);
  --vl-shadow-lg: var(--shadow-lg);
  --vl-font: var(--font-ui);
  --vl-ring: 0 0 0 3px rgba(111, 14, 95, .18);
  --vl-ease: var(--ease);
  color-scheme: light;
}

/* ---------------------------------------------------------------------
   2. Base
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; /* red de seguridad: nunca scroll horizontal */
}

[hidden] { display: none !important; }

img, svg, video, canvas { max-width: 100%; }
img { height: auto; }

a { color: var(--brand-strong); text-decoration: none; text-underline-offset: .18em; }
a:hover { color: var(--brand-deep); text-decoration: underline; }
/* Links dentro de texto corrido: subrayados (terciario = link --brand-strong subrayado). */
:where(p, li, dd, td, small, .small, .muted, figcaption) > a:not([class]) { text-decoration: underline; text-decoration-thickness: 1px; }

h1, h2, h3 {
  margin: 0 0 .5em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
}
h4 { margin: 0 0 .5em; font-weight: 700; line-height: 1.25; }
p { margin: 0 0 .75em; }
b, strong { font-weight: 700; }

button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }

code {
  font-family: var(--font-mono);
  font-size: .92em;
  background: var(--surface-alt);
  padding: 1px 5px;
  border-radius: 4px;
  overflow-wrap: anywhere;
}

::selection { background: var(--brand-soft-hover); color: var(--text); }

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
/* Separación blanca de 2 px entre el control y el anillo (si el componente no usa su propia sombra). */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { box-shadow: 0 0 0 2px var(--focus-gap); }
:focus:not(:focus-visible) { outline: none; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.vl-skip {
  position: absolute;
  left: 12px; top: -56px;
  z-index: 1200;
  padding: 10px 16px;
  border-radius: var(--radius-btn);
  background: var(--surface);
  color: var(--brand-strong);
  font-weight: 700;
  box-shadow: var(--shadow-pop);
  transition: top .15s;
}
.vl-skip:focus { top: 8px; text-decoration: none; }

body > main { min-height: 50vh; }

/* Íconos de línea (VL.icon / SVG inline): heredan el color del texto. */
.vl-ic {
  display: inline-block;
  flex-shrink: 0;
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -.2em;
}
.vl-ic-fill { fill: currentColor; stroke: none; }

/* ---------------------------------------------------------------------
   3. Layout
   --------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr));
  gap: 16px;
}

.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr));
  gap: 12px;
}

.grid-cards > .empty-state,
.grid-products > .empty-state { grid-column: 1 / -1; }

.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack > * { margin-top: 0; margin-bottom: 0; }
.section { margin: 24px 0; scroll-margin-top: 12px; }

.section-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.015em;
}
.section-title a {
  margin-left: auto;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--brand-strong);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}
.section-title a:hover { color: var(--brand-deep); }

/* ---------------------------------------------------------------------
   4. Header y footer (los genera common.js)
   --------------------------------------------------------------------- */
#vl-header,
.vl-header {
  /* v4: cada zona cambia estos colores (§2.3); compra y cuenta usan el fucsia de la casa. */
  --hdr-bg: var(--brand);
  --hdr-fg: var(--on-brand);
  --hdr-muted: var(--on-brand-muted);
  --hdr-hover: rgba(255, 255, 255, .16);
  --hdr-line: rgba(255, 255, 255, .4);
  --focus-ring: #FFFFFF;
  --focus-gap: transparent;
  display: block;
  position: relative;
  z-index: 50;
  background: var(--hdr-bg);
  color: var(--hdr-fg);
  box-shadow: 0 1px 0 rgba(23, 17, 22, .12), 0 2px 8px rgba(23, 17, 22, .08);
}
#vl-header:empty { min-height: 104px; }

.vl-header-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "logo search actions";
  align-items: center;
  gap: 10px 28px;
  padding-top: 12px;
  padding-bottom: 8px;
}

.vl-logo {
  grid-area: logo;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--hdr-fg);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  letter-spacing: -.02em;
  white-space: nowrap;
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.vl-logo:hover { color: var(--hdr-fg); text-decoration: none; }
.vl-logo-icon { flex-shrink: 0; display: block; width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 1px 2px rgba(23, 17, 22, .25); }
.vl-logo-text { font-weight: 600; }
.vl-logo-text b { font-weight: 800; }
.vl-logo-dot {
  align-self: flex-start;
  width: 7px; height: 7px;
  margin: 4px 0 0 -6px;
  border-radius: 50%;
  background: currentColor;
  animation: vl-blink 2.4s ease-in-out infinite;
}

.vl-search {
  grid-area: search;
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 620px;
  min-width: 0;
  background: var(--surface);
  border-radius: var(--radius-btn);
  box-shadow: 0 1px 2px rgba(23, 17, 22, .18);
  overflow: hidden;
}
.vl-search:focus-within { outline: 2px solid #FFFFFF; outline-offset: 2px; }
.vl-search input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  outline: none;
}
.vl-search input::placeholder { color: var(--text-muted); opacity: 1; }
.vl-search input:focus-visible { outline: none; box-shadow: none; }
.vl-search button {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  border: 0;
  background: var(--surface);
  color: var(--text);
  transition: background-color .15s, color .15s;
}
.vl-search button::before {
  content: "";
  position: absolute;
  left: 0; top: 10px; bottom: 10px;
  width: 1px;
  background: var(--border);
}
.vl-search button:hover { background: var(--brand-soft); color: var(--brand-strong); }
.vl-search button:focus-visible { outline: 2px solid var(--brand-strong); outline-offset: -5px; box-shadow: none; }

.vl-header-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}
/* "Alquilá tu local" del header: contorno blanco (la lima queda para la acción principal de cada pantalla). */
.vl-header .vl-rent-btn,
.vl-rent-btn {
  flex-shrink: 0;
  min-height: 38px;
  padding: 7px 14px;
  border: 1.5px solid rgba(255, 255, 255, .85);
  background: transparent;
  color: var(--on-brand);
  font-weight: 700;
}
.vl-header .vl-rent-btn:hover,
.vl-header .vl-rent-btn.active { border-color: #FFFFFF; background: #FFFFFF; color: var(--brand-strong); }
.vl-rent-short { display: none; }

/* --- Cuenta: invitado ("Creá tu cuenta" / "Ingresá") o usuario (campanita + menú) --- */
.vl-account {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 40px;
}
.vl-account.is-user { gap: 6px; }
.vl-account-skel {
  display: block;
  width: 128px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .16) 25%, rgba(255, 255, 255, .34) 37%, rgba(255, 255, 255, .16) 63%);
  background-size: 400% 100%;
  animation: vl-shimmer 1.4s ease infinite;
}
.vl-auth-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--hdr-fg);
  font-size: 14px;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color .15s;
}
.vl-auth-link:hover { background: var(--hdr-hover); color: var(--hdr-fg); text-decoration: none; }
.vl-auth-login { font-weight: 700; }

.vl-pop-wrap { position: relative; }

.vl-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--hdr-fg);
  transition: background-color .15s;
}
.vl-bell:hover,
.vl-pop-wrap.is-open > .vl-bell { background: var(--hdr-hover); }
.vl-bell-icon { display: block; }
.vl-bell.is-ringing .vl-bell-icon { animation: vl-ring .9s ease-in-out; transform-origin: 50% 4px; }
/* Contador = píldora blanca con número --brand-strong. */
.vl-bell-count {
  position: absolute;
  top: 1px; right: -2px;
  min-width: 19px; height: 19px;
  padding: 0 5px;
  border-radius: 10px;
  background: #FFFFFF;
  color: var(--brand-strong);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  line-height: 19px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px var(--hdr-bg);
}
@keyframes vl-ring {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(14deg); }
  30% { transform: rotate(-12deg); }
  45% { transform: rotate(9deg); }
  60% { transform: rotate(-6deg); }
  75% { transform: rotate(3deg); }
}

.vl-account-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 230px;
  min-height: 40px;
  padding: 3px 10px 3px 3px;
  border: 1px solid var(--hdr-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: var(--hdr-fg);
  font-size: 14px;
  line-height: 1.2;
  transition: background-color .15s, border-color .15s;
}
.vl-account-btn:hover,
.vl-pop-wrap.is-open > .vl-account-btn { background: var(--hdr-hover); border-color: var(--hdr-fg); }
.vl-account-avatar {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--brand-strong);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}
.vl-account-menu-head .vl-account-avatar { background: var(--brand-soft); }
.vl-account-avatar-lg { width: 44px; height: 44px; font-size: 19px; }
.vl-account-level {
  position: absolute;
  right: -3px; bottom: -3px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  background: var(--verified);
  color: #FFFFFF;
  font-size: 8px;
  font-weight: 800;
}
.vl-account-level.lvl-3 { background: var(--commerce); }
.vl-account-name { min-width: 0; overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.vl-account-dot { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 0 0 2px var(--brand-strong); }
.vl-account-caret { display: inline-flex; color: var(--hdr-muted); transition: transform .15s; }
.vl-pop-wrap.is-open > .vl-account-btn .vl-account-caret { transform: rotate(180deg); }

/* --- Popovers del header (menú de cuenta y notificaciones): superficies blancas --- */
.vl-pop {
  --focus-ring: var(--brand-strong);
  --focus-gap: #FFFFFF;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 80;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  color: var(--text);
  font-size: 14px;
  text-align: left;
  animation: vl-pop-in .14s var(--ease);
}
.vl-pop::before {
  content: "";
  position: absolute;
  top: -6px; right: 15px;
  width: 12px; height: 12px;
  background: var(--surface);
  box-shadow: -1px -1px 0 rgba(31, 21, 32, .06);
  transform: rotate(45deg);
}
@keyframes vl-pop-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.vl-pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 50px;
  padding: 8px 10px 8px 16px;
  border-bottom: 1px solid var(--border);
}
.vl-pop-title { margin: 0; font-size: 16px; font-weight: 800; outline: none; }
.vl-pop-foot {
  display: block;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  color: var(--brand-strong);
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
}
.vl-pop-foot:hover { background: var(--brand-soft); color: var(--brand-deep); text-decoration: none; }

.vl-account-menu { width: 290px; padding: 6px; }
.vl-account-menu::before { right: 22px; }
.vl-account-menu-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
  padding: 10px 10px 12px;
  border-bottom: 1px solid var(--border);
}
.vl-account-menu-id { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.vl-account-menu-id b { max-width: 200px; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.vl-account-menu-email { max-width: 200px; overflow: hidden; color: var(--text-muted); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.vl-menu { display: flex; flex-direction: column; gap: 1px; }
.vl-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--text);
  font-size: 14px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.vl-menu-item:hover,
.vl-menu-item:focus { background: var(--brand-soft); color: var(--brand-strong); text-decoration: none; outline: none; }
.vl-menu-item:focus-visible { box-shadow: inset 0 0 0 2px var(--brand-strong); }
.vl-menu-icon { flex-shrink: 0; width: 22px; font-size: 16px; text-align: center; }
.vl-menu-label { flex: 1; min-width: 0; }
.vl-menu-hint { flex-shrink: 0; color: var(--text-muted); font-size: 12px; }
.vl-menu-hint.is-ok { color: var(--success); font-weight: 700; }
.vl-menu-count {
  flex-shrink: 0;
  min-width: 20px; height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--brand-strong);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}
.vl-menu-sep { height: 1px; margin: 4px 6px; background: var(--border); }
.vl-menu-logout { color: var(--text-muted); }

.vl-bell-panel {
  display: flex;
  flex-direction: column;
  width: 370px;
  max-height: min(540px, calc(100vh - 120px));
}
.vl-bell-panel::before { right: 13px; }
.vl-bell-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.vl-bell-list { margin: 0; padding: 4px; list-style: none; }
.vl-bell-list li + li { margin-top: 2px; }
.vl-bell-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 10px 30px 10px 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--text);
  font-size: 13.5px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.vl-bell-item:hover { background: var(--surface-hover); color: var(--text); text-decoration: none; }
.vl-bell-item.is-unread { background: var(--brand-soft); }
.vl-bell-item.is-unread:hover { background: var(--brand-soft-hover); }
.vl-bell-item-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--surface-alt);
  font-size: 16px;
}
.vl-bell-item-icon.type-security { background: var(--danger-soft); }
.vl-bell-item-icon.type-verification { background: var(--verified-soft); }
.vl-bell-item-icon.type-order { background: var(--success-soft); }
.vl-bell-item-icon.type-moderation { background: var(--warning-soft); }
.vl-bell-item-icon.type-billing { background: var(--accent-soft); }
.vl-bell-item-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vl-bell-item-text b { font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.vl-bell-item-body { color: var(--text-muted); line-height: 1.35; overflow-wrap: anywhere; }
.vl-bell-item time { color: var(--text-muted); font-size: 12px; }
.vl-bell-item-dot { position: absolute; top: 16px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.vl-bell-state { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 20px; text-align: center; }
.vl-bell-state p { margin: 0; }
.vl-bell-state-icon { font-size: 32px; line-height: 1; }
.vl-bell-skel { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; }
.vl-bell-skel .skeleton { height: 46px; border-radius: var(--radius-sm); }

.vl-nav {
  display: flex;
  align-items: center;
  gap: 8px 20px;
  min-height: 44px;
  padding-bottom: 8px;
  font-size: 14px;
}

/* --- Chip "📍 Comprá cerca: {zona}" --- */
.vl-zone-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 290px;
  min-height: 34px;
  padding: 5px 13px 5px 10px;
  border: 1.5px solid var(--brand-soft);
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 13.5px;
  line-height: 1.2;
  text-align: left;
  transition: background-color .15s, border-color .15s, color .15s;
}
.vl-zone-chip:hover { background: #FFFFFF; border-color: #FFFFFF; color: var(--brand-strong); }
.vl-zone-chip:not(.has-zone) { border-style: dashed; border-color: rgba(255, 255, 255, .85); background: transparent; color: var(--on-brand); }
.vl-zone-chip:not(.has-zone):hover { background: rgba(255, 255, 255, .14); color: var(--on-brand); }
.vl-zone-chip-icon { flex-shrink: 0; font-size: 14px; line-height: 1; }
.vl-zone-chip-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vl-zone-chip-text b { color: inherit; font-weight: 800; }
.vl-zone-chip:empty { width: 140px; }

/* --- Franja "Confirmá tu email y tu celular" --- */
.vl-notice-bar { background: var(--brand-strong); color: #FFFFFF; font-size: 13.5px; }
.vl-notice-inner { display: flex; align-items: center; gap: 10px; min-height: 44px; padding-top: 5px; padding-bottom: 5px; }
.vl-notice-icon { flex-shrink: 0; }
.vl-notice-text { flex: 1; min-width: 0; margin: 0; }
.vl-notice-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--brand-strong);
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}
.vl-notice-link:hover { background: var(--brand-soft); color: var(--brand-deep); text-decoration: none; }
.vl-notice-close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #FFFFFF;
  font-size: 14px;
}
.vl-notice-close:hover { background: rgba(255, 255, 255, .16); color: #FFFFFF; }
.vl-nav-tagline {
  flex-shrink: 0;
  color: var(--on-brand-muted);
  white-space: nowrap;
}
.vl-nav-links {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.vl-nav-links::-webkit-scrollbar { display: none; }
.vl-nav-links a {
  padding: 6px 0;
  border-radius: 4px;
  color: var(--hdr-muted);
  white-space: nowrap;
  text-decoration: none;
}
.vl-nav-links a:hover { color: var(--hdr-fg); text-decoration: underline; text-decoration-thickness: 1px; }
.vl-nav-links a.active,
.vl-nav-links a[aria-current="page"],
.vl-nav-links a[aria-current="true"] {
  color: var(--hdr-fg);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--hdr-fg);
  text-decoration: none;
}

.vl-user-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 220px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: var(--on-brand);
  font-size: 13px;
  line-height: 1.2;
  transition: background .15s, border-color .15s;
}
.vl-user-chip:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .7); }
.vl-user-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.vl-header .vl-notice-bar { --focus-ring: #FFFFFF; --focus-gap: transparent; }

#vl-footer,
.vl-footer {
  display: block;
  margin-top: 56px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13.5px;
}
.vl-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 28px;
  padding-bottom: 32px;
}
.vl-footer-brand { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.vl-footer-text { margin: 0; max-width: 62ch; }
.vl-footer-tagline { margin: 0; color: var(--text); font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.vl-logo-sm { font-size: 18px; color: var(--text); }
.vl-logo-sm:hover { color: var(--text); }
.vl-logo-sm .vl-logo-text b { color: var(--brand); }
.vl-logo-sm .vl-logo-icon { width: 28px; height: 28px; border-radius: 8px; box-shadow: 0 0 0 1px var(--border-strong); }
.vl-logo-sm .vl-logo-dot { background: var(--brand); }
.vl-footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.vl-footer-links a,
.vl-footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--text);
  font-size: 13.5px;
  text-decoration: none;
}
.vl-footer-links a:hover,
.vl-footer-link:hover { color: var(--brand-strong); text-decoration: underline; }

/* ---------------------------------------------------------------------
   5. Botones
   Primario = lima con filo verde (uno por pantalla) · secundario = contorno tinta
   · terciario (.btn-ghost) = link --brand-strong.
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid var(--accent-edge);
  border-radius: var(--radius-btn);
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s;
}
.btn:hover { background: var(--accent-hover); color: var(--on-accent); text-decoration: none; }
.btn:active { background: var(--accent-active); transform: translateY(1px); }

.btn-secondary {
  border: 1.5px solid var(--text);
  background: transparent;
  color: var(--text);
}
.btn-secondary:hover { background: var(--surface-alt); color: var(--text); }
.btn-secondary:active { background: var(--brand-soft-hover); }

.btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--brand-strong);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand-deep); }
.btn-ghost:active { background: var(--brand-soft-hover); }

/* Rojo = EN VIVO: solo para salir en vivo. */
.btn-live { border-color: var(--live-hover); background: var(--live); color: var(--on-live); }
.btn-live:hover { background: var(--live-hover); color: var(--on-live); }
.btn-live:active { background: #A01E16; }

.btn-success { border-color: #145A2C; background: var(--success); color: #FFFFFF; }
.btn-success:hover { background: #155F2E; color: #FFFFFF; }
.btn-success:active { background: #114E26; }

.btn-danger { border: 1.5px solid var(--danger); background: var(--surface); color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); color: var(--danger); }
/* Relleno rojo oscuro solo para el botón que confirma algo destructivo en un diálogo. */
.btn-danger-fill { border-color: #6E1414; background: var(--danger); color: #FFFFFF; }
.btn-danger-fill:hover { background: #7A1616; color: #FFFFFF; }

/* Secundario sobre fondos oscuros o de marca (sala del vivo, carrusel). */
.btn-on-dark { border: 1.5px solid #FFFFFF; background: transparent; color: #FFFFFF; }
.btn-on-dark:hover { background: #FFFFFF; color: var(--text); }

.btn-sm { min-height: 34px; padding: 6px 12px; font-size: 13.5px; border-radius: var(--radius-sm); gap: 5px; }
.btn-lg { min-height: 50px; padding: 13px 26px; font-size: 16.5px; }
.btn-block { display: flex; width: 100%; }

.btn[disabled],
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: .5;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}
.btn[aria-busy="true"] { cursor: progress; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px; height: 38px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .15s;
}
.icon-btn:hover { background: var(--surface-alt); }
.icon-btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------------------------------------------------------------------
   6. Tarjetas
   --------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 16px; }
.card-pad > :last-child { margin-bottom: 0; }
.card-hover { transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.card-hover:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-hover:focus-visible { box-shadow: 0 0 0 2px var(--focus-gap), var(--shadow-lg); }

/* ---------------------------------------------------------------------
   7. Badges
   EN VIVO es la única píldora sólida saturada. Publicidad y "Destacado" van
   en contorno gris; los sellos de verificación, lejos de ellas.
   --------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .01em;
  white-space: nowrap;
  vertical-align: middle;
}
.badge .vl-ic { width: 1.2em; height: 1.2em; vertical-align: 0; }
.badge-live {
  gap: 6px;
  padding: 3px 9px 3px 8px;
  border: 0;
  background: var(--live);
  color: var(--on-live);
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  /* aro blanco de 1 px + filete exterior oscuro de 1 px: se lee sobre cualquier video o color */
  box-shadow: 0 0 0 1px #FFFFFF, 0 0 0 2px var(--live-ring-outer);
}
.live-dot {
  display: inline-block;
  flex-shrink: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #FFFFFF;
  font-style: normal;
  animation: vl-pulse 1.6s ease-in-out infinite;
}
.badge-demo {
  border-color: rgba(255, 255, 255, .55);
  background: var(--dark-surface);
  color: var(--dark-text);
  text-transform: uppercase;
  letter-spacing: .07em;
}
/* Planes: Local (pro) y Local Premium (premium). */
.badge-pro { border-color: var(--brand-line); background: var(--brand-soft); color: var(--brand-strong); }
.badge-premium { border-color: var(--text); background: var(--text); color: #FFFFFF; }
.badge-soft { border-color: transparent; background: var(--surface-alt); color: var(--text-muted); font-weight: 700; }
.badge-green { border-color: transparent; background: var(--success-soft); color: var(--success); }

@keyframes vl-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.72); }
}
@keyframes vl-live-glow {
  0%, 100% { box-shadow: 0 0 0 1px #FFFFFF, 0 0 0 2px var(--live-ring-outer); }
  50% { box-shadow: 0 0 0 1px #FFFFFF, 0 0 0 2px var(--live-ring-outer), 0 0 0 5px rgba(212, 42, 28, .18); }
}
@keyframes vl-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* ---------------------------------------------------------------------
   8. Formularios
   --------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label,
.field > .label { font-size: 14px; font-weight: 700; color: var(--text); }
.field small { font-size: 12.5px; line-height: 1.4; color: var(--text-muted); }
.field-error { margin: 0; color: var(--danger); font-size: 13px; font-weight: 600; }

.input,
.select,
.textarea {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
  transition: border-color .15s, box-shadow .15s;
}
.input,
.select { min-height: 44px; }
.input:hover,
.select:hover,
.textarea:hover { border-color: var(--text-muted); }
.input:focus,
.select:focus,
.textarea:focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-color: var(--brand-strong);
  box-shadow: none;
}
.input::placeholder,
.textarea::placeholder { color: var(--text-muted); opacity: .85; }
.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] { border-color: var(--danger); box-shadow: inset 3px 0 0 var(--danger); }
.input[aria-invalid="true"]:focus,
.select[aria-invalid="true"]:focus,
.textarea[aria-invalid="true"]:focus { outline-color: var(--danger); }
.input:disabled,
.select:disabled,
.textarea:disabled { background: var(--surface-alt); color: var(--text-muted); border-color: var(--border); cursor: not-allowed; }
.input[readonly] { background: var(--surface-hover); }

.textarea { min-height: 96px; resize: vertical; }

.select {
  padding-right: 36px;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231F1520' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
  cursor: pointer;
}
.select::-ms-expand { display: none; }

input.input[type="color"] {
  width: 72px;
  height: 44px;
  padding: 4px;
  cursor: pointer;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}
.form-grid > .full,
.form-grid > .span-2,
.form-grid > .field-full { grid-column: 1 / -1; }

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}
.checkbox input,
input.checkbox {
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin: 0;
  accent-color: var(--brand-strong);
  cursor: pointer;
}

/* ---------------------------------------------------------------------
   9. Texto
   Precios: SIEMPRE en Archivo 700 con cifras tabulares, en tinta (el cero de
   Atkinson lleva barra y parece tachado).
   --------------------------------------------------------------------- */
.muted { color: var(--text-muted); }
.small { font-size: 13px; }
.price {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums lining-nums;
}
.price-sm {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums lining-nums;
}
/* Precio dentro de una oración ("Desde $ 18.900 por mes"). */
.price-inline,
[data-min-price],
[data-plan-from] {
  font-family: var(--font-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
}
/* Cifras sueltas en chips y contadores (calificación, espectadores, horarios, distancias): en Archivo, porque el
   cero de Atkinson lleva barra y en números cortos se lee como tachado. */
.vl-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: 0;
}
.green { color: var(--success); }
.ellipsis { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.num, .tabular { font-variant-numeric: tabular-nums; }

/* Calificación: estrella en tinta junto al número. */
.rating { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; color: var(--text); font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; }
.rating-star { color: var(--text); }
.rating-count { color: var(--text-muted); font-weight: 600; }
.rating-new {
  padding: 1px 8px;
  font-family: var(--font-ui);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: .95em;
  font-weight: 700;
}

/* ---------------------------------------------------------------------
   10. Tarjeta de local (VL.localCard)
   --------------------------------------------------------------------- */
.local-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
}
.local-card:hover { color: var(--text); text-decoration: none; }

.local-card-cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--brand);
  color: #FFFFFF;
}
/* Toldo de vidriera */
.local-card-cover::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 9px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .6) 0 14px, rgba(255, 255, 255, .14) 14px 28px);
}
/* Brillo de vidrio */
.local-card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 55%, rgba(255, 255, 255, .14) 55% 63%, transparent 63%);
  pointer-events: none;
}
.local-card-emoji {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  font-size: 54px;
  line-height: 1;
  filter: drop-shadow(0 6px 10px rgba(23, 17, 22, .28));
  transition: transform .3s var(--ease);
}
.local-card:hover .local-card-emoji { transform: scale(1.08) rotate(-3deg); }
.local-card-badges {
  position: absolute;
  top: 18px; left: 10px; right: 10px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  pointer-events: none;
}
.local-card-flags {
  position: absolute;
  right: 10px; bottom: 10px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  pointer-events: none;
}
.local-card-viewers {
  position: absolute;
  left: 10px; bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--scrim);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.local-card.is-live .local-card-cover { box-shadow: inset 0 -3px 0 var(--live); }

.local-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 12px 14px 14px;
}
.local-card-name {
  margin: 0;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.local-card-tagline {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.local-card-live-title {
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.local-card-live-title.is-next { color: var(--text-muted); font-weight: 600; }
.local-card-meta {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-top: 2px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 12.5px;
}
.local-card-meta > * { flex-shrink: 0; white-space: nowrap; }
.local-card-meta > :last-child { flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.local-card-meta .rating { font-size: 12.5px; }
.local-card-sep { color: var(--border-strong); }

/* ---------------------------------------------------------------------
   11. Avatar
   --------------------------------------------------------------------- */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 1px var(--border), 0 1px 3px rgba(23, 17, 22, .18);
  line-height: 1;
  vertical-align: middle;
  user-select: none;
}
.avatar-sm { width: 32px; height: 32px; font-size: 16px; }
.avatar-md { width: 48px; height: 48px; font-size: 24px; }
.avatar-lg { width: 72px; height: 72px; font-size: 36px; border-width: 3px; }
.avatar-xl { width: 96px; height: 96px; font-size: 50px; border-width: 4px; }

/* ---------------------------------------------------------------------
   12. Producto
   --------------------------------------------------------------------- */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s var(--ease);
}
.product-card:hover { box-shadow: var(--shadow-lg); }
.product-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  background: linear-gradient(145deg, #FBF8FA 0%, var(--surface-alt) 100%);
  border-bottom: 1px solid var(--border);
  font-size: 64px;
  line-height: 1;
}
.product-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 12px;
}
.product-name {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.product-price {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums lining-nums;
}
.product-stock { margin: 0; color: var(--success); font-size: 12.5px; font-weight: 700; }
.product-stock.out,
.product-stock.no-stock,
.product-stock.sin-stock,
.product-stock.empty,
.product-stock.muted,
.product-stock.is-out,
.product-stock[data-stock="0"] { color: var(--text-muted); font-weight: 400; }
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
}
.product-actions .btn { flex: 1 1 auto; }
/* Cinta del producto destacado por el propio vendedor (no es una ubicación paga). */
.product-featured {
  position: absolute;
  top: 10px; left: 0;
  z-index: 1;
  padding: 3px 10px 3px 8px;
  border-radius: 0 6px 6px 0;
  background: var(--brand-strong);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 1px 3px rgba(23, 17, 22, .2);
}

/* ---------------------------------------------------------------------
   13. Video (sala del vivo: ciruela oscuro)
   --------------------------------------------------------------------- */
.video-box {
  --focus-ring: #FFFFFF;
  --focus-gap: transparent;
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--dark-bg);
  color: var(--dark-text);
}
.video-box video,
.video-box > canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  background: var(--dark-bg);
}
.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  background: radial-gradient(ellipse at center, rgba(35, 27, 34, .62) 0%, rgba(23, 17, 22, .92) 100%);
  color: var(--dark-text);
  text-align: center;
}
.video-overlay h2,
.video-overlay h3 { margin: 0; font-size: 20px; color: #FFFFFF; }
.video-overlay p { margin: 0; max-width: 46ch; color: var(--dark-text-muted); font-size: 14px; }
.video-overlay .btn { margin-top: 6px; }
.video-overlay a:not(.btn) { color: var(--brand-on-dark); }
.video-badges {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 24px);
}
.video-title {
  max-width: 100%;
  padding: 3px 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--scrim);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.video-viewers {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--scrim);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.video-box > .video-viewers { position: absolute; top: 12px; right: 12px; z-index: 3; }
/* Franja de acción sobre el video ("Lo quiero" lima sobre --cta-scrim). */
.video-cta-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--cta-scrim);
  color: #FFFFFF;
}
/* Píldora de calidad sobre el video (HD / Modo ahorro / Solo audio). */
.quality-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--scrim);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.quality-chip.is-low { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }

/* ---------------------------------------------------------------------
   14. Chat
   --------------------------------------------------------------------- */
.chat {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: var(--chat-h, 520px);
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}
.chat-pinned {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-shrink: 0;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
  box-shadow: inset 3px 0 0 var(--brand);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.chat-pinned:empty { display: none; }
.chat-messages {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: auto;
}
.chat-msg {
  position: relative;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.chat-msg:hover { background: var(--surface-hover); }
.chat-user { margin-right: 6px; color: var(--text); font-weight: 700; }
.chat-msg time,
.chat-time { margin-left: 6px; color: var(--text-muted); font-size: 11px; white-space: nowrap; }
.chat-msg.role-vendedor { background: var(--brand-soft); }
.chat-msg.role-vendedor:hover { background: var(--brand-soft-hover); }
.chat-msg.role-vendedor .chat-user { color: var(--brand-strong); }
.chat-msg.role-vendedor .chat-user::after {
  content: "Vendedor";
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand-strong);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.5;
  vertical-align: 1px;
}
/* Si la página ya pone su propio badge, no lo duplicamos. */
.chat-msg.role-vendedor:has(.badge) .chat-user::after { content: none; display: none; }
.chat-msg.role-sistema {
  align-self: center;
  max-width: 92%;
  color: var(--text-muted);
  font-size: 13px;
  font-style: italic;
  text-align: center;
}
.chat-msg.role-sistema:hover { background: transparent; }
.chat-msg.role-sistema .chat-user { display: none; }
/* Respuestas automáticas del asistente del local (v3). */
.chat-msg.role-asistente { background: var(--info-soft); }
.chat-msg.role-asistente:hover { background: var(--info-soft); }
.chat-msg.role-asistente .chat-user { color: var(--info); }
.chat-auto-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 6px;
  padding: 0 7px;
  border: 1px solid var(--info-line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--info);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
  vertical-align: 1px;
}
.chat-msg.kind-interest {
  align-self: stretch;
  max-width: none;
  border: 1px solid var(--success-line);
  background: var(--success-soft);
  color: var(--success);
  font-style: normal;
  font-weight: 700;
}
.chat-msg.kind-interest:hover { background: var(--success-soft); }
.chat-msg-actions {
  position: absolute;
  top: 3px; right: 4px;
  display: flex;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s;
}
.chat-msg:hover .chat-msg-actions,
.chat-msg:focus-within .chat-msg-actions { opacity: 1; pointer-events: auto; }
.chat-msg-actions button {
  padding: 2px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  line-height: 1.4;
  box-shadow: var(--shadow-sm);
}
.chat-msg-actions button:hover { border-color: var(--brand-strong); color: var(--brand-strong); }
@media (hover: none) {
  .chat-msg-actions { position: static; margin-top: 4px; opacity: 1; pointer-events: auto; }
}
.chat-form {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  padding: 10px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.chat-form .input { flex: 1; min-width: 0; }
.chat-form .btn { flex-shrink: 0; }
.chat-empty {
  margin: auto;
  padding: 24px 12px;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}

/* ---------------------------------------------------------------------
   15. Redes sociales
   --------------------------------------------------------------------- */
.social-links { display: flex; flex-wrap: wrap; gap: 8px; }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .15s, color .15s, background-color .15s;
}
.social-link:hover {
  border-color: var(--brand-strong);
  background: var(--brand-soft);
  color: var(--brand-strong);
  text-decoration: none;
}

/* ---------------------------------------------------------------------
   16. Tabs
   --------------------------------------------------------------------- */
.tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex-shrink: 0;
  margin-bottom: -1px;
  padding: 12px 16px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.tab:hover { color: var(--text); text-decoration: none; }
.tab.active,
.tab[aria-selected="true"] { border-bottom-color: var(--brand); color: var(--brand-strong); font-weight: 700; }

/* ---------------------------------------------------------------------
   17. Estadísticas
   --------------------------------------------------------------------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 14px 16px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.stat-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.stat-label { color: var(--text-muted); font-size: 13px; }
.kpi-live {
  color: var(--live);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------------
   18. Modales y toasts
   --------------------------------------------------------------------- */
body.vl-modal-open { overflow: hidden; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--scrim);
  overscroll-behavior: contain;
  animation: vl-fade-in .15s ease-out;
}
.modal {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  max-height: 90dvh;
  overflow: auto;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(23, 17, 22, .32);
  outline: none;
  animation: vl-modal-in .2s var(--ease);
}
.modal-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 12px 8px 20px;
  background: var(--surface);
}
.modal-title { flex: 1; min-width: 0; margin: 0; font-size: 19px; font-weight: 800; line-height: 1.25; }
.modal-close { color: var(--text-muted); }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 6px 20px 18px; }
.modal-body > :last-child { margin-bottom: 0; }
.modal-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: auto;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.toast-container {
  position: fixed;
  top: 16px; right: 16px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(370px, calc(100vw - 32px));
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px 12px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
  box-shadow: inset 4px 0 0 var(--brand), 0 0 0 1px rgba(31, 21, 32, .06), 0 12px 28px rgba(23, 17, 22, .2);
  pointer-events: auto;
  cursor: pointer;
  overflow-wrap: anywhere;
  animation: vl-toast-in .25s var(--ease);
  transition: opacity .2s, transform .2s;
}
.toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--brand);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 800;
  font-style: normal;
}
.toast-text { flex: 1; min-width: 0; padding-top: 1px; }
.toast-ok { box-shadow: inset 4px 0 0 var(--success), 0 0 0 1px rgba(31, 21, 32, .06), 0 12px 28px rgba(23, 17, 22, .2); }
.toast-ok .toast-icon { background: var(--success); }
.toast-error { box-shadow: inset 4px 0 0 var(--danger), 0 0 0 1px rgba(31, 21, 32, .06), 0 12px 28px rgba(23, 17, 22, .2); }
.toast-error .toast-icon { background: var(--danger); }
.toast.is-leaving { opacity: 0; transform: translateX(16px); }

@keyframes vl-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes vl-modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes vl-toast-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------------
   19. Otros componentes
   --------------------------------------------------------------------- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 40px 16px;
  color: var(--text-muted);
  text-align: center;
}
.empty-state > * { margin-top: 0; margin-bottom: 0; max-width: 520px; }
.empty-state-emoji,
.empty-state-icon,
.empty-state .emoji,
.empty-state > span:first-child,
.empty-state > i:first-child {
  display: block;
  margin-bottom: 4px;
  font-size: 48px;
  font-style: normal;
  line-height: 1;
}
.empty-state h2,
.empty-state h3,
.empty-state strong,
.empty-state b { color: var(--text); }
.empty-state .row { justify-content: center; margin-top: 8px; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin: 12px 0;
  color: var(--text-muted);
  font-size: 13px;
}
.breadcrumb ol,
.breadcrumb ul { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0; padding: 0; list-style: none; }
.breadcrumb a { color: var(--brand-strong); text-decoration: underline; text-decoration-thickness: 1px; }
.breadcrumb > * + *::before,
.breadcrumb li + li::before {
  content: "›";
  margin-right: 6px;
  color: var(--border-strong);
}
/* Si la página ya escribe sus propios separadores (elemento .sep o aria-hidden), no duplicamos. */
.breadcrumb > .sep::before,
.breadcrumb > .sep + *::before,
.breadcrumb > [aria-hidden="true"]::before,
.breadcrumb > [aria-hidden="true"] + *::before { content: none; }
.breadcrumb [aria-current="page"] { color: var(--text-muted); overflow-wrap: anywhere; }

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 20px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  text-align: left;
  transition: border-color .15s, box-shadow .2s var(--ease);
}
button.plan-card,
label.plan-card { width: 100%; font: inherit; cursor: pointer; }
.plan-card:hover { box-shadow: var(--shadow-lg); }
.plan-card.selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft), var(--shadow-lg);
}
.plan-card-price {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums lining-nums;
}
.plan-card-price small { color: var(--text-muted); font-family: var(--font-ui); font-size: 14px; font-weight: 400; letter-spacing: 0; }
.plan-card-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}
.plan-card-features li { position: relative; padding-left: 24px; }
.plan-card-features li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  color: var(--success);
  font-weight: 800;
}

/* Grupo tipo toggle. Elegido = --brand-soft + texto --brand-strong + borde 1,5 px --brand. */
.segmented {
  display: inline-flex;
  max-width: 100%;
  gap: 2px;
  padding: 3px;
  overflow-x: auto;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  scrollbar-width: none;
}
.segmented::-webkit-scrollbar { display: none; }
.segmented button {
  flex-shrink: 0;
  min-height: 36px;
  padding: 6px 16px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.segmented button:hover { background: var(--surface-alt); color: var(--text); }
.segmented button.active,
.segmented button[aria-pressed="true"],
.segmented button[aria-checked="true"],
.segmented button[aria-selected="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong); }

/* Chips de filtro/selección (v3). Elegido = --brand-soft + --brand-strong + borde 1,5 px --brand + ✓. */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--text); background: var(--surface-hover); color: var(--text); text-decoration: none; }
.chip.is-selected,
.chip.active,
.chip[aria-pressed="true"],
.chip[aria-checked="true"],
.chip[aria-selected="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong); font-weight: 700; }
.chip.is-selected::before,
.chip.active::before,
.chip[aria-pressed="true"]::before,
.chip[aria-checked="true"]::before,
.chip[aria-selected="true"]::before { content: "✓"; font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.hide { display: none !important; }

.skeleton {
  border-radius: 6px;
  background: linear-gradient(90deg, var(--surface-alt) 25%, #F8F4F7 37%, var(--surface-alt) 63%);
  background-size: 400% 100%;
  animation: vl-shimmer 1.4s ease infinite;
}
@keyframes vl-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* ---------------------------------------------------------------------
   20. Responsive (breakpoint 768px)
   --------------------------------------------------------------------- */
/* Header entre tablet y desktop chico: botón corto y menú de cuenta solo con avatar. */
@media (max-width: 1099px) {
  .vl-header-top { gap: 10px 18px; }
  .vl-rent-full { display: none; }
  .vl-rent-short { display: inline; }
  .vl-account-name { display: none; }
  .vl-account-btn { gap: 6px; padding-right: 8px; }
}

@media (max-width: 767px) {
  #vl-header:empty { min-height: 150px; }

  .vl-header-top {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "logo actions"
      "search search";
    gap: 10px;
    padding-top: 10px;
  }
  .vl-header-actions { gap: 6px; }
  .vl-auth-signup { display: none; }
  .vl-logo { font-size: 20px; }
  .vl-logo-icon { width: 30px; height: 30px; border-radius: 9px; }
  .vl-search { max-width: none; }
  .vl-nav-tagline { display: none; }
  /* La fila 2 entera (zona + links) se desliza; el degradé del costado avisa que hay más. */
  .vl-nav {
    gap: 14px;
    overflow-x: auto;
    font-size: 13.5px;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .vl-nav::-webkit-scrollbar { display: none; }
  .vl-nav-links { flex: 0 0 auto; gap: 16px; overflow: visible; }
  .vl-nav.is-scrollable:not(.at-end) {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
  }
  .vl-nav.is-scrollable.at-end:not(.at-start) {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px);
    mask-image: linear-gradient(90deg, transparent, #000 36px);
  }
  .vl-nav.is-scrollable:not(.at-start):not(.at-end) {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent);
  }
  .vl-zone-chip { max-width: 230px; }
  .vl-bell-panel {
    position: fixed;
    top: 60px; left: 8px; right: 8px;
    width: auto;
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 80px);
  }
  .vl-bell-panel::before { display: none; }
  .vl-account-menu { width: min(300px, calc(100vw - 24px)); }
  .vl-notice-inner { gap: 8px; font-size: 13px; }
  .vl-user-chip { max-width: 140px; padding: 4px 10px; }

  .vl-footer-inner { flex-direction: column; align-items: flex-start; }

  .section-title { font-size: 19px; }

  .grid-cards { gap: 12px; }
  .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-thumb { font-size: 52px; }
  .product-price { font-size: 20px; }
  .product-actions .btn { flex-basis: 100%; }

  .input,
  .select,
  .textarea { font-size: 16px; } /* evita el zoom automático en iOS */

  .form-grid { grid-template-columns: minmax(0, 1fr); }

  .chat { height: var(--chat-h, 440px); }

  .modal-backdrop { align-items: flex-end; padding: 8px; }
  .modal { max-height: 92vh; max-height: 92dvh; }
  .modal-actions .btn { flex: 1 1 auto; }

  .toast-container { top: 12px; right: 12px; width: calc(100vw - 24px); }

  .plan-card-price { font-size: 28px; }
}

@media (max-width: 400px) {
  .vl-rent-full { display: none; }
  .vl-rent-short { display: inline; }
  .vl-header-top { gap: 10px 6px; }
  .vl-logo { font-size: 18px; gap: 7px; }
  .vl-header-actions { gap: 2px; }
  .vl-header .vl-rent-btn { padding: 6px 10px; }
  .vl-auth-link { padding: 6px 8px; }
  .vl-bell { width: 38px; height: 38px; }
  .vl-account-btn { gap: 0; padding: 2px; border-color: transparent; background: transparent; }
  .vl-account-caret,
  .vl-account-dot { display: none; }
  /* Chip solo con ícono: deja ~100px más a los links (el nombre sigue en su aria-label y en el pie del chat). */
  .vl-user-chip { padding: 4px 8px; }
  .vl-user-chip .vl-user-name { display: none; }
}

/* ---------------------------------------------------------------------
   21. Movimiento reducido
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .card-hover:hover,
  .btn:active { transform: none; }
  .local-card:hover .local-card-emoji { transform: none; }
}

/* =====================================================================
   v2 (CONTRACT-v2 §8): verificación, zona, publicidad, confianza,
   cuenta y administración — con la paleta Cartulina.
   ===================================================================== */

/* ---------------------------------------------------------------------
   22. Insignias de verificación, publicidad y ubicaciones
   Nivel 2 = azul suave con escudo · nivel 3 = sello mora en contorno (no relleno)
   · Publicidad / Destacado = contorno gris + --text-muted.
   --------------------------------------------------------------------- */
.badge-level-0 { border-color: transparent; background: var(--surface-alt); color: var(--text-muted); }
.badge-level-1 { border-color: transparent; background: var(--info-soft); color: var(--info); }
.badge-level-2,
.badge-verified { border-color: transparent; background: var(--verified-soft); color: var(--verified); }
.badge-level-3,
.badge-commerce { border: 1.5px solid var(--commerce); background: var(--surface); color: var(--commerce); padding: 2px 8px; }
.badge-ad,
.badge-featured {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: .02em;
}
/* Fundador: una de las primeras 100 tiendas (v3). */
.badge-founder { border: 1px solid var(--brand-line); background: var(--brand-soft); color: var(--brand-strong); }
/* "Empieza 19 h": píldora neutra con contorno. */
.badge-soon { border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-family: var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.badge-trial { border: 1px solid var(--accent-edge); background: var(--accent-soft); color: var(--text); }
.vl-owner-badges { display: inline-flex; flex-wrap: wrap; gap: 6px; vertical-align: middle; }
.vl-verified-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  margin-left: 2px;
  border-radius: 50%;
  background: var(--verified);
  color: #FFFFFF;
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  vertical-align: 1px;
}
.vl-verified-tick.lvl-3 { background: var(--commerce); }

/* ---------------------------------------------------------------------
   23. Comprá cerca: chips de distancia y de entrega
   --------------------------------------------------------------------- */
.distance-chip,
.reach-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 2px 8px;
  border-radius: 10px; /* pill en una línea; si la tarjeta es angosta, el texto baja sin cortarse */
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.distance-chip { background: var(--surface-alt); color: var(--text); font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; }
.reach-chip { background: var(--info-soft); color: var(--info); }
.reach-chip.reach-cerca { background: var(--success-soft); color: var(--success); }
.reach-chip.reach-nacional { background: var(--surface-alt); color: var(--text-muted); }
.local-card-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.local-card-chips .badge { font-size: 11px; }

/* Autocompletar de localidades (VL.mountLocalityInput) */
.vl-combo { position: relative; min-width: 0; }
.vl-combo-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  z-index: 40;
  max-height: 288px;
  margin: 0;
  padding: 4px;
  overflow-y: auto;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-pop);
  overscroll-behavior: contain;
}
.vl-combo-inline .vl-combo-list { position: static; max-height: 236px; margin-top: 6px; box-shadow: none; }
.vl-combo-option { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.vl-combo-option:hover,
.vl-combo-option.is-active { background: var(--brand-soft); }
.vl-combo-option.is-active { box-shadow: inset 3px 0 0 var(--brand-strong); }
.vl-combo-name { color: var(--text); font-size: 14px; font-weight: 700; }
.vl-combo-meta { color: var(--text-muted); font-size: 12.5px; }
.vl-combo-group { padding: 6px 10px 2px; color: var(--text-muted); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.vl-combo-msg { padding: 10px; color: var(--text-muted); font-size: 13.5px; }
.vl-combo-msg.is-error { color: var(--danger); }
.vl-combo-msg.is-loading::before {
  content: "";
  display: inline-block;
  width: 12px; height: 12px;
  margin-right: 8px;
  border: 2px solid var(--brand-line);
  border-top-color: var(--brand-strong);
  border-radius: 50%;
  vertical-align: -1px;
  animation: vl-spin .8s linear infinite;
}
@keyframes vl-spin { to { transform: rotate(360deg); } }

/* Modal "¿Dónde estás?" (VL.pickZone) */
.vl-zone-geo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.vl-zone-radius { align-self: flex-start; }
.vl-zone-clear { margin-right: auto; color: var(--danger); }
.vl-zone-clear:hover { background: var(--danger-soft); color: var(--danger); }

/* ---------------------------------------------------------------------
   24. Resultado de producto (VL.productResultCard)
   --------------------------------------------------------------------- */
.result-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
}
.result-card:hover { color: var(--text); text-decoration: none; }
.result-card-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  background: linear-gradient(145deg, #FBF8FA 0%, var(--surface-alt) 100%);
  background: linear-gradient(145deg, color-mix(in srgb, var(--tint, #9A1584) 6%, #fff) 0%, color-mix(in srgb, var(--tint, #9A1584) 18%, #fff) 100%);
  border-bottom: 1px solid var(--border);
}
.result-card-emoji {
  font-size: 60px;
  line-height: 1;
  filter: drop-shadow(0 6px 10px rgba(23, 17, 22, .12));
  transition: transform .3s var(--ease);
}
.result-card:hover .result-card-emoji { transform: scale(1.08); }
.result-card-badges { position: absolute; top: 10px; left: 10px; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.result-card-thumb .local-card-viewers { left: 10px; bottom: 10px; }
.result-card.is-live .result-card-thumb { box-shadow: inset 0 -3px 0 var(--live); }
.result-card.is-out .result-card-emoji { opacity: .45; filter: grayscale(.6); }
.result-card-body { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 12px; }
.result-card-name {
  display: -webkit-box;
  min-height: 2.7em;
  margin: 0;
  overflow: hidden;
  font-family: var(--font-ui);
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.result-card-price {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums lining-nums;
}
.result-card-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.result-card-local {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.result-card-local-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: 12.5px; }
.result-card-local-name { overflow: hidden; color: var(--text); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.result-card-local-meta { display: flex; align-items: center; gap: 5px; min-width: 0; overflow: hidden; color: var(--text-muted); white-space: nowrap; }
.result-card-local-meta .rating { font-size: 12px; }

/* ---------------------------------------------------------------------
   25. Publicidad (VL.renderAds): banner, tarjeta y franja
   --------------------------------------------------------------------- */
.ad-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.ad-advertiser { display: inline-flex; align-items: center; gap: 4px; min-width: 0; color: var(--text); font-size: 13px; font-weight: 700; }
.ad-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--verified);
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}
.ad-logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  color: #FFFFFF;
  font-size: 26px;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(23, 17, 22, .08), 0 1px 2px rgba(23, 17, 22, .12);
}
.ad-offer { margin: 0; color: var(--text); font-family: var(--font-display); font-size: 17px; font-weight: 700; line-height: 1.25; letter-spacing: -.005em; }
.ad-title { margin: 0; color: var(--text); font-size: 14px; font-weight: 700; }
.ad-desc { margin: 0; color: var(--text-muted); font-size: 13.5px; line-height: 1.45; }
.ad-terms { margin: 0; color: var(--text-muted); font-size: 12px; line-height: 1.4; }
.ad-category { color: var(--text-muted); font-size: 12px; }
.ad-seller-only { display: inline-flex; align-items: center; gap: 4px; color: var(--brand-strong); font-size: 12px; font-weight: 700; }
.ad-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.ad-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.ad-banner-text { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ad-banner .ad-desc { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ad-banner .ad-actions { flex-shrink: 0; }
.ad-banner + .ad-banner { margin-top: 12px; }

.ad-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s var(--ease);
}
.ad-card:hover { box-shadow: var(--shadow-lg); }
.ad-card-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 2px; }
.ad-card-head .ad-logo { width: 44px; height: 44px; font-size: 24px; }
.ad-card-head .badge-ad { flex-shrink: 0; }
.ad-card-brand { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ad-card .ad-offer { font-size: 18px; }
.ad-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.ad-card-foot .ad-actions { margin-left: auto; }

.ad-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.ad-strip-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 12px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s var(--ease);
}
.ad-strip-item.has-link:hover { box-shadow: var(--shadow-lg); }
.ad-strip-item .ad-logo { width: 42px; height: 42px; border-radius: 10px; font-size: 22px; }
.ad-strip-text { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ad-strip-item .ad-offer { overflow: hidden; font-size: 14.5px; text-overflow: ellipsis; white-space: nowrap; }
.ad-strip-item .ad-advertiser { color: var(--text-muted); font-size: 12px; font-weight: 600; }
.ad-strip-item .badge-ad { padding: 1px 6px; font-size: 10px; }
.ad-strip-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.ad-strip-cta::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.ad-strip-cta:hover { text-decoration: none; }
.ad-strip-item.has-link:hover .ad-strip-cta-text { text-decoration: underline; }
.ad-strip-cta:focus-visible { outline: none; box-shadow: none; }
.ad-strip-cta:focus-visible::after { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* Cupón (VL.adRevealCoupon) */
.vl-coupon-brand { display: flex; align-items: center; gap: 12px; }
.vl-coupon-brand > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vl-coupon-brand .ad-offer { font-size: 15px; }
.vl-coupon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 14px 16px;
  border: 2px dashed var(--brand);
  border-radius: var(--radius);
  background: var(--brand-soft);
}
.vl-coupon-label { flex-basis: 100%; color: var(--text-muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.vl-coupon-code {
  flex: 1;
  min-width: 0;
  padding: 0;
  background: none;
  color: var(--brand-strong);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .08em;
  overflow-wrap: anywhere;
}

/* ---------------------------------------------------------------------
   26. Confianza: consejos, accesos con cuenta y denuncias
   --------------------------------------------------------------------- */
.safety-tips {
  padding: 14px 16px;
  border: 1px solid var(--success-line);
  border-radius: var(--radius);
  background: var(--success-soft);
  color: var(--text);
}
.safety-tips-title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--success); font-size: 14.5px; font-weight: 700; }
.safety-tips ul { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.safety-tips li { position: relative; padding-left: 26px; font-size: 14px; line-height: 1.45; }
.safety-tips li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--success);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
}

/* Modal de requisitos (VL.requireAuth / VL.handleApiError) */
.vl-gate { display: flex; flex-direction: column; gap: 12px; }
.vl-gate > p { margin: 0; }
.vl-gate-icon {
  align-self: flex-start;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--brand-soft);
  font-size: 26px;
  line-height: 1;
}
.vl-gate-list { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.vl-gate-list li { position: relative; padding-left: 24px; }
.vl-gate-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--success); font-weight: 800; }
.vl-gate-step-desc { display: block; color: var(--text-muted); font-size: 13px; }
.vl-gate-current { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

/* Denuncias (VL.reportDialog) */
.vl-report-reasons { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.vl-report-reasons legend { margin-bottom: 8px; padding: 0; color: var(--text); font-size: 14px; font-weight: 700; }
.vl-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.vl-radio:hover { border-color: var(--text); background: var(--surface-hover); }
.vl-radio input { flex-shrink: 0; width: 18px; height: 18px; margin: 0; accent-color: var(--brand-strong); cursor: pointer; }
.vl-radio:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 .5px var(--brand); }
.vl-radio:has(input:focus-visible) { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.vl-radio input:focus-visible { outline: none; box-shadow: none; }
.vl-report-note { margin: 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-alt); color: var(--text-muted); }

/* Error de formulario (caja) */
.form-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--danger-line);
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 14px;
  line-height: 1.4;
}
.form-error::before {
  content: "!";
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--danger);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 800;
}
.form-error:empty { display: none; }

/* ---------------------------------------------------------------------
   27. Chat v2: avisos, flags, mensajes ocultos, acceso y modo lento
   "Ojo:" (antiestafa) = ámbar de advertencia.
   --------------------------------------------------------------------- */
.chat-msg.kind-warning {
  align-self: stretch;
  max-width: none;
  margin: 4px 0;
  padding: 8px 10px 8px 14px;
  border: 1px solid var(--warning-line);
  border-radius: var(--radius-sm);
  background: var(--warning-soft);
  box-shadow: inset 4px 0 0 var(--warning);
  color: var(--warning);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  text-align: left;
}
.chat-msg.kind-warning:hover { background: var(--warning-soft); }
.chat-msg.kind-warning .chat-user { display: none; }
.chat-flag {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 4px;
  padding: 5px 8px;
  border: 1px solid var(--info-line);
  border-radius: 6px;
  background: var(--info-soft);
  color: var(--info);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.35;
}
.chat-flag-payment-ok { border-color: var(--success-line); background: var(--success-soft); color: var(--success); }
.chat-flag-payment-warn { border-color: var(--warning-line); background: var(--warning-soft); color: var(--warning); box-shadow: inset 3px 0 0 var(--warning); }
.chat-flag-link { border-color: var(--info-line); background: var(--info-soft); color: var(--info); }
.chat-flag-code,
.chat-flag-code-request { border-color: var(--danger-line); background: var(--danger-soft); color: var(--danger); }
.chat-msg.is-hidden { color: var(--text-muted); font-style: italic; }
.chat-msg.is-hidden .chat-user { color: var(--text-muted); }
.chat-msg.is-hidden:hover { background: transparent; }
.chat-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface-hover);
  color: var(--text);
  font-size: 14px;
  text-align: center;
}
.chat-gate p { margin: 0; }
.chat-gate .muted,
.chat-gate small { color: var(--text-muted); font-size: 12.5px; }
.chat-gate .row { justify-content: center; }
.slowmode-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--info-soft);
  color: var(--info);
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.slowmode-timer:empty { display: none; }

/* ---------------------------------------------------------------------
   28. Opiniones: estrellas (en tinta), reseñas y barras
   --------------------------------------------------------------------- */
/* .stars admite tres formas: vacío con style="--rating:4.5" (VL.starsHtml), texto "★★★★☆" o hijos .star(.full/.half/.empty). */
.stars {
  --stars-on: var(--text);
  --stars-off: var(--star-off);
  display: inline-flex;
  gap: 1px;
  color: var(--stars-on);
  font-size: 15px;
  line-height: 1;
  letter-spacing: 1px;
  white-space: nowrap;
  vertical-align: middle;
}
.stars:empty::before {
  content: "★★★★★";
  background: linear-gradient(90deg, var(--stars-on) calc(var(--rating, 0) / 5 * 100%), var(--stars-off) calc(var(--rating, 0) / 5 * 100%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stars .star { color: var(--stars-off); }
.stars .star.full,
.stars .star.on,
.stars .star.is-on { color: var(--stars-on); }
.stars .star.half {
  background: linear-gradient(90deg, var(--stars-on) 50%, var(--stars-off) 50%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stars-lg { font-size: 22px; }

.review-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.review-card + .review-card { margin-top: 10px; }
.review-card header,
.review-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.review-card header b,
.review-card-head b { font-size: 14px; }
.review-card time,
.review-card-date { color: var(--text-muted); font-size: 12.5px; }
.review-card p { margin: 0; color: var(--text); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }

.rating-bars { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 13px; }
.rating-bars > * { display: grid; grid-template-columns: 34px minmax(0, 1fr) 36px; align-items: center; gap: 8px; color: var(--text-muted); }
.rating-bars > * > :last-child { text-align: right; font-variant-numeric: tabular-nums; }
.rating-bars .bar,
.rating-bars .track,
.rating-bars .rating-bar-track {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface-alt);
}
.rating-bars .bar > *,
.rating-bars .track > *,
.rating-bars .rating-bar-track > *,
.rating-bars .fill,
.rating-bars .rating-bar-fill {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--text);
}
.rating-bars progress,
.rating-bars meter {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  background: var(--surface-alt);
  -webkit-appearance: none;
  appearance: none;
}
.rating-bars progress::-webkit-progress-bar { background: var(--surface-alt); border-radius: 4px; }
.rating-bars progress::-webkit-progress-value { background: var(--text); border-radius: 4px; }
.rating-bars progress::-moz-progress-bar { background: var(--text); border-radius: 4px; }

/* ---------------------------------------------------------------------
   29. Pasos de verificación (.level-steps)
   --------------------------------------------------------------------- */
.level-steps { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; counter-reset: vl-step; }
.level-steps > li {
  position: relative;
  min-height: 44px;
  padding: 3px 0 18px 46px;
  counter-increment: vl-step;
}
.level-steps > li::before {
  content: counter(vl-step);
  position: absolute;
  left: 0; top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border: 2px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
}
.level-steps > li::after {
  content: "";
  position: absolute;
  left: 14px; top: 30px; bottom: 0;
  width: 2px;
  background: var(--border);
}
.level-steps > li:last-child { padding-bottom: 0; }
.level-steps > li:last-child::after { display: none; }
.level-steps > li.step-done::before { content: "✓"; border-color: var(--success); background: var(--success); color: #FFFFFF; }
.level-steps > li.step-done::after { background: var(--success); }
.level-steps > li.step-current::before { border-color: var(--brand-strong); color: var(--brand-strong); box-shadow: 0 0 0 4px var(--brand-soft); }
.level-steps > li.step-current > b,
.level-steps > li.step-current > strong { color: var(--brand-strong); }
.level-steps > li.step-locked { color: var(--text-muted); }
.level-steps > li.step-locked::before { content: "🔒"; border-color: var(--border); background: var(--surface-alt); font-size: 12px; }
.level-steps-compact > li { min-height: 0; padding-bottom: 12px; }

/* ---------------------------------------------------------------------
   30. Bandeja de prueba (simulación de emails y SMS)
   --------------------------------------------------------------------- */
.dev-inbox {
  position: fixed;
  left: 16px; bottom: 16px;
  z-index: 1060;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 10px;
  max-width: calc(100vw - 32px);
  font-size: 14px;
}
.dev-inbox-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 8px 14px;
  border: 2px dashed var(--accent);
  border-radius: 999px;
  background: var(--dark-surface);
  color: var(--dark-text);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(23, 17, 22, .3);
  cursor: pointer;
}
.dev-inbox-toggle:hover { background: var(--dark-bg); }
.dev-inbox-count { color: var(--accent); }
.dev-inbox.has-new .dev-inbox-toggle { animation: vl-inbox-pulse 1.2s ease-out 2; }
@keyframes vl-inbox-pulse {
  0% { box-shadow: 0 0 0 0 rgba(168, 228, 60, .7), 0 6px 18px rgba(23, 17, 22, .3); }
  100% { box-shadow: 0 0 0 14px rgba(168, 228, 60, 0), 0 6px 18px rgba(23, 17, 22, .3); }
}
.dev-inbox-panel {
  display: flex;
  flex-direction: column;
  width: 380px;
  max-width: 100%;
  max-height: min(560px, calc(100vh - 100px));
  overflow: hidden;
  border: 2px dashed var(--accent-edge);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 18px 44px rgba(23, 17, 22, .3);
}
.dev-inbox-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 14px;
  background: repeating-linear-gradient(135deg, var(--dark-surface) 0 14px, #2C222B 14px 28px);
  color: #FFFFFF;
}
.dev-inbox-tag {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dev-inbox-title { flex: 1; min-width: 0; margin: 0; color: #FFFFFF; font-size: 15px; font-weight: 800; outline: none; }
.dev-inbox-close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #FFFFFF;
  font-size: 14px;
  cursor: pointer;
}
.dev-inbox-close:hover { background: rgba(255, 255, 255, .14); }
.dev-inbox-note {
  margin: 0;
  padding: 8px 14px;
  border-bottom: 1px dashed var(--border-strong);
  background: var(--accent-soft);
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.4;
}
.dev-inbox-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--bg); }
.dev-inbox-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 8px; list-style: none; }
.dev-inbox-msg { padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.dev-inbox-msg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 6px; color: var(--text-muted); font-size: 12px; }
.dev-inbox-msg-head time { margin-left: auto; }
.dev-inbox-channel { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.dev-inbox-channel.is-sms { background: var(--success-soft); color: var(--success); }
.dev-inbox-channel.is-email { background: var(--info-soft); color: var(--info); }
.dev-inbox-subject { margin: 0 0 2px; font-size: 13.5px; font-weight: 700; }
.dev-inbox-text { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.dev-inbox-code {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px dashed var(--accent-edge);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
}
.dev-inbox-code code {
  flex: 1;
  min-width: 0;
  padding: 0;
  background: none;
  color: var(--text);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .3em;
}
.dev-inbox-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px 18px; color: var(--text-muted); font-size: 13.5px; text-align: center; }
.dev-inbox-empty > span { font-size: 28px; line-height: 1; }
.dev-inbox-empty p { margin: 0; }
.dev-inbox :focus-visible { outline: 2px solid var(--brand-strong); outline-offset: 2px; }
.dev-inbox-toggle:focus-visible,
.dev-inbox-head :focus-visible { outline-color: var(--accent); box-shadow: none; }

/* ---------------------------------------------------------------------
   31. Cuenta y administración: KPIs, tablas, estados, OTP, cámara
   --------------------------------------------------------------------- */
.kpi {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.kpi-value,
.kpi > b,
.kpi > strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.kpi-label,
.kpi > small { color: var(--text-muted); font-size: 13px; }
.kpi-sub { color: var(--text-muted); font-size: 12px; }
.kpi.is-alert .kpi-value,
.kpi.is-alert > b,
.kpi.is-alert > strong { color: var(--danger); }

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  font-size: 14px;
}
.table th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-hover);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}
.table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:hover td { background: var(--surface-hover); }
.table tr:last-child td { border-bottom: 0; }
.table .num,
.table td.num,
.table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}
.status-pill::before { content: ""; flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.status-pill.st-ok { background: var(--success-soft); color: var(--success); }
.status-pill.st-warn { background: var(--warning-soft); color: var(--warning); }
.status-pill.st-bad { background: var(--danger-soft); color: var(--danger); }
.status-pill.st-muted { background: var(--surface-alt); color: var(--text-muted); }
.status-pill.st-info { background: var(--info-soft); color: var(--info); }

/* Código de 6 dígitos: contenedor con 6 inputs o un solo input. */
.otp-input { display: flex; gap: 8px; max-width: 360px; }
.otp-input input {
  flex: 1 1 0;
  min-width: 0;
  max-width: 52px;
  height: 56px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
  transition: border-color .15s, box-shadow .15s;
}
.otp-input input:focus { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-color: var(--brand-strong); box-shadow: none; }
.otp-input input[aria-invalid="true"],
.otp-input.is-invalid input { border-color: var(--danger); }
input.otp-input {
  display: block;
  width: 100%;
  max-width: 300px;
  height: 56px;
  padding: 0 0 0 .5em;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .5em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
input.otp-input:focus { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-color: var(--brand-strong); box-shadow: none; }

.camera-box {
  --focus-ring: #FFFFFF;
  --focus-gap: transparent;
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--dark-bg);
  color: var(--dark-text);
}
.camera-box.is-portrait { max-width: 360px; aspect-ratio: 3 / 4; }
.camera-box video,
.camera-box canvas,
.camera-box img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.camera-box.is-mirrored video,
.camera-box.mirror video,
.camera-box[data-mirror] video { transform: scaleX(-1); }
.camera-box .video-overlay { z-index: 3; }
.camera-box-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 20px; text-align: center; }

.liveness-guide {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.liveness-guide::before {
  content: "";
  width: 46%;
  aspect-ratio: 3 / 4;
  border: 3px dashed rgba(255, 255, 255, .9);
  border-radius: 50% / 45%;
  box-shadow: 0 0 0 9999px rgba(23, 17, 22, .5);
  transition: border-color .2s;
}
.liveness-guide.is-ok::before { border-style: solid; border-color: var(--accent); }
.liveness-arrow,
.liveness-guide .arrow {
  position: absolute;
  top: 50%;
  font-size: 48px;
  line-height: 1;
  color: #FFFFFF;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
  transform: translateY(-50%);
}
.liveness-guide.is-left .liveness-arrow,
.liveness-guide[data-dir="izquierda"] .liveness-arrow,
.liveness-guide.is-left .arrow { left: 8%; animation: vl-nudge-left 1s ease-in-out infinite; }
.liveness-guide.is-right .liveness-arrow,
.liveness-guide[data-dir="derecha"] .liveness-arrow,
.liveness-guide.is-right .arrow { right: 8%; animation: vl-nudge-right 1s ease-in-out infinite; }
@keyframes vl-nudge-left { 0%, 100% { transform: translate(0, -50%); } 50% { transform: translate(-8px, -50%); } }
@keyframes vl-nudge-right { 0%, 100% { transform: translate(0, -50%); } 50% { transform: translate(8px, -50%); } }
.liveness-guide-text,
.liveness-guide p {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  margin: 0;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--cta-scrim);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

/* Menú lateral de cuenta / administración (desktop) — en mobile pasa a fila deslizable. */
.tabs-vertical {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.tabs-vertical a,
.tabs-vertical button,
.tabs-vertical .tab {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 9px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.tabs-vertical a:hover,
.tabs-vertical button:hover,
.tabs-vertical .tab:hover { background: var(--surface-hover); color: var(--text); text-decoration: none; }
.tabs-vertical .active,
.tabs-vertical [aria-current="page"],
.tabs-vertical [aria-current="true"],
.tabs-vertical [aria-selected="true"] {
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--brand);
}

/* ---------------------------------------------------------------------
   32. Responsive v2
   --------------------------------------------------------------------- */
@media (max-width: 767px) {
  .result-card-emoji { font-size: 48px; }
  .result-card-body { padding: 10px; }
  .result-card-price { font-size: 19px; }
  .result-card-local-meta .rating-count { display: none; }

  .ad-banner { flex-wrap: wrap; align-items: flex-start; }
  .ad-banner-text { flex-basis: calc(100% - 64px); }
  .ad-banner .ad-actions { width: 100%; }
  .ad-banner .ad-actions .btn { flex: 1 1 auto; }
  .ad-strip {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(250px, 86%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .ad-strip::-webkit-scrollbar { display: none; }
  .ad-strip-item { scroll-snap-align: start; }

  .dev-inbox { left: 8px; bottom: 8px; max-width: calc(100vw - 16px); }
  .dev-inbox-panel { width: calc(100vw - 16px); max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px); }

  .tabs-vertical {
    flex-direction: row;
    gap: 4px;
    padding: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .tabs-vertical::-webkit-scrollbar { display: none; }
  .tabs-vertical a,
  .tabs-vertical button,
  .tabs-vertical .tab { flex-shrink: 0; width: auto; min-height: 40px; padding: 8px 12px; font-size: 14px; }
  .tabs-vertical .active,
  .tabs-vertical [aria-current="page"],
  .tabs-vertical [aria-current="true"],
  .tabs-vertical [aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--brand); }

  .table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .kpi-value,
  .kpi > b,
  .kpi > strong { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .result-card:hover .result-card-emoji { transform: none; }
  .liveness-arrow,
  .liveness-guide .arrow { animation: none !important; }
}

/* =====================================================================
   v3 (CONTRACT-v3 §4 y §6): cupo, agenda, compartir, ubicaciones.
   ===================================================================== */

/* ---------------------------------------------------------------------
   33. "🔔 Avisame" (VL.remindButton)
   --------------------------------------------------------------------- */
.vl-remind { white-space: nowrap; }
.vl-remind.is-on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong); }
.vl-remind.is-on:hover { background: var(--brand-soft-hover); color: var(--brand-strong); }
.vl-remind[aria-busy="true"] { opacity: .7; cursor: progress; }
.vl-ics-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

/* ---------------------------------------------------------------------
   34. Compartir (VL.shareLive)
   --------------------------------------------------------------------- */
.vl-share { display: flex; flex-direction: column; gap: 14px; }
.vl-share-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface-alt);
}
.vl-share-preview > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vl-share-preview b { overflow: hidden; font-family: var(--font-display); font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.vl-share-row { display: flex; gap: 8px; }
.vl-share-row .input { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 13.5px; }
.vl-share-row .btn { flex-shrink: 0; }
.vl-share-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.vl-share-actions .btn { flex: 1 1 180px; }

/* ---------------------------------------------------------------------
   35. Barra de cupo de horas-espectador (VL.quotaBar)
   --------------------------------------------------------------------- */
.quota-bar {
  --quota-color: var(--success);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.quota-bar.state-warn80 { --quota-color: var(--warning); }
.quota-bar.state-on_wallet { --quota-color: var(--info); }
.quota-bar.state-grace,
.quota-bar.state-audio_only,
.quota-bar.state-closed,
.quota-bar.is-exhausted { --quota-color: var(--danger); box-shadow: inset 4px 0 0 var(--danger), var(--shadow-sm); }
.quota-bar-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.quota-bar-title { margin: 0; font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.quota-bar-pct {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.quota-bar-track {
  position: relative;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-alt);
  box-shadow: inset 0 0 0 1px var(--border);
}
.quota-bar-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  border-radius: 999px;
  background: var(--quota-color);
  transition: width .4s var(--ease);
}
.quota-bar-mark { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--text); opacity: .55; }
.quota-bar-text { margin: 0; color: var(--text); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.quota-bar-note { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.45; }
.quota-bar.state-grace .quota-bar-note,
.quota-bar.state-audio_only .quota-bar-note,
.quota-bar.state-closed .quota-bar-note,
.quota-bar.is-exhausted .quota-bar-note { color: var(--danger); font-weight: 600; }
.quota-bar-sim { margin: 0; color: var(--text-muted); font-size: 12px; }

/* ---------------------------------------------------------------------
   36. Ubicaciones pagas en listados: bloque "Destacado"
   --------------------------------------------------------------------- */
.vl-promoted-note { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 12.5px; }

@media (max-width: 767px) {
  .vl-share-row { flex-wrap: wrap; }
  .vl-share-row .btn { flex: 1 1 100%; }
  .quota-bar { padding: 12px 14px; }
}

/* =====================================================================
   v4 (CONTRACT-v4 §2.3, §2.4 y §10.2): zonas (compra · cuenta · vender ·
   centro · empresas · admin), barra inferior, pie de 4 columnas, hojas,
   tarjetas de fila, ♡, datos del vendedor, cupones, medallas y
   «¿Seguís ahí?». Misma paleta Cartulina: fucsia = la casa · lima = la
   acción principal · rojo = solo EN VIVO · «Destacado» = contorno gris.
   ===================================================================== */

@media (min-width: 768px) {
  :root { --row-card-w: 220px; }
}

/* ---------------------------------------------------------------------
   37. Encabezado por zona
   --------------------------------------------------------------------- */
#vl-header[data-zone="centro"],
.vl-header[data-zone="centro"] {
  --hdr-bg: var(--centro-bg);
  --hdr-fg: var(--centro-text);
  --hdr-muted: var(--centro-text-muted);
  --hdr-hover: rgba(255, 255, 255, .14);
  --hdr-line: rgba(255, 255, 255, .45);
}
#vl-header[data-zone="admin"],
.vl-header[data-zone="admin"] {
  --hdr-bg: var(--text);
  --hdr-fg: #FFFFFF;
  --hdr-muted: var(--dark-text-muted);
  --hdr-hover: rgba(255, 255, 255, .12);
  --hdr-line: rgba(255, 255, 255, .4);
}
/* Vendé en VidrieraLive y Empresas: encabezado claro con filete fucsia (el botón «Abrí tu local» va en contorno fucsia). */
#vl-header[data-zone="vender"],
#vl-header[data-zone="empresas"],
.vl-header[data-zone="vender"],
.vl-header[data-zone="empresas"] {
  --hdr-bg: var(--surface);
  --hdr-fg: var(--text);
  --hdr-muted: var(--text-muted);
  --hdr-hover: var(--brand-soft);
  --hdr-line: var(--border-strong);
  --focus-ring: var(--brand-strong);
  --focus-gap: #FFFFFF;
  box-shadow: inset 0 -3px 0 var(--brand), 0 2px 8px rgba(23, 17, 22, .06);
}
.vl-header[data-zone="vender"] .vl-logo-icon,
.vl-header[data-zone="empresas"] .vl-logo-icon { box-shadow: 0 0 0 1px var(--border-strong); }
.vl-header[data-zone="vender"] .vl-logo-text b,
.vl-header[data-zone="empresas"] .vl-logo-text b { color: var(--brand); }
.vl-header[data-zone="vender"] .vl-logo-dot,
.vl-header[data-zone="empresas"] .vl-logo-dot { background: var(--brand); }
.vl-header[data-zone="vender"] .vl-account-btn,
.vl-header[data-zone="empresas"] .vl-account-btn { background: var(--surface); }
.vl-header[data-zone="vender"] .vl-account-btn > .vl-account-avatar,
.vl-header[data-zone="empresas"] .vl-account-btn > .vl-account-avatar { background: var(--brand-soft); }
.vl-header[data-zone="vender"] .vl-account-dot { background: var(--brand); box-shadow: none; }
.vl-header[data-zone="vender"] .vl-auth-login { color: var(--brand-strong); }

/* Logo con el nombre de la zona: «VidrieraLive · Vendedores» */
.vl-logo-sub {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--hdr-muted);
  white-space: nowrap;
}
.vl-logo-sub::before { content: "·"; margin: 0 7px 0 1px; color: var(--hdr-muted); }

/* «← Ir a comprar» · «← Volver a comprar» · «Ver sitio ↗» */
.vl-back-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  color: var(--hdr-fg);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
.vl-back-link:hover { background: var(--hdr-hover); color: var(--hdr-fg); text-decoration: none; }

/* Fila de un solo renglón (vender, centro, empresas, admin) */
.vl-header-row {
  display: flex;
  align-items: center;
  gap: 10px 20px;
  min-height: 64px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.vl-header-row .vl-header-actions { margin-left: auto; }

/* Buscador con el botón «Buscar» visible */
.vl-search .vl-search-btn {
  width: auto;
  gap: 6px;
  padding: 0 14px 0 12px;
  font-size: 14.5px;
  font-weight: 700;
}
.vl-search-btn svg { flex-shrink: 0; }

/* Fila 2 de compras: zona · En vivo · Agenda · Rubros ▾ · Locales · Ayuda · … Vender */
.vl-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border: 0;
  border-radius: 4px;
  background: none;
  color: var(--hdr-muted);
  font-size: 14px;
  white-space: nowrap;
}
.vl-nav-btn:hover { color: var(--hdr-fg); text-decoration: underline; text-decoration-thickness: 1px; }
.vl-nav-btn.is-active { color: var(--hdr-fg); font-weight: 700; box-shadow: inset 0 -2px 0 var(--hdr-fg); }
.vl-vender-link {
  flex-shrink: 0;
  margin-left: auto;
  padding: 6px 2px;
  border-radius: 4px;
  color: var(--hdr-muted);
  font-size: 13px;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
.vl-vender-link:hover { color: var(--hdr-fg); text-decoration: none; }
.vl-zone-chip-caret { display: inline-flex; flex-shrink: 0; opacity: .8; }

/* ♡ Favoritos del encabezado */
.vl-fav-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: var(--hdr-fg);
  transition: background-color .15s;
}
.vl-fav-link:hover { background: var(--hdr-hover); color: var(--hdr-fg); }
.vl-fav-link .vl-ic { width: 22px; height: 22px; stroke-width: 1.9; }
.vl-fav-link[aria-current="page"] .vl-ic { fill: currentColor; }

/* Aviso del menú del avatar («Confirmá tu email y tu celular») */
.vl-menu-item.vl-menu-warn { background: var(--warning-soft); color: var(--warning); font-weight: 700; }
.vl-menu-item.vl-menu-warn:hover,
.vl-menu-item.vl-menu-warn:focus { background: var(--warning-soft); color: var(--warning); box-shadow: inset 0 0 0 1px var(--warning-line); }
.vl-menu-count { min-width: 20px; width: auto; white-space: nowrap; }

/* Vendé en VidrieraLive: links de la zona y botón secundario en contorno fucsia */
.vl-zone-nav { display: flex; align-items: center; gap: 4px 20px; min-width: 0; font-size: 14.5px; }
.vl-zone-nav a:not(.vl-back-link) {
  padding: 6px 0;
  border-radius: 4px;
  color: var(--hdr-muted);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.vl-zone-nav a:not(.vl-back-link):hover { color: var(--hdr-fg); text-decoration: underline; text-decoration-thickness: 1px; }
.vl-zone-nav a.active,
.vl-zone-nav a[aria-current="page"] { color: var(--brand-strong); box-shadow: inset 0 -2px 0 var(--brand); }
.vl-back-in-menu { display: none; }
.btn.btn-outline-brand {
  border: 1.5px solid var(--brand);
  background: transparent;
  color: var(--brand-strong);
}
.btn.btn-outline-brand:hover { background: var(--brand-soft); color: var(--brand-deep); }
.btn.btn-outline-brand:active { background: var(--brand-soft-hover); }
.vl-menu-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 12px;
  border: 1.5px solid var(--hdr-line);
  border-radius: var(--radius-btn);
  background: transparent;
  color: var(--hdr-fg);
  font-size: 14px;
  font-weight: 700;
}
.vl-menu-toggle[aria-expanded="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong); }

/* Centro de vendedores: logo · ← Volver a comprar · selector de local · Salir en vivo · 🔔 · avatar */
.vl-header-centro {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  grid-template-areas: "logo back select actions";
}
.vl-header-centro > .vl-logo { grid-area: logo; }
.vl-header-centro > .vl-back-link { grid-area: back; justify-self: start; }
.vl-header-centro > .vl-centro-select { grid-area: select; min-width: 0; }
.vl-header-centro > .vl-header-actions { grid-area: actions; }
.vl-centro-local {
  max-width: 240px;
  min-height: 38px;
  padding: 6px 32px 6px 12px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: var(--radius-sm);
  background-color: #FFFFFF;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231F1520' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 11px 7px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  -webkit-appearance: none;
  appearance: none;
  text-overflow: ellipsis;
}
.btn-golive {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 15px 6px 12px;
  border: 0;
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(23, 17, 22, .3);
  transition: background-color .15s;
}
.btn-golive:hover { background: var(--centro-surface); color: var(--text); text-decoration: none; }
.golive-dot {
  flex-shrink: 0;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 3px rgba(212, 42, 28, .2);
}
.btn-golive.is-live { gap: 9px; padding-left: 7px; }
.btn-golive.is-live .badge-live { animation: vl-live-glow 2s ease-in-out infinite; }

/* Encabezado de compras en el celular: se esconde al bajar y vuelve al subir */
.vl-header { transition: transform .22s var(--ease), box-shadow .22s; }
.vl-header.is-hidden { transform: translateY(-100%); box-shadow: none; }

/* ---------------------------------------------------------------------
   38. Barra inferior (solo < 768 px): compra/cuenta y Centro
   --------------------------------------------------------------------- */
.vl-bottom-bar { display: none; }
.vl-bottom-list {
  display: flex;
  height: var(--bottom-bar-h);
  margin: 0;
  padding: 0;
  list-style: none;
}
.vl-bottom-list > li { flex: 1 1 0; display: flex; min-width: 0; }
.vl-bottom-item {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 44px;
  padding: 6px 2px 5px;
  border: 0;
  background: none;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.vl-bottom-item:hover { color: var(--text); text-decoration: none; }
.vl-bottom-item .vl-bottom-ic { width: 24px; height: 24px; stroke-width: 1.9; }
.vl-bottom-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vl-bottom-item.is-active { color: var(--brand-strong); font-weight: 800; }
.vl-bottom-item.is-active::before {
  content: "";
  position: absolute;
  top: 0; left: 24%; right: 24%;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--brand);
}
.vl-bottom-item:focus-visible { outline-offset: -4px; box-shadow: none; }
.vl-bottom-badge {
  position: absolute;
  top: 5px; left: calc(50% + 5px);
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--brand-strong);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px var(--surface);
}
.vl-bottom-bar[data-zone="centro"] {
  --focus-ring: #FFFFFF;
  --focus-gap: transparent;
  background: var(--centro-bg);
  border-top-color: transparent;
}
.vl-bottom-bar[data-zone="centro"] .vl-bottom-item { color: var(--centro-text-muted); }
.vl-bottom-bar[data-zone="centro"] .vl-bottom-item.is-active { color: #FFFFFF; }
.vl-bottom-bar[data-zone="centro"] .vl-bottom-item.is-active::before { background: #FFFFFF; }
.vl-bottom-bar[data-zone="centro"] .vl-bottom-badge { background: #FFFFFF; color: var(--centro-bg); box-shadow: 0 0 0 2px var(--centro-bg); }

/* ---------------------------------------------------------------------
   39. Pie: 4 columnas (compra, cuenta, vender, empresas) y pie mínimo (Centro)
   --------------------------------------------------------------------- */
.vl-footer-inner {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 24px;
}
.vl-footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 24px;
}
.vl-footer-col { min-width: 0; }
.vl-footer-h {
  margin: 0 0 6px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0;
}
.vl-footer-list { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; }
.vl-footer-list a,
.vl-footer-list .vl-footer-link,
.vl-footer-min-links a,
.vl-footer-min-links .vl-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--text);
  font-size: 13.5px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.vl-footer-list a:hover,
.vl-footer-list .vl-footer-link:hover,
.vl-footer-min-links a:hover,
.vl-footer-min-links .vl-footer-link:hover { color: var(--brand-strong); text-decoration: underline; }
.vl-footer-brand { padding-top: 20px; border-top: 1px solid var(--border); }
#vl-footer[data-zone="centro"],
.vl-footer[data-zone="centro"] { margin-top: 32px; background: var(--centro-surface); border-top-color: var(--brand-line); }
.vl-footer-min {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 24px;
  padding-top: 14px;
  padding-bottom: 18px;
}
.vl-footer-min-links { display: flex; flex-wrap: wrap; gap: 0 22px; margin: 0; padding: 0; list-style: none; }
.vl-footer-min .vl-footer-text { font-size: 12.5px; }

/* ---------------------------------------------------------------------
   40. Hoja (VL.sheet) y rubros (VL.openRubros)
   --------------------------------------------------------------------- */
@keyframes vl-sheet-in { from { opacity: .6; transform: translateY(32px); } to { opacity: 1; transform: none; } }
.vl-rubros {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.vl-rubro-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}
.vl-rubro-link:hover { border-color: var(--brand-line); background: var(--brand-soft); color: var(--brand-strong); text-decoration: none; }
.vl-rubro-link[aria-current="page"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong); font-weight: 800; }
.vl-rubro-emoji { flex-shrink: 0; font-size: 22px; line-height: 1; }
.vl-rubro-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  margin-top: 12px;
  border: 1.5px solid var(--text);
  border-radius: var(--radius-btn);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}
.vl-rubro-all:hover { background: var(--surface-alt); color: var(--text); text-decoration: none; }

/* ---------------------------------------------------------------------
   41. Tarjetas de fila, ♡ y quitar de «Lo que viste»
   --------------------------------------------------------------------- */
.vl-card-wrap { position: relative; display: flex; flex-direction: column; min-width: 0; }
.vl-card-wrap > .card { flex: 1 1 auto; }
.vl-card-wrap.is-compact,
.local-card.is-compact,
.vl-product-card.is-compact,
.sched-card.is-compact { flex: 0 0 var(--row-card-w); width: var(--row-card-w); max-width: 100%; }
/* Dentro del envoltorio (columna), la tarjeta ocupa el alto que necesita: el ancho de fila lo pone el envoltorio. */
.vl-card-wrap > .is-compact { flex: 1 1 auto; width: auto; }
.vl-card-wrap > .vl-heart { position: absolute; top: 8px; right: 8px; z-index: 3; }
.vl-card-wrap-local .local-card-badges { right: 58px; }
.vl-card-why {
  display: -webkit-box;
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ♡ (VL.heartButton): nombre fijo; el estado lo da aria-pressed (relleno fucsia) */
.vl-heart {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1;
  transition: background-color .15s, border-color .15s, color .15s, transform .1s;
}
.vl-heart:hover { border-color: var(--brand); color: var(--brand-strong); }
.vl-heart .vl-heart-icon { display: inline-flex; }
.vl-heart-ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.vl-heart[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.vl-heart[aria-pressed="true"] .vl-heart-ic { fill: currentColor; }
.vl-heart[aria-pressed="true"] .vl-heart-text { color: var(--brand-strong); }
.vl-heart-check { display: none; color: var(--brand-strong); font-weight: 800; }
.vl-heart-md[aria-pressed="true"] .vl-heart-check { display: inline; }
.vl-heart[aria-busy="true"] { cursor: progress; opacity: .75; }
.vl-heart:active { transform: scale(.94); }
/* Solo ícono (encima de las tarjetas): círculo blanco de 40 px con 44 px de zona táctil */
.vl-heart-sm {
  width: 40px; height: 40px;
  min-width: 0; min-height: 0;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 1px 4px rgba(23, 17, 22, .25);
}
.vl-heart-sm::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; }
.vl-heart-sm[aria-pressed="true"] { background: #FFFFFF; }

.vl-card-remove {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .96);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 1px 4px rgba(23, 17, 22, .25);
}
.vl-card-remove::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; }
.vl-card-remove:hover { background: var(--danger-soft); color: var(--danger); }
.vl-card-remove[aria-busy="true"] { opacity: .6; cursor: progress; }

/* Tarjeta de local en una fila (compact): tapa 4:3 para que EN VIVO / DEMO no choquen con «mirando» */
.local-card.is-compact .local-card-cover { aspect-ratio: 4 / 3; }
.local-card.is-compact .local-card-badges { top: 15px; gap: 4px; }
.local-card.is-compact .local-card-emoji { font-size: 44px; }
.local-card.is-compact .local-card-body { padding: 10px 12px 12px; }
.local-card.is-compact .local-card-name { font-size: 15.5px; }
.local-card-chips .vl-medal,
.local-card-chips .badge-host { font-size: 11px; }

/* Tarjeta de producto (VL.productCard) */
.vl-product-card { color: var(--text); text-decoration: none; }
.vl-product-card:hover { color: var(--text); text-decoration: none; }
.vl-product-thumb {
  position: relative;
  background: linear-gradient(145deg, #FBF8FA 0%, var(--surface-alt) 100%);
  background: linear-gradient(145deg, color-mix(in srgb, var(--tint, #9A1584) 6%, #fff) 0%, color-mix(in srgb, var(--tint, #9A1584) 18%, #fff) 100%);
}
.vl-product-emoji {
  font-size: 56px;
  line-height: 1;
  filter: drop-shadow(0 6px 10px rgba(23, 17, 22, .12));
  transition: transform .3s var(--ease);
}
.vl-product-card:hover .vl-product-emoji { transform: scale(1.06); }
.vl-product-badges { position: absolute; left: 10px; bottom: 10px; z-index: 1; display: flex; gap: 6px; }
.vl-product-card.is-live .vl-product-thumb { box-shadow: inset 0 -3px 0 var(--live); }
.vl-product-card.is-out .vl-product-emoji { opacity: .45; filter: grayscale(.6); }
.vl-product-local {
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vl-product-local-name { color: var(--text); font-weight: 700; }
.vl-product-card.is-compact .vl-product-emoji { font-size: 46px; }
.vl-product-card.is-compact .product-body { padding: 10px; }
.vl-product-card.is-compact .product-price { font-size: 19px; }
.vl-product-card.is-compact .product-name { font-size: 14px; }

/* Tarjeta de la agenda (VL.scheduleCard) */
.sched-card { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px 16px 16px; }
.sched-card.is-featured { box-shadow: inset 0 3px 0 var(--border-strong), var(--shadow-sm); }
.sched-card.is-live { box-shadow: inset 0 3px 0 var(--live), var(--shadow-sm); }
.sched-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.sched-card-top .badge-soon { font-size: 12.5px; }
.sched-card-dur { color: var(--text-muted); font-family: var(--font-display); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sched-card-top .vl-destacado { margin-left: auto; }
.sched-card-title { margin: 0; font-family: var(--font-display); font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; overflow-wrap: anywhere; }
.sched-card-title a { color: var(--text); text-decoration: none; }
.sched-card-title a:hover { color: var(--brand-strong); text-decoration: underline; }
.sched-card-local { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sched-card-local-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: 13px; }
.sched-card-local-name { overflow: hidden; color: var(--text); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.sched-card-local-meta { overflow: hidden; color: var(--text-muted); text-overflow: ellipsis; white-space: nowrap; }
.sched-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); }
.sched-card.is-compact { gap: 8px; padding: 12px; }
.sched-card.is-compact .sched-card-title { font-size: 15.5px; }

/* ---------------------------------------------------------------------
   42. Insignias v4: «Destacado» (lo pago), anfitrión y medallas (por mérito)
   --------------------------------------------------------------------- */
.vl-destacado {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-muted);
}
.badge-host {
  border: 1.5px solid var(--commerce);
  background: var(--surface);
  color: var(--commerce);
  padding: 2px 8px;
}
.vl-medal {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 2px 9px 2px 6px;
  border: 1.5px solid var(--medal-line);
  border-radius: 999px;
  background: var(--medal-bg);
  color: var(--medal-text);
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
  vertical-align: middle;
}
.vl-medal-icon { flex-shrink: 0; font-size: 13px; line-height: 1; }
.vl-medal-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.vl-medal-scope,
.vl-medal-month { font-weight: 600; }
.vl-medal-md { gap: 7px; padding: 5px 13px 5px 9px; font-size: 13.5px; }
.vl-medal-md .vl-medal-icon { font-size: 16px; }

/* ---------------------------------------------------------------------
   43. Datos del vendedor (VL.sellerCard) y tildes (VL.verificationChecks)
   --------------------------------------------------------------------- */
.vl-checks { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; list-style: none; font-size: 13.5px; }
.vl-check { display: inline-flex; align-items: center; gap: 5px; color: var(--text-muted); }
.vl-check + .vl-check::before { content: "·"; margin: 0 8px; color: var(--border-strong); }
.vl-check.is-ok { color: var(--verified); font-weight: 700; }
.vl-check-mark { font-weight: 800; }

.vl-seller-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 84px;
}
.vl-seller-card.is-preview { border: 1.5px dashed var(--border-strong); box-shadow: none; }
.vl-seller-title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 17px; font-weight: 800; }
.vl-seller-title .vl-ic { color: var(--verified); }
.vl-seller-rows { display: flex; flex-direction: column; margin: 0; }
.vl-seller-row {
  display: grid;
  grid-template-columns: minmax(96px, 36%) minmax(0, 1fr);
  gap: 2px 12px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
}
.vl-seller-row:first-child { padding-top: 0; border-top: 0; }
.vl-seller-row dt { color: var(--text-muted); font-size: 13px; line-height: 1.4; }
.vl-seller-row dd { margin: 0; color: var(--text); font-size: 14px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.vl-seller-sub { display: block; margin-top: 2px; color: var(--text-muted); font-size: 13px; font-weight: 400; }
.vl-alias { font-family: var(--font-mono); font-weight: 700; letter-spacing: .01em; overflow-wrap: anywhere; }
.vl-ok { color: var(--verified); font-weight: 800; }
.vl-seller-pending { margin: 0; color: var(--text); font-weight: 700; }
.vl-seller-note { margin: 0; color: var(--text-muted); font-size: 13.5px; }
.vl-seller-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.vl-seller-foot .btn { min-height: 40px; }
.vl-seller-report { color: var(--danger); }
.vl-seller-report:hover { background: var(--danger-soft); color: var(--danger); }

.vl-seller-line { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin: 0; font-size: 14px; line-height: 1.4; }
.vl-seller-line-ok { color: var(--verified); font-weight: 700; }
.vl-seller-line-sep { color: var(--border-strong); }
.vl-seller-line-name { color: var(--text); font-weight: 700; }
.vl-seller-line a { color: var(--brand-strong); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; }
.vl-seller-line.is-pending { color: var(--text-muted); font-weight: 600; }

.vl-seller-pay {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--verified-line);
  border-radius: var(--radius-sm);
  background: var(--verified-soft);
  color: var(--text);
}
.vl-seller-pay.is-unverified { border-color: var(--warning-line); background: var(--warning-soft); }
.vl-seller-pay p { margin: 0; }
.vl-seller-pay-main { font-size: 14.5px; line-height: 1.45; }
.vl-seller-pay-other { font-size: 13.5px; }
.vl-seller-pay-tip { display: flex; align-items: flex-start; gap: 6px; color: var(--text-muted); font-size: 13px; line-height: 1.4; }
.vl-seller-pay-tip .vl-ic { margin-top: 1px; }
.vl-seller-pay > .btn { align-self: flex-start; }

/* ---------------------------------------------------------------------
   44. Cupones (VL.couponCard): condiciones, vigencia y unidades siempre a la vista
   --------------------------------------------------------------------- */
.vl-coupon.vl-coupon-card {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 6px;
  min-width: 0;
}
.vl-coupon-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.vl-coupon-type { color: var(--brand-strong); font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.vl-coupon-value { margin: 0; color: var(--text); font-family: var(--font-display); font-size: 20px; font-weight: 800; line-height: 1.2; }
.vl-coupon-cond,
.vl-coupon-validity,
.vl-coupon-owner { margin: 0; color: var(--text); font-size: 13.5px; line-height: 1.45; overflow-wrap: anywhere; }
.vl-coupon-validity { color: var(--text-muted); }
.vl-coupon-coderow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed var(--brand-line);
}
.vl-coupon-card .vl-coupon-code { flex: 1 1 auto; font-size: 20px; }
.vl-coupon-verify { margin: 4px 0 0; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font-size: 13.5px; }
.vl-coupon-card.is-compact { padding: 10px 12px; }
.vl-coupon-card.is-compact .vl-coupon-value { font-size: 17px; }

/* ---------------------------------------------------------------------
   45. Estado vacío (VL.emptyState) y modal «¿Querés seguir estos locales?»
   --------------------------------------------------------------------- */
.vl-empty-title { color: var(--text); font-family: var(--font-display); font-size: 17px; font-weight: 800; }
.vl-empty-text { max-width: 46ch; }
.vl-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.vl-suggest-list { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.vl-suggest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.vl-suggest-item:hover { border-color: var(--text); background: var(--surface-hover); }
.vl-suggest-item input { flex-shrink: 0; width: 20px; height: 20px; margin: 0; accent-color: var(--brand-strong); cursor: pointer; }
.vl-suggest-item:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.vl-suggest-item:has(input:focus-visible) { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.vl-suggest-text { display: flex; flex-direction: column; min-width: 0; }

/* ---------------------------------------------------------------------
   46. «¿Seguís ahí?» (VL.idleOverlay) sobre el video
   --------------------------------------------------------------------- */
.vl-idle-overlay {
  --focus-ring: #FFFFFF;
  --focus-gap: transparent;
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(23, 17, 22, .84);
  color: #FFFFFF;
  text-align: center;
  animation: vl-fade-in .2s ease-out;
}
.vl-idle-overlay.vl-idle-paused { background: rgba(23, 17, 22, .9); }
.vl-idle-box { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 380px; }
.vl-idle-title { margin: 0; color: #FFFFFF; font-family: var(--font-display); font-size: 22px; font-weight: 800; line-height: 1.2; }
.vl-idle-text { margin: 0; color: var(--dark-text); font-size: 15px; line-height: 1.4; }
.vl-idle-text b { color: #FFFFFF; }
.vl-idle-overlay .btn { margin-top: 4px; }

/* ---------------------------------------------------------------------
   47. Responsive v4
   --------------------------------------------------------------------- */
@media (max-width: 1099px) {
  .vl-zone-nav { gap: 4px 14px; font-size: 14px; }
  .vl-header-centro .vl-logo-sub-more { display: none; }
}

@media (max-width: 767px) {
  /* Compras: arriba logo · 🔔 · avatar; debajo el buscador; debajo la zona. La fila 2 la reemplaza la barra inferior. */
  #vl-header[data-zone="compra"],
  #vl-header[data-zone="cuenta"] { position: sticky; top: 0; }
  .vl-header[data-zone="compra"] .vl-nav,
  .vl-header[data-zone="cuenta"] .vl-nav {
    min-height: 0;
    padding-bottom: 10px;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .vl-nav-links,
  .vl-vender-link,
  .vl-fav-link { display: none; }
  .vl-header-top { padding-top: 8px; padding-bottom: 8px; }
  .vl-search input { height: 44px; }
  .vl-logo { min-height: 44px; }
  .vl-search .vl-search-btn { padding: 0 12px 0 10px; }
  .vl-zone-chip { max-width: 100%; min-height: 44px; }

  /* Vendé en VidrieraLive: los links van en el menú desplegable «Menú» */
  .vl-header[data-zone="vender"] .vl-header-row { position: relative; gap: 8px; }
  .vl-header[data-zone="vender"] .vl-logo-text,
  .vl-header[data-zone="vender"] .vl-logo-sub::before { display: none; }
  .vl-menu-toggle { display: inline-flex; }
  .vl-back-desktop { display: none; }
  .vl-back-in-menu { display: inline-flex; }
  .vl-zone-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    z-index: 70;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 14px;
    background: var(--surface);
    border-bottom: 3px solid var(--brand);
    box-shadow: 0 12px 24px rgba(23, 17, 22, .14);
  }
  .vl-header.is-menu-open .vl-zone-nav { display: flex; }
  .vl-zone-nav a:not(.vl-back-link),
  .vl-zone-nav .vl-back-link {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 6px 4px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 15px;
  }
  .vl-zone-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--brand); padding-left: 10px; }
  .vl-zone-nav .vl-back-link { border-bottom: 0; text-decoration: underline; }
  .vl-header-row .vl-header-actions { gap: 6px; }
  .vl-open-btn { padding: 6px 12px; }

  /* Centro: fila 1 logo · Salir en vivo · 🔔 · avatar; fila 2 ← Volver a comprar · selector */
  .vl-header-centro {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "logo actions"
      "back select";
    gap: 4px 8px;
    padding-top: 8px;
    padding-bottom: 6px;
  }
  .vl-header-centro .vl-logo-text,
  .vl-header-centro .vl-logo-sub::before { display: none; }
  .vl-header-centro > .vl-centro-select { justify-self: end; }
  .vl-header-centro .vl-back-link { min-height: 36px; font-size: 13.5px; }
  .vl-centro-local { max-width: 180px; min-height: 36px; }
  .btn-golive { min-height: 40px; padding: 6px 12px 6px 10px; font-size: 14px; }
  .vl-header-centro .vl-header-actions { gap: 4px; }

  /* Empresas y admin: logo corto */
  .vl-header[data-zone="empresas"] .vl-logo-text,
  .vl-header[data-zone="admin"] .vl-logo-text,
  .vl-header[data-zone="empresas"] .vl-logo-sub::before,
  .vl-header[data-zone="admin"] .vl-logo-sub::before { display: none; }

  /* Barra inferior */
  .vl-bottom-bar {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 12px rgba(31, 21, 32, .08);
  }
  body.has-bottom-bar { padding-bottom: calc(var(--bottom-bar-h) + env(safe-area-inset-bottom, 0px)); }
  body.has-bottom-bar .dev-inbox { bottom: calc(var(--bottom-bar-h) + 8px + env(safe-area-inset-bottom, 0px)); }

  /* Pie: 2 columnas y links con zona táctil de 44 px */
  .vl-footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .vl-footer-list a,
  .vl-footer-list .vl-footer-link,
  .vl-footer-min-links a,
  .vl-footer-min-links .vl-footer-link { min-height: 44px; }
  #vl-footer { margin-top: 40px; }

  /* Hoja (VL.sheet) */
  .modal-backdrop.vl-sheet-backdrop { align-items: flex-end; padding: 0; }
  .modal.vl-sheet {
    max-width: none;
    width: 100%;
    max-height: 88vh;
    max-height: 88dvh;
    border-radius: 18px 18px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    animation: vl-sheet-in .24s var(--ease);
  }
  .modal.vl-sheet::before {
    content: "";
    display: block;
    flex-shrink: 0;
    width: 40px; height: 4px;
    margin: 8px auto 0;
    border-radius: 2px;
    background: var(--border-strong);
  }

  .vl-seller-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .vl-idle-title { font-size: 19px; }
  .vl-idle-text { font-size: 14px; }
  .vl-idle-overlay .btn-lg { min-height: 46px; padding: 10px 18px; font-size: 15.5px; }

  /* Zonas táctiles de 44 px en el celular (WCAG 2.5.5 / §5.6): botones chicos, encabezado, chips y links sueltos. */
  .btn-sm { min-height: 44px; }
  .vl-auth-link,
  .vl-bell,
  .vl-account-btn { min-height: 44px; min-width: 44px; }
  .vl-ics-link { min-height: 44px; }
  .icon-btn.modal-close { width: 44px; height: 44px; }
  .segmented button { min-height: 44px; }
  .vl-seller-line a { display: inline-flex; align-items: center; min-height: 44px; }
  /* Migas: el link sigue en su renglón y el área de toque crece hacia arriba y abajo sin mover nada. */
  .breadcrumb a { position: relative; }
  .breadcrumb a::after { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 44px; transform: translateY(-50%); }
  /* Integrador final: los que quedaban chicos en el celular. «¿Qué verificamos?» y «Denunciar» de la tarjeta del vendedor
     (.vl-seller-foot .btn ganaba a .btn-sm), redes del local, y los links sueltos de títulos y avisos (área de toque
     invisible, sin mover el renglón). */
  .vl-seller-foot .btn { min-height: 44px; }
  .social-link { min-height: 44px; }
  .section-title a,
  .home-notice a { position: relative; }
  .section-title a::after,
  .home-notice a::after { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 44px; transform: translateY(-50%); }
}

@media (max-width: 420px) {
  .vl-header[data-zone="vender"] .vl-logo-sub,
  .vl-header[data-zone="admin"] .vl-logo-sub { display: none; }
  .vl-header-centro .vl-back-link { padding-left: 0; }
  .vl-search .vl-search-btn-text { font-size: 13.5px; }
  /* Integrador 2: en vivo, la píldora «EN VIVO · Volver al vivo» tapaba el logo del Centro a 375 px. Queda la píldora
     EN VIVO (el nombre accesible «EN VIVO: volver al vivo» sigue en el aria-label) y el logo no se desborda. */
  .vl-header-centro > .vl-logo { min-width: 0; overflow: hidden; }
  .btn-golive.is-live .golive-text {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .btn-golive.is-live { padding-right: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .vl-header,
  .vl-header.is-hidden { transition: none; }
  .modal.vl-sheet,
  .vl-idle-overlay { animation: none; }
  .btn-golive.is-live .badge-live { animation: none; }
  .vl-product-card:hover .vl-product-emoji,
  .vl-heart:active { transform: none; }
}

/* ---------------------------------------------------------------------
   48. v4.2: fotos de productos y locales, ilustraciones de rubros
   Toda foto va en una caja con proporción fija (no hay saltos al cargar) y object-fit: cover. Si una foto no carga,
   common.js le saca .has-photo a su caja y vuelve el emoji (o la inicial) de siempre.
   --------------------------------------------------------------------- */
.local-card-photo,
.result-card-photo,
.vl-product-photo,
.sched-card-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}
.local-card-cover.has-photo,
.result-card-thumb.has-photo,
.vl-product-thumb.has-photo { background: var(--surface-alt); }
/* Con foto: sin toldo ni brillo; un velo arriba y otro abajo para que EN VIVO y «mirando» se lean sobre cualquier foto. */
.local-card-cover.has-photo::before {
  z-index: 1;
  height: 58px;
  background: linear-gradient(180deg, rgba(23, 17, 22, .46) 0%, rgba(23, 17, 22, 0) 100%);
}
.local-card-cover.has-photo::after {
  z-index: 1;
  background: linear-gradient(0deg, rgba(23, 17, 22, .40) 0%, rgba(23, 17, 22, 0) 44%);
}
.local-card:hover .local-card-photo,
.result-card:hover .result-card-photo,
.vl-product-card:hover .vl-product-photo { transform: scale(1.04); }
/* En vivo: la línea roja de abajo va encima de la foto (el box-shadow interno quedaría tapado). */
.local-card.is-live .local-card-cover.has-photo::after {
  background:
    linear-gradient(0deg, var(--live) 0, var(--live) 3px, transparent 3px),
    linear-gradient(0deg, rgba(23, 17, 22, .40) 0%, rgba(23, 17, 22, 0) 44%);
}
.result-card.is-live .result-card-thumb.has-photo::after,
.vl-product-card.is-live .vl-product-thumb.has-photo::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  height: 3px;
  background: var(--live);
}
.result-card.is-out .result-card-photo,
.vl-product-card.is-out .vl-product-photo { opacity: .55; filter: grayscale(.6); }
/* Sin portada pero con logo: el logo en un círculo blanco sobre el toldo de color. */
.local-card-logo {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin-top: 8px;
  overflow: hidden;
  border: 3px solid #FFFFFF;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 6px 14px rgba(23, 17, 22, .28);
  font-size: 36px;
  line-height: 1;
}
.local-card-logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.local-card.is-compact .local-card-logo { width: 54px; height: 54px; font-size: 28px; }
/* Nombre con el logo chiquito (tarjetas con portada de foto) */
.local-card-name.has-logo { display: flex; align-items: center; gap: 7px; min-width: 0; }
.local-card-name.has-logo > .avatar,
.local-card-name.has-logo > .vl-verified-tick { flex: none; }
.local-card-name-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.local-card-cat { display: inline-flex; align-items: center; gap: 4px; }

/* Avatar con foto (logo del local) y tamaño extra chico */
.avatar-xs { width: 24px; height: 24px; border-width: 1.5px; font-size: 12px; }
.avatar.has-photo { background: var(--surface) !important; }
.avatar-initial { color: #FFFFFF; font-family: var(--font-display); font-weight: 800; }
.avatar-initial.avatar-xs { font-size: 11px; }
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Agenda: portada del local arriba de la tarjeta */
.sched-card.has-cover { overflow: hidden; }
.sched-card-cover {
  position: relative;
  flex: none;
  aspect-ratio: 3 / 1;
  margin: -14px -16px 0;
  overflow: hidden;
  background: var(--surface-alt);
}
.sched-card.is-compact .sched-card-cover { margin: -12px -12px 0; }
.sched-card.is-live .sched-card-cover::after,
.sched-card.is-featured .sched-card-cover::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  z-index: 1;
  height: 3px;
  background: var(--border-strong);
}
.sched-card.is-live .sched-card-cover::after { background: var(--live); }

/* Ilustración del rubro (VL.categoryIcon): un cuadrado de --ic px; el emoji queda de respaldo. */
.vl-cat-ic {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: var(--ic, 40px);
  height: var(--ic, 40px);
  line-height: 1;
  vertical-align: middle;
}
.vl-cat-ic img { display: block; width: 100%; height: 100%; }
.vl-cat-emoji { font-size: calc(var(--ic, 40px) * .62); line-height: 1; }
.vl-rubro-link { gap: 12px; padding: 6px 12px 6px 8px; }
.vl-rubro-chip { gap: 6px; padding-left: 6px; }

@media (prefers-reduced-motion: reduce) {
  .local-card-photo,
  .result-card-photo,
  .vl-product-photo,
  .sched-card-photo { transition: none; }
  .local-card:hover .local-card-photo,
  .result-card:hover .result-card-photo,
  .vl-product-card:hover .vl-product-photo { transform: none; }
}
