/* ======================================================
   OJEDA SORTEOS — DISEÑO "CLARO Y CONFIABLE"
   ======================================================
   Fondo claro, tarjetas blancas y verde de "compra segura".
   Reemplaza a style.css en index.html (style.css queda
   guardado por si hay que volver al diseño anterior).
*/

:root {
  --fondo: #f3f4f7;
  --tarjeta: #ffffff;
  --borde: #e3e5ea;
  --texto: #111827;
  --suave: #6b7280;
  --verde: #00a650;
  --verde-osc: #008a43;
  --verde-claro: #e9f8f0;
  --naranja: #ff6a00;
  --rojo: #dc2626;
  --oscuro: #0f172a;
  --radio: 18px;
  --sombra: 0 8px 30px rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--texto);
  background: var(--fondo);
  -webkit-font-smoothing: antialiased;
}

body.modal-open { overflow: hidden; }

img { max-width: 100%; }

a { color: var(--verde-osc); }

h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
  line-height: 1.15;
}

.contenedor {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px;
}

[id] { scroll-margin-top: 12px; }

/* hidden siempre gana, aunque el elemento tenga display propio */
[hidden] { display: none !important; }


/* ======================================================
   CABECERA Y AVISO
   ====================================================== */

.cabecera {
  padding: 12px 16px;
  text-align: center;
  background: var(--oscuro);
}

.cabecera img {
  display: block;
  width: auto;
  height: 24px;
  margin: 0 auto;
}

.aviso {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  color: #fff;
  background: var(--naranja);
}


/* ======================================================
   TARJETA DEL PREMIO
   ====================================================== */

.producto {
  margin-top: 16px;
  overflow: hidden;
  background: var(--tarjeta);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}

.producto-foto {
  position: relative;
  display: block;
}

.producto-foto img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #e5e7eb;
}

.etiqueta-vivo,
.etiqueta-fotos {
  position: absolute;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  border-radius: 999px;
}

.etiqueta-vivo {
  top: 12px;
  left: 12px;
  background: rgba(220, 38, 38, .92);
}

.etiqueta-fotos {
  right: 12px;
  bottom: 12px;
  background: rgba(15, 23, 42, .75);
}

.producto-cuerpo { padding: 16px 18px 20px; }

.producto h1 {
  margin: 0 0 4px;
  font-size: 26px;
  font-weight: 800;
}

.producto-sub {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--suave);
}

.precio-linea {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 2px;
}

.precio-linea b {
  font-family: 'Poppins', sans-serif;
  font-size: 30px;
  font-weight: 800;
}

.precio-linea s { color: var(--suave); }

.descuento {
  font-size: 14px;
  font-weight: 700;
  color: var(--verde);
}

.datos {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.datos li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}

.datos li > span { font-size: 18px; line-height: 1.2; }

.datos small {
  display: block;
  font-weight: 400;
  color: var(--suave);
}


/* ===== Carrusel de banners (banner-carrusel.js) ===== */

.banner-carrusel {
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
  background: #111;
}

/* ===== Resaltados del encabezado de la página 3x1 ===== */

.resaltado-exclusivo {
  background: linear-gradient(120deg, rgba(255, 106, 0, .18), rgba(0, 166, 80, .18));
  color: var(--naranja);
  padding: 1px 6px;
  border-radius: 6px;
  font-weight: 800;
}

.precio-linea { flex-direction: column; align-items: flex-start; gap: 0; }

.triple-grande {
  font-family: 'Poppins', sans-serif;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--naranja);
  text-shadow: 0 0 10px rgba(255, 106, 0, .45);
}

.precio-linea + .descuento {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--verde-osc);
}

/* ===== "3X1 · TRIPLICÁ TUS CHANCES" gigante sobre el carrusel (solo 3x1.html) ===== */

.mega-3x1 {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2vw;
  text-align: center;
  padding: 0 4%;
  background:
    radial-gradient(ellipse at center, rgba(0, 0, 0, .25), rgba(0, 0, 0, .72) 72%),
    linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .35) 35%, rgba(0, 0, 0, .55));
  pointer-events: none;
}

.mega-3x1-numero {
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 800;
  font-size: clamp(64px, 22vw, 150px);
  line-height: .9;
  color: var(--verde);
  -webkit-text-stroke: 3px #fff;
  text-shadow:
    0 0 18px rgba(0, 166, 80, .9),
    0 0 46px rgba(0, 166, 80, .7),
    0 6px 0 rgba(0, 0, 0, .35);
  transform: rotate(-6deg);
  animation: mega3x1Pulso 1.6s ease-in-out infinite;
}

.mega-3x1-texto {
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 8vw, 54px);
  line-height: 1.05;
  letter-spacing: .5px;
  color: var(--naranja);
  text-shadow:
    0 0 12px rgba(255, 106, 0, .95),
    0 0 30px rgba(255, 106, 0, .8),
    0 0 60px rgba(255, 140, 0, .55),
    0 3px 0 rgba(0, 0, 0, .4);
  text-transform: uppercase;
}

@keyframes mega3x1Pulso {
  0%, 100% { transform: rotate(-6deg) scale(1); }
  50% { transform: rotate(-6deg) scale(1.06); }
}


.banner-pista {
  display: flex;
  will-change: transform;
}

.banner-carrusel .banner { flex: 0 0 100%; }

.banner-carrusel img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.banner-puntos {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 6px;
  padding: 6px 8px;
  background: rgba(0, 0, 0, .45);
  border-radius: 999px;
}

.banner-puntos button {
  position: relative;
  width: 8px;
  height: 8px;
  padding: 0;
  background: rgba(255, 255, 255, .45);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: width .3s ease, background .3s ease;
}

/* Área táctil más grande sin cambiar el dibujo */
.banner-puntos button::after {
  content: "";
  position: absolute;
  inset: -10px -4px;
}

.banner-puntos button.activo {
  width: 22px;
  background: var(--verde);
}

.ver-fotos {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}


/* ======================================================
   BOTONES
   ====================================================== */

.boton {
  display: block;
  width: 100%;
  padding: 16px;
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: var(--verde);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: background .15s ease;
}

.boton:hover { background: var(--verde-osc); }

.boton-sec {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: var(--verde-osc);
  background: var(--verde-claro);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}


/* ======================================================
   CUENTA REGRESIVA
   ====================================================== */

.cuenta {
  margin-top: 12px;
  padding: 16px;
  text-align: center;
  color: #fff;
  background: var(--oscuro);
  border-radius: 14px;
}

.countdown-label {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.time-box {
  padding: 8px 4px;
  background: rgba(255, 255, 255, .1);
  border-radius: 10px;
}

.time-box span {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.time-box small {
  font-size: 10px;
  opacity: .7;
}

.draw-date {
  margin: 10px 0 0;
  font-size: 13px;
  white-space: pre-line;
  opacity: .85;
}


/* ======================================================
   ÚLTIMAS COMPRAS
   ====================================================== */

.ultimas-compras {
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--tarjeta);
  border-radius: 14px;
}

.ultimas-titulo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
}

/* Puntito verde que "late" */
.punto-vivo {
  width: 8px;
  height: 8px;
  background: var(--verde);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(0, 166, 80, .5);
  animation: latido 1.8s infinite;
}

