/* =====================================================================
   WAVE STORE · Catálogo público (diseño V2 "Velocidad")
   Rojo #E30613, negro y blanco. Títulos en Barlow Condensed cursiva.
   Las 9 animaciones están numeradas igual que en la maqueta.
   ===================================================================== */
:root {
    --rojo: #E30613;
    --rojo-oscuro: #B3050F;
    --negro: #000;
    --gris: #EDEDED;
    --gris-2: #5E5E63;
    --gris-3: #BDBDC2;
    --verde: #1F8F4E;
    --verde-oscuro: #0F6B37;
    --verde-texto: #1F6B3A;
    --ambar-texto: #8A5300;
    --alto-cabecera: 60px;
    color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
/* Seguro: nada puede salirse por los costados (clip no rompe la cabecera fija) */
html, body { overflow-x: clip; max-width: 100%; }
body {
    margin: 0; background: #fff; color: #000;
    font-family: "Barlow", -apple-system, BlinkMacSystemFont, system-ui, sans-serif; font-size: 16px; line-height: 1.4;
    font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
    overscroll-behavior-y: contain;   /* el "bajar para actualizar" es propio (animación 7) */
}
body.bloqueado { overflow: hidden; }
img { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.cond { font-family: "Barlow Condensed", "Barlow", sans-serif; font-style: italic; font-weight: 900; }
.oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--rojo); outline-offset: 3px; }
.saltar { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 14px; background: #fff; color: #000; font-weight: 700; }
.saltar:focus { top: 8px; }

/* ---------- 1. Intro ---------- */
.intro {
    position: fixed; inset: 0; z-index: 90; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
    /* Corta (0,8 s en total; debe coincidir con tema.intro de config.js): ola + logo y se va */
    animation: intro-sale .35s .45s cubic-bezier(.7, 0, .3, 1) forwards; pointer-events: none;
}
.intro path { stroke-dasharray: 420; stroke-dashoffset: 420; animation: trazo .4s cubic-bezier(.4, 0, .2, 1) forwards; }
.intro img { width: 150px; height: auto; opacity: 0; transform: scale(.85); animation: logo-in .25s .15s ease-out forwards; }
@keyframes trazo { to { stroke-dashoffset: 0; } }
@keyframes logo-in { to { opacity: 1; transform: none; } }
@keyframes intro-sale { to { transform: translateY(-100%); visibility: hidden; } }

/* ---------- Barra de aviso ---------- */
.aviso { background: var(--rojo); color: #fff; text-align: center; font-size: 14px; font-weight: 600; padding: 8px 16px; }

/* ---------- Cabecera ---------- */
.cabecera {
    position: sticky; top: 0; z-index: 35; height: var(--alto-cabecera); padding: 0 8px 0 14px;
    background: #000; color: #fff; display: flex; align-items: center; gap: 4px;
}
.cabecera__marca { position: relative; display: flex; align-items: center; margin-right: auto; text-decoration: none; }
.cabecera__marca img { display: block; height: 48px; width: auto; }
/* 2. El logo entra con estela de velocidad */
.cabecera__marca img { animation: nombre-in .45s var(--retraso-intro, .1s) cubic-bezier(.2, .9, .2, 1) both; }
.estela { position: absolute; right: 100%; top: 50%; width: 70px; height: 16px; margin-top: -8px; pointer-events: none; animation: estela .6s var(--retraso-intro, .1s) ease-out both; }
.estela i { position: absolute; right: 6px; height: 2px; background: var(--rojo); border-radius: 1px; }
.estela i:nth-child(1) { top: 2px; width: 60px; } .estela i:nth-child(2) { top: 7px; width: 40px; background: #fff; } .estela i:nth-child(3) { top: 12px; width: 52px; }
@keyframes nombre-in { from { opacity: 0; transform: translateX(-70px) skewX(-14deg); } to { opacity: 1; transform: none; } }
@keyframes estela { 0% { opacity: 1; transform: scaleX(1); transform-origin: right; } 100% { opacity: 0; transform: scaleX(0); transform-origin: right; } }

.icono-btn { position: relative; width: 44px; height: 44px; border: 0; background: none; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.icono-btn svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icono-btn:focus-visible { outline-color: #fff; }
.buscador { flex: 1; min-width: 0; margin-left: 8px; }
.buscador input { width: 100%; height: 40px; padding: 0 12px; border: 0; background: #1C1C1E; color: #fff; font: inherit; font-size: 16px; }
.buscador input::placeholder { color: #8E8E93; }
.cabecera--buscando .cabecera__marca { display: none; }

/* 3. La bolsa salta y salpica al recibir un producto */
.bolsa__icono { display: flex; }
.bolsa__cuenta { position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 10px; background: var(--rojo); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.salta { animation: salta .35s ease; }
@keyframes salta { 35% { transform: scale(1.3); } }
.salpica { position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--rojo); pointer-events: none; animation: salpica .6s ease-out forwards; }
@keyframes salpica { from { opacity: 1; transform: scale(.4); } to { opacity: 0; transform: scale(1.5); } }
.vuelo-x { position: fixed; z-index: 80; pointer-events: none; animation: vx .62s cubic-bezier(.3, 0, .8, .5) forwards; }
.vuelo-y { width: 52px; height: 52px; background: var(--gris) center / cover no-repeat; box-shadow: 0 6px 16px rgba(0,0,0,.25); animation: vy .62s cubic-bezier(.5, -0.6, .8, 1) forwards; }
@keyframes vx { to { transform: translateX(var(--dx)); } }
@keyframes vy { to { transform: translateY(var(--dy)) scale(.35) rotate(-20deg); opacity: .6; } }

/* ---------- 7. Bajar para actualizar ---------- */
.tirar { height: 0; overflow: hidden; background: #000; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; transition: height .3s ease; }
.tirar--arrastrando { transition: none; }
.tirar__ola { position: relative; width: 54px; height: 54px; border-radius: 50%; border: 2px solid #fff; overflow: hidden; flex-shrink: 0; }
.tirar__agua { position: absolute; left: -50%; width: 200%; height: 120%; top: 100%; transition: top .1s; }
.tirar--actualizando .tirar__agua { animation: deriva 1.1s linear infinite; }
.tirar__texto { font-size: 13px; font-weight: 600; padding-bottom: 10px; }

/* ---------- Portadas ---------- */
.portadas { position: relative; height: 300px; background: #000; color: #fff; overflow: hidden; }
.portada { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.portada--activa { opacity: 1; visibility: visible; }
.portada__foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portada__sombra { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.75), rgba(0,0,0,.15) 70%), linear-gradient(transparent 55%, rgba(0,0,0,.4)); }
.franja { position: absolute; left: -40px; top: 92px; width: 330px; height: 82px; background: var(--rojo); transform: skewX(-18deg); }
.portada--activa .franja { animation: franja .7s var(--retraso-intro, .1s) cubic-bezier(.2, .9, .2, 1) both; }
.portada__texto { position: absolute; left: 18px; right: 18px; top: 28px; z-index: 2; }
.portada--activa .portada__texto { animation: titular .55s calc(var(--retraso-intro, .1s) + .3s) cubic-bezier(.2, .9, .2, 1) both; }
.portada__sub { margin: 0 0 4px; font-size: 15px; font-weight: 600; color: #E5E5EA; max-width: 300px; }
.portada__titulo { margin: 0; font-size: 60px; line-height: .88; letter-spacing: -.01em; text-transform: uppercase; max-width: 320px; overflow-wrap: anywhere; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.portada__boton { position: absolute; z-index: 3; left: 18px; bottom: 60px; min-height: 46px; padding: 0 22px; border: 0; background: #fff; color: #000; display: inline-flex; align-items: center; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; }
.portada__puntos { position: absolute; z-index: 4; right: 16px; bottom: 62px; display: flex; gap: 4px; }
.portada__puntos button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.portada__puntos button::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.5); transition: width .3s, background .3s; }
.portada__puntos button[aria-current="true"]::before { width: 22px; background: #fff; }
@keyframes franja { from { transform: translateX(-110%) skewX(-18deg); } to { transform: translateX(0) skewX(-18deg); } }
@keyframes titular { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
.portadas .olas { height: 50px; z-index: 2; }
.portadas .ola-b { opacity: 1; }

/* ---------- Portada viva (tema.portadaViva) ---------- */
/* 1. Al entrar, una ola roja cruza la portada de izquierda a derecha y la deja ver (solo la primera vez) */
.revela { position: absolute; inset: 0; z-index: 6; background: #000; pointer-events: none; animation: revela .85s var(--retraso-intro, .1s) cubic-bezier(.7, 0, .3, 1) forwards; }
.revela__ola {
    position: absolute; top: 0; bottom: 0; left: -70px; width: 72px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 200' preserveAspectRatio='none'%3E%3Cpath d='M72 0H40C10 25 10 50 40 75S70 125 40 150 10 175 40 200H72Z' fill='%23E30613'/%3E%3Cpath d='M40 0C10 25 10 50 40 75S70 125 40 150 10 175 40 200' fill='none' stroke='%23fff' stroke-width='5'/%3E%3C/svg%3E") left / 100% 100% no-repeat;
}
@keyframes revela { to { transform: translateX(calc(100% + 80px)); visibility: hidden; } }
/* Si la portada se revela, el título espera a que pase la ola */
.portadas:has(.revela) { --tras-revela: .45s; }

/* El título entra palabra por palabra con un golpe */
.golpe { display: inline-block; }
.portada--activa .golpe { animation: golpe .5s calc(var(--retraso-intro, .1s) + var(--tras-revela, 0s) + .35s + var(--i) * .1s) cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes golpe { from { opacity: 0; transform: scale(1.7) translateY(-6px); } 55% { opacity: 1; } to { opacity: 1; transform: none; } }

/* 2. Foto viva: zoom lento mientras se ve (los afiches no, deben verse completos) y un destello que cruza cada pocos segundos */
.portada:not(.portada--afiche).portada--activa .portada__foto { transform-origin: 70% 50%; animation: zoom-lento 9s ease-out both; }
@keyframes zoom-lento { from { transform: scale(1); } to { transform: scale(1.08); } }
.portada__brillo { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.portada__brillo::before {
    content: ""; position: absolute; top: -10%; bottom: -10%; left: 0; width: 38%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.22) 45%, rgba(255,255,255,.32) 50%, rgba(255,255,255,.22) 55%, transparent);
    transform: translateX(-160%) skewX(-20deg); animation: destello 6s 2.2s ease-in-out infinite;
}
@keyframes destello { 0% { transform: translateX(-160%) skewX(-20deg); } 22%, 100% { transform: translateX(380%) skewX(-20deg); } }

/* 3. Cinta roja diagonal que corre bajo la portada */
.cinta { position: relative; z-index: 3; width: calc(100% + 24px); margin: -20px -12px 0; padding: 8px 0; background: var(--rojo); color: #fff; overflow: hidden; transform: rotate(-2deg); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.cinta__pista { display: flex; align-items: center; width: max-content; animation: cinta 34s linear infinite; }
.cinta__pista span { padding: 0 16px; font-family: "Barlow Condensed", "Barlow", sans-serif; font-style: italic; font-weight: 900; font-size: 19px; line-height: 1.1; text-transform: uppercase; white-space: nowrap; }
.cinta__pista i { flex-shrink: 0; width: 9px; height: 9px; background: #fff; transform: skewX(-18deg); }
@keyframes cinta { to { transform: translateX(-50%); } }

/* ---------- Portada de marca: logo flotando en 3D (tema.logo3d) ---------- */
.portada--marca { display: flex; flex-direction: column; align-items: center; padding-top: 12px; background: radial-gradient(ellipse at 50% 30%, #2A0306 0%, #000 62%); }
/* Anillo de luz roja que gira detrás del logo */
.marca3d__anillo {
    position: absolute; left: 50%; top: 72px; width: 196px; height: 196px; margin: -98px 0 0 -98px; border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0 55%, rgba(227,6,19,.15) 70%, #E30613 92%, #fff 95%, transparent 96%);
    -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%, #000 67%, transparent 68%); mask: radial-gradient(circle, transparent 62%, #000 63%, #000 67%, transparent 68%);
    animation: anillo 5s linear infinite;
}
.marca3d__anillo::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle, rgba(227,6,19,.28), transparent 70%); }
@keyframes anillo { to { transform: rotate(1turn); } }
/* Escena: perspectiva + flotar suave */
.marca3d__escena { position: relative; z-index: 1; perspective: 700px; animation: flota 4.5s ease-in-out infinite; }
@keyframes flota { 50% { transform: translateY(-9px); } }
/* El logo: se inclina con el mouse/teléfono (--rx, --ry desde app.js) y se balancea solo */
.marca3d { transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.marca3d__giro { position: relative; width: 150px; aspect-ratio: 257 / 200; transform-style: preserve-3d; animation: balanceo 7s ease-in-out infinite; }
@keyframes balanceo { 0%, 100% { transform: rotateY(-14deg) rotateX(4deg); } 50% { transform: rotateY(14deg) rotateX(-3deg); } }
/* Grosor: copias del logo detrás, cada una más al fondo y más oscura (al inclinarse se ve el canto) */
.marca3d__capa { position: absolute; inset: 0; width: 100%; height: 100%; transform: translateZ(calc(var(--z) * -1.6px)); filter: brightness(.32) saturate(1.6); backface-visibility: hidden; }
.marca3d__capa--frente { transform: translateZ(1px); filter: drop-shadow(0 0 14px rgba(227,6,19,.45)); }
/* Sombra en el piso que se achica cuando el logo sube */
.marca3d__sombra { display: block; width: 116px; height: 12px; margin: 8px auto 0; border-radius: 50%; background: radial-gradient(ellipse, rgba(227,6,19,.55), transparent 70%); animation: sombra-flota 4.5s ease-in-out infinite; }
@keyframes sombra-flota { 50% { transform: scaleX(.78); opacity: .6; } }
.marca3d__texto { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 2px; padding: 0 18px; text-align: center; }
.marca3d__lema { margin: 0; font-size: 15px; font-weight: 600; color: #E5E5EA; }
.marca3d__boton { position: static; min-height: 42px; }
.portada--marca.portada--activa .marca3d__texto { animation: titular .55s calc(var(--retraso-intro, .1s) + var(--tras-revela, 0s) + .3s) cubic-bezier(.2, .9, .2, 1) both; }

/* Lo que no se ve, quieto: ahorra batería en el celular */
.portadas.fuera-de-vista .marca3d__anillo, .portadas.fuera-de-vista .marca3d__escena, .portadas.fuera-de-vista .marca3d__giro, .portadas.fuera-de-vista .marca3d__sombra,
.portadas.fuera-de-vista .portada__foto, .portadas.fuera-de-vista .portada__brillo::before, .cinta.fuera-de-vista .cinta__pista { animation-play-state: paused; }

/* ---------- Olas (detrás de cada foto y al pie de la portada) ---------- */
.olas { position: absolute; left: 0; right: 0; bottom: 0; height: 40%; overflow: hidden; pointer-events: none; }
.olas svg { position: absolute; bottom: 0; left: 0; width: 200%; height: 100%; }
.ola-a { animation: deriva 11s linear infinite; }
.ola-b { animation: deriva 7s linear infinite reverse; opacity: .55; }
@keyframes deriva { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Al bajar: los productos suben desde la ola; la portada se esfuma.
   Al salir por arriba NO se desvanecen (parecía un error y costaba leer lo que pasa bajo la cabecera).
   Solo opacidad y movimiento (sin desenfoque): así el scroll va fluido en celulares básicos. */
@supports (animation-timeline: view()) {
    /* La tarjeta queda nítida apenas asoman 120 px (en PC las tarjetas son altas: con porcentajes quedaba borrosa casi hasta arriba) */
    .prod { animation: llega linear both; animation-timeline: view(); animation-range: entry 0% entry 120px; }
    .portadas { animation: esfuma linear both; animation-timeline: scroll(root); animation-range: 0 280px; }
}
@keyframes llega { from { opacity: 0; transform: translateY(28px) scale(.97); } to { opacity: 1; transform: none; } }
/* Sin agrandar: si se agranda, la portada queda más ancha que la pantalla */
@keyframes esfuma { to { opacity: .2; transform: translateY(-30px); } }

/* ---------- Categorías ---------- */
.tabs-zona { position: sticky; top: var(--alto-cabecera); z-index: 20; display: flex; align-items: center; gap: 6px; padding: 12px 0 10px 16px; background: rgba(255,255,255,.97); }
.tabs { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-right: 16px;
        -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex-shrink: 0; min-height: 42px; padding: 0 22px; border: 0; background: var(--gris); color: #000; font-size: 15px; font-weight: 700; cursor: pointer; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.tab[aria-pressed="true"] { background: var(--rojo); color: #fff; }
/* Botón que abre TODAS las categorías */
.tab--todas { background: #000; color: #fff; display: inline-flex; align-items: center; gap: 6px; padding: 0 18px 0 16px; }
.tab--todas svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.tab--todas:focus-visible { box-shadow: inset 0 0 0 3px var(--rojo); }
/* Secciones automáticas */
.tab--ofertas:not([aria-pressed="true"]) { background: #FFE3E5; color: var(--rojo-oscuro); }
.tab--nuevos:not([aria-pressed="true"]) { background: #000; color: #fff; }
.tab:focus-visible { outline: none; box-shadow: inset 0 0 0 3px #000; }
.encabezado { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 16px 12px; }
.encabezado h2 { margin: 0; font-size: 32px; line-height: 1; text-transform: uppercase; }
.encabezado span { font-size: 14px; color: var(--gris-2); white-space: nowrap; }

/* ---------- Ordenar y filtrar ---------- */
.filtros { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 16px 14px; }
.filtros__orden { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--gris-2); }
.filtros__orden select { min-height: 40px; padding: 0 30px 0 10px; border: 1px solid #C7C7CC; border-radius: 0; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 10px center; color: #000; font: inherit; font-size: 15px; font-weight: 600; appearance: none; -webkit-appearance: none; cursor: pointer; }
.filtro-chip { min-height: 40px; padding: 0 14px; border: 1px solid #C7C7CC; background: #fff; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.filtro-chip[aria-pressed="true"] { background: #000; border-color: #000; color: #fff; }
.filtro-chip[aria-pressed="true"]::before { content: "✓ "; }

/* ---------- Sección "Categorías" del inicio ---------- */
.seccion-cats { padding: 22px 0 6px; }
.seccion-cats h2 { margin: 0 16px 12px; font-size: 30px; line-height: 1; text-transform: uppercase; }
.seccion-cats__lista { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; padding: 0 16px 6px; }
.seccion-cats__lista::-webkit-scrollbar { display: none; }
.tarjeta-cat { position: relative; flex: 0 0 136px; aspect-ratio: 3 / 4; padding: 0; border: 0; background: var(--gris); color: #fff; overflow: hidden; cursor: pointer; scroll-snap-align: start; text-align: left; }
.tarjeta-cat__foto, .celda-cat__foto { position: absolute; inset: 0; }
.tarjeta-cat__foto img, .celda-cat__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tarjeta-cat:hover img, .celda-cat:hover img { transform: scale(1.05); }
.tarjeta-cat::after, .celda-cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(0,0,0,.78)); }
.tarjeta-cat__texto, .celda-cat__texto { position: absolute; z-index: 1; left: 10px; right: 10px; bottom: 10px; display: flex; flex-direction: column; }
.tarjeta-cat__texto strong, .celda-cat__texto strong { font-size: 21px; line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; }
.tarjeta-cat__texto small, .celda-cat__texto small { margin-top: 3px; font-size: 12px; font-weight: 600; color: #E5E5EA; }
.tarjeta-cat__texto strong { font-size: 18px; overflow-wrap: normal; hyphens: auto; }
.tarjeta-cat--todas { background: #000; }
.tarjeta-cat--todas::after { display: none; }
.tarjeta-cat--todas::before { content: ""; position: absolute; left: -20px; top: 38%; width: 140%; height: 34px; background: var(--rojo); transform: skewX(-18deg) rotate(-8deg); }
.tarjeta-cat--todas .tarjeta-cat__texto { z-index: 1; }
.tarjeta-cat--ofertas, .celda-cat--ofertas { background: var(--rojo); }
.tarjeta-cat--nuevos, .celda-cat--nuevos { background: #000; }
.tarjeta-cat:focus-visible, .celda-cat:focus-visible { outline: 3px solid var(--rojo); outline-offset: 2px; }

/* ---------- Fila "Novedades" del inicio (tema.novedades = 'fila') ---------- */
.seccion-novedades { padding: 22px 0 4px; }
.seccion-novedades__cabeza { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 16px 12px; }
.seccion-novedades h2 { margin: 0; font-size: 30px; line-height: 1; text-transform: uppercase; }
.seccion-novedades__todas { flex-shrink: 0; min-height: 40px; padding: 0 2px; border: 0; background: none; color: var(--rojo); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.seccion-novedades__lista { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; padding: 0 16px 6px; }
.seccion-novedades__lista::-webkit-scrollbar { display: none; }
.seccion-novedades .relacionado { flex-basis: 136px; color: #000; }
.seccion-novedades .relacionado__foto { position: relative; }

/* Ventana con todas las categorías */
.hoja--categorias { padding: 0 16px calc(20px + env(safe-area-inset-bottom)); }
.grilla-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.celda-cat { position: relative; aspect-ratio: 4 / 3; padding: 0; border: 0; background: var(--gris); color: #fff; overflow: hidden; cursor: pointer; text-align: left; }
.celda-cat[aria-current="true"] { box-shadow: 0 0 0 3px var(--rojo); }

/* 4. Cambiar de categoría: barrido diagonal rojo */
.barrido { position: fixed; top: var(--alto-cabecera); bottom: 0; left: 0; width: 160%; z-index: 30; pointer-events: none; background: var(--rojo); transform: translateX(-120%) skewX(-18deg); animation: barre .5s cubic-bezier(.6, 0, .3, 1) forwards; }
@keyframes barre { to { transform: translateX(110%) skewX(-18deg); } }
.aparece { animation: aparece .4s .22s ease-out both; }
@keyframes aparece { from { opacity: 0; transform: translateX(-14px); } }

/* ---------- Productos ---------- */
.productos { list-style: none; margin: 0; padding: 0 16px 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; row-gap: 24px; }
.prod--destacado { grid-column: 1 / -1; }
.prod__foto { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; overflow: hidden; background: var(--gris); color: #000; text-decoration: none; }
.prod--destacado .prod__foto { aspect-ratio: 16 / 11; }
.prod__foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.prod__foto:hover img { transform: scale(1.04); }
.prod__sin-foto { position: relative; z-index: 2; width: 40%; height: auto; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linejoin: round; opacity: .5; }
.prod--agotado .prod__foto img { filter: grayscale(1); opacity: .55; }
.prod__marca { position: absolute; z-index: 5; left: 0; top: 10px; padding: 3px 10px 3px 8px; background: var(--rojo); color: #fff; font-size: 13px; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.prod__marca--oferta { background: #000; top: auto; bottom: 10px; }
.prod__info { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; }
.prod__texto { flex: 1; min-width: 0; }
.prod__nombre { display: block; font-size: 15px; font-weight: 600; line-height: 1.25; text-decoration: none; }
.prod__precio { margin-top: 3px; font-size: 24px; line-height: 1; white-space: nowrap; }
.prod__precio .prod__antes { display: block; margin: 3px 0 0; }
.prod__antes { margin-left: 6px; font-family: "Barlow", sans-serif; font-style: normal; font-weight: 500; font-size: 14px; color: var(--gris-2); text-decoration: line-through; }
.prod__estado { margin-top: 4px; font-size: 13px; font-weight: 600; }
.estado--disponible { color: var(--verde-texto); }
.estado--a_pedido { color: var(--ambar-texto); }
.estado--agotado { color: var(--gris-2); }
.btn-mas { flex-shrink: 0; min-width: 48px; height: 42px; padding: 0 10px; border: 0; background: var(--rojo); color: #fff; font-size: 24px; cursor: pointer; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.btn-mas--hay { background: #000; }
.btn-mas:focus-visible { outline: none; box-shadow: inset 0 0 0 3px #000; }
.btn-mas--hay:focus-visible { box-shadow: inset 0 0 0 3px var(--rojo); }
.consultar { min-height: 42px; display: flex; align-items: center; font-size: 14px; font-weight: 700; color: var(--verde-texto); white-space: nowrap; }

/* ---------- 5. Humo en los vapes (único efecto en las tarjetas) ----------
   Sin desenfoque (el degradado ya es suave) y solo se mueve mientras la tarjeta está en pantalla. */
.efecto { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 3; }
.humo { position: absolute; bottom: 20%; width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.75), rgba(255,255,255,.3) 38%, rgba(255,255,255,0) 70%); opacity: 0; animation: voluta 4.2s ease-out infinite paused; }
.efecto--en-vista .humo { animation-play-state: running; }
.humo:nth-child(1) { left: 38%; } .humo:nth-child(2) { left: 52%; animation-delay: 1.4s; } .humo:nth-child(3) { left: 30%; animation-delay: 2.8s; }
@keyframes voluta { 0% { opacity: 0; transform: translate(0, 30px) scale(.5); } 25% { opacity: .9; } 100% { opacity: 0; transform: translate(14px, -110px) scale(1.8); } }

/* ---------- 9. Sello AGOTADO con golpe ---------- */
.sello { position: absolute; left: -20px; right: -20px; top: 44%; z-index: 4; padding: 6px 0; background: #000; color: #fff; text-align: center; font-size: 22px; transform: rotate(-8deg); animation: sello .5s .3s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes sello { 0% { opacity: 0; transform: rotate(-14deg) scale(2.4); } 60% { opacity: 1; transform: rotate(-7deg) scale(.92); } 100% { transform: rotate(-8deg) scale(1); } }

.vacio, .cargando, .error-carga { padding: 50px 24px; text-align: center; color: var(--gris-2); }
.error-carga button, .vacio button { margin-top: 12px; }
.btn-linea { min-height: 44px; padding: 0 20px; border: 2px solid #000; background: #fff; font-weight: 700; cursor: pointer; }

/* ---------- Barra del pedido ---------- */
.barra-pedido {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 36; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: #000; color: #fff; display: flex; align-items: center; gap: 12px; animation: sube .35s cubic-bezier(.2, .9, .2, 1) both;
}
@keyframes sube { from { transform: translateY(100%); } }
.barra-pedido__resumen { flex: 1; min-width: 0; padding: 0; border: 0; background: none; color: #fff; text-align: left; cursor: pointer; }
.barra-pedido__cuenta { display: block; font-size: 13px; color: var(--gris-3); }
.barra-pedido__total { display: block; font-size: 27px; line-height: 1; white-space: nowrap; }
/* El espacio para la barra del pedido va dentro del pie (negro), así no queda una franja blanca abajo */
body.con-pedido .pie { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }

/* "Ver mi pedido": rojo de la marca (el verde es solo para lo que abre WhatsApp) */
.btn-ver { min-height: 50px; padding: 0 22px 0 18px; border: 0; background: var(--rojo); color: #fff; display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; cursor: pointer; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.btn-ver svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-ver:focus-visible { outline: none; box-shadow: inset 0 0 0 3px #fff; }

/* 8. Precio que rueda como marcador */
.dig { display: inline-block; height: 1em; overflow: hidden; vertical-align: top; line-height: 1; }
.dig-col { display: block; transition: transform .5s cubic-bezier(.3, 1.3, .5, 1); }
.dig-col b { display: block; height: 1em; font-weight: inherit; }

/* 6. Pedir por WhatsApp: una ola verde llena el botón */
.btn-whats { position: relative; overflow: hidden; isolation: isolate; min-height: 50px; padding: 0 18px; border: 0; background: var(--verde); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn-whats__icono { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.llenado { position: absolute; inset: 0; z-index: -1; background: var(--verde-oscuro); transform: translateX(-105%); }
.llenado svg { position: absolute; right: -18px; top: 0; height: 100%; width: 24px; fill: var(--verde-oscuro); }
.llenando .llenado { animation: llena .9s cubic-bezier(.5, 0, .3, 1) forwards; }
@keyframes llena { to { transform: translateX(0); } }
.btn-whats:disabled { background: #3A3A3C; cursor: default; }
.btn-whats:focus-visible { outline-color: #fff; }

/* ---------- Inundación: al abrir un producto, las olas llenan SOLO el cuadro del producto y al bajar lo dejan ver ---------- */
.inundacion { position: fixed; z-index: 60; pointer-events: none; overflow: hidden; }
.agua { position: absolute; left: 0; right: 0; top: 0; height: calc(100% + 8px); transform: translateY(calc(100% + 120px)); animation: inundar .9s cubic-bezier(.55, 0, .35, 1) forwards; }
.agua--negra { background: #000; }
.agua--oscura { background: #9E0410; animation-delay: .04s; }
.agua--roja { background: var(--rojo); animation-delay: .08s; }
@keyframes inundar {
    0% { transform: translateY(calc(100% + 120px)); }
    44%, 54% { transform: translateY(0); }
    100% { transform: translateY(calc(100% + 120px)); }
}
/* Crestas: varias olas por capa que corren de lado a distinta velocidad */
.cresta { position: absolute; left: 0; bottom: 100%; width: 200%; margin-bottom: -1px; }
.agua--negra .cresta { height: 64px; animation: deriva 1.1s linear infinite; }
.agua--oscura .cresta { height: 52px; animation: deriva .8s linear infinite reverse; }
.agua--roja .cresta { height: 44px; animation: deriva .65s linear infinite; }
.espuma { position: absolute; left: 0; width: 200%; height: 40px; pointer-events: none; }
.espuma--1 { bottom: calc(100% + 2px); animation: deriva .65s linear infinite; }
.espuma--2 { bottom: calc(100% - 14px); opacity: .7; animation: deriva .9s linear infinite reverse; }
/* Burbujas de espuma que suben y revientan sobre la cresta */
.burbujas { position: absolute; left: 0; right: 0; bottom: 100%; height: 70px; }
.burbuja-espuma { position: absolute; bottom: 0; border-radius: 50%; background: #fff; opacity: 0; animation: burbuja .7s ease-out infinite; }
@keyframes burbuja {
    0% { opacity: 0; transform: translateY(6px) scale(.3); }
    25% { opacity: .95; }
    80% { opacity: .8; transform: translateY(-34px) scale(1); }
    100% { opacity: 0; transform: translateY(-40px) scale(1.5); }
}
.hoja.hoja--velada { visibility: hidden; }
.hoja.hoja--sin-entrada { animation: none; }

/* ---------- Ventanas (detalle y pedido) ---------- */
.fondo-hoja { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.5); animation: aparece-fondo .25s ease both; }
@keyframes aparece-fondo { from { opacity: 0; } }
.hoja {
    position: fixed; z-index: 51; left: 0; right: 0; bottom: 0; max-height: 94dvh; overflow-y: auto; overscroll-behavior: contain;
    background: #fff; color: #000; animation: hoja-sube .32s cubic-bezier(.2, .9, .2, 1) both;
}
@keyframes hoja-sube { from { transform: translateY(100%); } }
.hoja__cerrar { position: sticky; top: 10px; z-index: 6; float: right; margin: 10px 10px -54px 0; width: 44px; height: 44px; border: 0; border-radius: 22px; background: rgba(255,255,255,.94); color: #000; box-shadow: 0 2px 8px rgba(0,0,0,.15); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.hoja__cerrar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

/* Detalle del producto */
.galeria { position: relative; background: var(--gris); }
.galeria__fotos { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 1; }
.galeria__fotos::-webkit-scrollbar { display: none; }
.galeria__fotos img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.galeria__vacia { flex: 0 0 100%; display: flex; align-items: center; justify-content: center; }
.galeria__puntos { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 6px; }
.galeria__puntos span { width: 6px; height: 6px; border-radius: 3px; background: rgba(0,0,0,.25); transition: width .3s; }
.galeria__puntos span.activo { width: 18px; background: #000; }
.detalle { padding: 18px 16px calc(110px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 18px; }
.detalle__etiquetas { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.etiqueta { padding: 3px 9px; font-size: 12px; font-weight: 700; background: var(--gris); }
.etiqueta--nuevo { background: var(--rojo); color: #fff; }
.etiqueta--disponible { background: #E8F5EC; color: var(--verde-texto); }
.etiqueta--a_pedido { background: #FFF1D6; color: var(--ambar-texto); }
.etiqueta--agotado { background: #E6E6EA; color: #4F4F55; }
.detalle h2 { margin: 0; font-size: 34px; line-height: .95; text-transform: uppercase; }
.detalle__precio { margin-top: 8px; font-size: 32px; line-height: 1; color: var(--rojo-oscuro); }
.detalle__descripcion { margin: 10px 0 0; font-size: 15px; line-height: 1.5; color: #3A3A3C; white-space: pre-line; }
.opcion h3 { margin: 0 0 8px; font-size: 15px; font-weight: 700; }
.opcion h3 span { font-weight: 500; color: #3A3A3C; }
.opcion__lista { display: flex; flex-wrap: wrap; gap: 8px; }
.color { width: 42px; height: 42px; border-radius: 21px; padding: 0; border: 1px solid #C7C7CC; cursor: pointer; }
.color[aria-checked="true"] { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #000; }
.color[aria-disabled="true"] { opacity: .35; background-image: linear-gradient(135deg, transparent 46%, #000 46%, #000 54%, transparent 54%) !important; }
.chip-op { min-width: 52px; min-height: 44px; padding: 0 14px; border: 1px solid #D1D1D6; background: #fff; font-size: 15px; font-weight: 700; cursor: pointer; }
.chip-op[aria-checked="true"] { background: #000; border-color: #000; color: #fff; }
.chip-op[aria-disabled="true"] { background: #F2F2F7; color: #AEAEB2; border-style: dashed; text-decoration: line-through; cursor: not-allowed; }
.opcion__nota { margin: 8px 0 0; font-size: 13px; color: var(--gris-2); }
.opcion--falta h3 { color: var(--rojo-oscuro); }
.opcion--falta .opcion__lista { animation: temblor .45s ease; }
@keyframes temblor { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
.cantidad { display: flex; align-items: center; justify-content: space-between; }
.cantidad h3 { margin: 0; font-size: 15px; }
.contador { display: flex; align-items: center; gap: 4px; padding: 4px; background: #F2F2F7; }
.contador button { width: 38px; height: 38px; border: 0; background: #fff; font-size: 20px; font-weight: 700; cursor: pointer; }
.contador span { min-width: 30px; text-align: center; font-weight: 800; }
.detalle__pie { position: sticky; bottom: 0; z-index: 5; margin: 0 -16px calc(-110px - env(safe-area-inset-bottom)); padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid #E5E5EA; display: flex; gap: 10px; }
.btn-agregar { flex: 1; min-height: 54px; border: 0; background: var(--rojo); color: #fff; font-size: 17px; font-weight: 800; cursor: pointer; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.btn-agregar:disabled { background: #8E8E93; cursor: default; }

/* Pedido */
.pedido { padding: 0 16px calc(24px + env(safe-area-inset-bottom)); }
.pedido__cabeza { position: sticky; top: 0; z-index: 5; margin: 0 -16px 14px; padding: 18px 16px 14px; background: #000; color: #fff; display: flex; align-items: center; justify-content: space-between; }
.pedido__cabeza h2 { margin: 0; font-size: 34px; line-height: 1; text-transform: uppercase; }
.pedido__cabeza .hoja__cerrar { float: none; position: static; margin: 0; }
.items { list-style: none; margin: 0 0 16px; padding: 0; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #E5E5EA; }
.item__foto { width: 60px; height: 60px; flex-shrink: 0; object-fit: cover; background: var(--gris); }
.item__texto { flex: 1; min-width: 0; }
.item__texto strong { display: block; font-size: 15px; line-height: 1.2; }
.item__texto small { display: block; font-size: 13px; color: var(--gris-2); }
.item__texto .cond { display: block; margin-top: 2px; font-size: 20px; }
.item .contador button { width: 32px; height: 32px; font-size: 18px; }
.vaciar { display: flex; justify-content: flex-end; margin: -6px 0 16px; }
.vaciar__btn { min-height: 40px; padding: 0 4px; border: 0; background: none; color: var(--gris-2); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.vaciar__btn--confirmar { padding: 0 14px; background: var(--rojo-oscuro); color: #fff; text-decoration: none; }
.formulario { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.campo { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.campo input, .campo textarea { min-height: 46px; padding: 10px 12px; border: 1px solid #C7C7CC; border-radius: 0; font: inherit; font-size: 16px; font-weight: 400; }
.campo input:focus, .campo textarea:focus { outline: none; border-color: #000; box-shadow: 0 0 0 2px #000; }
fieldset.campo { margin: 0; padding: 0; border: 0; }
fieldset.campo legend { padding: 0; margin-bottom: 6px; }
.eleccion { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid #D1D1D6; font-weight: 400; cursor: pointer; }
.eleccion + .eleccion { margin-top: 6px; }
.eleccion input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--rojo); flex-shrink: 0; }
.eleccion strong { display: block; font-size: 15px; }
.eleccion small { display: block; font-size: 13px; color: var(--gris-2); }
.eleccion:has(input:checked) { border-color: #000; box-shadow: inset 0 0 0 1px #000; }
.vista-mensaje { margin-bottom: 18px; }
.vista-mensaje h3 { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--gris-2); }
.burbuja-fondo { padding: 14px; background: #E9E1D6; }
.burbuja { margin-left: auto; max-width: 300px; padding: 10px 12px 8px; border-radius: 12px 3px 12px 12px; background: #D9FDD3; font-size: 14px; line-height: 1.4; white-space: pre-line; box-shadow: 0 1px 1px rgba(0,0,0,.1); overflow-wrap: anywhere; }
.pedido__total { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.pedido__total .cond { font-size: 34px; }
.pedido .btn-whats { width: 100%; min-height: 56px; font-size: 17px; }
.pedido__nota { margin: 10px 0 0; font-size: 13px; color: var(--gris-2); text-align: center; }

/* Compartir y "También te puede gustar" */
.compartir { margin-top: 12px; min-height: 40px; padding: 0 14px 0 12px; border: 1px solid #C7C7CC; background: #fff; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; cursor: pointer; }
.compartir svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.relacionados h3 { margin: 0 0 10px; font-size: 15px; font-weight: 700; }
.relacionados__lista { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; scroll-snap-type: x mandatory; }
.relacionados__lista::-webkit-scrollbar { display: none; }
.relacionado { flex: 0 0 128px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; scroll-snap-align: start; }
.relacionado__foto { aspect-ratio: 4 / 5; background: var(--gris); display: flex; align-items: center; justify-content: center; overflow: hidden; color: #000; }
.relacionado__foto img { width: 100%; height: 100%; object-fit: cover; }
.relacionado__foto .prod__sin-foto { width: 45%; }
.relacionado__nombre { font-size: 13px; font-weight: 600; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.relacionado__precio { font-size: 18px; line-height: 1; }

/* Aviso corto ("Agregado a tu pedido") */
.avisito { position: fixed; left: 50%; bottom: calc(104px + env(safe-area-inset-bottom)); z-index: 70; transform: translate(-50%, 20px); padding: 10px 16px; background: var(--verde); color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.avisito--ver { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Pie de página ---------- */
.pie { background: #000; color: #fff; padding: 34px 16px calc(28px + env(safe-area-inset-bottom)); position: relative; overflow: hidden; }
.pie__logo { height: 70px; width: auto; display: block; margin-bottom: 18px; }
.pie h2 { margin: 0 0 8px; font-size: 26px; text-transform: uppercase; }
.pie p { margin: 0 0 8px; color: #D1D1D6; font-size: 15px; }
.pie__bloque { margin-bottom: 24px; max-width: 520px; }
.pie__lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; color: #D1D1D6; font-size: 15px; }
.pie__lista strong { color: #fff; }
.pie a { color: #fff; }
.pie__redes { display: flex; flex-wrap: wrap; gap: 8px; }
.pie__redes a { min-height: 44px; padding: 0 16px; border: 1px solid #3A3A3C; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.pie__redes svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pie__redes .whats { background: var(--verde); border-color: var(--verde); }
.pie__copy { margin-top: 10px; font-size: 13px; color: #8E8E93; }
.pie__privacidad { margin-top: 14px; font-size: 13px; color: #AEAEB2; }
.pie__privacidad summary { min-height: 32px; display: inline-flex; align-items: center; cursor: pointer; color: #D1D1D6; font-weight: 600; }
.pie__privacidad p { margin: 6px 0 0; font-size: 13px; color: #AEAEB2; line-height: 1.5; }

/* ---------- Página "Pedido" (enlace que llega por WhatsApp) ---------- */
.ver-pedido { max-width: 760px; margin: 0 auto; padding: 0 0 calc(40px + env(safe-area-inset-bottom)); }
.ver-pedido__cabeza { position: relative; overflow: hidden; background: #000; color: #fff; padding: 34px 18px 22px; }
.ver-pedido__cabeza .franja { top: 30px; width: 230px; height: 64px; }
.ver-pedido__cabeza h1 { position: relative; margin: 0; font-size: 64px; line-height: .9; text-transform: uppercase; }
.ver-pedido__cabeza p { position: relative; margin: 8px 0 0; color: #E5E5EA; font-size: 16px; font-weight: 600; }
.ver-pedido__alerta { margin: 16px 16px 0; padding: 12px 14px; background: #FFF1D6; color: var(--ambar-texto); font-size: 14px; font-weight: 600; border-left: 4px solid #C77A12; }
.ver-items { list-style: none; margin: 8px 0 0; padding: 0 16px; }
.ver-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid #E5E5EA; }
.ver-item__foto { flex-shrink: 0; width: 118px; aspect-ratio: 4 / 5; background: var(--gris); display: flex; align-items: center; justify-content: center; overflow: hidden; color: #000; }
.ver-item__foto img { width: 100%; height: 100%; object-fit: cover; }
.ver-item__foto .prod__sin-foto { width: 50%; }
.ver-item__texto { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.ver-item__texto strong { font-size: 16px; line-height: 1.2; }
.ver-item__ops { display: flex; flex-wrap: wrap; gap: 4px; }
.ver-item__ops span { padding: 3px 8px; background: #000; color: #fff; font-size: 13px; font-weight: 700; }
.ver-item__cant { font-size: 14px; color: var(--gris-2); }
.ver-item__subtotal { font-size: 24px; line-height: 1; }
.ver-item__aviso { font-size: 13px; font-weight: 700; color: var(--rojo-oscuro); }
.ver-item__aviso::before { content: "⚠ "; }
.ver-item--falta .ver-item__texto strong { color: var(--gris-2); }
.ver-pedido__total { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 18px 16px 4px; }
.ver-pedido__total span { font-size: 15px; color: var(--gris-2); font-weight: 600; }
.ver-pedido__total strong { font-size: 38px; line-height: 1; }
.ver-pedido__nota { margin: 6px 16px 0; font-size: 13px; color: var(--gris-2); }
.ver-pedido__catalogo { display: flex; align-items: center; justify-content: center; margin: 22px 16px 0; text-decoration: none; }
@media (min-width: 900px) {
    .ver-pedido { padding-top: 24px; }
    .ver-pedido__cabeza { padding: 40px 32px 26px; }
    .ver-item__foto { width: 150px; }
}

/* ---------- Tienda cerrada ---------- */
.cerrada { min-height: calc(100dvh - var(--alto-cabecera)); background: #000; color: #fff; padding: 60px 24px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 16px; position: relative; overflow: hidden; }
.cerrada h1 { margin: 0; font-size: 58px; line-height: .88; text-transform: uppercase; position: relative; z-index: 1; }
.cerrada p { margin: 0; font-size: 17px; color: #E5E5EA; max-width: 440px; position: relative; z-index: 1; white-space: pre-line; }
.cerrada .franja { top: calc(50% - 70px); }
.cerrada .pie__redes { position: relative; z-index: 1; }

/* ---------- Menú de categorías en la cabecera (solo PC) ---------- */
.menu-cats { display: none; }

/* ---------- Computadora ---------- */
@media (min-width: 900px) {
    .cabecera__marca { margin-right: 18px; }
    .menu-cats:not([hidden]) { display: flex; flex: 1; min-width: 0; gap: 2px; overflow: hidden; }
    .menu-cats__op { flex-shrink: 0; min-height: 44px; padding: 0 14px; border: 0; background: none; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; position: relative; }
    .menu-cats__op::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 3px; background: var(--rojo); transform: scaleX(0) skewX(-20deg); transition: transform .25s ease; }
    .menu-cats__op:hover::after, .menu-cats__op[aria-pressed="true"]::after { transform: scaleX(1) skewX(-20deg); }
    .menu-cats__mas { color: #D1D1D6; }
    .menu-cats__op:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
    /* El buscador aparece a la derecha con ancho fijo: no tapa el menú (lo que no entra pasa a "Más") */
    .buscador { flex: 0 0 260px; margin-left: 10px; }
    .menu-cats__op[hidden] { display: none; }
    .tabs-zona { display: none; }
    .seccion-cats { padding: 32px 0 10px; }
    .seccion-cats h2, .seccion-cats__lista { margin-left: 48px; margin-right: 48px; padding-left: 0; padding-right: 0; }
    /* Las tarjetas ocupan todo el ancho, sean 3 o 6 (antes quedaba media fila vacía con pocas categorías).
       Apaisadas para que con pocas categorías no queden altísimas. */
    .seccion-cats__lista { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); overflow: visible; }
    .tarjeta-cat { flex: none; aspect-ratio: 16 / 10; }
    .portada--marca { padding-top: 30px; }
    .marca3d__anillo { top: 135px; width: 320px; height: 320px; margin: -160px 0 0 -160px; }
    .marca3d__giro { width: 250px; }
    .marca3d__sombra { width: 190px; height: 16px; margin-top: 16px; }
    .marca3d__texto { gap: 12px; margin-top: 6px; }
    .marca3d__lema { font-size: 18px; }
    .marca3d__boton { min-height: 46px; }
    .cinta { padding: 10px 0; transform: rotate(-1.2deg); }
    .cinta__pista span { font-size: 23px; padding: 0 22px; }
    .seccion-novedades { padding: 32px 0 6px; }
    .seccion-novedades__cabeza { margin-left: 48px; margin-right: 48px; }
    .seccion-novedades__lista { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; overflow: visible; padding-left: 48px; padding-right: 48px; }
    .seccion-novedades__lista > .relacionado:nth-child(n+7) { display: none; }   /* una sola fila; el resto en "Ver todas" */
    .seccion-novedades .relacionado__nombre { font-size: 15px; }
    .seccion-novedades .relacionado__precio { font-size: 20px; }
    .tarjeta-cat__texto strong { font-size: 21px; }
    /* Una sola fila en el inicio: 5 categorías + "Ver todas" */
    .seccion-cats__lista--muchas > .tarjeta-cat:nth-child(n+6):not(.tarjeta-cat--todas) { display: none; }
    .filtros { padding: 0 48px 18px; justify-content: flex-end; }
    .grilla-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    :root { --alto-cabecera: 68px; }
    .cabecera { padding: 0 32px; }
    .cabecera__marca img { height: 54px; }
    .cabecera--buscando .cabecera__marca { display: flex; }
    .portadas { height: 420px; }
    .franja { left: -60px; top: 170px; width: 640px; height: 100px; }
    .portada__texto { left: 48px; top: 54px; }
    .portada__titulo { font-size: 104px; max-width: 760px; }
    .portada__sub { font-size: 17px; max-width: 460px; }
    .portada__boton { left: 48px; bottom: 80px; }
    .portada__puntos { right: 48px; bottom: 80px; }
    .tabs, .encabezado { padding-left: 48px; padding-right: 48px; }
    .productos { padding: 0 48px 40px; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 18px; row-gap: 30px; }
    /* Destacado: dos columnas y una sola fila (antes medía ~940 px, más que la pantalla).
       La foto se ve completa sobre negro: los afiches son verticales y recortados perdían el texto. */
    .prod--destacado { grid-column: span 2; }
    .prod--destacado .prod__foto { aspect-ratio: 16 / 10; background: #000; }
    .prod--destacado .prod__foto img { object-fit: contain; }
    .barra-pedido { left: auto; right: 24px; bottom: 24px; width: 420px; border-top: 4px solid var(--rojo); box-shadow: 0 14px 40px rgba(0,0,0,.35); }
    body.con-pedido .pie { padding-bottom: 130px; }   /* la barra flotante no tapa el pie */
    .hoja { left: auto; top: 0; width: 460px; max-height: none; animation-name: hoja-lado; }
    @keyframes hoja-lado { from { transform: translateX(100%); } }
    .hoja--producto .galeria__fotos { aspect-ratio: 4 / 4.2; }
    .pie { padding: 50px 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
    .pie__bloque { margin: 0; }
    .avisito { bottom: 120px; }
    .cerrada { padding: 80px 48px; }
    .cerrada h1 { font-size: 110px; }
}

/* ---------- Ver la foto completa ---------- */
.galeria__fotos img { cursor: zoom-in; }
.galeria__ampliar { position: absolute; right: 12px; bottom: 12px; z-index: 3; width: 40px; height: 40px; padding: 0; border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.galeria__ampliar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.visor { position: fixed; inset: 0; z-index: 95; display: flex; flex-direction: column; animation: visor-entra .25s ease both; }
@keyframes visor-entra { from { opacity: 0; } }
.visor__barra { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: calc(8px + env(safe-area-inset-top)) 10px 8px 18px; pointer-events: none; }
.visor__barra > * { pointer-events: auto; }
.visor__contador { font-size: 14px; letter-spacing: .04em; }
.visor__cerrar { width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.visor__cerrar svg, .visor__flecha svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.visor__fotos { flex: 1; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.visor__fotos::-webkit-scrollbar { display: none; }
.visor__foto { flex: 0 0 100%; height: 100%; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; padding: 60px 0 calc(20px + env(safe-area-inset-bottom)); }
.visor__foto img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; touch-action: pan-x pinch-zoom; user-select: none; -webkit-user-drag: none; }
.visor__flecha { display: none; }
@media (min-width: 900px) {
    .visor__foto { padding: 70px 90px 30px; }
    .visor__flecha { position: absolute; top: 50%; z-index: 2; margin-top: -26px; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
    .visor__flecha--ant { left: 20px; } .visor__flecha--sig { right: 20px; }
}
.galeria__ampliar { background: rgba(255,255,255,.92); color: #000; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.galeria__ampliar svg { stroke-width: 2.2; }
.visor { background: #000; color: #fff; }
.visor__contador { font-family: "Barlow Condensed", sans-serif; font-style: italic; font-weight: 900; font-size: 20px; }
.visor__cerrar, .visor__flecha { background: rgba(255,255,255,.12); color: #fff; }
.visor__cerrar:hover, .visor__flecha:hover { background: var(--rojo); }

/* ---------- Portada: el botón va debajo del título; los títulos largos usan letra más chica ---------- */
.portada__texto { bottom: auto; }
.portada__boton { position: relative; left: auto; bottom: auto; margin-top: 16px; }
.portada__titulo { font-size: 52px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.portada__titulo--l { font-size: 40px; }
.portada__titulo--xl { font-size: 32px; }

/* ---------- "En tu pedido" dentro del producto: un contador por variante ---------- */
.en-pedido:empty { display: none; }
.en-pedido { padding: 14px; background: #F2F2F7; }
.en-pedido h3 { margin: 0 0 8px; font-size: 14px; font-weight: 700; }
.en-pedido ul { list-style: none; margin: 0; padding: 0; }
.en-pedido li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; }
.en-pedido li + li { border-top: 1px solid #E0E0E5; }
.en-pedido__texto { font-size: 15px; font-weight: 600; }
.en-pedido__texto small { font-weight: 500; color: var(--gris-2); }
.en-pedido .contador { background: #fff; }
.en-pedido .contador button { width: 34px; height: 34px; background: #F2F2F7; font-size: 18px; }
@media (min-width: 900px) {
    .portada__titulo { font-size: 104px; }
    .portada__titulo--l { font-size: 80px; }
    .portada__titulo--xl { font-size: 62px; }
}

/* ---------- Combos y precio por opción ---------- */
.prod__desde { font-family: "Barlow", sans-serif; font-style: normal; font-size: 12px; font-weight: 600; color: var(--gris-2); }
.chip-op__precio { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; }
.opcion--combo .opcion__lista { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }
.opcion--combo .chip-op { min-height: 64px; padding: 8px 10px; line-height: 1.2; text-align: center; }
.opcion--combo .chip-op__precio { margin-top: 4px; font-family: "Barlow Condensed", sans-serif; font-style: italic; font-size: 20px; font-weight: 900; }

/* ---------- Portada tipo afiche: la imagen completa, sin texto encima ---------- */
.portadas { transition: height .5s ease; }
.portada__fondo { position: absolute; inset: -30px; background: center / cover no-repeat; filter: blur(22px) brightness(.45); transform: scale(1.1); }
.portada__afiche { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.portada__afiche .portada__foto { object-fit: contain; }
.portadas--afiche .olas { display: none; }
.portadas--afiche .portada__puntos { bottom: 12px; padding: 7px 9px; background: rgba(0,0,0,.5); }

/* ---------- Recuadro de novedades ---------- */
.novedades { padding: 22px 16px calc(22px + env(safe-area-inset-bottom)); }
.novedades h2 { margin: 0; padding-right: 50px; font-size: 38px; line-height: 1; text-transform: uppercase; }
.novedades__sub { margin: 6px 0 18px; color: var(--gris-2); font-size: 15px; }
.novedades__lista { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.novedades__lista .relacionado__foto { position: relative; }
.novedades__marca { position: absolute; left: 0; top: 8px; padding: 3px 7px; background: var(--rojo); color: #fff; font-size: 12px; font-weight: 700; }
.novedades__botones { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.novedades__btn { min-height: 50px; padding: 0 18px; border: 2px solid #000; background: #000; color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.novedades__btn--linea { background: #fff; color: #000; }
@media (min-width: 900px) {
    .hoja.hoja--novedades { left: 50%; right: auto; top: 50%; bottom: auto; width: 620px; max-height: 90vh; transform: translate(-50%, -50%); animation: novedades-entra .3s ease both; }
    @keyframes novedades-entra { from { opacity: 0; transform: translate(-50%, -46%); } }
    .novedades { padding: 30px 30px 30px; }
    .novedades__botones { flex-direction: row; }
    .novedades__btn { flex: 1; }
}

/* ---------- Mosaico de fotos (Nuevos / Ofertas) ---------- */
.mosaico { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mosaico img { min-width: 0; min-height: 0; }
.mosaico--2 { grid-template-columns: 1fr; }
.mosaico--3 img:first-child { grid-column: 1 / -1; }
.tarjeta-cat:hover .mosaico img, .celda-cat:hover .mosaico img { transform: scale(1.04); }

/* ---------- Hover en la portada ---------- */
.portada__boton { transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease; }
.portada__boton:hover { background: #000; color: #fff; transform: translateY(-2px); box-shadow: inset 0 0 0 2px #fff, 4px 4px 0 #fff; }
.portada__boton:active { transform: translateY(0); box-shadow: none; }
.portada__boton:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.portada__afiche .portada__foto { transition: transform .5s ease; }
.portada__afiche:hover .portada__foto { transform: scale(1.02); }
.portada__afiche:focus-visible { outline: 3px solid var(--rojo); outline-offset: -3px; }

/* ---------- Movimiento reducido: todo quieto ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .intro { display: none !important; }
}
