/* Tipografías servidas desde la propia web (antes venían de Google Fonts: dos conexiones menos antes de dibujar) */
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../fuentes/geist-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../fuentes/geist-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../fuentes/raleway-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../fuentes/raleway-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ==========================================================================
   Todo al Toque — estilos
   Brandboard: celeste #69B3E7 → azul #0078BF y negro. Raleway (Black y Light)
   para títulos; Geist para textos y precios (números parejos).
   Verde = ahorro (lo más barato). Movimiento solo con transform/opacity.
   ========================================================================== */

:root {
  --azul-claro: #69b3e7;
  --azul: #2a8fd3;
  --azul-hondo: #0078bf;
  --azul-tinta: #035a91;
  --degradado: linear-gradient(100deg, #69b3e7 0%, #3a97d6 48%, #0078bf 100%);
  --titulos: Raleway, Geist, system-ui, sans-serif;
  --tinta: #0b0c0f;
  --texto: #1c2029;
  --texto-2: #586172;
  --texto-3: #8a93a2;
  --linea: #e7eaf0;
  --linea-2: #d8dde6;
  --fondo: #ffffff;
  --fondo-2: #f5f7fa;
  --fondo-3: #edf1f6;
  --verde: #0c9b57;
  --verde-fondo: #e8f7ef;
  --rojo: #d93f45;
  --rojo-fondo: #fdeeee;
  --naranja: #c25e00;
  --naranja-fondo: #fff3e3;
  --radio: 20px;
  --sombra-1: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --sombra-2: 0 14px 34px -14px rgba(16, 24, 40, .2), 0 4px 10px -6px rgba(16, 24, 40, .08);
  --sombra-3: 0 40px 80px -30px rgba(4, 73, 120, .35), 0 12px 30px -16px rgba(16, 24, 40, .18);
  --suave: cubic-bezier(.22, 1, .36, 1);
  --ancho: 1240px;
  /* superficies y tintes (en modo oscuro cambian; ver "Modo oscuro" al final) */
  --superficie: #fff;                    /* tarjetas, cajas, campos */
  --sobre-tinta: #fff;                   /* texto sobre un fondo color tinta (chips elegidos, globos) */
  --tenue-sobre-tinta: #aab2bf;
  --vidrio: rgba(255, 255, 255, .8);     /* cabecera y barras con desenfoque */
  --vidrio-fuerte: rgba(255, 255, 255, .88);
  --borde-suave: rgba(15, 23, 42, .06);
  --foto-centro: #fff;                   /* "ventana" de las fotos: siempre clara (las fotos traen fondo blanco) */
  --foto-borde: #f5f7fa;
  --tinte: #e3f1fc;                      /* celeste suave de los bloques destacados */
  --tinte-2: #f4f8fc;
  --tinte-borde: #dcebf8;
  --chip-azul: var(--chip-azul);
  --tinte-verde: #e9f8ef;
  --tinte-verde-2: #f4fbf6;
  --tinte-verde-borde: #d4efdd;
  --aviso-fondo: #fff4e5;
  --aviso-fondo-2: #fff8ee;
  --aviso-borde: #f3d9b1;
  --aviso-texto: #9a5b00;
  --aviso-texto-2: #6b4200;
  --verde-texto: #0b6e3f;
  --naranja-texto: #8a4500;
  --rojo-texto: #9b1c22;
  --aviso-texto-3: #7a5a2c;
  --aviso-ico: #fde7c4;
  --verde-canal: #128c4b;
  /* claro u oscuro según el celular o la compu: con un modo oscuro propio, los navegadores no oscurecen la página a la fuerza */
  color-scheme: light dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 130px; }
body {
  margin: 0;
  font-family: Geist, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--texto);
  background: var(--fondo);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { color: var(--tinta); letter-spacing: -.025em; line-height: 1.1; margin: 0 0 .45em; font-weight: 750; }
h1, h2 { font-family: var(--titulos); font-variant-numeric: lining-nums; letter-spacing: -.02em !important; }
h1 { font-weight: 900 !important; }
h2 { font-weight: 800 !important; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 700; }
s { color: var(--texto-3); }
code { font-family: ui-monospace, Consolas, monospace; background: var(--fondo-2); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
::selection { background: rgba(103, 178, 230, .35); }
:focus-visible { outline: 3px solid rgba(30, 136, 207, .5); outline-offset: 2px; border-radius: 10px; }

.envoltura { width: min(100% - 32px, var(--ancho)); margin-inline: auto; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ico { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.saltar { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--tinta); color: var(--sobre-tinta); padding: 10px 16px; border-radius: 12px; }
.saltar:focus { top: 12px; }
.num, .tarjeta__precio strong, .mejor-precio__monto, .oferta__precios strong, .cifra strong { font-variant-numeric: tabular-nums; }

/* Texto con el degradado de la marca */
.degradado {
  background: var(--degradado);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brillo-texto 8s var(--suave) infinite alternate;
}
.degradado--claro { background-image: linear-gradient(100deg, #a9d6f5, #67b2e6 50%, #3ea0e6); }
@keyframes brillo-texto { to { background-position: 100% 0; } }

.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--azul-hondo); margin-bottom: 12px; }
.eyebrow--claro { color: var(--azul-claro); }

/* ---------- Botones ---------- */
.boton {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px;
  border: 0; border-radius: 999px;
  background: var(--degradado);
  color: #fff; font-weight: 600; font-size: 15px; white-space: nowrap;
  cursor: pointer; overflow: hidden; isolation: isolate;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 22px -10px rgba(4, 121, 193, .7);
  transition: transform .15s var(--suave), box-shadow .3s var(--suave), background-color .3s;
}
.boton::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .38) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform .8s var(--suave);
}
.boton:hover::before { transform: translateX(130%); }
.boton:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 16px 30px -12px rgba(4, 121, 193, .75); }
.boton:active { transform: scale(.97); transition-duration: .08s; }
.boton .ico { width: 1.1em; height: 1.1em; transition: transform .3s var(--suave); }
.boton:hover .ico:last-child { transform: translateX(2px); }
.boton--oscuro { background: var(--tinta); color: var(--sobre-tinta); box-shadow: 0 8px 20px -10px rgba(11, 12, 15, .6); }
.boton--borde { background: var(--superficie); color: var(--tinta); box-shadow: inset 0 0 0 1px var(--linea-2); }
.boton--borde:hover { box-shadow: inset 0 0 0 1px var(--tinta); }
.boton--borde::before, .boton--claro::before { background: linear-gradient(110deg, transparent 30%, rgba(103, 178, 230, .2) 50%, transparent 70%); }
.boton--claro { background: #ffffff; color: #0b0c0f; box-shadow: 0 10px 30px -10px rgba(103, 178, 230, .55); }
.boton--fantasma { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.boton--fantasma:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); }
.boton--chico { height: 38px; padding: 0 16px; font-size: 14px; }
.boton--grande { height: 56px; padding: 0 28px; font-size: 16px; }

.boton-icono {
  display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none;
  border: 0; border-radius: 50%; background: transparent; color: var(--tinta); cursor: pointer;
  transition: background-color .2s, transform .15s var(--suave);
}
.boton-icono:hover { background: var(--fondo-2); }
.boton-icono:active { transform: scale(.92); }
.boton-icono .ico { width: 22px; height: 22px; }
.boton-icono--borde { background: var(--superficie); box-shadow: inset 0 0 0 1px var(--linea-2); }

.acciones { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.enlace-flecha { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--azul-hondo); white-space: nowrap; }
button.enlace-flecha { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; cursor: pointer; }
.enlace-flecha .ico { transition: transform .3s var(--suave); }
.enlace-flecha:hover .ico { transform: translateX(4px); }

/* ---------- Luz que sigue al cursor ---------- */
[data-luz] { position: relative; }
[data-luz]::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(103, 178, 230, .16), transparent 45%);
  opacity: 0; transition: opacity .35s;
}
[data-luz]:hover::after { opacity: 1; }

/* ---------- Aviso de prueba ---------- */
.aviso-demo {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 7px 16px; background: #0b0c0f; color: #c9cfd8; font-size: 13px; text-align: center;
}
.aviso-demo strong { color: #fff; }
.aviso-demo__punto { width: 7px; height: 7px; border-radius: 50%; background: #ffb020; box-shadow: 0 0 0 0 rgba(255, 176, 32, .6); animation: latido 2s infinite; flex: none; }
@keyframes latido { 70% { box-shadow: 0 0 0 7px rgba(255, 176, 32, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 176, 32, 0); } }

/* ---------- Cabecera (vidrio) ---------- */
.cabecera {
  position: sticky; top: 0; z-index: 50;
  background: var(--vidrio);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  transition: box-shadow .3s;
}
.cabecera--previo { box-shadow: 0 1px 0 var(--borde-suave); }
.con-scroll .cabecera--previo { box-shadow: 0 1px 0 var(--borde-suave), 0 10px 30px -18px rgba(15, 23, 42, .25); }
.cabecera__fila { position: relative; display: flex; align-items: center; gap: 20px; height: 66px; }
.marca { flex: none; display: block; border-radius: 8px; }
.marca .logo { display: block; height: 40px; width: auto; overflow: visible; }

/* ---------- Logo animado (piezas del vector oficial) ---------- */
.logo__mano, .logo__linea, .logo__fino, .logo__grueso, .logo__punto { transform-box: fill-box; }
.logo__mano { transform-origin: 50% 50%; transition: transform .5s var(--suave); }
.logo__linea { transform-origin: 0% 50%; }
.logo__punto { transform-origin: 50% 50%; }
.marca:hover .logo__mano { transform: translateX(-3%); }
.marca:hover .logo__linea { animation: zumbido .55s var(--suave) both; animation-delay: calc(var(--i) * 35ms); }
@keyframes zumbido { 40% { transform: scaleX(1.7) translateX(4%); opacity: .7; } }
.marca:active .logo__punto { animation: toque .45s var(--suave); }
@keyframes toque { 40% { transform: scale(.6); } }

/* Entrada: la mano llega, deja la estela, y el punto de la Q "toca" */
.logo--entrar .logo__mano { animation: mano-llega .95s cubic-bezier(.2, 1.25, .35, 1) both; }
.logo--entrar .logo__linea { animation: estela 1.1s var(--suave) both; animation-delay: calc(var(--i) * 45ms + 120ms); }
.logo--entrar .logo__fino { animation: subir .8s var(--suave) both .25s; }
.logo--entrar .logo__grueso { animation: subir .8s var(--suave) both .35s; }
.logo--entrar .logo__punto { animation: punto .7s cubic-bezier(.3, 1.6, .5, 1) both .75s; }
@keyframes mano-llega { from { transform: translateX(38%) skewX(-14deg); opacity: 0; } 55% { opacity: 1; } }
@keyframes estela { from { transform: scaleX(2.6); opacity: 0; } 35% { opacity: 1; } }
@keyframes subir { from { transform: translateY(30%); opacity: 0; } }
@keyframes punto { from { transform: scale(0); } }
.cabecera .buscador { flex: 1; transition: opacity .3s var(--suave), transform .3s var(--suave); }
.cabecera__nav { display: flex; align-items: center; gap: 4px; margin-left: auto; flex: none; }
.cabecera__nav > a:not(.boton) {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px;
  font-size: 14.5px; font-weight: 550; color: var(--texto-2); transition: color .2s, background-color .2s;
}
.cabecera__nav > a:not(.boton):hover, .cabecera__nav > a[aria-current] { color: var(--tinta); background: var(--fondo-2); }
.cabecera__nav .ico { width: 18px; height: 18px; }
.cabecera__nav .boton { margin-left: 6px; }

/* En la portada (computadora), el buscador de arriba aparece cuando el grande se va de la pantalla */
@media (min-width: 921px) {
  .pag-inicio .cabecera:not(.con-busqueda) .cabecera__fila > .buscador { opacity: 0; transform: translateY(-6px); pointer-events: none; }
}

/* ---------- Franja de rubros y menú de categorías ---------- */
.rubros {
  position: sticky; top: 66px; z-index: 49;
  background: var(--vidrio);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--borde-suave);
  box-shadow: 0 1px 0 var(--borde-suave);
  transition: box-shadow .3s;
}
.con-scroll .rubros { box-shadow: 0 1px 0 var(--borde-suave), 0 10px 30px -18px rgba(15, 23, 42, .25); }
.rubros__fila { display: flex; align-items: center; gap: 4px; padding: 6px 0; }
.rubros__pista { flex: 1; min-width: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.rubros__pista::-webkit-scrollbar { display: none; }
/* si no entran todos, el borde se esfuma: avisa que hay más para correr */
.rubros__pista.mas-der { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
.rubros__pista.mas-izq { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px); mask-image: linear-gradient(90deg, transparent, #000 40px); }
.rubros__pista.mas-izq.mas-der { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 56px), transparent); }
@media (min-width: 921px) {
  /* en la compu, solo los nombres: entran todos los rubros en una fila */
  .rubros__pista .rubro { padding: 9px 12px; }
  .rubros__pista .rubro__ico { display: none; }
}
.rubro {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 6px 12px 6px 6px; border-radius: 999px; font-size: 14px; font-weight: 550; color: var(--texto-2);
  transition: background-color .2s, color .2s, transform .15s var(--suave);
}
.rubro:hover, .rubro.es-mega { background: var(--fondo-2); color: var(--tinta); }
.rubro[aria-current] { background: color-mix(in srgb, var(--c) 12%, var(--superficie)); color: var(--tinta); }
.rubro__ico {
  width: 28px; height: 28px; padding: 6px; border-radius: 50%;
  background: color-mix(in srgb, var(--c) 14%, var(--superficie)); color: var(--c);
}
.rubro--todas {
  border: 0; font: inherit; font-size: 14px; font-weight: 650; cursor: pointer;
  padding-right: 12px; margin-right: 6px; background: var(--tinta); color: var(--sobre-tinta);
  white-space: nowrap;
}
.rubro--todas:hover, .rubro--todas[aria-expanded="true"] { background: color-mix(in srgb, var(--tinta) 86%, var(--fondo)); color: var(--sobre-tinta); }
.rubro--todas:active { transform: scale(.96); }
.rubro--todas .rubro__ico { background: color-mix(in srgb, var(--sobre-tinta) 14%, transparent); color: var(--sobre-tinta); }
.rubro__flecha { width: 14px; height: 14px; margin-left: -2px; transition: transform .3s var(--suave); }
.rubro--todas[aria-expanded="true"] .rubro__flecha { transform: rotate(180deg); }

/* Menú grande (computadora): rubros a la izquierda, sus subcategorías a la derecha */
.mega { position: absolute; top: 100%; left: 0; right: 0; padding-bottom: 28px; }
.mega__caja {
  display: grid; grid-template-columns: 272px minmax(0, 1fr);
  max-height: calc(100vh - 150px); overflow: hidden;
  background: var(--superficie); border-radius: 0 0 26px 26px;
  box-shadow: 0 0 0 1px var(--borde-suave), var(--sombra-3);
  transform-origin: top left;
  animation: aparecer-menu .28s var(--suave);
}
.mega__rubros { padding: 10px; background: var(--fondo-2); overflow-y: auto; border-right: 1px solid var(--linea); }
.mega__rubro {
  display: flex; align-items: center; gap: 12px; padding: 7px 12px 7px 7px; border-radius: 14px;
  font-size: 14.5px; font-weight: 600; color: var(--texto-2);
  transition: background-color .15s, color .15s, box-shadow .15s;
}
.mega__rubro.es-activo { background: var(--superficie); color: var(--tinta); box-shadow: 0 0 0 1px var(--borde-suave), 0 2px 6px -2px rgba(15, 23, 42, .12); }
.mega__ico { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 11px; background: color-mix(in srgb, var(--c) 14%, var(--superficie)); color: var(--c); }
.mega__ico .ico { width: 19px; height: 19px; }
.mega__nombre { flex: 1; min-width: 0; }
.mega__flecha { width: 16px; height: 16px; opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .3s var(--suave); }
.mega__rubro.es-activo .mega__flecha { opacity: .55; transform: none; }
.mega__panel { padding: 22px 28px 26px; overflow-y: auto; animation: mega-panel .3s var(--suave); }
@keyframes mega-panel { from { opacity: 0; transform: translateX(-6px); } }
.mega__titulo { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 0 12px 14px; margin-bottom: 8px; border-bottom: 1px solid var(--linea); }
.mega__titulo p { font-family: var(--titulos); font-size: 1.4rem; font-weight: 750; letter-spacing: -.02em; color: var(--tinta); }
.mega__titulo .enlace-flecha { font-size: 14px; }
.mega__titulo .enlace-flecha .ico { width: 16px; height: 16px; }
.mega__hijas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 16px; }
.mega__hijas a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 10px 12px; border-radius: 12px; font-size: 14.5px; font-weight: 550; color: var(--texto);
  transition: background-color .15s, color .15s;
}
.mega__hijas a:hover { background: color-mix(in srgb, var(--c) 9%, var(--superficie)); color: var(--tinta); }
.mega__hijas small { flex: none; color: var(--texto-3); font-size: 12.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
.mega__marcas { margin-top: 18px; padding: 16px 12px 0; border-top: 1px solid var(--linea); }
.mega__marcas p { margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--texto-3); }
.mega__marcas div { display: flex; flex-wrap: wrap; gap: 6px; }
.mega__marcas a {
  padding: 6px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--texto-2);
  box-shadow: inset 0 0 0 1px var(--linea-2); transition: background-color .15s, color .15s, box-shadow .15s;
}
.mega__marcas a:hover { color: var(--tinta); background: color-mix(in srgb, var(--c) 9%, var(--superficie)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, var(--superficie)); }