@keyframes latido {
  70% { box-shadow: 0 0 0 7px rgba(0, 166, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 166, 80, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .punto-vivo { animation: none; }
}

.ultimas-compras ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ultimas-compras li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 0;
  font-size: 14px;
  border-top: 1px solid var(--borde);
}

.ultimas-compras li span { color: var(--verde-osc); font-weight: 600; }

.ultimas-compras li small {
  margin-left: auto;
  font-size: 12px;
  white-space: nowrap;
  color: var(--suave);
}


/* ======================================================
   SECCIONES
   ====================================================== */

main section {
  margin-top: 16px;
  padding: 22px 18px;
  background: var(--tarjeta);
  border-radius: var(--radio);
}

main section h2 {
  margin: 0 0 4px;
  font-size: 21px;
  font-weight: 700;
}

.bajada {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--suave);
}


/* ======================================================
   PACKS
   ====================================================== */

.packs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pack-card {
  position: relative;
  padding: 16px 10px 14px;
  text-align: center;
  background: #fff;
  border: 2px solid var(--borde);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease;
}

.pack-card:hover,
.pack-card:focus-visible {
  border-color: var(--verde);
  outline: none;
}

.pack-card:active { transform: scale(.98); }

/* El nombre lo lee script.js para el formulario: se ve chico */
.pack-card h3 {
  margin: 0 0 2px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--suave);
}

.cantidad-chances {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.cantidad-chances .chances-antes {
  font-size: 13px;
  font-weight: 600;
  color: var(--suave);
  text-decoration: line-through;
  text-decoration-color: var(--naranja);
  text-decoration-thickness: 2px;
}

.cantidad-chances .chances-ahora {
  font-size: 20px;
  font-weight: 800;
  color: var(--naranja);
  text-shadow: 0 0 10px rgba(255, 106, 0, .55);
}

.precio-anterior {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  text-decoration: line-through;
  color: var(--suave);
}

.precio-actual {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 800;
}

.precio-unitario {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--verde-osc);
}

.pack-recomendado,
.pack-ancho { grid-column: 1 / -1; }

.pack-recomendado {
  margin-top: 8px;
  padding-top: 22px;
  border-color: var(--verde);
  background: #f2fbf6;
  box-shadow: 0 0 0 3px rgba(0, 166, 80, .15);
}

.pack-recomendado .precio-actual { font-size: 30px; }

.pack-recomendado h3 { display: none; }

.pack-cinta {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  color: #fff;
  background: var(--naranja);
  border-radius: 999px;
}


/* ===== Palabra clave ===== */

.palabra-clave { margin-top: 16px; }

.palabra-clave-form {
  display: flex;
  gap: 8px;
}

.palabra-clave-form input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  font: inherit;
  text-transform: uppercase;
  border: 1px solid var(--borde);
  border-radius: 10px;
}

.palabra-clave-form input::placeholder { text-transform: none; }

.palabra-clave-form button {
  padding: 0 18px;
  font: inherit;
  font-weight: 700;
  color: var(--verde-osc);
  background: var(--verde-claro);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

#mensajeDescuento {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
}

#mensajeDescuento:empty { display: none; }

.palabra-clave-ayuda {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--suave);
}

.seguro {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--suave);
}


/* ===== Compras cerradas (lo activa barra-compra.js) ===== */

body.participaciones-cerradas .palabra-clave,
body.participaciones-cerradas .seguro { display: none; }

body.participaciones-cerradas .pack-card {
  opacity: .45;
  filter: grayscale(.8);
  cursor: not-allowed;
}

body.participaciones-cerradas .packs-grid::before {
  content: "🔒 Compras cerradas · ¡Atentos al próximo sorteo!";
  grid-column: 1 / -1;
  padding: 12px;
  font-weight: 700;
  text-align: center;
  color: #7c2d12;
  background: #ffedd5;
  border-radius: 12px;
}

body.participaciones-cerradas .participar-btn.boton-proximo {
  background: #25d366;
}


/* ======================================================
   PASOS
   ====================================================== */

.pasos,
.compra-pasos {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pasos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
}

.pasos li {
  padding: 12px 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  background: var(--fondo);
  border-radius: 12px;
}

.pasos b,
.compra-pasos b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: 0 auto 6px;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  background: var(--verde);
  border-radius: 50%;
}


/* ======================================================
   COMPARTIR (link personal)
   ====================================================== */

main section.compartir {
  text-align: center;
  background: linear-gradient(135deg, #fff7ed, #ecfdf5);
  border: 1px solid #fed7aa;
}

.compartir-nota {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--suave);
}

/* Seguir el canal de WhatsApp (después de enviar el comprobante) */
.success-canal {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  padding: 14px;
  font-size: 13px;
  background: #ecfdf3;
  border: 1px solid #a7f3d0;
  border-radius: 14px;
}

.success-canal b { font-size: 15px; }

.success-canal span { color: var(--suave); }

.success-canal a {
  display: block;
  margin-top: 4px;
  padding: 14px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: #25d366;
  border-radius: 12px;
}

.success-compartir {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  padding: 14px;
  font-size: 13px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 14px;
}

.success-compartir b { font-size: 15px; }

.success-compartir span { color: var(--suave); }

.success-box .success-compartir button {
  margin-top: 4px;
  color: #fff;
  background: var(--naranja);
}


/* ======================================================
   GANADORES (ganadores.js)
   ====================================================== */

.contador-ganadores {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 6px;
  padding: 12px 14px;
  background: var(--verde-claro);
  border-radius: 12px;
}

.contador-ganadores b {
  font-family: 'Poppins', sans-serif;
  font-size: 30px;
  color: var(--verde-osc);
}

.contador-ganadores span { font-size: 13px; line-height: 1.35; }

/* Entregas con foto grande: premio y ganador sobre la imagen */
.resena {
  position: relative;
  margin-top: 12px;
  overflow: hidden;
  background: var(--oscuro);
  border-radius: 16px;
}

.resena[hidden] { display: none; }

/* Foto + texto encima (el texto se ubica respecto de la foto) */
.resena-marco { position: relative; }

/* Premio principal: botón y lista de los otros ganadores del sorteo */
.resena-otros-boton {
  display: block;
  width: 100%;
  padding: 16px 14px;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  color: #111;
  text-align: center;
  cursor: pointer;
  background: #ffcc00;
  border: 0;
}

.resena-otros-boton small {
  display: block;
  font-size: 13px;
  font-weight: 700;
  opacity: .75;
}

/* Abierto: vuelve a ser discreto */
.resena-otros-boton[aria-expanded="true"] {
  font-size: 14px;
  color: #ffcc00;
  background: rgba(255, 255, 255, .06);
}

.resena-otros {
  margin: 0;
  padding: 4px 16px 10px;
  list-style: none;
}

.resena-otros[hidden] { display: none; }

.resena-otros li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px dashed rgba(255, 255, 255, .15);
}

.resena-otros li:last-child { border-bottom: 0; }

