/* ======================================================
   MM ESTUDIO — DESIGN SYSTEM GLOBAL — LIGHT MODE
   Paleta fría clara: blancos, grises suaves + azul marino
   ====================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

/* ─── TOKENS ─────────────────────────────────────────── */
:root {
  /* Fondo principal y superficies */
  --bg:            #FFFFFF;
  --bg-soft:       #F5F7FA;
  --bg-medium:     #EDF0F5;
  --bg-muted:      #E2E8F0;

  /* Azul marino oscuro para secciones alternantes */
  --dark:          #0D1B2E;
  --dark-mid:      #1B2E4B;
  --dark-light:    #243B5A;
  --dark-alt:      #1A2B42;

  /* Acento azul */
  --accent:        #2563EB;
  --accent-light:  #3B82F6;
  --accent-glow:   #60A5FA;

  /* Teal */
  --teal:          #0E7490;
  --teal-light:    #06B6D4;

  /* Texto */
  --text:          #0F172A;
  --text-mid:      #334155;
  --text-soft:     #64748B;
  --text-muted:    #94A3B8;

  /* Blanco para secciones oscuras */
  --white:         #FFFFFF;

  /* Tarjetas / vidrio claro */
  --card-bg:       #FFFFFF;
  --card-border:   #E2E8F0;
  --card-shadow:   0 2px 16px rgba(15,23,42,0.08);
  --card-shadow-hover: 0 8px 40px rgba(15,23,42,0.14);

  /* Glass (para secciones oscuras) */
  --glass:         rgba(255,255,255,0.08);
  --glass-border:  rgba(255,255,255,0.14);
  --glass-hover:   rgba(255,255,255,0.12);

  /* Gradientes */
  --gradient-accent: linear-gradient(135deg, #2563EB, #0E7490);
  --gradient-hero:   linear-gradient(135deg, #0D1B2E 0%, #1B2E4B 50%, #0E3A5A 100%);
  --gradient-subtle: linear-gradient(180deg, #F5F7FA, #EDF0F5);

  /* Sombras */
  --shadow-glow:   0 0 30px rgba(37,99,235,0.18);
  --shadow-card:   0 2px 16px rgba(15,23,42,0.08);
  --shadow-sm:     0 1px 4px rgba(15,23,42,0.06);

  --radius-sm:     8px;
  --radius:        16px;
  --radius-lg:     24px;
  --radius-xl:     40px;
  --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET Y BASE ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ─── SCROLLBAR ──────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ─── UTILIDADES ─────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37,99,235,0.08);
  border: 1px solid rgba(37,99,235,0.2);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 100px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

/* Badge versión oscura (sobre fondos dark) */
.section-badge.light {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.9);
}
.section-badge.light::before { background: #60A5FA; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
}

/* Título en contexto oscuro */
.dark-section .section-title,
.section-title.on-dark {
  color: var(--white);
}

.section-title span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 600px;
  line-height: 1.7;
}

.section-subtitle.on-dark {
  color: rgba(203,213,225,0.85);
}

/* ─── BOTONES ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 100px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  opacity: 0;
  transition: var(--transition);
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: #2563EB;
  color: white;
  box-shadow: 0 4px 20px rgba(37,99,235,0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: #1D4ED8;
  box-shadow: 0 8px 30px rgba(37,99,235,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--card-border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  background: rgba(37,99,235,0.04);
}

/* Outline sobre fondos oscuros */
.btn-outline.on-dark {
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.25);
}
.btn-outline.on-dark:hover {
  border-color: var(--accent-glow);
  color: var(--accent-glow);
  background: rgba(255,255,255,0.06);
}

/* Botón outline para el CTA oscuro */
.admision-cta .btn-outline {
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}
.admision-cta .btn-outline:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: #ffffff !important;
}

.btn-teal {
  background: #0E7490;
  color: white;
  box-shadow: 0 4px 20px rgba(14,116,144,0.25);
}
.btn-teal:hover {
  transform: translateY(-2px);
  background: #0A5F77;
  box-shadow: 0 8px 30px rgba(14,116,144,0.35);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.85rem;
}

