/* ==========================================================================
   25 ANIVERSARIO ONE NTT DATA (OneNTT25.com) - ESTILOS OFICIALES
   Marco Cyber Dinámico con Doble Línea Paralela y Fondos Dinámicos
   Colores Oficiales: #070F26 | #0072bC | #19A3FC | Degradado #919191 -> #F4F4F4
   ========================================================================== */

:root {
  --color-bg-deep: #020712;
  --color-card-bg: #070F26;
  --color-blue-brand: #0072bC;
  --color-blue-hover: #028be0;
  --color-cyan-link: #19A3FC;
  --color-cyan-glow: #00d2ff;
  --color-text-white: #ffffff;
  --color-text-muted: #9bb7d4;
  --font-primary: 'Montserrat', 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Noto Serif', Georgia, 'Times New Roman', serif;
}

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

html, body {
  min-height: 100vh;
  font-family: var(--font-primary);
  color: var(--color-text-white);
  background-color: var(--color-bg-deep);
  overflow-x: hidden;
  position: relative;
}

/* --------------------------------------------------------------------------
   FONDO LIMPIO DINÁMICO (SIN MARCO INTEGRADO)
   -------------------------------------------------------------------------- */
body {
  /* Fondo móvil limpio con patrón XXV repetitivo */
  background: #020712 url('../assets/bg_mobile_clean.png') no-repeat center top;
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

/* En pantallas de escritorio: fondo de escritorio limpio */
@media (min-width: 992px) {
  body {
    background: #020712 url('../assets/bg_desktop_clean.png') no-repeat center center fixed;
    background-size: cover;
  }
}

/* --------------------------------------------------------------------------
   MARCO CYBER DINÁMICO (DOBLE LÍNEA PARALELA CON ESQUINAS CURVAS Y CORTE)
   Se adapta a cualquier resolución sin ocultarse ni deformarse
   -------------------------------------------------------------------------- */
.cyber-frame-border {
  position: fixed;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  pointer-events: none;
  z-index: 90;
  border-style: solid;
  border-width: 26px;
  border-image-source: url('../assets/cyber_frame_slice.png');
  border-image-slice: 80;
  border-image-repeat: stretch;
  filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.45));
}

@media (min-width: 768px) {
  .cyber-frame-border {
    top: 14px;
    left: 14px;
    right: 14px;
    bottom: 14px;
    border-width: 32px;
  }
}

@media (min-width: 1200px) {
  .cyber-frame-border {
    top: 18px;
    left: 18px;
    right: 18px;
    bottom: 18px;
    border-width: 38px;
  }
}

/* --------------------------------------------------------------------------
   CONTENEDOR PRINCIPAL CON PADDING DE SEGURIDAD (CERO SUPERPOSICIÓN)
   -------------------------------------------------------------------------- */
.page-container {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  padding: 30px 24px 34px;
  min-height: 100vh;
  justify-content: space-between;
}