.resena-otros .ganador-premio { color: rgba(255, 255, 255, .9); }
.resena-otros .ganador-ciudad { color: rgba(255, 255, 255, .6); }
.resena-otros li { flex-wrap: wrap; }
.resena-otros .ganador-quien { margin-left: auto; font-size: 16px; color: #fff; white-space: nowrap; overflow-wrap: normal; }
.resena-otros a.ganador-quien { font-size: 16px; font-weight: 800; color: #ffcc00; }

.resena-foto { display: block; }

.resena-foto img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.resena-foto.ancho img { aspect-ratio: 4 / 3; }

.resena-texto {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 56px 16px 14px;
  color: #fff;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(0, 0, 0, .85) 55%);
}

.resena-texto a { pointer-events: auto; }

/* Nombre del ganador: grande y llamativo */
.resena .resena-ganador .nombre-real {
  display: inline-block;
  margin: 4px 0 2px;
  padding: 5px 12px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  color: #1a1300;
  background: linear-gradient(135deg, #ffe08a, #ffcc00);
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(255, 204, 0, .35);
  overflow-wrap: anywhere;
}

.verificado {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  color: #fff;
  pointer-events: none;
  background: var(--verde-osc);
  border-radius: 999px;
}

.verificado.pendiente { background: var(--naranja); }

/* Frase del ganador en su foto (ganadores.js, "frase") */
.resena-texto .resena-frase {
  margin-top: 6px;
  font-size: 14px;
  font-style: italic;
  line-height: 1.35;
  opacity: .95;
}

/* Cartel de la entrega del sorteo más reciente (ganadores.js) */
.resena-reciente {
  display: inline-block;
  margin-bottom: 6px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2px;
  color: #3b2a00;
  background: linear-gradient(135deg, #ffe08a, #f5b700);
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(245, 183, 0, .45);
}

.resena-instagram {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  pointer-events: none;
  background: rgba(0, 0, 0, .6);
  border-radius: 999px;
}

.resena p { margin: 2px 0 0; font-size: 13px; color: rgba(255, 255, 255, .85); }

.resena .premio {
  margin: 0 0 2px;
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
}

/* Lista completa, agrupada por sorteo */
.ganadores-todos[hidden] { display: none; }

.ganadores-sorteo {
  margin-top: 14px;
  padding: 14px;
  background: var(--fondo);
  border-radius: 14px;
}

.ganadores-sorteo header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.ganadores-sorteo h3 { margin: 0; font-size: 15px; }

.ganadores-sorteo header span {
  flex: none;
  font-size: 12px;
  color: var(--suave);
}

.ganadores-sorteo ul { margin: 0; padding: 0; list-style: none; }

.ganadores-sorteo li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  font-size: 13px;
  border-bottom: 1px dashed var(--borde);
}

.ganadores-sorteo li:last-child { border-bottom: 0; }

.ganador-premio { color: var(--texto); }

.ganador-ciudad {
  display: block;
  margin-top: 1px;
  font-size: 12px;
  color: var(--suave);
}

.ganador-quien {
  font-weight: 700;
  text-align: right;
  overflow-wrap: anywhere;
  color: var(--suave);
}

a.ganador-quien { color: var(--verde-osc); text-decoration: none; }

.ganadores-video {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
}

.ganadores-instagram {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.ganadores-ver-mas[hidden] { display: none; }


/* ======================================================
   RANKING (script.js)
   ====================================================== */

.ranking-live[hidden] { display: none !important; }

.ranking-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--borde);
}

.ranking-card:last-child { border-bottom: 0; }

.ranking-position {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  font-size: 20px;
  font-weight: 800;
  background: var(--fondo);
  border-radius: 50%;
}

.ranking-name { font-weight: 700; }

.ranking-chances { font-size: 12px; font-weight: 600; color: var(--verde-osc); }


/* ======================================================
   VER NÚMEROS (script.js)
   ====================================================== */

.consulta-form {
  display: flex;
  gap: 8px;
}

.consulta-form input {
  flex: 1;
  min-width: 0;
  padding: 13px 14px;
  font: inherit;
  font-size: 16px;
  border: 1px solid var(--borde);
  border-radius: 10px;
}

.consulta-form button {
  padding: 0 18px;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--oscuro);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

#resultadoNumeros { margin-top: 14px; font-size: 14px; }

#resultadoNumeros:empty { display: none; }

#resultadoNumeros p { margin: 4px 0; }

.consulta-resumen {
  padding: 12px;
  text-align: center;
  color: var(--verde-osc);
  background: var(--verde-claro);
  border-radius: 12px;
}

.consulta-compra,
.consulta-resultado {
  margin-top: 10px;
  padding: 14px;
  background: var(--fondo);
  border-radius: 12px;
}

.consulta-compra h3,
.consulta-resultado h3 { margin: 0 0 6px; font-size: 15px; }

.consulta-numeros { margin-top: 8px; line-height: 2; }

.consulta-numeros strong { display: block; line-height: 1.4; }

.consulta-numeros span {
  display: inline-block;
  padding: 0 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: 6px;
}


/* ======================================================
   FOTOS DEL PREMIO
   ====================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.gallery-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #e5e7eb;
  border-radius: 10px;
  cursor: zoom-in;
}

/* Solo filas completas (3 por fila) */
.gallery-img:nth-child(3n + 1):nth-last-child(-n + 2),
.gallery-img:nth-child(3n + 1):nth-last-child(-n + 2) ~ .gallery-img {
  display: none;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .94);
}

.image-modal.show { display: flex; }

.image-modal img {
  max-width: 100%;
  max-height: 84vh;
  border-radius: 10px;
}

.close-image,
.gallery-arrow {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-size: 28px;
  color: #fff;
  background: rgba(255, 255, 255, .15);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.close-image { top: 14px; right: 14px; }

.gallery-arrow { top: 50%; transform: translateY(-50%); }
.gallery-arrow.left { left: 10px; }
.gallery-arrow.right { right: 10px; }

.gallery-counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: #fff;
}


/* ======================================================
   PREGUNTAS FRECUENTES
   ====================================================== */

.faq details { border-bottom: 1px solid var(--borde); }

.faq details:last-of-type { border-bottom: 0; }

.faq summary {
  position: relative;
  padding: 14px 30px 14px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 2px;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--verde);
}

.faq details[open] summary::after { content: "−"; }

.faq details p {
  margin: 0;
  padding: 0 0 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--suave);
}

.faq details strong { color: var(--texto); }

.faq-terminos {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
}


/* ======================================================
   PIE
   ====================================================== */

.pie {
  margin-top: 28px;
  padding: 28px 16px 40px;
  text-align: center;
  color: #cbd5e1;
  background: var(--oscuro);
}

.pie-titulo { margin: 0 0 14px; font-size: 15px; }

.pie-redes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.pie-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  text-align: left;
  text-decoration: none;
  color: #fff;
  border-radius: 12px;
}

.pie-btn svg { width: 26px; height: 26px; }

.pie-btn small { display: block; font-size: 11px; opacity: .85; }

.pie-btn b { font-size: 14px; }

.pie-instagram { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }

