/* =====================================================================
   DuoRifa — estilos
   Paleta basada en el logo: negro (#0A0A0A), dorado (#D4AF37) y
   plateado (#C9CDD3). El verde se mantiene ÚNICAMENTE para el estado
   "Verificado" (éxito) — en todo lo demás se usó dorado/negro/plateado.
   Tipografía: Sora (títulos) + Inter (texto)
   ===================================================================== */

:root {
  --gold: #D4AF37;
  --gold-bright: #F1C64C;
  --gold-soft: rgba(212, 175, 55, 0.16);
  --black: #0A0A0A;
  --charcoal: #161616;
  --card: #1E1E1E;
  --card-border: rgba(255, 255, 255, 0.08);
  --silver: #C9CDD3;
  --text: #F2F2F2;
  --text-soft: rgba(242, 242, 242, 0.65);
  --white: #FFFFFF;
  --green: #0F7B4F;
  --green-dark: #0B5C3B;
  --green-light: rgba(15, 123, 79, 0.18);
  --danger: #E2543A;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  --font-display: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--black);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--white);
  margin: 0 0 12px;
  line-height: 1.15;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-align: center;
  margin-bottom: 8px;
}

.section-sub {
  text-align: center;
  color: var(--text-soft);
  max-width: 560px;
  margin: 0 auto 32px;
}

a { color: inherit; }

/* Placeholder de foto/logo que el cliente reemplaza luego */
.tag-photo {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px dashed var(--gold);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 8px;
}
.tag-photo-sm { font-size: 0.62rem; padding: 3px 9px; }

/* ============ BOTONES ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--gold);
  color: #151008;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.35);
}
.btn-primary:hover { background: var(--gold-bright); }
.btn-primary:disabled {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.35);
  box-shadow: none;
  cursor: not-allowed;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.6); }
.btn-whatsapp {
  background: #25D366;
  color: var(--white);
}
.btn-whatsapp:hover { background: #1DA851; }
.btn-block { width: 100%; }

/* ============ BOTONES FLOTANTES ============ */
.floating-buttons {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 60;
}
.float-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
}
.float-whatsapp { background: #25D366; }
.float-instagram {
  background: radial-gradient(circle at 30% 110%, #ffdb8b 0%, #ee2a7b 45%, #6228d7 90%);
}
.float-whatsapp {
  animation: pulseGlow 2.6s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 8px 22px rgba(37,211,102,0.35); }
  50% { box-shadow: 0 8px 30px rgba(37,211,102,0.65); }
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(8px);
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--white);
  text-decoration: none;
}
.logo-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}
.logo-text span { color: var(--gold); }
.main-nav { display: flex; gap: 26px; }
.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}
.main-nav a:hover { color: var(--gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* ============ HERO ============
   hero-inner tiene 3 hijos directos: hero-copy, hero-visual y
   hero-actions (los botones ya no van anidados dentro de hero-copy).
   En escritorio se acomodan con grid-template-areas en 2 columnas:
   copy/actions a la izquierda, visual a la derecha ocupando ambas filas.
   En móvil se cambia a una sola columna en orden: visual, actions, copy
   — así los botones quedan justo debajo de la foto de los carros.
   ============ */
.hero {
  background: linear-gradient(155deg, #050505 0%, #171310 55%, #1f1a12 100%);
  color: var(--white);
  padding: 64px 0 88px;
  overflow: hidden;
  position: relative;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  grid-template-areas:
    "copy visual"
    "actions visual";
  column-gap: 40px;
  row-gap: 0;
  align-items: center;
}
.hero-copy { grid-area: copy; }
.hero-visual { grid-area: visual; }
.hero-actions { grid-area: actions; }

.hero-logo { margin-top: -28px; margin-bottom: 16px; }
.hero-logo-img {
  max-width: 250px;
  height: auto;
}
.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  color: var(--white);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.05;
}
.hero-sub {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 0;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero .btn-ghost { color: var(--white); border-color: rgba(255,255,255,0.35); }
.hero .btn-ghost:hover { border-color: var(--white); }

.hero-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  color: var(--text);
  box-shadow: var(--shadow);
  animation: floatCard 4.5s ease-in-out infinite;
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-car-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--charcoal);
}
.hero-card-label {
  margin-top: 14px;
  font-weight: 700;
  font-size: 1.1rem;
  font-family: var(--font-display);
  color: var(--gold);
}

/* ============ PROGRESO ============ */
.progress-section { padding: 44px 0 0; margin-top: -46px; position: relative; z-index: 5; }
.progress-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 26px 28px;
}
.progress-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.progress-head h2 { font-size: 1.2rem; margin-bottom: 4px; }
.progress-percent {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--gold);
}
.progress-track {
  width: 100%;
  height: 16px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 100%);
  border-radius: 999px;
  transition: width 0.8s ease;
}
.progress-note {
  margin: 16px 0 0;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-bright);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}