@media (min-width: 992px) {
  .page-container {
    max-width: 1320px;
    min-height: 100vh;
    padding: 38px 60px 42px;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   ENCABEZADO MÓVIL: LOGO NTT DATA + BOTÓN CÓMO LLEGAR
   -------------------------------------------------------------------------- */
.page-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 4px;
}

.ntt-logo-img {
  height: 22px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
}

@media (min-width: 992px) {
  .page-header {
    display: none; /* En escritorio se integra en la columna izquierda */
  }
}

/* --------------------------------------------------------------------------
   BOTÓN / ENLACE "CÓMO LLEGAR" - COLOR OFICIAL #19A3FC
   -------------------------------------------------------------------------- */
.btn-directions {
  background: transparent;
  border: none;
  color: var(--color-cyan-link);
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-directions:hover {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(25, 163, 252, 0.9);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   GRID DE CONTENIDO: 1 COLUMNA EN MÓVIL, 2 COLUMNAS EN ESCRITORIO
   -------------------------------------------------------------------------- */
.content-grid {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 992px) {
  .content-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   COLUMNA IZQUIERDA (ESCRITORIO): LOGO NTT + EMBLEMA 25 + CÓMO LLEGAR
   -------------------------------------------------------------------------- */
.hero-column {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 14px;
}

.desktop-header-logo {
  display: none;
}

.desktop-directions-wrapper {
  display: none;
}

@media (min-width: 992px) {
  .hero-column {
    margin-bottom: 0;
    align-items: flex-start;
    padding-left: 20px;
  }
  .desktop-header-logo {
    display: block;
    margin-bottom: 24px;
  }
  .desktop-header-logo .ntt-logo-img {
    height: 32px;
  }
  .desktop-directions-wrapper {
    display: block;
    margin-top: 24px;
    padding-left: 10px;
  }
  .desktop-directions-wrapper .btn-directions {
    font-size: 15px;
    padding: 8px 0;
  }
}

.emblem-25 {
  width: 100%;
  max-width: 290px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 25px rgba(0, 180, 255, 0.5));
  transition: transform 0.35s ease;
}

@media (min-width: 992px) {
  .emblem-25 {
    max-width: 540px;
    margin: 0;
    filter: drop-shadow(0 0 35px rgba(0, 190, 255, 0.65));
  }
  .emblem-25:hover {
    transform: scale(1.02);
  }
}

/* --------------------------------------------------------------------------
   COLUMNA DERECHA: TARJETA DEL FORMULARIO Y RECINTO
   -------------------------------------------------------------------------- */
.form-column {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 992px) {
  .form-column {
    max-width: 470px;
    margin-left: auto;
    padding-right: 15px;
  }
}

/* --------------------------------------------------------------------------
   TARJETA DEL FORMULARIO DE REGISTRO (#070F26 + BORDE #0072bC)
   -------------------------------------------------------------------------- */
.form-card {
  width: 100%;
  background-color: var(--color-card-bg);
  border: 2px solid var(--color-blue-brand);
  border-radius: 18px;
  padding: 24px 22px 22px;
  box-shadow: 0 0 30px rgba(0, 114, 188, 0.4), inset 0 0 15px rgba(0, 114, 188, 0.15);
  margin-bottom: 18px;
}

.form-group {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--color-text-white);
  text-transform: uppercase;
  margin-bottom: 6px;
  text-align: center;
}

.form-input {
  width: 100%;
  height: 40px;
  background-color: #ffffff;
  color: #111111;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--color-cyan-glow);
  box-shadow: 0 0 14px rgba(0, 210, 255, 0.7);
  background-color: #ffffff;
}

.form-input::placeholder {
  color: #8fa0b5;
  font-weight: 400;
  opacity: 0.75;
}

.email-hint {
  font-size: 10px;
  color: var(--color-cyan-glow);
  margin-top: 4px;
  text-align: center;
  letter-spacing: 0.4px;
}

/* Cloudflare Turnstile (Contenedor centrado y responsivo) */
.cf-turnstile-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 6px 0 2px;
  min-height: 0;
  width: 100%;
}

/* Botón REGÍSTRATE (#0072bC) */
.btn-submit {
  width: 100%;
  height: 44px;
  margin-top: 8px;
  background-color: var(--color-blue-brand);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 0 20px rgba(0, 114, 188, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-submit:hover:not(:disabled) {
  background-color: var(--color-blue-hover);
  box-shadow: 0 0 28px rgba(2, 139, 224, 0.9);
  transform: translateY(-1px);
}

.btn-submit:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: 0 0 12px rgba(0, 114, 188, 0.5);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

/* --------------------------------------------------------------------------
   PIE DE PÁGINA: AUDITORIO BLACKBERRY (DEGRADADO #919191 -> #F4F4F4)
   -------------------------------------------------------------------------- */
.venue-footer {
  width: 100%;
  text-align: center;
  margin-top: 4px;
}

.venue-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
  background: linear-gradient(180deg, #F4F4F4 0%, #919191 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #F4F4F4;
  display: inline-block;
  width: 100%;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.25);
}

@media (min-width: 992px) {
  .venue-name {
    font-size: 18px;
  }
}

.footer-divider {
  width: 80%;
  height: 1px;
  margin: 6px auto 10px;
  background: linear-gradient(90deg, transparent, rgba(0, 210, 255, 0.7), transparent);
}

.venue-address {
  font-size: 11px;
  color: var(--color-text-muted);
  line-height: 1.45;
  letter-spacing: 0.4px;
  max-width: 340px;
  margin: 0 auto;
}

.privacy-compliance-text {
  margin-top: 8px;
  font-size: 9.5px;
  color: rgba(143, 160, 181, 0.65);
  letter-spacing: 0.3px;
}

.privacy-compliance-text a {
  color: var(--color-cyan-glow);
  text-decoration: underline;
  transition: opacity 0.2s;
}

.privacy-compliance-text a:hover {
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   MODALES (CÓMO LLEGAR Y PASE QR)
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(1, 6, 18, 0.94);
  backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.25s ease-out;
}

.modal-card {
  width: 100%;
  max-width: 440px;
  background: #070F26;
  border: 2px solid var(--color-blue-brand);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 114, 188, 0.6);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1010;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.3);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 0, 80, 0.8);
  border-color: #ff0050;
}

.qr-container-box {
  background: #ffffff;
  padding: 14px;
  border-radius: 14px;
  display: inline-block;
  margin: 16px auto;
  border: 3px solid var(--color-cyan-glow);
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
}

.qr-image-display {
  width: 220px;
  height: 220px;
  display: block;
}

.alert-box {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 14px;
  line-height: 1.4;
  text-align: center;
  display: none;
}

.alert-box.error {
  display: block;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.6);
  color: #fca5a5;
}

.alert-box.success {
  display: block;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.6);
  color: #6ee7b7;
}

.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
