/* =========================================================
   Cosecha y Gana — Mary y Caledonia (Navidad 2026)
   Estructura tipo app: un marco rojo con un "escenario" de cielo
   nocturno (como el panel central de los afiches) donde cambian las vistas.
   ========================================================= */

/* Roboto Condensed — tipografía corporativa de Alimentos Mary: Light (300), Bold (700) y Black (900) */
@font-face { font-family: "Roboto Condensed"; font-weight: 300; font-display: swap; src: url("../assets/fonts/roboto-condensed-latin-300.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto Condensed"; font-weight: 700; font-display: swap; src: url("../assets/fonts/roboto-condensed-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto Condensed"; font-weight: 900; font-display: swap; src: url("../assets/fonts/roboto-condensed-latin-900.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto Condensed"; font-weight: 300; font-display: swap; src: url("../assets/fonts/roboto-condensed-latin-ext-300.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Roboto Condensed"; font-weight: 700; font-display: swap; src: url("../assets/fonts/roboto-condensed-latin-ext-700.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Roboto Condensed"; font-weight: 900; font-display: swap; src: url("../assets/fonts/roboto-condensed-latin-ext-900.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Script de campaña (solo para "viene con regalo", como en los afiches) */
@font-face { font-family: "Sacramento"; font-weight: 400; font-display: swap; src: url("../assets/fonts/sacramento-latin.woff2") format("woff2"); }

:root {
  --rojo: #d01518;
  --rojo-oscuro: #a80f13;
  --rojo-profundo: #6f0b0e;
  --noche-1: #0b1430;
  --noche-2: #1c294b;
  --noche-3: #33386a;
  --oro-claro: #fff1a8;
  --oro: #f4d36f;
  --oro-oscuro: #b37e28;
  --oro-sombra: #7d5410;
  --granate: #72160e;
  --crema: #fff6e3;
  --crema-2: #f3e3bd;
  --tinta: #2a1410;
  --tinta-suave: #5c3a2c;
  --verde: #17672e;
  --cristal: rgba(40, 54, 104, 0.62);
  --cristal-borde: rgba(255, 255, 255, 0.16);

  --oro-degradado: linear-gradient(180deg, #fff4b5 0%, #f8df7c 38%, #ecc443 72%, #d9a52e 100%);
  --fuente: "Roboto Condensed", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --script: "Sacramento", "Segoe Script", cursive;
  --cab: 76px;
  --marco: 20px;
  --pestanas: 0px;
  --suave: cubic-bezier(0.2, 0.8, 0.2, 1);
  --rebote: cubic-bezier(0.34, 1.4, 0.5, 1);
  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  overflow: hidden;
  font-family: var(--fuente);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.5;
  color: #fff;
  background-color: var(--rojo);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 255, 255, 0.08), transparent 70%),
    repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.055) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 7px);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { line-height: 1.05; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong, b { font-weight: 700; }
svg { flex: none; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.saltar {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--oro); color: var(--granate); font-weight: 700;
  padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.saltar:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--oro); outline-offset: 3px; border-radius: 8px; }
[tabindex="-1"]:focus { outline: none; }

/* =========================================================
   Cabecera (sobre el marco rojo)
   ========================================================= */
.cabecera {
  position: fixed;
  inset: 0 0 auto;
  height: var(--cab);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 calc(var(--marco) + 12px);
}
.marca { margin-left: clamp(40px, 6vw, 88px); }
.marca img { height: 30px; width: auto; }
.nav {
  position: relative;
  margin-inline: auto;
  display: flex;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(70, 0, 0, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 8px 24px rgba(60, 0, 0, 0.2);
}
.nav a {
  position: relative;
  z-index: 1;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s ease;
}
.nav a:hover { color: var(--oro-claro); }
.nav a[aria-current="page"] { color: var(--granate); }
.nav-indicador {
  position: absolute;
  top: 5px; bottom: 5px; left: 0;
  width: 0;
  border-radius: 999px;
  background: var(--oro-degradado);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 3px 0 var(--oro-sombra), 0 8px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.55s var(--rebote), width 0.55s var(--rebote);
}
.chip-cuenta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(70, 0, 0, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.chip-cuenta svg { width: 16px; height: 16px; color: var(--oro); }

/* =========================================================
   Decoración del marco
   ========================================================= */
.deco {
  position: fixed;
  z-index: 35;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 10px 14px rgba(40, 0, 0, 0.35));
  will-change: transform, translate, rotate; /* capa propia: el parallax (JS) y el vaivén no repintan */
}
.deco-1 { left: -8px; top: calc(var(--cab) - 28px); width: clamp(64px, 7vw, 110px); --prof: 14px; animation: mecer 8s ease-in-out -2s infinite; transform-origin: 0 0; }
.deco-2 { right: -8px; top: calc(var(--cab) - 46px); width: clamp(76px, 9vw, 140px); --prof: -12px; animation: mecer 7s ease-in-out infinite; transform-origin: 100% 0; }
.deco-3 { left: -10px; bottom: -26px; width: clamp(62px, 7vw, 108px); --prof: 10px; animation: mecer 9s ease-in-out -4s infinite; transform-origin: 0 100%; }
.deco-4 { right: -4px; bottom: -8px; width: clamp(70px, 8vw, 120px); --prof: -16px; }
@keyframes mecer { 0%, 100% { rotate: 0deg; } 50% { rotate: -3deg; } }

/* =========================================================
   Escenario (panel de cielo)
   ========================================================= */
.escenario {
  position: fixed;
  top: var(--cab);
  left: var(--marco);
  right: var(--marco);
  bottom: calc(var(--marco) + var(--pestanas));
  z-index: 10;
  border-radius: 30px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 70% 45% at 50% 108%, rgba(246, 160, 86, 0.55), transparent 70%),
    radial-gradient(ellipse 50% 40% at 12% 0%, rgba(90, 120, 210, 0.35), transparent 70%),
    linear-gradient(180deg, var(--noche-1) 0%, var(--noche-2) 58%, var(--noche-3) 100%);
  box-shadow:
    0 0 0 3px var(--oro),
    0 0 0 8px rgba(120, 0, 0, 0.25),
    0 40px 80px rgba(60, 0, 0, 0.45),
    inset 0 0 120px rgba(0, 0, 0, 0.35);
}
.cielo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.horizonte {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 18%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.95;
}
.horizonte svg { width: 100%; height: 100%; display: block; }

.vistas { position: absolute; inset: 0; z-index: 1; view-transition-name: escena; }
.vista {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(28px, 4vw, 52px) clamp(18px, 4vw, 60px) clamp(48px, 6vw, 72px);
  scrollbar-width: thin;
  scrollbar-color: rgba(244, 211, 111, 0.45) transparent;
}
.vista[hidden] { display: none; }
.contenido {
  width: min(100%, 1180px);
  min-height: 100%;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* vistas cuyo contenido crece (resultados, preguntas abiertas): ancladas arriba para que nada salte */
#vista-tiendas .contenido, #vista-preguntas .contenido { justify-content: flex-start; }

/* Entrada escalonada de los elementos de cada vista */
.js .vista.entrando .anim { animation: entrar 0.8s var(--suave) both; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }
@keyframes entrar {
  from { opacity: 0; transform: translateY(28px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* Transición entre vistas (View Transitions API) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-old(escena) { animation: vt-salir 0.32s ease both; }
::view-transition-new(escena) { animation: vt-entrar 0.55s var(--suave) both; }
html[data-dir="atras"]::view-transition-old(escena) { animation-name: vt-salir-atras; }
html[data-dir="atras"]::view-transition-new(escena) { animation-name: vt-entrar-atras; }
@keyframes vt-salir { to { opacity: 0; transform: translateX(-60px) scale(0.97); } }
@keyframes vt-entrar { from { opacity: 0; transform: translateX(80px) scale(0.98); } }
@keyframes vt-salir-atras { to { opacity: 0; transform: translateX(60px) scale(0.97); } }
@keyframes vt-entrar-atras { from { opacity: 0; transform: translateX(-80px) scale(0.98); } }

/* =========================================================
   Tipografía y piezas comunes
   ========================================================= */
.vista-cabeza { display: grid; gap: 10px; justify-items: center; text-align: center; margin-bottom: clamp(24px, 4vw, 40px); }
.antetitulo { font-size: 14px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--oro); }
.titulo {
  font-weight: 900;
  font-size: clamp(38px, 5.6vw, 72px);
  text-transform: uppercase;
  line-height: 0.98;
  text-wrap: balance;
  background: linear-gradient(100deg, #fff4b5 0%, #f6d66e 30%, #fff8d2 45%, #e9b93c 60%, #fff1a8 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 var(--oro-sombra)) drop-shadow(0 12px 22px rgba(0, 0, 0, 0.35));
}
.bajada { color: #dfe5f6; font-size: clamp(17px, 1.6vw, 20px); max-width: 640px; text-wrap: pretty; }
.vista-cabeza .bajada { margin-inline: auto; }
.ref { font-size: 0.42em; font-weight: 700; vertical-align: 0.95em; margin-right: 0.1em; letter-spacing: 0.02em; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  border-radius: 999px;
  background: var(--cristal);
  box-shadow: inset 0 0 0 1px var(--cristal-borde);
  font-weight: 700;
  font-size: 15px;
}
.chip svg { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--oro-degradado); color: var(--granate); }
.nota { margin-top: 18px; text-align: center; font-size: 13px; color: #aab4d6; }

/* Botones */
.boton {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--rebote), box-shadow 0.25s ease, background-color 0.25s ease;
}
.boton svg { width: 20px; height: 20px; }
.boton-oro {
  background: var(--oro-degradado);
  color: var(--granate);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 5px 0 var(--oro-sombra), 0 14px 28px rgba(0, 0, 0, 0.3);
}
.boton-oro::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.75) 50%, transparent 75%);
  transform: translateX(-110%);
  will-change: transform;
  animation: destello 3.6s ease-in-out infinite;
}
/* el destello se desplaza con transform (lo hace la GPU, sin repintar) */
@keyframes destello { 0%, 55% { transform: translateX(-110%); } 85%, 100% { transform: translateX(110%); } }
.boton-oro:hover { transform: translateY(-3px) scale(1.02); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 8px 0 var(--oro-sombra), 0 20px 34px rgba(0, 0, 0, 0.35); }
.boton-oro:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 2px 0 var(--oro-sombra), 0 6px 12px rgba(0, 0, 0, 0.25); }
.boton-cristal {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55);
}
.boton-cristal:hover { background: rgba(255, 255, 255, 0.18); transform: translateY(-2px); }
.boton-pequeno { min-height: 46px; padding: 0 22px; font-size: 15px; }

/* Brillo que sigue al cursor (tarjetas) */
.brillo-cursor { position: relative; }
.brillo-cursor::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.22), transparent 45%);
  
  transition: opacity 0.3s ease;
}
.brillo-cursor:hover::before { opacity: 1; }

/* =========================================================
   INICIO
   ========================================================= */
.inicio { flex-direction: row; align-items: center; gap: clamp(28px, 5vw, 72px); }
.inicio-texto { flex: 1.05 1 0; display: grid; gap: 22px; justify-items: start; }
.claim { display: grid; }
.claim-1 {
  font-size: clamp(48px, 6.6vw, 96px);
  font-weight: 900;
  line-height: 0.92;
  text-wrap: balance;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.25), 0 18px 40px rgba(0, 0, 0, 0.35);
}
.claim-2 {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(56px, 7.4vw, 108px);
  line-height: 0.85;
  color: var(--oro);
  margin-top: 6px;
  padding-left: 0.06em;
  text-shadow: 0 3px 0 rgba(90, 30, 0, 0.5), 0 0 28px rgba(244, 211, 111, 0.35);
}
.inicio .bajada { max-width: 540px; }
.inicio .bajada strong { color: #fff; }
.acciones { display: flex; flex-wrap: wrap; gap: 14px; }

.cuenta { display: grid; gap: 10px; }
.cuenta-titulo { font-size: 13px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #aab4d6; }
.cuenta-cajas { display: flex; gap: 10px; }
.caja {
  min-width: 74px;
  padding: 10px 8px 8px;
  border-radius: 16px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 0 0 1px var(--cristal-borde), 0 10px 24px rgba(0, 0, 0, 0.25);
  perspective: 300px;
}
.caja b {
  display: block;
  font-size: 38px;
  font-weight: 900;
  line-height: 1.05;
  color: var(--oro);
  font-variant-numeric: tabular-nums;
}
.caja b.gira { animation: girar 0.5s var(--suave); }
@keyframes girar { from { transform: rotateX(-90deg); opacity: 0.2; } to { transform: none; opacity: 1; } }
.caja span { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #cfd6ee; }

.inicio-arte { flex: 0.95 1 0; position: relative; max-width: 500px; perspective: 1100px; }
.halo {
  position: absolute;
  inset: -12%;
  z-index: -1;
  background: radial-gradient(circle at 50% 45%, rgba(244, 211, 111, 0.45), rgba(244, 160, 80, 0.15) 40%, transparent 65%);
  filter: blur(10px);
  will-change: transform, opacity;
  animation: respirar 5s ease-in-out infinite;
}
@keyframes respirar { 0%, 100% { opacity: 0.7; transform: scale(0.96); } 50% { opacity: 1; transform: scale(1.04); } }
.panel {
  position: relative;
  border-radius: 8px 8px 50% 50% / 8px 8px 16% 16%;
  padding: 6px;
  background: var(--oro-degradado);
  box-shadow: 0 0 0 1px rgba(125, 84, 16, 0.6), 0 40px 70px rgba(0, 0, 0, 0.55);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
  will-change: transform;
}
.panel img { width: 100%; border-radius: 4px 4px 50% 50% / 4px 4px 16% 16%; }
.reflejo {
  position: absolute;
  inset: 6px;
  border-radius: 4px 4px 50% 50% / 4px 4px 16% 16%;
  pointer-events: none;
  background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255, 255, 255, 0.2), transparent 45%);
  
}
.inicio-arte .estrella {
  position: absolute;
  left: -9%;
  bottom: 2%;
  width: clamp(76px, 9vw, 120px);
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.45));
  will-change: transform;
  animation: flotar 6s ease-in-out infinite;
}
@keyframes flotar { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-12px) rotate(8deg); } }

