/* ============================================================
   SPACIO GRÁFICO — Hoja de Estilos Principal
   Versión 2.0 | 2026
   ─────────────────────────────────────────────────────────────
   SEO & RENDIMIENTO (Core Web Vitals):
   · Prevención de CLS: aspect-ratio en todas las imágenes
   · LCP optimizado: nav-logo-img sin lazy, fetchpriority=high
   · content-visibility en secciones off-screen (mejora FCP)
   · Font-display:swap ya incluido en la URL de Google Fonts
   · will-change limitado a elementos animados clave
   ============================================================ */

/* ─── ACCESIBILIDAD: Skip Link ─────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--orange, #F4622A);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  padding: 10px 20px;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  z-index: 99999;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  color: #1a2332;
  background: #fff;
  overflow-x: hidden;
}

/* ===== CURSOR PERSONALIZADO ===== */
/* Solo se activa en dispositivos con puntero fino (mouse/trackpad) */
@media (hover: hover) and (pointer: fine) {
  html, body, * { cursor: none !important; }

  .cursor-dot {
    position: fixed;
    width: 9px;
    height: 9px;
    background: var(--orange);
    border-radius: 50%;
    pointer-events: none;
    z-index: 999999;
    top: 0; left: 0;
    transform: translate(-50%, -50%);
    transition: width .2s ease, height .2s ease, background-color .2s ease, opacity .3s;
    mix-blend-mode: normal;
    will-change: transform;
  }

  .cursor-ring {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--orange);
    border-radius: 50%;
    pointer-events: none;
    z-index: 999998;
    top: 0; left: 0;
    transform: translate(-50%, -50%);
    opacity: 0.65;
    transition: width .35s ease, height .35s ease, border-color .35s ease,
                opacity .35s ease, border-width .35s ease;
    will-change: transform;
  }

  /* Estado hover sobre elementos interactivos */
  .cursor-dot.is-hovering {
    width: 14px;
    height: 14px;
    background: var(--blue);
  }
  .cursor-ring.is-hovering {
    width: 60px;
    height: 60px;
    border-color: var(--blue);
    border-width: 1.5px;
    opacity: 0.45;
  }

  /* Estado sobre imágenes/botones de acción */
  .cursor-dot.is-clicking {
    width: 6px;
    height: 6px;
    background: var(--gold);
  }
  .cursor-ring.is-clicking {
    width: 28px;
    height: 28px;
    border-color: var(--gold);
    border-width: 3px;
    opacity: 1;
  }
}

/* ===== DESIGN TOKENS ===== */
:root {
  --blue:      #1B4F9E;
  --blue-dark: #0f2f66;
  --blue-light:#3b72c4;
  --orange:    #F4622A;
  --orange-lt: #FF8A5B;
  --green:     #27AE60;
  --gold:      #F2C94C;
  --text:      #1a2332;
  --muted:     #6b7a94;
  --bg-light:  #F4F7FC;
  --white:     #ffffff;
  --radius:    14px;
  --shadow:    0 8px 32px rgba(27,79,158,.12);
  --nav-h:     72px;
}

/* ===== UTILITIES ===== */
.container { width: 90%; max-width: 1160px; margin: 0 auto; }
.section { padding: 88px 0; }

.section-tag {
  display: inline-block;
  background: rgba(27,79,158,.1);
  color: var(--blue);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 18px;
}
.section-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 560px;
}
.highlight { color: var(--orange); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  text-decoration: none;
  transition: all .25s ease;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 4px 20px rgba(244,98,42,.4);
}
.btn-primary:hover {
  background: #d94e1c;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(244,98,42,.5);
}
.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-2px);
}
.btn-white {
  background: #fff;
  color: var(--blue-dark);
  border-color: #fff;
}
.btn-white:hover {
  background: transparent;
  color: #fff;
  transform: translateY(-2px);
}

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: all .35s ease;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
#navbar.transparent { background: transparent; }
#navbar.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.1);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: filter .35s;
}
#navbar.scrolled .nav-logo-img { filter: none; }
.nav-logo-fallback {
  width: 44px; height: 44px;
  background: var(--orange);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  flex-shrink: 0;
}
.nav-logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
  transition: color .35s;
}
#navbar.scrolled .nav-logo-text { color: var(--blue-dark); }

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,.9);
  font-weight: 600;
  font-size: .88rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all .2s;
}
#navbar.scrolled .nav-links a { color: var(--text); }
.nav-links a:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
}
#navbar.scrolled .nav-links a:hover {
  background: var(--bg-light);
  color: var(--blue);
}
.nav-links .nav-cta {
  background: var(--orange);
  color: #fff !important;
  border-radius: 50px;
  padding: 9px 18px;
}
.nav-links .nav-cta:hover {
  background: #d94e1c !important;
  color: #fff !important;
}