/* ─── NAVBAR ─────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: var(--transition-slow);
  padding: 0;
}

/* Nav transparente (sobre hero oscuro) */
.navbar {
  background: rgba(13,27,46,0.0);
}

.navbar.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
  box-shadow: 0 2px 20px rgba(15,23,42,0.08);
}

.navbar.scrolled .nav-links a {
  color: var(--text-mid);
}
.navbar.scrolled .nav-links a:hover {
  color: var(--accent);
  background: rgba(37,99,235,0.06);
}
.navbar.scrolled .nav-links a.active {
  color: var(--accent);
}
.navbar.scrolled .nav-hamburger span {
  background: var(--text);
}
.navbar.scrolled .nav-logo img {
  filter: none;
}

/* Nav sobre páginas internas (que ya tienen navbar.scrolled) */
.navbar.page-nav {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
  box-shadow: 0 2px 20px rgba(15,23,42,0.08);
}
.navbar.page-nav .nav-links a { color: var(--text-mid); }
.navbar.page-nav .nav-links a:hover { color: var(--accent); background: rgba(37,99,235,0.06); }
.navbar.page-nav .nav-links a.active { color: var(--accent); }
.navbar.page-nav .nav-hamburger span { background: var(--text); }
.navbar.page-nav .nav-logo img { filter: none; }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.nav-logo img {
  height: 58px;
  filter: brightness(0) invert(1);
  transition: var(--transition);
}
.nav-logo img:hover { opacity: 0.85; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-links a:hover {
  background: rgba(255,255,255,0.12);
  color: white;
}
.nav-links a.active {
  color: var(--accent-glow);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ─── MOBILE NAV ─────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transform: translateX(100%);
  transition: var(--transition-slow);
  border-right: none;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}

.mobile-menu a {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-mid);
  padding: 12px 24px;
  border-radius: var(--radius);
  transition: var(--transition);
  text-align: center;
}
.mobile-menu a:hover { color: var(--accent); background: rgba(37,99,235,0.06); }

.mobile-close {
  position: absolute;
  top: 20px; right: 24px;
  background: var(--bg-soft);
  border: 1px solid var(--card-border);
  color: var(--text);
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

/* ─── HERO (mantiene fondo oscuro — es la única sección dark del landing) ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.6);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13,27,46,0.90) 0%,
    rgba(27,46,75,0.76) 50%,
    rgba(13,27,46,0.85) 100%
  );
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(96,165,250,0.12);
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.4; }
  100% { transform: translateY(-20vh) scale(1.2); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  padding: 8px 20px;
  border-radius: 100px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-eyebrow svg { width: 14px; height: 14px; }

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 24px;
  animation: fadeInUp 0.8s 0.15s ease both;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #60A5FA, #06B6D4, #818CF8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(203,213,225,0.9);
  max-width: 580px;
  line-height: 1.8;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s 0.3s ease both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  animation: fadeInUp 0.8s 0.45s ease both;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  animation: fadeInUp 0.8s 0.6s ease both;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.hero-stat-num span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(148,163,184,0.9);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(148,163,184,0.8);
  font-size: 0.75rem;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
  animation: bounce-scroll 2s infinite;
}
.hero-scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(148,163,184,0.6), transparent);
}

@keyframes bounce-scroll {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ─── STATS BAR ──────────────────────────────────────── */
.stats-bar {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 32px 0;
}

.stats-bar-inner {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* ─── SECTIONS GENÉRICAS ─────────────────────────────── */
.section {
  padding: 100px 0;
  background: var(--bg);
}

.section.alt {
  background: var(--bg-soft);
}

.section-header {
  margin-bottom: 60px;
}

.section-header.centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ─── DARK SECTION (azul marino — secciones alt, CTA) ── */
.dark-section,
.section.alt {
  background: var(--dark-mid);
  color: var(--white);
}

.section.alt .section-title,
.dark-section .section-title {
  color: var(--white);
}

.section.alt .section-subtitle,
.dark-section .section-subtitle {
  color: rgba(203,213,225,0.85);
}

.section.alt .section-badge {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.20);
  color: rgba(255,255,255,0.9);
}
.section.alt .section-badge::before { background: #60A5FA; }

.section.alt .program-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}
.section.alt .program-card:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(96,165,250,0.3);
}
.section.alt .program-title { color: var(--white); }
.section.alt .program-desc  { color: rgba(203,213,225,0.85); }
.section.alt .program-detail-row { color: rgba(203,213,225,0.8); border-bottom-color: rgba(255,255,255,0.06); }
.section.alt .program-detail-row svg { color: var(--accent-glow); }
.section.alt .program-price { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); }
.section.alt .price-label   { color: rgba(148,163,184,0.8); }
.section.alt .price-amount  { color: var(--white); }
.section.alt .price-period  { color: rgba(148,163,184,0.7); }

