/* ============================================================ */
/* SORTEO HDH — Estilos                                         */
/* ============================================================ */

.sorteo-body {
  background: var(--hdh-bone);
  color: var(--hdh-black);
  min-height: 100vh;
}

/* Botón Volver flotante */
.back-to-home {
  position: fixed;
  top: 20px;
  left: 24px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  color: var(--hdh-silver);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
}

.back-to-home:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}

/* Logo inline en H1 del hero (reemplaza la palabra HDH) */
.hero-logo-inline {
  display: inline-block;
  height: 0.85em;
  vertical-align: -0.05em;
  margin: 0 0.05em;
  filter: drop-shadow(0 0 24px rgba(196, 57, 29, 0.4));
}

/* Logo grande centrado en el hero (debajo de la fecha) */
.hero-main-logo {
  display: block;
  margin: 0 auto 32px;
  height: 140px;
  filter: drop-shadow(0 0 48px rgba(196, 57, 29, 0.55));
}

@media (max-width: 600px) {
  .hero-main-logo { height: 90px; margin-bottom: 24px; }
}

/* ============================================================ */
/* HERO                                                         */
/* ============================================================ */

.sorteo-hero {
  position: relative;
  padding: calc(56px + 80px) 0 80px;
  overflow: hidden;
  background: var(--hdh-black);
  color: #fff;
}

/* Imagen de fondo del mundial */
.sorteo-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/sorteo-hero.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.65;
  z-index: 0;
}

/* Overlay sutil — solo para legibilidad del texto, no tapa la imagen */
.sorteo-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at center 45%, rgba(10,10,10,0.25) 0%, rgba(10,10,10,0.55) 100%),
    linear-gradient(180deg, rgba(10,10,10,0.3) 0%, transparent 30%, transparent 70%, rgba(10,10,10,0.6) 100%);
  z-index: 1;
}

.sorteo-hero-pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.5;
}

.sorteo-hero-glow {
  position: absolute;
  top: -20%; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(196, 57, 29, 0.25) 0%, transparent 65%);
  pointer-events: none;
  animation: hero-glow 6s ease-in-out infinite;
  z-index: 2;
}

.sorteo-hero .container {
  position: relative;
  z-index: 3;
}

@keyframes hero-glow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.85; }
}

.sorteo-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.sorteo-event-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--hdh-ember-light);
  margin-bottom: 24px;
  padding: 8px 18px;
  border: 1px solid rgba(224, 90, 58, 0.3);
  border-radius: 999px;
  background: rgba(196, 57, 29, 0.1);
}

.sorteo-event-tag::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--hdh-ember-light);
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.sorteo-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 8vw, 88px);
  line-height: 0.95;
  letter-spacing: -3px;
  margin-bottom: 24px;
  color: #fff;
  text-transform: uppercase;
}

.sorteo-hero h1 span {
  color: var(--hdh-ember);
  display: inline-block;
  position: relative;
  font-variant-numeric: tabular-nums;
}

.sorteo-hero-sub strong {
  color: var(--hdh-ember-light);
  font-weight: 700;
}

.sorteo-hero-sub {
  font-size: 19px;
  color: var(--hdh-silver);
  line-height: 1.5;
  margin-bottom: 40px;
}

/* Countdown */
.countdown {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.countdown-box {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 16px 22px;
  min-width: 80px;
}

.countdown-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  color: #fff;
  line-height: 1;
}

.countdown-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--hdh-steel-mid);
  margin-top: 6px;
}

/* Pricing card */
.pricing-pills {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.pricing-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 14px 22px;
  border-radius: 999px;
}

.pricing-pill strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--hdh-ember-light);
}

.pricing-pill span {
  font-size: 13px;
  color: var(--hdh-silver);
}

/* ============================================================ */
/* SECTION (default: claro)                                     */
/* ============================================================ */

.sorteo-section {
  padding: 80px 0;
  position: relative;
}