/* Logos de marca (usados en la tarjeta legal de Preguntas) */
.marcas-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.tab-marca {
  display: grid; place-items: center;
  min-width: 190px; height: 92px;
  padding: 14px 26px;
  border-radius: 0 0 22px 22px;
  background: var(--rojo);
  box-shadow: inset 0 0 0 3px rgba(244, 211, 111, 0.55), 0 5px 0 var(--rojo-profundo), 0 16px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s var(--rebote);
}
.tab-marca:hover { transform: translateY(-6px) rotate(-2deg); }
.tab-marca img { height: 54px; width: auto; }

/* =========================================================
   PREMIOS — carrusel 3D
   ========================================================= */
.premios-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: clamp(20px, 3vw, 44px); }
.carrusel { position: relative; height: clamp(380px, 62vh, 600px); perspective: 1400px; touch-action: pan-y; user-select: none; }
.carrusel-pista { position: absolute; inset: 0 0 44px; transform-style: preserve-3d; }
.cf-item {
  --o: 0; --a: 0;
  position: absolute;
  left: 50%; top: 50%;
  height: 100%;
  aspect-ratio: 640 / 989;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--rojo);
  cursor: pointer;
  translate: -50% -50%;
  transform: translateX(calc(var(--o) * 52%)) translateZ(calc(var(--a) * -180px)) rotateY(calc(var(--o) * -34deg));
  opacity: calc(1 - var(--a) * 0.3);
  filter: brightness(calc(1 - var(--a) * 0.28)) saturate(calc(1 - var(--a) * 0.2));
  z-index: calc(10 - var(--a));
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.5);
  transition: transform 0.7s var(--suave), opacity 0.7s ease, filter 0.7s ease, box-shadow 0.4s ease;
}
.cf-item img { width: 100%; height: 100%; object-fit: cover; object-position: top; pointer-events: none; }
.cf-item.lejos { opacity: 0; pointer-events: none; }
.cf-item.activo {
  box-shadow: 0 0 0 3px var(--oro), 0 0 60px rgba(244, 211, 111, 0.45), 0 34px 60px rgba(0, 0, 0, 0.55);
  cursor: pointer;
}
.cf-item.activo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, 0.35) 50%, transparent 75%);
  transform: translateX(-110%);
  will-change: transform;
  animation: destello 4.5s ease-in-out infinite;
  pointer-events: none;
}
.carrusel-flecha {
  position: absolute;
  top: calc(50% - 48px);
  z-index: 20;
  width: 52px; height: 52px;
  border: 0; border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--granate);
  background: var(--oro-degradado);
  box-shadow: 0 4px 0 var(--oro-sombra), 0 12px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s var(--rebote);
}
.carrusel-flecha:hover { transform: scale(1.1); }
.carrusel-flecha svg { width: 24px; height: 24px; }
.carrusel-flecha.prev { left: 0; }
.carrusel-flecha.next { right: 0; }
.carrusel-puntos { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; justify-content: center; gap: 8px; }
.carrusel-puntos button {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, 0.35); cursor: pointer;
  transition: width 0.4s var(--rebote), background-color 0.3s ease;
}
.carrusel-puntos button[aria-current="true"] { width: 34px; background: var(--oro); }

