/**
 * NACE Landing - Lema 2026: Un avivamiento real
 * Paleta: 70% morados, 20% crema/blanco, 10% neón
 */

:root {
  /* Primarios (fondo / identidad) */
  --royal-purple: #6A1AEF;
  --deep-purple: #5917DF;
  --violet-electric: #7E25F4;
  --indigo-shadow: #4C16C3;
  --lavender-glow: #9943F6;

  /* Acentos neón */
  --neon-lime: #99D557;
  --cream-light: #EFEED3;
  --magenta-accent: #B84D9D;

  /* Textura / chispas */
  --golden-neon: #F4D547;
  --warm-gold: #D9A260;
  --hot-coral: #DD5E78;

  /* Gradientes */
  --gradient-hero: linear-gradient(135deg, var(--deep-purple) 0%, var(--royal-purple) 30%, var(--violet-electric) 60%, var(--lavender-glow) 100%);
  --gradient-card: linear-gradient(145deg, var(--indigo-shadow) 0%, var(--royal-purple) 100%);
}

/* Tipografías cargadas en index.php (Google Fonts: Pacifico, Montserrat, Poppins) */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  line-height: 1.5;
  color: var(--cream-light);
  background: linear-gradient(135deg, var(--indigo-shadow) 0%, var(--deep-purple) 40%, var(--violet-electric) 100%);
  min-height: 100vh;
}

/* Página sobria: solo logo + mensaje + botón tickets */
.under-construction-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.uc-content {
  text-align: center;
  max-width: 560px;
}

.uc-logo {
  max-width: 380px;
  width: 85%;
  height: auto;
  margin-bottom: 2.5rem;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.2));
}

.uc-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 5vw, 3.5rem);
  color: var(--cream-light);
  margin: 0 0 2.5rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.uc-btn {
  display: inline-block;
  padding: 1.25rem 2.5rem;
  background: linear-gradient(90deg, var(--cream-light) 0%, rgba(239, 238, 211, 0.9) 50%, var(--lavender-glow) 100%);
  color: var(--indigo-shadow);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  text-decoration: none;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.uc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.25);
  color: var(--indigo-shadow);
}

.uc-social-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--cream-light);
  margin: 2.5rem 0 1rem;
  opacity: 0.9;
}

.uc-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.uc-social-btn {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: var(--cream-light);
  border-radius: 50%;
  transition: background 0.2s, transform 0.2s;
}

.uc-social-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

.uc-social-icon {
  width: 32px;
  height: 32px;
}

/* H1: Pacifico / 72–120px */
h1 {
  font-family: 'Pacifico', cursive;
  font-size: clamp(3rem, 8vw, 7.5rem);
  font-weight: 400;
  margin: 0 0 0.5em;
  color: var(--cream-light);
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

/* H2: Montserrat SemiBold / 36–56px */
h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--cream-light);
  margin: 0 0 0.5em;
}

/* Body: Poppins Regular / 22–28px */
p, .body-text {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
}

/* Microtexto: Montserrat Medium / 16–18px */
.micro, .badge, nav a, .btn {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: clamp(0.9rem, 1.1vw, 1.125rem);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(76, 22, 195, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-logo {
  font-family: 'Pacifico', cursive;
  font-size: 1.75rem;
  color: var(--cream-light);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--cream-light);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.nav-menu a:hover {
  background: rgba(255,255,255,0.15);
  color: var(--golden-neon);
}

.btn-tickets {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  background: var(--neon-lime);
  color: var(--indigo-shadow);
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(153, 213, 87, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-tickets:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(153, 213, 87, 0.5);
}

/* Hero */
.hero {
  padding: 4rem 1.5rem 5rem;
  text-align: center;
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.hero-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin-bottom: 0.5rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: var(--cream-light);
  color: var(--indigo-shadow);
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: transform 0.2s, background 0.2s;
}

.btn-primary:hover {
  background: #fff;
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--cream-light);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid rgba(239, 238, 211, 0.8);
  border-radius: 8px;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
}

.banner-pill {
  max-width: 500px;
  margin: 2rem auto 0;
  padding: 1rem 1.5rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.2);
}

.banner-pill a {
  color: var(--golden-neon);
  font-weight: 600;
  text-decoration: underline;
}

.banner-pill a:hover {
  color: var(--neon-lime);
}

/* Sección blanca (70% morado ya en body, 20% crema en secciones) */
.section-light {
  background: var(--cream-light);
  color: var(--indigo-shadow);
  padding: 4rem 1.5rem;
}

.section-light h2 {
  color: var(--indigo-shadow);
}

.section-light p {
  color: var(--indigo-shadow);
  opacity: 0.9;
}

/* Eventos */
.events-section {
  border-radius: 24px 24px 0 0;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 2rem auto 0;
}

.event-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(76, 22, 195, 0.15);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(76, 22, 195, 0.2);
}

.event-card-image {
  height: 180px;
  background: var(--gradient-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.event-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-card-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--indigo-shadow);
  margin: 0 0 0.5rem;
}

.event-card-meta {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: var(--indigo-shadow);
  opacity: 0.8;
  margin-bottom: 0.75rem;
}