.section.alt .highlight-card {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
}
.section.alt .highlight-card:hover { border-color: rgba(96,165,250,0.3); }
.section.alt .highlight-value { color: var(--white); }
.section.alt .highlight-label { color: rgba(148,163,184,0.8); }

.section.alt .feature-item {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
  color: rgba(203,213,225,0.85);
}
.section.alt .feature-item:hover {
  border-color: rgba(96,165,250,0.25);
  background: rgba(255,255,255,0.09);
}

.section.alt .levels-tabs {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
}
.section.alt .level-tab { color: rgba(203,213,225,0.7); }

.section.alt .accordion-item { border-color: rgba(255,255,255,0.12); }
.section.alt .accordion-header { background: rgba(255,255,255,0.06); color: var(--white); }
.section.alt .accordion-header:hover { background: rgba(255,255,255,0.10); }
.section.alt .accordion-body { background: rgba(255,255,255,0.04); color: rgba(203,213,225,0.85); }

/* ─── DISCIPLINAS ────────────────────────────────────── */
.disciplines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.discipline-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
}

.discipline-card:nth-child(1) { aspect-ratio: 3/5; }
.discipline-card:nth-child(2) { aspect-ratio: 3/4; margin-top: 40px; }
.discipline-card:nth-child(3) { aspect-ratio: 3/5; }

.discipline-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s ease;
}

.discipline-card:hover img { transform: scale(1.05); }

.discipline-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,27,46,0.95) 0%, rgba(13,27,46,0.2) 60%, transparent 100%);
  transition: var(--transition);
}

.discipline-card:hover .discipline-overlay {
  background: linear-gradient(to top, rgba(13,27,46,0.98) 0%, rgba(37,99,235,0.25) 100%);
}

.discipline-content {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  padding: 32px 28px;
  transform: translateY(0);
  transition: var(--transition);
}

.discipline-icon {
  width: 48px; height: 48px;
  background: var(--gradient-accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.discipline-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}

.discipline-desc {
  font-size: 0.9rem;
  color: rgba(203,213,225,0.9);
  line-height: 1.6;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}

.discipline-card:hover .discipline-desc {
  opacity: 1;
  transform: translateY(0);
}

.discipline-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gradient-accent);
  color: white;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 12px;
}

/* ─── PROGRAMAS SLIDER ────────────────────────────────── */
.programs-slider-wrap {
  position: relative;
  overflow: hidden;
}

.programs-slider {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}

.program-slide {
  min-width: 100%;
  padding: 4px 2px;
}

.program-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 52px 60px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--card-shadow);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: 360px;
}