/* ============ PREMIOS ============ */
.prizes { padding: 78px 0 60px; }
.prize-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.prize-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
  position: relative;
}
.prize-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--gold);
  color: #151008;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 999px;
}
.prize-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--charcoal);
  margin-bottom: 14px;
}
.prize-card h3 { margin-bottom: 6px; }
.prize-card p { color: var(--text-soft); margin: 0; }

/* ============ CÓMO FUNCIONA ============ */
.how-it-works { padding: 60px 0 78px; background: var(--charcoal); }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.steps li { display: flex; flex-direction: column; gap: 10px; }
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps h3 { font-size: 1.02rem; margin-bottom: 4px; }
.steps p { color: var(--text-soft); margin: 0; font-size: 0.94rem; }

/* ============ MODAL DE COMPRA ============ */
body.modal-open { overflow: hidden; }

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(2px);
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  animation: modal-pop 0.22s ease;
}

@keyframes modal-pop {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--black);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 2;
}
.modal-close:hover { background: var(--charcoal); color: var(--white); }

/* ============ COMPRAR ============ */
.buy-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 30px;
}
.buy-step-title { font-size: 1.15rem; margin-bottom: 18px; }

.qty-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

/* Botón estilo "boleto real": esquinas parejas, talón derecho con su
   propio fondo (como si fuera una pieza desprendible), muescas
   perforadas en la línea punteada y sombra bajo el botón para dar
   sensación de que está apoyado sobre la superficie. */
.qty-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  background: linear-gradient(180deg, #201a0e 0%, var(--charcoal) 100%);
  color: var(--text);
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
.qty-btn:hover {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.25), 0 6px 16px rgba(0, 0, 0, 0.45);
}

.qty-btn-left {
  display: flex;
  align-items: baseline;
  gap: 6px;
  position: relative;
  z-index: 2;
}
.qty-btn-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--gold-bright);
}
.qty-btn-label {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Talón del boleto: fondo propio (semitransparente oscuro), extendido
   hasta los bordes del botón con margin negativo, separado por la
   línea punteada dorada y con muescas "perforadas" (fondo sólido +
   sombra interior) en los extremos de esa línea. */
.qty-btn-right {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 6px 10px 20px;
  margin: -12px -18px -12px 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.16) 0 1px,
      transparent 1px 3px,
      rgba(255, 255, 255, 0.08) 3px 4px,
      transparent 4px 7px
    ),
    rgba(0, 0, 0, 0.28);
  border-left: 2px dashed rgba(212, 175, 55, 0.5);
}
.qty-btn-right::before,
.qty-btn-right::after {
  content: "";
  position: absolute;
  left: -9px;
  width: 18px;
  height: 18px;
  background: var(--black);
  border-radius: 50%;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
  z-index: 2;
}
.qty-btn-right::before { top: -9px; }
.qty-btn-right::after { bottom: -9px; }

.qty-btn-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--white);
  padding-right: 8px;
}
.qty-btn-indicator {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--silver);
  flex-shrink: 0;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.qty-btn[aria-pressed="true"] {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.18) 0%, rgba(212, 175, 55, 0.06) 100%);
  box-shadow: 0 0 0 1.5px var(--gold), 0 6px 18px rgba(212, 175, 55, 0.28);
  transform: scale(1.01);
}
.qty-btn[aria-pressed="true"] .qty-btn-indicator {
  border-color: var(--gold);
  background: radial-gradient(circle, var(--gold-bright) 0%, var(--gold-bright) 45%, transparent 50%);
}

