/* ============================================
   VARIABLES DE TEMA — pagina de registro
   ============================================ */
:root {
  --purple-deep: #2a1a5e;
  --purple-mid: #4a2f8f;
  --purple-light: #a99be0;
  --purple-bg-top: #1c1147;
  --purple-bg-bottom: #1c1147;
  --orange: #f5a623;
  --orange-dark: #e0870f;
  --text-light: #ffffff;
  --radius: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  background: linear-gradient(180deg, var(--purple-bg-top) 0%, var(--purple-bg-bottom) 100%);
  color: var(--purple-deep);
  overflow-x: hidden;
}

/* ============================================
   IMAGENES DE ANCHO COMPLETO (PC_01, PC_02, PC_03, banner CTA)
   ============================================ */
.page-banner {
  width: 100%;
  max-width: 1920px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* El iframe de YouTube no tiene alto propio como una imagen o un <video> --
   sin esto, "height: auto" de .page-banner lo dejaria aplastado. */
.video-banner {
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
}

.cta-banner-link {
  display: block;
  cursor: pointer;
}

/* Imagenes/piezas especificas de celular vs escritorio. Mobile-first: por
   defecto se ven las de celular y se ocultan las de escritorio; a partir de
   800px de ancho se invierte. */
.banner-desktop {
  display: none;
}

.banner-mobile {
  display: block;
}

@media (min-width: 800px) {
  .banner-desktop {
    display: block;
  }

  .banner-mobile {
    display: none;
  }
}

/* Proporcion real de cada imagen (ancho/alto en px), para que el navegador
   reserve el espacio exacto ANTES de que la imagen termine de cargar -- sin
   esto, la pagina "salta" al terminar de bajar cada imagen (layout shift).
   El picture cambia de imagen en el mismo breakpoint (800px), asi que la
   proporcion tambien cambia ahi. */
.hero-banner-img {
  aspect-ratio: 1080 / 6876;
}
.combo-banner-img {
  aspect-ratio: 1080 / 2885;
}
@media (min-width: 800px) {
  .hero-banner-img {
    aspect-ratio: 1920 / 975;
  }
  .combo-banner-img {
    aspect-ratio: 1920 / 1390;
  }
}
.pc02-img {
  aspect-ratio: 1920 / 1325;
  /* Oculta en mobile (ahi el picture usa el pixel transparente de fallback);
     visible en desktop. display:none puesto directo en el <img> ocultaba la
     imagen SIEMPRE sin importar el dispositivo -- el <picture> solo decide
     que imagen se descarga, no si el elemento se muestra. */
  display: none;
}
@media (min-width: 800px) {
  .pc02-img {
    display: block;
  }
}

/* Facade del video: miniatura + boton de play, en vez del iframe pesado de
   entrada. Mismas proporciones (16/9) que .video-banner. */
.video-facade {
  position: relative;
  cursor: pointer;
  background: #000;
}
.video-facade-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-facade-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.video-facade:hover .video-facade-play,
.video-facade:focus-visible .video-facade-play {
  background: rgba(224, 48, 48, 0.9);
  transform: translate(-50%, -50%) scale(1.08);
}

/* ============================================
   BANNER PRINCIPAL + FORMULARIO
   El formulario flota sobre el espacio libre de la imagen de fondo,
   tanto en celular (Movil_01.jpg) como en escritorio (PC_01.jpg).
   ============================================ */
.hero-banner {
  position: relative;
}

.hero-banner .register-card {
  position: absolute;
  top: 7%;
  left: 5%;
  right: 5%;
  max-width: 420px;
  margin: 0 auto;
  z-index: 1;
}

@media (min-width: 800px) {
  .hero-banner .register-card {
    top: 24%;
    left: auto;
    right: 4%;
    width: 33%;
    min-width: 320px;
    max-width: 440px;
    padding: 28px;
    border-color: #ff2ec4;
    animation: register-card-neon 0.9s ease-in-out infinite;
  }
}

/* Brillo neon fucsia del borde -- solo en desktop (ver media query de arriba).
   Se anima entre un brillo suave y uno mas intenso para que se vea "vivo",
   no un resplandor fijo. Mas rapido y con mas contraste que la primera
   version, para que se note a simple vista. */
@keyframes register-card-neon {
  0%, 100% {
    box-shadow:
      0 0 6px #ff2ec4,
      0 0 12px rgba(255, 46, 196, 0.45),
      0 10px 24px rgba(42, 26, 94, 0.4);
  }
  50% {
    box-shadow:
      0 0 20px #ff2ec4,
      0 0 42px rgba(255, 46, 196, 0.95),
      0 10px 24px rgba(42, 26, 94, 0.4);
  }
}

/* ============================================
   TARJETA DE REGISTRO
   ============================================ */
.register-card {
  background: var(--purple-deep);
  border: 3px solid var(--orange);
  border-radius: 16px;
  padding: 22px;
  color: var(--text-light);
  box-shadow: 0 10px 24px rgba(42, 26, 94, 0.4);
}

.register-card h3 {
  text-align: center;
  color: var(--orange);
  font-size: clamp(14px, 2vw, 17px);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ede7fb;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.field[hidden] {
  display: none;
}

.field-icon {
  font-size: 14px;
}

.field input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 14px;
  color: var(--purple-deep);
  font-family: inherit;
}

.field input::placeholder {
  color: #7c6fa8;
}

/* Honeypot: fuera de la pantalla, no con display:none (algunos bots
   ignoran los campos ocultos con display:none o visibility:hidden, pero
   igual leen y llenan los que solo estan corridos fuera del viewport). */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.terms {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 14px;
  cursor: pointer;
}

.terms input {
  margin-top: 2px;
}

.terms a {
  color: var(--orange);
}

.cf-turnstile {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.form-message {
  font-size: 13px;
  font-weight: bold;
  text-align: center;
  padding: 8px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.form-message.hidden {
  display: none;
}

.form-message.error {
  background: rgba(255, 99, 99, 0.15);
  color: #ff8686;
}

.form-message.success {
  background: rgba(120, 255, 150, 0.15);
  color: #86ffa1;
}

.btn-primary,
.btn-secondary {
  display: block;
  width: 100%;
  border: none;
  border-radius: 24px;
  padding: 13px;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.5px;
  cursor: pointer;
  margin-bottom: 10px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn-primary {
  background: linear-gradient(180deg, #ffd25f, var(--orange));
  color: var(--purple-deep);
  border: 2px solid var(--purple-deep);
}

.btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: 2px solid var(--purple-light);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
}

.btn-primary:disabled,
.btn-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ============================================
   BOTON "INICIAR SESION CON GOOGLE" (opcion adicional)
   El boton en si lo dibuja Google (iframe propio, sin CSS nuestro adentro);
   aqui solo centramos su contenedor y el separador "o".
   ============================================ */
.google-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--purple-light);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 4px 0 10px;
}

.google-divider::before,
.google-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--purple-light);
  opacity: 0.4;
}