/* Barra lateral izquierda — acento plano sin degradado */
.program-card::before {
  content: '';
  position: absolute;
  top: 44px; left: 0; bottom: 44px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: #2563EB;
}
.program-card.featured::before { background: #0E7490; }
.program-card.premium::before  { background: #7C3AED; }
.program-card.gold::before     { background: #D97706; }

.program-card:hover {
  box-shadow: var(--card-shadow-hover);
}



/* Badges — flat, sin gradiente */
.program-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
  width: fit-content;
}

.badge-blue   { background: #EFF6FF; color: #2563EB; border: 1.5px solid #BFDBFE; }
.badge-teal   { background: #F0FDFA; color: #0E7490; border: 1.5px solid #A5F3FC; }
.badge-purple { background: #F5F3FF; color: #7C3AED; border: 1.5px solid #DDD6FE; }
.badge-gold   { background: #FFFBEB; color: #D97706; border: 1.5px solid #FDE68A; }

/* Slider nav */
.slider-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
}

.slider-arrows {
  display: flex;
  gap: 10px;
}

.slider-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-mid);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.slider-btn:hover {
  background: #2563EB;
  border-color: #2563EB;
  color: white;
  box-shadow: 0 4px 16px rgba(37,99,235,0.25);
}
.slider-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.slider-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--bg-muted);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: var(--transition);
}
.slider-dot.active {
  background: #2563EB;
  width: 24px;
  border-radius: 4px;
}

.slider-counter {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.program-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}

.program-desc {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 20px;
}

.program-details {
  margin-bottom: 24px;
}

.program-detail-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.85rem;
  color: var(--text-soft);
  border-bottom: 1px solid var(--bg-muted);
}
.program-detail-row:last-child { border-bottom: none; }

.program-detail-row svg {
  flex-shrink: 0;
  color: var(--accent);
  width: 15px; height: 15px;
}

.program-price {
  margin-bottom: 24px;
  padding: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
}

.price-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  font-weight: 500;
}

.price-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
}

.price-period {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: 2px;
}

/* precio en contexto oscuro */
.price-amount.on-dark { color: var(--white); }
.price-label.on-dark { color: rgba(148,163,184,0.8); }
.price-period.on-dark { color: rgba(148,163,184,0.7); }

/* ─── ENCUENTRA TU PROGRAMA (Nuevos estilos refinados) ──── */
#programas .section-title span {
  background: none;
  -webkit-text-fill-color: initial;
  color: #60A5FA;
  background-clip: initial;
}

.prog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.prog-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.prog-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.prog-card-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-glow);
  margin-bottom: 12px;
  opacity: 0.8;
}

.prog-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.2;
}

.prog-card-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin-bottom: 24px;
  flex-grow: 1;
}

.prog-card-details {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prog-detail {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 8px;
}

.prog-detail::before {
  content: '→';
  color: var(--accent-glow);
  font-weight: 800;
}

.prog-card-price {
  margin-bottom: 24px;
}

.prog-price-label {
  display: block;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.prog-price-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
}

.prog-price-sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin-left: 4px;
}

.prog-btn {
  width: 100%;
  justify-content: center;
  padding: 12px 20px;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white) !important;
  box-shadow: none;
}

.prog-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white !important;
  transform: translateY(-2px);
}

@media (max-width: 1200px) {
  .prog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .prog-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── VALORES & ARANCELES (Elegant Academic) ─────────── */
.elegant-pricing-page {
  background: #FFFFFF;
}

.price-badge-refined {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  padding: 12px 24px;
  border-radius: 100px;
  margin-bottom: 32px;
  transition: var(--transition);
}

.price-badge-refined:hover {
  background: #E2E8F0;
  transform: translateY(-2px);
}

.price-badge-refined .badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
}

.price-badge-refined .badge-text {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.price-badge-refined .badge-price {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  margin-left: 4px;
}

/* Elegant Table */
.elegant-table-wrap {
  background: #FFFFFF;
  border: 1px solid #F1F5F9;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  overflow-x: auto;
  max-width: 1100px;
  margin: 0 auto;
}

.elegant-table {
  width: 100%;
  border-collapse: collapse;
}

.elegant-table th {
  padding: 16px 20px;
  background: #F8FAFC;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
  border-bottom: 2px solid #F1F5F9;
  text-align: left;
}

.elegant-table td {
  padding: 14px 20px;
  color: var(--text-mid);
  border-bottom: 1px solid #F1F5F9;
  vertical-align: middle;
  transition: var(--transition);
}

.elegant-table tr:hover td {
  background: #F8FAFC;
}

.elegant-table .prog-name {
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
  display: block;
}

.elegant-table .prog-sub {
  font-size: 0.8rem;
  color: var(--text-soft);
  display: block;
  margin-top: 4px;
}

.elegant-table .price-val {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: var(--text);
  font-size: 1rem;
}

.elegant-table .price-mm {
  font-weight: 700;
  color: var(--accent);
  background: #EFF6FF;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.9rem;
}

.elegant-table tr:last-child td { border-bottom: none; }

/* ─── PILLAR CARDS (Mentoring/Programs) ──────────────── */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.pillar-card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.pillar-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--accent-light);
}