/* ===== Efecto de "sello" al tocar/hacer clic un boleto ===== */
@keyframes qtyTapPunch {
  0%   { transform: scale(1);     filter: brightness(1); }
  30%  { transform: scale(0.93);  filter: brightness(1.6); }
  60%  { transform: scale(1.04);  filter: brightness(1.15); }
  100% { transform: scale(1);     filter: brightness(1); }
}
.qty-btn.tap-effect {
  animation-name: ticketGlow, qtyTapPunch;
  animation-duration: 2.2s, 0.4s;
  animation-timing-function: ease-in-out, cubic-bezier(.34, 1.56, .64, 1);
  animation-iteration-count: infinite, 1;
}
.qty-btn[aria-pressed="true"].tap-effect {
  animation-name: ticketGlowActive, qtyTapPunch;
  animation-duration: 2.2s, 0.4s;
  animation-timing-function: ease-in-out, cubic-bezier(.34, 1.56, .64, 1);
  animation-iteration-count: infinite, 1;
}

/* ===== Animación de luz: destello al pasar el mouse ===== */
.qty-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 45%,
    rgba(241, 198, 76, 0.35) 50%,
    rgba(255, 255, 255, 0.08) 55%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left 0.65s ease;
  pointer-events: none;
  z-index: 1;
}
.qty-btn:hover::before {
  left: 130%;
}

/* ===== Halo de neón sólido en todos los boletos (activo desde que carga la página) ===== */
.qty-btn {
  animation: ticketGlow 2.2s ease-in-out infinite;
}
@keyframes ticketGlow {
  0%, 100% {
    box-shadow:
      inset 0 0 0 4px var(--charcoal),
      inset 0 0 0 5px rgba(212, 175, 55, 0.55),
      0 0 0 1.5px rgba(212, 175, 55, 0.5),
      0 0 8px 1px rgba(241, 198, 76, 0.35),
      0 0 16px 3px rgba(241, 198, 76, 0.18),
      0 6px 18px rgba(0, 0, 0, 0.4);
  }
  50% {
    box-shadow:
      inset 0 0 0 4px var(--charcoal),
      inset 0 0 0 5px rgba(212, 175, 55, 0.7),
      0 0 0 1.5px var(--gold-bright),
      0 0 14px 3px rgba(241, 198, 76, 0.65),
      0 0 26px 7px rgba(241, 198, 76, 0.3),
      0 6px 18px rgba(0, 0, 0, 0.4);
  }
}

/* El boleto seleccionado brilla más fuerte que el resto */
.qty-btn[aria-pressed="true"] {
  animation: ticketGlowActive 2.2s ease-in-out infinite;
}
@keyframes ticketGlowActive {
  0%, 100% {
    box-shadow:
      inset 0 0 0 4px var(--charcoal),
      inset 0 0 0 5px rgba(212, 175, 55, 0.75),
      0 0 0 2px var(--gold),
      0 0 10px 2px rgba(241, 198, 76, 0.55),
      0 0 22px 5px rgba(241, 198, 76, 0.3),
      0 6px 18px rgba(0, 0, 0, 0.4);
  }
  50% {
    box-shadow:
      inset 0 0 0 4px var(--charcoal),
      inset 0 0 0 5px rgba(241, 198, 76, 0.9),
      0 0 0 2px var(--gold-bright),
      0 0 16px 4px rgba(241, 198, 76, 0.85),
      0 0 32px 9px rgba(241, 198, 76, 0.45),
      0 6px 18px rgba(0, 0, 0, 0.4);
  }
}

/* ===== El punto indicador "respira" con luz cuando está seleccionado ===== */
.qty-btn[aria-pressed="true"] .qty-btn-indicator {
  animation: dotPulse 2.2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% {
    box-shadow: 0 0 4px 1px rgba(241, 198, 76, 0.5);
  }
  50% {
    box-shadow: 0 0 10px 3px rgba(241, 198, 76, 0.9);
  }
}

/* ===== Destello viajero por el borde — activo en todos los boletos ===== */
.qty-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2.5px;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 250deg,
    rgba(255, 255, 255, 0.9) 295deg,
    var(--gold-bright) 310deg,
    transparent 335deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: chaseLight 2.4s linear infinite;
  pointer-events: none;
  z-index: 3;
}
@keyframes chaseLight {
  to { transform: rotate(360deg); }
}

.qty-custom { margin-bottom: 20px; }
.qty-custom label { display: block; font-size: 0.88rem; color: var(--text-soft); margin-bottom: 6px; }
.qty-custom input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font-body);
}

.qty-summary {
  display: flex;
  justify-content: space-between;
  background: var(--gold-soft);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 20px;
}
.qty-summary-label { display: block; font-size: 0.82rem; color: var(--gold); }
.qty-summary-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--white);
}

.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.form-row input[type="text"],
.form-row input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font-body);
}
.form-row input:focus, .qty-custom input:focus, .verify-form input:focus {
  outline: 3px solid rgba(212, 175, 55, 0.3);
  border-color: var(--gold);
}

