/* ============================================
   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;
}

.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;
  }
}

/* ============================================
   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: 41%;
  left: 5%;
  right: 5%;
  max-width: 420px;
  margin: 0 auto;
  z-index: 1;
}

@media (min-width: 800px) {
  .hero-banner .register-card {
    top: 39%;
    left: auto;
    right: 4%;
    width: 27%;
    min-width: 260px;
    max-width: 360px;
  }
}

/* ============================================
   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-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;
}

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

/* En celular los 2 botones van uno al costado del otro, no apilados. */
@media (max-width: 799px) {
  .btn-row {
    display: flex;
    gap: 8px;
  }

  .btn-row .btn-primary,
  .btn-row .btn-secondary {
    width: auto;
    flex: 1;
    margin-bottom: 0;
    padding: 12px 6px;
    font-size: clamp(10px, 3.2vw, 13px);
  }
}

/* ============================================
   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;
  }
}
