/* ============================================
   TOKENS DE DISEÑO — extraídos del logo GoGoTech
   (navy casi negro + turquesa/teal + blanco)
   ============================================ */
:root {
  --bg: #0c0f1c;
  --surface: #131a2c;
  --surface-alt: #1b2440;
  --border: #263153;

  --teal: #00a3af;
  --teal-bright: #2fd0da;
  --teal-deep: #00767f;
  --coral: #e2574c;

  --text: #eef1f4;
  --text-muted: #8894b3;

  --font-display: 'Poppins', sans-serif;
  --font-body: 'Work Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  padding-bottom: 96px; /* espacio para la barra fija */
}

img { max-width: 100%; display: block; }
h1, h2 { font-family: var(--font-display); }

a { color: inherit; }

/* Accesibilidad: foco visible siempre */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--teal-bright);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ============ BOTONES (compartidos) ============ */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn--gold { background: var(--teal); color: var(--bg); }
.btn--gold:hover { background: var(--teal-bright); }
.btn--coral { background: var(--coral); color: var(--text); width: 100%; margin-top: 8px; }
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--outline:hover { border-color: var(--teal); color: var(--teal-bright); }

/* ============ NAVBAR ============ */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 50;
  border-bottom: 1px solid var(--border);
}

.nav__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.5px;
  color: var(--text);
  text-decoration: none;
}
.nav__logo span { color: var(--teal); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: var(--text-muted);
}
.nav__links a { text-decoration: none; }
.nav__links a:hover { color: var(--teal-bright); }

.nav__cta {
  background: var(--teal);
  color: var(--bg) !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
}
.nav__cta:hover { background: var(--teal-bright); }

@media (max-width: 720px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 0 24px;
    gap: 14px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease;
  }
  .nav__links.abierto {
    max-height: 400px;
    opacity: 1;
    padding: 16px 24px;
  }
  .nav__cta { width: 100%; text-align: center; }
}

/* ============ HERO ============ */
.hero { padding: 24px 24px 32px; }

.hero__card {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  max-width: 920px;
  margin: 0 auto;
}

@media (min-width: 720px) {
  .hero__card { grid-template-columns: 1fr 1fr; }
}

.hero__media {
  position: relative;
  background: var(--surface-alt);
  min-height: 240px;
}

.hero__imagen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 240px;
}

.hero__ribbon {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--teal);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 999px;
}
.hero__ribbon.agotado { background: var(--coral); }

.hero__ticket-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--teal);
  color: var(--bg);
  border-radius: 8px;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}

.hero__ticket-badge-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  opacity: 0.75;
}

.hero__ticket-badge-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
}

.hero__info {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  color: var(--teal-bright);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0;
}

.hero__info h1 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
}

.hero__descripcion {
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.hero__trust {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 16px;
  color: var(--text-muted);
}

.hero__fecha {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin: 8px 0 0;
}
.hero__fecha span { color: var(--text); }

.hero__progreso { margin-top: 6px; }
.hero__progreso-barra {
  height: 8px;
  background: var(--surface-alt);
  border-radius: 999px;
  overflow: hidden;
}
.hero__progreso-relleno {
  height: 100%;
  background: linear-gradient(90deg, var(--teal-deep), var(--teal-bright));
  transition: width 0.4s ease;
}
.hero__progreso-texto {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

/* ============ SECCIÓN DE NÚMEROS ============ */
.tickets {
  max-width: 920px;
  margin: 0 auto;
  padding: 40px 24px 0;
}

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

.tickets__header h2 { font-size: 24px; margin: 0; font-weight: 600; }

.tickets__leyenda {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.leyenda-item { display: flex; align-items: center; gap: 6px; }

.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot--disponible { background: transparent; border: 2px solid var(--teal); }
.dot--seleccionado { background: var(--teal); }
.dot--vendido { background: var(--text-muted); opacity: 0.5; }

.tickets__acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.buscar-numero, .elegir-azar {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 220px;
}

.buscar-numero input, .elegir-azar input {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 14px;
  min-width: 0;
}
.buscar-numero input { flex: 1; }
.elegir-azar input { width: 64px; text-align: center; }

.grid-mensaje {
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-align: center;
  padding: 32px 0;
}

.grid-boletos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 8px;
  margin-bottom: 24px;
}

.boleto {
  font-family: var(--font-mono);
  font-size: 13px;
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 10px 0;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.boleto--disponible { border-color: var(--teal); color: var(--text); }
.boleto--disponible:hover { border-color: var(--teal-bright); transform: translateY(-2px); }

.boleto--seleccionado {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--bg);
  font-weight: bold;
}

.boleto--reservado, .boleto--pagado {
  background: var(--surface-alt);
  border-color: transparent;
  color: var(--text-muted);
  opacity: 0.45;
  cursor: not-allowed;
}

.boleto--resaltado {
  animation: pulso 1s ease 2;
}
@keyframes pulso {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47, 208, 218, 0.6); }
  50% { box-shadow: 0 0 0 6px rgba(47, 208, 218, 0); }
}