.pie-youtube { background: #ff0000; }

.pie-whatsapp { background: #25d366; }

.pie-links { margin: 20px 0 0; font-size: 13px; }

.pie-links a { color: #fff; }

.pie-legal { margin: 10px 0 0; font-size: 12px; color: #64748b; }


/* ======================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ====================================================== */

.wp-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
  transition: bottom .2s ease;
}

.wp-float svg { width: 30px; height: 30px; }

body.con-barra-compra .wp-float { bottom: 86px; }


/* ======================================================
   BARRA DE COMPRA FIJA (barra-compra.js)
   ====================================================== */

.barra-compra {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: #fff;
  box-shadow: 0 -6px 24px rgba(15, 23, 42, .1);
  transform: translateY(110%);
  transition: transform .2s ease;
}

.barra-compra.visible { transform: none; }

.barra-compra-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 528px;
  margin: 0 auto;
  padding: 14px 18px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: var(--verde);
  border-radius: 12px;
}

.barra-compra-precio { font-size: 13px; opacity: .9; }

body.con-barra-compra { padding-bottom: 80px; }


/* ======================================================
   AVISO DE COMPRA RECIENTE (script.js)
   ====================================================== */

.purchase-notification {
  position: fixed;
  left: 12px;
  bottom: 16px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 90px);
  padding: 10px 14px 10px 10px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity .25s ease, transform .25s ease;
}

.purchase-notification.show {
  opacity: 1;
  transform: none;
}

body.con-barra-compra .purchase-notification { bottom: 86px; }

.purchase-notification-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  font-size: 18px;
  background: var(--verde-claro);
  border-radius: 50%;
}

.purchase-notification-content strong,
.purchase-notification-content span,
.purchase-notification-content small { display: block; }

.purchase-notification-content strong { font-size: 13px; }

.purchase-notification-content span { font-size: 12px; color: var(--texto); }

.purchase-notification-content small { font-size: 11px; color: var(--suave); }


/* ======================================================
   MODAL DE COMPRA (script.js)
   ====================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(15, 23, 42, .6);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}

.modal.show { opacity: 1; visibility: visible; }

.modal-content {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 94vh;
  /* En el celular, vh incluye la barra del navegador: con dvh entra en lo que se ve */
  max-height: 90dvh;
  overflow-y: auto;
  padding: 22px 18px 24px;
  background: #fff;
  border-radius: 20px 20px 0 0;
  transform: translateY(30px);
  transition: transform .25s ease;
}

.modal.show .modal-content { transform: none; }

@media (min-width: 600px) {
  .modal { align-items: center; padding: 16px; }
  .modal-content { border-radius: 20px; }
}

.modal-content h2 { margin: 0 40px 10px 0; font-size: 21px; }

/* La X queda pegada arriba aunque bajes por el formulario */
.close-modal {
  position: sticky;
  top: 0;
  z-index: 5;
  float: right;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: -10px -8px 0 0;
  font-size: 26px;
  line-height: 1;
  color: var(--texto);
  background: var(--fondo);
  border: 1px solid var(--borde);
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
  cursor: pointer;
}

.selected-pack {
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--verde-osc);
  background: var(--verde-claro);
  border-radius: 12px;
}

.compra-pasos {
  display: grid;
  gap: 8px;
  margin: 14px 0 10px;
}

.compra-pasos li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}

.compra-pasos b {
  flex: none;
  width: 26px;
  height: 26px;
  margin: 0;
  font-size: 13px;
}

.bank-info {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.bank-fila {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: var(--fondo);
  border-radius: 12px;
}

.bank-fila p {
  margin: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.bank-fila small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--suave);
}

.copy-btn {
  flex: none;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--verde-osc);
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: 8px;
  cursor: pointer;
}

.purchase-form {
  display: grid;
  gap: 10px;
}

.form-doble {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.purchase-form input {
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  font: inherit;
  font-size: 16px;
  border: 1px solid var(--borde);
  border-radius: 10px;
}

.purchase-form input:focus,
.palabra-clave-form input:focus,
.consulta-form input:focus {
  outline: 2px solid var(--verde);
  outline-offset: -1px;
}

.upload-btn {
  display: block;
  padding: 14px;
  font-weight: 700;
  text-align: center;
  color: var(--texto);
  background: var(--fondo);
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  cursor: pointer;
}

.purchase-form button[type="submit"] {
  padding: 16px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--verde);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}

.purchase-form button[type="submit"]:disabled { opacity: .7; cursor: wait; }

.acepta-terminos {
  margin: 0;
  font-size: 12px;
  text-align: center;
  color: var(--suave);
}


/* ======================================================
   MODAL COMPROBANTE ENVIADO
   ====================================================== */

.success-modal {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, .6);
}

.success-modal.show { display: flex; }

.success-box {
  width: 100%;
  max-width: 380px;
  max-height: 100%;
  overflow-y: auto;
  padding: 26px 20px;
  text-align: center;
  background: #fff;
  border-radius: 20px;
}

.success-icono { font-size: 44px; }

.success-box h2 { margin: 6px 0 8px; font-size: 22px; }

.success-box p { margin: 0 0 18px; font-size: 14px; line-height: 1.55; color: var(--suave); }

.success-box button {
  width: 100%;
  padding: 14px;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--verde);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}


/* ======================================================
   CARTELES DE CIERRE Y PRÓXIMO SORTEO
   (cartel-cierre.js y cartel-proximo.js)
   ====================================================== */

.cierre-overlay {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, .6);
  opacity: 0;
  transition: opacity .25s ease;
}

.cierre-overlay.activo { opacity: 1; }

.cierre-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding: 26px 20px 22px;
  text-align: center;
  background: #fff;
  border-radius: 20px;
  transform: scale(.95);
  transition: transform .25s ease;
}

.cierre-overlay.activo .cierre-card { transform: none; }