/* Language Toggle Button */
.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 50px;
  cursor: pointer;
  transition: all .2s;
  font-family: 'Inter', sans-serif;
  flex-shrink: 0;
}
.lang-btn:hover {
  background: rgba(255,255,255,.25);
}
#navbar.scrolled .lang-btn {
  background: var(--bg-light);
  border-color: #dde2ed;
  color: var(--text);
}
#navbar.scrolled .lang-btn:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: rgba(255,255,255,.15);
  border: none;
  border-radius: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all .3s;
  border-radius: 2px;
}
#navbar.scrolled .nav-toggle span { background: var(--text); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: #fff;
  padding: 16px 5%;
  box-shadow: 0 10px 40px rgba(0,0,0,.15);
  z-index: 999;
  border-top: 3px solid var(--orange);
}
.nav-mobile.open { display: block; }
.nav-mobile ul { list-style: none; }
.nav-mobile ul li a {
  display: block;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: color .2s;
}
.nav-mobile ul li a:hover { color: var(--blue); }
.nav-mobile ul li:last-child a { border-bottom: none; }
.nav-mobile .mobile-lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  background: var(--bg-light);
  border: 1px solid #dde2ed;
  color: var(--text);
  font-size: .9rem;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 50px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  width: 100%;
  justify-content: center;
}

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 50%, #2563c4 100%);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: .06;
  background-image:
    radial-gradient(circle at 20% 20%, #fff 1px, transparent 1px),
    radial-gradient(circle at 80% 80%, #fff 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .25;
}
.hero-blob-1 { width: 500px; height: 500px; background: var(--orange); top: -150px; right: -100px; }
.hero-blob-2 { width: 350px; height: 350px; background: var(--gold); bottom: -100px; left: 10%; }

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 90%;
  max-width: 1160px;
  margin: 0 auto;
  padding: var(--nav-h) 0 60px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
  letter-spacing: .06em;
}
.hero-tag-dot {
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.3); }
}
.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 22px;
}
.hero-title .accent { color: var(--gold); }
.hero-desc {
  color: rgba(255,255,255,.82);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 50px;
}
.hero-stat {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.hero-stat-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
}
.hero-stat-label {
  font-size: .78rem;
  color: rgba(255,255,255,.75);
  margin-top: 4px;
  font-weight: 500;
}