.sorteo-section h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -1.5px;
  text-align: center;
  margin-bottom: 16px;
  color: var(--hdh-black);
}

.sorteo-section-sub {
  text-align: center;
  font-size: 16px;
  color: var(--hdh-steel-mid);
  margin-bottom: 56px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.sorteo-overline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--hdh-ember);
  text-align: center;
  display: block;
  margin-bottom: 12px;
}

/* Secciones oscuras (modificador) */
.sorteo-section--dark {
  background: var(--hdh-black);
  color: #fff;
}
.sorteo-section--dark h2 { color: #fff; }
.sorteo-section--dark .sorteo-section-sub { color: var(--hdh-silver); }
.sorteo-section--dark .sorteo-overline { color: var(--hdh-ember-light); }

/* ============================================================ */
/* PREMIOS                                                      */
/* ============================================================ */

.premios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.premio-card {
  background: #fff;
  border: 1px solid var(--hdh-clay);
  border-radius: 20px;
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(10,10,10,0.04);
}

.premio-card:hover {
  transform: translateY(-4px);
  border-color: var(--hdh-ember);
  box-shadow: 0 16px 40px rgba(196, 57, 29, 0.12);
}

.premio-rank {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 72px;
  line-height: 1;
  color: var(--hdh-ember);
  letter-spacing: -3px;
  margin-bottom: 16px;
}

.premio-rank-suffix {
  font-size: 28px;
  vertical-align: super;
  color: var(--hdh-ember-light);
}

.premio-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--hdh-black);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.premio-desc {
  font-size: 14px;
  color: var(--hdh-steel-mid);
  line-height: 1.6;
}

.premio-card.featured {
  background: linear-gradient(180deg, rgba(196, 57, 29, 0.04), #fff);
  border-color: var(--hdh-ember);
  box-shadow: 0 8px 32px rgba(196, 57, 29, 0.1);
}

.premio-card.featured::after {
  content: 'EL PREMIO MAYOR';
  position: absolute;
  top: 16px; right: 16px;
  background: var(--hdh-ember);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 2;
}

/* Banner promocional del 1er premio — full-width arriba */
.premio-banner {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: var(--space-2xl);
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: var(--hdh-bone);
  display: flex;
  align-items: center;
  justify-content: center;
}

.premio-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  transform: scale(1.08);
  transform-origin: center 45%;
}

.premio-banner.empty .premio-banner-placeholder { display: flex; }

.premio-banner-placeholder {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--hdh-steel-mid);
  text-align: center;
  padding: 32px;
  width: 100%;
}

.premio-banner-placeholder svg { opacity: 0.4; margin-bottom: 4px; }
.premio-banner-placeholder p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--hdh-steel);
}
.premio-banner-placeholder small {
  font-size: 12px;
  color: var(--hdh-steel-mid);
}
.premio-banner-placeholder code {
  background: rgba(0,0,0,0.08);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: var(--hdh-ember);
}

/* Mobile: mantener aspect ratio panorámico (la imagen es 16:7) */
@media (max-width: 768px) {
  .premio-banner {
    aspect-ratio: 16 / 7;
    margin-bottom: var(--space-xl);
    margin-top: var(--space-md);
  }
  .premio-banner img {
    transform: scale(1.03);
    object-position: center center;
  }
}

@media (max-width: 500px) {
  .premio-banner {
    aspect-ratio: 16 / 8;
    margin-bottom: var(--space-lg);
  }
  .premio-banner img {
    transform: scale(1.02);
  }
}

/* ============================================================ */
/* CÓMO PARTICIPAR                                              */
/* ============================================================ */

.como-funciona {
  background: linear-gradient(180deg, transparent, rgba(196, 57, 29, 0.04));
}

.pasos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.paso {
  text-align: center;
  padding: 0 24px;
  position: relative;
}