/* ============ VERIFICADOR ============ */
.verificador {
  max-width: 920px;
  margin: 56px auto 0;
  padding: 32px 24px;
  background: var(--surface);
  border-radius: 16px;
}
.verificador h2 { font-size: 22px; margin: 0 0 6px; font-weight: 600; }
.verificador__ayuda { color: var(--text-muted); margin: 0 0 18px; font-size: 14px; }

.verificador__form { display: flex; gap: 10px; flex-wrap: wrap; }
.verificador__form input {
  flex: 1;
  min-width: 200px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 12px;
  font-family: var(--font-body);
  font-size: 14px;
}

.verificador__resultado { margin-top: 18px; }

.verificador__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--surface-alt);
  border-radius: 8px;
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-size: 14px;
}
.verificador__estado { font-weight: bold; }
.verificador__estado--disponible { color: var(--teal-bright); }
.verificador__estado--reservado { color: var(--text-muted); }
.verificador__estado--pagado { color: var(--teal); }

/* ============ FAQ ============ */
.faq {
  max-width: 920px;
  margin: 56px auto 0;
  padding: 0 24px;
}
.faq h2 { font-size: 22px; margin: 0 0 16px; font-weight: 600; }

.faq__item {
  border-bottom: 1px solid var(--border);
}
.faq__pregunta {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 16px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq__pregunta::after {
  content: '+';
  font-size: 20px;
  color: var(--teal);
  transition: transform 0.2s ease;
}
.faq__item.abierto .faq__pregunta::after { transform: rotate(45deg); }

.faq__respuesta {
  max-height: 0;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  transition: max-height 0.25s ease;
}
.faq__item.abierto .faq__respuesta { max-height: 240px; padding-bottom: 16px; }

.footer-nota {
  max-width: 920px;
  margin: 40px auto 0;
  padding: 0 24px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* ============ PIE DE PÁGINA ============ */
.site-footer {
  margin-top: 48px;
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.site-footer__marca {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--text);
}
.site-footer__marca span { color: var(--teal); }
.site-footer__links { display: flex; gap: 18px; font-size: 13px; color: var(--text-muted); }
.site-footer__links a { text-decoration: none; }
.site-footer__links a:hover { color: var(--teal-bright); }
.site-footer__legal { font-size: 12px; color: var(--text-muted); margin: 0; }

/* ============ BARRA FIJA DE SELECCIÓN ============ */
.barra-seleccion {
  position: fixed;
  left: 0; right: 0;
  bottom: -120px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: bottom 0.25s ease;
  z-index: 40;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.3);
}
.barra-seleccion.visible { bottom: 0; }

.barra-seleccion__info {
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}
.barra-seleccion__total { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--text); }

/* ============ MODAL ============ */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 14, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 60;
}
.modal.abierto { opacity: 1; pointer-events: auto; }

.modal__contenido {
  background: var(--surface);
  border-radius: 16px;
  padding: 28px;
  max-width: 420px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal__cerrar {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
}

.modal__eyebrow {
  font-family: var(--font-mono);
  color: var(--teal-bright);
  font-size: 12px;
  text-transform: uppercase;
  margin: 0 0 4px;
}

.modal__numeros { font-family: var(--font-mono); font-size: 15px; margin: 0 0 4px; }
.modal__total { margin: 0; color: var(--text-muted); }
.modal__total strong { color: var(--text); font-family: var(--font-display); font-size: 18px; }

.modal__divider {
  height: 4px;
  background-image: radial-gradient(circle, var(--border) 2px, transparent 2px);
  background-size: 12px 4px;
  background-repeat: repeat-x;
  background-position: center;
  margin: 18px 0;
}

.form-compra { display: flex; flex-direction: column; gap: 4px; }
.form-compra label { font-size: 12px; color: var(--text-muted); margin-top: 10px; }
.form-compra input, .form-compra select {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 14px;
}

/* ============ TOAST ============ */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface-alt);
  border-left: 4px solid var(--teal);
  color: var(--text);
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 14px;
  max-width: 90vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 100;
}
.toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { border-left-color: var(--coral); }