/* ============ BOTÓN DE ARCHIVO PERSONALIZADO ("Seleccionar archivo") ============ */
.file-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.file-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.file-input-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background: var(--charcoal);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  transition: border-color 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
}
.file-input-btn:hover { border-color: var(--gold); }
.file-input-hidden:focus-visible + .file-input-btn {
  outline: 3px solid rgba(212, 175, 55, 0.3);
  border-color: var(--gold);
}
.file-input-name {
  font-size: 0.85rem;
  color: var(--text-soft);
  overflow-wrap: anywhere;
}

/* ============ MÉTODOS DE PAGO (dentro del modal de compra) ============
   Se mantiene en 2 columnas (cuadrícula) en TODOS los tamaños, incluido
   móvil — antes en móvil pasaba a 1 sola columna (lista vertical), que
   es justo lo que se quería evitar. */
.payment-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.pm-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 5px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background: var(--charcoal);
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}
.pm-btn.active { border-color: var(--gold); background: var(--gold-soft); }

.pay-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  border: 2px solid rgba(0, 0, 0, 0.45);
}
.pay-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Versión más grande del mismo ícono, usada en "Métodos de pago aceptados" */
.pay-icon-lg {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  margin: 0 auto 8px;
}

/* ============ INFORMACIÓN DE PAGO (banco, cuenta, nombre, cédula) ============ */
.payment-details {
  background: var(--charcoal);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 4px 16px;
  margin: 4px 0 18px;
}

.pd-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.pd-row:last-of-type { border-bottom: none; }

.pd-label {
  font-size: 0.82rem;
  color: var(--text-soft);
  flex-shrink: 0;
}

.pd-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  text-align: right;
}
.pd-value-mono {
  font-family: "Sora", monospace;
  letter-spacing: 0.03em;
}