.event-card-desc {
  font-size: 0.95rem;
  color: var(--indigo-shadow);
  opacity: 0.85;
  flex: 1;
  margin-bottom: 1rem;
}

.event-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(76, 22, 195, 0.15);
}

.badge {
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
}

.badge-gratis {
  background: var(--neon-lime);
  color: var(--indigo-shadow);
}

.badge-tickets {
  background: var(--royal-purple);
  color: var(--cream-light);
}

.badge-registro {
  background: var(--golden-neon);
  color: var(--indigo-shadow);
}

.event-card-link {
  color: var(--royal-purple);
  font-weight: 600;
  text-decoration: none;
}

.event-card-link:hover {
  color: var(--violet-electric);
  text-decoration: underline;
}

/* Ubicación */
.location-card {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(76, 22, 195, 0.1);
}

.location-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--indigo-shadow);
  margin: 0 0 0.5rem;
}

/* Contacto */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1.5fr;
  }
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--royal-purple);
  color: var(--cream-light);
  border-radius: 50%;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.social-link:hover {
  background: var(--violet-electric);
  transform: scale(1.05);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  color: var(--indigo-shadow);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(76, 22, 195, 0.2);
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: var(--indigo-shadow);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--royal-purple);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.btn-submit {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: var(--royal-purple);
  color: var(--cream-light);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:hover {
  background: var(--violet-electric);
}

/* Footer */
.footer {
  background: var(--indigo-shadow);
  color: var(--cream-light);
  padding: 2rem 1.5rem;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--cream-light);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--golden-neon);
}

.footer-note {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 0.5rem;
}

.footer-tickets {
  margin-top: 0.5rem;
}

.footer-tickets a {
  color: var(--neon-lime);
  font-weight: 600;
  text-decoration: none;
}

.footer-tickets a:hover {
  text-decoration: underline;
}

/* Splash overlay - Cruz que se abre + logo palpitando */
#splashOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  overflow: hidden;
}

/* Fondo índigo para contraste con logo blanco */
.splash-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(76, 22, 195, 0.98) 0%,
    rgba(106, 26, 239, 0.96) 35%,
    rgba(126, 37, 244, 0.94) 65%,
    rgba(153, 67, 246, 0.92) 100%);
}

.splash-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* 4 paneles que forman la cruz al abrirse */
.splash-panel {
  position: absolute;
  width: 51%;
  height: 51%;
  background: linear-gradient(135deg,
    rgba(76, 22, 195, 0.98) 0%,
    rgba(106, 26, 239, 0.96) 50%,
    rgba(239, 238, 211, 0.06) 100%);
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 1;
}

.splash-panel.top-left { top: 0; left: 0; transform-origin: top left; }
.splash-panel.top-right { top: 0; right: 0; transform-origin: top right; }
.splash-panel.bottom-left { bottom: 0; left: 0; transform-origin: bottom left; }
.splash-panel.bottom-right { bottom: 0; right: 0; transform-origin: bottom right; }

#splashOverlay.splash-open .splash-panel.top-left { transform: translate(-100%, -100%); }
#splashOverlay.splash-open .splash-panel.top-right { transform: translate(100%, -100%); }
#splashOverlay.splash-open .splash-panel.bottom-left { transform: translate(-100%, 100%); }
#splashOverlay.splash-open .splash-panel.bottom-right { transform: translate(100%, 100%); }

/* Logo centrado sobre la cruz */
.splash-logo-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  transition: opacity 0.5s ease;
}

#splashOverlay.splash-open .splash-logo-wrap {
  opacity: 0;
}

#splashOverlay .splash-logo {
  max-width: 280px;
  width: 70vw;
  height: auto;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.3));
  animation: logo-heartbeat 1.2s ease-in-out infinite;
}

@keyframes logo-heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.06); }
  28% { transform: scale(1); }
  42% { transform: scale(1.04); }
  56% { transform: scale(1); }
}

#landingContent {
  opacity: 0;
  transition: opacity 0.6s ease 0.3s;
}

#landingContent.landing-visible {
  opacity: 1;
}

/* Nav logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo-img {
  max-height: 48px;
  width: auto;
}

.nav-logo-fallback {
  font-family: 'Pacifico', cursive;
  font-size: 1.5rem;
  color: var(--cream-light);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream-light);
  margin: 5px 0;
  border-radius: 1px;
}

@media (max-width: 767px) {
  #splashOverlay .splash-logo {
    max-width: 200px;
    width: 60vw;
  }

  .uc-logo {
    max-width: 280px;
    width: 80%;
  }

  .uc-title {
    font-size: clamp(1.25rem, 4.5vw, 2rem);
  }

  .uc-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }

  .uc-social-btn {
    width: 56px;
    height: 56px;
  }

  .uc-social-icon {
    width: 28px;
    height: 28px;
  }

  .nav-logo-img {
    max-height: 40px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 1rem 0;
  }

  .nav-menu.open {
    display: flex;
  }

  .navbar-inner {
    flex-direction: column;
    align-items: stretch;
  }
}
