/* Paleta de marca: blanco, morado y dorado (siempre en claro).
   Vitrina: carrusel de imágenes a sangre completa, catálogo en rejilla aireada y tarjetas sin bordes. */
:root {
  --bg: #fbfafd;
  --surface: #ffffff;
  --surface-2: #f3eefa;
  --text: #1f1033;
  --muted: #6b6080;
  --border: #ebe5f3;
  --accent: #5b2a9e;
  --accent-ink: #ffffff;
  --accent-soft: #efe6fb;
  --gold: #c9a13b;
  --gold-text: #8f6d15;
  --gold-ink: #2a1446;
  --sale: #d93a4a;
  --whatsapp: #1fb655;
  --whatsapp-soft: #e6f7ec;
  --img-bg: #f4f0f9;
  --overlay: rgba(25, 12, 45, 0.5);
  --glass: rgba(255, 255, 255, 0.78);
  --shadow-sm: 0 1px 2px rgba(31, 16, 51, 0.06), 0 2px 8px -2px rgba(31, 16, 51, 0.08);
  --shadow: 0 2px 6px -2px rgba(31, 16, 51, 0.08), 0 24px 48px -20px color-mix(in srgb, var(--accent) 38%, transparent);
  --shadow-lg: 0 30px 80px -20px rgba(31, 16, 51, 0.35);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-editorial: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-lg: 28px;
  --radius: 20px;
  --radius-sm: 12px;
  --gutter: 16px;
  color-scheme: light;
}

* { box-sizing: border-box; }
/* Nada se sale por los lados: si algo fuera más ancho que la pantalla, el teléfono (sobre todo el navegador de
   Instagram) alejaría la vista y la tienda, el menú, el carrito y el pedido se verían cambiando de tamaño.
   text-size-adjust evita que el teléfono agrande o achique letras por su cuenta. */
html {
  scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: var(--accent-ink); }

body.bloqueado { overflow: hidden; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { max-width: var(--ancho-max, 1240px); margin: 0 auto; padding-inline: max(var(--gutter), 2.5vw); }
.muted { color: var(--muted); }
h1, h2, h3 { text-wrap: balance; }

svg[aria-hidden="true"] { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px -20px rgba(31, 16, 51, 0.4);
}
.header__inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo {
  font-family: var(--font-display); font-weight: 700; font-size: 1.08rem;
  letter-spacing: -0.03em; text-decoration: none; white-space: nowrap; text-transform: uppercase;
  color: var(--accent);
  background: linear-gradient(120deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 65%, var(--gold)) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.search { flex: 1; position: relative; max-width: 560px; margin-inline: auto; }
.search__icono { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px !important; height: 18px !important; pointer-events: none; }
.search input {
  width: 100%; height: 46px; padding: 0 18px 0 46px; border: 1px solid var(--border);
  border-radius: 999px; background: var(--surface-2); transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.search input::placeholder { color: var(--muted); }
.search input:hover { border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); }
.search input:focus {
  outline: none; border-color: var(--accent); background: var(--surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
}
.header__actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; display: grid; place-items: center; width: 46px; height: 46px;
  border: 1px solid var(--border); border-radius: 50%; background: var(--surface); cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn.activo { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.carrito-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px 0 14px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 78%, #000));
  color: var(--accent-ink); font-weight: 800; font-size: 0.88rem;
  font-variant-numeric: tabular-nums; box-shadow: 0 10px 22px -10px var(--accent);
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}
.carrito-btn:hover { filter: brightness(1.08); box-shadow: 0 14px 28px -12px var(--accent); transform: translateY(-1px); }
.carrito-btn:active { transform: scale(0.96); }
.carrito-btn__icono { position: relative; display: grid; place-items: center; }
.carrito-btn__icono svg { width: 23px; height: 23px; stroke-width: 1.9; }
.carrito-btn .badge { top: -12px; right: -13px; box-shadow: 0 0 0 2px var(--accent); }
.carrito-btn.rebote { animation: rebote 0.5s cubic-bezier(.3,1.6,.5,1); }
.carrito-btn.rebote .badge { animation: pulso 0.5s ease-out; }
@keyframes rebote { 0% { transform: scale(1); } 35% { transform: scale(1.12) rotate(-4deg); } 70% { transform: scale(0.96); } 100% { transform: scale(1); } }
@keyframes pulso { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
.badge {
  position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--gold); color: var(--gold-ink);
  font-size: 0.68rem; font-weight: 800; line-height: 19px; text-align: center;
  font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--surface);
}

/* ---------- Botones ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 0.92rem; letter-spacing: 0.01em; cursor: pointer; text-decoration: none;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s, filter 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn--dark {
  background: var(--tema-boton, linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 78%, #000)));
  color: var(--accent-ink); box-shadow: 0 8px 18px -10px var(--accent);
}
.btn--dark:hover { filter: brightness(1.1); box-shadow: 0 12px 24px -12px var(--accent); }
.btn--outline { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.btn--whatsapp { background: var(--whatsapp); color: #fff; box-shadow: 0 10px 22px -12px var(--whatsapp); }
.btn--whatsapp:hover { filter: brightness(1.06); }
.btn--block { width: 100%; }

/* ---------- Hero y carrusel ---------- */
.hero {
  padding-block: 48px 32px;
  background:
    radial-gradient(60% 80% at 100% 0%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 70%),
    radial-gradient(50% 70% at 0% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
}
.hero__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 14px; padding: 6px 14px 6px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.16em; color: var(--gold-text);
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 60%, transparent); animation: brillo 2s ease-out infinite;
}
@keyframes brillo { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 60%, transparent); } 100% { box-shadow: 0 0 0 8px transparent; } }
/* Título editorial tipo revista de moda: serif elegante, contraste alto y trazo final dorado */
.hero__titulo {
  font-family: var(--font-editorial); font-weight: 700; margin: 0;
  font-size: clamp(2.6rem, 7.5vw, 5.4rem); line-height: 1; letter-spacing: -0.025em;
  font-optical-sizing: auto; font-feature-settings: "kern", "liga", "dlig";
  color: var(--accent);
  background: linear-gradient(110deg, var(--text) 0%, var(--accent) 55%, color-mix(in srgb, var(--accent) 55%, var(--gold)) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  padding: 0 0.04em 0.08em 0;
  position: relative; display: inline-block;
}
.hero__titulo::after {
  content: ""; position: absolute; left: 0.04em; bottom: -0.1em; width: 1.4em; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.carrusel__nav { display: flex; align-items: center; gap: 8px; }
.link-flecha {
  color: var(--text); font-weight: 700; font-size: 0.9rem; margin-right: 10px; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; padding-bottom: 2px;
  transition: background-size 0.3s var(--ease), color 0.2s;
}
.link-flecha::after { content: " →"; }
.link-flecha:hover { color: var(--accent); background-size: 0 1.5px; background-position: 100% 100%; }
.flecha {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface); cursor: pointer; box-shadow: var(--shadow-sm);
  transition: background 0.2s, color 0.2s, transform 0.15s, border-color 0.2s;
}
.flecha:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.flecha:active { transform: scale(0.92); }

.carrusel { position: relative; }
.carrusel__pista {
  --borde: max(max(var(--gutter), 2.5vw), calc((100vw - var(--ancho-max, 1240px)) / 2 + max(var(--gutter), 2.5vw)));
  position: relative; display: flex; gap: 18px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--borde); padding-inline: var(--borde);
  padding-block: 6px 18px; scrollbar-width: none;
}
.carrusel__pista::-webkit-scrollbar { display: none; }
.carrusel__pista--bucle { scroll-snap-type: none; }
.slide {
  --img-bg: color-mix(in srgb, var(--tinte) 24%, var(--surface));
  position: relative; flex: 0 0 clamp(240px, 30vw, 390px); aspect-ratio: 4 / 5; max-width: 100%;
  border: 0; padding: 0; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
  scroll-snap-align: start; background: var(--img-bg);
  box-shadow: var(--shadow-sm); transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.slide::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(20, 8, 38, 0.28), transparent 40%);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.slide:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.slide:hover::after { opacity: 1; }