.pillar-emoji {
  font-size: 3rem;
  margin-bottom: 8px;
  filter: drop-shadow(0 4px 10px rgba(14, 116, 144, 0.15));
}

.pillar-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}

.pillar-desc {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 992px) {
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
  .pillar-grid { grid-template-columns: 1fr; }
}

/* ─── DIRECTORA ──────────────────────────────────────── */
.directora-section {
  background: var(--bg-soft);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.directora-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.directora-image {
  position: relative;
}

.directora-image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow-hover);
}

.directora-image-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--card-shadow);
}

.directora-image-badge .badge-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.directora-image-badge .badge-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}


.directora-quote {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin-bottom: 28px;
  font-style: italic;
}

.directora-bio {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.9;
  margin-bottom: 32px;
}

.achievement-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}

.achievement-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.achievement-icon {
  width: 36px; height: 36px;
  background: rgba(37,99,235,0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.achievement-text {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.5;
}
.achievement-text strong {
  display: block;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

/* ─── STAFF ──────────────────────────────────────────── */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.staff-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--card-shadow);
}

.staff-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37,99,235,0.2);
  box-shadow: var(--card-shadow-hover);
}

.staff-image {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.staff-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease, filter 0.3s ease;
  filter: grayscale(20%);
}

.staff-card:hover .staff-image img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.staff-info {
  padding: 24px;
}

.staff-role {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: 'Outfit', sans-serif;
  margin-bottom: 6px;
}

.staff-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}

.staff-bio {
  font-size: 0.83rem;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ─── GALERÍA ────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}

.gallery-item:nth-child(3n+1) { grid-row: span 2; }
.gallery-item:nth-child(5n+2) { grid-column: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.3s ease;
  filter: brightness(0.9) saturate(0.9);
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: brightness(1) saturate(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,27,46,0.5);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1.5rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ─── CTA ADMISIÓN (Versión Premium Dark) ───────────── */
.admision-cta {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  border: 1.5px solid rgba(124, 58, 237, 0.4); /* Borde más definido para contraste */
  border-radius: var(--radius-xl);
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), inset 0 0 60px rgba(124, 58, 237, 0.15);
  z-index: 10;
}

.admision-cta::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.admision-cta-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 20px;
  text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.admision-cta-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85); 
  margin-bottom: 48px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* Ajustes para elementos internos en fondo oscuro */
.admision-cta .section-badge {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

.admision-steps {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.admision-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 32px;
  position: relative;
}

.admision-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -4px;
  top: 16px;
  color: var(--accent-glow);
  font-size: 1.2rem;
  opacity: 0.6;
}

.step-num {
  width: 44px; height: 44px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: white;
}

.step-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  text-align: center;
  max-width: 100px;
}

.admision-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── CONTACTO SECTION ───────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.contact-info-card:hover {
  border-color: rgba(37,99,235,0.2);
  transform: translateX(4px);
  box-shadow: var(--card-shadow);
}

.contact-icon {
  width: 44px; height: 44px;
  background: rgba(37,99,235,0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-info-text {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.6;
}
.contact-info-text strong {
  display: block;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  margin-bottom: 3px;
}

.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--card-shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 8px;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.03em;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
  appearance: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
  background: var(--bg);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-select option { background: var(--bg); color: var(--text); }
.form-textarea { min-height: 120px; resize: vertical; }

/* ─── FOOTER (oscuro — constraste elegante al final) ─── */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo img {
  height: 40px;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 0.88rem;
  color: rgba(148,163,184,0.8);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(148,163,184,0.8);
  font-size: 0.9rem;
  transition: var(--transition);
  text-decoration: none;
}
.social-btn:hover {
  background: rgba(37,99,235,0.2);
  border-color: var(--accent-glow);
  color: var(--accent-glow);
  transform: translateY(-3px);
}

.footer-col-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(148,163,184,0.8);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a:hover { color: var(--accent-glow); transform: translateX(4px); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copyright {
  font-size: 0.8rem;
  color: rgba(148,163,184,0.6);
}

/* ─── PAGE HEADER (páginas internas — fondo oscuro) ──── */
.page-hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.06) 0%, transparent 60%);
}