.paso:not(:last-child)::after {
  content: '→';
  position: absolute;
  top: 36px;
  right: -12px;
  color: var(--hdh-steel-mid);
  font-size: 24px;
}

.paso-num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(196, 57, 29, 0.1);
  border: 2px solid var(--hdh-ember);
  color: var(--hdh-ember-light);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.paso h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  margin-bottom: 8px;
}

.paso p {
  font-size: 14px;
  color: var(--hdh-silver);
  line-height: 1.6;
}

/* ============================================================ */
/* MUNDIAL BONUS                                                */
/* ============================================================ */

.mundial {
  background: var(--hdh-black);
  position: relative;
  overflow: hidden;
}

.mundial::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse at center top, rgba(196, 57, 29, 0.18) 0%, transparent 60%);
  pointer-events: none;
}

.mundial .container { position: relative; z-index: 1; }

.mundial-hero {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}

.mundial-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  background: linear-gradient(90deg, var(--hdh-ember), var(--hdh-ember-light));
  color: #fff;
  padding: 8px 20px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.mundial h2 {
  margin-bottom: 16px;
}

.mundial-desc {
  font-size: 16px;
  color: var(--hdh-silver);
  line-height: 1.6;
}

.mundial-desc strong {
  color: var(--hdh-ember-light);
}

/* Imagen del Mundial — full-width, escapa del container */
.mundial-image-slot {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-bottom: 56px;
  width: 100vw;
  max-width: 100vw;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: var(--hdh-black);
}

.mundial-image-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  transform: scale(1.08);
  transform-origin: center 40%;
}

.mundial-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--hdh-steel-mid);
  text-align: center;
  padding: 24px;
}

.mundial-image-slot:not(.empty) .mundial-image-placeholder { display: none; }

.mundial-image-placeholder svg {
  opacity: 0.5;
  margin-bottom: 4px;
}

.mundial-image-placeholder p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--hdh-silver);
}

.mundial-image-placeholder small {
  font-size: 11px;
  color: var(--hdh-steel-mid);
  font-family: var(--font-display);
}

.mundial-image-placeholder code {
  background: rgba(255,255,255,0.08);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: var(--hdh-ember-light);
}

/* Stats del Mundial */
.mundial-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.mundial-stat {
  background: linear-gradient(180deg, rgba(196, 57, 29, 0.08), rgba(196, 57, 29, 0.02));
  border: 1px solid rgba(196, 57, 29, 0.18);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
}

.mundial-stat-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
  color: var(--hdh-ember-light);
  margin-bottom: 8px;
  letter-spacing: -2px;
}

.mundial-stat-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--hdh-silver);
}

.banderas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
  max-width: 1000px;
  margin: 0 auto;
}

.bandera-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 16px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.bandera-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.bandera-card.selected {
  background: rgba(196, 57, 29, 0.2);
  border-color: var(--hdh-ember);
  box-shadow: 0 0 0 1px var(--hdh-ember);
}

.bandera-flag {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 6px;
}

.bandera-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  color: #fff;
  letter-spacing: 0.3px;
}

/* ============================================================ */
/* GRILLA DE NÚMEROS                                            */
/* ============================================================ */

.grilla-wrap {
  background: #fff;
  border: 1px solid var(--hdh-clay);
  border-radius: 24px;
  padding: 32px;
  max-width: 1100px;
  margin: 0 auto;
  box-shadow: 0 4px 24px rgba(10,10,10,0.04);
}

.grilla-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.grilla-search {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  position: relative;
}

.grilla-search input {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 38px;
  background: var(--hdh-bone);
  border: 1px solid var(--hdh-clay);
  border-radius: 999px;
  color: var(--hdh-black);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.grilla-search input::placeholder { color: var(--hdh-steel-mid); }
.grilla-search input:focus { border-color: var(--hdh-ember); }

.grilla-search svg {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--hdh-steel-mid);
}