/* Fotos de productos que vienen del sistema administrativo */
.slide img, .card__img img, .modal__img img, .item__img img {
  width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 0.7s var(--ease);
}
.slide:hover img, .slide:focus-visible img, .card:hover .card__img img { transform: scale(1.06); }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__img { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 4px 8px rgba(91, 42, 158, 0.18)); transition: transform 0.3s var(--ease); }
.logo:hover .logo__img { transform: rotate(-6deg) scale(1.06); }
.logo__texto { display: flex; flex-direction: column; line-height: 1.05; word-spacing: 0.22em; }
.logo__texto small {
  font-family: var(--font-body); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: none;
  color: var(--gold-text); margin-top: 3px;
  background: linear-gradient(100deg, var(--gold-text), var(--gold) 55%, var(--gold-text));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
@media (max-width: 420px) { .logo__texto small { display: none; } }
/* Teléfonos angostos: el botón del carrito queda solo con el ícono y el contador (si no, se corta en el borde). */
@media (max-width: 420px) {
  .carrito-btn__texto { display: none; }
  .carrito-btn { padding-inline: 14px; }
}
.slide svg { width: 100%; height: 100%; display: block; transition: transform 0.7s var(--ease); }
.slide:hover svg, .slide:focus-visible svg { transform: scale(1.06); }
.carrusel__puntos { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.punto { width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; background: var(--border); cursor: pointer; transition: width 0.35s var(--ease), background 0.3s; }
.punto:hover { background: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.punto.activo { width: 30px; background: linear-gradient(90deg, var(--accent), var(--gold)); }

/* ---------- Categorías y barra de filtros ---------- */
#catalogo { scroll-margin-top: 160px; padding-top: 32px; }
/* Cinta morada clara donde van las categorías, subcategorías y marcas (debajo del buscador). */
.cinta-categorias {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 92%, transparent), color-mix(in srgb, var(--accent-soft) 70%, var(--surface)));
  border-top: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
  padding-top: 2px;
}
/* Categorías y marcas en una sola fila (las marcas pasan abajo solo si no caben); subcategorías debajo. */
.cinta-categorias > .container { display: flex; flex-wrap: wrap; align-items: flex-start; column-gap: 14px; }
.cinta-categorias .categorias { flex: 0 1 auto; min-width: 0; }
.cinta-categorias .subcategorias { flex: 1 0 100%; order: 3; }
.cinta-categorias .chip__img { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent), var(--shadow-sm); }
.cinta-categorias .subcategorias { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.categorias { display: flex; gap: 4px; overflow-x: auto; padding: 6px 2px 6px; scrollbar-width: none; }
.categorias::-webkit-scrollbar { display: none; }
/* Categoría: imagen grande en círculo y el nombre siempre visible debajo. */
.chip {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; width: 74px;
  border: 0; background: none; color: var(--text); padding: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 0.74rem; line-height: 1.2; text-align: center;
  transition: color 0.2s, transform 0.15s;
}
.chip > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip__img {
  position: relative; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; overflow: hidden;
  background: color-mix(in srgb, var(--tinte) 20%, var(--surface));
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent), var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.25s var(--ease);
}
/* Foto de la categoría cargada en el panel: cubre el círculo, encima del dibujo. */
.chip__foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--surface); transition: transform 0.25s; }
.chip:hover .chip__foto { transform: scale(1.1); }
.chip__img svg { width: 46px !important; height: 46px !important; stroke: none !important; transition: transform 0.25s; }
.chip:hover .chip__img svg { transform: scale(1.12) rotate(-4deg); }
.chip:hover { color: var(--accent); }
.chip:hover .chip__img { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--accent), var(--shadow); }
.chip:active { transform: scale(0.96); }
/* Elegida: anillo de color alrededor de la imagen y nombre resaltado. */
.chip.activo { color: var(--accent); }
.chip.activo .chip__img { box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--accent), 0 10px 22px -10px var(--accent); }
.chip.activo > span:last-child { font-weight: 800; }
/* Subcategorías de la categoría elegida: píldoras de texto debajo de las categorías. */
.subcategorias {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px; margin: 0 0 12px; scrollbar-width: none;
  background: var(--surface-2); border-radius: var(--radius); animation: fundido 0.25s ease-out;
}
.subcategorias::-webkit-scrollbar { display: none; }
.subcategorias:empty { display: none; }
/* Subcategoría: píldora con su imagen (o el dibujo de la categoría) y el nombre. */
.subchip {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px;
  padding: 4px 14px 4px 4px; cursor: pointer; white-space: nowrap; font: inherit; font-weight: 700; font-size: 0.8rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.subchip .chip__img { width: 32px; height: 32px; box-shadow: none; }
.subchip .chip__img svg { width: 28px !important; height: 28px !important; }
.subchip:hover { border-color: var(--accent); color: var(--accent); }
.subchip.activo {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 78%, #000));
  border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 18px -10px var(--accent);
}
.subchip.activo .chip__img { background: var(--surface); }
/* Marcas: junto a las categorías (separadas por una línea fina), solo logotipo. */
.marcas {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px 6px 14px; scrollbar-width: none;
  border-left: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}
.marcas::-webkit-scrollbar { display: none; }
.marcas:empty { display: none; }
.marca {
  position: relative; flex-shrink: 0; width: 46px; height: 46px; padding: 0; border-radius: 50%; overflow: hidden; cursor: pointer;
  border: 2px solid var(--border); background: var(--surface); display: grid; place-items: center;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
/* Logotipo que llena todo el círculo (sobre blanco si tiene transparencias), encima de las iniciales. */
.marca img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #ffffff; transition: transform 0.25s; }
.marca:hover img { transform: scale(1.08); }
.marca__inicial { font-size: 0.8rem; font-weight: 800; color: var(--accent); }
.marca:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.marca:active { transform: scale(0.95); }
.marca.activo { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
/* Barra de resultados, "Solo ofertas" y orden: en lila como la cinta de categorías. */
.toolbar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-block: 4px 24px; padding: 10px 10px 10px 20px;
  background: linear-gradient(90deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 55%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent); border-radius: 999px; box-shadow: var(--shadow-sm);
}
.toolbar p { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent); }
.toolbar__controls { display: flex; gap: 10px; align-items: center; }
/* Orden: píldora morada con texto blanco. */
.toolbar select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding: 10px 38px 10px 16px; border-radius: 999px; border: 1px solid var(--accent); font-weight: 700; font-size: 0.86rem;
  color: var(--accent-ink);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center,
    linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 78%, #000));
  box-shadow: 0 8px 18px -10px var(--accent);
  transition: filter 0.2s, box-shadow 0.2s;
}
.toolbar select:hover, .toolbar select:focus { filter: brightness(1.1); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.toolbar select option { color: var(--text); background: var(--surface); }
/* "Solo ofertas": píldora dorada; al marcarla se vuelve roja de oferta. */
.check {
  display: flex; gap: 8px; align-items: center; font-size: 0.86rem; font-weight: 700; cursor: pointer; user-select: none;
  padding: 9px 16px 9px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--gold) 18%, var(--surface)); color: var(--gold-text);
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.check:hover { border-color: var(--gold); }
.check input { accent-color: var(--sale); width: 17px; height: 17px; cursor: pointer; }
.check:has(input:checked) {
  background: var(--sale); color: #fff; border-color: var(--sale);
  box-shadow: 0 8px 18px -10px var(--sale);
}
.check:has(input:checked) input { accent-color: #fff; }

/* ---------- Rejilla de productos ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px 20px; padding-bottom: 80px; }
.card {
  display: flex; flex-direction: column; min-width: 0; padding: 10px;
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--border)); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s, box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
  animation: aparecer 0.6s var(--ease) both;
}
.card:nth-child(4n+2) { animation-delay: 0.05s; }
.card:nth-child(4n+3) { animation-delay: 0.1s; }
.card:nth-child(4n+4) { animation-delay: 0.15s; }
@keyframes aparecer { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.card:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-4px); }
.card__img { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--img-bg); }
.card__img [data-img] { width: 100%; height: 100%; cursor: pointer; }
.card__img svg, .modal__img svg { width: 100%; height: 100%; display: block; }
.card__img svg { transition: transform 0.7s var(--ease); }
.card:hover .card__img svg { transform: scale(1.06); }
.etiquetas { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.etiqueta {
  padding: 4px 10px; border-radius: 8px; font-size: 0.68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em; color: #fff; background: var(--sale);
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.3);
}
.etiqueta--nuevo { background: var(--gold); color: var(--gold-ink); }
.fav {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; border: 0; cursor: pointer; color: var(--text);
  background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm); transition: transform 0.2s, color 0.2s, background 0.2s;
}
.fav:hover { transform: scale(1.08); color: var(--sale); background: #fff; }
.fav:active { transform: scale(0.9); }
.fav.activo { color: var(--sale); }
.fav.activo svg { fill: currentColor; animation: pulso 0.4s ease-out; }
.card__body { padding: 14px 6px 4px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card__cat { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--gold-text); font-weight: 800; }
.card__nombre {
  font-weight: 700; margin: 0; font-size: 0.98rem; line-height: 1.3; cursor: pointer; transition: color 0.2s;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__nombre:hover { color: var(--accent); }
.precio { font-weight: 800; font-size: 1.12rem; font-variant-numeric: tabular-nums; color: var(--accent); letter-spacing: -0.01em; }
.precio s { color: var(--muted); font-weight: 500; font-size: 0.85rem; margin-left: 8px; }
.card .acciones { margin-top: auto; padding-top: 8px; }
.card .acciones .btn { width: 100%; padding-block: 11px; }

/* Botón "Agregar al carrito" con icono */
.btn--agregar svg[aria-hidden="true"] { width: 19px; height: 19px; flex-shrink: 0; stroke-width: 2; transition: transform 0.3s cubic-bezier(.3,1.6,.5,1); }
.btn--agregar:hover svg { transform: translateX(-1px) rotate(-10deg) scale(1.12); }
.btn--agregar:active svg { transform: scale(0.9); }
.vacio { text-align: center; padding-block: 64px; color: var(--muted); font-weight: 600; }

/* ---------- Opciones: colores y tallas ---------- */
.opcion { margin-block: 6px 2px; }
.opcion__titulo { font-size: 0.8rem; color: var(--muted); }
.opcion__titulo strong { color: var(--text); }
.colores { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.swatch {
  width: 24px; height: 24px; border-radius: 50%; cursor: pointer; padding: 0;
  background: var(--swatch); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border);
  transition: box-shadow 0.15s, transform 0.15s;
}
.swatch:hover { transform: scale(1.12); }
.swatch.activo { box-shadow: 0 0 0 2px var(--accent); }
/* Color sin unidades: tachado y sin poder elegirse. */
.swatch:disabled { cursor: not-allowed; opacity: 0.35; transform: none; background: linear-gradient(135deg, transparent calc(50% - 1px), var(--muted) calc(50% - 1px), var(--muted) calc(50% + 1px), transparent calc(50% + 1px)), var(--swatch); }
/* Agregar al carrito bloqueado cuando la talla o el color no están disponibles. */
.btn--agregar:disabled { cursor: not-allowed; opacity: 0.45; filter: grayscale(0.6); box-shadow: none; transform: none; }
.mini-swatch {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px;
  background: var(--swatch); box-shadow: 0 0 0 1px var(--border); vertical-align: middle;
}
.tallas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.talla {
  min-width: 40px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); cursor: pointer; font-weight: 700; font-size: 0.8rem; transition: all 0.15s;
}
.talla:hover { border-color: var(--accent); color: var(--accent); }
.talla:disabled { opacity: 0.35; text-decoration: line-through; cursor: not-allowed; border-color: var(--border); color: inherit; }
.talla.activo { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cantidad { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.cantidad button { border: 0; background: transparent; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; transition: background 0.15s; }
.cantidad button:hover { background: var(--surface-2); }
.cantidad span { min-width: 22px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.acciones { display: flex; gap: 12px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.aviso { color: var(--sale); font-size: 0.8rem; font-weight: 600; margin: 4px 0 0; }
.aviso:empty { display: none; }

/* ---------- Ventanas ---------- */
.overlay {
  position: fixed; inset: 0; background: var(--overlay); z-index: 50;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: fundido 0.25s ease-out;
}
@keyframes fundido { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: relative; background: var(--surface); border-radius: var(--radius-lg);
  max-width: 920px; width: 100%; max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; box-shadow: var(--shadow-lg);
  animation: emerger 0.35s var(--ease);
}
@keyframes emerger { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal--sm { max-width: 480px; }
.modal__body { padding: 32px; }
.modal__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.modal__grid > div { min-width: 0; }
.modal__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--img-bg); }
.modal h2 { margin: 4px 0 6px; font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; letter-spacing: -0.025em; }
.modal p { color: var(--muted); }
.cerrar {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface); font-size: 1.4rem; cursor: pointer; color: var(--text);
  line-height: 1; z-index: 1; transition: transform 0.25s var(--ease), background 0.2s, color 0.2s;
}
.cerrar:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: rotate(90deg); }

/* ---------- Carrito ---------- */
#panel-carrito { justify-content: flex-end; padding: 12px; }
.drawer {
  background: var(--surface); width: 100%; max-width: 440px; height: 100%;
  display: flex; flex-direction: column; position: relative; box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg); overflow: hidden;
  animation: deslizar 0.4s var(--ease);
}
@keyframes deslizar { from { transform: translateX(calc(100% + 12px)); } to { transform: none; } }
@media (max-width: 480px) { #panel-carrito { padding: 8px; } .drawer { border-radius: var(--radius); } }

/* Carrito vacío */
/* Mensaje compacto (ícono a la izquierda, texto a la derecha) para que las recomendaciones se vean completas. */
.carrito-vacio { display: flex; align-items: center; gap: 14px; padding: 16px 2px 4px; text-align: left; }
.carrito-vacio__ilustracion { width: 64px; height: 64px; flex-shrink: 0; animation: flotar 3.2s ease-in-out infinite; }
.carrito-vacio__ilustracion svg { width: 100%; height: 100%; }
@keyframes flotar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.carrito-vacio h3 { margin: 0 0 3px; font-family: var(--font-display); font-weight: 500; font-size: 1rem; letter-spacing: -0.02em; }
.carrito-vacio p { margin: 0; color: var(--muted); font-size: 0.8rem; line-height: 1.4; }
.sugerencias--carrito { margin-top: 14px; padding-top: 14px; padding-bottom: 8px; }
.sugerencias--carrito h3 { font-size: 0.92rem; margin-bottom: 10px; }
/* Recomendaciones: una fila de 3 con foto cuadrada, nombre y precio. */
.sugerencias__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sugerencias__grid .sugerencia { flex: none; min-width: 0; }
/* En pantallas bajas, una sola fila (se ve completa sin desplazarse); en las altas, dos filas. */
.sugerencias__grid .sugerencia:nth-child(n + 4) { display: none; }
@media (min-height: 720px) { .sugerencias__grid .sugerencia:nth-child(n + 4) { display: flex; } }
.sugerencias__grid .sugerencia__img { aspect-ratio: 1 / 1; border-radius: 10px; }
.sugerencias__grid .sugerencia__nombre { font-size: 0.74rem; -webkit-line-clamp: 1; }
.sugerencias__grid .precio { font-size: 0.82rem; }
.sugerencias__grid .precio s { font-size: 0.66rem; margin-left: 3px; }
.sugerencias__grid .precio-bs { font-size: 0.64rem; }
.sugerencias__grid .etiqueta { font-size: 0.55rem; padding: 2px 5px; top: 5px; left: 5px; }
@media (prefers-reduced-motion: reduce) { .carrito-vacio__ilustracion { animation: none; } }
.drawer__header { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--border); }
.drawer__header h2 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; letter-spacing: -0.02em; }
.drawer__header .cerrar { position: static; }
.drawer__items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer__footer { padding: 20px 24px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding-block: 16px; border-bottom: 1px solid var(--border); align-items: center; }
.item > div { min-width: 0; }
.item__img { width: 72px; height: 88px; border-radius: var(--radius-sm); overflow: hidden; background: var(--img-bg); }
.item__img svg { width: 100%; height: 100%; }
.item__nombre { font-weight: 700; font-size: 0.92rem; margin: 0; }
.item__meta { font-size: 0.8rem; color: var(--muted); margin: 2px 0 8px; }
.item__der { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-variant-numeric: tabular-nums; }
.quitar { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 0.8rem; text-decoration: underline; text-underline-offset: 2px; }
.quitar:hover { color: var(--sale); }
.fila { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.fila--total { font-weight: 800; font-size: 1.2rem; }
.nota-envio {
  font-size: 0.82rem; color: var(--accent); font-weight: 700; margin: 0;
  padding: 8px 12px; border-radius: 10px; background: var(--accent-soft);
}
/* Total con descuento por pago en USDT o dólares en efectivo (lo primero que ve el cliente). */
.total-divisas {
  padding: 10px 12px; border-radius: 12px; border: 1.5px solid #16a34a;
  background: color-mix(in srgb, #16a34a 9%, var(--bg));
}
.total-divisas .fila--total { gap: 12px; align-items: baseline; font-size: 1.05rem; }
.total-divisas .fila--total span:last-child { font-size: 1.3rem; color: #15803d; white-space: nowrap; }
.total-divisas__ahorro { margin: 2px 0 0; font-size: 0.8rem; font-weight: 700; color: #15803d; }
.fila--otros { gap: 12px; font-size: 0.88rem; color: var(--muted); }
.fila--otros span:last-child { font-weight: 800; color: var(--text); white-space: nowrap; }
.fila--descuento { gap: 12px; color: #15803d; font-weight: 700; }
.fila--descuento span:last-child { white-space: nowrap; }
.nota-divisas {
  margin: 0; font-size: 0.8rem; font-weight: 700; color: #15803d;
  padding: 7px 10px; border-radius: 10px; background: color-mix(in srgb, #16a34a 9%, var(--bg));
}

/* ---------- Formulario y confirmación ---------- */
form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; font-weight: 700; margin-bottom: 14px; }
/* Productos "Solo divisas": otro color y un ícono en la esquina */
.card--divisas { background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 55%); box-shadow: 0 0 0 2px #34d399, 0 12px 26px -18px rgba(5, 95, 70, .55); }
.card--divisas .card__img { box-shadow: inset 0 0 0 2px rgba(16, 185, 129, .35); }
.divisas-esquina { position: absolute; left: 8px; bottom: 8px; z-index: 3; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px 4px 5px;
  border-radius: 999px; background: linear-gradient(135deg, #059669, #10b981); color: #fff; font-weight: 800; font-size: .66rem; line-height: 1;
  box-shadow: 0 6px 14px -6px rgba(5, 95, 70, .7); animation: divisas-flota 3s ease-in-out infinite; }
.divisas-esquina small { font-size: inherit; font-weight: 800; letter-spacing: 0; word-spacing: .12em; white-space: nowrap; }
.divisas-esquina span { width: 20px; height: 20px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: .78rem; }
@keyframes divisas-flota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .divisas-esquina { animation: none; } }
@media (max-width: 700px) { .divisas-esquina { left: 5px; bottom: 5px; padding: 3px 7px 3px 3px; font-size: .56rem; } .divisas-esquina span { width: 16px; height: 16px; font-size: .64rem; } }
.nota-solo-divisas { margin: -6px 0 12px; padding: 9px 12px; border-radius: 12px; background: #ecfdf5; color: #065f46; font-size: .82rem; font-weight: 600; }

/* Ofertas (descuentos): flyer entre las prendas en la computadora y ofertas pequeñas en el carrito y el Club */
@media (min-width: 701px) { #productos.grid > .flyer--descuento { grid-column: span 2; min-height: 0; } }
.ofertas-mini { margin: 14px 0 4px; }
.ofertas-mini__titulo { font-weight: 800; font-size: .9rem; margin: 0 0 8px; }
.ofertas-mini__pista { display: grid; gap: 8px; }
.oferta-mini { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; border-radius: 14px; border: 1.5px solid #fecdd3;
  background: linear-gradient(120deg, #fff1f2, #fff7ed); cursor: pointer; color: inherit; font: inherit; }
.oferta-mini:hover { border-color: #fb7185; }
.oferta-mini img, .oferta-mini__sin-foto { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; background: #fff; }
.oferta-mini__sin-foto { display: grid; place-items: center; font-weight: 900; color: #e11d48; font-size: 1.2rem; }
.oferta-mini__texto { flex: 1; min-width: 0; display: grid; gap: 2px; }
.oferta-mini__texto strong { color: #be123c; font-size: .88rem; }
.oferta-mini__texto small { color: #6b6680; font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oferta-mini__ir { font-weight: 900; color: #e11d48; }
.ofertas-mini--club { padding: 0 2px; }

/* Seguimiento: pedido finalizado (entregado y calificado) */
.seg-final { text-align: center; display: grid; gap: 8px; padding: 6px 0 2px; }
.seg-final__ico { width: 72px; height: 72px; margin: 0 auto; border-radius: 22px; display: grid; place-items: center; font-size: 36px; background: #dcfce7; }
.seg-final__titulo { font-size: 1.15rem; }
.seg-final__sub { color: var(--muted, #6b6680); font-size: .88rem; }
.seg-final__datos { margin: 6px 0; display: grid; gap: 6px; text-align: left; }
.seg-final__datos div { display: grid; grid-template-columns: 112px 1fr; gap: 10px; padding: 9px 12px; border-radius: 12px; background: rgba(124, 58, 237, .06); }
.seg-final__datos dt { font-size: .78rem; font-weight: 800; color: var(--muted, #6b6680); }
.seg-final__datos dd { margin: 0; font-weight: 800; }
.seg-final__datos dd small { display: block; font-weight: 600; font-size: .78rem; color: var(--muted, #6b6680); margin-top: 2px; }
/* Nombre y apellido lado a lado (en pantallas muy angostas, uno debajo del otro). */
.fila-nombre { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fila-nombre label { min-width: 0; }
.fila-nombre input { min-width: 0; width: 100%; }
@media (max-width: 340px) { .fila-nombre { grid-template-columns: 1fr; gap: 0; } }
form input, form textarea, form select {
  padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); font-weight: 500; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
form input:focus, form textarea:focus, form select:focus {
  outline: none; border-color: var(--accent); background: var(--surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
}
form .invalido { border-color: var(--sale); }
.error { color: var(--sale); font-size: 0.85rem; font-weight: 600; }
.total-checkout { margin-block: 8px 16px; padding: 16px; background: var(--surface-2); border-radius: var(--radius-sm); display: flex; flex-direction: column; gap: 4px; }
.confirmar { display: flex; flex-direction: column; gap: 10px; }
.confirmar p { margin: 0; }
.datos-pago { display: flex; flex-direction: column; gap: 6px; }
.datos-pago pre {
  margin: 0; padding: 12px 14px; border: 1px dashed var(--gold); border-radius: var(--radius-sm);
  white-space: pre-wrap; font: 0.85rem/1.5 var(--font-body);
}
.vacio .btn { margin-top: 14px; }
.mensaje-preview {
  margin: 0; padding: 14px; background: var(--whatsapp-soft); border-radius: var(--radius-sm); white-space: pre-wrap;
  font: 0.82rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; max-height: 45vh; overflow-y: auto;
}

/* ---------- Aviso flotante y pie ---------- */
.toast {
  position: fixed; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translate(-50%, 140px);
  background: var(--text); color: var(--bg); padding: 13px 22px; border-radius: 14px; max-width: calc(100% - 32px);
  font-size: 0.9rem; font-weight: 600; z-index: 100; box-shadow: var(--shadow-lg);
  transition: transform 0.4s cubic-bezier(.3,1.4,.5,1); pointer-events: none;
}
.toast.visible { transform: translate(-50%, 0); }
.footer {
  position: relative; padding-block: 36px; font-size: 0.85rem; text-align: center;
  background: linear-gradient(135deg, var(--text), color-mix(in srgb, var(--accent) 60%, var(--text)));
  color: rgba(255, 255, 255, 0.78);
}
.footer::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.footer p { margin: 0; }
#nombre-footer { color: #fff; font-weight: 800; }

@media (prefers-reduced-motion: reduce) {
  /* La escena de la cinta de categorías queda fuera: tiene su propia versión más lenta (abajo). */
  /* Los flyers y el carrusel también quedan fuera: su movimiento es suave y es parte de la vitrina. */
  *:not(.cinta-escena *):not(.flyer *):not(.carrusel *):not(.promo-tile *):not(.aviso-promo *):not(.virtual *):not(.chip-aviso--virtual *):not(.cinta-delivery *), *:not(.cinta-escena *):not(.flyer *):not(.carrusel *):not(.promo-tile *):not(.aviso-promo *):not(.virtual *):not(.chip-aviso--virtual *):not(.cinta-delivery *)::before, *:not(.cinta-escena *):not(.flyer *):not(.carrusel *):not(.promo-tile *):not(.aviso-promo *):not(.virtual *):not(.chip-aviso--virtual *):not(.cinta-delivery *)::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 700px) {
  .header__inner { flex-wrap: wrap; height: auto; padding-block: 10px; gap: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .search input { height: 42px; }
  #catalogo { scroll-margin-top: 190px; }
  .chip { width: 62px; font-size: 0.7rem; gap: 4px; }
  .chip__img { width: 46px; height: 46px; }
  .chip__img svg { width: 38px !important; height: 38px !important; }
  .marca { width: 40px; height: 40px; }
  .marcas { padding-top: 8px; }
  .subchip .chip__img { width: 28px; height: 28px; }
  .subchip .chip__img svg { width: 24px !important; height: 24px !important; }
  .header__actions { margin-left: auto; }
  .icon-btn { width: 42px; height: 42px; }
  .carrito-btn { height: 42px; padding: 0 14px 0 10px; font-size: 0.82rem; }
  .hero { padding-block: 26px 20px; }
  .hero__top { margin-bottom: 18px; }
  .eyebrow { margin-bottom: 10px; }
  .link-flecha { display: none; }
  .flecha { width: 40px; height: 40px; }
  .hero__titulo { font-size: 2.6rem; }
  .slide { flex-basis: 70vw; border-radius: 22px; }
  .modal__body { padding: 20px; }
  .modal__grid { grid-template-columns: 1fr; gap: 16px; }
  .modal__img { max-height: 46vh; max-height: 46dvh; aspect-ratio: 1; }
  /* Letra de 16 px en los campos: con menos, el iPhone (también dentro de Instagram) acerca la pantalla al
     tocarlos y la tienda queda agrandada. */
  input, select, textarea, .header .search input { font-size: 16px !important; }
  /* "Solo ofertas" en una sola línea. */
  .toolbar .check { white-space: nowrap; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .card { padding: 6px; border-radius: 16px; }
  .card:hover { transform: none; }
  .card__body { padding: 10px 4px 4px; }
  .card .acciones .btn { padding: 10px 8px; font-size: 0.8rem; white-space: nowrap; gap: 6px; }
  .card .btn__extra { display: none; }
  .card .btn--agregar svg[aria-hidden="true"] { width: 17px; height: 17px; }
  .card__nombre { font-size: 0.9rem; }
  .precio { font-size: 1rem; }
  .card__img { border-radius: 12px; }
  .fav { width: 34px; height: 34px; top: 8px; right: 8px; }
  .swatch { width: 22px; height: 22px; }
  .talla { min-width: 34px; padding: 5px 8px; }
  .toolbar { border-radius: var(--radius); padding: 12px 14px; }
  .toolbar__controls { width: 100%; justify-content: space-between; min-width: 0; }
  /* El orden no puede medir lo que su opción más larga: se corta con "…" para caber junto a "Solo ofertas". */
  .toolbar select { min-width: 0; max-width: 56%; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
}


/* ---------- Barra de aviso (tema y tasa BCV) ---------- */
.barra-aviso { background: var(--accent); color: var(--accent-ink); font-size: 0.8rem; font-weight: 700; border-bottom: 2px solid var(--gold); }
.barra-aviso__inner { display: flex; justify-content: space-between; align-items: center; gap: 6px 16px; flex-wrap: wrap; padding-block: 7px; }
.barra-aviso__mensaje:empty { display: none; }
.barra-aviso__tasa { font-variant-numeric: tabular-nums; opacity: 0.9; }

/* ---------- Precios en bolívares ---------- */
.precio-bloque { display: flex; flex-direction: column; gap: 0; }
.precio-bs { font-size: 0.78rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.fila--bs { font-size: 0.82rem; color: var(--muted); gap: 12px; }
.fila--bs span:last-child { font-weight: 700; color: var(--text); white-space: nowrap; }

/* ---------- Temas de temporada (se eligen en la Configuración del sistema) ---------- */
.hero { position: relative; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--tema-patron, none); background-size: var(--tema-patron-tam, 120px);
  opacity: 0.6; -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%); mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
}

:root[data-tema="carnaval"] {
  --accent: #c2185b; --accent-ink: #ffffff; --gold: #f2a900; --gold-text: #9a6b00; --gold-ink: #1d1730;
  --tema-patron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Crect x='10' y='14' width='11' height='4' fill='%23d6246e' transform='rotate(30 15 16)'/%3E%3Crect x='70' y='30' width='11' height='4' fill='%23f2a900' transform='rotate(-25 75 32)'/%3E%3Ccircle cx='40' cy='70' r='3.2' fill='%2300a6a6'/%3E%3Crect x='95' y='85' width='10' height='4' fill='%237b2cbf' transform='rotate(60 99 87)'/%3E%3Ccircle cx='100' cy='10' r='2.6' fill='%23f2a900'/%3E%3Crect x='20' y='100' width='10' height='4' fill='%2300a6a6' transform='rotate(-40 24 102)'/%3E%3Ccircle cx='65' cy='105' r='3' fill='%23d6246e'/%3E%3C/svg%3E");
}
:root[data-tema="san-valentin"] {
  --accent: #c9184a; --accent-ink: #ffffff; --gold: #ff8fab; --gold-text: #a4133c; --gold-ink: #3a0a17;
  --tema-patron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cpath d='M20 30s-9-5.5-9-12a5 5 0 0 1 9-3 5 5 0 0 1 9 3c0 6.5-9 12-9 12z' fill='%23ff8fab'/%3E%3Cpath d='M66 70s-6-3.6-6-8a3.3 3.3 0 0 1 6-2 3.3 3.3 0 0 1 6 2c0 4.4-6 8-6 8z' fill='%23c9184a' opacity='.6'/%3E%3C/svg%3E");
  --tema-patron-tam: 90px;
}
:root[data-tema="dia-de-las-madres"] {
  --accent: #9d4edd; --accent-ink: #ffffff; --gold: #f4a3c0; --gold-text: #a8327a; --gold-ink: #2b0b24;
  --tema-patron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cg fill='%23f4a3c0'%3E%3Ccircle cx='20' cy='14' r='4'/%3E%3Ccircle cx='26' cy='20' r='4'/%3E%3Ccircle cx='20' cy='26' r='4'/%3E%3Ccircle cx='14' cy='20' r='4'/%3E%3C/g%3E%3Ccircle cx='20' cy='20' r='3' fill='%23f9c74f'/%3E%3Cg fill='%23c77dff'%3E%3Ccircle cx='72' cy='66' r='3'/%3E%3Ccircle cx='77' cy='71' r='3'/%3E%3Ccircle cx='72' cy='76' r='3'/%3E%3Ccircle cx='67' cy='71' r='3'/%3E%3C/g%3E%3Ccircle cx='72' cy='71' r='2.2' fill='%23ffffff'/%3E%3C/svg%3E");
  --tema-patron-tam: 100px;
}
:root[data-tema="halloween"] {
  --accent: #c2410c; --accent-ink: #ffffff; --accent-soft: #fff1e6; --gold: #5b2a9e; --gold-text: #5b2a9e; --gold-ink: #ffffff;
  --tema-patron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='110'%3E%3Cpath d='M28 18c-3-3-7-3-10-1 2 0 3 1 3 3-2-1-4 0-5 1 1 0 2 1 2 2 2-1 4-1 5 1 1-2 3-2 5-1 0-1 1-2 2-2-1-1-3-2-5-1 0-2 1-3 3-3z' fill='%235b2a9e' opacity='.55'/%3E%3Ccircle cx='80' cy='70' r='7' fill='%23f76707' opacity='.5'/%3E%3Cpath d='M80 62v-3' stroke='%233f6b2a' stroke-width='2'/%3E%3Ccircle cx='40' cy='90' r='1.6' fill='%23f76707'/%3E%3Ccircle cx='95' cy='20' r='1.4' fill='%235b2a9e'/%3E%3C/svg%3E");
  --tema-patron-tam: 110px;
}
:root[data-tema="halloween"] .barra-aviso { background: linear-gradient(90deg, #2a1446, #5b2a9e 55%, #c2410c); color: #ffffff; }
:root[data-tema="black-friday"] {
  --accent: #111111; --accent-ink: #ffd60a; --gold: #ffd60a; --gold-text: #8a6d00; --gold-ink: #111111;
  --tema-patron: repeating-linear-gradient(-45deg, transparent 0 22px, rgba(255, 214, 10, 0.35) 22px 25px);
  --tema-patron-tam: auto;
}
:root[data-tema="navidad"] {
  --accent: #d90429; --accent-ink: #ffffff; --gold: #f2b705; --gold-text: #0f8a3e; --gold-ink: #1d1730;
  --tema-patron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg stroke='%23e11d48' stroke-opacity='.45' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M22 10v20M12 20h20M15 13l14 14M29 13 15 27'/%3E%3C/g%3E%3Cpath d='M86 62l2.6 5.4 6 .8-4.4 4.2 1 5.8L86 75.4l-5.2 2.8 1-5.8-4.4-4.2 6-.8z' fill='%23f2b705' fill-opacity='.7'/%3E%3Ccircle cx='54' cy='98' r='4' fill='%2316a34a' fill-opacity='.45'/%3E%3Crect x='52.6' y='92' width='2.8' height='2.6' fill='%23f2b705' fill-opacity='.7'/%3E%3Ccircle cx='100' cy='20' r='2' fill='%23e11d48' fill-opacity='.5'/%3E%3Ccircle cx='20' cy='80' r='1.8' fill='%23f2b705' fill-opacity='.6'/%3E%3C/svg%3E");
  --tema-patron-tam: 120px;
}
:root[data-tema="reyes"] {
  --accent: #1f3a93; --accent-ink: #ffffff; --gold: #d4a017; --gold-text: #9a7410; --gold-ink: #1d1730;
  --tema-patron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cpath d='M20 8l2.9 7.1L30 18l-7.1 2.9L20 28l-2.9-7.1L10 18l7.1-2.9z' fill='%23d4a017'/%3E%3Cpath d='M72 52l1.8 4.4 4.4 1.6-4.4 1.8L72 64l-1.8-4.2-4.4-1.8 4.4-1.6z' fill='%23d4a017'/%3E%3Ccircle cx='50' cy='85' r='1.6' fill='%23d4a017'/%3E%3Ccircle cx='88' cy='15' r='1.4' fill='%23d4a017'/%3E%3C/svg%3E");
  --tema-patron-tam: 100px;
}

/* Navidad: la barra alterna rojo y verde */
:root[data-tema="navidad"] .barra-aviso { background: linear-gradient(90deg, #e3122f, #b00020 45%, #0f8a3e); color: #ffffff; }
:root[data-tema="carnaval"] .barra-aviso { background: linear-gradient(90deg, #b0125f, #5c0f74 50%, #00838f); color: #ffffff; border-bottom: 2px solid #ffd23f; }

/* ---------- Íconos animados de temporada ---------- */
.particulas { position: fixed; inset: 0; z-index: 15; pointer-events: none; overflow: hidden; }
.particula {
  position: absolute; top: -40px; display: block; opacity: var(--opacidad);
  animation: var(--animacion) var(--duracion) linear var(--retraso) infinite;
  will-change: transform;
}
.particula svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.12)); }
.particulas--caer .particula { --animacion: caer; }
.particulas--subir .particula { --animacion: subir; top: auto; bottom: -40px; }
.particulas--titilar .particula { --animacion: titilar; animation-timing-function: ease-in-out; }
@keyframes caer {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(var(--vaiven), 55vh, 0) rotate(calc(var(--giro) / 2)); }
  100% { transform: translate3d(calc(var(--vaiven) * -0.4), 110vh, 0) rotate(var(--giro)); }
}
@keyframes subir {
  0% { transform: translate3d(0, 0, 0) scale(0.8); opacity: 0; }
  10% { opacity: var(--opacidad); }
  50% { transform: translate3d(var(--vaiven), -55vh, 0) scale(1); }
  90% { opacity: var(--opacidad); }
  100% { transform: translate3d(calc(var(--vaiven) * -0.5), -110vh, 0) scale(1.1); opacity: 0; }
}
@keyframes titilar {
  0%, 100% { transform: scale(0.4) rotate(0deg); opacity: 0.15; }
  50% { transform: scale(1) rotate(calc(var(--giro) / 6)); opacity: var(--opacidad); }
}
/* ---------- Delivery opcional (carrito y checkout) ---------- */
.opcion-delivery {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.opcion-delivery:hover { border-color: var(--accent); }
.opcion-delivery:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.opcion-delivery input { width: 18px; height: 18px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--accent); }
.opcion-delivery span { display: flex; flex-direction: column; gap: 2px; font-size: 0.88rem; }
.opcion-delivery small { color: var(--muted); font-size: 0.78rem; font-weight: 500; }
form .opcion-delivery { flex-direction: row; margin-bottom: 14px; font-weight: 500; }

/* ---------- Catálogo y botones con el tema de temporada ---------- */
/* Fondo de la página con el tono de la temporada (las tarjetas siguen blancas para leer bien). */
:root[data-tema] body { background: var(--tema-fondo, var(--bg)) fixed; overflow-x: clip; }
/* El patrón decorativo del tema también detrás del catálogo, más suave que arriba. */
#catalogo { position: relative; isolation: isolate; }
#catalogo::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  z-index: -1; pointer-events: none; opacity: 0.22;
  background-image: var(--tema-patron, none); background-size: var(--tema-patron-tam, 120px);
}
.btn--agregar svg.icono-tema { stroke: none; width: 22px; height: 22px; }
.btn--agregar:hover svg.icono-tema { animation: balanceo 0.8s ease-in-out infinite; transform-origin: 50% 90%; }

:root[data-tema="halloween"] {
  --tema-boton: linear-gradient(135deg, #e8590c, #c2410c 50%, #5b2a9e);
  --tema-fondo: linear-gradient(180deg, #fff7f0 0%, #f7f0ff 100%);
}
:root[data-tema="navidad"] {
  --tema-boton: linear-gradient(135deg, #ff2a44, #d90429 55%, #0f8a3e);
  --tema-fondo: linear-gradient(180deg, #fff0f0 0%, #fff8e8 100%);
}
:root[data-tema="carnaval"] {
  --tema-boton: linear-gradient(135deg, #c2185b, #7b2cbf 55%, #007f80);
  --tema-fondo: linear-gradient(135deg, #fff5fa 0%, #f6f0ff 50%, #eefafa 100%);
}
:root[data-tema="san-valentin"] {
  --tema-boton: linear-gradient(135deg, #e5384f, #c9184a 60%, #a4133c);
  --tema-fondo: linear-gradient(180deg, #fff5f8 0%, #ffeef3 100%);
}
:root[data-tema="dia-de-las-madres"] {
  --tema-boton: linear-gradient(135deg, #b5179e, #9d4edd 60%, #7b2cbf);
  --tema-fondo: linear-gradient(180deg, #fdf4ff 0%, #fff3f8 100%);
}
:root[data-tema="black-friday"] {
  --tema-boton: linear-gradient(135deg, #2b2b2b, #000000);
  --tema-fondo: linear-gradient(180deg, #fffbe5 0%, #f6f6f6 100%);
}
:root[data-tema="reyes"] {
  --tema-boton: linear-gradient(135deg, #2c4fc4, #1f3a93 60%, #14275f);
  --tema-fondo: linear-gradient(180deg, #f4f7ff 0%, #fffaf0 100%);
}

/* Los íconos de temporada son dibujos con relleno: sin el contorno de los íconos de línea */
.particula svg { stroke: none; }

/* ---------- Personajes que cruzan la pantalla (bruja, reno, máscara...) ---------- */
.voladores { position: fixed; inset: 0; z-index: 14; pointer-events: none; overflow: hidden; }
.volador {
  position: absolute; left: 0; display: block;
  transform: translateX(-40vw);
  animation: cruzar var(--duracion) linear var(--retraso) infinite;
  will-change: transform;
}
.volador--izq { animation-name: cruzar-izq; }
.volador > span { display: block; animation: flotar 2.4s ease-in-out infinite alternate; }
.volador svg { width: 100%; height: auto; display: block; stroke: none; filter: drop-shadow(0 6px 8px rgba(42, 20, 70, 0.25)); }
/* Cruza durante el 55% del ciclo y luego espera fuera de la pantalla: aparece de vez en cuando */
@keyframes cruzar {
  0% { transform: translateX(-40vw); }
  55%, 100% { transform: translateX(120vw); }
}
@keyframes cruzar-izq {
  0% { transform: translateX(120vw) scaleX(-1); }
  55%, 100% { transform: translateX(-40vw) scaleX(-1); }
}
@keyframes flotar {
  from { transform: translateY(-12px) rotate(-4deg); }
  to { transform: translateY(12px) rotate(3deg); }
}

/* ---------- Carrito de temporada ---------- */
.carrito-btn__icono svg.icono-tema { stroke: none; width: 26px; height: 26px; transform-origin: 50% 90%; animation: balanceo 2.8s ease-in-out infinite; }
@keyframes balanceo { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-7deg); } }
.carrito-btn:hover svg.icono-tema { animation-duration: 0.8s; }
:root[data-tema="halloween"] .carrito-btn { background: #2a1446; box-shadow: 0 6px 16px -8px #2a1446; }
:root[data-tema="halloween"] .carrito-btn .badge { background: #f76707; color: #ffffff; box-shadow: 0 0 0 2px #2a1446; }

/* En Reyes las estrellas aparecen sobre todo en la parte alta de la pantalla */
.particulas--titilar { bottom: 40%; }

/* ---------- Etiqueta de descuento por categoría ---------- */
.etiqueta--promo {
  display: inline-flex; align-items: center; gap: 5px; max-width: 100%;
  background: var(--gold); color: var(--gold-ink); text-transform: none; letter-spacing: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  animation: latido 2.4s ease-in-out infinite;
}
.etiqueta--promo strong { font-weight: 900; }
.card__img .etiquetas { right: 58px; }
.modal__promo { margin-block: 2px 6px; }
.modal__promo .etiqueta--promo { font-size: 0.78rem; padding: 5px 12px; }
@keyframes latido { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* ---------- Galería de fotos en el detalle ---------- */
.galeria { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.modal__img { position: relative; }
.galeria__flecha {
  position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: var(--surface); color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer;
  box-shadow: var(--shadow); opacity: 0.92;
}
.galeria__flecha--prev { left: 10px; }
.galeria__flecha--next { right: 10px; }
.galeria__contador {
  position: absolute; bottom: 10px; left: 10px; /* a la izquierda: la marca de la tienda va abajo a la derecha */ padding: 3px 10px; border-radius: 999px;
  background: var(--glass); font-size: 0.75rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.galeria__miniaturas { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.galeria__mini {
  flex: 0 0 58px; height: 72px; padding: 0; border-radius: 10px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; background: var(--img-bg); opacity: 0.7; transition: opacity 0.2s, border-color 0.2s;
}
.galeria__mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.galeria__mini.activo, .galeria__mini:hover { border-color: var(--accent); opacity: 1; }

/* ---------- Sugerencias en el detalle del producto ---------- */
.sugerencias { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); }
.sugerencias h3 { margin: 0 0 14px; font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; letter-spacing: -0.02em; }
.sugerencias__pista {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px;
  scrollbar-width: thin;
}
.sugerencia {
  flex: 0 0 148px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; text-align: left;
  border: 0; padding: 0; background: none; cursor: pointer; color: inherit;
}
.sugerencia__img {
  position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius-sm); overflow: hidden; background: var(--img-bg);
}
.sugerencia__img img, .sugerencia__img svg { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 0.5s var(--ease); }
.sugerencia:hover .sugerencia__img img, .sugerencia:hover .sugerencia__img svg { transform: scale(1.06); }
.sugerencia__img .etiqueta { position: absolute; top: 8px; left: 8px; font-size: 0.6rem; padding: 3px 7px; }
.sugerencia__nombre {
  font-weight: 700; font-size: 0.82rem; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sugerencia:hover .sugerencia__nombre { color: var(--accent); }
.sugerencia .precio { font-size: 0.9rem; }
.sugerencia .precio s { font-size: 0.72rem; margin-left: 4px; }
.sugerencia .precio-bs { font-size: 0.7rem; }
@media (max-width: 700px) { .sugerencia { flex-basis: 124px; } }

/* ---------- Barra superior: delivery y redes sociales ---------- */
.barra-aviso__grupo { display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; min-width: 0; }
.chip-aviso {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.28); font-weight: 700;
}
.chip-aviso svg[aria-hidden="true"] { width: 16px; height: 16px; stroke-width: 2; }
/* Moto del delivery en marcha: avanza y retrocede, el chasis rebota, las ruedas giran y deja estela */
.chip-aviso--delivery { overflow: hidden; }
.chip-aviso--delivery svg.moto { width: 26px; height: 20px; overflow: visible; animation: moto-ruta 2.4s ease-in-out infinite; }
.moto__cuerpo { animation: moto-bache 0.32s ease-in-out infinite alternate; }
.moto__rueda { transform-box: fill-box; transform-origin: center; animation: moto-giro 0.45s linear infinite; }
.moto__estela { stroke-dasharray: 3 3; animation: moto-estela 0.4s linear infinite; opacity: 0.75; }
@keyframes moto-ruta { 0%, 100% { transform: translateX(-2px); } 50% { transform: translateX(4px); } }
@keyframes moto-bache { from { transform: translateY(0); } to { transform: translateY(-0.9px); } }
@keyframes moto-giro { to { transform: rotate(360deg); } }
@keyframes moto-estela { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 6; } }
.chip-aviso--redes { gap: 10px; padding-inline: 10px; }
.red-social { display: inline-flex; align-items: center; gap: 4px; color: inherit; text-decoration: none; }
.red-social:hover span { text-decoration: underline; text-underline-offset: 2px; }
.red-social svg[aria-hidden="true"] { width: 15px; height: 15px; }
@media (max-width: 700px) {
  .barra-aviso { font-size: 0.74rem; }
  .barra-aviso__inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Tema Verano playero: mar turquesa, sol y arena ---------- */
:root[data-tema="verano"] {
  --accent: #0e7490; --accent-ink: #ffffff; --accent-soft: #dff6fb;
  --gold: #f59e0b; --gold-text: #b45309; --gold-ink: #3b2005;
  --img-bg: #eef9fb; --surface-2: #eef9fb;
  --tema-patron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cpath d='M8 30c6-5 12-5 18 0s12 5 18 0' fill='none' stroke='%2367d3e6' stroke-width='2.2' stroke-linecap='round'/%3E%3Cpath d='M80 100c6-5 12-5 18 0s12 5 18 0' fill='none' stroke='%2367d3e6' stroke-width='2.2' stroke-linecap='round'/%3E%3Ccircle cx='105' cy='28' r='6' fill='%23fcd34d'/%3E%3Cpath d='M30 106l2 4.4 4.6.4-3.5 3 1.1 4.6-4.2-2.5-4.2 2.5 1.1-4.6-3.5-3 4.6-.4z' fill='%23fdba74'/%3E%3Ccircle cx='62' cy='62' r='2' fill='%23a5f3fc'/%3E%3Ccircle cx='128' cy='70' r='1.6' fill='%23a5f3fc'/%3E%3C/svg%3E");
  --tema-patron-tam: 140px;
  --tema-boton: linear-gradient(135deg, #06b6d4, #0e7490 55%, #155e75);
  --tema-fondo: linear-gradient(180deg, #e8f8fc 0%, #fffaf0 60%, #fdf1d8 100%);
}
:root[data-tema="verano"] .barra-aviso { background: linear-gradient(90deg, #0e7490, #06b6d4 60%, #f59e0b); color: #ffffff; border-bottom-color: #fde68a; }
/* Olas al pie del carrusel */
:root[data-tema="verano"] .hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18px; z-index: -1; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='18'%3E%3Cpath d='M0 10c10-8 30-8 40 0s30 8 40 0v8H0z' fill='%2367d3e6' opacity='.35'/%3E%3C/svg%3E") repeat-x bottom / 80px 18px;
}

/* ---------- Tema Upata: la ciudad de las siete colinas (morado y dorado de la tienda) ---------- */
/* Al fondo de la tienda, la silueta de Upata (colinas, plaza e iglesia) queda fija abajo de la pantalla. */
:root[data-tema="upata"] {
  --accent: #5b21b6; --accent-ink: #ffffff; --accent-soft: #f1eafe;
  --gold: #d4af37; --gold-text: #8a6a12; --gold-ink: #2a0f55;
  --img-bg: #f7f3ff; --surface-2: #f7f3ff;
  --tema-patron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M20 18l1.6 4 4 1.6-4 1.6-1.6 4-1.6-4-4-1.6 4-1.6z' fill='%23d4af37' fill-opacity='.7'/%3E%3Cpath d='M80 76l1.2 3 3 1.2-3 1.2-1.2 3-1.2-3-3-1.2 3-1.2z' fill='%23a78bfa' fill-opacity='.7'/%3E%3Ccircle cx='96' cy='22' r='1.6' fill='%23d4af37'/%3E%3Ccircle cx='34' cy='96' r='1.4' fill='%23a78bfa'/%3E%3C/svg%3E");
  --tema-patron-tam: 120px;
  --tema-boton: linear-gradient(135deg, #7c3aed, #5b21b6 55%, #3b1773);
  --tema-fondo: url("upata-fondo.svg") center bottom / max(1200px, 100vw) auto no-repeat fixed, linear-gradient(180deg, #f6f0ff 0%, #fbf8ff 55%, #fbf3dd 100%);
}
:root[data-tema="upata"] .barra-aviso { background: linear-gradient(90deg, #2a0f55, #5b21b6 55%, #b8902a); color: #ffffff; border-bottom-color: #f3d98a; }
/* Al pie del carrusel, una franja de colinas. */
:root[data-tema="upata"] .hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22px; z-index: -1; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='22'%3E%3Cpath d='M0 22C14 22 18 6 34 6s22 16 46 16S102 4 120 4s26 18 40 18z' fill='%23a78bfa' opacity='.3'/%3E%3C/svg%3E") repeat-x bottom / 160px 22px;
}
/* Cinta de categorías: cielo de atardecer y la silueta abajo, a todo lo ancho (en el teléfono se ve el centro: la iglesia). */
.cinta-categorias[data-escena="upata"] { background: linear-gradient(180deg, #efe6ff 0%, #f8f2ff 50%, #fdf1d6 100%); }
.esc-upata { left: 0; right: 0; bottom: 0; height: 104px; background: url("upata-fondo.svg") center bottom / auto 100% repeat-x; }
[data-escena="upata"] { --escena-fondo: linear-gradient(180deg, #efe6ff 0%, #f8f2ff 55%, #fdf1d6 100%); }
/* En el encabezado del teléfono la silueta va más tenue, para leer bien el nombre y el buscador. */
.header[data-escena="upata"] .esc-upata { opacity: 0.6; }
#catalogo[data-escena="upata"] .esc-upata { display: none; }
@media (prefers-reduced-motion: reduce) { .cinta-categorias[data-escena="upata"] .esc-cruza { display: none; } }

/* ---------- Escena de la cinta de categorías (cada tema tiene la suya) ---------- */
.cinta-categorias { position: relative; overflow: hidden; }
.cinta-categorias > .container { position: relative; z-index: 1; }
.cinta-categorias[data-escena] { padding-bottom: 6px; }
/* El nombre de la categoría se sigue leyendo sobre los dibujos */
.cinta-categorias[data-escena] .chip > span:last-child { text-shadow: 0 0 3px var(--surface), 0 0 7px var(--surface); }
.cinta-escena { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.cinta-escena > span { position: absolute; display: block; }
.cinta-escena svg[aria-hidden="true"] { display: block; width: 100%; height: auto; stroke: none; stroke-width: 1; overflow: visible; }

/* Movimientos comunes: caer girando, subir, titilar, luces desenfocadas y cruzar */
.esc-cae { top: -26px; animation: esc-caer var(--dur) linear var(--del) infinite; }
.esc-cae > span { display: block; animation: esc-vaiven var(--vaiven) ease-in-out var(--del) infinite alternate; }
.esc-cae > span > span { display: block; animation: esc-girar3d var(--giro) ease-in-out infinite alternate; }
.esc-cae--plano > span > span { animation: none; }
@keyframes esc-caer { to { transform: translate(var(--x), 270px); } }
@keyframes esc-vaiven { from { transform: translateX(-12px) rotate(-10deg); } to { transform: translateX(12px) rotate(10deg); } }
@keyframes esc-girar3d {
  from { transform: perspective(70px) rotateX(-55deg) rotateY(25deg); }
  to { transform: perspective(70px) rotateX(50deg) rotateY(-40deg); }
}
.esc-sube { bottom: -70px; opacity: 0; animation: esc-subir var(--dur) linear var(--del) infinite; }
.esc-sube > span { display: block; animation: esc-vaiven var(--vaiven) ease-in-out infinite alternate; }
@keyframes esc-subir {
  0% { transform: translateY(0); opacity: 0; }
  8%, 82% { opacity: var(--op); }
  100% { transform: translateY(-310px); opacity: 0; }
}
.esc-titila { animation: esc-titilar var(--dur) ease-in-out var(--del) infinite; }
@keyframes esc-titilar { 0%, 100% { opacity: 0.1; transform: scale(0.55) rotate(0deg); } 50% { opacity: 1; transform: scale(1) rotate(20deg); } }
.esc-bokeh {
  border-radius: 50%;
  background: radial-gradient(circle at 42% 40%, color-mix(in srgb, var(--color) 45%, transparent), color-mix(in srgb, var(--color) 14%, transparent) 58%, transparent 72%);
  animation: esc-deriva var(--dur) ease-in-out var(--del) infinite alternate;
}
@keyframes esc-deriva {
  0% { transform: translate(0, 0) scale(0.9); opacity: 0.35; }
  50% { opacity: 0.85; }
  100% { transform: translate(var(--dx), var(--dy)) scale(1.1); opacity: 0.45; }
}
.esc-cruza { left: 0; animation: esc-cruzar var(--dur) linear var(--del) infinite; will-change: transform; }
.esc-cruza > span { display: block; animation: esc-mecer var(--mecer, 3s) ease-in-out infinite alternate; }
@keyframes esc-cruzar {
  from { transform: translate(-260px, var(--y1, 0px)); }
  to { transform: translate(calc(100vw + 60px), var(--y2, 0px)); }
}
@keyframes esc-mecer { from { transform: translateY(-2px) rotate(-1deg); } to { transform: translateY(2px) rotate(1deg); } }
.esc-alas { transform-box: fill-box; transform-origin: center; animation: esc-aletear 0.9s ease-in-out infinite alternate; }
.cinta-categorias[data-escena="halloween"] .esc-alas { animation-duration: 0.28s; }
@keyframes esc-aletear { to { transform: scaleY(0.45); } }
@keyframes esc-latido { from { transform: scale(1); opacity: 0.88; } to { transform: scale(1.06); opacity: 1; } }
@keyframes esc-pendulo { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
@keyframes esc-mecerse { from { transform: rotate(-1deg); } to { transform: rotate(1.2deg); } }

/* Verano: sol con halo, palmeras, mar en tres capas, surfista y gaviotas */
.cinta-categorias[data-escena="verano"] { background: linear-gradient(180deg, #d8f1fa 0%, #eef9fc 55%, #fbf0d9 100%); }
.esc-sol, .esc-luna, .esc-estrella-guia { animation: esc-latido 7s ease-in-out infinite alternate; }
.esc-palmera { bottom: 4px; width: 86px; transform-origin: 55% 100%; animation: esc-mecerse 7s ease-in-out infinite alternate; }
.esc-palmera--der { animation-delay: -3.5s; }
.esc-palmera--der svg, .esc-arbol--der svg, .esc-telarana--der svg, .esc-rama--der svg { transform: scaleX(-1); }
.esc-hojas { transform-origin: 62px 46px; animation: esc-hojas 5s ease-in-out infinite alternate; }
@keyframes esc-hojas { from { transform: rotate(-2deg); } to { transform: rotate(2.5deg); } }
.esc-mar { left: 0; right: 0; bottom: 0; background-repeat: repeat-x; background-position: 0 100%; animation: linear infinite; }
.esc-mar--fondo {
  height: 34px; background-size: 240px 34px; animation-name: esc-ola-240; animation-duration: 28s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='34'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%2387d8e6'/%3E%3Cstop offset='1' stop-color='%23238fa8'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 12C40 3 80 3 120 12S200 21 240 12V34H0z' fill='url(%23a)' fill-opacity='.6'/%3E%3C/svg%3E");
}
.esc-mar--medio {
  height: 26px; background-size: 180px 26px; animation-name: esc-ola-180; animation-duration: 19s; animation-direction: reverse;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='26'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%234cc3d6'/%3E%3Cstop offset='1' stop-color='%2316809b'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 9C30 2 60 2 90 9S150 16 180 9V26H0z' fill='url(%23a)' fill-opacity='.75'/%3E%3Cpath d='M0 9C30 2 60 2 90 9S150 16 180 9' fill='none' stroke='%23ffffff' stroke-opacity='.45' stroke-width='1'/%3E%3C/svg%3E");
}
.esc-mar--frente {
  height: 18px; background-size: 140px 18px; animation-name: esc-ola-140; animation-duration: 13s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='18'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%235fd0df'/%3E%3Cstop offset='1' stop-color='%230e7490'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 7C23 1 47 1 70 7S117 13 140 7V18H0z' fill='url(%23a)'/%3E%3Cpath d='M0 7C23 1 47 1 70 7S117 13 140 7' fill='none' stroke='%23ffffff' stroke-opacity='.9' stroke-width='1.3'/%3E%3Cg fill='%23ffffff' fill-opacity='.7'%3E%3Ccircle cx='30' cy='4.6' r='.8'/%3E%3Ccircle cx='96' cy='10' r='.7'/%3E%3Ccircle cx='120' cy='9.4' r='.6'/%3E%3C/g%3E%3C/svg%3E");
}
@keyframes esc-ola-240 { to { background-position-x: 240px; } }
@keyframes esc-ola-180 { to { background-position-x: 180px; } }
@keyframes esc-ola-140 { to { background-position-x: 140px; } }

/* Halloween: luna, árboles secos, telarañas, arañas, murciélagos, calabazas y niebla */
.cinta-categorias[data-escena="halloween"] { background: linear-gradient(180deg, #e9e0f7 0%, #f4eefb 50%, #fde6d2 100%); }
.esc-arbol { bottom: 0; width: 100px; transform-origin: 30% 100%; animation: esc-mecerse 9s ease-in-out infinite alternate; }
.esc-arbol--der { animation-delay: -4s; }
.esc-telarana { top: 0; width: 82px; transform-origin: 0 0; animation: esc-mecerse 6s ease-in-out infinite alternate; }
.esc-telarana--der { transform-origin: 100% 0; animation-delay: -3s; }
.esc-arana { top: -96px; width: 22px; animation: esc-arana var(--dur) ease-in-out var(--del, 0s) infinite; }
.esc-arana svg { transform-origin: 50% 0; animation: esc-pendulo 3.2s ease-in-out infinite alternate; }
@keyframes esc-arana { 0%, 100% { transform: translateY(0); } 35%, 62% { transform: translateY(72px); } }
.esc-calabaza { bottom: 6px; animation: esc-resplandor 3s ease-in-out var(--del, 0s) infinite alternate; }
@keyframes esc-resplandor {
  from { filter: drop-shadow(0 0 2px rgba(255, 140, 20, 0.35)); }
  to { filter: drop-shadow(0 0 10px rgba(255, 140, 20, 0.75)); }
}
.esc-vela { animation: esc-vela 2.2s linear infinite; }
@keyframes esc-vela { 0%, 100% { opacity: 1; } 12% { opacity: 0.8; } 20% { opacity: 0.95; } 33% { opacity: 0.72; } 47% { opacity: 1; } 60% { opacity: 0.84; } 74% { opacity: 0.97; } 86% { opacity: 0.78; } }
.esc-niebla {
  left: -25%; width: 150%; bottom: 0; height: 64px; opacity: 0.6;
  background:
    radial-gradient(ellipse 14% 60% at 8% 82%, rgba(255, 255, 255, 0.8), transparent 70%),
    radial-gradient(ellipse 18% 70% at 30% 92%, rgba(240, 232, 255, 0.85), transparent 70%),
    radial-gradient(ellipse 13% 55% at 52% 86%, rgba(255, 255, 255, 0.75), transparent 70%),
    radial-gradient(ellipse 18% 70% at 74% 92%, rgba(240, 232, 255, 0.85), transparent 70%),
    radial-gradient(ellipse 14% 60% at 95% 84%, rgba(255, 255, 255, 0.8), transparent 70%);
  animation: esc-niebla 34s ease-in-out infinite alternate;
}
.esc-niebla--frente { height: 38px; opacity: 0.5; animation-duration: 26s; animation-direction: alternate-reverse; }
@keyframes esc-niebla { from { transform: translateX(-8%); } to { transform: translateX(8%); } }

/* Navidad: cielo de invierno, luna, trineo de Santa, guirnalda, nieve y pinos nevados */
.cinta-categorias[data-escena="navidad"] {
  background:
    radial-gradient(55% 130% at 80% -20%, rgba(255, 214, 102, 0.5), transparent 62%),
    radial-gradient(40% 100% at 6% 115%, rgba(255, 255, 255, 0.2), transparent 70%),
    linear-gradient(180deg, #ef1a36 0%, #c8081f 55%, #9a0618 100%);
  padding-top: 16px; border-top-color: #ffd166;
}
.cinta-categorias[data-escena="navidad"] .chip { color: #ffffff; }
.cinta-categorias[data-escena="navidad"] .chip > span:last-child { text-shadow: 0 1px 2px rgba(70, 0, 10, 0.75), 0 0 8px rgba(70, 0, 10, 0.5); }
.cinta-categorias[data-escena="navidad"] .chip:hover, .cinta-categorias[data-escena="navidad"] .chip.activo { color: #ffe08a; }
.cinta-categorias[data-escena="navidad"] .chip__img { box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px rgba(255, 214, 102, 0.6), 0 6px 14px -6px rgba(60, 0, 8, 0.6); }
.cinta-categorias[data-escena="navidad"] .chip.activo .chip__img { box-shadow: 0 0 0 3px #ffffff, 0 0 0 6px #ffd166, 0 0 18px 3px rgba(255, 209, 102, 0.75); }
.cinta-categorias[data-escena="navidad"] .marcas { border-left-color: rgba(255, 255, 255, 0.35); }
.cinta-categorias[data-escena="navidad"] .marca { border-color: #ffffff; box-shadow: 0 0 0 2px rgba(255, 214, 102, 0.55); }
.esc-baston { top: -2px; transform-origin: 50% 0; animation: esc-pendulo var(--dur) ease-in-out var(--del) infinite alternate; filter: drop-shadow(0 2px 2px rgba(60, 0, 8, 0.35)); }
.esc-regalos { bottom: 7px; transform-origin: 50% 100%; animation: esc-regalo-salto 2.6s ease-in-out infinite; filter: drop-shadow(0 2px 2px rgba(60, 0, 8, 0.3)); }
@keyframes esc-regalo-salto { 0%, 64%, 100% { transform: translateY(0) scale(1); } 72% { transform: translateY(-5px) scale(1.03, 0.97); } 80% { transform: translateY(0) scale(1.04, 0.95); } 88% { transform: translateY(-1px) scale(1); } }
.esc-muneco { bottom: 5px; transform-origin: 50% 100%; animation: esc-mecerse 2.4s ease-in-out infinite alternate; filter: drop-shadow(0 2px 2px rgba(60, 0, 8, 0.3)); }
.esc-brazo { transform-box: fill-box; transform-origin: 0 100%; animation: esc-saludo 0.7s ease-in-out infinite alternate; }
.esc-nariz { transform-box: fill-box; transform-origin: center; animation: esc-nariz 0.9s ease-in-out infinite alternate; }
@keyframes esc-nariz { from { opacity: 0.15; transform: scale(0.7); } to { opacity: 0.6; transform: scale(1.25); } }
[data-escena="navidad"] .esc-bombillo { animation-duration: 1.35s; }
[data-escena="navidad"] .esc-pino { filter: drop-shadow(0 2px 3px rgba(40, 0, 6, 0.35)); }
.particulas[data-tema="navidad"] .particula svg { filter: drop-shadow(0 1px 1.5px rgba(120, 0, 20, 0.4)); }
.esc-luces {
  left: 0; right: 0; top: 0; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='22'%3E%3Cpath d='M0 2Q30 16 60 2' fill='none' stroke='%23243b30' stroke-width='1.2'/%3E%3C/svg%3E") repeat-x 0 0 / 60px 22px;
}
.esc-bombillo {
  position: absolute; top: 8px; width: 7px; height: 11px; border-radius: 50% 50% 46% 46%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0 12%, var(--color) 48%, color-mix(in srgb, var(--color) 62%, #000) 100%);
  box-shadow: 0 0 9px 1px color-mix(in srgb, var(--color) 70%, transparent);
  animation: esc-bombillo 3.4s ease-in-out var(--del) infinite alternate;
}
.esc-bombillo::before { content: ""; position: absolute; left: 1.5px; top: -2.5px; width: 4px; height: 3.5px; border-radius: 1px; background: linear-gradient(90deg, #4b5563, #9ca3af, #4b5563); }
@keyframes esc-bombillo { from { opacity: 0.55; box-shadow: 0 0 2px color-mix(in srgb, var(--color) 40%, transparent); } to { opacity: 1; } }
.esc-copo {
  display: block; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 42% 40%, #ffffff 0 45%, rgba(255, 255, 255, 0.65) 70%, rgba(255, 255, 255, 0) 100%);
  box-shadow: 0 0 2px rgba(140, 170, 205, 0.8);
}
.esc-nieve {
  left: 0; right: 0; bottom: 0; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='18'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='1' stop-color='%23dbe5ef'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 8Q14 1 30 7T64 6T96 8T120 8V18H0z' fill='url(%23a)'/%3E%3C/svg%3E") repeat-x 0 100% / 120px 18px;
  filter: drop-shadow(0 -1px 1px rgba(120, 150, 185, 0.35));
}
.esc-pino { bottom: 8px; }
.esc-lucecitas circle { animation: esc-bombillo 2.4s ease-in-out infinite alternate; }
.esc-punta { transform-box: fill-box; transform-origin: center; animation: esc-latido 2.6s ease-in-out infinite alternate; filter: drop-shadow(0 0 2px #f4cf5d); }
.esc-patas { transform-box: fill-box; transform-origin: 50% 0; animation: esc-galope 0.42s ease-in-out infinite alternate; }
@keyframes esc-galope { from { transform: skewX(-8deg); } to { transform: skewX(14deg); } }
.esc-saludo { transform-box: fill-box; transform-origin: 0 100%; animation: esc-saludo 0.9s ease-in-out infinite alternate; }
@keyframes esc-saludo { to { transform: rotate(-20deg); } }
.esc-estela circle { animation: esc-titilar 1.6s ease-in-out infinite; }

/* Carnaval: noche de fiesta con reflectores, banderines, antifaces con plumas, fuegos artificiales,
   serpentinas, confeti, el tambor y las maracas de la comparsa. */
.cinta-categorias[data-escena="carnaval"] {
  background:
    radial-gradient(42% 120% at 16% -15%, rgba(255, 46, 136, 0.55), transparent 65%),
    radial-gradient(42% 120% at 84% -15%, rgba(0, 194, 199, 0.42), transparent 65%),
    radial-gradient(60% 90% at 50% 125%, rgba(255, 210, 63, 0.32), transparent 70%),
    linear-gradient(180deg, #3d0a66 0%, #5c0f74 55%, #2b0649 100%);
  padding-top: 24px; border-top-color: #ffd23f; border-bottom: 2px solid #ffd23f;
}
.cinta-categorias[data-escena="carnaval"] .chip { color: #ffffff; }
.cinta-categorias[data-escena="carnaval"] .chip > span:last-child { text-shadow: 0 1px 2px rgba(25, 0, 45, 0.85), 0 0 8px rgba(25, 0, 45, 0.55); }
.cinta-categorias[data-escena="carnaval"] .chip:hover, .cinta-categorias[data-escena="carnaval"] .chip.activo { color: #ffd23f; }
.cinta-categorias[data-escena="carnaval"] .chip__img { box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px rgba(255, 46, 136, 0.7), 0 6px 14px -6px rgba(20, 0, 40, 0.7); }
.cinta-categorias[data-escena="carnaval"] .chip.activo .chip__img { box-shadow: 0 0 0 3px #ffffff, 0 0 0 6px #ffd23f, 0 0 18px 3px rgba(255, 210, 63, 0.7); }
.cinta-categorias[data-escena="carnaval"] .marcas { border-left-color: rgba(255, 255, 255, 0.3); }
.cinta-categorias[data-escena="carnaval"] .marca { border-color: #ffffff; box-shadow: 0 0 0 2px rgba(0, 194, 199, 0.7); }
.esc-serpentina { top: -4px; transform-origin: 50% 0; animation: esc-pendulo 4.6s ease-in-out var(--del) infinite alternate; }
.esc-banderines {
  left: 0; right: 0; top: 0; height: 26px; z-index: 1;
  background: linear-gradient(180deg, transparent 3px, rgba(255, 233, 160, 0.95) 3px, rgba(255, 233, 160, 0.95) 4.4px, transparent 4.4px);
}
.esc-banderin {
  position: absolute; top: 4px; width: 17px; height: 19px; transform-origin: 50% 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.5), transparent 45%), var(--color);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  animation: esc-pendulo 2.6s ease-in-out var(--del) infinite alternate;
}
.esc-antifaz { top: -8px; transform-origin: 50% 0; animation: esc-pendulo var(--dur) ease-in-out var(--del) infinite alternate; filter: drop-shadow(0 4px 5px rgba(20, 0, 40, 0.5)); z-index: 1; }
.esc-antifaz--chico { top: -16px; opacity: 0.88; }
.esc-lentejuela { animation: esc-brillito 1.4s ease-in-out infinite alternate; }
.esc-lentejuela:nth-child(2n) { animation-delay: -0.7s; }
@keyframes esc-brillito { from { opacity: 0.15; } to { opacity: 1; } }
.esc-reflector {
  bottom: -14px; width: 110px; height: 280px; transform-origin: 50% 100%;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 85%);
  clip-path: polygon(44% 100%, 56% 100%, 100% 0, 0 0);
  animation: esc-reflector 6.5s ease-in-out var(--del) infinite alternate;
}
.esc-reflector--der { background: linear-gradient(to top, rgba(255, 210, 63, 0.38), rgba(255, 210, 63, 0) 85%); animation-direction: alternate-reverse; }
@keyframes esc-reflector { from { transform: rotate(-30deg); } to { transform: rotate(30deg); } }
.esc-tambor { bottom: 2px; transform-origin: 50% 100%; animation: esc-tamborazo 0.7s ease-in-out infinite; filter: drop-shadow(0 3px 3px rgba(20, 0, 40, 0.45)); }
@keyframes esc-tamborazo { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.04, 0.95); } 50% { transform: scale(1); } 65% { transform: scale(1.03, 0.96); } }
.esc-baqueta { transform-box: fill-box; transform-origin: 0 0; animation: esc-golpe 0.35s ease-in-out infinite alternate; }
.esc-baqueta--der { transform-origin: 100% 0; animation-name: esc-golpe-der; animation-delay: -0.17s; }
@keyframes esc-golpe { from { transform: rotate(-16deg); } to { transform: rotate(4deg); } }
@keyframes esc-golpe-der { from { transform: rotate(16deg); } to { transform: rotate(-4deg); } }
.esc-maracas { bottom: 4px; filter: drop-shadow(0 3px 3px rgba(20, 0, 40, 0.45)); }
.esc-maraca { transform-box: fill-box; transform-origin: 50% 100%; animation: esc-sacudir 0.3s ease-in-out infinite alternate; }
.esc-maraca--b { animation-delay: -0.15s; }
@keyframes esc-sacudir { from { transform: rotate(-12deg); } to { transform: rotate(10deg); } }
[data-escena="carnaval"] .esc-fuego { zoom: 0.85; }
[data-escena="carnaval"] .esc-cae svg { filter: drop-shadow(0 1px 1px rgba(20, 0, 40, 0.3)); }
@media (min-width: 701px) {
  .cinta-categorias[data-escena="carnaval"] .categorias::before, .cinta-categorias[data-escena="carnaval"] .marcas::before {
    color: #b0125f; background: #ffffff; box-shadow: 0 0 0 2px #ffd23f, 0 4px 10px -4px rgba(20, 0, 40, 0.6);
  }
}

/* San Valentín, Día de las Madres y Primavera: pétalos, corazones, ramas florecidas y mariposas */
.cinta-categorias[data-escena="san-valentin"] { background: linear-gradient(180deg, #fde7ee 0%, #fff3f6 100%); }
.cinta-categorias[data-escena="dia-de-las-madres"] { background: linear-gradient(180deg, #fbeaf6 0%, #fff4f8 100%); }
.cinta-categorias[data-escena="primavera"] { background: linear-gradient(180deg, #eaf7ee 0%, #fff6f9 100%); }
.esc-rama { transform-origin: 0 0; animation: esc-mecerse 6.5s ease-in-out infinite alternate; }
.esc-rama--der { transform-origin: 100% 0; animation-delay: -3s; }
.esc-ala { transform-origin: 20px 15px; animation: esc-aleteo 0.5s ease-in-out infinite alternate; }
@keyframes esc-aleteo { to { transform: scaleX(0.3); } }

/* Black Friday: etiquetas de precio colgando y destellos dorados */
.cinta-categorias[data-escena="black-friday"] { background: linear-gradient(180deg, #fff5c7 0%, #fffbea 100%); }
.esc-etiqueta { top: -6px; transform-origin: 50% 0; animation: esc-pendulo var(--dur) ease-in-out var(--del) infinite alternate; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.18)); }

/* Reyes: estrella guía, cielo estrellado, dunas y la caravana de los Reyes Magos */
.cinta-categorias[data-escena="reyes"] { background: linear-gradient(180deg, #e3e7fa 0%, #f3efff 50%, #fbecd2 100%); }
.esc-dunas {
  left: 0; right: 0; bottom: 0; height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='40'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ecd3a2'/%3E%3Cstop offset='1' stop-color='%23c99a5b'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 22C50 6 110 8 160 20S270 30 320 22V40H0z' fill='url(%23a)' fill-opacity='.75'/%3E%3C/svg%3E") repeat-x 0 100% / 320px 40px;
}
.esc-dunas--frente {
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='20'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23e3be82'/%3E%3Cstop offset='1' stop-color='%23b8854a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 10C60 2 120 4 170 9S230 14 260 10V20H0z' fill='url(%23a)'/%3E%3C/svg%3E");
  background-size: 260px 20px;
}

/* Año Nuevo: fuegos artificiales, destellos y confeti dorado */
.cinta-categorias[data-escena="ano-nuevo"] { background: linear-gradient(180deg, #e4e7f6 0%, #f5f3fb 55%, #fbf5e2 100%); }
.esc-fuego { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
.esc-fuego__rayos { position: absolute; inset: 0; opacity: 0; animation: esc-fuego 4.4s ease-out var(--del) infinite; filter: drop-shadow(0 0 3px var(--color)); }
.esc-fuego__rayos i {
  position: absolute; left: 50%; top: 50%; width: 2px; height: 30px; margin-left: -1px; transform-origin: 50% 0; border-radius: 2px;
  background: linear-gradient(to bottom, transparent 15%, var(--color));
}
@keyframes esc-fuego {
  0% { transform: scale(0.1); opacity: 0; }
  6% { opacity: 1; }
  45% { transform: scale(1); opacity: 0.95; }
  78% { transform: scale(1.14) translateY(7px); opacity: 0; }
  100% { transform: scale(1.14) translateY(7px); opacity: 0; }
}

/* Otoño: árboles, hojas que caen girando y hojarasca en el suelo */
.cinta-categorias[data-escena="otono"] { background: linear-gradient(180deg, #fbefe1 0%, #fdf6ec 55%, #f6e2c8 100%); }
.esc-hojarasca { left: 0; right: 0; bottom: 0; height: 22px; }
.esc-hojarasca > span { position: absolute; bottom: 0; width: 18px; }

/* Día del Niño: globos y burbujas de jabón que suben */
.cinta-categorias[data-escena="dia-del-nino"] { background: linear-gradient(180deg, #e6f1ff 0%, #f6faff 55%, #fff6dc 100%); }

@media (max-width: 700px) {
  .esc-palmera { width: 60px; }
  .esc-arbol { width: 70px; }
  .esc-telarana { width: 56px; }
  .esc-rama { width: 110px !important; }
  .esc-cruza { zoom: 0.75; }
  .esc-pino { zoom: 0.8; }
  .esc-sol, .esc-luna, .esc-estrella-guia { width: 70px !important; }
}
/* La cinta es pequeña y se anima siempre; si el equipo pide menos movimiento, lo que cruza va más lento. */
@media (prefers-reduced-motion: reduce) {
  .cinta-escena .esc-cruza { animation-duration: calc(var(--dur) * 1.6); }
}

/* ---------- Temas de colores (sin decoración de temporada) ---------- */
/* Neutros */
:root[data-tema="arena"] {
  --accent: #8a6a4f; --accent-ink: #ffffff; --accent-soft: #f3ece4; --surface-2: #f6f1eb; --img-bg: #f5efe8; --border: #ebe2d8;
  --gold: #c8a97e; --gold-text: #7a5c3a; --gold-ink: #2e2116; --text: #2e2420; --muted: #75685e;
  --tema-boton: linear-gradient(135deg, #a0805f, #8a6a4f 55%, #6b4f39);
  --tema-fondo: linear-gradient(180deg, #fbf8f4 0%, #f6efe6 100%);
}
:root[data-tema="grafito"] {
  --accent: #2f3437; --accent-ink: #ffffff; --accent-soft: #eceeef; --surface-2: #f2f3f4; --img-bg: #f1f2f3; --border: #e2e5e7;
  --gold: #b08d57; --gold-text: #7d6237; --gold-ink: #1d1a14; --text: #1f2326; --muted: #687076;
  --tema-boton: linear-gradient(135deg, #4a5157, #2f3437 55%, #1b1e20);
  --tema-fondo: linear-gradient(180deg, #fafafa 0%, #f0f1f2 100%);
}
:root[data-tema="salvia"] {
  --accent: #4f6b58; --accent-ink: #ffffff; --accent-soft: #e8efe9; --surface-2: #eff4f0; --img-bg: #eef3ef; --border: #dfe8e1;
  --gold: #c2a46b; --gold-text: #7a6532; --gold-ink: #232014; --text: #1f2a22; --muted: #66756a;
  --tema-boton: linear-gradient(135deg, #6b8a74, #4f6b58 55%, #3a5142);
  --tema-fondo: linear-gradient(180deg, #f8faf7 0%, #edf3ee 100%);
}
:root[data-tema="moca"] {
  --accent: #6f4e37; --accent-ink: #ffffff; --accent-soft: #f2e9e1; --surface-2: #f6f0ea; --img-bg: #f4ede6; --border: #e8ddd3;
  --gold: #d4a373; --gold-text: #8c5a2b; --gold-ink: #2b1a0e; --text: #2b1f17; --muted: #7a6a5e;
  --tema-boton: linear-gradient(135deg, #8b6447, #6f4e37 55%, #4e3424);
  --tema-fondo: linear-gradient(180deg, #fdf9f5 0%, #f4ebe2 100%);
}
/* Vibrantes */
:root[data-tema="coral"] {
  --accent: #d63a50; --accent-ink: #ffffff; --accent-soft: #ffe8ea; --surface-2: #fff1f2; --img-bg: #fff3f3; --border: #fbdde0;
  --gold: #14b8a6; --gold-text: #0f766e; --gold-ink: #062b27;
  --tema-boton: linear-gradient(135deg, #f0606f, #d63a50 55%, #0f9488);
  --tema-fondo: linear-gradient(135deg, #fff6f5 0%, #f0fbf9 100%);
}
:root[data-tema="electrico"] {
  --accent: #2b50e0; --accent-ink: #ffffff; --accent-soft: #e6ebff; --surface-2: #eef1ff; --img-bg: #f0f3ff; --border: #dde3fb;
  --gold: #a3e635; --gold-text: #4d7c0f; --gold-ink: #1a2e05;
  --tema-boton: linear-gradient(135deg, #4f6ff0, #2b50e0 55%, #1b34a6);
  --tema-fondo: linear-gradient(135deg, #f4f6ff 0%, #f6fde9 100%);
}
:root[data-tema="fucsia"] {
  --accent: #c0267a; --accent-ink: #ffffff; --accent-soft: #fde6f2; --surface-2: #fdf0f7; --img-bg: #fdf2f8; --border: #f8dbea;
  --gold: #fb923c; --gold-text: #c2410c; --gold-ink: #2b1103;
  --tema-boton: linear-gradient(135deg, #e0409a, #c0267a 55%, #e86a1f);
  --tema-fondo: linear-gradient(135deg, #fff4fa 0%, #fff6ee 100%);
}
:root[data-tema="tropical"] {
  --accent: #0f8a5f; --accent-ink: #ffffff; --accent-soft: #e2f6ec; --surface-2: #edfaf3; --img-bg: #effaf4; --border: #d6efe2;
  --gold: #facc15; --gold-text: #a16207; --gold-ink: #422006;
  --tema-boton: linear-gradient(135deg, #18a874, #0f8a5f 55%, #0b6b49);
  --tema-fondo: linear-gradient(135deg, #f1fbf6 0%, #fffbe8 100%);
}
:root[data-tema="coral"] .barra-aviso { background: linear-gradient(90deg, #d63a50, #f0606f 55%, #0f9488); }
:root[data-tema="electrico"] .barra-aviso { background: linear-gradient(90deg, #1b34a6, #2b50e0 60%, #4d7c0f); }
:root[data-tema="fucsia"] .barra-aviso { background: linear-gradient(90deg, #c0267a, #e0409a 55%, #e86a1f); }
:root[data-tema="tropical"] .barra-aviso { background: linear-gradient(90deg, #0b6b49, #0f8a5f 60%, #a16207); }

/* ---------- Más temas de temporada ---------- */
:root[data-tema="ano-nuevo"] {
  --accent: #1e2a5a; --accent-ink: #ffffff; --accent-soft: #e7e9f6; --surface-2: #f0f1f9; --img-bg: #f1f2fa;
  --gold: #d4af37; --gold-text: #8a6d12; --gold-ink: #1b1505;
  --tema-boton: linear-gradient(135deg, #2f3f80, #1e2a5a 55%, #0f1636);
  --tema-fondo: linear-gradient(180deg, #f5f6fc 0%, #fbf7ea 100%);
}
:root[data-tema="ano-nuevo"] .barra-aviso { background: linear-gradient(90deg, #0f1636, #1e2a5a 55%, #8a6d12); }
:root[data-tema="primavera"] {
  --accent: #2f855a; --accent-ink: #ffffff; --accent-soft: #e6f4ea; --surface-2: #eef8f1; --img-bg: #f0f8f2;
  --gold: #f497b6; --gold-text: #b83268; --gold-ink: #3a0a1c;
  --tema-boton: linear-gradient(135deg, #48a774, #2f855a 55%, #22663f);
  --tema-fondo: linear-gradient(180deg, #f3faf5 0%, #fff4f8 100%);
}
:root[data-tema="primavera"] .barra-aviso { background: linear-gradient(90deg, #22663f, #2f855a 55%, #d6457f); }
:root[data-tema="otono"] {
  --accent: #a4441b; --accent-ink: #ffffff; --accent-soft: #fbeadc; --surface-2: #fcf1e6; --img-bg: #fcf3ea;
  --gold: #e9a23b; --gold-text: #8f5a0e; --gold-ink: #2b1703;
  --tema-boton: linear-gradient(135deg, #c55a26, #a4441b 55%, #6e2c10);
  --tema-fondo: linear-gradient(180deg, #fdf6ee 0%, #f8e9d6 100%);
}
:root[data-tema="otono"] .barra-aviso { background: linear-gradient(90deg, #6e2c10, #a4441b 55%, #c98a1a); }
:root[data-tema="dia-del-nino"] {
  --accent: #1d5fd1; --accent-ink: #ffffff; --accent-soft: #e4eeff; --surface-2: #eef4ff; --img-bg: #f0f5ff;
  --gold: #facc15; --gold-text: #a16207; --gold-ink: #422006;
  --tema-boton: linear-gradient(135deg, #3b7bf0, #1d5fd1 55%, #1746a0);
  --tema-fondo: linear-gradient(180deg, #f2f7ff 0%, #fffbea 100%);
}
:root[data-tema="dia-del-nino"] .barra-aviso { background: linear-gradient(90deg, #1746a0, #1d5fd1 50%, #e11d74); }

/* ---------- Catálogo compacto: más productos por fila y cada tarjeta completa a la vista ---------- */
/* (solo las tarjetas del catálogo; el detalle del producto mantiene su tamaño) */
#productos.grid { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 18px 14px; }
#productos .card { padding: 7px; border-radius: 16px; }
#productos .card:hover { transform: translateY(-3px); }
#productos .card__img { aspect-ratio: 1 / 1; border-radius: 11px; }
#productos .fav { top: 8px; right: 8px; width: 32px; height: 32px; }
#productos .fav svg { width: 16px; height: 16px; }
#productos .etiquetas { top: 8px; left: 8px; gap: 4px; }
#productos .card__img .etiquetas { right: 46px; }
#productos .etiqueta { padding: 3px 7px; font-size: 0.6rem; }
#productos .card__body { padding: 8px 3px 2px; gap: 2px; }
#productos .card__cat { font-size: 0.58rem; letter-spacing: 0.12em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#productos .card__nombre { font-size: 0.85rem; line-height: 1.25; -webkit-line-clamp: 1; }
#productos .precio { font-size: 0.98rem; }
#productos .precio s { font-size: 0.72rem; margin-left: 5px; }
#productos .precio-bs { font-size: 0.68rem; }
#productos .opcion { margin-block: 3px 0; }
#productos .opcion__titulo { font-size: 0.68rem; }
#productos .colores { gap: 6px; margin-top: 3px; }
#productos .swatch { width: 19px; height: 19px; }
/* Tallas sin título en la tarjeta (los botones ya lo dicen) y más pequeñas. */
#productos .opcion:has(.tallas) .opcion__titulo { display: none; }
#productos .tallas { gap: 4px; margin-top: 4px; }
#productos .talla { min-width: 30px; padding: 3px 6px; font-size: 0.7rem; border-radius: 8px; }
#productos .acciones { padding-top: 6px; margin-top: auto; }
#productos .acciones .btn { padding: 8px 6px; font-size: 0.8rem; gap: 6px; white-space: nowrap; }
#productos .btn__extra { display: none; }
#productos .btn--agregar svg[aria-hidden="true"] { width: 16px; height: 16px; }
#productos .aviso { font-size: 0.68rem; }
@media (max-width: 700px) {
  #productos.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  #productos .card { padding: 6px; }
}
/* Ícono del carrito sobre la foto de cada tarjeta (en el teléfono, donde la tarjeta no lleva el botón "Agregar"). */
.card__agregar { display: none; }
@media (max-width: 700px) {
  #productos .card__agregar {
    position: absolute; right: 6px; bottom: 6px; z-index: 2; width: 32px; height: 32px; border-radius: 50%;
    display: grid; place-items: center; padding: 0; cursor: pointer; color: var(--accent-ink, #fff);
    background: var(--tema-boton, var(--accent)); border: 2px solid #ffffff;
    box-shadow: 0 4px 12px rgba(42, 15, 85, 0.35); transition: transform 0.2s;
  }
  #productos .card__agregar:active { transform: scale(0.88); }
  /* Abajo a la derecha de la tarjeta, junto al precio (el precio deja espacio para el botón). */
  #productos .card { position: relative; }
  #productos .card .precio-bloque { padding-right: 34px; }
  #productos .card__agregar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  #productos .card__agregar svg.icono-tema { width: 21px; height: 21px; stroke: none; }
}
/* Primera fila completa al llegar al catálogo: barra de filtros más delgada y tarjeta un poco más baja. */
#catalogo { padding-top: 6px; scroll-margin-top: 168px; }
.toolbar { margin-block: 0 12px; padding: 6px 6px 6px 18px; }
.toolbar select { padding-block: 7px; }
.check { padding-block: 6px; }
#productos .card__img { aspect-ratio: 6 / 5; }
#productos .opcion:has(.colores) .opcion__titulo { display: none; }
@media (max-width: 700px) {
  #catalogo { scroll-margin-top: 206px; }
  #productos .card__img { aspect-ratio: 1 / 1; }
}

/* ---------- Pantallas grandes: la tienda usa más ancho y el carrusel no ocupa toda la pantalla ---------- */
@media (min-width: 1440px) {
  :root { --ancho-max: 1480px; }
  .hero { padding-block: 30px 18px; }
  .hero__top { margin-bottom: 18px; }
  .hero__titulo { font-size: clamp(3rem, 8vh, 4.6rem); }
  /* Fotos del carrusel según el alto de la pantalla, para ver también el inicio del catálogo. */
  .slide { flex-basis: clamp(240px, 30vh, 340px); }
}
@media (min-width: 1800px) {
  :root { --ancho-max: 1720px; }
  #productos.grid { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 22px 16px; }
}
@media (min-width: 2400px) {
  :root { --ancho-max: 2100px; }
  html { font-size: 112.5%; }
}
/* ---------- Carrusel de destacados con vida: fotos que respiran, ola suave, brillo e info del producto ---------- */
.slide {
  /* Ola: cada foto sube y baja a su ritmo (translate no choca con el transform del hover). */
  animation: slide-ola 5.5s ease-in-out infinite alternate;
  animation-delay: calc(var(--i, 0) * -0.9s);
  box-shadow: 0 18px 34px -20px rgba(30, 10, 60, 0.55);
}
.slide:nth-child(even) { margin-top: 18px; }
.carrusel__pista { padding-block: 6px 36px; }
/* Efecto Ken Burns: la foto se acerca y se desplaza muy despacio. */
.slide img {
  animation: slide-zoom 16s ease-in-out infinite alternate;
  animation-delay: calc(var(--i, 0) * -2.3s);
  transform-origin: var(--origen, 50% 40%);
}
.slide:nth-child(3n + 1) { --origen: 30% 30%; }
.slide:nth-child(3n + 2) { --origen: 70% 40%; }
.slide:hover img { animation-play-state: paused; }
/* Brillo que cruza cada foto de vez en cuando. */
.slide::before {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -70%; width: 45%; z-index: 2; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-18deg); animation: slide-brillo 7s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 0.85s);
}
.slide::after { opacity: 1; background: linear-gradient(to top, rgba(20, 8, 38, 0.62), rgba(20, 8, 38, 0.12) 38%, transparent 55%); }
.slide__insignia {
  position: absolute; top: 12px; left: 12px; z-index: 3; padding: 5px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); color: var(--accent); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.5); backdrop-filter: blur(6px);
}
.slide__insignia--oferta { background: #e11d48; color: #fff; animation: slide-latido 1.6s ease-in-out infinite; }
.slide__info {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3; display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px; border-radius: 14px; text-align: left; color: #fff;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.22); backdrop-filter: blur(10px);
  transform: translateY(0); transition: transform 0.4s var(--ease), background 0.3s;
}
.slide:hover .slide__info { transform: translateY(-4px); background: rgba(255, 255, 255, 0.22); }
.slide__nombre { font-weight: 700; font-size: 0.9rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4); }
.slide__precio { font-weight: 900; font-size: 1.05rem; color: #ffe08a; font-variant-numeric: tabular-nums; }
.slide__precio s { font-size: 0.75rem; font-weight: 600; color: rgba(255, 255, 255, 0.7); margin-left: 4px; }
@keyframes slide-ola { from { translate: 0 0; } to { translate: 0 -10px; } }
@keyframes slide-zoom { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
@keyframes slide-brillo { 0%, 78% { left: -70%; } 100% { left: 130%; } }
@keyframes slide-latido { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@media (max-width: 700px) {
  .slide:nth-child(even) { margin-top: 10px; }
  .slide__nombre { font-size: 0.82rem; }
  .slide__precio { font-size: 0.95rem; }
}
/* Marca de agua del carrusel: logo de la tienda + descuento por pago en divisas (sin frases).
   Cada foto la lleva en otra esquina (slide__marca--arriba-der, --abajo-izq, --abajo-der, --arriba-izq). */
.slide__marca {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 13px 5px 5px; border-radius: 999px; color: #fff;
  background: linear-gradient(135deg, rgba(24, 10, 46, 0.78), rgba(76, 29, 149, 0.62));
  border: 1px solid rgba(255, 224, 138, 0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.75); animation: slide-marca 3.2s ease-in-out infinite alternate;
}
.slide__marca--arriba-der { top: 12px; right: 12px; }
.slide__marca--arriba-izq { top: 12px; left: 12px; }
.slide__marca--abajo-izq { bottom: 14px; left: 12px; }
.slide__marca--abajo-der { bottom: 14px; right: 12px; }
.slide__marca--solo-logo { padding: 5px; }
.slide__marca-logo { width: 30px !important; height: 30px !important; padding: 4px; border-radius: 50%; background: #fff; object-fit: contain; animation: none !important; transform: none !important; }
.slide__marca-texto { display: flex; flex-direction: column; gap: 2px; line-height: 1; text-align: left; }
.slide__marca-texto strong {
  font-family: var(--font-display); font-size: 1.08rem; font-weight: 700; color: #ffe08a; letter-spacing: -0.01em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.slide__marca-texto small { font-family: var(--font-body); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.01em; color: #fff; white-space: nowrap; }
.slide__info { padding: 8px 12px; }
.slide__nombre { font-size: 0.86rem; }
@keyframes slide-marca { from { box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.75), 0 0 0 0 rgba(255, 224, 138, 0); } to { box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.75), 0 0 0 5px rgba(255, 224, 138, 0.2); } }
@media (max-width: 700px) {
  .slide__marca { gap: 6px; padding: 4px 10px 4px 4px; }
  .slide__marca-logo { width: 26px !important; height: 26px !important; }
  .slide__marca-texto strong { font-size: 0.95rem; }
  .slide__marca-texto small { font-size: 0.64rem; }
}

/* Pie de página: "by JB". */
.footer__firma { font-weight: 800; letter-spacing: 0.04em; background: linear-gradient(90deg, var(--gold, #d4a017), #ffe08a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Avisos de divisas y delivery en la ficha del producto y en el carrito. */
.aviso-promo {
  display: flex; flex-direction: column; gap: 6px; margin: 10px 0 4px; padding: 10px 12px; border-radius: 14px;
  background: linear-gradient(120deg, color-mix(in srgb, #16a34a 10%, var(--bg)), color-mix(in srgb, var(--accent) 8%, var(--bg)));
  border: 1px solid color-mix(in srgb, #16a34a 25%, var(--border));
}
.aviso-promo--carrito { margin: 10px 0 2px; background: color-mix(in srgb, var(--accent) 9%, var(--bg)); border-color: color-mix(in srgb, var(--accent) 22%, var(--border)); }
.aviso-promo__fila { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 0.82rem; line-height: 1.3; color: var(--text); }
.aviso-promo__precio { color: #15803d; font-size: 0.95rem; }
svg.aviso-promo__icono[aria-hidden="true"] { flex-shrink: 0; width: 26px; height: 26px; stroke: none; fill: none; }
svg.aviso-promo__icono--moto[aria-hidden="true"] { width: 30px; color: var(--accent); animation: aviso-moto 0.5s ease-in-out infinite alternate; }
.aviso-promo__icono--moneda { animation: aviso-moneda 2.4s ease-in-out infinite; }
.aviso-promo__viento { animation: aviso-viento 0.8s linear infinite; }
@keyframes aviso-moto { from { transform: translateY(0); } to { transform: translateY(-1.5px); } }
@keyframes aviso-moneda { 0%, 60%, 100% { transform: rotateY(0); } 80% { transform: rotateY(180deg); } }
@keyframes aviso-viento { from { opacity: 1; transform: translateX(2px); } to { opacity: 0; transform: translateX(-3px); } }

/* ---------- Tienda 100% virtual ---------- */
.chip-aviso--virtual { background: rgba(255, 255, 255, 0.24); }
.chip-virtual__bolsa { animation: chip-bolsa 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes chip-bolsa { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.5px) scale(1.08); } }
.virtual { padding-block: 10px 46px; }
.virtual__caja {
  position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); gap: 28px; align-items: center;
  padding: 30px; border-radius: 26px; color: #fff;
  background: radial-gradient(90% 120% at 100% 0%, rgba(255, 255, 255, 0.14), transparent 60%), linear-gradient(130deg, #0f3b66, var(--accent) 60%, color-mix(in srgb, var(--accent) 60%, #db2777));
  box-shadow: 0 24px 50px -30px rgba(20, 8, 40, 0.75);
}
.virtual__caja::before {
  /* Puntos de "conexión" que se mueven despacio al fondo. */
  content: ""; position: absolute; inset: -50%; z-index: -1; opacity: 0.25;
  background-image: radial-gradient(rgba(255, 255, 255, 0.7) 1.2px, transparent 1.6px); background-size: 26px 26px;
  animation: virtual-red 40s linear infinite;
}
@keyframes virtual-red { to { transform: translate(26px, 26px) rotate(3deg); } }
.virtual__sello {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.3); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
}
.virtual__punto { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); animation: virtual-vivo 1.8s ease-out infinite; }
@keyframes virtual-vivo { to { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); } }
.virtual__intro h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.08; margin: 12px 0 8px; letter-spacing: -0.02em; }
.virtual__intro p { margin: 0; color: rgba(255, 255, 255, 0.86); font-size: 0.92rem; line-height: 1.5; }
.virtual__pasos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: paso; }
.virtual__paso {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 16px 16px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(6px);
  animation: virtual-paso 4.5s ease-in-out infinite; animation-delay: calc(var(--n) * 0.6s);
}
.virtual__paso::before {
  counter-increment: paso; content: counter(paso); position: absolute; top: 12px; right: 14px;
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: rgba(255, 255, 255, 0.22);
}
.virtual__paso strong { font-size: 0.98rem; }
.virtual__paso > span:last-child { font-size: 0.8rem; color: rgba(255, 255, 255, 0.82); line-height: 1.4; }
.virtual__icono { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: #fff; color: var(--accent); box-shadow: 0 10px 20px -12px rgba(0, 0, 0, 0.6); }
.virtual__icono svg[aria-hidden="true"] { width: 22px; height: 22px; stroke-width: 2; }
@keyframes virtual-paso { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.footer__virtual { margin-bottom: 6px !important; font-weight: 700; color: rgba(255, 255, 255, 0.92); letter-spacing: 0.02em; }
.nota-virtual {
  display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; padding: 10px 12px; border-radius: 12px;
  background: var(--accent-soft); color: var(--text); font-size: 0.82rem; line-height: 1.35;
}
.nota-virtual svg[aria-hidden="true"] { flex-shrink: 0; width: 22px; height: 22px; color: var(--accent); }
@media (max-width: 860px) {
  .virtual__caja { grid-template-columns: 1fr; padding: 22px; gap: 18px; }
  .virtual__pasos { grid-template-columns: 1fr; }
}

/* Algoritmo de impulso: etiqueta de los productos que se muestran primero para que se vendan. */
.etiqueta--impulso { background: linear-gradient(90deg, #7c3aed, #db2777); color: #fff; }
/* ---------- Pantalla de inicio de la app instalada (logo en SVG: nítido en cualquier pantalla) ---------- */
/* Continúa la pantalla que muestra Android al abrir la app (fondo blanco y el ícono icono-maskable-1024.png,
   la P con el nombre): la misma imagen en el centro, sin animación, para que no se note el cambio; el lema y la
   barra de carga aparecen debajo. */
.splash { position: fixed; inset: 0; z-index: 10000; background: #ffffff; color: #1e1b2e; transition: opacity 0.45s ease, visibility 0.45s; }
.splash[hidden] { display: none; }
.splash--fuera { opacity: 0; visibility: hidden; }
.splash__logo { position: absolute; left: 50%; top: 50%; width: min(118vw, 520px); max-width: none; height: auto; transform: translate(-50%, -50%); }
.splash__textos { position: absolute; left: 0; right: 0; top: calc(50% + min(118vw, 520px) * 0.24); display: flex; flex-direction: column; align-items: center; gap: 6px; animation: splash-texto 0.5s ease-out 0.15s both; }
.splash__lema { font-size: 0.85rem; font-weight: 600; color: #6b6880; letter-spacing: 0.04em; }
.splash__carga { width: 44px; height: 4px; margin-top: 16px; border-radius: 99px; background: linear-gradient(90deg, #5b3fd0, #e11d74, #f97316, #5b3fd0); background-size: 200% 100%; animation: splash-carga 1.1s linear infinite; }
@keyframes splash-texto { from { transform: translateY(10px); opacity: 0; } }
@keyframes splash-carga { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .splash__textos, .splash__carga { animation: none; } }

/* ---------- Encabezado en el teléfono ----------
   Arriba solo el mensaje del tema. Debajo, una cinta con el delivery que se mueve (arriba del logo).
   La tasa BCV encima del carrito, "Tienda 100% virtual" debajo del logo y las redes al lado de "Seguir pedido".
   En la computadora todo sigue en la barra de arriba (estas piezas no se ven). */
.cinta-delivery, .movil-virtual, .movil-tasa, .movil-redes { display: none; }
.header__seguir, .header__compra { display: contents; }
@media (max-width: 700px) {
  .barra-aviso .chip-aviso, .barra-aviso__tasa, .barra-aviso__grupo + .barra-aviso__grupo { display: none !important; }
  .barra-aviso__inner { flex-direction: row; justify-content: center; padding-block: 6px; }
  .barra-aviso__grupo { justify-content: center; }
  .barra-aviso__mensaje { text-align: center; font-size: 0.8rem; letter-spacing: 0.01em; }

  .cinta-delivery:not([hidden]) {
    display: block; overflow: hidden; white-space: nowrap; color: #fff; font-size: 0.74rem; font-weight: 800;
    background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, var(--gold)), var(--accent));
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  }
  .cinta-delivery__pista { display: inline-flex; width: max-content; padding-block: 5px; animation: cinta-delivery 22s linear infinite; }
  .cinta-delivery__grupo { display: inline-flex; align-items: center; }
  .cinta-delivery__item { display: inline-flex; align-items: center; gap: 6px; padding-inline: 14px; }
  .cinta-delivery__item svg.moto { width: 26px; height: 18px; overflow: visible; stroke: currentColor; fill: none; stroke-width: 2; animation: moto-ruta 2.4s ease-in-out infinite; }
  .cinta-delivery__sep { color: #ffe08a; font-size: 0.7rem; }

  .header__inner {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 10px; row-gap: 6px;
    grid-template-areas: "tasa tasa" "logo compra" "virtual seguir" "buscar buscar";
  }
  .logo { grid-area: logo; min-width: 0; }
  .search { grid-area: buscar; width: 100%; margin-inline: 0; }
  .header__actions { display: contents; }
  .header__compra { grid-area: compra; display: flex; align-items: center; gap: 8px; justify-self: end; }
  .header__seguir { grid-area: seguir; display: flex; align-items: center; gap: 6px; justify-self: end; }
  .movil-tasa {
    grid-area: tasa; display: block; justify-self: end; text-align: right; font-size: 0.68rem; font-weight: 800;
    color: #15803d; font-variant-numeric: tabular-nums; line-height: 1.2;
    padding: 3px 10px; border-radius: 999px; background: #dcfce7; border: 1px solid #86efac;
  }
  /* Sin la tasa todavía: guarda su lugar (así el encabezado no salta cuando llega). */
  .movil-tasa:empty { visibility: hidden; min-height: 1.75em; }
  .movil-virtual {
    grid-area: virtual; justify-self: start; display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px 4px 7px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; white-space: nowrap;
    color: var(--accent); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  }
  .movil-virtual svg[aria-hidden="true"] { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
  .movil-redes:not([hidden]) { display: inline-flex; align-items: center; gap: 6px; }
  .red-social-movil {
    display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--accent);
    background: var(--surface); border: 1px solid var(--border); text-decoration: none;
  }
  .red-social-movil svg[aria-hidden="true"] { width: 16px; height: 16px; }
  .red-social-movil:active { transform: scale(0.94); }
}
@keyframes cinta-delivery { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Teléfono: barra corta al bajar y categorías + marcas en una sola fila ----------
   El encabezado completo ya no se queda pegado arriba en el teléfono (ocupaba media pantalla): al bajar aparece
   la barra corta (#barra-movil) con la cinta del delivery, el nombre de la tienda, ubicar envío y el carrito. */
.barra-movil { display: none; }
@media (max-width: 700px) {
  .header { position: relative; top: auto; }
  .barra-movil {
    display: block; position: fixed; top: 0; left: 0; right: 0; z-index: 40; padding-top: env(safe-area-inset-top, 0px);
    background: var(--glass); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid var(--border); box-shadow: 0 10px 24px -18px rgba(31, 16, 51, 0.55);
    transform: translateY(-110%); transition: transform 0.28s cubic-bezier(.2, .7, .2, 1);
  }
  body.barra-movil-visible .barra-movil { transform: none; }
  .barra-movil__fila { display: flex; align-items: center; gap: 8px; padding-block: 6px; }
  .barra-movil__logo { flex: 1; min-width: 0; border: 0; padding: 0; cursor: pointer; text-align: left; font-size: 0.98rem; }
  .barra-movil__logo .logo__img { width: 32px; height: 32px; }
  .barra-movil__logo .logo__texto > span { overflow: hidden; text-overflow: ellipsis; }
  .barra-movil .seguir-btn { width: 38px; height: 38px; flex: none; }
  .barra-movil .carrito-btn { height: 38px; padding: 0 12px 0 10px; flex: none; }
  .barra-movil .carrito-btn__texto { display: inline; font-size: 0.78rem; }
  .barra-movil .carrito-btn__texto:empty { display: none; }
  .barra-movil .cinta-delivery__pista { padding-block: 4px; }
  #catalogo { scroll-margin-top: 96px; }

  /* Categorías y marcas en una sola fila que se desliza de lado; subcategorías debajo, sin moverse con la fila. */
  .cinta-categorias > .container {
    display: grid; grid-template-columns: max-content max-content; align-items: center; column-gap: 8px;
    overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .cinta-categorias > .container::-webkit-scrollbar { display: none; }
  .cinta-categorias .categorias { overflow: visible; padding: 4px 2px; }
  .cinta-categorias .marcas { overflow: visible; padding: 4px 4px 4px 10px; align-self: stretch; align-items: center; }
  .cinta-categorias .subcategorias {
    grid-column: 1 / -1; grid-row: 2; position: sticky; left: 0; margin: 2px 0 8px;
    width: calc(100vw - 2 * max(var(--gutter), 2.5vw)); box-sizing: border-box;
  }
  .cinta-categorias[data-escena] { padding-bottom: 2px; }
  .chip { width: 60px; font-size: 0.68rem; gap: 3px; }
  .chip__img { width: 44px; height: 44px; }
  .chip__img svg { width: 36px !important; height: 36px !important; }
  .marca { width: 40px; height: 40px; }
}

/* ---------- Teléfono: encabezado fijo corto, menú lateral y 3 cuadros por fila ----------
   Arriba siempre: la cinta del delivery, ☰ menú, la tienda, ubicar envío, el carrito y la tasa BCV.
   Búsqueda, categorías, marcas, favoritos y redes van en el menú lateral (#panel-menu).
   Catálogo: 3 cuadros por fila; los flyers y la publicidad ocupan un cuadro cada uno, como una prenda.
   (Con #productos para ganarle al "Catálogo compacto" de arriba.) */
.btn-menu { display: none; }
@media (max-width: 700px) {
  /* Encabezado fijo (la barra corta al bajar ya no hace falta). */
  .header { position: sticky; top: env(safe-area-inset-top, 0px); }
  .barra-movil { display: none !important; }
  .header__inner {
    grid-template-columns: auto minmax(0, 1fr) auto auto; column-gap: 8px; row-gap: 4px; padding-block: 6px 6px;
    grid-template-areas: "menu logo seguir compra" "tasa tasa tasa tasa";
  }
  .btn-menu {
    grid-area: menu; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; cursor: pointer;
    border: 1px solid var(--border); background: var(--surface); color: var(--accent);
  }
  .btn-menu svg[aria-hidden="true"] { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
  .logo { font-size: 0.98rem; }
  .logo__img { width: 34px; height: 34px; }
  .movil-virtual, .movil-redes, #btn-favoritos { display: none !important; }
  .movil-tasa { justify-self: center; text-align: center; }
  .header__seguir .seguir-btn { width: 40px; height: 40px; }
  .header__compra .carrito-btn { height: 40px; }
  #catalogo { scroll-margin-top: 130px; }

  /* Menú lateral (se abre desde la izquierda). */
  #panel-menu { justify-content: flex-start; padding: 8px; }
  .drawer--menu { max-width: 360px; animation: deslizar-izq 0.35s var(--ease); }
  @keyframes deslizar-izq { from { transform: translateX(calc(-100% - 12px)); } to { transform: none; } }
  .menu__cuerpo { flex: 1; overflow-y: auto; padding: 4px 16px 16px; display: grid; gap: 12px; align-content: start; }
  .menu__titulo { margin: 4px 0 -4px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
  #menu-slot-buscar .search { display: block; width: 100%; max-width: none; margin: 0; }
  #menu-slot-categorias .cinta-categorias { border-radius: 16px; border: 1px solid var(--border); padding: 6px 2px 4px; }
  #menu-slot-categorias .cinta-categorias > .container { display: block; overflow: visible; padding-inline: 8px; }
  #menu-slot-categorias .categorias { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 4px; overflow: visible; padding: 6px 0; }
  #menu-slot-categorias .chip { width: auto; font-size: 0.68rem; }
  #menu-slot-categorias .chip__img { width: 48px; height: 48px; }
  #menu-slot-categorias .subcategorias { position: static; width: auto; flex-wrap: wrap; overflow: visible; margin: 4px 0 6px; }
  #menu-slot-categorias .marcas {
    display: flex; flex-wrap: wrap; overflow: visible; gap: 8px; padding: 10px 0 6px; border-left: 0;
    border-top: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  }
  .menu__acciones { display: grid; gap: 6px; }
  .menu__fila {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; margin: 0; border-radius: 12px; cursor: pointer;
    border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 700; font-size: 0.86rem; text-align: left;
  }
  .menu__fila span { flex: 1; }
  .menu__fila b { color: var(--accent); }
  .menu__fila--info { cursor: default; background: var(--accent-soft); border-color: transparent; font-weight: 600; font-size: 0.78rem; }
  .menu__redes { display: flex; flex-wrap: wrap; gap: 8px; }
  .menu__redes .red-social { padding: 8px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 0.8rem; }

  /* Sin carrusel ni franja de flyers: los flyers van entre las prendas. */
  .hero { display: none !important; }
  #flyers { display: none !important; }

  /* 3 cuadros por fila. */
  #productos.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; grid-auto-flow: row; }
  #productos .card { padding: 4px; border-radius: 12px; }
  #productos .card__img { border-radius: 9px; }
  #productos .card__body { padding: 6px 2px 3px; gap: 1px; }
  #productos .card__body .opcion, #productos .card__body .acciones, #productos .card__body .aviso, #productos .card__cat { display: none !important; }
  #productos .card__nombre {
    font-size: 0.74rem; line-height: 1.2; margin: 0; overflow: hidden;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; cursor: pointer;
  }
  #productos .precio { font-size: 0.88rem; }
  #productos .precio s { display: block; font-size: 0.62rem; margin: 0; }
  #productos .precio-bs { font-size: 0.62rem; }
  #productos .fav { width: 26px; height: 26px; top: 5px; right: 5px; }
  #productos .fav svg { width: 14px; height: 14px; }
  #productos .etiquetas { top: 5px; left: 5px; gap: 2px; }
  #productos .card__img .etiquetas { right: 32px; }
  #productos .etiqueta { font-size: 0.52rem; padding: 2px 5px; }

  /* Tarjetas de promoción y publicidad: un cuadro, con lo esencial. */
  #productos.grid > .promo-tile { grid-column: auto; grid-row: auto; min-height: 0; padding: 7px; border-radius: 12px; gap: 1px; }
  #productos.grid > .promo-tile .promo-tile__arte { inset: 4px 0 44% 0; }
  #productos.grid > .promo-tile .promo-tile__kicker, #productos.grid > .promo-tile .promo-tile__texto { display: none; }
  #productos.grid > .promo-tile .promo-tile__titulo { font-size: 0.8rem; margin: 0; }
  #productos.grid > .promo-tile .promo-tile__cta { margin-top: 4px; padding: 4px 8px; font-size: 0.6rem; }
  #productos.grid > .pb-tarjeta .pb-datos, #productos.grid > .pb-tarjeta .pb-red, #productos.grid > .pb-tarjeta .pb-kicker { display: none; }
  #productos.grid > .pb-tarjeta .pb-anuncio { top: 4px; right: 4px; font-size: 0.42rem; padding: 1px 5px; }
  #productos.grid > .pb-tarjeta .pb-cabecera { gap: 5px; margin: 0; }
  #productos.grid > .pb-tarjeta .pb-logo-anillo { padding: 2px; }
  #productos.grid > .pb-tarjeta .pb-logo { width: 24px; height: 24px; font-size: 0.6rem; }
  #productos.grid > .pb-tarjeta .pb-nombre, #productos.grid > .pb-tarjeta .pb-nombre.pb-nombre--largo { font-size: 0.72rem; -webkit-line-clamp: 2; }
  #productos.grid > .pb-tarjeta .pb-contactos { margin-top: 4px; }
  #productos.grid > .pb-tarjeta .pb-boton { padding: 4px 7px; font-size: 0.58rem; gap: 3px; }
  #productos.grid > .pb-tarjeta .pb-boton svg.pb-icono[aria-hidden="true"] { width: 11px; height: 11px; }

  /* Flyers: un cuadro, dibujo arriba y título con su botón abajo. */
  #productos.grid > .flyer { grid-column: auto; display: flex; flex-direction: column; min-height: 0; border-radius: 12px; }
  #productos.grid > .flyer .flyer__arte { order: -1; flex: 1 1 auto; min-height: 84px; }
  #productos.grid > .flyer .flyer__arte .flyer__svg { left: -40%; width: 140%; }
  #productos.grid > .flyer .flyer__texto { padding: 2px 7px 8px; gap: 2px; }
  #productos.grid > .flyer .flyer__kicker, #productos.grid > .flyer .flyer__sub, #productos.grid > .flyer .flyer__fotos { display: none; }
  #productos.grid > .flyer .flyer__titulo { font-size: 0.76rem; line-height: 1.1; }
  #productos.grid > .flyer .flyer__cta { margin-top: 3px; padding: 4px 8px; font-size: 0.58rem; }
  #productos.grid > .flyer .flyer__emoji { font-size: 20px; }
  #productos.grid > .flyer .flyer__red { padding: 3px 7px; font-size: 0.56rem; }
}

/* ---------- Teléfono: buscador fijo debajo de la tasa, menú con "Categorías" y "Marcas", grupos por subcategoría ---------- */
.grupo-titulo { display: none; }
@media (max-width: 700px) {
  .header__inner { grid-template-areas: "menu logo seguir compra" "tasa tasa tasa tasa" "buscar buscar buscar buscar"; }
  .header .search { grid-area: buscar; display: block; width: 100%; max-width: none; margin: 0; }
  .header .search input { height: 38px; font-size: 0.86rem; }
  #catalogo { scroll-margin-top: 176px; }
  /* Menú: título "Categorías" sobre las categorías y "Marcas" sobre las marcas; sin subcategorías (el catálogo las agrupa). */
  #menu-slot-categorias .categorias::before, #menu-slot-categorias .marcas::before {
    grid-column: 1 / -1; flex-basis: 100%; display: block; margin: 2px 0 2px 2px;
    font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
  }
  #menu-slot-categorias .categorias::before { content: "Categorías"; }
  #menu-slot-categorias .marcas::before { content: "Marcas"; }
  #menu-slot-categorias .subcategorias { display: none !important; }
  #menu-slot-categorias .marcas { margin-top: 6px; }
  /* Títulos de subcategoría entre los productos agrupados. */
  #productos .grupo-titulo {
    grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin: 10px 2px -2px;
    font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; color: var(--accent); letter-spacing: -0.01em;
  }
  #productos .grupo-titulo::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 35%, transparent), transparent); }
  #productos .grupo-titulo span { font-family: var(--font-body); font-size: 0.7rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
  #productos .grupo-titulo:first-child { margin-top: 0; }
}

/* ---------- Teléfono: "De la tienda a tu puerta" arriba del catálogo, a lo ancho ---------- */
@media (max-width: 700px) {
  #productos.grid > .promo-tile.promo-tile--ancho {
    grid-column: 1 / -1; grid-row: auto; min-height: 150px; padding: 16px 18px; border-radius: 18px; justify-content: center; gap: 3px;
    box-shadow: 0 16px 30px -18px rgba(29, 15, 61, 0.75);
  }
  #productos.grid > .promo-tile.promo-tile--ancho .promo-tile__arte { inset: 4px 2% 4px 44%; }
  #productos.grid > .promo-tile.promo-tile--ancho > :not(.promo-tile__arte) { position: relative; z-index: 1; max-width: 56%; }
  #productos.grid > .promo-tile.promo-tile--ancho .promo-tile__kicker { display: block; font-size: 0.62rem; }
  #productos.grid > .promo-tile.promo-tile--ancho .promo-tile__titulo { font-size: 1.28rem; line-height: 1.05; margin: 2px 0 3px; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); }
  #productos.grid > .promo-tile.promo-tile--ancho .promo-tile__texto { display: block; font-size: 0.74rem; line-height: 1.3; }
}
/* Teléfonos angostos: el nombre de la tienda y la tasa caben en una línea. */
@media (max-width: 380px) {
  .header .logo { font-size: 0.86rem; gap: 6px; }
  .header .logo__img { width: 30px; height: 30px; }
  .movil-tasa { font-size: 0.6rem; padding: 3px 8px; letter-spacing: -0.01em; }
}

/* ---------- Teléfono: la escena del tema también en el encabezado y en el fondo del catálogo ---------- */
[data-escena="verano"] { --escena-fondo: linear-gradient(180deg, #d8f1fa 0%, #eef9fc 55%, #fbf0d9 100%); }
[data-escena="halloween"] { --escena-fondo: linear-gradient(180deg, #e9e0f7 0%, #f4eefb 50%, #fde6d2 100%); }
[data-escena="navidad"] { --escena-fondo: linear-gradient(180deg, #ffd9de 0%, #ffeedd 55%, #fff8ec 100%); }
/* En el encabezado y el catálogo del teléfono (fondo claro) la nieve lleva un borde rojizo suave para verse. */
.header[data-escena="navidad"] .esc-copo, #catalogo[data-escena="navidad"] .esc-copo { box-shadow: 0 0 2px rgba(200, 30, 50, 0.6); }
[data-escena="carnaval"] { --escena-fondo: linear-gradient(180deg, #fbeaf3 0%, #f4eefe 50%, #e8f8f7 100%); }
[data-escena="san-valentin"] { --escena-fondo: linear-gradient(180deg, #fde7ee 0%, #fff3f6 100%); }
[data-escena="dia-de-las-madres"] { --escena-fondo: linear-gradient(180deg, #fbeaf6 0%, #fff4f8 100%); }
[data-escena="primavera"] { --escena-fondo: linear-gradient(180deg, #eaf7ee 0%, #fff6f9 100%); }
[data-escena="black-friday"] { --escena-fondo: linear-gradient(180deg, #fff5c7 0%, #fffbea 100%); }
[data-escena="reyes"] { --escena-fondo: linear-gradient(180deg, #e3e7fa 0%, #f3efff 50%, #fbecd2 100%); }
[data-escena="ano-nuevo"] { --escena-fondo: linear-gradient(180deg, #e4e7f6 0%, #f5f3fb 55%, #fbf5e2 100%); }
[data-escena="otono"] { --escena-fondo: linear-gradient(180deg, #fbefe1 0%, #fdf6ec 55%, #f6e2c8 100%); }
[data-escena="dia-del-nino"] { --escena-fondo: linear-gradient(180deg, #e6f1ff 0%, #f6faff 55%, #fff6dc 100%); }
@media (max-width: 700px) {
  /* Encabezado: fondo del tema y la escena animada detrás de la tienda, la tasa y el buscador. */
  .header[data-escena] { isolation: isolate; overflow: hidden; background: var(--escena-fondo, var(--glass)); }
  .header[data-escena] > :not(.cinta-escena) { position: relative; z-index: 1; }
  .header > .cinta-escena { opacity: 0.9; }
  .header[data-escena] .logo { filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.9)); }
  .header[data-escena="halloween"] .esc-alas { animation-duration: 0.28s; }
  /* Catálogo: el mismo fondo del tema, suave, y piezas que caen o suben por todo el catálogo. */
  #catalogo > .cinta-escena {
    left: calc(50% - 50vw); right: calc(50% - 50vw); z-index: -1; opacity: 0.55;
    background: var(--escena-fondo, transparent);
  }
  #catalogo > .cinta-escena > span:not(.esc-cae):not(.esc-sube):not(.esc-titila) { display: none; }
  #catalogo > .cinta-escena .esc-cae { animation-name: esc-caer-catalogo; animation-duration: calc(var(--dur) * 4); }
}
@keyframes esc-caer-catalogo { to { transform: translate(var(--x), 1800px); } }

/* Carrito: ícono de papelera en vez de la palabra "Quitar". */
.quitar {
  display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted); text-decoration: none;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.15s;
}
.quitar svg[aria-hidden="true"] { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.quitar:hover, .quitar:focus-visible { color: #fff; background: var(--sale, #e11d48); border-color: var(--sale, #e11d48); }
.quitar:active { transform: scale(0.92); }

/* ---------- Paneles laterales suaves: entran y salen deslizándose, sin desenfocar la página ---------- */
#panel-menu, #panel-carrito { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(20, 10, 40, 0.34); animation: fundido 0.22s ease-out; }
.overlay.saliendo { animation: fundido-salir 0.23s ease-in forwards; }
.overlay.saliendo .drawer { animation: carrito-salir 0.23s ease-in forwards; }
@keyframes fundido-salir { to { opacity: 0; } }
@keyframes carrito-salir { to { transform: translateX(calc(100% + 12px)); } }
@media (max-width: 700px) {
  #panel-menu { padding: 0; }
  .drawer--menu {
    /* Toda la pantalla: no se ve la tienda detrás mientras abre ni mientras cargan las fotos. */
    max-width: 100%; height: 100%; border-radius: 0;
    animation: menu-entrar 0.28s cubic-bezier(.2, .8, .2, 1);
    box-shadow: 18px 0 40px -20px rgba(20, 10, 40, 0.55);
  }
  .drawer--menu .drawer__header { padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
  .overlay.saliendo .drawer--menu { animation: menu-salir 0.23s ease-in forwards; }
}
@keyframes menu-entrar { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes menu-salir { to { transform: translateX(-100%); } }

/* ---------- Menú lateral sin destello ----------
   Solo se oscurece el fondo (sin hacer transparente el menú ni redibujar la página) y el menú entra deslizándose,
   ya opaco. El fondo oscuro no deja desplazar la página de atrás; dentro del menú sí se desplaza. */
#panel-menu { animation: oscurecer-fondo 0.24s ease-out; touch-action: none; overscroll-behavior: contain; }
#panel-menu .drawer--menu { touch-action: pan-y; will-change: transform; backface-visibility: hidden; }
#panel-menu .menu__cuerpo { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
#panel-menu .cinta-escena { animation: escena-aparece 0.6s ease-out 0.15s both; }
#panel-menu.saliendo { animation: aclarar-fondo 0.23s ease-in forwards; }
@keyframes oscurecer-fondo { from { background-color: rgba(20, 10, 40, 0); } }
@keyframes aclarar-fondo { to { background-color: rgba(20, 10, 40, 0); } }
@keyframes escena-aparece { from { opacity: 0; } }
/* Teléfono: el menú tapa la tienda desde el primer instante (fondo opaco, sin deslizarse sobre ella); solo su
   contenido aparece suave. Al cerrarlo se desvanece entero. Así nunca se ve la tienda detrás mientras abre. */
@media (max-width: 700px) {
  #panel-menu { background: var(--surface); animation: none; }
  #panel-menu .drawer--menu { animation: menu-aparecer 0.18s ease-out; box-shadow: none; }
  #panel-menu.saliendo { animation: fundido-salir 0.2s ease-in forwards; }
  #panel-menu.saliendo .drawer--menu { animation: none; }
}
@keyframes menu-aparecer { from { opacity: 0; transform: translateY(6px); } }
/* Teléfono: el carrito igual que el menú, a pantalla completa y opaco desde el primer instante (sin destello ni la
   tienda asomándose detrás). Ninguna ventana bloquea la página con overflow (eso la redibujaba entera): el fondo
   de la ventana no deja desplazarla y dentro de la ventana sí se desplaza. */
@media (max-width: 700px) {
  #panel-carrito { padding: 0; background: var(--surface); animation: none; touch-action: none; overscroll-behavior: contain; }
  #panel-carrito .drawer { max-width: 100%; border-radius: 0; box-shadow: none; animation: menu-aparecer 0.18s ease-out; touch-action: pan-y; }
  #panel-carrito .drawer__header { padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
  #panel-carrito .drawer__items { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  #panel-carrito.saliendo { animation: fundido-salir 0.2s ease-in forwards; }
  #panel-carrito.saliendo .drawer { animation: none; }
  /* Pedido y ficha de producto: sin desenfoque (en el teléfono es pesado y parpadea), fondo más oscuro. */
  .overlay:not(#panel-menu):not(#panel-carrito) {
    backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(20, 10, 40, 0.62);
    touch-action: none; overscroll-behavior: contain;
  }
  .overlay .modal { touch-action: pan-y; }
}

/* ---------- Computadora: etiqueta "Categorías" sobre las categorías y "Marcas" sobre las marcas ---------- */
@media (min-width: 701px) {
  .cinta-categorias .categorias, .cinta-categorias .marcas { position: relative; padding-top: 30px; }
  .cinta-categorias .categorias::before, .cinta-categorias .marcas::before {
    position: absolute; top: 6px; left: 2px; display: block; padding: 3px 11px 3px 10px; border-radius: 999px; white-space: nowrap;
    font-size: 0.64rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.3;
    color: var(--accent); background: color-mix(in srgb, var(--surface) 88%, transparent);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent), 0 4px 10px -6px color-mix(in srgb, var(--accent) 60%, transparent);
  }
  .cinta-categorias .categorias::before { content: "Categorías"; }
  .cinta-categorias .marcas::before { content: "Marcas"; left: 14px; }
  .cinta-categorias[data-escena="navidad"] .categorias::before, .cinta-categorias[data-escena="navidad"] .marcas::before {
    color: #c8081f; background: #ffffff; box-shadow: 0 0 0 2px #ffd166, 0 4px 10px -4px rgba(60, 0, 8, 0.55);
  }
  .cinta-categorias[data-escena="navidad"] { padding-top: 22px; }
}
/* Menú lateral del teléfono con la cinta roja de Navidad: títulos en dorado. */
@media (max-width: 700px) {
  #menu-slot-categorias .cinta-categorias[data-escena="navidad"] .categorias::before,
  #menu-slot-categorias .cinta-categorias[data-escena="navidad"] .marcas::before { color: #ffe08a; text-shadow: 0 1px 2px rgba(70, 0, 10, 0.7); }
}
@media (min-width: 701px) {
  /* Que la etiqueta "Marcas" quepa completa aunque haya una sola marca. */
  .cinta-categorias .marcas { min-width: 104px; }
}
/* Navidad: Santa y los renos con un contorno blanco suave para que resalten sobre el cielo rojo. */
[data-escena="navidad"] .esc-cruza svg { filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.95)) drop-shadow(0 3px 4px rgba(60, 0, 8, 0.4)); }

/* =====================================================================================
   Tema de la tienda (por defecto): morado real con dorado, los colores de Prisma Trend.
   Solo cuando no hay tema de temporada ni paleta elegida (sin data-tema).
   ===================================================================================== */
:root:not([data-tema]) {
  --accent: #5b21b6; --accent-soft: #f1e9fd; --gold: #e0b13c; --gold-text: #9a7212; --gold-ink: #2a0a57;
  --bg: #fbf9fe; --border: #ece4f7;
  --tema-boton: linear-gradient(135deg, #7c3aed 0%, #5b21b6 52%, #3b0a75 100%);
  --tema-patron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='110'%3E%3Cpath d='M24 14l2.2 7.8L34 24l-7.8 2.2L24 34l-2.2-7.8L14 24l7.8-2.2z' fill='%23e0b13c' fill-opacity='.55'/%3E%3Cpath d='M80 70l1.4 4.6L86 76l-4.6 1.4L80 82l-1.4-4.6L74 76l4.6-1.4z' fill='%237c3aed' fill-opacity='.35'/%3E%3Ccircle cx='86' cy='22' r='1.6' fill='%23e0b13c' fill-opacity='.6'/%3E%3Ccircle cx='30' cy='90' r='1.4' fill='%237c3aed' fill-opacity='.4'/%3E%3C/svg%3E");
  --tema-patron-tam: 110px;
}
:root:not([data-tema]) body {
  background: radial-gradient(900px 420px at 100% 0%, rgba(224, 177, 60, 0.09), transparent 60%),
    radial-gradient(900px 500px at 0% 30%, rgba(124, 58, 237, 0.07), transparent 60%), linear-gradient(180deg, #fbf8ff, #fdfbf6) fixed;
}
/* Barra superior en morado profundo con filo dorado. */
:root:not([data-tema]) .barra-aviso { background: linear-gradient(90deg, #2e0a5c, #5b21b6 50%, #2e0a5c); border-bottom: 2px solid var(--gold); }
:root:not([data-tema]) .header { border-bottom-color: color-mix(in srgb, var(--gold) 45%, transparent); }
/* Botones morados con brillo dorado. */
:root:not([data-tema]) .btn--dark, :root:not([data-tema]) .carrito-btn {
  background: var(--tema-boton); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 20px -10px #5b21b6;
}
:root:not([data-tema]) .btn--dark:hover, :root:not([data-tema]) .carrito-btn:hover {
  box-shadow: inset 0 0 0 1.5px rgba(245, 197, 66, 0.85), 0 12px 24px -10px #5b21b6;
}
:root:not([data-tema]) .card:hover { border-color: var(--gold); box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 50%, transparent), var(--shadow); }

/* Cinta de categorías y marcas: morado profundo con luz dorada; nombres en blanco y anillos dorados. */
:root:not([data-tema]) .cinta-categorias {
  background:
    radial-gradient(50% 150% at 86% -15%, rgba(245, 197, 66, 0.38), transparent 60%),
    radial-gradient(40% 130% at 8% 125%, rgba(236, 72, 153, 0.28), transparent 70%),
    linear-gradient(180deg, #4c1d95 0%, #3b0a75 55%, #2a0657 100%);
  border-top: 1px solid rgba(245, 197, 66, 0.55); border-bottom: 2px solid var(--gold);
}
:root:not([data-tema]) .cinta-categorias .chip { color: #ffffff; }
:root:not([data-tema]) .cinta-categorias .chip > span:last-child,
:root:not([data-tema]) .cinta-categorias[data-escena] .chip > span:last-child { text-shadow: 0 1px 2px rgba(20, 0, 45, 0.8), 0 0 8px rgba(20, 0, 45, 0.5); }
:root:not([data-tema]) .cinta-categorias .chip:hover, :root:not([data-tema]) .cinta-categorias .chip.activo { color: #ffd76a; }
:root:not([data-tema]) .cinta-categorias .chip__img { box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px rgba(245, 197, 66, 0.55), 0 6px 14px -6px rgba(10, 0, 30, 0.7); }
:root:not([data-tema]) .cinta-categorias .chip.activo .chip__img { box-shadow: 0 0 0 3px #ffffff, 0 0 0 6px #f5c542, 0 0 20px 3px rgba(245, 197, 66, 0.7); }
:root:not([data-tema]) .cinta-categorias .marcas { border-left-color: rgba(255, 255, 255, 0.25); }
:root:not([data-tema]) .cinta-categorias .marca { border-color: #ffffff; box-shadow: 0 0 0 2px rgba(245, 197, 66, 0.6); }
@media (min-width: 701px) {
  :root:not([data-tema]) .cinta-categorias .categorias::before, :root:not([data-tema]) .cinta-categorias .marcas::before {
    color: #3b0a75; background: #ffffff; box-shadow: 0 0 0 2px #f5c542, 0 4px 10px -4px rgba(10, 0, 30, 0.6);
  }
}
@media (max-width: 700px) {
  :root:not([data-tema]) #menu-slot-categorias .categorias::before,
  :root:not([data-tema]) #menu-slot-categorias .marcas::before { color: #ffd76a; text-shadow: 0 1px 2px rgba(20, 0, 45, 0.7); }
  /* En el encabezado claro del teléfono no va el prisma ni el brillo (solo los destellos). */
  .header > .cinta-escena .esc-prisma, .header > .cinta-escena .esc-rayos { display: none; }
  :root:not([data-tema]) .header > .cinta-escena .esc-bokeh { display: none; }
}
/* Animaciones del tema de la tienda. */
.esc-rayos {
  inset: 0; background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, 0.1) 44%, rgba(255, 225, 140, 0.2) 50%, transparent 60%);
  background-size: 260% 100%; animation: esc-barrido 7s ease-in-out infinite;
}
@keyframes esc-barrido { from { background-position: 130% 0; } to { background-position: -130% 0; } }
.esc-prisma { filter: drop-shadow(0 0 10px rgba(245, 197, 66, 0.35)); animation: esc-flotar 5s ease-in-out infinite alternate; }
@keyframes esc-flotar { from { transform: translateY(2px); } to { transform: translateY(-4px); } }
.esc-arcoiris { animation: esc-arcoiris 3.2s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 0 50%; }
@keyframes esc-arcoiris { from { opacity: 0.55; transform: scaleY(0.92); } to { opacity: 1; transform: scaleY(1.06); } }

/* ---------- Teléfono: el nombre de la tienda siempre legible sobre la escena del tema ---------- */
@media (max-width: 700px) {
  /* Pastilla blanca detrás del logo y el nombre, para que los dibujos del tema no lo tapen. */
  .header[data-escena] .logo {
    filter: none; background: rgba(255, 255, 255, 0.94); border-radius: 999px; padding: 3px 12px 3px 3px; gap: 6px;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 55%, transparent), 0 6px 14px -8px rgba(20, 0, 30, 0.55);
    min-width: 0; max-width: 100%;
  }
  /* El nombre usa el fondo del logo para pintarse en degradado; con la pastilla, el degradado pasa al texto mismo. */
  .header[data-escena] .logo { -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: currentColor; }
  .header[data-escena] .logo__texto { min-width: 0; }
  .header[data-escena] .logo__texto > span {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    background: linear-gradient(120deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 65%, var(--gold)) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  }
  /* Navidad: el encabezado con el mismo cielo rojo y dorado de la cinta de la computadora. */
  .header[data-escena="navidad"] {
    background:
      radial-gradient(70% 120% at 85% -20%, rgba(255, 214, 102, 0.45), transparent 62%),
      linear-gradient(180deg, #ef1a36 0%, #c8081f 60%, #9a0618 100%);
    border-bottom: 2px solid #ffd166;
  }
  .header[data-escena="navidad"] .logo { box-shadow: 0 0 0 2px #ffd166, 0 6px 14px -6px rgba(60, 0, 8, 0.7); }
  .header[data-escena="navidad"] .esc-copo { box-shadow: none; }
  .header[data-escena="navidad"] .search input { box-shadow: 0 0 0 2px rgba(255, 214, 102, 0.7); }
}

/* ---------- Teléfono: el nombre completo en cualquier ancho y el carrito que resalte sobre el tema ---------- */
@media (max-width: 700px) {
  /* El nombre se achica con la pantalla para que "PRISMA TREND" quepa entero (360 px incluidos). */
  .header .logo { font-size: clamp(0.74rem, 3.45vw, 0.98rem); letter-spacing: -0.035em; }
  .header[data-escena] .logo { padding: 3px 10px 3px 3px; }
  /* Carrito con anillo blanco para despegarse del fondo del tema. */
  .header[data-escena] .carrito-btn { box-shadow: 0 0 0 2px #ffffff, 0 8px 16px -8px rgba(20, 0, 30, 0.6); }
  /* Navidad: carrito verde pino con anillo dorado (el rojo se perdía en el encabezado rojo). */
  .header[data-escena="navidad"] .carrito-btn {
    background: linear-gradient(135deg, #18a957 0%, #0b6b32 55%, #064e24 100%);
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #ffd166, 0 8px 16px -6px rgba(40, 0, 6, 0.6);
  }
}
@media (max-width: 400px) {
  .header__inner { column-gap: 6px; }
  .header .logo__img { width: 28px; height: 28px; }
}
/* Regalo del carrito en rojo sobre el botón verde (en el encabezado del teléfono). */
@media (max-width: 700px) {
  .header[data-escena="navidad"] .carrito-btn svg rect[fill="#16a34a"] { fill: #e11d48; }
  .header[data-escena="navidad"] .carrito-btn svg rect[fill="#22c55e"] { fill: #ff4d6d; }
}
/* Teléfono: el nombre se mide dentro de su espacio (js/app.js lo achica si no cabe completo). */
@media (max-width: 700px) {
  .header .logo { min-width: 0; max-width: 100%; }
  .header .logo__texto { min-width: 0; }
  .header .logo__texto > span { display: block; overflow: hidden; white-space: nowrap; }
}
/* Teléfono: más espacio para el nombre y el eslogan: el carrito queda solo con el ícono y su contador. */
@media (max-width: 700px) {
  .header .carrito-btn__texto { display: none; }
  .header .carrito-btn { padding-inline: 14px; }
  /* El eslogan va debajo del nombre, en una línea (js/app.js lo achica si no cabe). */
  .header .logo__texto small { display: block; overflow: hidden; white-space: nowrap; font-size: 0.6rem; letter-spacing: 0.06em; margin-top: 2px; }
}

/* Versión de la app de Android (js/avisos.js: pintarVersion) */
.app-descarga__version { display: block; margin-top: 6px; font-size: .78rem; opacity: .9; }
.app-descarga__actualizar { margin-left: 6px; padding: 3px 10px; border: 0; border-radius: 999px; background: var(--accent, #7c3aed); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }

/* ---------- Esqueletos mientras llega el catálogo (index.html): mismo tamaño que las tarjetas reales ---------- */
.slide--esqueleto, .card--esqueleto .card__img, .esq-linea {
  background: linear-gradient(100deg, color-mix(in srgb, var(--accent) 7%, var(--surface)) 30%, color-mix(in srgb, var(--accent) 14%, var(--surface)) 50%, color-mix(in srgb, var(--accent) 7%, var(--surface)) 70%) 0 0 / 300% 100%;
  animation: esqueleto 1.4s ease-in-out infinite;
}
.slide--esqueleto { cursor: default; box-shadow: none; }
.card--esqueleto { pointer-events: none; animation: none; gap: 8px; }
.card--esqueleto .card__img { margin-bottom: 4px; }
.esq-linea { display: block; height: 12px; border-radius: 6px; width: 85%; }
.esq-linea--corta { width: 45%; height: 9px; }
.esq-linea--precio { width: 35%; height: 16px; margin-bottom: 6px; }
@keyframes esqueleto { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .slide--esqueleto, .card--esqueleto .card__img, .esq-linea { animation: none; } }
/* En el teléfono la primera pieza real es la franja "De la tienda a tu puerta" a lo ancho: su esqueleto ocupa lo mismo. */
.esq-promo { display: none; }
@media (max-width: 700px) {
  #productos.grid > .esq-promo { display: block; grid-column: 1 / -1; min-height: 150px; border-radius: 18px;
    background: linear-gradient(100deg, color-mix(in srgb, var(--accent) 10%, var(--surface)) 30%, color-mix(in srgb, var(--accent) 18%, var(--surface)) 50%, color-mix(in srgb, var(--accent) 10%, var(--surface)) 70%) 0 0 / 300% 100%;
    animation: esqueleto 1.4s ease-in-out infinite; }
}

/* Ficha del producto: la foto completa, sin recortes (se ve la prenda entera y la marca de agua de la esquina),
   nítida y sin el acercamiento de las tarjetas. */
.modal__img img { object-fit: contain; image-rendering: auto; }

/* Avisos del delivery de un pedido (js/avisos.js → htmlAvisosPedido): en la confirmación y en el seguimiento. */
.avisos-pedido { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; border-radius: 14px; text-align: left; font-size: 0.84rem; line-height: 1.4; background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); color: var(--text); }
.avisos-pedido span { flex: 1; }
.avisos-pedido .btn { padding: 8px 12px; white-space: nowrap; flex: none; }
.avisos-pedido--listo { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }

/* ---------- Carnaval en el teléfono (va al final para ganar a las reglas generales del encabezado) ---------- */
@media (max-width: 700px) {
  /* Menú lateral del teléfono con la cinta de Carnaval: títulos en dorado. */
  #menu-slot-categorias .cinta-categorias[data-escena="carnaval"] .categorias::before,
  #menu-slot-categorias .cinta-categorias[data-escena="carnaval"] .marcas::before { color: #ffd23f; text-shadow: 0 1px 2px rgba(25, 0, 45, 0.75); }
  /* Encabezado del teléfono: la misma noche de fiesta de la cinta. */
  .header[data-escena="carnaval"] {
    background:
      radial-gradient(50% 120% at 12% -20%, rgba(255, 46, 136, 0.55), transparent 65%),
      radial-gradient(50% 120% at 88% -20%, rgba(0, 194, 199, 0.42), transparent 65%),
      linear-gradient(180deg, #4a0c6c 0%, #5c0f74 60%, #33074f 100%);
    border-bottom: 2px solid #ffd23f;
  }
  .header[data-escena="carnaval"] .logo { box-shadow: 0 0 0 2px #ffd23f, 0 6px 14px -6px rgba(20, 0, 40, 0.75); }
  .header[data-escena="carnaval"] .search input { box-shadow: 0 0 0 2px rgba(255, 210, 63, 0.75); }
  /* Carrito turquesa con anillo dorado: resalta sobre el morado y lleva el antifaz amarillo. */
  .header[data-escena="carnaval"] .carrito-btn {
    background: linear-gradient(135deg, #12d3d9 0%, #00959b 55%, #006a6e 100%);
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #ffd23f, 0 8px 16px -6px rgba(20, 0, 40, 0.6);
  }
  /* En el encabezado no van los antifaces chicos, el tambor ni las maracas (taparían el buscador). */
  .header > .cinta-escena .esc-antifaz--chico, .header > .cinta-escena .esc-tambor, .header > .cinta-escena .esc-maracas { display: none; }
  .header > .cinta-escena .esc-antifaz { width: 40px !important; }
}