/* Hero Visual Card */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-card-stack { position: relative; width: 360px; height: 420px; }
.hero-card {
  position: absolute;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.hero-card-main { width: 300px; background: #fff; top: 40px; left: 30px; z-index: 3; animation: float 4s ease-in-out infinite; }
.hero-card-back1 { width: 300px; background: var(--orange); top: 20px; left: 50px; z-index: 2; transform: rotate(5deg); }
.hero-card-back2 { width: 300px; background: var(--gold); top: 0; left: 10px; z-index: 1; transform: rotate(-4deg); }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero-card-icon {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.hero-card-title { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1rem; color: var(--text); margin-bottom: 8px; }
.hero-card-text { color: var(--muted); font-size: .85rem; line-height: 1.5; }
.hero-card-badge {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  margin-top: 14px;
}

/* ===== LEVELS SECTION ===== */
#niveles { background: var(--bg-light); }
.niveles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.nivel-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}
.nivel-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient, var(--blue));
  border-radius: 20px 20px 0 0;
}
.nivel-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(27,79,158,.18); }
.nivel-card:nth-child(1) { --gradient: linear-gradient(90deg, #F4622A, #FF8A5B); }
.nivel-card:nth-child(2) { --gradient: linear-gradient(90deg, #1B4F9E, #3b72c4); }
.nivel-card:nth-child(3) { --gradient: linear-gradient(90deg, #27AE60, #52D982); }
.nivel-icon { font-size: 2.8rem; margin-bottom: 18px; }
.nivel-ages { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.nivel-name { font-family: 'Montserrat', sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--text); margin-bottom: 12px; }
.nivel-desc { color: var(--muted); font-size: .93rem; line-height: 1.65; }
.nivel-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.nivel-tag { background: var(--bg-light); color: var(--text); font-size: .75rem; font-weight: 600; padding: 4px 12px; border-radius: 50px; }

/* ===== EDITORIAL ===== */
#editorial { background: #fff; }
.editorial-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
.value-item {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 20px;
  transition: all .25s;
}
.value-item:hover { background: var(--blue); transform: translateY(-4px); }
.value-item:hover .value-icon,
.value-item:hover .value-name,
.value-item:hover .value-desc { color: #fff; }
.value-icon { font-size: 1.8rem; margin-bottom: 8px; }
.value-name { font-weight: 700; font-size: .95rem; color: var(--text); margin-bottom: 4px; }
.value-desc { font-size: .82rem; color: var(--muted); line-height: 1.5; }
.mission-vision-grid { display: flex; flex-direction: column; gap: 20px; }
.mv-card {
  border-radius: var(--radius);
  padding: 28px;
  border-left: 5px solid var(--blue);
  background: var(--bg-light);
  transition: all .25s;
}
.mv-card:hover { border-left-color: var(--orange); }
.mv-card:nth-child(2) { border-left-color: var(--orange); }
.mv-label { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.mv-card:nth-child(2) .mv-label { color: var(--orange); }
.mv-title { font-family: 'Montserrat', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.mv-text { color: var(--muted); font-size: .9rem; line-height: 1.65; }

/* ===== CATALOG ===== */
#catalogo {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: #fff;
  position: relative;
  overflow: hidden;
}
#catalogo::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 70% 50%, rgba(244,98,42,.25) 0%, transparent 60%);
}
.catalogo-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.catalogo-text .section-tag { background: rgba(255,255,255,.15); color: #fff; }
.catalogo-text .section-title { color: #fff; }
.catalogo-text .section-subtitle { color: rgba(255,255,255,.78); max-width: 100%; }
.catalogo-features { list-style: none; margin: 28px 0 36px; display: flex; flex-direction: column; gap: 14px; }
.catalogo-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.88);
  font-size: .95rem;
}
.catalogo-features li::before {
  content: '✓';
  width: 26px; height: 26px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 900;
  flex-shrink: 0;
}
.catalogo-mockup { display: flex; justify-content: center; }
.catalog-preview {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  max-width: 340px;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
  animation: float 5s ease-in-out infinite;
}
.catalog-preview-header {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  color: #fff;
  text-align: center;
}
.catalog-preview-header h3 { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.1rem; }
.catalog-preview-header p { font-size: .82rem; opacity: .8; margin-top: 4px; }
.catalog-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.catalog-item:last-child { border-bottom: none; }
.catalog-item-icon { width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.catalog-item-text { flex: 1; }
.catalog-item-name { font-size: .85rem; font-weight: 600; color: var(--text); }
.catalog-item-level { font-size: .75rem; color: var(--muted); }

/* ===== STATS ===== */
#stats { background: var(--bg-light); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.stat-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all .3s;
}
.stat-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(27,79,158,.2); }
.stat-icon { font-size: 2.2rem; margin-bottom: 14px; }
.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-number .plus { color: var(--orange); }
.stat-label { color: var(--muted); font-size: .9rem; font-weight: 500; line-height: 1.4; }

/* ===== TESTIMONIALS ===== */
#testimonios { background: #fff; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.testi-card {
  background: var(--bg-light);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  transition: all .3s;
}
.testi-card:hover { background: var(--blue); transform: translateY(-6px); }
.testi-card:hover .testi-quote,
.testi-card:hover .testi-name,
.testi-card:hover .testi-inst { color: #fff; }
.testi-card:hover .testi-role { color: rgba(255,255,255,.7); }
.testi-quote-mark { font-size: 4rem; color: var(--orange); line-height: .8; margin-bottom: 16px; font-family: Georgia, serif; }
.testi-quote { color: var(--text); font-size: .92rem; line-height: 1.7; font-style: italic; margin-bottom: 24px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--orange));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.testi-name { font-weight: 700; font-size: .9rem; color: var(--text); }
.testi-inst { font-size: .78rem; color: var(--blue); font-weight: 600; }
.testi-card:hover .testi-inst { color: var(--gold); }
.testi-stars { color: var(--gold); font-size: .9rem; margin-bottom: 14px; }

/* ===== ACOMPAÑAMIENTO ===== */
#acompanamiento { background: var(--bg-light); }
.acomp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.acomp-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  display: flex;
  gap: 20px;
  box-shadow: var(--shadow);
  transition: all .3s;
  border-left: 4px solid transparent;
}
.acomp-card:hover { border-left-color: var(--orange); transform: translateX(4px); box-shadow: 0 12px 40px rgba(27,79,158,.15); }
.acomp-icon-wrap {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.acomp-card:nth-child(2) .acomp-icon-wrap { background: linear-gradient(135deg, var(--orange), #FF8A5B); }
.acomp-card:nth-child(3) .acomp-icon-wrap { background: linear-gradient(135deg, var(--green), #52D982); }
.acomp-card:nth-child(4) .acomp-icon-wrap { background: linear-gradient(135deg, #9b59b6, #c39bd3); }
.acomp-title { font-family: 'Montserrat', sans-serif; font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.acomp-desc { color: var(--muted); font-size: .88rem; line-height: 1.6; }

/* ===== EDUSPACIO BANNER ===== */
#eduspacio {
  background: linear-gradient(135deg, var(--orange), #d94e1c);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
#eduspacio::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  top: -200px; right: -100px;
}
.eduspacio-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.eduspacio-content { max-width: 580px; }
.eduspacio-tag {
  display: inline-block;
  background: rgba(255,255,255,.2);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.eduspacio-title { font-family: 'Montserrat', sans-serif; font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 900; color: #fff; margin-bottom: 14px; }
.eduspacio-desc { color: rgba(255,255,255,.88); font-size: 1rem; line-height: 1.7; }
.btn-eduspacio {
  background: #fff;
  color: var(--orange);
  padding: 16px 36px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .25s;
  white-space: nowrap;
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
}
.btn-eduspacio:hover { transform: scale(1.05); box-shadow: 0 14px 40px rgba(0,0,0,.3); }

/* ===== PARTNERS / ALIADOS ===== */
#aliados { background: #fff; }
.partners-logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.partner-logo-item {
  background: var(--bg-light);
  border: 1px solid #e8ecf4;
  border-radius: 16px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: all .25s;
  cursor: default;
}
.partner-logo-item:hover {
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 8px 28px rgba(27,79,158,.12);
  transform: translateY(-4px);
}
.partner-logo-item img {
  height: 56px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  filter: grayscale(30%);
  transition: filter .25s;
}
.partner-logo-item:hover img { filter: grayscale(0%); }
.partner-logo-name {
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  line-height: 1.35;
}
.partner-logo-location {
  font-size: .7rem;
  color: var(--blue);
  font-weight: 500;
  text-align: center;
}

/* ===== LOCATIONS ===== */
#ubicaciones { background: var(--bg-light); }
.locations-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.location-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow);
  transition: all .3s;
  text-align: center;
  width: 340px;
  max-width: 100%;
}
.location-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(27,79,158,.2); }
.location-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 18px;
}
.location-name { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.1rem; color: var(--text); margin-bottom: 12px; }
.location-addr { color: var(--muted); font-size: .88rem; line-height: 1.65; margin-bottom: 16px; }
.location-contact { display: flex; flex-direction: column; gap: 6px; }
.location-contact a { color: var(--blue); text-decoration: none; font-size: .85rem; font-weight: 500; transition: color .2s; }
.location-contact a:hover { color: var(--orange); }

/* ===== FOOTER ===== */
footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,.75);
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-logo-img {
  height: 90px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.footer-logo-text-wrap { display: flex; flex-direction: column; }
.footer-logo-text { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.15rem; color: #fff; }
.footer-logo-sub { font-size: .75rem; color: rgba(255,255,255,.45); margin-top: 1px; }
.footer-brand p { font-size: .88rem; line-height: 1.7; color: rgba(255,255,255,.6); }
.footer-title { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .95rem; color: #fff; margin-bottom: 18px; letter-spacing: .04em; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { text-decoration: none; color: rgba(255,255,255,.6); font-size: .88rem; transition: color .2s; }
.footer-links a:hover { color: var(--gold); }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; color: rgba(255,255,255,.6); }
.footer-contact-item span:first-child { width: 20px; flex-shrink: 0; margin-top: 1px; }
.footer-contact-item a { color: rgba(255,255,255,.6); text-decoration: none; transition: color .2s; }
.footer-contact-item a:hover { color: var(--gold); }

/* Email Empresarial Button */
.btn-email-empresarial {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.85);
  font-size: .85rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 50px;
  text-decoration: none;
  transition: all .25s;
  margin-top: 16px;
}
.btn-email-empresarial:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: .82rem; color: rgba(255,255,255,.45); }

/* ===== MAPA DE UBICACIÓN ===== */
.location-map-wrap {
  margin-top: 44px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(27,79,158,.18);
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.location-map-link {
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  border-radius: 22px;
}

.location-map-img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.location-map-link:hover .location-map-img {
  transform: scale(1.04);
}

/* Capa oscura de hover */
.location-map-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 47, 102, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .35s ease;
}

.location-map-link:hover .location-map-overlay {
  background: rgba(15, 47, 102, 0.48);
}

/* Botón central que aparece en hover */
.location-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  color: var(--blue);
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 50px;
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
  opacity: 0;
  transform: translateY(14px) scale(.96);
  transition: opacity .35s ease, transform .35s ease;
  white-space: nowrap;
}

.location-map-link:hover .location-map-btn {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Franja inferior siempre visible (especialmente en móvil) */
.location-map-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(15,47,102,.75) 0%, transparent 100%);
  padding: 36px 20px 14px;
  color: rgba(255,255,255,.88);
  font-size: .85rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: .04em;
  pointer-events: none;
  transition: opacity .3s;
}

.location-map-link:hover .location-map-label {
  opacity: 0;
}

/* ===== BACK TO TOP ===== */
#back-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 48px; height: 48px;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(244,98,42,.5);
  opacity: 0;
  transform: translateY(20px);
  transition: all .3s;
  z-index: 900;
}
#back-top.visible { opacity: 1; transform: translateY(0); }
#back-top:hover { transform: translateY(-4px); }

/* ===== FADE-IN ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: .1s; }
.fade-in-delay-2 { transition-delay: .2s; }
.fade-in-delay-3 { transition-delay: .3s; }

/* ============================================================
   SEO / CORE WEB VITALS — Optimizaciones de Rendimiento
   ============================================================ */

/* ─── Prevención de CLS: reservar espacio antes de cargar imgs ─ */
.nav-logo-img          { aspect-ratio: 160 / 44; width: auto; max-height: 44px; }
.footer-logo-img       { aspect-ratio: 200 / 62; width: auto; }
.partner-logo-item img { aspect-ratio: 3 / 2;   width: 100%; max-width: 130px; height: auto; }
.location-map-img      { aspect-ratio: 16 / 7;  width: 100%; height: auto; }

/* ─── content-visibility: mejora FCP en secciones off-screen ── */
/* Solo en secciones que NO son el hero ni el navbar             */
#niveles, #editorial, #catalogo, #stats,
#testimonios, #acompanamiento, #eduspacio,
#aliados, #ubicaciones {
  content-visibility: auto;
  /* contain-intrinsic-size da una altura estimada para evitar
     saltos de layout mientras se calcula el contenido */
  contain-intrinsic-size: 0 600px;
}

/* ─── Imágenes: nunca desbordarse de su contenedor ─────────── */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ─── Links: texto descriptivo obligatorio (accesibilidad SEO) ─ */
a:not([aria-label]):not([title]) { }   /* placeholder para futuros linters */

/* ─── Focus visible: accesibilidad (afecta ranking en Core CWV) */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── Print: evitar imprimir hero completo (ahorra papel y
       mejora accesibilidad en lectores de pantalla) ────────── */
@media print {
  #navbar, #back-top, .hero-blob, .cursor-dot, .cursor-ring,
  .nav-toggle, .nav-mobile { display: none !important; }
  body { color: #000; background: #fff; }
  a[href]::after { content: " (" attr(href) ")"; font-size: .75em; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .niveles-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .partners-logo-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .lang-btn { display: none; }
  .nav-toggle { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: calc(var(--nav-h) + 20px);
  }
  .hero-desc { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-visual { display: none; }

  .section { padding: 60px 0; }
  .section-title { font-size: clamp(1.6rem, 5vw, 2.2rem); }

  .editorial-inner { grid-template-columns: 1fr; gap: 48px; }
  .catalogo-inner { grid-template-columns: 1fr; gap: 40px; }
  .catalogo-mockup { display: none; }
  .niveles-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .acomp-grid { grid-template-columns: 1fr; }
  .locations-grid { flex-direction: column; align-items: center; }
  .location-card { width: 100%; max-width: 420px; }
  .partners-logo-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .eduspacio-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stat:last-child { grid-column: 1 / -1; }
  .stats-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .partners-logo-grid { grid-template-columns: repeat(2, 1fr); }
}
}

/* ─── Imágenes: nunca desbordarse de su contenedor ─────────── */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ─── Focus visible: accesibilidad (afecta Core Web Vitals) ─── */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── Print: modo impresión limpio ──────────────────────────── */
@media print {
  #navbar, #back-top, .hero-blob, .cursor-dot, .cursor-ring,
  .nav-toggle, .nav-mobile { display: none !important; }
  body { color: #000; background: #fff; }
  a[href]::after { content: " (" attr(href) ")"; font-size: .75em; }
}

/* ============================================================
   RESPONSIVE — Media Queries
   ============================================================ */

@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .niveles-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .partners-logo-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .lang-btn  { display: none; }
  .nav-toggle { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: calc(var(--nav-h) + 20px);
  }
  .hero-desc { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-visual { display: none; }

  .section { padding: 60px 0; }
  .section-title { font-size: clamp(1.6rem, 5vw, 2.2rem); }

  .editorial-inner { grid-template-columns: 1fr; gap: 48px; }
  .catalogo-inner  { grid-template-columns: 1fr; gap: 40px; }
  .catalogo-mockup { display: none; }
  .niveles-grid    { grid-template-columns: 1fr; }
  .stats-grid      { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .acomp-grid      { grid-template-columns: 1fr; }
  .locations-grid  { flex-direction: column; align-items: center; }
  .location-card   { width: 100%; max-width: 420px; }
  .partners-logo-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid     { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom   { flex-direction: column; text-align: center; }
  .eduspacio-inner { flex-direction: column; text-align: center; }

  /* Mapa: label de toque siempre visible en móvil */
  .location-map-label { opacity: 1 !important; }
  .location-map-btn   { display: none; }
  .location-map-img   { max-height: 220px; object-fit: cover; }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stat:last-child { grid-column: 1 / -1; }
  .stats-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .partners-logo-grid { grid-template-columns: repeat(2, 1fr); }
  .location-map-img { max-height: 180px; }
}