.google-signin-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.fast-note {
  text-align: center;
  font-size: 11px;
  opacity: 0.8;
  margin-top: 4px;
}

/* Link "Ya te registraste? Ingresa aqui" -- reemplaza al antiguo boton
   secundario, ahora va como texto debajo del boton de Google en vez de al
   costado del CTA principal. */
.link-ya-registrado {
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 4px 0;
  margin: 2px 0 16px;
  font-size: 12.5px;
  color: var(--text-light);
  text-align: center;
  cursor: pointer;
}

.link-ya-registrado:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.link-ya-registrado-cta {
  color: var(--orange);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================
   POPUP DE EXPLICACION
   ============================================ */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 8, 35, 0.8);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10;
}

.modal.hidden {
  display: none;
}

.modal-card {
  background: #fff;
  color: var(--purple-deep);
  border-radius: 16px;
  padding: 28px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

.modal-card-image {
  padding: 16px;
  max-width: 460px;
}

.modal-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  margin-bottom: 16px;
}

.modal .btn-primary {
  margin: 0 auto;
}

/* ============================================
   PREGUNTAS FRECUENTES (solo celular)
   ============================================ */
.faq-section {
  max-width: 460px;
  margin: 28px auto;
  padding: 0 16px;
}

.faq-title {
  text-align: center;
  color: var(--text-light);
  font-size: clamp(15px, 4vw, 19px);
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.faq-list {
  background: var(--purple-deep);
  border: 2px solid var(--purple-light);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: #ede7fb;
  border-radius: 10px;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: bold;
  font-size: 13px;
  color: var(--purple-deep);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 16px 16px;
  font-size: 13px;
  color: var(--purple-deep);
  opacity: 0.85;
  line-height: 1.5;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 500px) {
  .hero-banner .register-card {
    padding: 20px 16px;
  }
}