.page-hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Outfit', sans-serif;
  font-size: 18vw;
  font-weight: 900;
  color: rgba(255,255,255,0.025);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: -0.05em;
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

/* ─── BREADCRUMB ─────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-size: 0.82rem;
  color: rgba(148,163,184,0.7);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--accent-glow); }
.breadcrumb a:hover { color: white; }
.breadcrumb span { color: rgba(148,163,184,0.6); }

/* ─── ACCORDION ──────────────────────────────────────── */
.accordion-item {
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.accordion-item:hover { border-color: rgba(37,99,235,0.2); }

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  background: var(--card-bg);
  transition: var(--transition);
  user-select: none;
}
.accordion-header:hover { background: var(--bg-soft); }

.accordion-icon {
  transition: transform 0.3s ease;
  color: var(--accent);
  flex-shrink: 0;
  font-size: 1.2rem;
}

.accordion-item.open .accordion-icon { transform: rotate(180deg); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
  padding: 0 24px;
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.8;
  background: var(--card-bg);
}
.accordion-item.open .accordion-body {
  max-height: 500px;
  padding: 0 24px 20px;
}

/* ─── TABLA DE PRECIOS ───────────────────────────────── */
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.price-table th {
  background: var(--bg-soft);
  color: var(--text-mid);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  text-align: left;
  padding: 14px 20px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--card-border);
}

.price-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--bg-muted);
  color: var(--text-soft);
  vertical-align: top;
  line-height: 1.6;
  background: var(--card-bg);
}

.price-table tr:hover td { background: var(--bg-soft); }

.price-table .price-highlight {
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}

/* ─── ANIMATIONS ─────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .disciplines-grid { grid-template-columns: 1fr 1fr; }
  .discipline-card:nth-child(3) { grid-column: span 2; aspect-ratio: 16/9; }
  .directora-grid { grid-template-columns: 1fr; gap: 40px; }
  .directora-image img { height: 400px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-hamburger { display: flex; }
  .disciplines-grid { grid-template-columns: 1fr; }
  .discipline-card:nth-child(1), .discipline-card:nth-child(2), .discipline-card:nth-child(3) {
    aspect-ratio: 4/3;
    grid-column: unset;
    margin-top: 0;
  }
  .programs-grid { grid-template-columns: 1fr; }
  .achievement-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:nth-child(3n+1), .gallery-item:nth-child(5n+2) { grid-column: unset; grid-row: unset; }
  .admision-cta { padding: 50px 24px; }
  .admision-steps { gap: 12px; }
  .admision-step::after { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .stats-bar-inner { justify-content: center; gap: 32px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.4rem; }
  .section { padding: 70px 0; }
  .gallery-grid { grid-template-columns: 1fr; }
  .staff-grid { grid-template-columns: 1fr; }
}

/* ─── WHATSAPP FLOAT ─────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 900;
  transition: var(--transition);
  color: white;
  font-size: 1.5rem;
  text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(37,211,102,0.55); }

/* ─── INNER PAGE SECTIONS ────────────────────────────── */
.info-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.highlight-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.highlight-card:hover {
  border-color: rgba(37,99,235,0.2);
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.highlight-emoji { font-size: 2rem; margin-bottom: 10px; }
.highlight-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.highlight-label { font-size: 0.8rem; color: var(--text-muted); }

.features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.6;
  transition: var(--transition);
}
.feature-item:hover {
  border-color: rgba(37,99,235,0.18);
  background: rgba(37,99,235,0.03);
}

.feature-check {
  width: 20px; height: 20px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.7rem;
  color: white;
  margin-top: 1px;
}

/* ─── LEVELS TAB ─────────────────────────────────────── */
.levels-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  background: var(--bg-soft);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 6px;
  width: fit-content;
}

.level-tab {
  padding: 10px 24px;
  border-radius: calc(var(--radius) - 4px);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}