/* ---------- Buscador ---------- */
.buscador {
  position: relative; display: flex; align-items: center;
  max-width: 560px; height: 44px; padding: 0 5px 0 15px;
  background: var(--fondo-2); border-radius: 999px;
  box-shadow: inset 0 0 0 1px transparent;
  transition: background-color .2s, box-shadow .2s;
}
.buscador:focus-within { background: var(--superficie); box-shadow: inset 0 0 0 1.5px var(--azul), 0 0 0 4px rgba(30, 136, 207, .14); }
.buscador__lupa { color: var(--texto-3); width: 19px; height: 19px; }
.buscador input {
  flex: 1; min-width: 0; height: 100%; padding: 0 10px; border: 0; background: transparent; outline: 0; font-size: 15px;
}
.buscador input::placeholder { color: var(--texto-3); }
.buscador input::-webkit-search-cancel-button { -webkit-appearance: none; }
.buscador__boton {
  display: grid; place-items: center; flex: none; width: 34px; height: 34px;
  border: 0; border-radius: 50%; background: var(--tinta); color: var(--sobre-tinta); cursor: pointer;
  transition: transform .15s var(--suave), background-color .2s;
}
.buscador__boton:active { transform: scale(.92); }
.buscador__boton .ico { width: 18px; height: 18px; }

.buscador--grande {
  max-width: 640px; height: 66px; padding: 0 8px 0 22px; background: var(--superficie);
  box-shadow: 0 0 0 1px var(--borde-suave), var(--sombra-2);
}
.buscador--grande:focus-within { box-shadow: 0 0 0 1.5px var(--azul), 0 0 0 6px rgba(30, 136, 207, .14), var(--sombra-2); }
.buscador--grande .buscador__lupa { width: 22px; height: 22px; }
.buscador--grande input { font-size: 18px; }
.buscador--grande .buscador__boton {
  position: relative; overflow: hidden; width: auto; height: 50px; padding: 0 24px; border-radius: 999px;
  background: var(--degradado); font-weight: 650; font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 22px -10px rgba(4, 121, 193, .7);
}