.premio-detalle {
  position: relative;
  display: grid;
  gap: 16px;
  align-content: start;
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: 28px;
  background: var(--crema);
  color: var(--tinta);
  box-shadow: 0 0 0 3px var(--oro), 0 30px 60px rgba(0, 0, 0, 0.45);
}
/* todas las capas en la misma celda → la tarjeta no cambia de alto al pasar el carrusel */
.premio-detalle { grid-template-areas: "capa"; }
.det-capa { grid-area: capa; display: grid; gap: 9px; align-content: start; visibility: hidden; }
.det-capa > p { font-size: 16px; line-height: 1.4; }
.premio-detalle .cifras { gap: 8px; }
.premio-detalle .cifra-premio { padding: 9px 16px; }
.premio-detalle .cifra-premio .valor { font-size: clamp(32px, 3.2vw, 42px); }
.premio-detalle .det-acciones { margin-top: 4px; }
.det-capa.activa { visibility: visible; animation: entrar 0.55s var(--suave) both; }
.det-tag { justify-self: start; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; background: var(--rojo); padding: 5px 12px; border-radius: 999px; }
.premio-detalle h3 { font-size: clamp(28px, 2.8vw, 38px); font-weight: 900; color: var(--granate); line-height: 1; text-wrap: balance; }
.premio-detalle p { color: var(--tinta-suave); }
.cifras { display: grid; gap: 10px; }
.cifra-premio {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 16px;
  align-items: center;
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--oro-degradado);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.7), 0 4px 0 var(--oro-oscuro);
  color: var(--granate);
}
.cifra-premio .valor { grid-row: span 2; font-size: clamp(38px, 4vw, 52px); font-weight: 900; line-height: 0.95; }
.cifra-premio .que { font-weight: 700; font-size: 16px; line-height: 1.2; align-self: end; }
.cifra-premio .cuantos { font-size: 14px; font-weight: 700; color: #6c3b17; align-self: start; }
/* "Así de fácil": los 3 pasos en pequeño dentro del detalle de cada afiche */
.mini-pasos { display: grid; gap: 8px; padding-top: 12px; border-top: 2px dashed var(--crema-2); }
.mini-pasos ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mini-pasos li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 4px 7px;
  align-items: center;
  align-content: start;
  padding: 8px 10px 9px;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--crema-2);
  font-size: 13px;
  line-height: 1.3;
  color: var(--tinta-suave);
}
.mini-pasos li span { grid-column: 1 / -1; }
.mini-pasos li em { font-style: normal; font-weight: 700; color: var(--rojo); }
.mini-pasos li b {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--oro-degradado);
  box-shadow: 0 2px 0 var(--oro-oscuro);
  color: var(--granate);
  font-size: 16px; font-weight: 900;
}
.mini-pasos li strong { color: var(--granate); font-weight: 900; font-size: 13.5px; line-height: 1.05; text-transform: uppercase; }
#vista-premios .vista-cabeza { margin-bottom: clamp(18px, 2.4vw, 26px); }
@media (max-width: 560px) { .mini-pasos ol { grid-template-columns: 1fr; } }
.det-sub { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tinta-suave); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 9px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--crema-2); }
.det-acciones { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.enlace {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0; border: 0; background: none; cursor: pointer;
  font-weight: 700; font-size: 16px; color: var(--rojo);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px;
}
.enlace svg { width: 18px; height: 18px; }

/* =========================================================
   ¿DÓNDE COMPRAS? — buscador y tarjetas que se voltean
   ========================================================= */
.buscador {
  width: min(100%, 980px);
  margin-inline: auto;
  padding: clamp(16px, 2.4vw, 24px);
  border-radius: 26px;
  background: var(--cristal);
  box-shadow: inset 0 0 0 1px var(--cristal-borde), 0 20px 40px rgba(0, 0, 0, 0.25);
}
.buscador-campos { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.campo-busqueda { position: relative; }
.campo-busqueda svg { position: absolute; left: 18px; top: 50%; translate: 0 -50%; width: 22px; height: 22px; color: var(--rojo); pointer-events: none; }
.campo-busqueda input, .buscador select {
  width: 100%;
  height: 58px;
  border-radius: 16px;
  border: 2px solid transparent;
  background: var(--crema);
  font: inherit;
  font-weight: 700;
  color: var(--tinta);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.campo-busqueda input { padding: 0 18px 0 52px; font-size: 18px; }
.campo-busqueda input::placeholder { color: #9b7f6c; font-weight: 300; }
.buscador select {
  padding: 0 44px 0 16px; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23d01518' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.campo-busqueda input:focus, .buscador select:focus { outline: none; border-color: var(--oro); box-shadow: 0 0 0 5px rgba(244, 211, 111, 0.3); }
.filtros { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.filtro, .filtro-premio {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1.5px var(--cristal-borde);
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.25s var(--rebote);
}
.filtro:hover { background: rgba(255, 255, 255, 0.2); }
.filtro[aria-pressed="true"] { background: var(--oro-degradado); color: var(--granate); box-shadow: 0 3px 0 var(--oro-sombra); }
.filtro .n { font-weight: 300; margin-left: 5px; opacity: 0.8; }
.filtro-premio { background: var(--rojo); box-shadow: 0 3px 0 var(--rojo-profundo); }
.filtro-premio::after { content: "✕"; margin-left: 8px; font-size: 12px; opacity: 0.8; }
.resumen-resultados { width: min(100%, 980px); margin: 20px auto 12px; font-size: 15px; font-weight: 700; color: #cfd6ee; }
.resultados {
  width: min(100%, 980px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 228px), 1fr));
  gap: 14px;
}
.tienda { height: 212px; perspective: 1100px; animation: entrar 0.5s var(--suave) both; animation-delay: calc(var(--i, 0) * 40ms); }
.tienda-giro {
  position: relative;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s var(--rebote);
}
.tienda.volteada .tienda-giro { transform: rotateY(180deg); }
.cara {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: space-between;
  gap: 8px;
  padding: 18px;
  border-radius: 20px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.cara-frente {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 0 0 1px var(--cristal-borde), 0 14px 28px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.3s ease, transform 0.3s var(--rebote);
}
/* hover barato: borde dorado por opacidad + leve elevación (sin animar sombras grandes) */
.cara-frente::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px var(--oro);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.tienda:not(.volteada):hover .cara-frente::before { opacity: 1; }
.tienda:not(.volteada):hover .cara-frente { transform: translateY(-4px); }
.cara-frente h3 { font-size: 20px; font-weight: 900; line-height: 1.1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cara-frente .region { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: #cfd6ee; margin-top: 4px; }
.cara-frente .region svg { width: 15px; height: 15px; color: var(--oro); }
.etiqueta { justify-self: start; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }
.etiqueta.moderno { background: #3f5ea8; color: #fff; }
.etiqueta.smi { background: var(--verde); color: #fff; }
.etiqueta.mayorista { background: var(--rojo); color: #fff; }
.voltear {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; background: none; padding: 0; cursor: pointer;
  font-weight: 700; font-size: 15px; color: var(--oro);
}
.voltear::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }
.voltear svg { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--oro-degradado); color: var(--granate); will-change: transform; animation: latir 1.6s ease-in-out infinite; }
@keyframes latir { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }
.cara-atras {
  transform: rotateY(180deg);
  background: var(--oro-degradado);
  color: var(--granate);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.7), 0 0 0 2px var(--oro-oscuro), 0 0 40px rgba(244, 211, 111, 0.45);
  grid-template-rows: auto auto 1fr;
  align-content: stretch;
}
.cara-atras .pie-cara { align-self: end; }
.cara-atras .gana { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.cara-atras .premio-linea { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; }
.cara-atras .premio-linea > svg { width: 48px; height: 48px; padding: 10px; border-radius: 14px; background: var(--granate); color: var(--oro); }
.cara-atras strong { font-size: 20px; font-weight: 900; line-height: 1.1; }
.cara-atras .detalle { font-size: 14px; color: #5a2a14; font-weight: 700; }
.cara-atras .pie-cara { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.cara-atras button { border: 0; background: none; padding: 0; cursor: pointer; font-weight: 700; font-size: 14px; color: var(--granate); display: inline-flex; align-items: center; gap: 6px; text-decoration: underline; text-underline-offset: 3px; }
.cara-atras button svg { width: 16px; height: 16px; }
.sin-resultados { grid-column: 1 / -1; padding: 28px; text-align: center; border-radius: 20px; background: var(--cristal); box-shadow: inset 0 0 0 1px var(--cristal-borde); color: #dfe5f6; }
.sin-resultados strong { display: block; color: #fff; font-size: 20px; margin-bottom: 4px; }
.mas-resultados { margin: 20px auto 0; display: flex; }

/* =========================================================
   PREGUNTAS
   ========================================================= */
.preguntas-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr); gap: clamp(18px, 3vw, 36px); align-items: start; }
.preguntas { display: grid; gap: 10px; }
.pregunta {
  border-radius: 18px;
  background: var(--cristal);
  box-shadow: inset 0 0 0 1px var(--cristal-borde);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.pregunta[open] { background: var(--crema); color: var(--tinta); box-shadow: 0 0 0 2px var(--oro), 0 18px 36px rgba(0, 0, 0, 0.3); }
.pregunta summary {
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px;
  font-weight: 700; font-size: 19px;
}
.pregunta summary::-webkit-details-marker { display: none; }
.pregunta .mas { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--oro-degradado); position: relative; transition: rotate 0.35s var(--rebote); }
.pregunta .mas::before, .pregunta .mas::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 3px; border-radius: 2px; background: var(--granate); translate: -50% -50%; }
.pregunta .mas::after { rotate: 90deg; }
.pregunta[open] .mas { rotate: 135deg; }
.pregunta::details-content { block-size: 0; overflow: hidden; transition: block-size 0.4s var(--suave), content-visibility 0.4s allow-discrete; }
.pregunta[open]::details-content { block-size: auto; }
.respuesta { padding: 0 20px 20px; color: var(--tinta-suave); }
.respuesta a { color: var(--rojo); font-weight: 700; }
.legal {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
  padding: 0 24px 26px;
  border-radius: 26px;
  background: var(--rojo);
  background-image: repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.055) 0 2px, transparent 2px 6px);
  box-shadow: 0 0 0 3px var(--oro), 0 26px 50px rgba(0, 0, 0, 0.45);
  font-size: 15px;
  color: #ffe3dc;
}
.legal .tab-marca { min-width: 0; height: 74px; padding: 10px 16px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.25); background: var(--rojo-oscuro); }
.legal .tab-marca img { height: 42px; }
.legal .marcas-logos { gap: 10px; }
.legal-lema { font-size: 22px; line-height: 1.15; color: #fff; }
.legal-lema strong { font-weight: 900; text-transform: uppercase; color: var(--oro); font-size: 28px; }
.legal strong { color: #fff; }
.legal-corporativo { height: 26px; width: auto; margin-top: 6px; }

/* =========================================================
   Barra inferior (teléfonos)
   ========================================================= */
.pestanas { display: none; }

/* =========================================================
   Visor de afiches
   ========================================================= */
.visor {
  width: min(100vw - 24px, 980px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: var(--noche-1);
  color: #fff;
  box-shadow: 0 0 0 3px var(--oro), 0 40px 80px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.visor::backdrop { background: rgba(10, 6, 20, 0.8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.visor[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); animation: zoom-entrar 0.35s var(--rebote); }
@keyframes zoom-entrar { from { opacity: 0; transform: scale(0.9); } }
.visor-barra { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 20px; }
.visor-barra p { font-weight: 700; margin-right: auto; }
.visor-barra button { width: 44px; height: 44px; border-radius: 12px; border: 0; cursor: pointer; background: rgba(255, 255, 255, 0.12); color: #fff; display: grid; place-items: center; }
.visor-barra button:hover { background: rgba(255, 255, 255, 0.24); }
.visor-barra svg { width: 20px; height: 20px; }
.visor-imagen { overflow: auto; padding: 0 16px 16px; display: grid; place-items: start center; }
.visor-imagen img { width: auto; max-width: 100%; max-height: calc(100dvh - 110px); border-radius: 10px; }

.confeti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 90; pointer-events: none; }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1180px) {
  .nav a { padding: 9px 13px; font-size: 14px; }
  .chip-cuenta { display: none; }
}
@media (max-width: 980px) {
  .premios-grid { grid-template-columns: 1fr; }
  .carrusel { height: clamp(340px, 70vw, 520px); }
  .preguntas-grid { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  :root { --cab: 62px; --marco: 8px; --pestanas: calc(66px + env(safe-area-inset-bottom)); }
  .nav { display: none; }
  .chip-cuenta { display: inline-flex; margin-left: auto; font-size: 13px; padding: 6px 12px; }
  .marca img { height: 26px; }
  .escenario { border-radius: 22px; box-shadow: 0 0 0 2px var(--oro), 0 20px 40px rgba(60, 0, 0, 0.4), inset 0 0 80px rgba(0, 0, 0, 0.35); }
  .deco-3, .deco-4 { display: none; }
  .deco-1 { width: 54px; top: calc(var(--cab) - 18px); }
  .deco-2 { width: 64px; top: calc(var(--cab) - 30px); }
  .inicio { flex-direction: column-reverse; justify-content: flex-start; gap: 22px; }
  .inicio-arte { width: min(78%, 360px); flex: none; }
  .inicio-texto { justify-items: center; text-align: center; }
  .acciones { justify-content: center; }
  .cuenta { justify-items: center; }
  .pestanas {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 45;
    height: var(--pestanas);
    padding: 6px 6px env(safe-area-inset-bottom);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
  .pestanas a {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 3px;
    border-radius: 16px;
    font-size: 11.5px;
    font-weight: 700;
    color: #ffd9d2;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  .pestanas svg { width: 34px; height: 30px; padding: 5px 8px; border-radius: 999px; transition: background-color 0.3s ease, color 0.3s ease, transform 0.35s var(--rebote); }
  .pestanas a[aria-current="page"] { color: #fff; }
  .pestanas a[aria-current="page"] svg { background: var(--oro-degradado); color: var(--granate); transform: translateY(-2px) scale(1.08); box-shadow: 0 3px 0 var(--oro-sombra); }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .vista { padding: 24px 16px 40px; }
  .buscador-campos { grid-template-columns: 1fr; }
  .cuenta-cajas { gap: 6px; }
  .caja { min-width: 64px; }
  .caja b { font-size: 30px; }
  .carrusel-flecha { width: 44px; height: 44px; }
  .tab-marca { min-width: 0; flex: 1 1 130px; height: 78px; padding: 12px 14px; }
  .tab-marca img { height: 42px; }
}
@media (max-height: 760px) and (min-width: 881px) {
  .claim-1 { font-size: clamp(44px, 5.6vw, 80px); }
  .claim-2 { font-size: clamp(50px, 6vw, 88px); }
  .inicio-arte { max-width: 420px; }
}

/* Movimiento reducido: sin animaciones */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  ::view-transition-old(escena), ::view-transition-new(escena) { animation: none !important; }
  .deco { translate: none; }
}