.cierre-cerrar {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  font-size: 16px;
  color: var(--texto);
  background: var(--fondo);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.cierre-reloj { font-size: 40px; }

.cierre-etiqueta {
  display: inline-block;
  margin: 6px 0 4px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  background: var(--naranja);
  border-radius: 999px;
}

.cierre-titulo { margin: 6px 0; font-size: 22px; }

.cierre-subtitulo { margin: 0 0 14px; color: var(--suave); }

.cierre-contador {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.cierre-caja {
  min-width: 62px;
  padding: 8px 4px;
  color: #fff;
  background: var(--oscuro);
  border-radius: 10px;
}

.cierre-caja span {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cierre-caja small { font-size: 10px; opacity: .7; }

.cierre-overlay.urgente .cierre-caja { background: var(--rojo); }

.cierre-texto {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--suave);
}

.cierre-texto strong { color: var(--texto); }

.cierre-cta {
  display: block;
  padding: 15px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: var(--verde);
  border-radius: 12px;
}

.proximo-cta { background: #25d366; }


/* ======================================================
   PANTALLAS GRANDES
   ====================================================== */

@media (min-width: 900px) {

  .contenedor { max-width: 600px; }

  .packs-grid { grid-template-columns: repeat(2, 1fr); }

}


/* ======================================================
   RULETA DE PREMIOS (ruleta.js)
   ====================================================== */

.ruleta-llamada {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 16px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--naranja), #C2185B);
  border: 0;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(255, 106, 0, .35);
  cursor: pointer;
  animation: ruleta-latido 1.6s ease-in-out infinite;
}

@keyframes ruleta-latido {
  50% { transform: scale(1.025); }
}

.ruleta-overlay {
  position: fixed;
  inset: 0;
  z-index: 850;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, .7);
}

.ruleta-caja {
  position: relative;
  width: 100%;
  max-width: 380px;
  max-height: 94vh;
  overflow-y: auto;
  padding: 24px 18px;
  background: #fff;
  border-radius: 20px;
}

.ruleta-cerrar {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 34px;
  height: 34px;
  background: var(--fondo);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.ruleta-contenido { text-align: center; }

.ruleta-contenido h3 { margin: 0 34px 8px; font-size: 20px; }

.ruleta-contenido p { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: var(--suave); }

/* Cartel de la ruleta: fondo de noche de casino */
.ruleta-caja.ruleta-show {
  max-width: 400px;
  overflow-x: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 213, 74, .28), transparent 55%),
    linear-gradient(170deg, #2a0f5c 0%, #160733 60%, #0d0420 100%);
  border: 2px solid rgba(255, 213, 74, .55);
  box-shadow: 0 0 0 4px rgba(255, 213, 74, .12), 0 24px 60px rgba(0, 0, 0, .55);
  animation: ruleta-entrar .45s cubic-bezier(.2, 1.4, .4, 1);
}

@keyframes ruleta-entrar {
  from { opacity: 0; transform: scale(.8) translateY(20px); }
}

.ruleta-show .ruleta-cerrar { color: #fff; background: rgba(255, 255, 255, .14); }

.ruleta-show .ruleta-contenido h3 { color: #fff; font-family: 'Poppins', sans-serif; line-height: 1.25; }

.ruleta-show .ruleta-contenido p { color: rgba(255, 255, 255, .8); }

.ruleta-show .ruleta-aviso { color: rgba(255, 255, 255, .65); }

.ruleta-contenido p.ruleta-chapita {
  display: inline-block;
  margin: 0 0 10px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  color: #2a0f5c;
  background: linear-gradient(135deg, #FFE27A, #FFB800);
  border-radius: 999px;
}

/* Marco con lamparitas y flecha dorada arriba */
.ruleta-marco {
  position: relative;
  width: min(300px, 100%);
  margin: 22px auto 16px;
}

.ruleta-aro {
  position: relative;
  aspect-ratio: 1;
  padding: 20px;
  background: radial-gradient(circle, #FFD54A 0%, #E0A100 70%, #A86E00 100%);
  border-radius: 50%;
  box-shadow: 0 0 34px rgba(255, 196, 0, .45), inset 0 0 0 3px rgba(255, 255, 255, .35);
}

.ruleta-luz {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  background: #fff8d6;
  border-radius: 50%;
  box-shadow: 0 0 8px 2px #FFE27A;
  z-index: 1;
}

.ruleta-flecha {
  position: absolute;
  top: -14px;
  left: 50%;
  z-index: 3;
  width: 34px;
  height: 42px;
  background: linear-gradient(180deg, #fff 0%, #FFD54A 40%, #E0A100 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .4));
  transform: translateX(-50%);
}

.ruleta-rueda {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .25), inset 0 0 30px rgba(0, 0, 0, .35);
  transition: transform 5s cubic-bezier(.1, .75, .12, 1);
}

.ruleta-separador {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 50%;
  margin-left: -1.5px;
  background: linear-gradient(180deg, #FFE27A, #C98A00);
  transform-origin: 50% 100%;
}

.ruleta-rueda span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 92px;
  margin-top: -14px;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
  transform-origin: 0 14px;
}

.ruleta-centro {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  font-size: 28px;
  background: radial-gradient(circle at 35% 30%, #fff 0%, #FFE27A 35%, #D49400 100%);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .45);
  transform: translate(-50%, -50%);
}

/* Las lamparitas titilan, más rápido mientras gira */
.ruleta-luz { animation: ruleta-titilar 1.2s steps(1) infinite; }
.ruleta-luz.par { animation-delay: .6s; }
.girando .ruleta-luz { animation-duration: .3s; }
.girando .ruleta-luz.par { animation-delay: .15s; }

@keyframes ruleta-titilar {
  50% { background: #ff9d3b; box-shadow: 0 0 4px 1px #ff9d3b; }
}

.ruleta-boton.ruleta-girar {
  font-size: 17px;
  color: #2a0f5c;
  background: linear-gradient(135deg, #FFE27A, #FFB800);
  box-shadow: 0 8px 22px rgba(255, 184, 0, .4);
  animation: ruleta-latido 1.4s ease-in-out infinite;
}

.ruleta-boton.ruleta-girar:disabled { animation: none; }

.ruleta-boton.ruleta-otra { background: linear-gradient(135deg, #7C3AED, #E8327F); }

.ruleta-trofeo {
  font-size: 64px;
  line-height: 1;
  margin: 6px 0 10px;
  animation: ruleta-salto .6s ease-out 2;
}

@keyframes ruleta-salto {
  50% { transform: scale(1.25) rotate(-8deg); }
}

.ruleta-show .ruleta-contenido h3.ruleta-premio {
  font-size: 24px;
  color: #FFE27A;
}

/* Papelitos al ganar */
.ruleta-papelito {
  position: absolute;
  top: -12px;
  z-index: 5;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  pointer-events: none;
  animation: ruleta-caer 2.2s ease-in forwards;
}

@keyframes ruleta-caer {
  to { transform: translateY(520px) rotate(var(--giro)); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ruleta-caja.ruleta-show, .ruleta-luz, .ruleta-girar, .ruleta-trofeo { animation: none; }
}

.ruleta-boton {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--verde);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}

.ruleta-boton:disabled { opacity: .7; cursor: wait; }

.ruleta-aviso { display: inline-block; margin-top: 12px; font-size: 12px; }

@media (prefers-reduced-motion: reduce) {
  .ruleta-llamada { animation: none; }
  .ruleta-rueda { transition-duration: .2s; }
}


/* ======================================================
   DADOS (dados.js, palabra clave DADO)
   ====================================================== */

.dados-mesa {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin: 20px 0 16px;
}

/* Dado dibujado: grilla de 3x3 puntos */
.dados-dado {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 4px;
  width: 84px;
  height: 84px;
  padding: 11px;
  background: linear-gradient(145deg, #fff, #e9e4f5);
  border: 2px solid #d6cfe8;
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .18), inset 0 -4px 0 rgba(124, 58, 237, .12);
}

.dados-dado i {
  display: block;
  border-radius: 50%;
}

.dados-dado i.on { background: #1f1147; }

.dados-mesa.tirando .dados-dado { animation: dados-sacudir .3s linear infinite; }

.dados-mesa.tirando .dados-dado:last-child { animation-direction: reverse; }

.dados-mesa.dobles .dados-dado {
  border-color: #7C3AED;
  animation: dados-salto .5s ease-out 2;
}

.dados-mesa.dobles .dados-dado i.on { background: #7C3AED; }

@keyframes dados-sacudir {
  25% { transform: rotate(-18deg) translateY(-8px); }
  75% { transform: rotate(18deg) translateY(5px); }
}

@keyframes dados-salto {
  50% { transform: scale(1.15); }
}

.dados-dni {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  font-size: 16px;
  text-align: center;
  border: 2px solid #d6cfe8;
  border-radius: 12px;
}

.ruleta-contenido p.dados-error { margin: 6px 0 0; min-height: 1em; color: #dc2626; }

.dados-tarjetas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.dados-tarjeta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 12px;
  font: inherit;
  color: #fff;
  text-align: center;
  background: linear-gradient(160deg, #7C3AED, #1877F2);
  border: 0;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(124, 58, 237, .3);
  cursor: pointer;
  transition: transform .15s;
}

.dados-tarjeta + .dados-tarjeta { background: linear-gradient(160deg, var(--naranja), #C2185B); }

.dados-tarjeta strong { font-family: 'Poppins', sans-serif; font-size: 16px; }

.dados-tarjeta span { font-size: 13px; line-height: 1.4; }

.dados-tarjeta:disabled { opacity: .45; cursor: wait; }

.dados-tarjeta.elegida { opacity: 1; transform: scale(1.04); }

.dados-opcion small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  opacity: .9;
}

.ruleta-contenido p.dados-destacado { font-weight: 700; color: var(--oscuro); }

.ruleta-contenido p.dados-aviso { margin: 12px 0 0; font-size: 12px; }

@media (prefers-reduced-motion: reduce) {
  .dados-mesa .dados-dado { animation: none !important; }
}


/* ======================================================
   RULETA DEL CIELO (ruleta-cielo.js, palabra PAPALEON)
   ====================================================== */

.cielo-overlay {
  position: fixed;
  inset: 0;
  z-index: 860;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
  background: rgba(12, 74, 110, .55);
}

.cielo-caja {
  position: relative;
  width: 100%;
  max-width: 390px;
  max-height: 94vh;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 24px 18px 18px;
  text-align: center;
  color: #0c3a66;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 236, 160, .95), rgba(255, 236, 160, 0) 45%),
    linear-gradient(180deg, #8fd3ff 0%, #c9ecff 55%, #f2faff 100%);
  border: 3px solid #e7c25a;
  border-radius: 24px;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .5), 0 20px 50px rgba(12, 74, 110, .45);
}

/* Nubes que pasan despacio */
.cielo-nube {
  position: absolute;
  width: 90px;
  height: 30px;
  background: #fff;
  border-radius: 30px;
  opacity: .85;
  pointer-events: none;
  animation: cielo-nube 18s linear infinite;
}

.cielo-nube::before,
.cielo-nube::after {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 50%;
}

.cielo-nube::before { width: 40px; height: 40px; top: -20px; left: 14px; }
.cielo-nube::after { width: 30px; height: 30px; top: -13px; left: 44px; }

.cielo-nube-1 { top: 70px; left: -100px; }
.cielo-nube-2 { top: 230px; left: -100px; transform: scale(.7); animation-duration: 24s; animation-delay: -9s; }
.cielo-nube-3 { top: 400px; left: -100px; transform: scale(.85); animation-duration: 21s; animation-delay: -15s; }

@keyframes cielo-nube {
  to { left: 110%; }
}

.cielo-cerrar {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  color: #0c3a66;
  background: rgba(255, 255, 255, .8);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.cielo-contenido { position: relative; z-index: 1; }

.cielo-etiqueta {
  display: inline-block;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .5px;
  color: #7a5a00;
  background: linear-gradient(135deg, #fff3c4, #f5d36b);
  border-radius: 999px;
}

.cielo-titulo {
  margin: 10px 34px 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  line-height: 1.2;
  color: #0c3a66;
  text-shadow: 0 2px 0 #fff;
}

.cielo-bajada { margin: 0 0 6px; font-size: 14px; line-height: 1.45; color: #1e4f80; }

/* La aureola dorada marca el premio, arriba y al centro */
.cielo-marco {
  position: relative;
  width: min(290px, 100%);
  margin: 26px auto 14px;
}

.cielo-marco::before {
  content: "😇";
  position: absolute;
  top: -26px;
  left: 50%;
  z-index: 2;
  font-size: 30px;
  line-height: 1;
  transform: translateX(-50%);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25));
}

.cielo-marco::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 50%;
  z-index: 2;
  border: 10px solid transparent;
  border-top: 16px solid #d4a514;
  border-bottom: 0;
  transform: translateX(-50%);
}

.cielo-rueda {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: conic-gradient(
    #6cc4f5 0deg 60deg, #ffffff 60deg 120deg,
    #6cc4f5 120deg 180deg, #ffffff 180deg 240deg,
    #6cc4f5 240deg 300deg, #ffffff 300deg 360deg
  );
  border: 7px solid #e7c25a;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #fff, 0 0 26px rgba(255, 214, 90, .8);
  transition: transform 4.5s cubic-bezier(.12, .7, .15, 1);
}

.cielo-rueda span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 104px;
  margin-top: -16px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  color: #0c3a66;
  transform-origin: 0 16px;
}

.cielo-rueda span b { font-size: 15px; font-weight: 900; }

.cielo-centro {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  display: grid;
  place-items: center;
  font-size: 32px;
  background: radial-gradient(circle, #fffbe8, #f5d36b);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(255, 214, 90, .9);
}

.cielo-boton {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #5a3f00;
  background: linear-gradient(135deg, #fff1b8, #e9b930);
  border: 2px solid #fff;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(212, 165, 20, .45);
  cursor: pointer;
}

.cielo-boton:disabled { opacity: .75; cursor: wait; }

.cielo-reintentar {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #0c3a66;
  background: rgba(255, 255, 255, .75);
  border: 2px dashed #6cc4f5;
  border-radius: 14px;
  cursor: pointer;
}

.cielo-probabilidades {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.4;
  color: #3b6a96;
}

.cielo-premio {
  display: grid;
  gap: 2px;
  margin: 14px auto 10px;
  padding: 16px;
  background: rgba(255, 255, 255, .85);
  border: 2px solid #e7c25a;
  border-radius: 18px;
}

.cielo-premio b { font-size: 22px; }
.cielo-premio strong { font-size: 34px; color: #b8860b; }
.cielo-premio small { font-size: 12px; color: #3b6a96; }

/* Plumas y estrellitas que caen al ganar */
.cielo-pluma {
  position: absolute;
  top: -30px;
  z-index: 3;
  font-style: normal;
  pointer-events: none;
  animation: cielo-cae 3.2s ease-in forwards;
}

@keyframes cielo-cae {
  to { transform: translateY(105vh) rotate(260deg); opacity: .2; }
}

@media (prefers-reduced-motion: reduce) {
  .cielo-nube { animation: none; }
  .cielo-rueda { transition-duration: .2s; }
}


/* Botón "Ya compré: ver mis números": oscuro, para que se vea sobre el blanco */
.boton-sec.consultar-btn {
  font-weight: 700;
  color: #fff;
  background: var(--oscuro);
}


/* ======================================================
   NO SE PUDO ENVIAR EL COMPROBANTE (script.js)
   ====================================================== */

.error-envio { z-index: 1100; }

.error-envio .cierre-texto { white-space: pre-line; }

.error-envio-reintentar {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 13px;
  font: inherit;
  font-weight: 700;
  color: var(--texto);
  background: var(--fondo);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}

.error-envio-codigo {
  display: block;
  margin-top: 12px;
  font-size: 11px;
  color: var(--suave);
}


/* ======================================================
   CÓDIGO 3XHOY (script.js, abrirPromo3xHoy)
   ====================================================== */

.promo-3xhoy { z-index: 1050; }

.promo-3xhoy-lista { display: grid; gap: 10px; }

.promo-3xhoy-pack {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "cantidad precio" "unitario precio";
  align-items: center;
  gap: 2px 12px;
  padding: 14px 16px;
  font: inherit;
  text-align: left;
  color: var(--texto);
  background: #fff;
  border: 2px solid var(--borde);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease;
}

.promo-3xhoy-pack:hover,
.promo-3xhoy-pack:focus-visible { border-color: var(--verde); transform: translateY(-1px); }

.promo-3xhoy-pack:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.promo-3xhoy-pack b { grid-area: cantidad; font-family: 'Poppins', sans-serif; font-size: 17px; }

.promo-3xhoy-pack small { grid-area: unitario; font-size: 12px; color: var(--suave); }

.promo-3xhoy-pack strong {
  grid-area: precio;
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  color: var(--verde);
}


/* ======================================================
   PALABRA CLAVE: CUPÓN ANIMADO
   ====================================================== */
/* Los pasos se iluminan desde script.js (CUPÓN DE PALABRA CLAVE) */

.cupon-clave {
  position: relative;
  overflow: hidden;
  padding: 18px;
  background: #fff;
  border: 2px dashed var(--naranja);
  border-radius: 18px;
}

/* Muescas de cupón */
.cupon-clave::before,
.cupon-clave::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  background: var(--fondo);
  border: 2px dashed var(--naranja);
  border-radius: 50%;
}

.cupon-clave::before { left: -13px; }
.cupon-clave::after { right: -13px; }

/* Brillo que cruza el cupón */
.cupon-brillo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 106, 0, .14) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: cupon-brillo 3.2s ease-in-out infinite;
}

@keyframes cupon-brillo { 60%, 100% { transform: translateX(100%); } }

.cupon-cabecera { position: relative; display: flex; align-items: center; gap: 12px; }

.cupon-sello {
  flex: none;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
  color: #fff;
  background: var(--naranja);
  border-radius: 50%;
  animation: cupon-latido 1.6s ease-in-out infinite;
}

.cupon-sello big { display: block; font-size: 20px; }

@keyframes cupon-latido { 50% { transform: scale(1.08) rotate(-4deg); } }

.cupon-cabecera h3 { margin: 0; font-family: 'Poppins', sans-serif; font-size: 18px; line-height: 1.2; }

.cupon-cabecera p { margin: 3px 0 0; font-size: 13px; color: var(--suave); }

.cupon-pasos {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.cupon-pasos li {
  padding: 9px 6px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  background: #fff7f0;
  border-radius: 10px;
  opacity: .45;
  transition: opacity .3s ease, transform .3s ease, background .3s ease;
}

.cupon-pasos li span { display: block; margin-bottom: 3px; font-size: 20px; }

.cupon-pasos li.activo { opacity: 1; transform: translateY(-2px); background: #ffe8d6; }

.cupon-wp {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: #25d366;
  border-radius: 14px;
}

/* Onda que sale del botón */
.cupon-wp::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .55);
  animation: cupon-onda 2s ease-out infinite;
}

@keyframes cupon-onda { to { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); } }

.cupon-clave .palabra-clave-form { position: relative; margin-top: 12px; }

.cupon-clave .palabra-clave-form input {
  padding: 13px 14px;
  font-weight: 700;
  letter-spacing: 1px;
  border: 2px solid var(--borde);
  border-radius: 12px;
}

.cupon-clave .palabra-clave-form input::placeholder { font-weight: 500; letter-spacing: 0; }

.cupon-clave .palabra-clave-form button {
  padding: 0 18px;
  font-weight: 800;
  color: #fff;
  background: var(--verde);
  border-radius: 12px;
}

.cupon-clave #mensajeDescuento { position: relative; }

/* Confeti al aplicar bien la clave */
.confeti-clave {
  position: fixed;
  top: -10px;
  z-index: 2000;
  width: 8px;
  height: 14px;
  pointer-events: none;
  animation: confeti-caer 1.6s ease-in forwards;
}

@keyframes confeti-caer { to { transform: translateY(105vh) rotate(540deg); opacity: .8; } }

@media (prefers-reduced-motion: reduce) {
  .cupon-brillo,
  .cupon-sello,
  .cupon-wp::after { animation: none; }
  .cupon-pasos li { opacity: 1; transition: none; }
  .confeti-clave { display: none; }
}


/* ======================================================
   AYUDA POR WHATSAPP (script.js, abrirAyudaWhatsapp)
   ====================================================== */

/* Flotante, abajo a la izquierda (el canal está a la derecha) */
.ayuda-float {
  position: fixed;
  left: 16px;
  bottom: 22px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100vw - 100px);
  padding: 10px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--texto);
  background: #fff;
  border: 2px solid var(--naranja);
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
  cursor: pointer;
  transition: bottom .2s ease;
  animation: ayuda-aviso 6s ease-in-out infinite;
}

/* Un saltito cada tanto para que se vea */
@keyframes ayuda-aviso {
  0%, 88%, 100% { transform: none; }
  92% { transform: translateY(-5px); }
  96% { transform: translateY(0); }
}

body.con-barra-compra .ayuda-float { bottom: 92px; }

/* Con la compra abierta se usa el botón de adentro */
body.modal-open .ayuda-float,
body.participaciones-cerradas .ayuda-float { display: none; }

/* Dentro de la compra, debajo de "Adjuntar comprobante" */
.ayuda-comprobante {
  width: 100%;
  padding: 11px 12px;
  font: inherit;
  font-size: 13px;
  line-height: 1.35;
  color: #9a3412;
  text-align: center;
  background: #fff7f0;
  border: 1px dashed var(--naranja);
  border-radius: 12px;
  cursor: pointer;
}

.ayuda-comprobante b { color: #128c7e; }

@media (prefers-reduced-motion: reduce) {
  .ayuda-float { animation: none; }
}


/* Aviso debajo de "Adjuntar captura del comprobante" */
.upload-ayuda {
  margin: -4px 0 0;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  color: var(--suave);
}

.upload-ayuda b { color: var(--texto); }


/* ======================================================
   ABRIR EN EL NAVEGADOR (solo dentro de Instagram o Facebook)
   ====================================================== */

.aviso-navegador {
  padding: 12px;
  background: #fff7f0;
  border: 1px solid #fdba74;
  border-radius: 12px;
}

.aviso-navegador[hidden] { display: none; }

.aviso-navegador b { display: block; font-size: 14px; color: #9a3412; }

.aviso-navegador p { margin: 4px 0 10px; font-size: 12.5px; line-height: 1.4; color: #7c2d12; }

.aviso-navegador a,
.aviso-navegador button {
  display: block;
  width: 100%;
  padding: 12px;
  font: inherit;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: var(--naranja);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.pasos-navegador {
  display: grid;
  gap: 6px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: #7c2d12;
}

.pasos-navegador li { display: flex; align-items: center; gap: 8px; }

.pasos-navegador i {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 26px;
  font-style: normal;
  font-weight: 800;
  background: #fff;
  border: 1px solid #fdba74;
  border-radius: 8px;
}

/* ===== Página 3x1: fondo con más color, no blanco plano ===== */

body.pagina-3x1 {
  --fondo: linear-gradient(180deg, #fff6ea 0%, #fef9f2 25%, #eefaf3 70%, #fff6ea 100%);
  --tarjeta: #fffdf9;
}

/* ===== Contador "bomba": el tiempo se agota ===== */

.cuenta-bomba {
  background: linear-gradient(160deg, #3b0a0a, #7f1d1d 55%, #3b0a0a);
  border: 2px solid #ff3b3b;
  box-shadow: 0 0 0 3px rgba(255, 59, 59, .25), 0 10px 30px rgba(220, 38, 38, .4);
  animation: bombaPulso 1s ease-in-out infinite;
}

.cuenta-bomba .countdown-label {
  color: #ffd9d9;
  text-shadow: 0 0 10px rgba(255, 59, 59, .9);
  animation: bombaTexto 1s ease-in-out infinite;
}

.cuenta-bomba .time-box {
  background: linear-gradient(180deg, #ef4444, #991b1b);
  box-shadow: 0 0 16px rgba(255, 59, 59, .6), inset 0 0 0 1px rgba(255, 255, 255, .18);
}

.cuenta-bomba .time-box span {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, .65);
}

.cuenta-bomba .time-box small { color: #ffd9d9; opacity: .9; }

.cuenta-bomba .draw-date { color: #ffd9d9; }

@keyframes bombaPulso {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(255, 59, 59, .25), 0 10px 30px rgba(220, 38, 38, .4);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(255, 59, 59, .5), 0 14px 44px rgba(220, 38, 38, .65);
  }
}

@keyframes bombaTexto {
  0%, 100% { opacity: 1; }
  50% { opacity: .65; }
}

/* ===== Escalera de packs (solo 3x1.html): cada pack más caro,
   más grande y más resaltado que el anterior ===== */

.packs-escalera {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.packs-escalera .pack-card { grid-column: unset; }

.tier-1 {
  padding: 12px 10px;
  background: linear-gradient(135deg, #fffaf4, #f5fbf8);
  border: 2px solid #ffe9d2;
}
.tier-1 h3 { font-size: 10px; }
.tier-1 .precio-actual { font-size: 20px; }
.tier-1 .chances-ahora { font-size: 17px; }
.tier-1 .precio-unitario { font-size: 11px; }

.tier-2 {
  padding: 14px 12px;
  background: linear-gradient(135deg, #fff3e3, #edf9f1);
  border: 2px solid #ffd7ad;
  box-shadow: 0 3px 10px rgba(255, 106, 0, .08);
}
.tier-2 .precio-actual { font-size: 23px; }
.tier-2 .chances-ahora { font-size: 19px; }

.tier-3 {
  padding: 17px 14px;
  background: linear-gradient(135deg, #ffe6c7, #dcf5e7);
  border: 2px solid var(--naranja);
  box-shadow: 0 4px 14px rgba(255, 106, 0, .18);
}
.tier-3 h3 { font-size: 12px; color: var(--naranja); }
.tier-3 .precio-actual { font-size: 26px; }
.tier-3 .chances-ahora { font-size: 22px; }
.tier-3 .precio-unitario { font-size: 12.5px; }

.tier-4 {
  padding: 20px 16px;
  background: linear-gradient(135deg, #ffd29c, #b9edcf);
  border: 2px solid var(--naranja);
  box-shadow: 0 6px 20px rgba(255, 106, 0, .28), 0 0 0 3px rgba(0, 166, 80, .14);
  animation: tierGlowSoft 2.6s ease-in-out infinite;
}
.tier-4 h3 { font-size: 13px; color: #7a3b00; }
.tier-4 .precio-actual { font-size: 30px; }
.tier-4 .chances-ahora { font-size: 25px; color: #c23e00; }
.tier-4 .precio-unitario { font-size: 13px; }

.tier-5 {
  padding: 24px 18px;
  background: linear-gradient(135deg, #ff9d3d, #6bd99e);
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px var(--naranja), 0 8px 26px rgba(255, 106, 0, .35), 0 0 24px rgba(0, 166, 80, .28);
  animation: tierGlow 2.2s ease-in-out infinite;
}
.tier-5 h3 { font-size: 14px; color: #fff; text-shadow: 0 2px 4px rgba(0, 0, 0, .3); }
.tier-5 .precio-actual { font-size: 34px; color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.tier-5 .chances-antes { color: rgba(255, 255, 255, .8); text-decoration-color: #fff; }
.tier-5 .chances-ahora { font-size: 28px; color: #fff; text-shadow: 0 0 12px rgba(255, 255, 255, .85), 0 2px 5px rgba(0, 0, 0, .3); }
.tier-5 .precio-unitario { font-size: 14px; color: #fff; font-weight: 800; }

@keyframes tierGlowSoft {
  0%, 100% { box-shadow: 0 6px 20px rgba(255, 106, 0, .28), 0 0 0 3px rgba(0, 166, 80, .14); }
  50% { box-shadow: 0 6px 24px rgba(255, 106, 0, .42), 0 0 0 4px rgba(0, 166, 80, .24); }
}

.tier-6 {
  padding: 32px 20px 28px;
  background: linear-gradient(135deg, var(--naranja) 0%, #ff9d3d 45%, var(--verde) 100%);
  border: 3px solid #fff;
  box-shadow:
    0 0 0 4px var(--naranja),
    0 16px 40px rgba(255, 106, 0, .5),
    0 0 55px rgba(0, 166, 80, .35);
  animation: tierGlowMax 1.7s ease-in-out infinite;
}
.tier-6 h3 {
  font-size: 15px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .35);
}
.tier-6 .precio-actual {
  font-size: 44px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}
.tier-6 .chances-antes {
  color: rgba(255, 255, 255, .8);
  text-decoration-color: #fff;
}
.tier-6 .chances-ahora {
  font-size: 36px;
  color: #fff;
  text-shadow: 0 0 16px rgba(255, 255, 255, .95), 0 2px 6px rgba(0, 0, 0, .35);
}
.tier-6 .precio-unitario {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}
.tier-6 .pack-cinta {
  background: #111827;
  color: #ffd166;
  font-size: 11.5px;
  top: -13px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .3);
}

@keyframes tierGlow {
  0%, 100% {
    box-shadow: 0 8px 26px rgba(255, 106, 0, .3), 0 0 18px rgba(0, 166, 80, .18);
  }
  50% {
    box-shadow: 0 8px 32px rgba(255, 106, 0, .5), 0 0 32px rgba(0, 166, 80, .32);
  }
}

@keyframes tierGlowMax {
  0%, 100% {
    box-shadow:
      0 0 0 4px var(--naranja),
      0 16px 40px rgba(255, 106, 0, .5),
      0 0 45px rgba(0, 166, 80, .3);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 0 0 6px var(--naranja),
      0 20px 56px rgba(255, 106, 0, .7),
      0 0 70px rgba(0, 166, 80, .55);
    transform: scale(1.025);
  }
}

/* Ganadores (ganadores.js nombreEInstagram): el nombre real arriba y
   abajo un botón como el de la app de Instagram, que lleva a su perfil */
.resena-ganador {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin: 4px 0 2px;
}

.ig-boton {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 7px;
  font-size: 13px;
  line-height: 1.15;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(45deg, #f58529, #dd2a7b 55%, #8134af);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(221, 42, 123, .35);
  white-space: nowrap;
}

.ig-boton svg { flex: 0 0 auto; width: 16px; height: 16px; }

.ig-boton b { font-weight: 800; }

.ig-boton small { display: block; font-size: 12px; font-weight: 600; opacity: .95; }

/* En las tarjetas con foto: más grande y con "Tocá acá" */
.ig-boton.ig-grande {
  gap: 9px;
  padding: 8px 16px 8px 10px;
  font-size: 16px;
  border-radius: 14px;
  pointer-events: auto;
  animation: igLatido 2.4s ease-in-out infinite;
}

.ig-boton.ig-grande svg { width: 26px; height: 26px; }

@keyframes igLatido {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .ig-boton.ig-grande { animation: none; }
}

/* En las listas: nombre y abajo el botón, a la derecha */
.ganador-quien {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.resena-otros .ganador-quien .nombre-real { font-weight: 800; color: #fff; }
