/* Ferretería Los Ángeles · Tienda en línea
   Una sola familia (Saira) y tres colores: azul, rojo y blanco, con sus tonos.
   --sesgo es la inclinación del logo; da forma a cintas, cortes y etiquetas. */

@font-face { font-family: Saira; src: url(../fuentes/saira-latin-wdth-normal.woff2) format('woff2'); font-weight: 100 900; font-stretch: 50% 125%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* El símbolo ₡ vive en este segundo archivo. */
@font-face { font-family: Saira; src: url(../fuentes/saira-latin-ext-wdth-normal.woff2) format('woff2'); font-weight: 100 900; font-stretch: 50% 125%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0; }

:root {
  --azul: #07387a;
  --azul-osc: #042452;
  --azul-med: #0e4ea6;
  --rojo: #db1513;
  --rojo-osc: #b10e0c;
  --blanco: #fff;
  --cielo: #e6eef8;
  --cielo-2: #d2e0f3;
  --linea: #b4c9e6;
  --tinta: #06285c;
  --suave: #3d5d8e;
  --sesgo: 26.565deg;
  --r: 14px;
  --r-g: 22px;
  --orilla: clamp(20px, 4.4vw, 64px);
  --aire: clamp(72px, 9vw, 136px);
  --sombra: 0 22px 44px -22px rgb(4 36 82 / .42);
  --sale: cubic-bezier(.16, 1, .3, 1);
  --nav: 84px;
  /* Cursores propios. El primero de cada par es para navegadores que no usan image-set. */
  --c-flecha: url(../img/cursor/flecha.png) 4 3, default;
  --c-martillo: url(../img/cursor/martillo.png) 2 14, pointer;
  --c-golpe: url(../img/cursor/golpe.png) 3 25, pointer;
  --c-lupa: url(../img/cursor/lupa.png) 13 13, zoom-in;
  --c-texto: url(../img/cursor/texto.png) 16 16, text;
  --c-no: url(../img/cursor/no.png) 16 16, not-allowed;
}
@supports (cursor: image-set(url("a.png") 1x) 1 1, auto) {
  :root {
    --c-flecha: image-set(url(../img/cursor/flecha.png) 1x, url(../img/cursor/flecha@2x.png) 2x) 4 3, default;
    --c-martillo: image-set(url(../img/cursor/martillo.png) 1x, url(../img/cursor/martillo@2x.png) 2x) 2 14, pointer;
    --c-golpe: image-set(url(../img/cursor/golpe.png) 1x, url(../img/cursor/golpe@2x.png) 2x) 3 25, pointer;
    --c-lupa: image-set(url(../img/cursor/lupa.png) 1x, url(../img/cursor/lupa@2x.png) 2x) 13 13, zoom-in;
    --c-texto: image-set(url(../img/cursor/texto.png) 1x, url(../img/cursor/texto@2x.png) 2x) 16 16, text;
    --c-no: image-set(url(../img/cursor/no.png) 1x, url(../img/cursor/no@2x.png) 2x) 16 16, not-allowed;
  }
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { color-scheme: light; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: var(--azul) var(--cielo-2); accent-color: var(--azul); }
body { font: 500 17px/1.45 Saira, sans-serif; font-synthesis: none; color: var(--tinta); background: var(--cielo); min-height: 100svh; display: flex; flex-direction: column; overflow-x: clip; caret-color: var(--rojo); cursor: var(--c-flecha); -webkit-font-smoothing: antialiased; }
main { flex: 1; outline: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 2px; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--azul); color: #fff; }
:focus-visible { outline: 3px solid var(--rojo); outline-offset: 3px; border-radius: 8px; }
:is(h1, main)[tabindex="-1"]:focus-visible { outline: none; }
[hidden] { display: none !important; }

a, button, summary, select, label[for], label:has(input), [role=button], input[type=radio], input[type=checkbox], input[type=range], input[type=color] { cursor: var(--c-martillo); }
:is(a, button, summary, select, label, [role=button], input[type=range]):active { cursor: var(--c-golpe); }
input:not([type=radio], [type=checkbox], [type=range], [type=color]), textarea { cursor: var(--c-texto); }
:disabled, [aria-disabled=true] { cursor: var(--c-no) !important; }
.lupa { cursor: var(--c-lupa) !important; }

h1, h2, .grande { font-stretch: 62%; font-weight: 800; line-height: .96; text-transform: uppercase; text-wrap: balance; letter-spacing: -.005em; }
h1, h2 { color: var(--azul); }
:is(.cinta, .lista-maestro) :is(h1, h2) { color: inherit; }
h2 { font-size: clamp(38px, 4.8vw, 68px); }
h3 { font-size: 18px; font-weight: 600; line-height: 1.25; }
.num, .precio, output { font-variant-numeric: tabular-nums; }
.precio strong { font-size: 30px; font-weight: 800; font-stretch: 78%; line-height: 1; }
.precio s { margin-left: 8px; color: var(--suave); font-size: 17px; font-weight: 500; text-decoration-color: var(--rojo); text-decoration-thickness: 2px; }
.solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.saltar { position: fixed; left: 12px; top: -80px; z-index: 99; background: var(--azul); color: #fff; padding: 12px 18px; border-radius: 8px; }
.saltar:focus { top: 12px; }
.i { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i.lleno { fill: currentColor; stroke: none; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 26px; border-radius: 12px; background: var(--azul); color: #fff; font-size: 18px; font-weight: 700; line-height: 1.15; text-decoration: none; text-align: center; transition: background .2s, transform .35s var(--sale); }
.btn:hover { background: var(--azul-med); }
.btn:active { transform: translateY(2px); }
.btn.rojo { background: var(--rojo); }
.btn.rojo:hover { background: var(--rojo-osc); }
.btn.blanco { background: #fff; color: var(--azul); }
.btn.blanco:hover { background: var(--cielo-2); }
.btn.linea { background: transparent; color: var(--azul); box-shadow: inset 0 0 0 2px var(--azul); }
.btn.linea:hover { background: var(--azul); color: #fff; }
.btn.ancho { width: 100%; }
.btn.grande-b { min-height: 64px; font-size: 21px; }
.btn:disabled { background: color-mix(in srgb, var(--suave) 55%, #fff); color: #fff; transform: none; }
.enlace { font-weight: 700; color: var(--azul); text-decoration: underline; }

/* ---------- Barra superior ---------- */
.barra { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); height: var(--nav); padding: 0 var(--orilla); background: var(--cielo); transition: box-shadow .3s; }
.barra.con-sombra { box-shadow: 0 14px 28px -20px rgb(4 36 82 / .5); }
.barra .logo { margin-right: auto; border-radius: 8px; }
.barra .logo img { height: 52px; width: auto; }
.barra nav { display: flex; gap: clamp(14px, 1.9vw, 30px); }
.barra nav a { position: relative; padding: 12px 0; font-weight: 600; text-decoration: none; white-space: nowrap; }
.barra nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 5px; height: 4px; background: var(--rojo); transform: skewX(calc(var(--sesgo) * -1)) scaleX(0); transform-origin: left; transition: transform .4s var(--sale); }
.barra nav a:hover::after, .barra nav a[aria-current]::after { transform: skewX(calc(var(--sesgo) * -1)) scaleX(1); }
.btn-carrito { min-height: 48px; padding: 8px 18px; gap: 10px; font-size: 17px; }
.btn-carrito output { min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; display: grid; place-items: center; background: #fff; color: var(--azul); font-size: 15px; font-weight: 800; }
.btn-carrito.salta { animation: salta .5s var(--sale); }
@keyframes salta { 35% { transform: translateY(-5px) rotate(-3deg); } }

/* Barra inferior del celular */
.abajo { display: none; }

/* ---------- Cinta: la forma del logo ---------- */
.cinta { display: inline-block; background: var(--azul); color: #fff; transform: skewX(calc(var(--sesgo) * -1)); border-radius: 0 0 clamp(18px, 2.4vw, 34px) 0; position: relative; }
.cinta > * { display: block; transform: skewX(var(--sesgo)); }
.cinta::after { content: ""; position: absolute; left: calc(100% + clamp(6px, .7vw, 10px)); bottom: 0; width: clamp(14px, 1.7vw, 26px); height: 52%; background: var(--rojo); }
.desc { display: inline-block; background: var(--rojo); color: #fff; transform: skewX(calc(var(--sesgo) * -.5)); padding: 5px 13px 6px; border-radius: 4px; font-size: 22px; font-weight: 800; font-stretch: 75%; line-height: 1; }
.desc > * { display: block; transform: skewX(calc(var(--sesgo) * .5)); white-space: nowrap; }

/* ---------- Encabezado de página ---------- */
.encabezado { position: relative; height: clamp(270px, 35vw, 560px); overflow: hidden; background: var(--azul-osc); }
.encabezado > picture img, .encabezado > img { width: 100%; height: 100%; object-fit: cover; object-position: var(--foco, 50% 50%); }
.encabezado .cinta { position: absolute; left: -60px; bottom: 0; padding: clamp(10px, 1.4vw, 20px) clamp(36px, 4.6vw, 74px) clamp(12px, 1.6vw, 24px) calc(60px + var(--orilla)); border-radius: 0; }
.encabezado h1 { font-size: clamp(42px, 6.2vw, 92px); }
.encabezado.baja { height: clamp(200px, 24vw, 420px); }
.encabezado.alta { height: clamp(420px, calc(100svh - var(--nav)), 900px); }
.encabezado.baja h1 { font-size: clamp(34px, 5vw, 74px); }
.encabezado.roja .cinta { background: var(--rojo); }
.encabezado.roja .cinta::after { background: #fff; }
.encabezado .extra { position: absolute; right: var(--orilla); bottom: clamp(18px, 2.6vw, 40px); }

.seccion { padding: var(--aire) var(--orilla); }
.seccion.corta { padding-block: clamp(36px, 4.6vw, 68px); }
.titular { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 30px; margin-bottom: clamp(26px, 3.2vw, 46px); }

/* ---------- Casa que se pinta por partes ---------- */
.casa { position: relative; aspect-ratio: 4 / 3; width: 100%; isolation: isolate; }
.casa::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 64%; width: 60%; aspect-ratio: 1; border-radius: 8%; background: rgb(4 36 82 / .42); filter: blur(clamp(10px, 1.7vw, 26px)); transform: translate(-50%, -50%) scaleY(.577) rotate(45deg); }
.casa img, .casa .pintada { position: absolute; inset: 0; width: 100%; height: 100%; }
.casa .pintada { background: var(--color); mix-blend-mode: multiply; mask: var(--mascara) center / 100% 100% no-repeat; -webkit-mask: var(--mascara) center / 100% 100% no-repeat; transition: background-color .45s; }
.casa:not(.lista)::before, .casa:not(.lista) > * { opacity: 0; }
.casa > img, .casa > .capa { transition: opacity .35s; }
.casa .capa { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.casa .brillo { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; transition: opacity .25s; mask: var(--mascara) center / 100% 100% no-repeat; -webkit-mask: var(--mascara) center / 100% 100% no-repeat; }
.casa .brillo.toca { opacity: .3; }
.casa .parte { fill: transparent; stroke: none; outline: none; cursor: var(--c-martillo); }
.casa .parte:focus-visible { stroke: var(--rojo); stroke-width: .9; stroke-linejoin: round; }
/* Boton de brocha sobre cada parte: rojo en la que se está pintando. */
.casa .punto { pointer-events: none; fill: none; stroke: var(--azul); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 .5px .9px rgb(4 36 82 / .45)); }
.casa .punto circle { fill: #fff; stroke: none; transition: fill .25s; }
.casa .punto.activa { stroke: #fff; }
.casa .punto.activa circle { fill: var(--rojo); }
.casa .rotulo { cursor: var(--c-martillo); outline: none; }
.casa .rotulo rect { fill: #fff; fill-opacity: 0; transition: fill-opacity .2s; }
.casa .rotulo:hover rect { fill: var(--cielo-2); fill-opacity: .7; }
.casa .rotulo:focus-visible rect { stroke: var(--rojo); stroke-width: 8; }
.casa .rotulo text { font-family: Saira, sans-serif; font-weight: 800; font-stretch: 62%; text-anchor: middle; text-transform: uppercase; fill: var(--azul); }
.casa .rotulo .arriba { fill: var(--rojo); font-weight: 700; }
.globo { position: absolute; z-index: 6; left: 68%; top: 56%; transform: translate(-50%, 0); display: flex; gap: 8px; padding: 10px; background: #fff; border-radius: var(--r); box-shadow: var(--sombra); }
:has(> .casa > .globo) { position: relative; z-index: 8; }
.globo input { width: 190px; }
.globo .btn { min-height: 48px; padding: 8px 18px; }

/* Crédito del autor sobre cada foto grande. */
.credito { position: absolute; z-index: 3; top: 0; right: 0; max-width: 100%; padding: 5px 14px 6px 24px; background: rgb(4 36 82 / .78); color: #fff; font-size: 14px; font-weight: 500; clip-path: polygon(12px 100%, 0 100%, 12px 0, 100% 0, 100% 100%); }
.credito:empty { display: none; }
.credito a { padding-block: 4px; color: inherit; text-underline-offset: .2em; }
.credito a:hover { color: #fff; text-decoration-thickness: 2px; }
.credito :focus-visible, .credito a:focus-visible { outline-color: #fff; outline-offset: -2px; }
.vistas small a { color: inherit; padding-block: 5px; text-underline-offset: .2em; }

/* ---------- Vitrina: las 5 mejores ofertas pasan solas ---------- */
.vitrina { --alto: clamp(540px, calc(100svh - var(--nav)), 880px); --corte: calc(var(--alto) * .26); --lado: 37vw; position: relative; height: var(--alto); overflow: hidden; background: var(--azul); color: #fff; isolation: isolate; }
/* Raya roja del logo entre el panel y la foto. */
.vitrina::before { content: ""; position: absolute; z-index: 1; inset: 0 0 0 calc(var(--lado) - 22px); background: var(--rojo); clip-path: polygon(var(--corte) 0, 100% 0, 100% 100%, 0 100%); }
.escenas { position: absolute; z-index: 2; inset: 0 0 0 var(--lado); overflow: hidden; background: var(--azul-osc); clip-path: polygon(var(--corte) 0, 100% 0, 100% 100%, 0 100%); }
/* La foto nueva entra con un corte inclinado; la anterior se queda debajo hasta que termina. */
.escenas img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--foco, 50% 50%); clip-path: polygon(140% 0, 140% 0, 100% 100%, 100% 100%); }
.escenas img.sale { z-index: 1; clip-path: none; }
.escenas img.activa { z-index: 2; clip-path: polygon(0 0, 140% 0, 140% 100%, -40% 100%); transition: clip-path 1.1s var(--sale); }
.rebaja { position: absolute; z-index: 3; right: 0; bottom: clamp(26px, 5vw, 64px); padding: clamp(6px, .9vw, 14px) clamp(22px, 2.6vw, 44px) clamp(8px, 1.1vw, 18px) clamp(40px, 4.6vw, 78px); background: var(--rojo); color: #fff; clip-path: polygon(clamp(22px, 2.8vw, 46px) 0, 100% 0, 100% 100%, 0 100%); font-size: clamp(76px, 10.4vw, 168px); font-weight: 800; font-stretch: 62%; line-height: .84; font-variant-numeric: tabular-nums; }
.rebaja span { display: block; }
.rebaja b { font-weight: inherit; }
.rebaja small { font-size: .46em; vertical-align: .58em; margin-left: .04em; }
.rebaja.cambia span { animation: rebaja .7s var(--sale); }
@keyframes rebaja { from { transform: translateY(60%); opacity: 0; } }
.vitrina .panel { position: relative; z-index: 4; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; width: min(max(600px, calc(var(--lado) + 66px)), calc(var(--lado) + 120px), 820px); height: 100%; padding: clamp(22px, 3.2vw, 46px) 0 clamp(14px, 1.8vw, 26px) var(--orilla); pointer-events: none; }
.vitrina .panel > * { pointer-events: auto; }
.vitrina h1 { color: inherit; font-size: clamp(54px, min(6.3vw, 12.4svh), 96px); white-space: nowrap; pointer-events: none; }
.turnos { display: grid; }
.turno { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); align-items: center; gap: 14px clamp(14px, 1.5vw, 24px); padding: 14px; border-radius: var(--r-g); background: #fff; color: var(--tinta); box-shadow: var(--sombra); opacity: 0; visibility: hidden; transform: translateY(26px); transition: opacity .25s, transform .25s, visibility 0s .25s; }
.turno.activa { opacity: 1; visibility: visible; transform: none; transition: opacity .6s .18s var(--sale), transform .7s .18s var(--sale), visibility 0s; }
.turno .foto { display: block; align-self: stretch; min-height: clamp(110px, 17svh, 176px); border-radius: 12px; overflow: hidden; position: relative; background: var(--cielo-2); }
.turno .foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.turno h2 { font-size: clamp(22px, 1.9vw, 34px); font-stretch: 80%; font-weight: 700; text-transform: none; line-height: 1.12; letter-spacing: 0; color: var(--tinta); }
.turno h2 a { text-decoration: none; }
.turno .precio { margin-top: 10px; }
.turno .precio strong { display: block; font-size: clamp(44px, 4vw, 76px); font-stretch: 66%; }
.turno .precio s { display: block; margin: 6px 0 0; line-height: 1; }
.ejemplo { display: block; margin-top: 6px; font-size: 14px; font-weight: 600; font-stretch: 100%; line-height: 1.4; letter-spacing: 0; text-transform: none; color: var(--suave); }
.turno .btn { grid-column: 1 / -1; min-height: clamp(52px, 7.6svh, 64px); }
@media (min-width: 1600px) and (min-height: 880px) { .turno .foto { min-height: 22svh; } }
.mandos { display: flex; align-items: center; gap: 14px; max-width: min(480px, calc(var(--lado) - var(--orilla) - 46px)); }
.pausa { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; color: #fff; }
.pausa:hover { background: var(--azul-med); }
.pausa .i { stroke-width: 3; }
.mandos .marcas { display: flex; flex: 1; gap: 10px; }
.mandos .marcas button { position: relative; flex: 1; height: 44px; border-radius: 8px; }
.mandos .marcas button::before, .mandos .marcas i { content: ""; position: absolute; left: 0; right: 0; top: 18px; height: 8px; transform-origin: left; }
.mandos .marcas button::before { background: var(--azul-med); transform: skewX(calc(var(--sesgo) * -1)); }
.mandos .marcas i { background: #fff; transform: skewX(calc(var(--sesgo) * -1)) scaleX(0); }
.mandos .marcas button:hover::before { background: #5b8fd6; }
.mandos .marcas .vista i { transform: skewX(calc(var(--sesgo) * -1)); }
.mandos .marcas .activa i { animation: llena var(--dura) linear forwards; }
@keyframes llena { from { transform: skewX(calc(var(--sesgo) * -1)) scaleX(0); } to { transform: skewX(calc(var(--sesgo) * -1)) scaleX(1); } }
.vitrina:is(.espera, .oculta) .marcas .activa i { animation-play-state: paused; }
.vitrina.parada .marcas .activa i { animation: none; transform: skewX(calc(var(--sesgo) * -1)); }
.vitrina :focus-visible { outline-color: #fff; }
.turno :focus-visible { outline-color: var(--rojo); }

/* ---------- Lo más comprado ---------- */
.seccion.pegada { padding-top: 0; }
.categorias { display: grid; grid-template-columns: 1.55fr 1fr 1fr; grid-auto-rows: 1fr; gap: clamp(10px, 1.2vw, 18px); height: clamp(440px, 45vw, 700px); }
.categorias a, .casas a { position: relative; overflow: hidden; border-radius: var(--r-g); background: var(--cielo-2); text-decoration: none; color: #fff; }
.categorias a:first-child { grid-row: span 2; }
.categorias img, .casas img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--foco, 50% 50%); transition: transform 1.1s var(--sale); }
.categorias a:hover img, .casas a:hover img { transform: scale(1.05); }
:is(.categorias, .casas) .grande { --p: clamp(16px, 1.8vw, 30px); position: absolute; left: 0; bottom: 0; padding: .34em calc(var(--p) + .9em) .42em var(--p); background: var(--azul); font-size: clamp(25px, 2.5vw, 40px); clip-path: polygon(0 0, 100% 0, calc(100% - .68em) 100%, 0 100%); transition: background .25s; }
.categorias a:first-child .grande { font-size: clamp(34px, 4.2vw, 68px); }
:is(.categorias, .casas) a:hover .grande { background: var(--rojo); }
.casas { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.2vw, 18px); }
.casas a { aspect-ratio: 4 / 5; }
.vendidos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(34px, 3.8vw, 60px) clamp(18px, 2vw, 34px); }
.prod.con-puesto { grid-template-columns: auto minmax(0, 1fr); }
.prod.con-puesto .foto { grid-column: 1 / -1; }
.puesto { align-self: end; padding: 0 8px 0 4px; font-size: clamp(74px, 6.4vw, 96px); font-weight: 800; font-stretch: 58%; line-height: .78; color: var(--azul); font-variant-numeric: tabular-nums; }

/* ---------- Tarjeta de puntos ---------- */
.tarjeta { --gx: 0deg; --gy: 0deg; position: relative; container-type: inline-size; aspect-ratio: 1.586; width: min(100%, 540px); border-radius: 22px; color: #fff; transform: perspective(1000px) rotateX(var(--gy)) rotateY(var(--gx)); transition: transform .5s var(--sale); box-shadow: 0 34px 54px -30px rgb(4 36 82 / .75);
  background: linear-gradient(116.565deg, transparent 52.9%, #fff 53% 54.3%, var(--rojo) 54.4% 63.4%, #fff 63.5% 64.8%, var(--azul-osc) 64.9%) var(--azul); }
.tarjeta > * { position: absolute; }
.tarjeta > img { left: 6cqw; top: 6cqw; width: 40cqw; }
.tarjeta .saldo { right: 6cqw; top: 18cqw; font-size: 4cqw; font-weight: 600; line-height: 1.1; text-align: right; }
.tarjeta .saldo strong { display: block; font-size: 12.6cqw; font-weight: 800; font-stretch: 62%; line-height: .88; font-variant-numeric: tabular-nums; }
.tarjeta .dueno { left: 6cqw; bottom: 6cqw; display: grid; gap: 1cqw; width: 37cqw; }
.tarjeta .nombre { display: block; min-height: 24px; font-size: 7.4cqw; font-weight: 800; font-stretch: 66%; line-height: 1; text-transform: uppercase; text-align: left; overflow-wrap: anywhere; }
.tarjeta button.nombre { min-height: 44px; border-radius: 8px; }
.tarjeta button.nombre:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }
.tarjeta .nombre .i { display: inline-block; width: .62em; height: .62em; margin-left: .22em; vertical-align: 0; }
.tarjeta .numero { font-size: 4cqw; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.tarjeta .lector { right: 6cqw; bottom: 6cqw; width: 31cqw; padding: 2.2cqw 0; border-radius: 8px; background: #fff; }
.tarjeta .barras { display: block; width: 100%; height: 12cqw; fill: #000; shape-rendering: crispEdges; }
.tarjeta :focus-visible { outline-color: #fff; }
.mi-tarjeta .sub + .btn { margin-top: 22px; }
.codigo-grande { margin: auto; width: min(680px, 100vw - 24px); max-width: none; border: 0; border-radius: var(--r-g); padding: 34px 12px 30px; background: #fff; color: var(--tinta); text-align: center; }
.codigo-grande::backdrop { background: rgb(4 36 82 / .72); }
.codigo-grande .cerrar { position: absolute; right: 12px; top: 12px; }
.codigo-grande .grande { margin: 0 56px; font-size: clamp(30px, 6vw, 46px); overflow-wrap: anywhere; }
/* El ancho es un múltiplo exacto de los 99 módulos del código: todas las barras salen parejas. */
.codigo-grande .barras { display: block; width: 297px; height: 150px; margin: 18px auto 12px; fill: #000; shape-rendering: crispEdges; }
@media (min-width: 460px) { .codigo-grande .barras { width: 396px; height: 180px; } }
@media (min-width: 720px) { .codigo-grande .barras { width: 594px; height: 220px; } }
.codigo-grande .numero { font-size: 30px; font-weight: 800; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.tarjeta .globo { left: 6cqw; top: auto; bottom: 5cqw; transform: none; }

.cinta-puntos { --m: 24px; margin-top: clamp(28px, 3vw, 44px); }
.cinta-puntos .cinta-metrica { position: relative; height: 92px; border-radius: 12px; background: #fff; box-shadow: var(--sombra); overflow: hidden; }
.cinta-puntos .cinta-metrica > i { position: absolute; left: 0; bottom: 0; height: 30px; transition: width 1s var(--sale); }
.cinta-puntos .ganado { width: calc(var(--m) + (100% - var(--m) * 2) * var(--p, 0)); background: var(--rojo); }
.cinta-puntos .carrito { width: calc(var(--m) + (100% - var(--m) * 2) * var(--c, 0)); height: 30px; max-height: none; border: 3px dashed var(--rojo); border-left: 0; background: none; }
.cinta-puntos.sin-puntos .ganado { width: 0; }
.cinta-puntos.sin-carrito .carrito { width: 0; border: 0; }
.cinta-puntos .marcas { position: absolute; inset: 0 var(--m); }
.cinta-puntos .marcas span { position: absolute; top: 9px; width: 0; height: 100%; display: flex; justify-content: center; font-size: clamp(16px, 1.5vw, 21px); font-weight: 800; font-stretch: 75%; line-height: 1.2; }
.cinta-puntos .marcas span::after { content: ""; position: absolute; top: 28px; height: 14px; width: 3px; background: var(--azul); }
.cinta-puntos .marcas span:nth-child(odd)::after { height: 26px; }
.cinta-puntos .metas { position: relative; height: 52px; margin: 8px var(--m) 0; }
.cinta-puntos .metas span { position: absolute; top: 0; width: 44px; height: 44px; margin-left: -22px; display: grid; place-items: center; border-radius: 12px; background: #fff; color: var(--azul); box-shadow: inset 0 0 0 2px var(--linea); transition: background .4s, color .4s, box-shadow .4s; }
.cinta-puntos .metas .casi { color: var(--rojo); box-shadow: inset 0 0 0 3px var(--rojo); }
.cinta-puntos .metas .lista { background: var(--rojo); color: #fff; box-shadow: none; }

.club { background: var(--cielo-2); }
.club-dos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 90px); align-items: center; }
.club .lleva { display: block; text-decoration: none; border-radius: var(--r-g); justify-self: center; width: min(100%, 540px); }
.sub { font-size: 21px; font-weight: 600; margin-top: 14px; max-width: 46ch; }
.club .cinta-puntos { margin-bottom: 22px; }
.mi-tarjeta { display: grid; grid-template-columns: minmax(0, 540px) minmax(0, 1fr); gap: clamp(26px, 4vw, 72px); align-items: center; }
.ofertas-tarjeta { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1vw, 16px); margin-top: 14px; }
.oferta { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 210px; padding: 20px; border-radius: var(--r-g); background: #fff; }
.oferta .grande { font-size: clamp(27px, 2.3vw, 36px); color: var(--azul); text-transform: none; line-height: 1; }
.oferta .detalle { font-size: 17px; color: var(--suave); }
.oferta b { display: flex; align-items: center; gap: 6px; margin-top: auto; font-weight: 700; }
.oferta small { font-size: 16px; color: var(--suave); }
.oferta.lista { background: var(--rojo); color: #fff; }
.oferta.lista :is(.grande, .detalle, small) { color: #fff; }
.oferta.usada { background: transparent; box-shadow: inset 0 0 0 2px var(--linea); color: var(--suave); }
.oferta.usada .grande { color: var(--suave); }

/* ---------- Productos ---------- */
.rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: clamp(34px, 3.6vw, 56px) clamp(18px, 2vw, 34px); }
.prod { position: relative; display: grid; grid-template-rows: auto 1fr; container-type: inline-size; }
.prod .foto { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-g); background: var(--cielo-2); }
.prod .foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s, transform 1s var(--sale); }
.prod .foto .otra { opacity: 0; transform: scale(1.06); }
@media (hover: hover) { .prod:hover .foto .otra { opacity: 1; transform: none; } .prod:hover .foto img:first-child { transform: scale(1.04); } }
.prod .desc { position: absolute; left: 12px; top: 12px; }
.prod .datos { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 12px; padding: 14px 6px 0; }
.prod h3 { grid-column: 1 / -1; align-self: start; }
.prod h3 a { text-decoration: none; }
.prod h3 a:hover { text-decoration: underline; text-decoration-color: var(--rojo); }
.mas { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--rojo); color: #fff; transition: background .2s, transform .35s var(--sale); }
.mas:hover { background: var(--rojo-osc); transform: scale(1.06); }
.mas:active { transform: scale(.94); }
.mas .i { width: 26px; height: 26px; stroke-width: 3; }
.mas.agregado { background: var(--azul); }
.cuenta { display: inline-flex; align-items: center; height: 52px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 2px var(--azul); }
.cuenta button { width: 44px; height: 52px; display: grid; place-items: center; border-radius: 12px; color: var(--azul); }
.cuenta button:hover { background: var(--cielo-2); }
.cuenta input { width: 50px; height: 48px; border: 0; background: none; text-align: center; font-weight: 800; font-size: 18px; padding: 0; appearance: textfield; -moz-appearance: textfield; border-radius: 8px; }
.cuenta input::-webkit-inner-spin-button, .cuenta input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.cuenta .i { width: 20px; height: 20px; stroke-width: 3; }
@container (max-width: 230px) { .prod .datos { grid-template-columns: 1fr; } }

.filtros { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: clamp(26px, 3vw, 44px); }
.filtros .pastilla { min-height: 48px; padding: 8px 20px; border-radius: 25px; background: #fff; font-weight: 600; transition: background .2s, color .2s; }
.filtros .pastilla:hover { background: var(--cielo-2); }
.filtros .pastilla[aria-pressed=true] { background: var(--azul); color: #fff; }
.filtros .orden { margin-left: auto; width: auto; }
.vacio { grid-column: 1 / -1; text-align: center; padding: 56px 20px; }
.vacio p { margin: 10px auto 22px; max-width: 40ch; }

/* Regla de descuentos */
.regla { margin-bottom: clamp(34px, 4vw, 56px); }
.regla label { display: flex; align-items: baseline; gap: 14px; font-size: 20px; font-weight: 600; }
.regla output { font-size: clamp(48px, 6vw, 84px); font-weight: 800; font-stretch: 62%; line-height: 1; color: var(--rojo); }
.regla .cinta-metrica { position: relative; margin-top: 12px; height: 92px; border-radius: 12px; background: #fff; box-shadow: var(--sombra); overflow: hidden; }
.regla .marcas { position: absolute; inset: 0 26px; display: flex; justify-content: space-between; pointer-events: none; }
.regla .marcas span { position: relative; width: 0; display: flex; justify-content: center; padding-top: 10px; font-weight: 800; font-stretch: 75%; font-size: clamp(15px, 1.5vw, 21px); }
.regla .marcas span::after { content: ""; position: absolute; bottom: 0; width: 3px; margin-left: -1.5px; height: 34px; background: var(--azul); }
.regla .marcas span:nth-child(odd)::after { height: 22px; }
.regla .marcas .dentro { color: var(--rojo); }
.regla .marcas .dentro::after { background: var(--rojo); }
.regla input { position: absolute; inset: 0 8px; width: calc(100% - 16px); height: 100%; margin: 0; appearance: none; -webkit-appearance: none; background: none; border-radius: 12px; }
.regla input::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 36px; height: 92px; background: linear-gradient(var(--rojo) 0 0) center / 5px 100% no-repeat, linear-gradient(var(--rojo) 0 0) bottom / 100% 14px no-repeat; }
.regla input::-moz-range-thumb { width: 36px; height: 92px; border: 0; border-radius: 0; background: linear-gradient(var(--rojo) 0 0) center / 5px 100% no-repeat, linear-gradient(var(--rojo) 0 0) bottom / 100% 14px no-repeat; }

/* ---------- Pegue su lista ---------- */
.lista-maestro { background: var(--azul); color: #fff; }
.lista-maestro h2 { margin-bottom: clamp(24px, 3vw, 40px); }
.lista-maestro .dos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(22px, 3vw, 48px); align-items: start; }
.hoja { width: 100%; min-height: 336px; resize: vertical; border: 0; border-radius: var(--r); padding: 12px 20px 12px 64px; color: var(--tinta); font-size: 20px; font-weight: 500; line-height: 44px; background: linear-gradient(90deg, transparent 44px, var(--rojo) 44px 46px, transparent 46px) 0 0 / 100% 100%, repeating-linear-gradient(#fff 0 42px, var(--linea) 42px 44px) 0 12px / 100% 100% #fff; background-attachment: local; }
.hoja::placeholder { color: var(--suave); opacity: 1; }
.resultado { background: #fff; color: var(--tinta); border-radius: var(--r); padding: 10px 22px 22px; min-height: 336px; display: flex; flex-direction: column; }
.resultado li { display: grid; grid-template-columns: 64px 64px 1fr auto; align-items: center; gap: 14px; min-height: 64px; border-bottom: 2px solid var(--cielo); }
.resultado li img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; }
.resultado li b { font-size: 22px; font-stretch: 75%; font-weight: 800; text-align: right; }
.resultado li.no { grid-template-columns: 1fr auto; }
.resultado li.no span { color: var(--rojo-osc); font-weight: 600; overflow-wrap: anywhere; }
.resultado .total { margin-top: auto; padding-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.resultado .total strong, .suma strong { font-size: 40px; font-weight: 800; font-stretch: 70%; line-height: 1; }
.resultado .espera { margin: 12px 0 2px; color: var(--suave); font-size: 19px; font-weight: 600; }
.resultado .muestra { opacity: .5; }

/* ---------- Colores ---------- */
.pintar { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(26px, 4vw, 72px); align-items: center; }
.partes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.partes .pastilla { display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 24px 8px 12px; border-radius: 27px; background: #fff; font-size: 19px; font-weight: 700; transition: background .2s, color .2s; }
.partes .pastilla:hover { background: var(--cielo-2); }
.partes .pastilla i { width: 34px; height: 34px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 2px rgb(4 36 82 / .18); }
.partes [aria-pressed=true] { background: var(--azul); color: #fff; }
.partes [aria-pressed=true] i { box-shadow: 0 0 0 3px #fff; }
.muestras { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 12px; margin: 20px 0; }
.muestras button, .muestras label { position: relative; aspect-ratio: 1; border-radius: 14px; background: var(--c); box-shadow: inset 0 0 0 2px rgb(4 36 82 / .14); transition: transform .4s var(--sale); }
.muestras button:hover, .muestras label:hover { transform: translateY(-4px); }
.muestras [aria-pressed=true], .muestras label:has(input.activa) { box-shadow: 0 0 0 3px var(--cielo), 0 0 0 6px var(--rojo); }
.muestras label { display: grid; place-items: center; background: #fff; color: var(--azul); }
.muestras label input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.muestras label:focus-within { outline: 3px solid var(--rojo); outline-offset: 3px; }
.pista { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 6px; color: var(--suave); font-weight: 600; }
.pintar .nombre-color + .btn { margin-top: 24px; }
.nombre-color { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 700; }
.nombre-color i { width: 34px; height: 34px; border-radius: 12px; background: var(--c); box-shadow: inset 0 0 0 2px rgb(4 36 82 / .14); }

/* ---------- Locales en la portada ---------- */
.franjas { display: grid; grid-template-columns: repeat(3, 1fr); height: clamp(340px, 38vw, 560px); overflow: hidden; background: var(--azul-osc); --corte: clamp(40px, 5vw, 84px); padding-inline: calc(var(--corte) * .5); }
.franjas a { position: relative; color: #fff; text-decoration: none; margin-inline: calc(var(--corte) * -.5 + 3px); clip-path: polygon(var(--corte) 0, 100% 0, calc(100% - var(--corte)) 100%, 0 100%); }
.franjas a:first-child { margin-left: calc(var(--corte) * -.5); clip-path: polygon(0 0, 100% 0, calc(100% - var(--corte)) 100%, 0 100%); }
.franjas a:last-child { margin-right: calc(var(--corte) * -.5); clip-path: polygon(var(--corte) 0, 100% 0, 100% 100%, 0 100%); }
.franjas img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--sale); }
.franjas a:first-child img { object-position: 16% 0; }
.franjas a:hover img { transform: scale(1.06); }
.franjas a:focus-visible { outline-offset: -10px; outline-color: #fff; }
.franjas a::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgb(4 36 82 / .94)); }
.franjas div { position: absolute; z-index: 1; left: calc(var(--corte) * .75); right: var(--corte); bottom: clamp(18px, 2vw, 32px); }
.franjas .grande { font-size: clamp(26px, 3.2vw, 48px); display: block; }
.estado { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; }
.estado::before { content: ""; width: 12px; height: 12px; transform: skewX(calc(var(--sesgo) * -1)); background: currentColor; }
.estado.abierto::before { background: var(--azul-med); }
.franjas .estado.abierto::before, .oscuro .estado.abierto::before { background: #fff; }
.estado.cerrado::before { background: var(--rojo); }

/* ---------- Producto ---------- */
.ficha-prod { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr); gap: clamp(24px, 3.4vw, 64px); align-items: start; }
.visor { position: relative; display: block; width: calc(100% + var(--orilla)); margin-left: calc(var(--orilla) * -1); aspect-ratio: 16 / 9; overflow: hidden; border-radius: 0 var(--r-g) var(--r-g) 0; background: var(--cielo-2); }
.visor img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease-out; transform-origin: var(--x, 50%) var(--y, 50%); }
.visor.cerca img { transform: scale(2.4); }
.visor .sello { position: absolute; right: 16px; bottom: 14px; background: var(--azul); color: #fff; padding: 5px 12px; border-radius: 8px; font-size: 15px; font-weight: 800; }
.vistas { display: grid; gap: 12px; margin-top: 16px; }
.vistas > div { display: flex; flex-wrap: wrap; gap: 14px; }
.vistas small { font-size: 16px; color: var(--suave); }
.vistas button { width: clamp(92px, 12vw, 176px); aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 2px var(--linea); }
.vistas img { width: 100%; height: 100%; object-fit: cover; }
.vistas [aria-pressed=true] { box-shadow: 0 0 0 3px var(--cielo), 0 0 0 6px var(--rojo); }
.ficha-prod h1 { font-size: clamp(38px, 4vw, 60px); margin-bottom: 18px; }
.ficha-prod .precio { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.ficha-prod .precio strong { font-size: clamp(52px, 5.4vw, 80px); font-stretch: 66%; }
.ficha-prod .precio s { font-size: 22px; margin: 0; }
.ahorro { margin: 8px 0 0; font-weight: 600; color: var(--rojo-osc); }
.compra { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }
.compra .cuenta { height: 64px; }
.compra .cuenta button { height: 64px; width: 50px; }
.compra .cuenta input { width: 70px; font-size: 22px; }
.compra .btn { flex: 1 1 200px; }
.rapidas { display: flex; flex-wrap: wrap; gap: 8px; }
.rapidas button { min-width: 48px; min-height: 44px; padding: 6px 16px; border-radius: 22px; background: #fff; font-weight: 700; }
.rapidas button:hover { background: var(--cielo-2); }
.hechos { margin-top: 26px; border-top: 2px solid var(--linea); }
.hechos li { display: flex; align-items: center; gap: 14px; min-height: 58px; border-bottom: 2px solid var(--linea); }
.hechos .i { color: var(--azul); }
.hechos b { margin-left: auto; font-weight: 700; text-align: right; }

.visor-4k { width: 100vw; height: 100dvh; max-width: none; max-height: none; border: 0; padding: 0; background: var(--cielo); overflow: hidden; }
.visor-4k .marco { width: 100%; height: 100%; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.visor-4k img { max-width: none; }
.visor-4k .cerrar { position: fixed; right: 20px; top: 20px; }
.visor-4k .credito { position: fixed; top: auto; right: auto; left: 0; bottom: 0; padding: 8px 26px 9px 16px; font-size: 15px; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 100%, 0 100%); }

/* ---------- Calculadora ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(26px, 4vw, 72px); align-items: start; }
.campos { display: grid; gap: 22px; margin-top: 26px; }
.deslizador { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 16px; font-weight: 600; font-size: 19px; }
.deslizador output { font-size: 34px; font-weight: 800; font-stretch: 72%; line-height: 1; }
.deslizador input { grid-column: 1 / -1; width: 100%; height: 40px; }
input[type=range]:not(.regla input) { appearance: none; -webkit-appearance: none; background: linear-gradient(var(--azul) 0 0) 0 50% / var(--v, 50%) 8px no-repeat, linear-gradient(#fff 0 0) 0 50% / 100% 8px no-repeat; border-radius: 8px; }
input[type=range]:not(.regla input)::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 26px; height: 36px; border-radius: 7px; background: var(--rojo); border: 3px solid #fff; box-shadow: 0 4px 10px rgb(4 36 82 / .3); }
input[type=range]:not(.regla input)::-moz-range-thumb { width: 22px; height: 32px; border-radius: 7px; background: var(--rojo); border: 3px solid #fff; box-shadow: 0 4px 10px rgb(4 36 82 / .3); }
/* El dibujo y sus cotas caben siempre en este marco: nunca tapan los controles. */
.dibujo { margin-top: 18px; }
.dibujo svg { display: block; width: 100%; height: auto; max-height: min(54svh, 520px); aspect-ratio: 800 / 500; }
.dibujo .cota { fill: none; stroke: var(--rojo); stroke-width: 4; }
.dibujo text { font-family: Saira, sans-serif; font-size: 38px; font-weight: 800; font-stretch: 72%; text-anchor: middle; fill: var(--tinta); }
.dibujo .color { mix-blend-mode: multiply; }
.aviso { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; color: var(--suave); font-size: 16px; }
.aviso .i { color: var(--azul); }

.lineas li { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto 52px; align-items: center; gap: 2px 16px; min-height: 88px; border-bottom: 2px solid var(--linea); padding: 10px 0; }
.lineas img { width: 84px; height: 63px; object-fit: cover; border-radius: 12px; grid-row: 1 / 3; }
.lineas .enlace { align-self: end; text-decoration: none; }
.lineas .enlace:hover { text-decoration: underline; }
.lineas .cant { grid-column: 2; align-self: start; color: var(--suave); font-weight: 600; }
.lineas .punto { display: inline-block; width: 14px; height: 14px; margin-right: 7px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(4 36 82 / .25); vertical-align: -1px; }
.lineas b { grid-column: 3; grid-row: 1 / 3; font-size: 24px; font-stretch: 78%; font-weight: 800; text-align: right; }
.lineas .mas { grid-column: 4; grid-row: 1 / 3; }
.suma { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; }

/* ---------- Formularios ---------- */
.campo { display: grid; gap: 6px; font-weight: 600; }
.campo input, .campo select, .campo textarea, .entrada { width: 100%; min-height: 54px; padding: 10px 16px; border: 2px solid var(--linea); border-radius: 12px; background-color: #fff; font-weight: 500; font-size: 18px; transition: border-color .2s; }
.campo textarea { min-height: 92px; resize: vertical; }
.campo :is(input, select, textarea):hover, .entrada:hover { border-color: var(--azul-med); }
.campo :is(input, select, textarea):focus-visible, .entrada:focus-visible { outline-offset: 0; border-color: var(--rojo); border-radius: 12px; }
::placeholder { color: var(--suave); opacity: 1; }
select, .entrada.orden { appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' fill='none' stroke='%2307387a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2 2 6 6 6-6'/%3E%3C/svg%3E") right 16px center no-repeat !important; padding-right: 44px !important; }
select:disabled { background-color: var(--cielo-2) !important; color: var(--suave); opacity: 1; }
.campo .error { color: var(--rojo-osc); font-weight: 600; font-size: 16px; }
.campo :is([aria-invalid=true]) { border-color: var(--rojo); }
.campo small { font-size: 16px; font-weight: 500; color: var(--suave); }
.buscador { position: relative; width: min(460px, 46vw); }
.buscador .i { position: absolute; left: 18px; top: 50%; translate: 0 -50%; color: var(--azul); pointer-events: none; }
.buscador .entrada { padding-left: 54px; min-height: 60px; border: 0; box-shadow: var(--sombra); font-size: 20px; }

.pago { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(330px, 1fr); gap: clamp(26px, 4vw, 72px); align-items: start; }
.bloque { border: 0; padding: 0; min-width: 0; margin-bottom: clamp(38px, 4.6vw, 64px); }
.bloque legend, .bloque > h2 { font-size: clamp(30px, 3.2vw, 44px); font-stretch: 62%; font-weight: 800; text-transform: uppercase; line-height: 1; margin-bottom: 20px; padding: 0; }
.cuadricula { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 16px; }
.cuadricula .todo { grid-column: 1 / -1; }
.opcion { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 18px; border-radius: var(--r); background: #fff; box-shadow: inset 0 0 0 2px var(--linea); font-weight: 600; font-size: 19px; transition: box-shadow .2s; }
.opcion:hover { box-shadow: inset 0 0 0 2px var(--azul-med); }
.opcion:has(input:checked) { box-shadow: inset 0 0 0 4px var(--azul); }
.opcion:focus-within { outline: 3px solid var(--rojo); outline-offset: 3px; }
.opcion input { position: absolute; opacity: 0; }
.opcion .i { width: 30px; height: 30px; color: var(--azul); }
.opcion span { display: grid; line-height: 1.25; }
.opcion small { font-size: 16px; font-weight: 500; color: var(--suave); }
.opcion .marca { margin-left: auto; width: 28px; height: 28px; border-radius: 8px; box-shadow: inset 0 0 0 2px var(--linea); display: grid; place-items: center; color: transparent; }
.opcion .marca .i { width: 18px; height: 18px; stroke-width: 4; color: inherit; }
.opcion input:checked ~ .marca { background: var(--azul); color: #fff; box-shadow: none; }
.resumen { position: sticky; top: calc(var(--nav) + 20px); background: #fff; border-radius: var(--r-g); padding: clamp(20px, 2vw, 30px); box-shadow: var(--sombra); }
.resumen dl { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; margin: 4px 0 18px; }
.resumen dd { margin: 0; text-align: right; font-weight: 700; }
.resumen .menos { color: var(--rojo-osc); }
.resumen .final { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: end; border-top: 2px solid var(--linea); padding-top: 16px; font-weight: 700; }
.resumen .final strong { font-size: 46px; font-weight: 800; font-stretch: 68%; line-height: .9; }
.resumen details { margin-bottom: 14px; }
.resumen summary { font-weight: 700; padding: 10px 0; }
.resumen details li { display: flex; justify-content: space-between; gap: 14px; padding: 5px 0; }
.nota { background: var(--cielo-2); border-radius: var(--r); padding: 16px 18px; font-weight: 600; }

/* ---------- Pantalla de SINPE ---------- */
.sinpe { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(26px, 5vw, 90px); align-items: start; }
.copiar { width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 16px; padding: 18px 24px; margin-bottom: 14px; border-radius: var(--r-g); background: #fff; text-align: left; transition: background .2s; }
.copiar:hover { background: color-mix(in srgb, var(--cielo) 35%, #fff); }
.copiar small { font-size: 17px; font-weight: 600; color: var(--suave); }
.copiar strong { grid-row: 2; font-size: clamp(42px, 5vw, 72px); font-weight: 800; font-stretch: 66%; line-height: 1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.copiar.largo strong { font-size: clamp(22px, 2.35vw, 44px); white-space: nowrap; }
.desde b { white-space: nowrap; }
.copiar .accion { grid-row: 1 / 3; grid-column: 2; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 12px; background: var(--azul); color: #fff; font-weight: 700; min-width: 124px; justify-content: center; }
.copiar.listo .accion { background: var(--rojo); }
.desde { font-size: 18px; margin: 6px 4px 0; }
.vigia { background: var(--azul); color: #fff; border-radius: var(--r-g); padding: clamp(24px, 3vw, 44px); text-align: center; }
.vigia .grande { font-size: clamp(34px, 3.6vw, 54px); margin: 18px 0 10px; }
.vigia .reloj { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ladrillos { width: 150px; height: 96px; margin: 0 auto; display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(3, 1fr); gap: 6px; }
.ladrillos i { grid-column: span 2; background: #fff; border-radius: 4px; animation: pone 2.4s var(--sale) infinite backwards; }
.ladrillos i:nth-child(4), .ladrillos i:nth-child(7) { grid-column: span 1; }
.ladrillos i:nth-child(n) { animation-delay: calc(var(--n) * .16s); }
@keyframes pone { 0% { opacity: 0; transform: translateY(-26px); } 18%, 82% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.vigia.rechazado { background: var(--rojo-osc); }
.vigia.vencido { background: var(--azul-osc); }
.demo { margin-top: 18px; padding: 18px; border-radius: var(--r); border: 3px dashed var(--rojo); font-weight: 600; }
.demo p { margin-bottom: 12px; }
.demo div { display: flex; flex-wrap: wrap; gap: 10px; }
.demo .btn { min-height: 48px; padding: 8px 16px; font-size: 16px; flex: 1 1 auto; }

/* ---------- Pedido ---------- */
.llegada { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(26px, 4vw, 72px); align-items: start; }
.pasos li { position: relative; display: grid; grid-template-columns: 52px 1fr auto; gap: 0 18px; padding-bottom: 26px; transition: opacity .5s, transform .7s var(--sale); }
.pasos li::before { content: ""; position: absolute; left: 24px; top: 48px; bottom: -2px; width: 4px; background: var(--linea); }
.pasos li:last-child::before { display: none; }
.pasos .punto { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #fff; color: var(--azul); box-shadow: inset 0 0 0 2px var(--linea); transition: background .4s, color .4s; }
.pasos .hecho .punto { background: var(--azul); color: #fff; box-shadow: none; }
.pasos .hecho::before { background: var(--azul); }
.pasos .titulo { align-self: center; font-size: 20px; font-weight: 700; }
.pasos time { align-self: center; font-weight: 600; color: var(--suave); }
.pasos .espera { opacity: .35; transform: translateX(14px); }
.pasos .sistema { grid-column: 2 / -1; margin-top: 4px; color: var(--suave); font-size: 16px; overflow-wrap: anywhere; }
.gano-tarjeta { display: grid; gap: 18px; justify-items: start; }
.gano-tarjeta .suma-puntos { font-size: clamp(46px, 5vw, 80px); color: var(--rojo); }
.ganadas { display: grid; gap: 10px; }
.ganadas li { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 12px; background: var(--rojo); color: #fff; font-size: 19px; font-weight: 700; }
.gano-tarjeta .cuadricula { width: 100%; }

/* ---------- Pedidos anteriores ---------- */
.pedidos li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px 24px; padding: 20px 0; border-bottom: 2px solid var(--linea); }
.pedidos .fotos { display: flex; margin-top: 8px; }
.pedidos .fotos img { width: 68px; height: 51px; object-fit: cover; border-radius: 12px; box-shadow: 0 0 0 3px var(--cielo); margin-right: -10px; }
.pedidos b { font-size: 26px; font-weight: 800; font-stretch: 74%; }

/* ---------- Contáctanos ---------- */
.directo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.directo a { display: flex; align-items: center; gap: 16px; min-height: 92px; padding: 16px 22px; border-radius: var(--r); background: #fff; text-decoration: none; font-size: 26px; font-weight: 800; font-stretch: 78%; transition: background .2s, color .2s; }
.directo a small { display: block; font-size: 16px; font-weight: 600; font-stretch: 100%; color: var(--suave); }
.directo a .i { width: 34px; height: 34px; color: var(--azul); }
.directo a:hover { background: var(--azul); color: #fff; }
.directo a:hover :is(small, .i) { color: #fff; }
.local { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: stretch; background: #fff; }
.local:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.local:nth-of-type(even) .galeria { order: 2; }
.galeria { position: relative; min-height: clamp(300px, 36vw, 560px); overflow: hidden; background: var(--azul-osc); }
.galeria img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s; }
.galeria img:not(.ve) { opacity: 0; }
.galeria .puntos { position: absolute; z-index: 2; left: 20px; bottom: 18px; display: flex; gap: 8px; }
.galeria .puntos button { width: 64px; height: 48px; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 2px #fff; }
.galeria .puntos img { position: static; opacity: 1; }
.galeria .puntos [aria-pressed=true] { box-shadow: 0 0 0 4px var(--rojo); }
.local .info { padding: clamp(28px, 4vw, 64px) var(--orilla) clamp(28px, 4vw, 64px) clamp(24px, 3.4vw, 56px); align-self: center; }
.local:nth-of-type(even) .info { padding-inline: var(--orilla) clamp(24px, 3.4vw, 56px); }
.local h2 { font-size: clamp(36px, 4.2vw, 64px); margin-bottom: 14px; }
.local address { font-style: normal; font-size: 19px; margin: 14px 0 22px; }
.local .acciones { display: flex; flex-wrap: wrap; gap: 10px; }
.horas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(26px, 4vw, 72px); align-items: center; }
.horas table { width: 100%; border-collapse: collapse; font-size: 21px; }
.horas :is(td, th) { padding: 15px 0; border-bottom: 2px solid var(--linea); text-align: left; font-weight: 600; }
.horas td { text-align: right; font-variant-numeric: tabular-nums; }
.horas .hoy :is(td, th) { color: var(--rojo-osc); font-weight: 800; }
.mapa { position: relative; border-radius: var(--r-g); overflow: hidden; aspect-ratio: 16 / 10; background: var(--cielo-2); display: grid; place-items: center; }
.mapa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mapa .plano { position: absolute; inset: 0; background:
  linear-gradient(var(--linea) 1px, transparent 1px) 0 0 / 100% 12.5%, linear-gradient(90deg, var(--linea) 1px, transparent 1px) 0 0 / 7.8125% 100%, var(--cielo-2); }
.plano > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.plano > svg path { fill: none; stroke: var(--azul); stroke-width: .7; }
.plano > svg .ruta { stroke: var(--rojo); stroke-dasharray: 2.4 1.8; }
.plano > b { position: absolute; translate: -50% 0; font-size: 15px; line-height: 1.2; white-space: nowrap; color: var(--azul); }
.pin { position: absolute; translate: -50% -100%; display: grid; justify-items: center; gap: 6px; padding: 4px 8px 0; font-weight: 800; color: var(--azul-osc); border-radius: 12px; }
.pin span { padding: 6px 14px; border-radius: 12px; background: #fff; box-shadow: var(--sombra); white-space: nowrap; }
.pin svg { width: 46px; height: 46px; fill: var(--rojo); stroke: #fff; stroke-width: 1.4; transition: transform .5s var(--sale); }
.pin:is(:hover, :focus-visible) svg { transform: translateY(-5px) scale(1.12); }
.mapa .volver { position: absolute; left: 14px; bottom: 14px; }

/* ---------- Carrito ---------- */
dialog::backdrop { background: rgb(4 36 82 / .55); }
.carrito { width: min(480px, 100vw); height: 100dvh; max-width: none; max-height: none; margin: 0 0 0 auto; border: 0; padding: 0; background: var(--cielo); color: inherit; overflow: hidden; }
.carrito[open] { display: flex; flex-direction: column; animation: entra-lado .5s var(--sale); }
@keyframes entra-lado { from { transform: translateX(60px); opacity: .4; } }
.carrito header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 8px; }
.carrito h2 { font-size: 40px; }
.cerrar { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #fff; color: var(--azul); }
.cerrar:hover { background: var(--cielo-2); }
.carrito .cuerpo { flex: 1; overflow: auto; padding: 4px 22px 22px; overscroll-behavior: contain; }
.carrito .cuerpo li { display: grid; grid-template-columns: 92px 1fr auto; gap: 6px 14px; padding: 16px 0; border-bottom: 2px solid var(--linea); align-items: center; }
.carrito .cuerpo li > img { width: 92px; height: 69px; object-fit: cover; border-radius: 12px; grid-row: span 2; }
.carrito .cuerpo b { font-size: 21px; font-weight: 800; font-stretch: 78%; text-align: right; }
.carrito .cuerpo .cuenta { height: 44px; }
.carrito .cuerpo .cuenta button { height: 44px; width: 44px; }
.carrito .cuerpo .cuenta input { height: 44px; }
.quitar { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--suave); justify-self: end; }
.quitar:hover { color: var(--rojo-osc); background: #fff; }
.carrito footer { padding: 18px 22px calc(20px + env(safe-area-inset-bottom)); background: #fff; }
.carrito .suma { padding: 0 0 14px; }
.carrito .suma-puntos, .resumen .puntos { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--azul); }
.carrito .suma-puntos { margin-bottom: 14px; }
.resumen .puntos { grid-column: 1 / -1; padding-top: 10px; }
.avance-envio { font-weight: 600; margin-bottom: 14px; }
.avance-envio i { display: block; height: 10px; margin-top: 8px; border-radius: 5px; background: linear-gradient(var(--rojo) 0 0) 0 / calc(var(--avance) * 1%) 100% no-repeat var(--cielo-2); transition: background-size .8s var(--sale); }

/* ---------- Pie ---------- */
.pie-pagina { background: var(--azul-osc); color: #fff; padding: clamp(44px, 5vw, 80px) var(--orilla) calc(26px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 36px clamp(24px, 4vw, 72px); }
.pie-pagina > a img { width: min(290px, 100%); }
.pie-pagina li a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.pie-pagina li a:hover { text-decoration: underline; text-decoration-color: var(--rojo); }
.pie-pagina :focus-visible, .lista-maestro :focus-visible { outline-color: #fff; }
.pie-pagina .proto { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; border-top: 2px solid var(--azul-med); padding-top: 22px; font-size: 16px; color: #d4e3f8; }
.pie-pagina .proto a { color: #fff; font-weight: 700; text-decoration: underline; }
.pie-pagina .autores { flex: 1 1 100%; order: 9; font-size: 15px; line-height: 1.9; }
.pie-pagina .autores:empty { display: none; }
.pie-pagina .autores a { padding-block: 4px; font-weight: 500; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.pie-pagina .proto > a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: .22em; }
.pie-pagina .proto button { min-height: 44px; font-weight: 700; color: #fff; text-decoration: underline; text-underline-offset: .22em; }

/* ---------- Avisos y efectos ---------- */
.avisos { position: fixed; z-index: 80; left: 50%; top: calc(var(--nav) + 14px); translate: -50% 0; display: grid; gap: 10px; justify-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.avisos p { background: var(--azul-osc); color: #fff; padding: 14px 24px; border-radius: 14px; font-weight: 700; font-size: 18px; box-shadow: var(--sombra); animation: sube .6s var(--sale); }
.avisos p.gano { background: var(--rojo); font-size: 22px; }
@keyframes sube { from { transform: translateY(-24px); opacity: 0; } }
.chispa { position: fixed; z-index: 90; width: 9px; height: 5px; pointer-events: none; transform: skewX(-26deg); }
.volando { position: fixed; z-index: 85; pointer-events: none; object-fit: cover; border-radius: var(--r); box-shadow: var(--sombra); }
::view-transition-old(root) { animation: .18s ease-out both sale-p; }
::view-transition-new(root) { animation: .45s var(--sale) both entra-p; }
@keyframes sale-p { to { opacity: 0; } }
@keyframes entra-p { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Créditos ---------- */
.creditos h1 { font-size: clamp(42px, 6.2vw, 92px); }
.creditos > p { max-width: 70ch; margin: 18px 0 30px; }
.creditos ul { columns: 260px; column-gap: 40px; }
.creditos li { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; break-inside: avoid; padding: 3px 0; border-bottom: 2px solid var(--linea); }
.creditos li b { margin-right: auto; font-weight: 600; }
.creditos li a { min-width: 44px; min-height: 44px; display: grid; place-items: center; }
.creditos li b a { display: inline-grid; justify-items: start; }

/* ---------- Pantallas medianas ---------- */
@media (max-width: 1180px) {
  .barra nav a { font-size: 16px; }
  .vitrina { --lado: 41vw; }
  .ofertas-tarjeta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pie-pagina { grid-template-columns: 1fr 1fr; }
}
/* ---------- Tabletas y celulares ---------- */
@media (max-width: 900px) {
  :root { --nav: 70px; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .barra .logo img { height: 44px; }
  .barra nav, .barra .btn-carrito { display: none; }
  .barra .llamar { display: inline-flex; }
  .abajo { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -12px 30px -18px rgb(4 36 82 / .5); }
  .abajo :is(a, button) { position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; height: 70px; font-size: 14px; font-weight: 600; text-decoration: none; border-radius: 12px; }
  .abajo [aria-current] { color: var(--rojo-osc); }
  .abajo output { position: absolute; top: 7px; left: calc(50% + 2px); min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; display: grid; place-items: center; background: var(--rojo); color: #fff; font-size: 13px; font-weight: 800; }
  .abajo output:empty { display: none; }
  /* Vitrina: foto arriba, oferta abajo. Todo cabe en la primera pantalla. */
  .vitrina { --foto: clamp(120px, min(31svh, 100svh - 476px), 420px); --baja: 46px; display: block; height: auto; }
  .vitrina::before { inset: 0 0 auto; height: calc(var(--foto) + 12px); clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--baja)), 0 100%); }
  .escenas { inset: 0 0 auto; height: var(--foto); clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--baja)), 0 100%); }
  .rebaja { top: calc(var(--foto) - 106px); bottom: auto; }
  .vitrina .panel { width: auto; height: auto; gap: 14px; padding: calc(var(--foto) + 4px) var(--orilla) 10px; }
  .vitrina h1 { font-size: clamp(36px, min(11.6vw, 6.6svh), 92px); }
  .turno { grid-template-columns: minmax(0, 40%) minmax(0, 1fr); padding: 12px; }
  .turno .foto { min-height: 104px; }
  .turno .precio { margin-top: 6px; }
  .turno .precio strong { font-size: clamp(40px, 10.5vw, 60px); }
  .mandos { max-width: none; }
  .categorias { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; height: auto; }
  .casas { grid-template-columns: 1fr 1fr; }
  .categorias a, .casas a { aspect-ratio: 1; }
  .categorias a:first-child { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .vendidos { grid-template-columns: 1fr 1fr; }
  .tarjeta .globo { left: 4cqw; right: 4cqw; }
  .tarjeta .globo input { flex: 1; width: 0; }
  .globo { left: 50%; top: 84%; }
  .lista-maestro .dos, .pintar, .calc, .pago, .sinpe, .llegada, .club-dos, .mi-tarjeta, .horas, .ficha-prod { grid-template-columns: minmax(0, 1fr); }
  .local, .local:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); }
  .local:nth-of-type(even) .galeria { order: 0; }
  .local .info, .local:nth-of-type(even) .info { padding-inline: var(--orilla); }
  .franjas { grid-template-columns: 1fr; height: auto; padding: 0; }
  .franjas a, .franjas a:first-child, .franjas a:last-child { margin: 0; clip-path: none; height: 250px; }
  .franjas div { left: var(--orilla); }
  .visor { width: calc(100% + var(--orilla) * 2); aspect-ratio: 4 / 3; border-radius: 0; }
  .resumen { position: static; }
  .encabezado { --alto-buscador: 96px; }
  .encabezado > img, :is(.categorias, .casas) img { object-position: var(--foco-m, var(--foco, 50% 50%)); }
  .encabezado .extra { left: var(--orilla); right: var(--orilla); }
  .encabezado.alta .extra { top: 52px; bottom: auto; }
  .encabezado:has(.buscador) { height: auto; padding-bottom: var(--alto-buscador); background: var(--azul); }
  .encabezado:has(.buscador) > img { display: block; height: clamp(270px, 35vw, 560px); }
  .encabezado:has(.buscador) .cinta { bottom: var(--alto-buscador); }
  .buscador { width: 100%; }
  .filtros { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--orilla) * -1); padding: 6px var(--orilla); scrollbar-width: none; }
  .filtros > * { flex: none; }
  .filtros .orden { margin-left: 0; }
  .carrito { width: 100vw; }
}
@media (min-width: 901px) { .barra .llamar { display: none; } }
@media (min-width: 561px) and (max-width: 900px) {
  .vitrina h1 { font-size: clamp(48px, min(9vw, 8.4svh), 76px); }
  .vitrina h1 br { display: none; }
}
@media (max-width: 560px) {
  .rejilla { grid-template-columns: 1fr 1fr; gap: 30px 14px; }
  .vendidos { gap: 34px 14px; }
  .prod.con-puesto { grid-template-columns: minmax(0, 1fr); }
  .puesto { position: absolute; right: 0; top: 0; padding: 7px 13px 8px; border-radius: 0 var(--r) 0 var(--r); background: var(--azul); color: #fff; font-size: 34px; line-height: 1; }
  .pasos .titulo { font-size: 18px; }
  .pasos li:not(.hecho) time { grid-column: 2 / -1; }
  :is(.categorias a:not(:first-child), .casas a) .grande { --p: 12px; font-size: 20px; }
  .muestras { grid-template-columns: repeat(5, 1fr); gap: 10px; }
  .cinta-puntos { --m: 18px; }
  .cinta-puntos .metas span { width: 34px; height: 34px; margin-left: -17px; border-radius: 10px; }
  .cinta-puntos .metas .i { width: 20px; height: 20px; }
  .ofertas-tarjeta { grid-template-columns: 1fr; }
  .oferta { min-height: 0; padding: 16px 18px; }
  .oferta b { margin-top: 6px; }
  .partes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .partes .pastilla { justify-content: center; gap: 8px; padding: 8px 6px; font-size: 17px; }
  .partes .pastilla i { width: 24px; height: 24px; }
  .lineas li { grid-template-columns: 68px minmax(0, 1fr) 52px; }
  .lineas img { width: 68px; height: 68px; grid-row: 1 / 4; }
  .lineas b { grid-column: 2; grid-row: 3; text-align: left; }
  .lineas .mas { grid-column: 3; grid-row: 1 / 4; }
  .prod .datos { grid-template-columns: 1fr; padding-inline: 2px; gap: 8px; }
  .prod .foto { aspect-ratio: 1; border-radius: var(--r); }
  .prod .desc { font-size: 18px; left: 10px; top: 10px; padding: 4px 10px; }
  .prod .precio strong { font-size: 27px; }
  .prod .precio s { display: block; margin: 3px 0 0; }
  .prod .cuenta { width: 100%; justify-content: space-between; }
  .prod .mas { width: 100%; }
  .pie-pagina { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .pie-pagina > a { grid-column: 1 / -1; }
  .pedidos li { grid-template-columns: 1fr auto; }
  .pedidos li .btn { grid-column: 1 / -1; }
  .resultado { padding-inline: 14px; }
  .resultado li { grid-template-columns: 56px 48px 1fr auto; gap: 10px; }
  .resultado li img { width: 56px; height: 42px; }
  .resultado li b { font-size: 19px; }
  .copiar { padding: 16px 18px; }
  .copiar .accion { min-width: 0; padding: 14px; }
  .copiar .accion span { position: absolute; clip-path: inset(50%); }
  .regla .marcas { inset-inline: 20px; }
  .regla .marcas span:nth-child(odd) { font-size: 0; }
  .hoja { padding-left: 56px; font-size: 18px; }
}
@media (pointer: coarse) {
  *, *::before { cursor: auto !important; }
  .enlace { padding-block: 10px; margin-block: -10px; }   /* zona de toque cómoda sin mover el diseño */
  .resumen summary { padding-block: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after, ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  /* Las ofertas pasan solas sin moverse: la marca se ve llena desde el inicio y solo cuenta el tiempo. */
  .vitrina .mandos .marcas .activa i { animation-duration: var(--dura) !important; animation-timing-function: step-start !important; }
}