/* Botón random "3 al azar" */
.btn-random {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 18px;
  background: linear-gradient(135deg, var(--hdh-ember), var(--hdh-ember-light));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(196, 57, 29, 0.3);
}

.btn-random:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 18px rgba(196, 57, 29, 0.45);
}

.btn-random:active {
  transform: translateY(0) scale(0.98);
}

@keyframes random-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.4); box-shadow: 0 0 0 4px rgba(196, 57, 29, 0.4); }
  100% { transform: scale(1); }
}

.grilla-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--hdh-steel-mid);
}

.legend-dot {
  width: 12px; height: 12px;
  border-radius: 3px;
}

.legend-dot--libre    { background: var(--hdh-bone); border: 1px solid var(--hdh-clay); }
.legend-dot--selected { background: var(--hdh-ember); }
.legend-dot--reservado { background: rgba(217, 119, 6, 0.6); }
.legend-dot--vendido  { background: var(--hdh-steel); }

.grilla {
  display: grid;
  grid-template-columns: repeat(30, 1fr);
  gap: 4px;
}

.num-cell {
  aspect-ratio: 1;
  background: var(--hdh-bone);
  border: 1px solid var(--hdh-clay);
  border-radius: 4px;
  color: var(--hdh-steel);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.num-cell:hover:not(.reservado):not(.vendido):not(.regalado) {
  background: var(--hdh-clay);
  border-color: var(--hdh-steel-mid);
  color: var(--hdh-black);
  transform: scale(1.15);
  z-index: 2;
  position: relative;
}

.num-cell.selected {
  background: var(--hdh-ember);
  border-color: var(--hdh-ember-dark);
  color: #fff;
  box-shadow: 0 0 0 1px var(--hdh-ember-dark), 0 4px 12px rgba(196, 57, 29, 0.3);
}

.num-cell.reservado {
  background: rgba(217, 119, 6, 0.2);
  color: rgba(60, 50, 30, 0.5);
  cursor: not-allowed;
  border-color: rgba(217, 119, 6, 0.3);
}

.num-cell.vendido,
.num-cell.regalado,
.num-cell.vendido[disabled],
.num-cell.regalado[disabled] {
  background: var(--hdh-black) !important;
  color: rgba(255,255,255,0.55) !important;
  cursor: not-allowed !important;
  border-color: var(--hdh-black) !important;
  text-decoration: line-through !important;
  opacity: 1 !important;
}

.num-cell.dim { opacity: 0.15; }

.grilla-summary {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--hdh-clay);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--hdh-steel-mid);
}

.grilla-summary strong { color: var(--hdh-black); font-family: var(--font-display); }

/* ============================================================ */
/* PANEL FLOTANTE DE COMPRA                                     */
/* ============================================================ */

.compra-panel {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.95), var(--hdh-black));
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 24px;
  z-index: 90;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
}

.compra-panel.open { transform: translateY(0); }

.compra-panel-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  gap: 24px;
  flex-wrap: wrap;
}

.compra-resumen {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.compra-info {
  font-family: var(--font-display);
}

.compra-info-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--hdh-steel-mid);
  margin-bottom: 2px;
}

.compra-info-val {
  font-weight: 700;
  font-size: 17px;
  color: #fff;
}

.compra-info-val--total { color: var(--hdh-ember-light); font-size: 22px; }

.compra-acciones {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ============================================================ */
/* MODAL CHECKOUT                                               */
/* ============================================================ */

.checkout-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.85);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(8px);
}

.checkout-backdrop.open { display: flex; }

.checkout-modal {
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  width: 100%;
  max-width: 600px;
  max-height: 92vh;
  overflow-y: auto;
}

.checkout-header {
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkout-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: #fff;
}