/* ============ SELECTOR DE CANTIDAD ============ */
.selector-cantidad {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 24px 0 8px;
}
.selector-cantidad__btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--surface-alt);
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.selector-cantidad__btn:hover { background: var(--teal); color: var(--bg); }

.selector-cantidad__valor {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
}
.selector-cantidad__valor span:first-child {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
}
.selector-cantidad__label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}
.selector-cantidad__total {
  text-align: center;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 28px;
}

/* ============ MÉTODOS DE PAGO ============ */
.metodos-pago__titulo { font-size: 16px; font-weight: 600; text-align: center; margin: 0 0 14px; }
.metodos-pago { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 20px; }

.metodo-pago {
  width: 64px; height: 64px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: var(--surface-alt);
  padding: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.metodo-pago img { width: 100%; height: 100%; object-fit: contain; }
.metodo-pago:hover { transform: translateY(-2px); }
.metodo-pago--activo { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal-bright) inset; }

.cuenta-detalle {
  max-width: 360px;
  margin: 0 auto 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}
.cuenta-detalle__banco { font-family: var(--font-display); font-weight: 700; font-size: 17px; margin: 0 0 10px; }
.cuenta-detalle__label { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); text-transform: uppercase; margin: 10px 0 2px; }
.cuenta-detalle__numero-fila { display: flex; align-items: center; justify-content: center; gap: 8px; }
.cuenta-detalle__numero { font-family: var(--font-mono); font-size: 18px; font-weight: bold; }
.cuenta-detalle__copiar { background: none; border: none; cursor: pointer; font-size: 16px; }
.cuenta-detalle__titular { margin: 0; color: var(--text-muted); }

.btn--ancho { display: block; width: 100%; max-width: 360px; margin: 0 auto; text-align: center; }

/* ============ MODAL DE ÉXITO ============ */
.exito__mensaje { color: var(--text-muted); margin: 0 0 16px; font-size: 14px; }
.exito__numeros-caja {
  background: var(--surface-alt);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  margin-bottom: 20px;
}
.exito__numeros-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin: 0 0 6px;
}
.exito__numeros {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 1px;
  margin: 0;
}
.exito__botones { display: flex; flex-direction: column; gap: 10px; }

/* ============ BOTÓN FLOTANTE DE WHATSAPP ============ */
.whatsapp-flotante {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 45;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  transition: transform 0.15s ease;
}
.whatsapp-flotante:hover { transform: scale(1.06); }

.whatsapp-flotante__icono {
  width: 30px;
  height: 30px;
  color: #ffffff;
  position: relative;
  z-index: 2;
}

.whatsapp-flotante__pulso {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  z-index: 1;
  animation: whatsapp-pulso 2s ease-out infinite;
}

@keyframes whatsapp-pulso {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

.whatsapp-flotante__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  z-index: 3;
  background: var(--coral);
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg);
}

@media (max-width: 480px) {
  .whatsapp-flotante { width: 52px; height: 52px; bottom: 80px; right: 14px; }
  .whatsapp-flotante__icono { width: 26px; height: 26px; }
}

.whatsapp-flotante__etiqueta {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  color: var(--text);
  white-space: nowrap;
  z-index: 2;
}

.cuenta-detalle__copiar {
  background: var(--teal);
  border: none;
  cursor: pointer;
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.15s ease;
}
.cuenta-detalle__copiar:hover { background: var(--teal-bright); }
.cuenta-detalle__copiar svg { width: 18px; height: 18px; }

.icono-dinero { width: 22px; height: 22px; }

.hero__whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #25D366;
  font-weight: 600;
  text-decoration: none;
}
.hero__whatsapp-link:hover { text-decoration: underline; }
.hero__whatsapp-link .icono { width: 16px; height: 16px; }

.form-compra__aviso {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1;
  margin: 12px 0 4px;
}

.btn--con-icono { display: inline-flex; align-items: center; justify-content: center; gap: 3px; }

.archivo-boton {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s ease;
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
}
.archivo-boton:hover { border-color: var(--teal); }