.level-tab.active {
  background: #2563EB;
  color: white;
  box-shadow: 0 2px 10px rgba(37,99,235,0.2);
}

.level-panel { display: none; }
.level-panel.active { display: block; }

/* ─── SLIDER RESPONSIVE ───────────────────────────────── */
@media (max-width: 768px) {
  .program-card {
    grid-template-columns: 1fr;
    padding: 36px 28px;
    min-height: auto;
    gap: 28px;
  }
  .program-card::before {
    top: 0; left: 28px; right: 28px; bottom: auto;
    width: auto; height: 4px;
    border-radius: 0 0 4px 4px;
  }
  .slider-nav { flex-direction: column-reverse; gap: 16px; }
  .slider-arrows { justify-content: center; }
  .slider-dots  { justify-content: center; }
}

/* ─── SOCIAL HUB ─────────────────────────────────────── */
.social-hub {
  padding: 80px 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  position: relative;
  overflow: hidden;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 40px auto 0;
}

.social-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.social-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(circle at center, var(--card-glow, transparent) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.social-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.social-card:hover::before {
  opacity: 1;
}

.social-icon-box {
  width: 64px; height: 64px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--white);
  transition: all 0.4s ease;
  z-index: 1;
}

.social-card:hover .social-icon-box {
  transform: scale(1.1) rotate(8deg);
  color: var(--white);
}

.social-info {
  text-align: center;
  z-index: 1;
}

.social-handle {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.social-platform {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
}

.card-instagram { --card-glow: rgba(236, 72, 153, 0.15); }
.card-instagram:hover .social-icon-box { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }

.card-facebook { --card-glow: rgba(59, 130, 246, 0.15); }
.card-facebook:hover .social-icon-box { background: #1877F2; }

.card-whatsapp { --card-glow: rgba(34, 197, 94, 0.15); }
.card-whatsapp:hover .social-icon-box { background: #25D366; }

@media (max-width: 900px) {
  .social-grid { padding: 0 24px; }
}

@media (max-width: 768px) {
  .social-grid { grid-template-columns: 1fr; max-width: 400px; }
  
  /* Arreglo Global de Columnas (Grid y Flex) */
  .container { padding: 0 20px; }
  
  /* Forzamos que los grids que tienen estilo en línea de 2 columnas se apilen */
  [style*="display:grid"], 
  [style*="display: grid"],
  .grid-2-col, .grid-3-col { 
     grid-template-columns: 1fr !important; 
     gap: 32px !important;
  }

  /* Secciones con Flexbox que deben apilarse */
  [style*="display:flex"],
  [style*="display: flex"] {
     flex-direction: column !important;
     gap: 24px !important;
  }

  /* Excepción: Si queremos mantener flex horizontal en grupos pequeños (como botones) */
  .no-stack-mobile, 
  .nav-cta, 
  .breadcrumb, 
  .social-icons-row { 
     flex-direction: row !important; 
     gap: 12px !important;
  }

  /* Ajuste de Héroes de Página */
  .page-hero { padding: 80px 0 60px; min-height: auto; }
  .page-hero-content { text-align: center; }
  .page-hero .section-title { font-size: 2.2rem !important; }
  .page-hero .section-subtitle { font-size: 1rem !important; }

  /* Ajuste de Imágenes que se cortan */
  img { height: auto !important; max-height: 400px; width: 100% !important; object-fit: cover; }

  /* Tablas Responsive */
  .elegant-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -20px;
    padding: 0 20px;
  }
  .elegant-table {
    min-width: 600px; /* Forzamos scroll horizontal si la pantalla es menor a esto */
  }

  /* Ajustes de Espaciado General */
  .section { padding: 60px 0; }
  .section-header { margin-bottom: 40px; }
  
  /* Ajuste específico para Preuniversitario 5-card row */
  [style*="grid-template-columns: repeat(5, 1fr)"] {
     grid-template-columns: 1fr !important;
     max-width: 400px;
     margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .section-title { font-size: 1.8rem !important; }
  .price-amount { font-size: 2.2rem !important; }
  .btn { width: 100%; justify-content: center; }
}
