/* =============================
   RESET Y VARIABLES
   ============================= */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
:root{
  /* Altura header (se ajusta por JS en footer) */
  --topbar-h: 64px;

  /* Paleta Ruta 593 (logo) */
  --blue-900:#0e6ba8;
  --blue-700:#2b7dbb;
  --blue-600:#2563eb;
  --blue-100:#cde3ff;

  --green-600:#7fb73c;
  --green-700:#6aa62f;

  --ink:#0f172a;
  --ink-2:#334155;

  --card:#ffffff;
  --shadow: 0 18px 38px rgba(0,0,0,.16);
}

body{
  min-height: 100vh;
  background:#fff;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", Arial, "Apple Color Emoji","Segoe UI Emoji";
}

/* =============================
   TOPBAR (FIJA)
   ============================= */
/* =============================
   TOPBAR (FIJA) MEJORADA
   ============================= */
.topbar{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  z-index: 40;

  display: flex;
  align-items: center;
  gap: 14px;

  /* fondo degradado + ligero “glass” */
  background: linear-gradient(90deg, var(--blue-900), var(--blue-700));
  color: #fff;

  padding: 8px 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
  border-bottom: 1px solid rgba(15, 23, 42, 0.45);
}

.topbar::after{
  /* brillo suave en la parte inferior de la barra */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(56, 189, 248, 0.0),
    rgba(56, 189, 248, 0.8),
    rgba(147, 197, 253, 0.0)
  );
  pointer-events: none;
}

.topbar, .topbar *{
  white-space: nowrap;
}

/* Marca / logo */
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand__logo{
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;

  background: radial-gradient(circle at 20% 0%, #0ea5e9, #22c55e 40%, #2563eb);
  box-shadow:
    0 4px 12px rgba(15, 23, 42, 0.4),
    0 0 0 2px rgba(255, 255, 255, 0.25);
}

.brand__title{
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.9rem;
  color: #f9fafb;
}

.brand__subtitle{
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(226, 232, 240, 0.9);
}

/* Mensaje “Admin / Usuario” a la derecha */
.user-welcome{
  margin-left: auto;
  margin-right: 10px;
  color: #e0f2fe;
  font-weight: 600;
  font-size: 0.85rem;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.22);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.35);
}

/* Botón menú lateral */
.sidebar-toggle{
  background: rgba(15, 23, 42, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.8);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 1.3rem;
  cursor: pointer;
  color: #f9fafb;

  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.45);
  transition:
    background 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.sidebar-toggle:hover{
  background: rgba(15, 23, 42, 0.28);
  border-color: #e0f2fe;
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(15, 23, 42, 0.55);
}

/* En móviles mantenemos la lectura y espacios */
@media (max-width: 640px){
  .topbar{
    padding-inline: 12px;
    gap: 10px;
  }
  .brand__title{
    font-size: 0.8rem;
    letter-spacing: 0.14em;
  }
  .brand__subtitle{
    display: none; /* ahorra espacio en pantallas pequeñas */
  }
  .user-welcome{
    font-size: 0.78rem;
    padding-inline: 8px;
  }
}

/* =============================
   CONTENEDOR GENERAL (FRONT)
   ============================= */
.container{ max-width: 1100px; margin: 0 auto; padding: 16px; }

/* =============================
   BOTONES Y ELEMENTOS BASE
   ============================= */
.btn-primary, a.btn-primary{
  background: var(--blue-700); color:#fff; border:0;
  padding:10px 14px; border-radius:10px; cursor:pointer; font-weight:700;
  text-decoration:none; display:inline-block;
}
.btn-primary:hover{ filter:brightness(1.05); }
.badge{
  display:inline-block; padding:8px 12px; border-radius:999px;
  background: var(--green-600); color:#fff; font-weight:700; font-size:14px;
}

/* =============================
   HOME / HERO
   ============================= */
.hero{ text-align:center; padding: calc(var(--topbar-h) + 10px) 8px 8px; }
.hero h1{ margin:0 0 8px; font-size: clamp(24px, 3.8vw, 40px); line-height:1.1; color:var(--ink); }
.hero p{ color:var(--ink-2); font-size: clamp(14px, 2.4vw, 18px); }
.brand-mark{ color: var(--green-600); }