.sugerencias {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 60;
  max-height: min(70vh, 520px); overflow: auto; padding: 8px;
  background: var(--superficie);   /* casi blanco dejaba ver los títulos de abajo (en la portada se notaba) */
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border-radius: 22px; box-shadow: 0 0 0 1px var(--borde-suave), var(--sombra-3);
  transform-origin: top center;
  animation: aparecer-menu .28s var(--suave);
}
@keyframes aparecer-menu { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.sugerencias__cats { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 6px 10px; }
.sugerencias__cat { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--fondo-2); font-size: 13.5px; font-weight: 600; transition: background-color .15s; }
.sugerencias__cat:hover { background: var(--fondo-3); }
.sugerencias__cat .ico { width: 15px; height: 15px; color: var(--azul-hondo); flex: none; }
.sugerencias__cat small { font-weight: 500; color: var(--texto-3); }
.sugerencia {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center;
  padding: 8px 10px; border-radius: 14px; cursor: pointer;
}
.sugerencia img { width: 52px; height: 52px; border-radius: 12px; background: var(--foto-borde); object-fit: contain; }
.sugerencia__nombre { font-weight: 600; font-size: 14.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sugerencia__nombre mark { background: none; color: var(--azul-hondo); }
.sugerencia__meta { font-size: 12.5px; color: var(--texto-3); }
.sugerencia__precio { font-weight: 750; text-align: right; white-space: nowrap; }
.sugerencia[aria-selected="true"], .sugerencia:hover { background: var(--fondo-2); }
.sugerencias__todos { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 12px; margin-top: 4px; border-top: 1px solid var(--linea); font-weight: 600; color: var(--azul-hondo); font-size: 14px; }
.sugerencias__vacio { padding: 18px; color: var(--texto-2); text-align: center; font-size: 14.5px; }
.sugerencias__corregida { padding: 8px 10px 2px; font-size: 13px; color: var(--texto-3); }
.sugerencias__corregida strong { color: var(--tinta); }

/* ---------- Menú del celular ---------- */
.menu-movil { position: fixed; inset: 0; z-index: 100; }
.menu-movil__fondo { position: absolute; inset: 0; background: rgba(11, 12, 15, .38); opacity: 0; transition: opacity .35s var(--suave); }
.menu-movil__hoja {
  position: absolute; top: 0; bottom: 0; left: 0; width: min(88vw, 370px);
  display: flex; flex-direction: column; background: var(--superficie); overflow-y: auto;
  padding: 16px 16px calc(24px + env(safe-area-inset-bottom));
  transform: translateX(-102%); transition: transform .45s var(--suave);
  box-shadow: 30px 0 60px -30px rgba(0, 0, 0, .3);
}
.menu-movil.abierto .menu-movil__fondo { opacity: 1; }
.menu-movil.abierto .menu-movil__hoja { transform: none; }
.menu-movil__cabeza { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.menu-movil__logo { height: 34px; width: auto; }
.menu-movil__titulo { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--texto-3); margin: 0 4px 8px; }
.menu-movil__grupo summary {
  display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-radius: 14px;
  font-weight: 600; list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.menu-movil__grupo summary::-webkit-details-marker { display: none; }
.menu-movil__grupo summary:active { background: var(--fondo-2); }
.menu-movil__nombre { flex: 1; min-width: 0; }
.menu-movil__grupo summary small { color: var(--texto-3); font-weight: 500; font-size: 13px; font-variant-numeric: tabular-nums; }
.menu-movil__flecha { width: 18px; height: 18px; color: var(--texto-3); transition: transform .3s var(--suave); }
.menu-movil__grupo[open] .menu-movil__flecha { transform: rotate(180deg); }
.menu-movil__hijas { margin: 2px 0 10px 56px; padding-left: 12px; border-left: 2px solid color-mix(in srgb, var(--c) 22%, var(--superficie)); animation: desplegar .3s var(--suave); }
@keyframes desplegar { from { opacity: 0; transform: translateY(-4px); } }
.menu-movil__hijas a { display: flex; align-items: baseline; gap: 10px; padding: 9px 6px; border-radius: 10px; font-size: 15px; color: var(--texto); }
.menu-movil__hijas a:active { background: var(--fondo-2); }
.menu-movil__hijas small { margin-left: auto; color: var(--texto-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.menu-movil__todo { font-weight: 650; color: var(--azul-hondo) !important; }
.menu-movil__todo .ico { width: 16px; height: 16px; align-self: center; }
.menu-movil__ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: color-mix(in srgb, var(--c) 14%, var(--superficie)); color: var(--c); }
.menu-movil__pie { display: grid; gap: 4px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--linea); }
.menu-movil__pie a:not(.boton) { display: flex; gap: 10px; align-items: center; padding: 10px 6px; font-weight: 550; color: var(--texto-2); }
.menu-movil__pie .boton { margin-top: 8px; }

/* ---------- Portada ---------- */
.portada { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 80px) 0 clamp(40px, 5vw, 64px); }
.portada__aurora { position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none; z-index: -1; }
.portada__aurora span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; will-change: transform; }
.portada__aurora span:nth-child(1) { width: 46vw; height: 46vw; right: -6vw; top: -10vw; background: radial-gradient(circle, #8fc7ee, transparent 65%); animation: deriva-a 22s ease-in-out infinite alternate; }
.portada__aurora span:nth-child(2) { width: 38vw; height: 38vw; right: 22vw; top: 8vw; background: radial-gradient(circle, rgba(4, 121, 193, .45), transparent 65%); animation: deriva-b 26s ease-in-out infinite alternate; }
.portada__aurora span:nth-child(3) { width: 34vw; height: 34vw; left: -10vw; top: 18vw; background: radial-gradient(circle, rgba(103, 178, 230, .45), transparent 65%); animation: deriva-a 30s ease-in-out infinite alternate-reverse; }
@keyframes deriva-a { to { transform: translate3d(-4vw, 3vw, 0) scale(1.08); } }
@keyframes deriva-b { to { transform: translate3d(5vw, -2vw, 0) scale(.94); } }

.portada__rejilla { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.pastilla {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; margin-bottom: 22px;
  border-radius: 999px; background: var(--vidrio); box-shadow: 0 0 0 1px var(--borde-suave), var(--sombra-1);
  font-size: 13.5px; font-weight: 550; color: var(--texto-2);
}
.pastilla__punto { width: 8px; height: 8px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 0 0 rgba(12, 155, 87, .5); animation: latido-verde 2.2s infinite; }
@keyframes latido-verde { 70% { box-shadow: 0 0 0 8px rgba(12, 155, 87, 0); } 100% { box-shadow: 0 0 0 0 rgba(12, 155, 87, 0); } }
.portada__titulo { font-size: clamp(2.7rem, 6.4vw, 5.4rem); font-weight: 820; letter-spacing: -.05em; line-height: .96; margin-bottom: 22px; }
.portada__bajada { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--texto-2); max-width: 34em; margin-bottom: 30px; }
.portada__busqueda { margin-bottom: 18px; }
.portada__pruebas { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--texto-3); }
.portada__pruebas a {
  padding: 5px 12px; border-radius: 999px; background: var(--vidrio); box-shadow: inset 0 0 0 1px var(--linea);
  color: var(--texto-2); font-weight: 550; transition: box-shadow .2s, color .2s, transform .15s;
}
.portada__pruebas a:hover { color: var(--azul-hondo); box-shadow: inset 0 0 0 1px var(--azul-claro); }
.portada__pruebas a:active { transform: scale(.96); }

.portada__demo { position: relative; padding: 30px 10px; perspective: 1400px; }
.demo {
  position: relative; width: min(100%, 470px); margin-left: auto; padding: 18px;
  background: var(--vidrio);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  backdrop-filter: blur(26px) saturate(170%);
  border-radius: 30px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 0 1px rgba(255, 255, 255, .7), var(--sombra-3);
  transform: rotateY(-7deg) rotateX(4deg);
  transform-style: preserve-3d;
  transition: transform .8s var(--suave);
}
.portada__demo:hover .demo { transform: rotateY(-2deg) rotateX(1deg); }
.demo__barra {
  display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; margin-bottom: 14px;
  background: var(--superficie); border-radius: 999px; box-shadow: 0 0 0 1px var(--borde-suave), var(--sombra-1);
  font-size: 16px; color: var(--tinta);
}
.demo__barra .ico { color: var(--texto-3); }
.demo__escribe { white-space: nowrap; overflow: hidden; }
.demo__cursor { width: 2px; height: 22px; background: var(--azul); border-radius: 2px; animation: cursor 1s steps(2) infinite; }
@keyframes cursor { 50% { opacity: 0; } }
.demo__nombre { font-size: 13px; font-weight: 600; color: var(--texto-3); margin: 0 6px 10px; min-height: 1.4em; transition: opacity .3s; }
.demo__lista { position: relative; display: grid; align-content: start; gap: 8px; min-height: 212px; }
.demo__fila {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px;
  padding: 11px 14px; background: var(--superficie); border-radius: 16px; box-shadow: 0 0 0 1px var(--borde-suave), var(--sombra-1);
  will-change: transform;
}
.demo__fila.es-mejor { box-shadow: 0 0 0 2px var(--verde), 0 12px 24px -14px rgba(12, 155, 87, .55); }
.demo__tienda { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo__precio { font-weight: 750; font-size: 16px; font-variant-numeric: tabular-nums; }
.demo__fila.es-mejor .demo__precio { color: var(--verde); }
.demo__sello { font-size: 11.5px; font-weight: 700; color: #fff; background: var(--verde); padding: 3px 8px; border-radius: 999px; }
.demo__fila:not(.es-mejor) .demo__sello { display: none; }
.demo__ahorro { min-height: 44px; margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: var(--verde-fondo); color: var(--verde); font-weight: 650; font-size: 14.5px; display: block; opacity: 0; transform: translateY(6px); transition: opacity .5s var(--suave), transform .5s var(--suave); }
.demo__ahorro.visible { opacity: 1; transform: none; }
.flotante {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: var(--vidrio-fuerte); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-radius: 16px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .8), var(--sombra-2);
  font-size: 13.5px; color: var(--texto-2); white-space: nowrap;
  animation: flotar 6s ease-in-out infinite alternate;
}
.flotante strong { color: var(--tinta); }
.flotante .ico { width: 30px; height: 30px; padding: 6px; border-radius: 10px; }
.flotante--a { left: -10px; top: 10px; }
.flotante--a .ico { background: var(--verde-fondo); color: var(--verde); }
.flotante--b { right: -6px; bottom: -4px; animation-delay: -3s; }
.flotante--b .ico { background: var(--chip-azul); color: var(--azul-hondo); }
@keyframes flotar { to { transform: translateY(-10px); } }

/* ---------- Cifras ---------- */
.cifras { display: grid; grid-template-columns: repeat(4, 1fr); padding: 26px 0; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.cifra { padding: 4px 22px; }
.cifra + .cifra { border-left: 1px solid var(--linea); }
.cifra strong { display: block; font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 800; letter-spacing: -.04em; color: var(--tinta); line-height: 1.1; }
.cifra span { color: var(--texto-2); font-size: 14.5px; }

/* ---------- Secciones ---------- */
.seccion { padding: clamp(56px, 8vw, 96px) 0 0; }
.seccion__cabeza { margin-bottom: 28px; }
.seccion__cabeza h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 800; letter-spacing: -.04em; margin-bottom: 8px; }
.seccion__cabeza p { color: var(--texto-2); font-size: 1.08rem; margin: 0; }
.seccion__cabeza--fila { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.seccion__cabeza--centro { text-align: center; max-width: 680px; margin-inline: auto; margin-bottom: 36px; }

/* Categorías */
.rejilla-categorias { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.categoria-tile {
  overflow: hidden; display: grid; align-content: start; gap: 4px; min-height: 168px; padding: 22px;
  border-radius: 24px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 11%, var(--superficie)) 0%, var(--superficie) 62%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 16%, var(--linea));
  transition: transform .45s var(--suave), box-shadow .45s var(--suave);
}
.categoria-tile:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, var(--linea)), var(--sombra-2); }
.categoria-tile:active { transform: scale(.98); }
.categoria-tile__ico { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 14px; border-radius: 16px; background: var(--c); color: #fff; box-shadow: 0 10px 20px -10px var(--c); }
.categoria-tile__ico .ico { width: 24px; height: 24px; }
.categoria-tile__nombre { font-weight: 700; font-size: 1.12rem; color: var(--tinta); letter-spacing: -.01em; }
.categoria-tile__n { font-size: 14px; color: var(--texto-2); }
.categoria-tile__flecha { position: absolute; right: 20px; bottom: 20px; color: var(--c); transition: transform .4s var(--suave); }
.categoria-tile:hover .categoria-tile__flecha { transform: translateX(4px); }

/* Carrusel */
.carrusel { position: relative; }
.carrusel__pista {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 6px max(16px, calc((100vw - var(--ancho)) / 2)) 22px;
  scroll-padding-inline: max(16px, calc((100vw - var(--ancho)) / 2));
}
.carrusel__pista::-webkit-scrollbar { display: none; }
.carrusel__item { flex: none; width: 250px; scroll-snap-align: start; }
.carrusel__controles { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.carrusel__controles button:disabled { opacity: .35; cursor: default; }

/* ---------- Tarjeta de producto ---------- */
.tarjeta {
  overflow: hidden; height: 100%;
  background: var(--superficie); border-radius: 22px; box-shadow: inset 0 0 0 1px var(--linea);
  transition: transform .45s var(--suave), box-shadow .45s var(--suave);
}
.tarjeta:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px transparent, var(--sombra-2); }
.tarjeta:active { transform: translateY(-2px) scale(.99); transition-duration: .1s; }
.tarjeta__nombre .tarjeta__enlace { display: inline; }
/* Caja cuadrada con el método clásico (padding-top: 100%), no con aspect-ratio: en los iPhone con Safari anterior
   a la última versión, aspect-ratio dentro de una columna flex hacía la caja más ancha que la tarjeta
   (la foto corrida y los botones de favorito y comparar afuera, recortados). */
.tarjeta__imagen { position: relative; flex: none; width: 100%; background: radial-gradient(circle at 50% 42%, var(--foto-centro) 0%, var(--foto-borde) 75%); }
.tarjeta__imagen::before { content: ""; display: block; padding-top: 100%; }
.tarjeta__imagen img { position: absolute; top: 14px; left: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; transition: transform .6s var(--suave); }
.tarjeta:hover .tarjeta__imagen img { transform: scale(1.05); }
/* fotos reales de las tiendas (fondo blanco): se funden con el fondo de la tarjeta */
.tarjeta__imagen img[src^="http"], .producto__imagen img[src^="http"], .comparar__cabeza img[src^="http"] { mix-blend-mode: multiply; }
.tarjeta__imagen .chip { position: absolute; top: 12px; left: 12px; }
.tarjeta__cuerpo { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 18px; }
.tarjeta__marca { margin: 0 0 3px; font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--texto-3); }
.tarjeta__nota { display: inline-block; margin: 0 0 8px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.tarjeta__nota--menos { background: var(--verde-fondo); color: var(--verde-texto); }
.tarjeta__nota--mas { background: var(--naranja-fondo); color: var(--naranja); }
.tarjeta__nota--igual { background: var(--fondo-2); color: var(--texto-2); }
.tarjeta__nombre { font-size: 15px; font-weight: 600; letter-spacing: -.005em; line-height: 1.32; color: var(--tinta); margin: 0 0 10px; min-height: 2.64em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tarjeta__precio { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; margin-top: auto; }
.tarjeta__precio strong { font-size: 1.4rem; font-weight: 800; letter-spacing: -.03em; color: var(--tinta); }
.tarjeta__precio s { font-size: 13px; }
.tarjeta__desde { font-size: 12.5px; color: var(--texto-3); width: 100%; line-height: 1.2; min-height: 1.2em; }
.tarjeta__tiendas { margin: 4px 0 0; font-size: 13px; color: var(--texto-2); display: flex; flex-wrap: wrap; gap: 0 6px; }
.tarjeta__n { font-weight: 650; color: var(--azul-hondo); }
.tarjeta__n::after { content: "·"; margin-left: 6px; color: var(--texto-3); }
.tarjeta__extra { margin: 6px 0 0; display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--azul-hondo); }
.tarjeta__extra .ico { width: 15px; height: 15px; }

.chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.chip .ico { width: 14px; height: 14px; stroke-width: 2.3; }
.chip--baja { background: var(--verde); color: #fff; box-shadow: 0 6px 14px -6px rgba(12, 155, 87, .7); }
.chip--oferta { background: #0b0c0f; color: #fff; }
.chip--tarjeta { background: var(--chip-azul); color: var(--azul-hondo); }
.chip--destacada { background: var(--naranja-fondo); color: var(--naranja); font-size: 11px; padding: 3px 8px; }

.chip-enlace {
  display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 7px 14px; border-radius: 999px;
  background: var(--superficie); box-shadow: inset 0 0 0 1px var(--linea-2); font-size: 14px; font-weight: 600; color: var(--texto-2);
  transition: box-shadow .2s, color .2s, background-color .2s, transform .15s;
}
.chip-enlace .ico { width: 17px; height: 17px; color: var(--c, var(--azul)); }
.chip-enlace small { color: var(--texto-3); font-weight: 500; }
.chip-enlace:hover { color: var(--tinta); box-shadow: inset 0 0 0 1px var(--tinta); }
.chip-enlace:active { transform: scale(.96); }
.chip-enlace.es-activo { background: var(--tinta); color: var(--sobre-tinta); box-shadow: none; }
.chip-enlace.es-activo small { color: var(--tenue-sobre-tinta); }
.chip-dato { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--fondo-2); font-size: 13.5px; color: var(--texto-2); }
.chip-dato .ico { width: 16px; height: 16px; }

/* Ejemplo de ahorro */
.ahorro-ejemplo {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 64px); align-items: center;
  padding: clamp(28px, 5vw, 60px); border-radius: 36px;
  background: radial-gradient(120% 140% at 0% 0%, #eef6fd 0%, var(--fondo-2) 55%, #f8fafc 100%);
  box-shadow: inset 0 0 0 1px var(--linea);
}
.ahorro-ejemplo h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -.04em; }
.ahorro-ejemplo p { color: var(--texto-2); font-size: 1.05rem; margin-bottom: 24px; }
.barras { display: grid; gap: 10px; padding: 22px; background: var(--superficie); border-radius: 26px; box-shadow: var(--sombra-2); }
.barra { display: grid; grid-template-columns: minmax(120px, 170px) 1fr auto; align-items: center; gap: 14px; }
.barra__tienda { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barra__pista { height: 12px; border-radius: 999px; background: var(--fondo-3); overflow: hidden; }
.barra__relleno {
  display: block; height: 100%; width: var(--w); border-radius: inherit;
  background: linear-gradient(90deg, #c4ceda, #a4b2c3);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.1s var(--suave); transition-delay: calc(var(--i) * 90ms + 150ms);
}
.barra.es-mejor .barra__relleno { background: linear-gradient(90deg, #35c47f, var(--verde)); }
.barra.es-mejor .barra__precio { color: var(--verde); }
.barra__precio { font-weight: 750; font-variant-numeric: tabular-nums; min-width: 72px; text-align: right; }
.barras.visible .barra__relleno, html:not(.js) .barra__relleno { transform: none; }

/* Pasos */
.pasos__lista { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: paso; }
.paso { overflow: hidden; padding: 28px; border-radius: 26px; background: var(--superficie); box-shadow: inset 0 0 0 1px var(--linea); }
.paso__n { position: absolute; right: 20px; top: 6px; font-size: 5.5rem; font-weight: 900; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px var(--linea-2); line-height: 1; }
.paso__ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; border-radius: 16px; background: var(--degradado); color: #fff; box-shadow: 0 12px 24px -12px rgba(4, 121, 193, .7); }
.paso__ico .ico { width: 24px; height: 24px; }
.paso h3 { font-size: 1.3rem; font-weight: 750; }
.paso p { color: var(--texto-2); margin: 0; }
.paso:not(:has(.paso__ico)) h3 { margin-top: 56px; }

/* Con tarjeta */
.lista-tarjeta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.fila-tarjeta {
  overflow: hidden; display: grid; grid-template-columns: 68px 1fr auto; gap: 14px; align-items: center;
  padding: 12px 18px 12px 12px; border-radius: 20px; background: var(--superficie); box-shadow: inset 0 0 0 1px var(--linea);
  transition: transform .4s var(--suave), box-shadow .4s var(--suave);
}
.fila-tarjeta:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px transparent, var(--sombra-2); }
.fila-tarjeta img { width: 68px; height: 68px; border-radius: 14px; background: var(--foto-borde); object-fit: contain; }
.fila-tarjeta__texto { min-width: 0; }
.fila-tarjeta__nombre { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--tinta); }
.fila-tarjeta__donde { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--texto-2); margin-top: 3px; }
.fila-tarjeta__donde .ico { width: 15px; height: 15px; color: var(--azul-hondo); }
.fila-tarjeta__precio { display: grid; justify-items: end; gap: 4px; }
.fila-tarjeta__precio strong { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; }

/* Banda oscura */
.banda-oscura, .portada-tiendas { position: relative; overflow: hidden; background: #07090d; color: #b9c1cd; isolation: isolate; }
.banda-oscura { margin-top: clamp(64px, 9vw, 110px); padding: clamp(64px, 9vw, 110px) 0; }
.banda-oscura__brillo { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 60% at 85% 30%, rgba(4, 121, 193, .45), transparent 70%),
    radial-gradient(35% 50% at 10% 90%, rgba(103, 178, 230, .22), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask-image: radial-gradient(90% 90% at 60% 40%, #000 40%, transparent 100%);
          mask-image: radial-gradient(90% 90% at 60% 40%, #000 40%, transparent 100%);
}
.banda-oscura__rejilla, .portada-tiendas__rejilla { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.banda-oscura h2, .portada-tiendas h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; }
.banda-oscura p { font-size: 1.1rem; margin-bottom: 28px; max-width: 34em; }
.panel-mock {
  overflow: hidden; padding: 20px; border-radius: 28px;
  background: rgba(255, 255, 255, .05); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 0 1px rgba(255, 255, 255, .09), 0 40px 80px -30px rgba(0, 0, 0, .7);
  transform: perspective(1400px) rotateY(-6deg) rotateX(3deg); transition: transform .8s var(--suave);
}
.panel-mock:hover { transform: perspective(1400px) rotateY(-1deg); }
.panel-mock::after { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(103, 178, 230, .14), transparent 45%); }
.panel-mock__cabeza { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 14px; color: #dfe4ea; font-weight: 600; }
.panel-mock__vivo { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #5fe0a0; }
.panel-mock__vivo::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5fe0a0; animation: latido-verde 2s infinite; }
.panel-mock__cifras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.panel-mock__cifras div { padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.panel-mock__cifras strong { display: block; color: #fff; font-size: 1.8rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.panel-mock__cifras span { font-size: 12.5px; line-height: 1.3; color: #8e98a6; display: block; margin-top: 4px; }
.panel-mock__tabla { border-radius: 18px; background: rgba(255, 255, 255, .04); padding: 6px 14px; }
.panel-mock__fila { display: grid; grid-template-columns: 1fr 74px 74px; gap: 10px; padding: 10px 0; font-size: 13.5px; color: #dfe4ea; font-variant-numeric: tabular-nums; }
.panel-mock__fila + .panel-mock__fila { border-top: 1px solid rgba(255, 255, 255, .07); }
.panel-mock__fila span:not(:first-child) { text-align: right; }
.panel-mock__fila--cabeza { color: #7d8796; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.panel-mock .sube { color: #ff9a9a; }
.panel-mock .ok { color: #5fe0a0; font-weight: 600; }

/* Preguntas */
.acordeon { max-width: 820px; margin-inline: auto; }
.acordeon details { border-bottom: 1px solid var(--linea); }
.acordeon summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 4px;
  font-size: 1.08rem; font-weight: 650; color: var(--tinta); cursor: pointer; list-style: none;
}
.acordeon summary::-webkit-details-marker { display: none; }
.acordeon__ico { width: 22px; height: 22px; color: var(--texto-3); transition: transform .4s var(--suave), color .2s; }
.acordeon details[open] .acordeon__ico { transform: rotate(45deg); color: var(--azul-hondo); }
.acordeon details p { color: var(--texto-2); padding: 0 40px 22px 4px; margin: 0; animation: abrir .4s var(--suave); }
@keyframes abrir { from { opacity: 0; transform: translateY(-6px); } }

/* Cierre */
.cierre { padding: clamp(64px, 8vw, 100px) 0; }
.cierre__caja {
  display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding: clamp(36px, 6vw, 72px) 20px; border-radius: 40px;
  background: radial-gradient(70% 120% at 50% 0%, var(--tinte) 0%, var(--tinte-2) 55%, var(--superficie) 100%); box-shadow: inset 0 0 0 1px var(--tinte-borde);
}
.cierre__caja h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; letter-spacing: -.045em; }
.cierre__caja p { color: var(--texto-2); font-size: 1.1rem; margin-bottom: 28px; }
.cierre__caja .buscador { width: 100%; }

/* ---------- Pie ---------- */
.pie { background: #07090d; color: #8e98a6; padding: 64px 0 28px; font-size: 14.5px; }
.pie__rejilla { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.pie__marca img { height: 42px; width: auto; margin-bottom: 18px; }
.pie__marca p { margin-bottom: 8px; }
.pie__chico { font-size: 13.5px; color: #6c7684; max-width: 30em; }
.pie__titulo { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.pie ul { display: grid; gap: 9px; }
.pie a { transition: color .2s; }
.pie a:hover { color: #fff; }
.pie__base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; color: #6c7684; }
.pie__base p { margin: 0; }

/* ---------- Encabezados de página ---------- */
.migas { padding: 18px 0 12px; font-size: 13.5px; color: var(--texto-3); }
.migas ol { display: flex; flex-wrap: wrap; gap: 4px 0; }
.migas li + li::before { content: "›"; margin: 0 8px; color: var(--linea-2); }
.migas a:hover { color: var(--azul-hondo); }
.migas [aria-current] { color: var(--texto-2); }
.portada-tiendas .migas, .portada-tiendas .migas [aria-current] { color: #6c7684; }

.cabeza-pagina { padding: 12px 0 28px; }
.cabeza-pagina h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.045em; }
.cabeza-pagina__bajada { font-size: 1.1rem; color: var(--texto-2); max-width: 44em; }
.cabeza-pagina--buscar { padding-top: 32px; }
.cabeza-pagina__buscador { margin-top: 20px; }
.aviso-busqueda {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 9px 14px; border-radius: 14px;
  background: color-mix(in srgb, var(--azul) 8%, var(--superficie)); color: var(--texto-2); font-size: 14.5px;
}
.aviso-busqueda .ico { width: 17px; height: 17px; color: var(--azul-hondo); flex: none; }
.aviso-busqueda strong { color: var(--tinta); }

.cabeza-categoria, .cabeza-tienda { padding-bottom: 26px; margin-bottom: 8px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 9%, var(--fondo)), var(--fondo)); }
.cabeza-categoria__fila, .cabeza-tienda__fila { display: flex; align-items: center; gap: 18px; margin: 8px 0 20px; }
.cabeza-categoria__ico { display: grid; place-items: center; width: 64px; height: 64px; flex: none; border-radius: 20px; background: var(--c); color: #fff; box-shadow: 0 14px 28px -14px var(--c); }
.cabeza-categoria__ico .ico { width: 30px; height: 30px; }
.cabeza-categoria h1, .cabeza-tienda h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 800; letter-spacing: -.045em; margin-bottom: 4px; }
.cabeza-categoria p { margin: 0; color: var(--texto-2); }
.subcategorias { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.subcategorias::-webkit-scrollbar { display: none; }

/* ---------- Listado ---------- */
.listado { display: grid; grid-template-columns: 236px 1fr; gap: 36px; padding: 18px 0 20px; }
.filtros { position: sticky; top: 130px; align-self: start; max-height: calc(100vh - 150px); overflow-y: auto; scrollbar-width: thin; }
.filtros__grupo + .filtros__grupo { margin-top: 26px; }
.filtros__titulo { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--texto-3); margin: 0 0 8px; }
.filtro { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; font-size: 14.5px; color: var(--texto-2); transition: background-color .2s, color .2s; }
.filtro:hover { background: var(--fondo-2); color: var(--tinta); }
.filtro__marca { display: grid; place-items: center; width: 19px; height: 19px; flex: none; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--linea-2); transition: background-color .2s, box-shadow .2s; }
.filtro__marca .ico { width: 13px; height: 13px; stroke-width: 3; color: #fff; }
.filtro.es-activo { color: var(--tinta); font-weight: 600; }
.filtro.es-activo .filtro__marca { background: var(--azul-hondo); box-shadow: none; }
.filtro__nombre { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filtro__n { font-size: 12.5px; color: var(--texto-3); font-variant-numeric: tabular-nums; }
.filtros__cabeza { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }

.barra-orden { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.barra-orden__conteo { margin: 0 auto 0 0; color: var(--texto-2); font-size: 14.5px; font-weight: 550; }
.orden { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--texto-3); }
.orden select {
  height: 38px; padding: 0 34px 0 14px; border: 0; border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--tinta);
  background: var(--superficie) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23586172' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
  box-shadow: inset 0 0 0 1px var(--linea-2); -webkit-appearance: none; appearance: none;
}
.rejilla-productos { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.rejilla-productos--4 { grid-template-columns: repeat(4, 1fr); }

.paginacion { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 36px 0 8px; }
.paginacion a, .paginacion span { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 8px; border-radius: 999px; font-weight: 600; font-variant-numeric: tabular-nums; }
.paginacion a { box-shadow: inset 0 0 0 1px var(--linea-2); transition: box-shadow .2s; }
.paginacion a:hover { box-shadow: inset 0 0 0 1px var(--tinta); }
.paginacion__actual { background: var(--tinta); color: var(--sobre-tinta); }
.paginacion .ico { width: 18px; height: 18px; }

.vacio { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 4px; padding: 56px 20px; border-radius: 28px; background: var(--fondo-2); color: var(--texto-2); }
.vacio h2 { font-size: 1.4rem; }
.vacio__ico { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 10px; border-radius: 20px; background: var(--superficie); color: var(--azul-hondo); box-shadow: var(--sombra-1); }
.vacio__ico .ico { width: 28px; height: 28px; }
.vacio--grande { margin: 8px 0 40px; padding: 64px 24px; }
.chips-categorias { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }

.texto-seo { max-width: 780px; margin: 56px 0 8px; color: var(--texto-2); }
.texto-seo h2 { font-size: 1.3rem; font-weight: 700; }

/* ---------- Producto ---------- */
.producto { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4.5vw, 64px); align-items: start; padding: 8px 0 12px; }
.producto__galeria { position: sticky; top: 130px; }
.producto__imagen {
  overflow: hidden; aspect-ratio: 1; padding: clamp(20px, 4vw, 48px); border-radius: 36px;
  background: radial-gradient(circle at 50% 40%, var(--foto-centro) 0%, var(--foto-borde) 72%); box-shadow: inset 0 0 0 1px var(--linea);
}
.producto__imagen img { width: 100%; height: 100%; object-fit: contain; animation: entrar-foto .9s var(--suave) both; }
@keyframes entrar-foto { from { opacity: 0; transform: scale(.94) translateY(10px); } }
.producto__nota-imagen { margin: 10px 0 0; text-align: center; font-size: 12.5px; color: var(--texto-3); }
.producto__marca { margin: 6px 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--azul-hondo); }
.producto__titulo { font-size: clamp(1.75rem, 3.2vw, 2.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; }
.producto__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 22px; }

.mejor-precio {
  padding: 24px; border-radius: 28px;
  background: linear-gradient(180deg, var(--superficie) 0%, var(--tinte-2) 100%);
  box-shadow: inset 0 0 0 1px var(--linea), var(--sombra-2);
}
.mejor-precio__etiqueta { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--verde); }
.mejor-precio__etiqueta::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--verde); animation: latido-verde 2.2s infinite; }
.mejor-precio__fila { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.mejor-precio__monto { font-size: clamp(2.5rem, 4.6vw, 3.5rem); font-weight: 820; letter-spacing: -.05em; color: var(--tinta); line-height: 1.05; }
.mejor-precio__antes { font-size: 1.15rem; }
.mejor-precio__donde { margin: 6px 0 0; color: var(--texto-2); }
.mejor-precio__donde a { font-weight: 650; color: var(--tinta); text-decoration: underline; text-decoration-color: var(--linea-2); text-underline-offset: 3px; }
.mejor-precio__tarjeta { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-weight: 600; color: var(--azul-hondo); font-size: 14.5px; }
.mejor-precio__ahorro { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 11px 14px; border-radius: 14px; background: var(--verde-fondo); color: var(--verde-texto); font-size: 14.5px; }
.mejor-precio__ahorro .ico { color: var(--verde); }
.mejor-precio__posicion { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0 0; padding: 10px 14px; border-radius: 14px; background: var(--fondo-2); color: var(--texto-2); font-size: 14px; line-height: 1.45; }
.mejor-precio__posicion .ico { width: 18px; height: 18px; margin-top: 1px; color: var(--azul-hondo); flex: none; }
.mejor-precio__posicion strong { color: var(--tinta); }
.mejor-precio__posicion a { color: var(--azul-hondo); font-weight: 600; }
.mejor-precio .acciones { margin-top: 20px; }
.mejor-precio--vacio p { color: var(--texto-2); }

.momento { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 13px 16px; border-radius: 18px; font-size: 14.5px; }
.momento p { margin: 0; }
.momento a { font-weight: 650; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.momento .ico { width: 22px; height: 22px; }
.momento--bueno { background: var(--verde-fondo); color: var(--verde-texto); }
.momento--alto { background: var(--naranja-fondo); color: var(--naranja-texto); }
.momento--normal { background: var(--fondo-2); color: var(--texto-2); }

.bloque { margin: clamp(44px, 6vw, 72px) 0 0; }
.bloque__cabeza { margin-bottom: 18px; }
.bloque__cabeza h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: 4px; }
.bloque__cabeza p { color: var(--texto-2); margin: 0; }
.bloque__cabeza--fila { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }

.ofertas { display: grid; gap: 10px; }
.oferta {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 170px; align-items: center; gap: 18px;
  padding: 16px 18px; border-radius: 22px; background: var(--superficie); box-shadow: inset 0 0 0 1px var(--linea);
  animation: entrar .6s var(--suave) both; animation-delay: calc(var(--i) * 55ms);
  transition: box-shadow .3s var(--suave), transform .3s var(--suave);
}
.oferta:hover { box-shadow: inset 0 0 0 1px var(--linea-2), var(--sombra-1); }
@keyframes entrar { from { opacity: 0; transform: translateY(10px); } }
.oferta.es-mejor { box-shadow: inset 0 0 0 2px var(--verde), 0 16px 32px -20px rgba(12, 155, 87, .6); }
.oferta.sin-stock { opacity: .55; }
.oferta__tienda { display: flex; align-items: center; gap: 14px; min-width: 0; }
.oferta__nombre { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0; font-weight: 650; color: var(--tinta); }
.oferta__nombre a:hover { text-decoration: underline; text-underline-offset: 3px; }
.oferta__meta { margin: 2px 0 0; font-size: 13px; color: var(--texto-3); }
.oferta__meta .pocas { color: var(--naranja); font-weight: 650; }
.oferta__precios { display: grid; justify-items: end; gap: 2px; text-align: right; }
.oferta__precios strong { font-size: 1.35rem; font-weight: 800; letter-spacing: -.03em; color: var(--tinta); line-height: 1.15; }
.oferta.es-mejor .oferta__precios strong { color: var(--verde); }
.oferta__precios s { font-size: 13px; }
.oferta__sello { font-size: 11.5px; font-weight: 700; color: #fff; background: var(--verde); padding: 3px 9px; border-radius: 999px; }
.oferta__dif { font-size: 12.5px; color: var(--rojo); font-weight: 600; }
.oferta__tarjeta { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--azul-hondo); }
.oferta__tarjeta .ico { width: 15px; height: 15px; }
.oferta__accion { display: flex; justify-content: flex-end; }
.oferta__accion .boton { width: 100%; }
.oferta__agotado { font-size: 14px; font-weight: 600; color: var(--texto-3); }
.sello-verificada { display: inline-flex; color: var(--azul); }
.sello-verificada .ico { width: 18px; height: 18px; }
.nota { display: flex; gap: 10px; align-items: flex-start; margin: 14px 4px 0; font-size: 13px; color: var(--texto-3); }
.nota .ico { width: 18px; height: 18px; margin-top: 1px; }

.avatar {
  display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px;
  background: var(--c); color: #fff; font-weight: 800; font-size: 16px; letter-spacing: -.02em;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06), 0 8px 18px -10px var(--c);
}
.avatar--chico { width: 30px; height: 30px; border-radius: 9px; font-size: 12.5px; }
.avatar--grande { width: 84px; height: 84px; border-radius: 26px; font-size: 30px; }

.historial__grafico { position: relative; padding: 18px 12px 8px; border-radius: 26px; background: var(--superficie); box-shadow: inset 0 0 0 1px var(--linea); }
.grafico { width: 100%; height: auto; overflow: visible; }
.grafico .g-guia { stroke: var(--fondo-3); stroke-width: 1; }
.grafico .g-eje { fill: var(--texto-3); font-size: 12px; font-family: inherit; font-variant-numeric: tabular-nums; }
.grafico .g-linea { fill: none; stroke: var(--azul); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
html.js .historial__grafico:not(.visible) .g-linea { stroke-dashoffset: 1; }
html.js .historial__grafico.visible .g-linea { transition: stroke-dashoffset 1.6s var(--suave); }
.grafico .g-punto { fill: var(--superficie); stroke: var(--azul); stroke-width: 3; }
.grafico .g-cruz { stroke: var(--linea-2); stroke-width: 1.5; stroke-dasharray: 4 4; }
.grafico .g-foco { fill: var(--azul); stroke: var(--superficie); stroke-width: 3; }
.grafico__globo {
  position: absolute; z-index: 2; pointer-events: none; transform: translate(-50%, calc(-100% - 14px));
  padding: 7px 11px; border-radius: 12px; background: var(--tinta); color: var(--sobre-tinta); font-size: 13px; white-space: nowrap;
  box-shadow: var(--sombra-2);
}
.grafico__globo strong { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
.grafico__globo span { color: var(--tenue-sobre-tinta); }
.segmentado { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--fondo-2); }
.segmentado button { border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 550; color: var(--texto-2); cursor: pointer; transition: background-color .25s, color .25s, box-shadow .25s; }
.segmentado button[aria-pressed="true"] { background: var(--superficie); color: var(--tinta); font-weight: 650; box-shadow: var(--sombra-1); }
.historial__cifras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0 0; }
.historial__cifras div { padding: 14px 18px; border-radius: 18px; background: var(--fondo-2); }
.historial__cifras dt { font-size: 13px; color: var(--texto-3); }
.historial__cifras dd { margin: 0; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.alerta__caja {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 22px; align-items: start;
  padding: clamp(22px, 4vw, 34px); border-radius: 32px;
  background: radial-gradient(120% 140% at 0% 0%, var(--tinte) 0%, var(--tinte-2) 50%, var(--superficie) 100%);
  box-shadow: inset 0 0 0 1px var(--tinte-borde);
}
.alerta__ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--degradado); color: #fff; box-shadow: 0 14px 28px -14px rgba(4, 121, 193, .8); grid-row: span 3; }
.alerta__ico .ico { width: 26px; height: 26px; animation: campana 4s var(--suave) infinite; transform-origin: 50% 10%; }
@keyframes campana { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(14deg); } 88% { transform: rotate(-12deg); } 92% { transform: rotate(6deg); } }
.alerta__texto h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: 4px; }
.alerta__texto p { color: var(--texto-2); margin-bottom: 14px; }
.alerta__form { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr) auto; gap: 10px; align-items: end; }
.alerta__chico { margin: 10px 0 0; font-size: 12.5px; color: var(--texto-3); }
.alerta__chico a { text-decoration: underline; }

.campo { display: grid; gap: 6px; }
.campo > span { font-size: 13px; font-weight: 600; color: var(--texto-2); }
.campo input, .campo select, .campo textarea, .campo__con-moneda {
  width: 100%; min-height: 48px; padding: 0 14px; border: 0; border-radius: 14px; background: var(--superficie);
  box-shadow: inset 0 0 0 1px var(--linea-2); font-size: 16px; outline: 0; transition: box-shadow .2s;
}
.campo textarea { padding: 12px 14px; resize: vertical; line-height: 1.5; }
.campo select { -webkit-appearance: none; appearance: none; background: var(--superficie) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23586172' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; }
.campo input:focus, .campo select:focus, .campo textarea:focus, .campo__con-moneda:focus-within { box-shadow: inset 0 0 0 1.5px var(--azul), 0 0 0 4px rgba(30, 136, 207, .14); }
.campo input.invalido { box-shadow: inset 0 0 0 1.5px var(--rojo); }
.campo__con-moneda { display: flex; align-items: center; gap: 6px; }
.campo__con-moneda em { font-style: normal; color: var(--texto-3); font-weight: 600; }
.campo__con-moneda input { min-height: 46px; padding: 0; box-shadow: none !important; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.aviso { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 16px; font-size: 14.5px; font-weight: 550; }
.aviso p { margin: 0; }
.aviso .ico { width: 20px; height: 20px; margin-top: 1px; }
.aviso--ok { background: var(--verde-fondo); color: var(--verde-texto); }
.aviso--error { background: var(--rojo-fondo); color: var(--rojo-texto); margin-bottom: 12px; display: grid; }
.aviso--grande { padding: 22px; font-size: 1rem; }
.aviso--grande .ico { width: 28px; height: 28px; }
.aviso--grande strong { font-size: 1.2rem; }
.alerta__caja > .aviso { grid-column: 2; }

.ficha__rejilla { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; }
.ficha__descripcion { color: var(--texto-2); }
.ficha__tabla div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--linea); font-size: 15px; }
.ficha__tabla dt { color: var(--texto-3); }
.ficha__tabla dd { margin: 0; font-weight: 600; }

.barra-compra {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--vidrio-fuerte); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 -1px 0 rgba(15, 23, 42, .07), 0 -10px 30px -20px rgba(15, 23, 42, .3);
  transform: translateY(110%); transition: transform .45s var(--suave);
}
.barra-compra.visible { transform: none; }
.barra-compra strong { display: block; font-size: 1.25rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.barra-compra span { font-size: 13px; color: var(--texto-2); }

/* ---------- Tiendas ---------- */
.cabeza-tienda__texto p { color: var(--texto-2); margin: 0 0 4px; }
.cabeza-tienda__web { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.cabeza-tienda h1 { display: flex; align-items: center; gap: 10px; }
.cabeza-tienda .eyebrow { margin-bottom: 4px; }
.cifras-tienda { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; }
.cifras-tienda div { padding: 16px 20px; border-radius: 20px; background: var(--superficie); box-shadow: inset 0 0 0 1px var(--linea); }
.cifras-tienda dt { font-size: 13px; color: var(--texto-3); }
.cifras-tienda dd { margin: 0; font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; color: var(--tinta); }

.titulo-rubro { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; font-weight: 750; }
.titulo-rubro small { font-size: 13px; font-weight: 650; color: var(--texto-2); background: var(--fondo-2); padding: 3px 10px; border-radius: 999px; }
.rejilla-tiendas { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.tarjeta-tienda {
  overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 22px;
  background: var(--superficie); box-shadow: inset 0 0 0 1px var(--linea); transition: transform .4s var(--suave), box-shadow .4s var(--suave);
}
.tarjeta-tienda:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px transparent, var(--sombra-2); }
.tarjeta-tienda__texto { display: grid; min-width: 0; }
.tarjeta-tienda__texto strong { display: flex; align-items: center; gap: 6px; color: var(--tinta); }
.tarjeta-tienda__texto span { font-size: 13.5px; color: var(--texto-2); }
.tarjeta-tienda__flecha { margin-left: auto; color: var(--texto-3); transition: transform .3s var(--suave), color .3s; }
.tarjeta-tienda:hover .tarjeta-tienda__flecha { transform: translateX(4px); color: var(--c); }
.ico--verificado { width: 17px; height: 17px; color: var(--azul); }

.reclamar {
  overflow: hidden; display: flex; align-items: center; gap: 22px; margin: clamp(44px, 6vw, 72px) 0 0; padding: 24px 28px; border-radius: 28px;
  background: radial-gradient(120% 160% at 0% 0%, var(--tinte), var(--tinte-2) 60%); box-shadow: inset 0 0 0 1px var(--tinte-borde);
}
.reclamar h2 { font-size: 1.3rem; margin-bottom: 4px; }
.reclamar p { margin: 0; color: var(--texto-2); }
.reclamar .boton { margin-left: auto; }
.reclamar__ico { display: grid; place-items: center; width: 54px; height: 54px; flex: none; border-radius: 18px; background: var(--degradado); color: #fff; }
.reclamar__ico .ico { width: 26px; height: 26px; }

.pestanas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pestanas a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 14.5px; box-shadow: inset 0 0 0 1px var(--linea-2); color: var(--texto-2); transition: box-shadow .2s, color .2s; }
.pestanas a:hover { color: var(--tinta); box-shadow: inset 0 0 0 1px var(--tinta); }
.pestanas .ico { width: 18px; height: 18px; }
.lista-tarjeta--completa { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }

/* ---------- Para tiendas ---------- */
.portada-tiendas { padding: 8px 0 clamp(64px, 9vw, 110px); }
.portada-tiendas h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); margin-top: 8px; }
.portada-tiendas__bajada { font-size: 1.15rem; max-width: 32em; margin-bottom: 28px; }
.portada-tiendas__dato { display: flex; align-items: center; gap: 8px; margin: 24px 0 0; font-size: 14px; color: #8e98a6; }
.panel-mock--grande { padding: 22px; }

.rejilla-beneficios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.beneficio { overflow: hidden; padding: 28px; border-radius: 26px; background: var(--superficie); box-shadow: inset 0 0 0 1px var(--linea); }
.beneficio h2, .beneficio h3 { font-size: 1.25rem; font-weight: 750; margin-bottom: 6px; }
.beneficio p { color: var(--texto-2); margin: 0; }
.beneficio__ico { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 18px; border-radius: 16px; background: var(--chip-azul); color: var(--azul-hondo); }
.beneficio__ico .ico { width: 24px; height: 24px; }
.rejilla-beneficios--texto { margin: 32px 0 16px; }

.rejilla-planes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: 28px; background: var(--superficie); box-shadow: inset 0 0 0 1px var(--linea); }
.plan ul { display: grid; gap: 10px; margin: 18px 0 26px; color: var(--texto-2); font-size: 15px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li .ico { color: var(--verde); width: 19px; height: 19px; margin-top: 2px; stroke-width: 2.4; }
.plan .boton { margin-top: auto; }
.plan__nombre { margin: 0 0 4px; font-weight: 700; color: var(--texto-2); }
.plan__precio { margin: 0; font-size: 2.1rem; font-weight: 820; letter-spacing: -.04em; color: var(--tinta); }
.plan--destacado { background: linear-gradient(var(--superficie), var(--superficie)) padding-box, var(--degradado) border-box; border: 2px solid transparent; box-shadow: var(--sombra-3); }
.plan__cinta { position: absolute; top: 18px; right: 18px; margin: 0; padding: 4px 10px; border-radius: 999px; background: var(--degradado); color: #fff; font-size: 12px; font-weight: 700; }

.formulario-tienda__caja { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 4vw, 56px); padding: clamp(24px, 5vw, 52px); border-radius: 36px; background: var(--fondo-2); }
.formulario-tienda__texto h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.04em; }
.formulario-tienda__texto p { color: var(--texto-2); }
.formulario-tienda__contacto a { font-weight: 650; color: var(--azul-hondo); }
.formulario { display: grid; gap: 14px; }
.formulario__fila { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.formulario .boton { justify-self: start; }
.formulario__chico { margin: 0; font-size: 12.5px; color: var(--texto-3); }
.formulario__chico a { text-decoration: underline; }

/* ---------- Textos largos ---------- */
.texto-largo { max-width: 800px; padding-bottom: 24px; }
.texto-largo h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); font-weight: 820; letter-spacing: -.045em; margin-top: 8px; }
.texto-largo__bajada { font-size: 1.2rem; color: var(--texto-2); }
.texto-largo h2 { font-size: 1.4rem; font-weight: 750; margin-top: 40px; }
.texto-largo p, .texto-largo li { color: var(--texto-2); }
.texto-largo ul { list-style: disc; padding-left: 1.3em; display: grid; gap: 8px; margin-bottom: 1em; }
.texto-largo a { color: var(--azul-hondo); text-decoration: underline; text-underline-offset: 3px; }
.texto-largo__fecha { margin-top: 40px; font-size: 13.5px; color: var(--texto-3) !important; }
.texto-largo .rejilla-beneficios h2 { margin-top: 0; font-size: 1.2rem; }
.texto-largo .acordeon { margin-inline: 0; }

/* ---------- 404 ---------- */
.error-404 { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding: clamp(48px, 8vw, 96px) 0; }
.error-404__codigo { margin: 0; font-size: clamp(6rem, 18vw, 11rem); font-weight: 900; letter-spacing: -.07em; line-height: .9; background: var(--degradado); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-404 h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -.04em; }
.error-404 p { color: var(--texto-2); }
.error-404__buscador { width: min(100%, 640px); margin: 10px 0 24px; }
.error-404__buscador .buscador { max-width: none; }

/* ---------- Panel interno ---------- */
.panel { padding: 32px 0 64px; }
.panel__acceso { display: grid; gap: 14px; max-width: 420px; margin: 40px auto; padding: 32px; border-radius: 28px; background: var(--fondo-2); }
.panel__cabeza { display: flex; justify-content: space-between; align-items: center; }
.panel__cifras { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 16px 0 28px; }
.panel__cifras div { padding: 16px; border-radius: 18px; background: var(--fondo-2); }
.panel__cifras strong { display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; }
.panel__cifras span { font-size: 13px; color: var(--texto-2); }
.panel__bloque { margin-bottom: 28px; }
.panel__bloque h2 { font-size: 1.15rem; }
.panel__dos { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel__ayuda { color: var(--texto-3); font-size: 13.5px; }
.tabla-envuelta { overflow-x: auto; }
.panel table { width: 100%; border-collapse: collapse; font-size: 14px; }
.panel th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--texto-3); padding: 8px 10px; border-bottom: 1px solid var(--linea-2); }
.panel td { padding: 10px; border-bottom: 1px solid var(--linea); vertical-align: top; }
.panel td a { color: var(--azul-hondo); }

/* ---------- Aviso flotante ---------- */
.tostada {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 120;
  padding: 12px 18px; border-radius: 999px; background: var(--tinta); color: var(--sobre-tinta); font-weight: 600; font-size: 14.5px;
  box-shadow: var(--sombra-2); transform: translate(-50%, 20px); opacity: 0; transition: transform .4s var(--suave), opacity .4s var(--suave);
}
.tostada.visible { transform: translate(-50%, 0); opacity: 1; }
.bandeja-comparar:not([hidden]) ~ .tostada { bottom: calc(100px + env(safe-area-inset-bottom)); }

/* ---------- Aparecer al hacer scroll ---------- */
html.js .revelar { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--suave), transform .8s var(--suave); transition-delay: var(--d, 0s); }
html.js .revelar.visible { opacity: 1; transform: none; }

/* ==========================================================================
   Funciones nuevas (ideas de Buscapé, JáCotei, Escorrega o Preço y Bondfaro)
   ========================================================================== */

/* ---------- Tarjeta: enlace que cubre todo, favoritos, comparar, sellos y "Ir a la tienda" ---------- */
.tarjeta { display: flex; flex-direction: column; }
.tarjeta__enlace { color: inherit; }
.tarjeta__enlace::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.tarjeta__enlace:focus-visible { outline: none; }
.tarjeta:has(.tarjeta__enlace:focus-visible) { box-shadow: inset 0 0 0 2px var(--azul), var(--sombra-2); }
.tarjeta__sellos { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.tarjeta__imagen .tarjeta__sellos .chip { position: static; }
.chip--minimo { background: var(--chip-azul); color: var(--azul-hondo); }
/* medicamentos con receta: se comparan, con su cartel, y no se destacan */
.chip--receta { background: var(--aviso-fondo); color: var(--aviso-texto); box-shadow: inset 0 0 0 1px var(--aviso-borde); }
.chip--receta .ico { width: 13px; height: 13px; }
.chip--receta-quiza { background: #f6f7f9; color: var(--texto-2); box-shadow: inset 0 0 0 1px var(--linea-2); }
.aviso-receta { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 18px; padding: 14px 16px; border-radius: 18px;
  background: var(--aviso-fondo-2); box-shadow: inset 0 0 0 1px var(--aviso-borde); color: var(--aviso-texto-2); }
.aviso-receta strong { display: block; color: var(--aviso-texto-2); font-size: 15px; }
.aviso-receta p { margin: 2px 0 0; font-size: 14px; line-height: 1.5; color: var(--aviso-texto-3); }
.aviso-receta__ico { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--aviso-ico); color: var(--aviso-texto); }
.aviso-receta__ico .ico { width: 20px; height: 20px; }
.aviso-receta--quiza { background: var(--fondo-2); box-shadow: inset 0 0 0 1px var(--linea); color: var(--texto); }
.aviso-receta--quiza strong { color: var(--tinta); }
.aviso-receta--quiza p { color: var(--texto-2); }
.aviso-receta--quiza .aviso-receta__ico { background: #e9edf2; color: var(--texto-2); }
.tarjeta__acciones {
  position: absolute; top: 10px; right: 10px; z-index: 2; display: flex; flex-direction: column; gap: 6px;
  /* ancho explícito: Safari (y todo navegador de iPhone) lo calculaba en cero y los botones quedaban afuera de la tarjeta */
  width: 36px;
}
.tarjeta__accion {
  display: flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer; -webkit-appearance: none; appearance: none;
  background: rgba(255, 255, 255, .92); color: var(--texto-2); box-shadow: 0 2px 8px rgba(16, 24, 40, .12);
  transition: transform .2s var(--suave), color .2s, background-color .2s, opacity .25s;
}
.tarjeta__accion .ico { width: 18px; height: 18px; }
.tarjeta__accion:hover { color: var(--tinta); transform: scale(1.08); }
.tarjeta__accion:active { transform: scale(.9); }
.tarjeta__accion[data-favorito][aria-pressed="true"] { color: #e5484d; }
.tarjeta__accion[data-favorito][aria-pressed="true"] .ico { fill: currentColor; }
.tarjeta__accion[data-comparar][aria-pressed="true"] { background: var(--azul-hondo); color: #fff; }
@media (hover: hover) and (pointer: fine) and (min-width: 921px) {
  .tarjeta__accion:not([aria-pressed="true"]) { opacity: 0; }
  .tarjeta:hover .tarjeta__accion, .tarjeta:focus-within .tarjeta__accion { opacity: 1; }
}
.latido { animation: latido-corazon .45s var(--suave); }
@keyframes latido-corazon { 40% { transform: scale(1.3); } }
.tarjeta__extra--cuotas { color: var(--verde); }
.tarjeta__pie { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--linea); }
.tarjeta__ir {
  display: inline-flex; align-items: center; gap: 5px; min-width: 0; padding: 6px 11px; border-radius: 999px;
  background: var(--chip-azul); color: var(--azul-hondo); font-size: 12.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background-color .2s, color .2s;
}
.tarjeta__ir:hover { background: var(--azul-hondo); color: #fff; }
.tarjeta__ir span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tarjeta__ir .ico { width: 13px; height: 13px; flex: none; }
.tarjeta__ver { font-size: 12.5px; font-weight: 600; color: var(--texto-2); white-space: nowrap; }
.tarjeta__ver:hover { color: var(--tinta); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Atajos y filtros activos ---------- */
.atajos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
/* tipos de producto como chips grandes (Mercado Libre: "Placas de video · Motherboards · Memorias…") */
.seccion__ico {
  display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; margin-right: .35em; vertical-align: -.12em;
  border-radius: .35em; background: color-mix(in srgb, var(--c) 14%, var(--superficie)); color: var(--c);
}
.seccion__ico .ico { width: .7em; height: .7em; }
.tipos-rapidos { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 14px; padding: 2px 0 4px; }
.tipos-rapidos::-webkit-scrollbar { display: none; }
.tipo-rapido {
  display: inline-flex; align-items: baseline; gap: 7px; flex: none; padding: 9px 15px; border-radius: 14px;
  background: var(--superficie); box-shadow: inset 0 0 0 1px var(--linea-2); font-size: 14px; font-weight: 600; color: var(--tinta);
  transition: box-shadow .15s, background-color .15s, transform .15s var(--suave);
}
.tipo-rapido:hover { background: var(--fondo-2); box-shadow: inset 0 0 0 1px var(--texto-3); }
.tipo-rapido:active { transform: scale(.97); }
.tipo-rapido.es-activo { background: var(--tinta); color: var(--sobre-tinta); box-shadow: none; }
.tipos-rapidos--rubros { margin-top: 22px; }
.tipo-rapido small { font-size: 12px; font-weight: 500; color: var(--texto-3); font-variant-numeric: tabular-nums; }
.atajos__titulo { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--texto-3); margin-right: 2px; }
.atajos__titulo .ico { width: 15px; height: 15px; color: #f5a524; }
.atajo {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px;
  background: var(--superficie); box-shadow: inset 0 0 0 1px var(--linea-2); font-size: 13.5px; font-weight: 600; color: var(--texto-2);
  transition: box-shadow .2s, color .2s, background-color .2s, transform .15s;
}
.atajo .ico { width: 16px; height: 16px; color: var(--azul-hondo); }
.atajo small { font-size: 12px; color: var(--texto-3); font-weight: 600; }
.atajo:hover { color: var(--tinta); box-shadow: inset 0 0 0 1px var(--tinta); }
.atajo:active { transform: scale(.96); }
.atajo.es-activo { background: var(--tinta); color: var(--sobre-tinta); box-shadow: none; }
.atajo.es-activo .ico, .atajo.es-activo small { color: var(--tenue-sobre-tinta); }
.activos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 16px; }
.activo { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 12px; border-radius: 999px; background: var(--chip-azul); color: var(--azul-hondo); font-size: 13px; font-weight: 650; }
.activo .ico { width: 14px; height: 14px; }
.activo:hover { background: #d6e9f8; }
.activos__limpiar { font-size: 13px; font-weight: 600; color: var(--texto-2); text-decoration: underline; text-underline-offset: 3px; }
.filtro__marca--redonda { border-radius: 50%; }
.filtros__grupo:not(.ver-todo) .filtro--extra { display: none; }
.filtros__mas { margin: 6px 0 0 8px; padding: 0; border: 0; background: none; font-size: 13.5px; font-weight: 650; color: var(--azul-hondo); cursor: pointer; }
.rango-libre { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding-left: 8px; color: var(--texto-3); }
.rango-libre input {
  width: 100%; min-width: 0; height: 38px; padding: 0 10px; border: 0; border-radius: 10px; background: var(--superficie);
  box-shadow: inset 0 0 0 1px var(--linea-2); font-size: 14px; outline: 0; -moz-appearance: textfield;
}
.rango-libre input:focus { box-shadow: inset 0 0 0 1.5px var(--azul); }
.rango-libre label { flex: 1; min-width: 0; }
.rango-libre .boton-icono { width: 38px; height: 38px; }
.rango-libre .boton-icono .ico { width: 18px; height: 18px; }

/* ---------- Producto: secciones, acciones secundarias, cuotas ---------- */
.secciones {
  position: sticky; top: 113px; z-index: 30; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  margin: 28px 0 0; padding: 6px; border-radius: 999px;
  background: var(--vidrio-fuerte); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 0 0 1px var(--borde-suave), 0 8px 24px -16px rgba(15, 23, 42, .3);
}
.secciones::-webkit-scrollbar { display: none; }
.secciones a { flex: none; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--texto-2); transition: background-color .25s, color .25s; }
.secciones a:hover { color: var(--tinta); }
.secciones a.es-activo { background: var(--tinta); color: var(--sobre-tinta); }
.mejor-precio__secundarias { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; }
.enlace-accion { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: none; font-size: 14px; font-weight: 600; color: var(--texto-2); cursor: pointer; transition: color .2s; }
.enlace-accion .ico { width: 18px; height: 18px; }
.enlace-accion:hover { color: var(--tinta); }
.enlace-accion[data-favorito][aria-pressed="true"] { color: #e5484d; }
.enlace-accion[data-favorito][aria-pressed="true"] .ico { fill: currentColor; }
.enlace-accion[data-comparar][aria-pressed="true"] { color: var(--azul-hondo); }
.oferta__cuotas { font-size: 12.5px; font-weight: 600; color: var(--texto-2); }
.oferta__cuotas.es-sin-recargo { color: var(--verde); }
.producto__marca a { color: inherit; }
.producto__marca a:hover { text-decoration: underline; text-underline-offset: 3px; }
.acordeon--chico summary { font-size: 1rem; padding: 16px 4px; }
.acordeon--chico details p { font-size: .97rem; }
.acordeon--ancho { max-width: none; }
.bloque--dos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.bloque--dos .texto-seo { margin: 0; }
.titulo-chico { font-size: 1.3rem !important; margin-bottom: 4px; }

/* ---------- Marcas ---------- */
.letras { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.letras a { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px; border-radius: 10px; font-weight: 700; color: var(--texto-2); box-shadow: inset 0 0 0 1px var(--linea-2); transition: color .2s, box-shadow .2s; }
.letras a:hover { color: var(--tinta); box-shadow: inset 0 0 0 1px var(--tinta); }
.bloque--letra { margin-top: 36px; }
.letra { font-size: 2.2rem !important; background: var(--degradado); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px; }
.rejilla-marcas { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.tarjeta-marca {
  overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 22px;
  background: var(--superficie); box-shadow: inset 0 0 0 1px var(--linea); transition: transform .4s var(--suave), box-shadow .4s var(--suave);
}
.tarjeta-marca:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px transparent, var(--sombra-2); }
.tarjeta-marca__inicial, .cabeza-marca__inicial {
  display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px;
  background: var(--degradado); color: #fff; font-family: var(--titulos); font-weight: 900; font-size: 20px;
}
.cabeza-marca__inicial { width: 64px; height: 64px; border-radius: 20px; font-size: 30px; box-shadow: 0 14px 28px -14px rgba(0, 120, 191, .7); }
.tarjeta-marca__texto { display: grid; min-width: 0; }
.tarjeta-marca__texto strong { color: var(--tinta); }
.tarjeta-marca__texto span { font-size: 13.5px; color: var(--texto-2); }
.tarjeta-marca__texto small { font-size: 12px; color: var(--texto-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tarjeta-marca__flecha { margin-left: auto; color: var(--texto-3); transition: transform .3s var(--suave), color .3s; }
.tarjeta-marca:hover .tarjeta-marca__flecha { transform: translateX(4px); color: var(--azul-hondo); }
.cabeza-marca .eyebrow { margin-bottom: 0; }
.nube-marcas { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-marca {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 12px 18px; border-radius: 999px;
  background: var(--superficie); box-shadow: inset 0 0 0 1px var(--linea); transition: transform .3s var(--suave), box-shadow .3s var(--suave);
}
.chip-marca strong { font-family: var(--titulos); font-weight: 800; color: var(--tinta); letter-spacing: -.01em; }
.chip-marca small { font-size: 12.5px; color: var(--texto-3); }
.chip-marca:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px transparent, var(--sombra-2); }

/* ---------- Favoritos ---------- */
.contador { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; margin-left: 6px; border-radius: 999px; background: var(--fondo-2); font-size: 13px; font-family: Geist, system-ui, sans-serif; font-weight: 700; color: var(--texto-2); vertical-align: middle; }
.contador:empty { display: none; }
.nav-favoritos { position: relative; }
.globo-cuenta {
  position: absolute; top: 2px; left: 22px; display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: #e5484d; color: #fff; font-size: 10.5px; font-weight: 800; line-height: 1;
  box-shadow: 0 0 0 2px var(--superficie); animation: aparecer-menu .3s var(--suave);
}
.cabecera__nav .nav-favoritos .globo-cuenta { position: static; margin-left: 2px; box-shadow: none; }

/* ---------- Comparar ---------- */
.tabla-comparar { overflow-x: auto; border-radius: 26px; box-shadow: inset 0 0 0 1px var(--linea); background: var(--superficie); }
.tabla-comparar table { width: 100%; min-width: calc(180px + var(--n) * 210px); border-collapse: separate; border-spacing: 0; font-size: 14.5px; }
.tabla-comparar th, .tabla-comparar td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--linea); }
.tabla-comparar tbody th { position: sticky; left: 0; z-index: 1; width: 180px; background: var(--fondo-2); font-weight: 650; color: var(--texto-2); font-size: 13.5px; }
.tabla-comparar thead td { position: sticky; left: 0; z-index: 1; background: var(--superficie); }
.tabla-comparar tr:last-child td, .tabla-comparar tr:last-child th { border-bottom: 0; }
.comparar__cabeza { position: relative; display: grid; gap: 10px; }
.comparar__cabeza img { width: 120px; height: 120px; object-fit: contain; border-radius: 18px; background: var(--foto-borde); }
.comparar__cabeza a { font-weight: 650; color: var(--tinta); line-height: 1.3; }
.comparar__cabeza a:hover { text-decoration: underline; text-underline-offset: 3px; }
.comparar__quitar { position: absolute; top: -4px; right: -4px; width: 32px; height: 32px; }
.comparar__quitar .ico { width: 16px; height: 16px; }
.comparar__precio { display: block; font-size: 1.35rem; font-weight: 800; letter-spacing: -.03em; color: var(--tinta); margin-bottom: 4px; }
.comparar__precio.es-mejor { color: var(--verde); }
.tabla-comparar .si { color: var(--verde); font-weight: 650; }
.comparar__acciones td { display: table-cell; }
.comparar__acciones .boton { margin-bottom: 8px; }

.bandeja-comparar {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 45; width: min(100% - 24px, 760px);
  transform: translateX(-50%); padding: 10px 12px 10px 18px; border-radius: 22px;
  background: rgba(11, 12, 15, .9); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  color: #dfe4ea; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
  animation: subir-bandeja .45s var(--suave);
}
@keyframes subir-bandeja { from { opacity: 0; transform: translate(-50%, 30px); } }
.bandeja-comparar__fila { display: flex; align-items: center; gap: 14px; width: 100%; }
.bandeja-comparar__titulo { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; white-space: nowrap; }
.bandeja-comparar__titulo strong { color: #fff; }
.bandeja-comparar__lista { display: flex; gap: 8px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; margin: -8px 0 0; padding: 8px 8px 0 0; }
.bandeja-comparar__lista li { position: relative; flex: none; }
.bandeja-comparar__lista img { width: 46px; height: 46px; border-radius: 12px; background: var(--foto-centro); object-fit: contain; }
.bandeja-comparar__lista button {
  position: absolute; top: -6px; right: -6px; display: grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 50%;
  background: #ffffff; color: #0b0c0f; cursor: pointer; box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}
.bandeja-comparar__lista button .ico { width: 12px; height: 12px; stroke-width: 2.6; }
.bandeja-comparar__lista button::after { content: ""; position: absolute; inset: -8px; }
.bandeja-comparar__acciones { display: flex; align-items: center; gap: 12px; }
.bandeja-comparar .enlace-accion { color: #aab2bf; }
.bandeja-comparar .enlace-accion:hover { color: #fff; }
.bandeja-comparar .boton[aria-disabled="true"] { opacity: .5; pointer-events: none; }
body.con-barra .bandeja-comparar { bottom: calc(84px + env(safe-area-inset-bottom)); }

/* ---------- Buscar con la voz ---------- */
.buscador__voz {
  display: grid; place-items: center; flex: none; width: 36px; height: 36px; margin-right: 4px; border: 0; border-radius: 50%;
  background: transparent; color: var(--texto-3); cursor: pointer; transition: color .2s, background-color .2s;
}
.buscador__voz:hover { color: var(--tinta); background: var(--fondo-3); }
.buscador__voz .ico { width: 19px; height: 19px; }
.buscador__voz.escuchando { color: #fff; background: #e5484d; animation: escuchar 1.2s infinite; }
@keyframes escuchar { 50% { box-shadow: 0 0 0 8px rgba(229, 72, 77, .18); } }
.buscador--grande .buscador__voz { width: 44px; height: 44px; }
.buscador--grande .buscador__voz .ico { width: 22px; height: 22px; }

/* ---------- Canal de ofertas ---------- */
.canal {
  overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  padding: clamp(24px, 4vw, 44px); border-radius: 32px;
  background: radial-gradient(110% 160% at 0% 0%, var(--tinte-verde) 0%, var(--tinte-verde-2) 50%, var(--superficie) 100%); box-shadow: inset 0 0 0 1px var(--tinte-verde-borde);
}
.canal h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 6px; }
.canal p:not(.eyebrow) { color: var(--texto-2); margin: 0; max-width: 34em; }
.canal .eyebrow { color: var(--verde-canal); }
.canal__botones { display: flex; flex-wrap: wrap; gap: 10px; }
.boton--whatsapp { background: #25d366; box-shadow: 0 10px 22px -10px rgba(37, 211, 102, .8); }
.boton--telegram { background: #229ed9; box-shadow: 0 10px 22px -10px rgba(34, 158, 217, .8); }

/* ==========================================================================
   Pantallas medianas y celulares
   ========================================================================== */
@media (max-width: 1100px) {
  .cabecera__nav > a:not(.boton) .ico { display: none; }
  .rejilla-categorias { grid-template-columns: repeat(4, 1fr); }
  .rejilla-productos--4 { grid-template-columns: repeat(3, 1fr); }
  .rejilla-productos--4 > :nth-child(4) { display: none; }
}

@media (max-width: 920px) {
  .cabecera__nav { display: none; }
  /* dos filas: logo y accesos (se va al bajar) · menú y buscador (queda siempre a mano) */
  .cabecera { top: -54px; }
  .con-scroll .cabecera { box-shadow: 0 1px 0 var(--borde-suave), 0 10px 30px -18px rgba(15, 23, 42, .25); }
  .cabecera__fila { flex-wrap: wrap; height: auto; gap: 12px 4px; padding: 6px 0 10px; }
  .cabecera__fila::after { content: ""; order: 2; flex-basis: 100%; height: 0; }
  .marca { margin-right: auto; }
  .marca .logo { height: 34px; }
  .cabecera__menu { order: 3; margin-left: -8px; }
  .cabecera__fila > .buscador { order: 4; flex: 1; min-width: 0; max-width: none; height: 42px; }
  .cabecera__fila > .buscador:focus-within { background: var(--superficie); }
  .rubros { position: static; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none !important; border-top: 0; }
  .rubros__fila { padding: 2px 0 8px; }
  .rubro--todas { margin-right: 2px; }
  .mega { display: none !important; }
  .portada__rejilla { grid-template-columns: minmax(0, 1fr); }
  .portada__demo { max-width: 520px; margin: 0 auto; width: 100%; }
  .demo { margin: 0 auto; transform: none; }
  .cifras { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .cifra:nth-child(3) { border-left: 0; }
  .ahorro-ejemplo, .banda-oscura__rejilla, .portada-tiendas__rejilla, .formulario-tienda__caja { grid-template-columns: minmax(0, 1fr); }
  .panel-mock { transform: none; }
  .pasos__lista, .rejilla-beneficios, .rejilla-planes { grid-template-columns: minmax(0, 1fr); }
  .pie__rejilla { grid-template-columns: 1fr 1fr; }
  .pie__marca { grid-column: 1 / -1; }

  .listado { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .filtros {
    position: fixed; inset: auto 0 0 0; z-index: 90; max-height: 78vh; top: auto;
    padding: 20px 20px calc(24px + env(safe-area-inset-bottom)); background: var(--superficie); border-radius: 28px 28px 0 0;
    box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .35);
    transform: translateY(105%); transition: transform .45s var(--suave); visibility: hidden;
  }
  .filtros.abierto { transform: none; visibility: visible; }
  .velo { position: fixed; inset: 0; z-index: 85; background: rgba(11, 12, 15, .35); animation: velo .3s var(--suave); }
  @keyframes velo { from { opacity: 0; } }

  .producto { grid-template-columns: minmax(0, 1fr); }
  .producto__galeria { position: static; max-width: 420px; width: 100%; margin: 0 auto; }
  .ficha__rejilla { grid-template-columns: minmax(0, 1fr); }
  .alerta__form { grid-template-columns: 1fr 1fr; }
  .alerta__form .boton { grid-column: 1 / -1; }
  .panel__cifras { grid-template-columns: repeat(2, 1fr); }
  .panel__dos { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .aviso-demo { display: block; padding: 6px 14px; font-size: 12px; line-height: 1.4; }
  .aviso-demo__punto { display: inline-block; margin-right: 6px; vertical-align: 1px; }
  .cierre__caja h2 { font-size: 1.9rem; }
  .cierre__caja { padding: 32px 16px; border-radius: 28px; }
  .envoltura { width: min(100% - 32px, var(--ancho)); }
  .portada__titulo { font-size: clamp(2.5rem, 11.5vw, 3.4rem); }
  .buscador--grande { height: 58px; padding-left: 16px; }
  .buscador--grande input { font-size: 16px; padding: 0 8px; }
  .buscador--grande .buscador__boton { height: 44px; padding: 0 16px; font-size: 15px; }
  .flotante--a { left: 0; top: 0; }
  .flotante--b { right: 0; }
  .rejilla-categorias { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .categoria-tile { min-height: 148px; padding: 18px; border-radius: 22px; }
  .categoria-tile__ico { width: 44px; height: 44px; border-radius: 14px; margin-bottom: 10px; }
  .categoria-tile__nombre { font-size: 1rem; }
  .seccion__cabeza--fila { align-items: flex-start; flex-direction: column; gap: 6px; }
  .carrusel__item { width: 210px; }
  .carrusel__controles { display: none; }
  .rejilla-productos, .rejilla-productos--4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .rejilla-productos--4 > :nth-child(4) { display: block; }
  .tarjeta { border-radius: 18px; }
  .tarjeta__cuerpo { padding: 12px 12px 14px; }
  .tarjeta__nombre { font-size: 14px; }
  .tarjeta__precio strong { font-size: 1.2rem; }
  .tarjeta__tiendas { font-size: 12px; }
  .tarjeta__donde { display: none; }
  .tarjeta__n::after { display: none; }
  .tarjeta__imagen .chip { top: 8px; left: 8px; font-size: 11px; padding: 4px 7px; }
  .lista-tarjeta, .lista-tarjeta--completa { grid-template-columns: minmax(0, 1fr); }
  .barra { grid-template-columns: 1fr auto; gap: 6px 10px; }
  .barra__pista { grid-column: 1 / -1; grid-row: 2; }
  .barras { padding: 16px; }
  .panel-mock__cifras { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .panel-mock__cifras div { padding: 10px; }
  .panel-mock__cifras strong { font-size: 1.35rem; }
  .panel-mock__cifras span { font-size: 11px; }
  .pie__rejilla { grid-template-columns: minmax(0, 1fr); }
  .pie__base { flex-direction: column; gap: 6px; }

  .oferta { grid-template-columns: 1fr auto; grid-template-areas: "tienda precios" "accion accion"; gap: 12px; padding: 14px; }
  .oferta__tienda { grid-area: tienda; }
  .oferta__precios { grid-area: precios; }
  .oferta__accion { grid-area: accion; }
  .avatar { width: 40px; height: 40px; border-radius: 12px; }
  .producto__imagen { aspect-ratio: 16 / 10; padding: 10px; border-radius: 26px; }
  .producto__nota-imagen { margin-top: 6px; }
  .producto__chips { margin: 10px 0 16px; }
  .mejor-precio { padding: 20px; }
  .mejor-precio .acciones .boton { flex: 1 1 100%; }
  .mejor-precio .acciones .boton-icono { display: none; }
  .historial__cifras div { padding: 10px 12px; }
  .historial__cifras dd { font-size: 1.05rem; }
  .alerta__caja { grid-template-columns: minmax(0, 1fr); }
  .alerta__ico { grid-row: auto; width: 48px; height: 48px; }
  .alerta__caja > .aviso { grid-column: 1; }
  .alerta__form { grid-template-columns: minmax(0, 1fr); }
  .ficha__tabla div { grid-template-columns: 130px 1fr; }
  .cifras-tienda { grid-template-columns: 1fr 1fr 1fr; }
  .cifras-tienda div { padding: 12px; }
  .cifras-tienda dd { font-size: 1.2rem; }
  .cabeza-tienda__fila { align-items: flex-start; }
  .avatar--grande { width: 64px; height: 64px; font-size: 24px; border-radius: 20px; }
  .reclamar { flex-direction: column; align-items: flex-start; padding: 22px; }
  .reclamar .boton { margin-left: 0; }
  .formulario__fila { grid-template-columns: minmax(0, 1fr); }
  .formulario .boton { justify-self: stretch; }
  .barra-orden { flex-wrap: wrap; }
  .orden label { display: none; }
}

@media (min-width: 921px) {
  .barra-compra, .solo-movil { display: none !important; }
}

/* Funciones nuevas en celular */
@media (max-width: 920px) {
  .secciones { top: 70px; margin-top: 20px; }
  html { scroll-padding-top: 84px; }
  .bloque--dos { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cabecera__nav .nav-favoritos { display: none; }
}
@media (max-width: 640px) {
  .tarjeta__acciones { top: 6px; right: 6px; gap: 4px; width: 32px; }
  .tarjeta__accion { width: 32px; height: 32px; }
  .tarjeta__sellos { top: 8px; left: 8px; gap: 4px; }
  .tarjeta__imagen .tarjeta__sellos .chip { font-size: 10.5px; padding: 3px 7px; }
  .tarjeta__pie { flex-direction: column; align-items: stretch; gap: 6px; padding-top: 10px; }
  .tarjeta__ir { justify-content: center; }
  .tarjeta__ver { text-align: center; }
  .atajos__titulo { display: none; }
  .atajos { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .atajos::-webkit-scrollbar { display: none; }
  .atajo { flex: none; }
  .bandeja-comparar { padding: 10px; border-radius: 18px; }
  .bandeja-comparar__titulo span { display: none; }
  .bandeja-comparar__acciones .enlace-accion { display: none; }
  .canal { flex-direction: column; align-items: flex-start; }
  .canal__botones { width: 100%; }
  .canal__botones .boton { flex: 1; }
  .tabla-comparar tbody th { width: 110px; padding: 12px; }
  .comparar__cabeza img { width: 90px; height: 90px; }
}


/* ==========================================================================
   Antes del lanzamiento: portada "Muy pronto" con lista de espera
   ========================================================================== */
.cabecera--previo .cabecera__fila { height: 70px; }
.cabecera__nav--previo { display: flex; gap: 6px; }
.cabecera__nav--previo > a:not(.boton) .ico { display: inline-block; }
.aviso-demo--vista { background: #1d2a3a; }
.aviso-demo--vista a { color: #fff; text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; }
.portada--previo { padding-bottom: clamp(56px, 7vw, 96px); }
.pastilla__punto--pronto { background: #f5a524; box-shadow: 0 0 0 0 rgba(245, 165, 36, .55); animation: latido 2s infinite; }

.anotate { display: grid; gap: 14px; max-width: 600px; }
.anotate__fila {
  display: flex; align-items: center; gap: 8px; height: 66px; padding: 0 8px 0 22px; border-radius: 999px; background: var(--superficie);
  box-shadow: 0 0 0 1px var(--borde-suave), var(--sombra-2); transition: box-shadow .2s;
}
.anotate__fila:focus-within { box-shadow: 0 0 0 1.5px var(--azul), 0 0 0 6px rgba(30, 136, 207, .14), var(--sombra-2); }
.anotate__correo { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: 0; font-size: 17px; }
.anotate__correo.invalido { color: var(--rojo); }
.anotate__fila .boton { height: 50px; }
.anotate__rubros { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; border: 0; }
.anotate__rubros legend { width: 100%; margin-bottom: 8px; padding: 0; font-size: 14px; font-weight: 650; color: var(--texto-2); }
.anotate__rubros legend span { font-weight: 500; color: var(--texto-3); }
.rubro-elegible { position: relative; cursor: pointer; }
.rubro-elegible input { position: absolute; opacity: 0; pointer-events: none; }
.rubro-elegible span {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--vidrio-fuerte);
  box-shadow: inset 0 0 0 1px var(--linea-2); font-size: 14px; font-weight: 600; color: var(--texto-2);
  transition: background-color .2s, color .2s, box-shadow .2s, transform .15s;
}
.rubro-elegible:hover span { color: var(--tinta); box-shadow: inset 0 0 0 1px var(--tinta); }
.rubro-elegible:active span { transform: scale(.96); }
.rubro-elegible input:checked + span { background: var(--tinta); color: var(--sobre-tinta); box-shadow: none; }
.rubro-elegible input:checked + span::before { content: "✓"; font-weight: 800; }
.rubro-elegible input:focus-visible + span { outline: 3px solid rgba(30, 136, 207, .5); outline-offset: 2px; }
.anotate__whatsapp summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--azul-hondo); list-style: none; }
.anotate__whatsapp summary::-webkit-details-marker { display: none; }
.anotate__whatsapp[open] summary { margin-bottom: 10px; }
.anotate__whatsapp .campo { max-width: 320px; }
.anotate__chico { margin: 0; font-size: 13px; color: var(--texto-3); }
.anotate__chico a { text-decoration: underline; text-underline-offset: 3px; }
.anotado {
  display: flex; gap: 16px; align-items: flex-start; max-width: 600px; padding: 22px; border-radius: 26px;
  background: var(--superficie); box-shadow: inset 0 0 0 2px var(--verde), 0 20px 40px -24px rgba(12, 155, 87, .55);
  animation: aparecer-menu .5s var(--suave);
}
.anotado__ico { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 16px; background: var(--verde); color: #fff; }
.anotado__ico .ico { width: 24px; height: 24px; stroke-width: 2.6; }
.anotado strong { font-size: 1.2rem; color: var(--tinta); }
.anotado p { margin: 4px 0 14px; color: var(--texto-2); }
.portada__anotados { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; color: var(--texto-2); font-size: 14.5px; }
.portada__anotados .ico { color: var(--verde); }
.demo__nota { margin: 14px 0 0; text-align: center; font-size: 12.5px; color: var(--texto-3); }
/* la nota va debajo de todo, fuera del flujo, para que la burbuja de abajo no la tape */
.portada--previo .demo__nota { position: absolute; left: 0; right: 0; bottom: -42px; margin: 0; }

.rejilla-podras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.podras { overflow: hidden; padding: 26px; border-radius: 26px; background: var(--superficie); box-shadow: inset 0 0 0 1px var(--linea); }
.podras h3 { font-size: 1.18rem; font-weight: 750; margin-bottom: 6px; }
.podras p { margin: 0; color: var(--texto-2); }
.podras__ico { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 18px; border-radius: 16px; background: var(--degradado); color: #fff; box-shadow: 0 12px 24px -12px rgba(0, 120, 191, .7); }
.podras__ico .ico { width: 24px; height: 24px; }
.nube-rubros { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.rubro-previo {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 10px; border-radius: 999px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 12%, var(--superficie)), var(--superficie) 70%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 18%, var(--linea));
  font-family: var(--titulos); font-weight: 800; font-size: 1.05rem; color: var(--tinta);
}
.rubro-previo__ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c); color: #fff; }
.rubro-previo__ico .ico { width: 20px; height: 20px; }
.cierre .anotate { width: 100%; margin-inline: auto; }

.pie--previo { padding-top: 48px; }
.pie__previo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.pie__previo img { height: 40px; width: auto; }
.pie__previo p { margin: 0; color: #c9d2de; }
.pie__previo nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }

.panel__titulo-fila { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel__barras { display: grid; gap: 8px; max-width: 620px; margin: 8px 0 18px; }
.panel__barra { display: grid; grid-template-columns: 150px 1fr 40px; align-items: center; gap: 12px; font-size: 14px; }
.panel__barra-pista { height: 10px; border-radius: 999px; background: var(--fondo-3); overflow: hidden; }
.panel__barra-pista span { display: block; height: 100%; border-radius: inherit; background: var(--degradado); }
.panel__barra strong { text-align: right; }

/* ==========================================================================
   Celular: revisión en pantallas de 320 a 414 px
   ========================================================================== */
@media (max-width: 640px) {
  /* sellos abajo de la foto: arriba quedan solo favorito y comparar, sin pisarse */
  .tarjeta__sellos { top: auto; bottom: 8px; left: 8px; right: 8px; }
  .tarjeta__ver { padding: 6px 0; }
  .tarjeta__ir { padding: 8px; }
  .tarjeta__ir .ico { display: none; }   /* en la tarjeta angosta, el lugar es para el nombre de la tienda */
  /* en cada tienda del producto, el precio con tarjeta baja de renglón en vez de aplastar el nombre */
  .oferta__precios { max-width: 124px; }
  .oferta__precios strong { font-size: 1.22rem; }
  .oferta__tarjeta { display: block; text-align: right; line-height: 1.35; }
  .oferta__tarjeta .ico { display: inline-block; vertical-align: -3px; margin-right: 4px; }
  .oferta__cuotas { text-align: right; line-height: 1.35; }
  /* enlaces del pie más fáciles de tocar */
  .pie ul { gap: 2px; }
  .pie ul a, .pie__previo nav a { display: inline-block; padding: 6px 0; }
}
@media (max-width: 380px) {
  /* celulares angostos (320-380 px): el botón de la cabecera entra entero */
  .solo-ancho { display: none; }
}
@media (max-width: 420px) {
  /* en el ejemplo animado, el borde verde ya marca el más barato: el sello le quitaba lugar al nombre */
  .demo__sello { display: none !important; }
  .demo__fila { grid-template-columns: auto minmax(0, 1fr) auto; }
}

@media (max-width: 920px) {
  .cabecera--previo .cabecera__nav--previo { display: flex !important; margin-left: auto; }
  .cabecera--previo .cabecera__fila { height: 62px; }
  .rejilla-podras { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .cabecera__nav--previo > a:not(.boton) span { display: none; }
  .cabecera__nav--previo > a:not(.boton) { padding: 8px; }
  .cabecera__nav--previo .boton { padding: 0 14px; font-size: 13.5px; }
  .anotate__fila { height: auto; flex-direction: column; align-items: stretch; padding: 8px; border-radius: 24px; }
  .anotate__correo { height: 50px; padding: 0 12px; font-size: 16px; }
  .anotate__fila .boton { width: 100%; }
  .rejilla-podras { grid-template-columns: minmax(0, 1fr); }
  .rubro-previo { font-size: .95rem; padding-right: 16px; }
  .rubro-previo__ico { width: 34px; height: 34px; }
  .pie__previo { flex-direction: column; align-items: flex-start; }
  .panel__barra { grid-template-columns: 110px 1fr 32px; }
}

/* ==========================================================================
   Preferencias de la persona
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .15s !important; scroll-behavior: auto !important; }
  html.js .revelar { opacity: 1; transform: none; }
  .portada__aurora span, .flotante, .degradado, .logo * { animation: none !important; }
  .demo, .panel-mock { transform: none !important; }
  .barra__relleno { transform: none !important; }
  html.js .historial__grafico:not(.visible) .g-linea { stroke-dashoffset: 0; }
}
@media (prefers-reduced-transparency: reduce) {
  .cabecera, .sugerencias, .demo, .flotante, .barra-compra { background: var(--superficie); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (hover: none) {
  [data-luz]::after { display: none; }
  .tarjeta:hover, .categoria-tile:hover, .fila-tarjeta:hover, .tarjeta-tienda:hover { transform: none; }
}
@media print {
  .cabecera, .pie, .aviso-demo, .barra-compra, .alerta, .filtros { display: none !important; }
}


/* ==========================================================================
   Portada para buscar (oct 2026): qué es (una frase), el buscador y qué tiendas compara; lo demás, más abajo.
   Entra todo al cargar (no al hacer scroll): las líneas del título suben desde su renglón.
   ========================================================================== */
@keyframes entra { from { opacity: 0; transform: translateY(16px); } }
@keyframes linea-sube { from { transform: translateY(110%); } }
.entra { animation: entra .9s var(--suave) both; animation-delay: calc(var(--i, 0) * 90ms + 60ms); }

/* overflow-x: clip y no hidden: las sugerencias pueden bajar más allá de la portada, pero el halo del buscador
   no ensancha la página (en el celular la achicaba un poco y la barra fija quedaba corrida) */
.portada--buscar { overflow: visible; overflow-x: clip; padding: clamp(32px, 7vh, 80px) 0 clamp(26px, 4.5vh, 48px); }
.portada--buscar .portada__aurora {
  inset: 0; height: auto; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent);
}
/* minmax(0, 1fr): sin esto, en Chrome la fila de "Probá con" (que no se corta) ensanchaba la columna y el título
   y el buscador se salían de la pantalla del celular */
.portada__centro { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.portada--buscar .portada__titulo { font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1; margin-bottom: clamp(24px, 3vw, 36px); }
.portada__titulo .linea { display: block; overflow: hidden; padding: 0 .06em .14em; margin-bottom: -.14em; }
.portada__titulo .linea > span { display: inline-block; animation: linea-sube 1.05s var(--suave) both; animation-delay: calc(var(--i) * 90ms + 40ms); }
.portada__titulo .linea > .degradado { animation: linea-sube 1.05s var(--suave) calc(var(--i) * 90ms + 40ms) both, brillo-texto 8s var(--suave) 1.2s infinite alternate; }

/* el buscador, con un halo que se enciende al escribir */
.portada--buscar .portada__busqueda { position: relative; z-index: 5; width: min(100%, 720px); margin-bottom: 16px; }
.portada--buscar .portada__busqueda::before {
  content: ""; position: absolute; inset: -26px -40px; z-index: -1; border-radius: 999px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(105, 179, 231, .42), rgba(105, 179, 231, 0));
  opacity: .45; transform: scale(.94); transition: opacity .6s var(--suave), transform .8s var(--suave);
}
.portada--buscar .portada__busqueda:focus-within::before { opacity: 1; transform: scale(1.03); }
.portada--buscar .buscador--grande {
  text-align: left; max-width: none; height: 68px; padding: 0 7px 0 22px; background: var(--superficie);
  box-shadow: inset 0 0 0 2px var(--azul), 0 22px 44px -20px rgba(4, 73, 120, .45), 0 2px 6px rgba(16, 24, 40, .06);
}
.portada--buscar .buscador--grande:focus-within { box-shadow: inset 0 0 0 2px var(--azul-hondo), 0 0 0 6px rgba(42, 143, 211, .16), 0 22px 44px -20px rgba(4, 73, 120, .45); }
.portada--buscar .buscador--grande .buscador__lupa { color: var(--azul-hondo); }
.portada--buscar .buscador--grande input::placeholder { color: var(--texto-3); }
.portada--buscar .buscador--grande .buscador__boton { height: 54px; padding: 0 30px; font-size: 16.5px; }
.portada__tiendas { max-width: 46em; margin: 0 0 16px; font-size: 15px; line-height: 1.5; color: var(--texto-2); text-wrap: balance; }
.portada__tiendas strong { color: var(--tinta); font-weight: 650; }
.portada__tiendas .pastilla__punto { display: inline-block; margin-right: 9px; vertical-align: 1px; }
.portada--buscar .portada__pruebas { justify-content: center; }
.portada--buscar .portada__pruebas a { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

.seccion--primera { padding-top: clamp(36px, 5vw, 64px); }

/* ---------- Cómo funciona (un solo bloque: pasos + ejemplo animado + un caso real) ---------- */
.como {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center;
  padding: clamp(28px, 4.5vw, 64px); border-radius: 40px; overflow: hidden;
  background: radial-gradient(90% 120% at 100% 0%, var(--tinte) 0%, var(--tinte-2) 50%, var(--superficie) 100%); box-shadow: inset 0 0 0 1px var(--tinte-borde);
}
.como h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); letter-spacing: -.04em; margin-bottom: 28px; }
.como__pasos { display: grid; gap: 16px; margin-bottom: 28px; }
.como__pasos li { display: flex; align-items: center; gap: 14px; font-size: 1.05rem; line-height: 1.4; color: var(--texto-2); }
.como__pasos strong { color: var(--tinta); font-weight: 700; }
.como__ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--degradado); color: #fff; box-shadow: 0 10px 20px -10px rgba(4, 121, 193, .7); }
.como__ico .ico { width: 20px; height: 20px; }
.como__prueba {
  display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 12px; border-radius: 20px; overflow: hidden;
  background: var(--superficie); box-shadow: inset 0 0 0 1px var(--linea), var(--sombra-1);
  transition: transform .45s var(--suave), box-shadow .45s var(--suave);
}
.como__prueba:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px transparent, var(--sombra-2); }
.como__prueba:active { transform: scale(.98); }
.como__prueba-dato { flex: none; padding: 10px 11px; border-radius: 14px; background: var(--rojo-fondo); color: var(--rojo); font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.como__prueba-texto { font-size: 14.5px; line-height: 1.4; color: var(--texto-2); }
.como__prueba-texto strong { color: var(--tinta); font-weight: 650; }
.como__prueba-flecha { flex: none; margin-left: auto; color: var(--azul-hondo); transition: transform .3s var(--suave); }
.como__prueba:hover .como__prueba-flecha { transform: translateX(4px); }
.como__demo { padding: 0 0 26px; }
.como .demo { margin: 0 auto; }

/* ---------- Ofertas de hoy: pestañas con la pastilla que se desliza ---------- */
.segmentos {
  position: relative; display: flex; gap: 2px; width: max-content; max-width: 100%; padding: 5px; margin-bottom: 22px;
  border-radius: 999px; background: var(--fondo-2); box-shadow: inset 0 0 0 1px var(--linea);
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
}
.segmentos::-webkit-scrollbar { display: none; }
.segmentos__pastilla {
  position: absolute; top: 5px; bottom: 5px; left: 0; width: var(--w, 0); border-radius: 999px; pointer-events: none;
  background: var(--superficie); box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 18px -10px rgba(16, 24, 40, .3);
  transform: translateX(var(--x, 5px));
  transition: transform .55s cubic-bezier(.32, .72, 0, 1), width .55s cubic-bezier(.32, .72, 0, 1);
}
html:not(.js) .segmentos__pastilla { display: none; }
.segmento {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 9px 16px 9px 12px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--texto-2); white-space: nowrap;
  transition: color .25s, transform .15s var(--suave);
}
.segmento .ico { width: 18px; height: 18px; color: var(--c); }
.segmento:hover, .segmento[aria-selected="true"] { color: var(--tinta); }
.segmento:active { transform: scale(.96); }
html:not(.js) .segmento[aria-selected="true"] { background: var(--superficie); }
.carrusel__ver { margin-right: auto; }

/* ---------- Preguntas: título a un lado, respuestas al otro ---------- */
.preguntas__rejilla { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.preguntas__cabeza { position: sticky; top: 140px; }
.preguntas__cabeza h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); letter-spacing: -.04em; }
.preguntas__cabeza p { color: var(--texto-2); }
.preguntas__cabeza a { color: var(--azul-hondo); font-weight: 600; }
.preguntas .acordeon summary { font-weight: 600; }
.pag-inicio .preguntas { padding-bottom: clamp(64px, 8vw, 104px); }

@media (max-width: 920px) {
  .portada--buscar { padding-top: 26px; }
  /* portada: arriba manda el buscador grande; la cabecera no queda pegada y el menú pasa al lado del logo */
  .pag-inicio .cabecera { position: relative; top: 0; }
  .pag-inicio .cabecera__fila::after { display: none; }
  .pag-inicio .cabecera__fila > .buscador { display: none; }
  .pag-inicio .cabecera__menu { order: -1; margin: 0 2px 0 -10px; }
  /* …y cuando el buscador grande se va de la pantalla, baja esta barra con el buscador (va por encima: nada salta) */
  .barra-buscar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 60;
    display: flex; align-items: center; gap: 4px; padding: calc(8px + env(safe-area-inset-top)) 16px 10px 6px;
    background: var(--vidrio-fuerte); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 0 var(--borde-suave), 0 10px 30px -18px rgba(15, 23, 42, .25);
    transform: translateY(-105%); visibility: hidden;
    transition: transform .5s cubic-bezier(.32, .72, 0, 1), visibility 0s linear .5s;
  }
  .busqueda-fuera .barra-buscar { transform: none; visibility: visible; transition: transform .5s cubic-bezier(.32, .72, 0, 1), visibility 0s; }
  .barra-buscar .buscador { flex: 1; min-width: 0; max-width: none; height: 44px; background: var(--superficie); box-shadow: inset 0 0 0 1.5px var(--azul); }
  .como { grid-template-columns: minmax(0, 1fr); }
  .como__demo .flotante { display: none; }
  .preguntas__rejilla { grid-template-columns: minmax(0, 1fr); }
  .preguntas__cabeza { position: static; }
}
@media (max-width: 640px) {
  .portada--buscar { padding: 22px 0 30px; }
  .portada--buscar { padding-bottom: 14px; }
  .portada--buscar .portada__busqueda::before { inset: -18px -6px; }
  .pag-inicio .seccion--primera { padding-top: 34px; }
  .portada--buscar .portada__titulo { font-size: clamp(1.95rem, 9vw, 2.5rem); margin-bottom: 20px; }
  .portada--buscar .buscador--grande { height: 58px; padding-left: 16px; }
  .portada--buscar .buscador--grande .buscador__boton { height: 46px; padding: 0 18px; font-size: 15.5px; }
  .portada__tiendas { font-size: 14px; margin-bottom: 14px; }
  /* "Probá con": una sola fila que se corre de costado */
  .portada--buscar .portada__pruebas { flex-wrap: nowrap; justify-content: flex-start; width: calc(100% + 32px); margin: 0 -16px; padding: 2px 16px; overflow-x: auto; scrollbar-width: none; }
  .portada--buscar .portada__pruebas::-webkit-scrollbar { display: none; }
  .portada--buscar .portada__pruebas > * { flex: none; }
  .como { padding: 22px 16px 24px; border-radius: 30px; }
  .como h2 { margin-bottom: 22px; }
  .como__pasos li { font-size: 1rem; align-items: flex-start; }
  .como__ico { width: 40px; height: 40px; border-radius: 13px; }
  .como__prueba { align-items: flex-start; }
  .segmentos { width: auto; margin-inline: -16px; border-radius: 0; padding: 5px 16px; background: none; box-shadow: none; }
  .segmentos__pastilla { top: 5px; background: var(--tinta); box-shadow: none; }
  .segmento { padding: 8px 14px 8px 10px; font-size: 14px; }
  .segmento[aria-selected="true"] { color: var(--sobre-tinta); }
  .segmento[aria-selected="true"] .ico { color: var(--sobre-tinta); }
  .segmento:not([aria-selected="true"]) { box-shadow: inset 0 0 0 1px var(--linea); }
  .panel-pestana .carrusel__controles { display: flex; margin-top: 10px; }
  .panel-pestana .carrusel__controles .boton-icono { display: none; }
}

/* ---------- Crédito «Desarrollado por Kalifo» (kit de C:\SoyKalifo\credito-pie, en celeste y azul) ---------- */
.kalifo {
  --k-tam: 38px;
  --k-anillo: rgba(105, 179, 231, .8);
  --k-brillo: rgba(58, 151, 214, .6);
  --k-rayo-a: #8fc7ee;
  --k-rayo-b: #0a4a78;
  --k-centro: rgba(169, 214, 245, .3);
  --k-sombra: rgba(7, 9, 13, .72);
  --k-texto: #8e98a6;
  --k-texto-hover: #fff;
  --k-fondo: rgba(255, 255, 255, .04);
  --k-fondo-hover: rgba(255, 255, 255, .08);
  --k-borde: rgba(255, 255, 255, .09);
  --k-borde-hover: rgba(105, 179, 231, .5);
  --k-nombre: linear-gradient(110deg, #d4ecfc 0%, #69b3e7 38%, #3a97d6 64%, #a9d6f5 100%);
  --k-chispa: linear-gradient(135deg, #d4ecfc, #69b3e7);

  flex: none; display: inline-flex; align-items: center; gap: 12px;
  padding: 5px 18px 5px 6px; border-radius: 999px;
  font-size: .85rem; font-weight: 600; line-height: 1.2;
  color: var(--k-texto); text-decoration: none;
  background: var(--k-fondo); box-shadow: inset 0 0 0 1px var(--k-borde);
  cursor: pointer; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background-color .4s, box-shadow .4s, color .4s, transform .3s cubic-bezier(.32, .72, 0, 1);
}
.pie a.kalifo:hover, .kalifo:hover { color: var(--k-texto-hover); background: var(--k-fondo-hover); box-shadow: inset 0 0 0 1px var(--k-borde-hover), 0 10px 30px -12px rgba(58, 151, 214, .45); }
.pie a.kalifo { transition: background-color .4s, box-shadow .4s, color .4s, transform .3s cubic-bezier(.32, .72, 0, 1); }
.kalifo:active { transform: scale(.97); }
.kalifo b { font-weight: 800; background: var(--k-nombre); background-size: 180% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; transition: background-position .8s var(--suave); }
.kalifo:hover b { background-position: 100% 0; }
.kalifo__avatar {
  position: relative; flex: none; width: var(--k-tam); height: var(--k-tam); border-radius: 50%;
  box-shadow: 0 0 0 1.5px var(--k-anillo), 0 8px 18px -8px rgba(0, 0, 0, .8);
}
.kalifo__avatar::before, .kalifo__avatar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.kalifo__avatar::before { background: repeating-conic-gradient(from 0deg, var(--k-rayo-a) 0 9deg, var(--k-rayo-b) 9deg 18deg); animation: k-sol 40s linear infinite; }
.kalifo__avatar::after { background: radial-gradient(circle, var(--k-centro) 0 26%, transparent 55%, var(--k-sombra) 100%); }
/* la imagen mide 1,3 veces el círculo: arriba del centro se ve entera (la cabeza sobresale), abajo la recorta el círculo */
.kalifo__avatar img {
  --k-img: calc(var(--k-tam) * 1.3);
  --k-cy: calc(var(--k-img) - var(--k-tam) / 2);
  position: absolute; z-index: 1; left: calc((var(--k-tam) - var(--k-img)) / 2); bottom: 0;
  width: var(--k-img); height: var(--k-img); max-width: none;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .55));
  transform-origin: calc(var(--k-img) / 2) var(--k-cy);
  -webkit-mask-image: linear-gradient(#000, #000), radial-gradient(circle calc(var(--k-tam) / 2) at calc(var(--k-img) / 2) var(--k-cy), #000 95%, transparent 100%);
  mask-image: linear-gradient(#000, #000), radial-gradient(circle calc(var(--k-tam) / 2) at calc(var(--k-img) / 2) var(--k-cy), #000 95%, transparent 100%);
  -webkit-mask-size: 100% var(--k-cy), 100% 100%; mask-size: 100% var(--k-cy), 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 0 0, 0 0; mask-position: 0 0, 0 0;
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
.kalifo:hover .kalifo__avatar img { transform: translateY(-2px) rotate(-4deg); }
.kalifo.is-saludo .kalifo__avatar img { animation: k-salto .85s cubic-bezier(.34, 1.56, .64, 1); }
.kalifo.is-saludo .kalifo__avatar { animation: k-anillo .85s cubic-bezier(.16, 1, .3, 1); }
.kalifo__chispa {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: 8px; height: 8px; margin: -4px; pointer-events: none;
  background: var(--k-chispa);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: k-chispa .85s cubic-bezier(.16, 1, .3, 1) forwards;
}
@keyframes k-sol { to { transform: rotate(360deg); } }
@keyframes k-salto {
  0% { transform: none; } 28% { transform: scale(1.2) rotate(-9deg); } 52% { transform: scale(.95) rotate(6deg); }
  74% { transform: scale(1.05) rotate(-2deg); } 100% { transform: none; }
}
@keyframes k-anillo { 30% { box-shadow: 0 0 0 3px var(--k-anillo), 0 0 26px 6px var(--k-brillo); } }
@keyframes k-chispa {
  0% { transform: translate(0, 0) scale(0) rotate(0deg); opacity: 1; }
  60% { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(var(--s)) rotate(180deg); opacity: 0; }
}
.pie__base { align-items: center; }
.pie__legal { display: grid; gap: 4px; }
@media (max-width: 640px) {
  .pie__base { align-items: flex-start; gap: 18px; }
}

/* ---------- Marcas: todas, una letra por vez, en lista compacta ---------- */
.letras a[aria-current] { background: var(--tinta); color: var(--sobre-tinta); box-shadow: none; }
.lista-marcas { columns: 3 220px; column-gap: 28px; margin-top: 22px; }
.lista-marcas li { break-inside: avoid; }
.lista-marcas a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 4px;
  border-bottom: 1px solid var(--linea); color: var(--texto); font-weight: 550; transition: color .2s;
}
.lista-marcas a:hover { color: var(--azul-hondo); }
.lista-marcas small { flex: none; color: var(--texto-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.lista-marcas__ayuda { margin-top: 16px; color: var(--texto-2); }
@media (max-width: 640px) {
  .lista-marcas { columns: 1; }
}

/* ==========================================================================
   Modo oscuro (cuando el celular o la compu están en oscuro)
   Superficies grafito, texto claro, celeste más luminoso para que se lea; las fotos de producto
   quedan en "ventanas" claras (las tiendas las publican sobre fondo blanco) y lo que va encima
   de la foto (descuento, favorito, comparar) se ve como en modo claro.
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  :root {
    --azul-hondo: #5aaee8;
    --azul-tinta: #8cc8f0;
    --tinta: #f3f5f8;
    --texto: #dce1e8;
    --texto-2: #a5aebb;
    --texto-3: #7e8797;
    --linea: #252a33;
    --linea-2: #333945;
    --fondo: #0c0e12;
    --fondo-2: #171a20;
    --fondo-3: #20242c;
    --verde: #34c27a;
    --verde-fondo: rgba(52, 194, 122, .14);
    --rojo: #ff6f74;
    --rojo-fondo: rgba(255, 111, 116, .14);
    --naranja: #ffa24a;
    --naranja-fondo: rgba(255, 162, 74, .14);
    --sombra-1: 0 1px 2px rgba(0, 0, 0, .5);
    --sombra-2: 0 16px 36px -16px rgba(0, 0, 0, .75), 0 4px 10px -6px rgba(0, 0, 0, .5);
    --sombra-3: 0 40px 80px -30px rgba(0, 0, 0, .85), 0 12px 30px -16px rgba(0, 0, 0, .6);
    --superficie: #14171c;
    --sobre-tinta: #0c0e12;
    --tenue-sobre-tinta: #5d6573;
    --vidrio: rgba(12, 14, 18, .78);
    --vidrio-fuerte: rgba(20, 23, 28, .9);
    --borde-suave: rgba(255, 255, 255, .07);
    --foto-centro: #f1f3f6;
    --foto-borde: #dde2e8;
    --tinte: rgba(58, 151, 214, .17);
    --tinte-2: rgba(58, 151, 214, .06);
    --tinte-borde: rgba(105, 179, 231, .2);
    --chip-azul: rgba(58, 151, 214, .18);
    --tinte-verde: rgba(52, 194, 122, .15);
    --tinte-verde-2: rgba(52, 194, 122, .05);
    --tinte-verde-borde: rgba(52, 194, 122, .26);
    --aviso-fondo: rgba(255, 170, 60, .13);
    --aviso-fondo-2: rgba(255, 170, 60, .08);
    --aviso-borde: rgba(255, 170, 60, .3);
    --aviso-texto: #ffc574;
    --aviso-texto-2: #f1d5a8;
    --verde-texto: #6ee0a6;
    --naranja-texto: #ffbd7a;
    --rojo-texto: #ff9a9e;
    --aviso-texto-3: #d9bf95;
    --aviso-ico: rgba(255, 170, 60, .18);
    --verde-canal: #4fd18e;
  }
  ::selection { background: rgba(90, 174, 232, .4); }

  /* el logo: las letras pasan a blanco (la mano celeste queda igual) */
  .logo__texto { fill: #f3f5f8; }

  /* las ventanas de las fotos son una isla clara: lo de adentro se ve como en modo claro */
  .tarjeta__imagen, .producto__imagen, .comparar__cabeza img, .sugerencia img, .fila-tarjeta img {
    --tinta: #0b0c0f; --texto-2: #586172; --texto-3: #8a93a2; --superficie: #fff; --sobre-tinta: #fff;
    --azul-hondo: #0078bf; --chip-azul: #e7f2fb; --verde: #0c9b57; --linea: #e7eaf0;
    --aviso-fondo: #fff4e5; --aviso-texto: #9a5b00; --aviso-borde: #f3d9b1;
  }
  .producto__imagen { box-shadow: none; }

  /* portada: luces de fondo más profundas */
  .portada__aurora span { opacity: .32; }
  .portada__aurora span:nth-child(1) { background: radial-gradient(circle, #1f6fae, transparent 65%); }
  .portada--buscar .buscador--grande { box-shadow: inset 0 0 0 2px var(--azul), 0 22px 44px -20px rgba(0, 0, 0, .8); }
  .portada--buscar .portada__busqueda::before { background: radial-gradient(closest-side, rgba(58, 151, 214, .3), rgba(58, 151, 214, 0)); }

  /* la banda para tiendas y el pie se separan un poco de la página */
  .banda-oscura { background: #070a10; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), inset 0 -1px 0 rgba(255, 255, 255, .05); }
  .pie { background: #07090c; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }

  /* botones claros sobre fondos que ahora son oscuros */
  .boton--borde { background: var(--superficie); }
  .boton--borde:hover { box-shadow: inset 0 0 0 1px var(--tinta); }
  .tarjeta { box-shadow: inset 0 0 0 1px var(--linea); }
  .velo { background: rgba(0, 0, 0, .6); }

  /* campos de formulario: la flechita de los selectores, clara */
  select, .orden select, .campo select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a5aebb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  }
}

/* ---------- Entre páginas: un fundido corto en vez del salto en blanco (navegadores que lo permiten) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .entra, .portada__titulo .linea > span { animation: none !important; }
  .kalifo__avatar::before { animation: none !important; }
  .segmentos__pastilla { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .barra-buscar { background: var(--superficie); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