.pd-value-copy {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pd-copy-btn {
  flex-shrink: 0;
  background: var(--gold-soft);
  color: var(--gold-bright);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.pd-copy-btn:hover { background: rgba(212, 175, 55, 0.28); }
.pd-copy-btn.copied {
  background: var(--green-light);
  color: #6FE3B0;
  border-color: rgba(15, 123, 79, 0.5);
}

.pd-note {
  font-size: 0.9rem;
  color: var(--text-soft);
  padding: 10px 0;
  margin: 0;
}

.proof-preview {
  margin-top: 10px;
  max-height: 180px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.form-summary-row {
  display: flex;
  justify-content: space-between;
  background: var(--gold-soft);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
}

.confirm-icon { font-size: 2.4rem; text-align: center; margin-bottom: 8px; }

.ticket-numbers-box { margin: 20px 0; text-align: center; }
.ticket-numbers-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.ticket-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}
.ticket-chip {
  font-family: var(--font-display);
  font-weight: 700;
  background: var(--gold);
  color: #151008;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.06em;
  animation: chipPop 0.35s ease both;
}
@keyframes chipPop {
  from { opacity: 0; transform: translateY(6px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.confirm-wait {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-bright);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  text-align: center;
}
.whatsapp-hint { font-size: 0.84rem; color: var(--text-soft); text-align: center; margin: 10px 0 18px; }

/* ============ VERIFICAR ============ */
.verify-section { padding: 70px 0; background: var(--charcoal); }
.verify-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
}
.verify-form input {
  flex: 1;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1rem;
}
.verify-results {
  max-width: 640px;
  margin: 26px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.verify-item {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.verify-status {
  font-weight: 700;
  font-size: 0.82rem;
  padding: 5px 12px;
  border-radius: 999px;
}
.status-pendiente { background: rgba(212, 175, 55, 0.15); color: var(--gold); }
.status-verificado { background: rgba(15, 123, 79, 0.22); color: #6FE3B0; }

/* ============ MÉTODOS DE PAGO (sección informativa) ============ */
.pay-methods-section { padding: 60px 0 78px; }
.pay-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  text-align: center;
}
.pay-item {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 22px 10px;
  box-shadow: var(--shadow);
}
.pay-item p { margin: 0; font-weight: 600; font-size: 0.9rem; }

/* ============ FAQ ============ */
.faq-section { padding: 20px 0 90px; }
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-list details {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.faq-list summary { font-weight: 600; cursor: pointer; }
.faq-list p { color: var(--text-soft); margin: 10px 0 2px; }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--black);
  border-top: 1px solid var(--card-border);
  padding: 22px 0;
  text-align: center;
}
.footer-logo-box {
  max-width: 100px;
  margin: 0 auto;
}
.footer-logo-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
.footer-rights {
  margin: 14px 0 0;
  color: var(--text-soft);
  font-size: 0.82rem;
}

/* ============ ACCESIBILIDAD: FOCO VISIBLE ============ */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 900px) {
  /* El hero pasa de grid de 2 columnas a una sola columna en flex,
     con "order" para que quede: 1) foto de los carros, 2) botones,
     3) logo + título + descripción. */
  .hero-inner {
    display: flex;
    flex-direction: column;
  }
  .hero-visual {
    order: 1;
    max-width: 360px;
    margin: 0 auto;
  }
  .hero-actions {
    order: 2;
    justify-content: center;
    margin: 22px 0 0;
  }
  .hero-copy {
    order: 3;
    margin-top: 32px;
    text-align: center;
  }
  .hero-sub { margin-left: auto; margin-right: auto; }

  /* El logo grande ya no se muestra en el hero en móvil — ahora vive
     pequeño y fijo en la barra superior (ver .logo / .logo-icon). */
  .hero-logo { display: none; }

  .prize-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .pay-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--black);
    flex-direction: column;
    padding: 16px 20px 20px;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .verify-form { flex-direction: column; }
  .pay-grid { grid-template-columns: repeat(2, 1fr); }

  /* Métodos de pago en móvil: 4 en la primera fila, los 2 restantes
     centrados en la segunda (igual al orden de la imagen de referencia)
     en vez de la cuadrícula pareja de 2 columnas que se usa en escritorio. */
  .payment-methods {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  .pm-btn {
    flex: 0 0 calc(25% - 6px);
    max-width: calc(25% - 6px);
    padding: 6px 2px;
  }
  .pm-btn span:last-child {
    font-size: 0.68rem;
    line-height: 1.15;
  }
  .pay-icon { width: 44px; height: 44px; }
}

@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 70px; }
  .buy-card { padding: 22px 18px; }

  .pm-btn { flex-basis: calc(25% - 6px); max-width: calc(25% - 6px); }
  .pay-icon { width: 38px; height: 38px; }
}
/* ============ NEÓN: BORDE COMPLETO CON LUZ INFINITA ============
   Usado en Verificar y Comprar boletos (misma clase para ambos). */
.btn-neon {
  position: relative;
  border: 2px solid var(--gold-bright);
  animation: neonPulse 2s ease-in-out infinite;
}
@keyframes neonPulse {
  0%, 100% {
    box-shadow:
      0 0 4px 1px rgba(241, 198, 76, 0.6),
      0 0 10px 2px rgba(241, 198, 76, 0.4),
      0 0 20px 4px rgba(241, 198, 76, 0.2),
      inset 0 0 6px 1px rgba(241, 198, 76, 0.3);
  }
  50% {
    box-shadow:
      0 0 8px 2px rgba(241, 198, 76, 0.9),
      0 0 20px 5px rgba(241, 198, 76, 0.7),
      0 0 36px 9px rgba(241, 198, 76, 0.4),
      inset 0 0 10px 2px rgba(241, 198, 76, 0.5);
  }
}
/* ============ GALERÍA DE VEHÍCULOS (carrusel infinito) ============ */
.vehicle-gallery { padding: 60px 0 78px; overflow: hidden; }

.gallery-track-wrapper {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.gallery-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: gallerySlide 40s linear infinite;
}

.gallery-track:hover { animation-play-state: paused; }

.gallery-img {
  width: 260px;
  height: 170px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.gallery-img:hover { transform: scale(1.03); }

@keyframes gallerySlide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 720px) {
  .gallery-img { width: 190px; height: 130px; }
}

/* ============ LIGHTBOX (visor en pantalla completa) ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10, 10, 10, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox[hidden] { display: none; }

.lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--black);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.lightbox-close:hover { background: var(--gold); }
/* ============ PREMIOS: bloque único con foto de ambos carros ============ */
.prize-single {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 760px;
  margin: 0 auto;
}
.prize-single-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--charcoal);
}
.prize-single-body {
  padding: 22px 26px 26px;
}
.prize-single-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.prize-single-badges .prize-badge {
  position: static;
}
.prize-badge-second {
  background: var(--silver);
  color: #151008;
}
.prize-single-body p {
  color: var(--text-soft);
  margin: 0;
  font-size: 1rem;
}