.archivo-boton__icono-caja {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.archivo-boton__texto {
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
}

.archivo-input-oculto {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.archivo-nombre {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  text-align: center;
}
.archivo-nombre--seleccionado { color: var(--teal-bright); font-weight: 600; }

.archivo-boton--seleccionado { border-color: var(--teal); background: rgba(0, 163, 175, 0.08); }
.archivo-boton--error { border-color: var(--coral); }
.archivo-nombre--error { color: var(--coral); font-weight: 600; }

/* ============ SORTEO FINALIZADO ============ */
.hero__ribbon.finalizado { background: var(--coral); }

.hero__media.finalizado::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(12, 15, 28, 0.6);
  pointer-events: none;
}

.sorteo-finalizado {
  text-align: center;
  padding: 32px 16px;
  background: var(--surface);
  border-radius: 16px;
}
.sorteo-finalizado h2 { font-size: 22px; margin: 0 0 10px; }
.sorteo-finalizado p { color: var(--text-muted); margin: 0; line-height: 1.6; }

/* ============ OVERLAY DE CARGA ============ */

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

.overlay-cargando {
  position: fixed;
  inset: 0;
  background: rgba(12, 15, 28, 0.92);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.overlay-cargando__logo {
  display: flex;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
}

.overlay-cargando__logo .letra {
  display: inline-block;
  animation: letra-rebote 1.2s ease-in-out infinite;
}
.overlay-cargando__logo .letra:nth-child(1) { animation-delay: 0s;     color: var(--text); }
.overlay-cargando__logo .letra:nth-child(2) { animation-delay: 0.08s;  color: var(--teal); }
.overlay-cargando__logo .letra:nth-child(3) { animation-delay: 0.16s;  color: var(--text); }
.overlay-cargando__logo .letra:nth-child(4) { animation-delay: 0.24s;  color: var(--teal-bright); }
.overlay-cargando__logo .letra:nth-child(5) { animation-delay: 0.32s;  color: var(--teal); }
.overlay-cargando__logo .letra:nth-child(6) { animation-delay: 0.40s;  color: var(--text); }
.overlay-cargando__logo .letra:nth-child(7) { animation-delay: 0.48s;  color: var(--teal-bright); }
.overlay-cargando__logo .letra:nth-child(8) { animation-delay: 0.56s;  color: var(--coral); }

@keyframes letra-rebote {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-14px); }
}

.overlay-cargando__texto {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
}

/* ============ ANIMACIONES ============ */

/* Rebote del número de cantidad al usar +/- */
@keyframes numero-rebote {
  0% { transform: scale(1); }
  40% { transform: scale(1.3); }
  100% { transform: scale(1); }
}
.numero-rebote { animation: numero-rebote 0.25s ease; }

/* Rebote del logo de pago al seleccionarlo */
@keyframes metodo-rebote {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.metodo-pago--activo { animation: metodo-rebote 0.3s ease; }

/* Botones "presionándose" al hacer clic */
.btn:active { transform: scale(0.96); }

/* Fundido suave de la tarjeta del premio al cargar la página */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero__card { animation: fade-in-up 0.5s ease; }

/* ============ MÁS ANIMACIONES ============ */

/* Modales: aparecen con un pequeño "pop" en vez de solo un fundido */
.modal__contenido, .ganador-modal__contenido {
  transform: scale(0.92);
  transition: transform 0.25s ease;
}
.modal.abierto .modal__contenido,
.modal.abierto .ganador-modal__contenido {
  transform: scale(1);
}

/* "Continuar" brilla suavemente cuando ya se puede hacer clic */
@keyframes boton-brillo {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 163, 175, 0.5); }
  50% { box-shadow: 0 0 0 10px rgba(0, 163, 175, 0); }
}
#btn-comprar:not(:disabled) { animation: boton-brillo 2s ease-in-out infinite; }

.site-footer__firma {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: none;
}
.site-footer__firma:hover { color: var(--teal-bright); text-decoration: underline; }

/* ============ TÉRMINOS Y CONDICIONES ============ */
.terminos { max-width: 720px; margin: 0 auto; padding: 40px 24px 60px; }
.terminos h1 { font-size: 32px; margin: 0 0 8px; }
.terminos__fecha { color: var(--text-muted); font-size: 13px; margin: 0 0 32px; }
.terminos h2 { font-size: 19px; margin: 32px 0 10px; color: var(--teal-bright); }
.terminos p, .terminos li { color: var(--text); line-height: 1.7; font-size: 15px; }
.terminos ul { margin: 0 0 16px; padding-left: 20px; }
.terminos li { margin-bottom: 8px; }
.terminos a { color: var(--teal-bright); }

.terminos__pendiente {
  background: rgba(226, 87, 76, 0.15);
  color: var(--coral);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.terminos__volver { color: var(--text-muted); text-decoration: none; font-size: 14px; }
.terminos__volver:hover { color: var(--teal-bright); }