/* =============================
   TARJETA SORTEO
   ============================= */
.lottery{
  margin-top:18px; background: var(--card); color: var(--ink);
  border-radius: 18px; padding: 20px; box-shadow: var(--shadow);
}
.lottery__header{ margin-bottom: 8px; }
.lottery__title{ margin:10px 0; font-size: clamp(22px, 3vw, 28px); }
.lottery__value{ color: var(--ink-2); }

/* =============================
   CARD PREMIO
   ============================= */
.card{
  position: relative; margin: 16px 0; padding: 18px;
  border-radius: 16px; color: #fff; box-shadow: 0 14px 24px rgba(0,0,0,.18);
}
.card__pill{
  position:absolute; top:-12px; left:16px;
  background: rgba(255,255,255,.95); color:#0f172a;
  font-weight:800; padding:6px 12px; border-radius:999px; box-shadow: 0 10px 20px rgba(0,0,0,.15);
}
.card__title{ margin: 8px 0 6px; font-size: 22px; }
.card__list{ margin: 8px 0 12px; padding-left: 20px; }
.card__list li{ margin: 4px 0; }
.card__value{ display:flex; gap:8px; align-items:center; font-weight:600; }

/* Gradientes utilitarios */
.from-indigo-500.to-blue-500{ background: linear-gradient(135deg, #6366f1, #3b82f6); }
.from-cyan-500.to-teal-500{ background: linear-gradient(135deg, #06b6d4, #14b8a6); }
.from-fuchsia-500.to-pink-500{ background: linear-gradient(135deg, #d946ef, #ec4899); }

/* =============================
   PROGRESO
   ============================= */
.progress{ margin-top: 18px; background:#f8fafc; border:1px solid #e2e8f0; border-radius:14px; padding: 14px; }
.progress__stats{ display:grid; grid-template-columns: repeat(3, 1fr); gap:12px; text-align:center; }
.progress__num{ font-size:22px; font-weight:800; }
.progress__bar{
  position: relative; height:14px; border-radius:999px; margin-top:10px;
  background: linear-gradient(90deg, #e2e8f0, #e5e7eb);
  overflow:hidden; border:1px solid #d0d7e1;
}
.progress__fill{ height:100%; background: linear-gradient(90deg, #84cc16, #22c55e 30%, #16a34a); }
.progress__threshold{ position:absolute; top:-3px; width:2px; height:20px; background:#ef4444; box-shadow: 0 0 0 2px rgba(239,68,68,.2); }
.progress__note{ margin:8px 2px 0; color:#b91c1c; }

/* =============================
   MODALIDAD / REGLAS
   ============================= */
.rules{ margin-top:18px; }
.rules h3{ margin: 0 0 10px; color:var(--ink); }
.rules__grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap:12px; }
.rule{
  background: radial-gradient(120% 120% at 0% 0%, #eef2ff, #e0e7ff 60%, #e2e8f0);
  border: 1px solid #dbe4ff; border-radius: 14px; padding: 14px; color:var(--ink);
  box-shadow: 0 10px 20px rgba(15,23,42,.06);
}
.rule span{ color:var(--ink-2); font-size: 14px; }
.rules__hint{ color:var(--ink-2); margin-top: 10px; background:#fff; border-radius:10px; padding:10px; border:1px dashed #cbd5e1; }

/* =============================
   FOOTER
   ============================= */
.footer{ text-align:center; color:#64748b; padding: 36px 0; }

/* =============================
   FORMULARIOS (AUTH)
   ============================= */
.auth{
  background:#fff; color:var(--ink); border-radius:14px; padding:20px;
  box-shadow: var(--shadow); max-width:520px; margin: calc(var(--topbar-h) + 16px) auto 24px;
}
.auth__errors{ background:#fff1f2; border:1px solid #fecdd3; color:#991b1b; border-radius:10px; padding:10px 14px; margin-bottom:12px; }
.auth__form{ display:grid; gap:10px; }
.auth__form label{ display:grid; gap:6px; font-weight:600; }
.auth__form input{ padding:10px 12px; border:1px solid #cbd5e1; border-radius:10px; font-size:15px; }

/* =============================
   ADMIN (Tarjetas / tablas)
   ============================= */
.admin{ background:#fff; color:var(--ink); border-radius:14px; padding:20px; box-shadow: var(--shadow); margin: 16px 0; }
.admin h1{ margin-top:0; color:var(--ink); }
.admin__grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap:12px; }
.admin__card{ display:block; background:#f1f5f9; border:1px solid #e2e8f0; border-radius:12px; padding:18px; text-decoration:none; color:var(--ink); font-weight:700; text-align:center; }

.admin__form{ display:grid; gap:10px; }
.admin__form input, .admin__form textarea, .admin__form select{
  padding:10px 12px; border:1px solid #cbd5e1; border-radius:10px; font-size:15px; background:#fff;
}

.table { margin-top: 8px; }
.table__head, .table__row{
  display:grid; grid-template-columns: 80px 1fr 2fr 80px 160px 220px;
  gap:8px; align-items:center; background:#f8fafc; border:1px solid #e2e8f0; padding:8px; border-radius:10px;
}
.table__head{ font-weight:800; background:#eef2ff; }
.table__row .table__actions{ display:flex; gap:8px; align-items:center; }
.table__row form button{ background:#fff; border:1px solid #cbd5e1; border-radius:8px; padding:6px 10px; cursor:pointer; }
@media (max-width: 800px){
  .table__head, .table__row{ grid-template-columns: 60px 1fr 1.4fr 60px 140px 1fr; }
}

/* =============================
   DASHBOARD KPIs
   ============================= */
.cards3{ display:grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap:12px; margin-bottom:12px; }
.cardStat{ background:#f8fafc; border:1px solid #e2e8f0; border-radius:12px; padding:14px; }
.kpi{ font-size:28px; font-weight:800; }
.kpilabel{ color:#475569; }

/* =============================
   PACKS (paquetes compra)
   ============================= */
.packs{ margin:24px 0; }
.packs__title{ font-size:1.25rem; margin:0 0 12px; }
.packs__grid{ display:grid; gap:12px; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); }
.pack{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  background:#f8fafc; border:2px solid #e2e8f0; border-radius:16px; text-align:center;
  padding:18px 14px; position:relative; box-shadow:0 6px 16px rgba(0,0,0,.06);
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  text-decoration:none; color:inherit;
}
.pack:hover{ transform:translateY(-2px); box-shadow:0 10px 22px rgba(0,0,0,.10); border-color:#cbd5e1; }
.pack__price{ font-size:2rem; font-weight:800; color:var(--blue-700); }
.pack__qty{ font-weight:700; margin-top:6px; }
.pack__ppu{ font-size:.9rem; opacity:.8; margin-top:2px; }
.pack--popular{ border-color: var(--green-600); box-shadow:0 10px 26px rgba(127,183,60,.25); }
.pack__ribbon{
  position:absolute; top:-8px; right:-8px; background:var(--green-600); color:#fff;
  font-size:.70rem; font-weight:800; padding:6px 10px; border-radius:999px;
  box-shadow:0 6px 14px rgba(127,183,60,.35);
}
.pack--saving{
  background: linear-gradient(180deg, var(--blue-700) 0%, var(--blue-700) 45%, var(--green-600) 46%, var(--green-600) 100%);
  color:#fff; border-color:transparent;
}
.pack--saving .pack__price{ color:#fff; }
.pack--saving .pack__ppu{
  background: rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.25);
  border-radius:999px; padding:4px 8px; margin-top:6px;
}
.agent{ margin-top:16px; padding:16px; border-radius:16px;
  background:linear-gradient(180deg, rgba(127,183,60,.08), rgba(43,125,187,.08));
  border:1px solid #e2e8f0;
}
.agent h3{ margin:0 0 4px; }
.agent__form{ display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
.agent__form input[type="text"]{
  flex:1 1 260px; border:1px solid #cbd5e1; border-radius:10px; padding:10px 12px; outline:none;
}
.agent__form input[type="text"]:focus{ border-color:var(--blue-700); box-shadow:0 0 0 3px rgba(43,125,187,.15); }

/* =============================
   SOCIAL & LOOKUP
   ============================= */
.ctaSocial{ margin-top:20px; }
.grid3{ display:grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap:12px; }
.cardSocial{
  background:#fff; color:var(--ink); border:1px solid #e2e8f0; border-radius:16px; padding:16px;
  box-shadow:0 8px 18px rgba(0,0,0,.08);
}
.cardSocial h3{ margin-top:0; }
.cardSocial form{ display:grid; grid-template-columns: 1fr auto; gap:8px; }
.cardSocial input{ padding:10px 12px; border:1px solid #cbd5e1; border-radius:10px; }

/* =============================
   PREMIO EN 3 PARTES
   ============================= */
.prize3{ 
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 2.3fr) minmax(0, 1.5fr);
  gap: 16px;
  align-items: stretch;   /* <<< las 3 columnas se estiran a la misma altura */
}

/* Columna de banners y de video: centrar contenido en la altura disponible */
.prize3 .p2.banners,
.prize3 .p3.video {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.banners__rail{ display:flex; gap:8px; overflow:auto; }
.banner{ flex:0 0 180px; border-radius:12px; overflow:hidden; background:#fff; box-shadow:0 8px 16px rgba(0,0,0,.08); }
.banner img{ width:100%; height:120px; object-fit:cover; display:block; }
.video iframe, .video video{ border:0; border-radius:12px; box-shadow:0 8px 16px rgba(0,0,0,.08); }
.prize3 .placeholder{ background:#eef2ff; color:var(--ink); border-radius:12px; padding:12px; text-align:center; }
@media (max-width: 900px){ .prize3{ grid-template-columns:1fr; } .banner{ flex-basis:70%; } }

/* =============================
   RESEÑAS
   ============================= */
.reviews-section{
  background:#fff; color:var(--ink); border:1px solid #e2e8f0; border-radius:16px; padding:16px; margin:20px 0;
}
.reviews-grid{ display:grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap:12px; margin-top:10px; }
.review-card{ background:#f8fafc; border:1px solid #e2e8f0; border-radius:12px; padding:12px; }
.review-head{ display:flex; justify-content:space-between; align-items:center; }
.stars{ color:#f59e0b; font-weight:700; }
.review-body{ margin:6px 0; color:var(--ink-2); }

/* =============================
   LAYOUT ADMIN (SIDEBAR + CONTENIDO)
   ============================= */
.admin-main{ margin: 0; padding: 0; background: #fff; }          /* reemplaza .container en admin */
.admin-content > .admin,
.admin-content > .admin:first-child { margin-top: 8px; }

/* Sidebar fija */
.sidebar{
  position: fixed; z-index: 30; left: 0; top: var(--topbar-h);
  width: 260px; height: calc(100vh - var(--topbar-h)); overflow-y: auto;
  background: var(--blue-900); color:#fff; padding:14px 10px;
  box-shadow: 2px 0 16px rgba(0,0,0,.08);
  z-index: 30;
}
.sidebar__brand{ display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:.5px; margin-bottom:10px; }
.sidebar__nav{ display:flex; flex-direction:column; gap:6px; }
.sidebar__link{ display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:10px; color:#e7f2fb; text-decoration:none; transition: background .15s ease, color .15s ease; }
.sidebar__link:hover{ background: rgba(255,255,255,.12); color:#fff; }
.sidebar__link.is-active{ background: var(--green-600); color:#fff; }
.sidebar__icon{ width:22px; text-align:center; }
.sidebar__user{ margin-top:14px; padding-top:10px; border-top:1px solid rgba(255,255,255,.2); display:flex; flex-direction:column; gap:6px; }
.sidebar__logout{ display:inline-block; background:#fff; color:var(--blue-900); padding:8px 10px; border-radius:8px; text-decoration:none; font-weight:700; }

/* Contenido desplazado */
.admin-content{
  position: relative;
  z-index: 20;
  /* deja un pequeño colchón adicional además de la topbar */
  margin: calc(var(--topbar-h) + 8px) 0 0 260px;  /* antes: calc(var(--topbar-h)) 0 0 260px */
  padding: 16px 28px 40px;                        /* antes: 24px 28px 40px (o lo que tuvieras) */
  background: #fff;
}
/* =============================
   RESPONSIVE
   ============================= */
@media (max-width: 768px){
  .admin-content{
    margin: calc(var(--topbar-h) + 8px) 0 0 0;    /* antes: var(--topbar-h) 0 0 0 */
    padding: 16px 16px 28px;
  }
}

/* ----- Slider de imágenes del premio ----- */
.prize-slider{
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #0b243a1a;
  margin: 8px 0 12px;
  aspect-ratio: 16 / 9;        /* <<< altura automática según el ancho */
}
.prize-slides{
  position: absolute;
  inset: 0;                    /* ocupa todo el alto y ancho del slider */
  display: flex;
  will-change: transform;
}
.prize-slides img{
  width: 100%;
  height: 100%;                /* <<< ahora llena el alto del slider */
  object-fit: cover;
  flex: 0 0 100%;
  display: block;
  user-select: none;
  pointer-events: none;
  /* el border-radius ya lo tiene el contenedor (.prize-slider) */
}
.prize-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: #0f172a;
  font-size: 20px;
  line-height: 34px;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.prize-nav.prev{ left: 8px; }
.prize-nav.next{ right: 8px; }

.prize-dots{
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  display: flex;
  gap: 6px;
  justify-content: center;
}
.prize-dots .dot{
  width: 8px; height: 8px; border-radius: 999px; border:0;
  background: rgba(255,255,255,.6);
  cursor: pointer;
}
.prize-dots .dot.is-active{ background: #fff; }


/* Botones de redes sociales */
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  background: #0f5da3;           /* color base por si falla el gradiente */
  color: #fff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.social-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.2);
  opacity: 0.95;
}

.social-btn__icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-btn__icon img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

/* Variantes por red (puedes afinar colores a tu gusto) */
.social-btn--instagram {
  background: radial-gradient(circle at 30% 30%, #feda75, #d62976, #962fbf, #4f5bd5);
}

.social-btn--facebook {
  background: #1877f2;
}

.social-btn--tiktok {
  background: #000;
}

.social-btn--whatsapp {
  background: #25d366;
}

/* Contenedor de las tarjetas de contacto */
.ctaSocial .grid3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  align-items: stretch;
}

/* Estilo base de cada tarjeta */
.account-cta .cardSocial {
  background: #fff;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  /* IMPORTANTE: que no se fuerce a ocupar todo el ancho */
  width: auto;
}

/* En pantallas pequeñas, que sí se vea como lista (1 columna) */
@media (max-width: 768px) {
  .ctaSocial .grid3 {
    grid-template-columns: 1fr;
  }
}

/* Título centrado del premio (PRIMER PREMIO, SEGUNDO PREMIO, etc) */
/* Título centrado del premio (PRIMER PREMIO, SEGUNDO PREMIO, etc) CON RELIEVE */
.premio-titulo {
  text-align: center;
  margin: 0 0 16px 0;
  font-size: 2.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ffffff;

  /* relieve + glow */
  text-shadow:
    0 1px 0 rgba(15, 23, 42, 0.65),      /* línea inferior oscura */
    0 2px 3px rgba(15, 23, 42, 0.55),    /* sombra suave */
    0 0 8px  rgba(255, 255, 255, 0.35),  /* halo claro */
    0 0 16px rgba(56, 189, 248, 0.45);   /* toque celeste tipo neón */

  /* ligera animación de aparición */
  animation: premioGlowIn 0.55s ease-out;
}


/* Acordeón de reseñas */
.reviews-accordion {
  margin: 20px 0;
}

/* Botón cabecera del acordeón */
.reviews-toggle {
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
}

.reviews-toggle__icon {
  font-weight: 900;
  font-size: 1.2rem;
}

/* Panel colapsable */
.reviews-panel {
  overflow: hidden;
  transition: max-height 0.25s ease;
  max-height: 0;
}

/* Cuando está abierto */
.reviews-accordion.is-open .reviews-panel {
  max-height: 2000px; /* debe ser mayor que la altura esperada del contenido */
}

.reviews-accordion.is-open .reviews-toggle__icon {
  transform: rotate(45deg);  /* de + pasa visualmente a x */
}

@keyframes premioGlowIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
    text-shadow:
      0 0 0 rgba(15, 23, 42, 0),
      0 0 0 rgba(15, 23, 42, 0),
      0 0 0 rgba(255, 255, 255, 0),
      0 0 0 rgba(56, 189, 248, 0);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    text-shadow:
      0 1px 0 rgba(15, 23, 42, 0.65),
      0 2px 3px rgba(15, 23, 42, 0.55),
      0 0 8px  rgba(255, 255, 255, 0.35),
      0 0 16px rgba(56, 189, 248, 0.45);
  }
}

/* === FIJAR ALTO / ASPECT RATIO DEL VIDEO, PARA QUE NUNCA ROMPA LA TARJETA === */
.p3.video .video-frame {
  position: relative;
  width: 100%;
  max-width: 380px;      /* ajusta si quieres más grande o pequeño */
  margin: 0 auto;
  padding-top: 56.25%;   /* 16:9 – cambia a 75% si quieres estilo cuadrado */
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

/* Video y YouTube adoptan el tamaño fijo del frame */
.p3.video .video-frame video,
.p3.video .video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;     /* 🔥 recorta video vertical */
  border-radius: inherit;
  display: block;
}

/* Mobile: video más cuadrado para mejor lectura */
@media (max-width: 900px){
  .p3.video .video-frame {
    max-width: 100%;
    padding-top: 75%;   /* 4:3 o cuadrado – mucho mejor en móviles */
  }
}

/* === MISMA ALTURA PARA SLIDER E VIDEO EN LOS PREMIOS === */

/* Altura estándar del media (slider + video) dentro de .prize3 */
.prize3 {
  --prize-media-h: 320px;  /* 🔧 AJUSTA este valor a tu gusto */
}

/* Slider de imágenes usa la misma altura fija */
.prize3 .prize-slider {
  aspect-ratio: auto;                  /* anulamos el 16/9 anterior */
  height: var(--prize-media-h);
}

/* Contenedor del video con la misma altura del slider */
.prize3 .p3.video .video-frame {
  position: relative;
  width: 100%;
  height: var(--prize-media-h);
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,.08);
}

/* El iframe o video llenan ese rectángulo */
.prize3 .p3.video .video-frame video,
.prize3 .p3.video .video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;   /* recorta video vertical para que no deforme */
  border-radius: inherit;
  display: block;
}

/* En pantallas pequeñas reducimos un poco la altura */
@media (max-width: 900px){
  .prize3 {
    --prize-media-h: 240px;
  }
}
/* =============================
   CERTIFICADO DE REGISTRO (MODAL PDF)
   ============================= */

.cert-section {
  margin: 16px 0 24px;
  text-align: center;
}

.cert-btn {
  font-size: 0.98rem;
}

/* Modal base */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;               /* oculto por defecto */
  align-items: center;
  justify-content: center;
}

.modal.is-open {
  display: flex;
}

/* Fondo oscuro */
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

/* Cuadro del modal */
.modal__dialog {
  position: relative;
  z-index: 1;
  width: 95%;
  max-width: 960px;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.4);
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
}

/* Cerrar */
.modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  color: #0f172a;
}

/* Título y cuerpo */
.modal__dialog h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
}

.modal__body {
  flex: 1 1 auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  min-height: 400px;
}

/* El PDF ocupa todo el body */
.modal__body iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 640px) {
  .modal__dialog {
    padding: 14px;
    border-radius: 16px;
  }
}

/* ==== Ajuste de altura del modal de certificado ==== */

/* El cuadro del modal ocupa casi todo el alto de la ventana */
.modal__dialog {
  height: 90vh;          /* antes solo max-height */
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

/* El body donde va el PDF ocupa todo el espacio libre */
.modal__body {
  flex: 1 1 auto;
  min-height: 0;         /* importante para que flex permita crecer */
  height: calc(90vh - 70px);  /* resto: título + paddings aprox */
}

/* El iframe ya tiene height:100%, así que ahora llena el body */
.modal__body iframe {
  height: 100%;
}

/* En pantallas pequeñas baja un poco para que se vea la X y el título */
@media (max-width: 640px) {
  .modal__dialog {
    height: 80vh;
    max-height: 80vh;
  }
  .modal__body {
    height: calc(80vh - 70px);
  }
}

/* Enlace bajo reseñas para abrir Términos y condiciones */
.terms-link {
  margin: 8px 16px 24px;
  text-align: right;
}

.terms-link__a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue-700);
  text-decoration: none;
}

.terms-link__a:hover {
  text-decoration: underline;
}

/* Enlace de términos y condiciones (debajo de reseñas) */
.terms-link {
  margin: 20px 0 30px;
  text-align: center;          /* 🔥 CENTRADO */
}

.terms-link__a {
  font-size: 1.15rem;          /* 🔥 MÁS GRANDE */
  font-weight: 800;            /* 🔥 NEGRITA */
  color: var(--ink);           /* negro principal */
  text-decoration: none;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.terms-link__a:hover {
  text-decoration: underline;
  color: var(--blue-700);
}

.bank-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.bank-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.bank-card img {
  width: 100%;
  max-height: 80px;
  object-fit: contain;
  margin-bottom: 6px;
}

.bank-card p {
  font-size: 0.9rem;
  color: #1f2937;
  margin: 0;
}


  .howto {
    margin: 50px auto;
    padding: 35px 20px;
    max-width: 1050px;
    background: linear-gradient(135deg, #ffffff, #f1f5f9);
    border-radius: 22px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,.08);
    border: 1px solid #e2e8f0;
  }

  .howto__title {
    font-size: 1.7rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 22px;
    font-weight: 800;
    color: #1e293b;
  }

  .howto__steps {
    max-width: 850px;
    margin: 0 auto;
  }

  .howto__steps p {
    margin: 10px 0;
    font-size: 1.05rem;
    line-height: 1.55;
    color: #475569;
  }

  .howto__steps p span {
    font-weight: 800;
    font-size: 1.2rem;
    color: #0f172a;
  }

  .howto__cta {
    margin-top: 28px;
  }

  .howto__btn {
    display: inline-block;
    padding: 12px 35px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: .1em;
    font-size: .95rem;
    text-transform: uppercase;
  }

  @media (max-width: 640px) {
    .howto {
      padding: 28px 16px;
    }
    .howto__title {
      font-size: 1.35rem;
    }
    .howto__steps p {
      font-size: .95rem;
    }
  }


/* ------ CARD PRINCIPAL ------ */
.howto-card {
  display: flex;
  justify-content: center;
  margin: 60px auto;
  padding: 0 15px;
}

.howto-card__box {
  width: 100%;
  max-width: 950px;
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.09);
  border: 1px solid #e2e8f0;
  text-align: center;
}

/* ------ TÍTULO ------ */
.howto-card__title {
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 25px;
  letter-spacing: 0.07em;
  color: #1e293b;
}

/* ------ PASOS ------ */
.howto-card__steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 25px;
}

.howto-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  max-width: 850px;
  margin: 0 auto;
}

.howto-step__icon {
  font-size: 1.8rem;
  line-height: 1;
}

/* ------ TEXTO ------ */
.howto-step p {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.55;
}

.howto-step strong {
  color: #1e293b;
}

/* ------ CTA ------ */
.howto-card__cta {
  margin-top: 20px;
}

.howto-card__btn {
  padding: 12px 32px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ------ RESPONSIVE ------ */
@media (max-width: 640px) {
  .howto-card__title {
    font-size: 1.5rem;
  }
  .howto-step p {
    font-size: .95rem;
  }
  .howto-step__icon {
    font-size: 1.6rem;
  }
}