.checkout-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: none;
  color: var(--hdh-silver);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.checkout-close:hover { background: rgba(255,255,255,0.12); color: #fff; }

.checkout-body { padding: 28px; }

.checkout-section {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.checkout-section:last-child { border-bottom: none; padding-bottom: 0; }

.checkout-section-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--hdh-ember-light);
  margin-bottom: 12px;
}

.checkout-numeros {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.checkout-num-chip {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  background: var(--hdh-ember);
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
}

.checkout-mundial-info {
  background: rgba(196, 57, 29, 0.1);
  border: 1px solid rgba(196, 57, 29, 0.3);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--hdh-silver);
  margin-bottom: 14px;
}

.checkout-mundial-info strong { color: #fff; }

.checkout-field {
  margin-bottom: 14px;
}

.checkout-field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--hdh-silver);
  margin-bottom: 6px;
}

.checkout-field input,
.checkout-field select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.checkout-field input:focus,
.checkout-field select:focus { border-color: var(--hdh-ember); }
.checkout-field input::placeholder { color: var(--hdh-steel-mid); }

/* Multi-país en checkout */
.pais-cupo {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pais-cupo-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--hdh-ember);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

.pais-cupo select {
  flex: 1;
  height: 44px;
  padding: 0 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

.pais-cupo select:focus { border-color: var(--hdh-ember); }

.checkout-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 20px 24px;
  background: rgba(196, 57, 29, 0.12);
  border-radius: 12px;
  margin-bottom: 20px;
}

.checkout-total-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--hdh-silver);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.checkout-total-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  color: var(--hdh-ember-light);
  letter-spacing: -1px;
}

/* ============================================================ */
/* FAQ                                                          */
/* ============================================================ */

.sorteo-faq .accordion-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.sorteo-faq .accordion-item:hover { border-color: rgba(255,255,255,0.18); }

.sorteo-faq .accordion-header {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: #fff;
}

.sorteo-faq .accordion-icon {
  color: var(--hdh-ember-light);
  font-size: 22px;
  font-family: var(--font-display);
  font-weight: 300;
  transition: transform 0.3s;
}

.sorteo-faq .accordion-item.active .accordion-icon { transform: rotate(45deg); }

.sorteo-faq .accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.sorteo-faq .accordion-item.active .accordion-body { max-height: 300px; }

.sorteo-faq .accordion-body-inner {
  padding: 0 24px 18px;
  color: var(--hdh-silver);
  font-size: 14px;
  line-height: 1.6;
}

.sorteo-faq .accordion-body-inner strong { color: #fff; }

/* ============================================================ */
/* CTAs                                                         */
/* ============================================================ */

.btn-sorteo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 32px;
  background: var(--hdh-ember);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 6px 20px rgba(196, 57, 29, 0.35);
}

