/* ─── Reset & Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #f0f7ff;
  --surface:   rgba(255,255,255,0.75);
  --border:    rgba(100,170,255,0.20);
  --blue:      #2563eb;
  --blue-lt:   #3b82f6;
  --yellow:    #F19520;
  --sky:       #7dd3fc;
  --dark:      #0f172a;
  --muted:     #64748b;
  --white:     #ffffff;
  --nav-h:     68px;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--dark);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── NAV — sticky siempre visible ─────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(240, 247, 255, 0.80);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--dark);
  text-decoration: none;
}

.nav-logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a:hover { color: var(--dark); background: rgba(37,99,235,0.07); }

/* Botón de Inscripción — destacado con gradiente y brillo */
.btn-nav-inscripcion {
  background: linear-gradient(135deg, var(--blue) 0%, #0ea5e9 100%) !important;
  color: var(--white) !important;
  padding: 9px 22px !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
  box-shadow: 0 0 18px rgba(37,99,235,0.45) !important;
  transition: box-shadow 0.2s, transform 0.15s, filter 0.2s !important;
}

.btn-nav-inscripcion:hover {
  filter: brightness(1.12);
  transform: translateY(-2px) !important;
  box-shadow: 0 0 28px rgba(37,99,235,0.65) !important;
  background: linear-gradient(135deg, var(--blue) 0%, #0ea5e9 100%) !important;
}

.btn-nav-programa {
  background: linear-gradient(135deg, var(--blue) 0%, #0ea5e9 100%) !important;
  color: var(--white) !important;
  padding: 9px 22px !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
  box-shadow: 0 0 18px rgba(37,99,235,0.45) !important;
  transition: box-shadow 0.2s, transform 0.15s, filter 0.2s !important;
  text-decoration: none !important;
}

.btn-nav-programa:hover {
  filter: brightness(1.12);
  transform: translateY(-2px) !important;
  box-shadow: 0 0 28px rgba(37,99,235,0.65) !important;
  background: linear-gradient(135deg, var(--blue) 0%, #0ea5e9 100%) !important;
}

/* ─── HERO ─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 24px 120px;
  overflow: hidden;
  background: linear-gradient(160deg, #ffffff 0%, #dbeafe 45%, #bfdbfe 100%);
}

/* Círculos decorativos de fondo */
.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -180px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125,211,252,0.35) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Imagen(es) de fondo del hero (lista para carrusel) ── */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}


/* ── Style Carrusel) ── */

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

/* Cuando haya varias imágenes, la que tenga esta clase se muestra */
.hero-bg-slide.active { opacity: 1; }

/* Overlay para mantener el texto legible sobre la foto */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95) 0%, rgba(219,234,254,0.70) 70%, rgba(191,219,254,0.40) 100%);
  pointer-events: none;
}

/* ── Style Carrusel) ── */

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -150px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* Planeta / globo azul cielo */
.planet {
  position: absolute;
  bottom: -280px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 38% 28%,
    #93c5fd 0%,
    #3b82f6 30%,
    #1d4ed8 60%,
    #1e3a8a 100%);
  box-shadow:
    0 0 120px 60px rgba(59,130,246,0.25),
    0 0 280px 100px rgba(37,99,235,0.15);
  pointer-events: none;
}

/* Brillo difuso encima del planeta */
.planet-glow {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(147,197,253,0.40) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(18px);
}

/* Contenido del hero */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

/* Pill de anuncio */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 999px;
  padding: 6px 8px 6px 18px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 36px;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(37,99,235,0.10);
}

.pill-badge {
  background: var(--blue);
  color: var(--white);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.hero-title {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  color: var(--dark);
  line-height: 1.05;
}

/* Número de edición: grande e impactante */
.hero-title .edition-num {
  display: block;
  font-size: clamp(3.5rem, 8vw, 6rem);
  color: var(--blue);
  line-height: 1;
  margin-bottom: 0.15em;
}

/* Nombre del congreso: más compacto y ancho */
.hero-title span {
  display: block;
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 780px;
  margin: 0 auto;
}

.hero-title p {
  display: block;
  font-size: clamp(.80rem, 2.8vw, 1.5rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 780px;
  margin: 0 auto;
}

.hero-sub {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--blue);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.4;
}

/* Botones del hero */
.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
  border: none;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 0 30px rgba(37,99,235,0.35);
}

.btn-primary:hover {
  background: var(--blue-lt);
  transform: translateY(-2px);
  box-shadow: 0 0 42px rgba(37,99,235,0.50);
}

.btn-ghost {
  background: rgba(255,255,255,0.80);
  color: var(--dark);
  border: 1px solid rgba(37,99,235,0.20);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255,255,255,1);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37,99,235,0.12);
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ─── TRUST BAR ─────────────────────────────────────── */
.trust {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: 64px;
}

.trust p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.80);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}

.trust-logo {
  color: rgba(255,255,255,0.90);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 7px;
}

.trust-logo-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.20);
  border: 1px solid rgba(255,255,255,0.35);
}

/* ─── SECCIÓN FEATURES ──────────────────────────────── */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  line-height: 1.1;
  color: var(--dark);
}

.section-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 500px;
  line-height: 1.7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 60px;
}

.feature-card {
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(37,99,235,0.12);
  border-radius: 20px;
  padding: 36px 32px;
  transition: background 0.22s, transform 0.22s, box-shadow 0.22s;
  box-shadow: 0 2px 16px rgba(37,99,235,0.06);
}

.feature-card:hover {
  background: rgba(255,255,255,1);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(37,99,235,0.14);
}

.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37,99,235,0.15), rgba(125,211,252,0.15));
  border: 1px solid rgba(37,99,235,0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.feature-icon svg { width: 24px; height: 24px; color: var(--blue); }

.feature-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--dark);
}

.feature-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.65; }

/* ─── CTA FINAL ─────────────────────────────────────── */
.cta-section {
  text-align: center;
  padding: 100px 24px;
  position: relative;
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(37,99,235,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section .hero-title { margin-bottom: 18px; }
.cta-section .hero-sub  { margin-bottom: 36px; }

/* ─── FOOTER ────────────────────────────────────────── */
footer {
  border-top: 1px solid rgba(37,99,235,0.12);
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--white);
}

footer p { font-size: 0.82rem; color: var(--muted); }

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ─── Responsive ────────────────────────────────────── */
@media (max-width: 680px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .planet { width: 600px; height: 600px; bottom: -200px; }
  footer { flex-direction: column; text-align: center; padding: 24px; }
  .hero-title p {
  font-size: clamp(.8rem, 3vw, 2rem);
  line-height: 1.10;
  max-width: 680px;
  }
}

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