.btn-sorteo:hover { background: var(--hdh-ember-dark); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(196, 57, 29, 0.45); }
.btn-sorteo[disabled] { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-sorteo-ghost {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: none;
}
.btn-sorteo-ghost:hover { background: rgba(255,255,255,0.12); box-shadow: none; }

/* ============================================================ */
/* RESPONSIVE                                                   */
/* ============================================================ */

/* ================================================ */
/* RESPONSIVE — Mobile optimization                 */
/* ================================================ */

@media (max-width: 900px) {
  .sorteo-section { padding: 56px 0; }

  /* Mundial stats: 3 → 1 col en mobile */
  .mundial-stats { grid-template-columns: 1fr; gap: 10px; }
  .mundial-stat { padding: 20px 16px; }
  .mundial-stat-value { font-size: 40px; }

  /* Mundial image — más alta en mobile para que se vea mejor */
  .mundial-image-slot {
    aspect-ratio: 4 / 3;
    margin-bottom: 40px;
  }
  .mundial-image-slot img {
    transform: scale(1.05);
  }
}

@media (max-width: 768px) {
  /* Hero — bajar padding y focus de imagen */
  .sorteo-hero {
    padding: 70px 0 50px;
  }
  .sorteo-hero::before {
    background-position: center bottom;
    opacity: 0.55;
  }

  /* Botón volver más chico */
  .back-to-home {
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    font-size: 10px;
    letter-spacing: 1px;
  }

  /* Premios y pasos: 1 columna */
  .premios-grid { grid-template-columns: 1fr; gap: 16px; }
  .pasos-grid { grid-template-columns: 1fr; gap: 32px; }
  .paso:not(:last-child)::after { display: none; }
  .premio-card { padding: 28px 22px; }
  .premio-rank { font-size: 56px; }

  /* Grilla: cuadrados un poco más grandes */
  .grilla { grid-template-columns: repeat(15, 1fr); }
  .num-cell { font-size: 9px; }
  .grilla-wrap { padding: 16px; border-radius: 16px; }

  /* Banderas */
  .banderas-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
  .bandera-flag { font-size: 24px; }

  /* Countdown — apretado pero sin wrap */
  .countdown { gap: 8px; flex-wrap: wrap; justify-content: center; }
  .countdown-box { padding: 10px 14px; min-width: 68px; flex: 1 0 60px; max-width: 80px; }
  .countdown-value { font-size: 22px; }

  /* Pricing pills — stack */
  .pricing-pills { flex-direction: column; gap: 10px; align-items: stretch; }
  .pricing-pill { justify-content: center; padding: 12px 20px; }

  /* Compra panel — más compacto */
  .compra-panel { padding: 12px 16px; }
  .compra-panel-inner { gap: 12px; }
  .compra-resumen { gap: 12px; font-size: 12px; flex-wrap: wrap; }
  .compra-info-val { font-size: 14px; }
  .compra-info-val--total { font-size: 18px; }
  .compra-acciones { gap: 6px; flex-wrap: wrap; }
  .compra-acciones .btn-sorteo { height: 42px; padding: 0 18px; font-size: 11px; letter-spacing: 1.5px; flex: 1 0 auto; }

  /* Toolbar grilla */
  .grilla-toolbar { gap: 10px; }
  .grilla-search { max-width: 100%; }
  .grilla-legend { gap: 10px; font-size: 10px; }

  /* Section labels */
  .sorteo-overline { font-size: 10px; letter-spacing: 3px; }

  /* Checkout modal — full screen en mobile */
  .checkout-backdrop { padding: 0; align-items: flex-end; }
  .checkout-modal { max-height: 95vh; border-radius: 20px 20px 0 0; }
  .checkout-header { padding: 18px 22px; }
  .checkout-body { padding: 20px; }
  .checkout-section { margin-bottom: 22px; padding-bottom: 22px; }
  .checkout-total { padding: 16px 18px; }
  .checkout-total-value { font-size: 26px; }

  /* FAQ */
  .sorteo-faq .accordion-header { padding: 16px 18px; font-size: 14px; }
}

@media (max-width: 500px) {
  /* Hero — texto un toque más chico */
  .sorteo-hero h1 { letter-spacing: -2px; line-height: 1.02; }
  .sorteo-hero-sub { font-size: 15px; }
  .sorteo-event-tag { font-size: 10px; letter-spacing: 3px; padding: 6px 14px; }

  /* Logo mid */
  .hero-main-logo { height: 80px; margin-bottom: 18px; }

  /* Grilla más compacta */
  .grilla { grid-template-columns: repeat(10, 1fr); gap: 3px; }
  .num-cell { font-size: 10px; }

  /* Section titles */
  .sorteo-section h2 { font-size: 30px; letter-spacing: -1px; }
  .sorteo-section-sub { font-size: 14px; margin-bottom: 36px; }

  /* Premios */
  .premio-rank { font-size: 48px; }
  .premio-title { font-size: 18px; }

  /* Sticky compra panel se hace 1 columna */
  .compra-panel-inner { flex-direction: column; align-items: stretch; }
  .compra-acciones { width: 100%; }
}
