/* ============================================================
   COLEGIO TIJUANA — Style.css v2.0
   Mobile-first · CSS Custom Properties · Sin dependencias
   ============================================================ */

/* ── 1. Tokens de diseño ──────────────────────────────────── */
:root {
  --navy:       #1E2D5A;
  --navy-dk:    #141F3F;
  --navy-lt:    #2A3F7E;
  --navy-xlt:   #EEF1F8;
  --gold:       #F0A500;
  --gold-dk:    #C88A00;
  --gold-lt:    #F5BC3D;
  --gold-xlt:   #FEF9EC;
  --white:      #FFFFFF;
  --off-white:  #F8F9FB;
  --gray-100:   #F1F3F5;
  --gray-200:   #E9ECEF;
  --gray-400:   #CED4DA;
  --gray-600:   #868E96;
  --gray-700:   #495057;
  --gray-900:   #212529;
  --text:       #1A1F2E;
  --muted:      #6C757D;
  --success:    #2E7D32;
  --error:      #C62828;

  --font:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --r-sm:   4px;
  --r:      8px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 9999px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,.08);
  --shadow:    0 4px 20px rgba(0,0,0,.09);
  --shadow-md: 0 8px 32px rgba(0,0,0,.12);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.15);
  --shadow-navy: 0 8px 32px rgba(30,45,90,.28);

  --t:      .25s ease;
  --t-slow: .4s ease;
  --t-spring: .4s cubic-bezier(.34,1.56,.64,1);

  --header-h: 72px;
  --max-w:    1200px;
  --section-py: 5rem;
}

/* ── 2. Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}
address { font-style: normal; }
table { border-collapse: collapse; }

/* ── 3. Tipografía ───────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }

.text-navy   { color: var(--navy) !important; }
.text-gold   { color: var(--gold) !important; }
.text-muted  { color: var(--muted); }
.text-white  { color: var(--white) !important; }
.text-center { text-align: center; }
.text-left   { text-align: left; }

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}
.section-title {
  margin-bottom: 1rem;
}
.section-title + p { color: var(--muted); font-size: 1.05rem; }
.section-intro {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ── 4. Layout ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.section {
  padding: var(--section-py) 0;
}
.section-sm { padding: 3rem 0; }
.section-lg { padding: 7rem 0; }

.bg-white     { background: var(--white); }
.bg-off-white { background: var(--off-white); }
.bg-navy      { background: var(--navy); }
.bg-navy-dk   { background: var(--navy-dk); }
.bg-gold      { background: var(--gold); }
.bg-gold-xlt  { background: var(--gold-xlt); }
.bg-navy-xlt  { background: var(--navy-xlt); }

.grid-2 { display: grid; gap: 2rem; }
.grid-3 { display: grid; gap: 1.5rem; }
.grid-4 { display: grid; gap: 1.5rem; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.flex     { display: flex; }
.flex-col { flex-direction: column; }
.items-center  { align-items: center; }
.items-start   { align-items: flex-start; }
.justify-center{ justify-content: center; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.flex-wrap { flex-wrap: wrap; }

/* ── 5. Botones ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--r-full);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1;
  transition: all var(--t);
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }
.btn-sm { padding: .5rem 1.25rem; font-size: .875rem; }

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-dk);
  border-color: var(--navy-dk);
  transform: translateY(-2px);
  box-shadow: var(--shadow-navy);
}
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-dk);
  border-color: var(--gold-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240,165,0,.35);
}
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--navy);
}
.btn-white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* ── 6. Header / Navegación ───────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--white);
  transition: box-shadow var(--t), background var(--t);
}
.site-header.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,.1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

/* Logo */
.nav-logo img {
  height: 48px;
  width: auto;
  display: block;
}
.nav-logo:hover { opacity: .85; }

/* Desktop nav */
.nav-menu {
  display: none;
  align-items: center;
  gap: .25rem;
}
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .5rem .75rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--r);
  transition: color var(--t), background var(--t);
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
  color: var(--navy);
  background: var(--navy-xlt);
}
.nav-link.active { font-weight: 600; }
.nav-link svg { flex-shrink: 0; transition: transform var(--t); }

/* Dropdown */
.nav-item.has-dropdown { position: relative; }
.nav-item.has-dropdown:hover .nav-link svg { transform: rotate(180deg); }
.dropdown {
  position: absolute;
  top: calc(100% + .5rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 210px;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  padding: .5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--t), transform var(--t);
  transform: translateX(-50%) translateY(-8px);
}
.nav-item.has-dropdown:hover .dropdown,
.nav-item.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem 1rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--r);
  transition: background var(--t), color var(--t);
}
.dropdown a:hover {
  background: var(--navy-xlt);
  color: var(--navy);
}
.dropdown-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
  background: var(--navy-xlt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Header actions */
.header-actions {
  display: none;
  align-items: center;
  gap: .75rem;
}
.header-phone {
  font-size: .875rem;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: .4rem;
  transition: color var(--t);
}
.header-phone:hover { color: var(--gold-dk); }

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--r);
  padding: 6px;
  transition: background var(--t);
  flex-shrink: 0;
}
.nav-toggle:hover { background: var(--gray-100); }
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t), width var(--t);
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 90vw);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  z-index: 1100;
  transform: translateX(100%);
  transition: transform var(--t-slow);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.nav-drawer.open { transform: translateX(0); }
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}
.drawer-header img { height: 40px; }
.drawer-close {
  width: 36px; height: 36px;
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  color: var(--gray-700);
  transition: background var(--t);
}
.drawer-close:hover { background: var(--gray-100); }
.drawer-nav {
  padding: 1rem;
  flex: 1;
}
.drawer-nav a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--r);
  transition: background var(--t), color var(--t);
}
.drawer-nav a:hover, .drawer-nav a.active {
  background: var(--navy-xlt);
  color: var(--navy);
  font-weight: 600;
}
.drawer-sub {
  padding-left: 1rem;
  border-left: 2px solid var(--gray-200);
  margin: .25rem 0 .25rem 1.75rem;
}
.drawer-sub a {
  font-size: .9rem;
  padding: .6rem .75rem;
}
.drawer-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.drawer-footer a { border-radius: var(--r-full); text-align: center; justify-content: center; }
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1050;
  backdrop-filter: blur(2px);
}
.nav-overlay.open { display: block; }

@media (min-width: 1024px) {
  .nav-menu     { display: flex; }
  .header-actions { display: flex; }
  .nav-toggle   { display: none; }
}

/* ── 7. Hero (Inicio) ─────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  margin-top: var(--header-h);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(20,31,63,.82) 0%,
    rgba(30,45,90,.65) 50%,
    rgba(20,31,63,.5) 100%
  );
}
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1.5rem;
  max-width: 760px;
  margin: 0 auto;
  left: 0; right: 0;
}
.hero-content .hero-label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.hero-content .hero-label::before {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 2px;
  background: var(--gold);
}
.hero-content h1 {
  color: var(--white);
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero-content p {
  color: rgba(255,255,255,.88);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 520px;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-nav {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .5rem;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.4);
  border: 2px solid transparent;
  transition: all var(--t);
}
.hero-dot.active {
  background: var(--gold);
  width: 28px;
  border-color: var(--gold);
}
.hero-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  pointer-events: none;
}
.hero-arrow {
  pointer-events: auto;
  width: 48px;
  height: 48px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all var(--t);
}
.hero-arrow:hover {
  background: rgba(255,255,255,.3);
  transform: scale(1.1);
}

/* ── 8. Page Hero (inner pages) ────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dk) 0%, var(--navy) 100%);
  margin-top: var(--header-h);
  padding: 4rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(240,165,0,.12) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(255,255,255,.04) 0%, transparent 50%);
}
.page-hero .container { position: relative; }
.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: .75rem;
}
.page-hero p {
  color: rgba(255,255,255,.75);
  font-size: 1.05rem;
  margin-bottom: 0;
  max-width: 540px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.25rem;
  font-size: .85rem;
  color: rgba(255,255,255,.6);
}
.breadcrumb a { color: var(--gold-lt); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,.4); }

/* ── 9. Barra de estadísticas ─────────────────────────────── */
.stats-bar {
  background: var(--navy);
  padding: 1.75rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat-num {
  display: block;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: .3rem;
}
.stat-label {
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  font-weight: 500;
}
@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── 10. Cards de niveles ─────────────────────────────────── */
.level-card {
  background: var(--white);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--t), box-shadow var(--t);
  display: flex;
  flex-direction: column;
}
.level-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.level-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.level-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.level-card:hover .level-card-img img { transform: scale(1.05); }
.level-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--gold);
  color: var(--navy);
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem .75rem;
  border-radius: var(--r-full);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.level-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.level-card-body h3 { margin-bottom: .5rem; }
.level-card-body p  { color: var(--muted); font-size: .95rem; flex: 1; margin-bottom: 1.25rem; }
.level-tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--navy-xlt);
  padding: .25rem .65rem;
  border-radius: var(--r-full);
  margin: .15rem;
}
.level-tags { display: flex; flex-wrap: wrap; margin: 0 -.15rem .75rem; }

/* ── 11. Cards de programas ───────────────────────────────── */
.program-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  border: 2px solid var(--gray-200);
  transition: all var(--t);
  display: flex;
  flex-direction: column;
}
.program-card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.program-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-lg);
  background: var(--navy-xlt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.program-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.program-card p  { color: var(--muted); font-size: .9rem; flex: 1; margin-bottom: 1rem; }
.program-card .link-more {
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: .3rem;
  transition: gap var(--t);
}
.program-card:hover .link-more { gap: .6rem; }

/* ── 12. Sección "Sobre nosotros" (2 col) ─────────────────── */
.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
.about-img {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-text .section-label { display: block; }
.about-quote {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  border-left: 4px solid var(--gold);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  line-height: 1.4;
}
.feature-list { display: flex; flex-direction: column; gap: .6rem; margin: 1.25rem 0; }
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .95rem;
  color: var(--gray-700);
}
.feature-item::before {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: var(--r-full);
  background: var(--gold);
  flex-shrink: 0;
  margin-top: .15rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%231E2D5A'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: cover;
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
  .about-grid.reverse .about-img { order: 2; }
}

/* ── 13. Pilares de convivencia ───────────────────────────── */
.pilares-grid { display: grid; gap: 1.5rem; }
.pilar-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: box-shadow var(--t);
}
.pilar-card:hover { box-shadow: var(--shadow); }
.pilar-num {
  width: 48px;
  height: 48px;
  border-radius: var(--r-full);
  background: var(--navy);
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pilar-card h4 { color: var(--navy); margin-bottom: .35rem; }
.pilar-card p  { color: var(--muted); font-size: .9rem; margin: 0; }
@media (min-width: 768px) {
  .pilares-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── 14. Timeline ─────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: .875rem;
  top: .5rem;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--navy), var(--gold), var(--navy));
}
.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -2.5rem;
  top: .25rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--r-full);
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--navy);
}
.timeline-year {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--gold-dk);
  text-transform: uppercase;
  margin-bottom: .25rem;
}
.timeline-item h4 { color: var(--navy); margin-bottom: .4rem; }
.timeline-item p  { color: var(--muted); font-size: .9rem; margin: 0; }

/* ── 15. Misión / Visión / Valores ────────────────────────── */
.mvv-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--t);
  border-top: 4px solid var(--navy);
}
.mvv-card:hover { transform: translateY(-4px); }
.mvv-card:nth-child(2) { border-top-color: var(--gold); }
.mvv-card:nth-child(3) { border-top-color: var(--navy-lt); }
.mvv-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--r-full);
  background: var(--navy-xlt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.25rem;
}
.mvv-card h3 { margin-bottom: .75rem; }
.mvv-card p  { color: var(--muted); font-size: .9rem; margin: 0; line-height: 1.7; }

/* ── 16. Galería ──────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--gray-200);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20,31,63,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--t);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay svg { color: var(--white); width: 2rem; height: 2rem; }

@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid.full { grid-template-columns: repeat(4, 1fr); }
}

/* ── 17. Lightbox ─────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.93);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t);
  flex-direction: column;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-img-wrap {
  position: relative;
  max-width: 92vw;
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--r-lg);
  box-shadow: 0 0 60px rgba(0,0,0,.5);
  object-fit: contain;
}
.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.15);
  color: var(--white);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t);
  z-index: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,.3); }
.lightbox-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.12);
  color: var(--white);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t), transform var(--t);
  z-index: 1;
}
.lightbox-btn:hover { background: rgba(255,255,255,.25); }
.lightbox-btn.prev { left: 1rem; }
.lightbox-btn.next { right: 1rem; }
.lightbox-counter {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.6);
  font-size: .875rem;
  font-weight: 500;
  background: rgba(0,0,0,.4);
  padding: .35rem 1rem;
  border-radius: var(--r-full);
}
.lightbox-caption {
  margin-top: 1rem;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  text-align: center;
  max-width: 600px;
  padding: 0 1rem;
}

/* ── 18. CTA Section ──────────────────────────────────────── */
.cta-section {
  background: var(--gold);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231E2D5A' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-section .container { position: relative; }
.cta-section h2 { color: var(--navy); margin-bottom: 1rem; font-size: clamp(1.5rem, 3vw, 2.5rem); }
.cta-section p  { color: var(--navy); opacity: .8; font-size: 1.1rem; margin-bottom: 2rem; }
.cta-buttons    { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ── 19. Proceso de admisión ──────────────────────────────── */
.steps-grid {
  display: grid;
  gap: 1.5rem;
  counter-reset: steps;
}
.step-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: box-shadow var(--t);
  counter-increment: steps;
}
.step-card:hover { box-shadow: var(--shadow); }
.step-num {
  width: 48px;
  height: 48px;
  border-radius: var(--r-full);
  background: var(--navy);
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-card h4 { color: var(--navy); margin-bottom: .35rem; }
.step-card p  { color: var(--muted); font-size: .9rem; margin: 0; }
@media (min-width: 768px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Documentos checklist */
.docs-list {
  display: grid;
  gap: .75rem;
}
.doc-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .875rem 1.25rem;
  background: var(--white);
  border-radius: var(--r);
  border: 1px solid var(--gray-200);
  font-size: .95rem;
  font-weight: 500;
}
.doc-item::before {
  content: '📄';
  font-size: 1.1rem;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .docs-list { grid-template-columns: repeat(2, 1fr); }
}

/* ── 20. Formulario de contacto ───────────────────────────── */
.contact-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}
.contact-info-card {
  background: var(--navy);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  color: var(--white);
}
.contact-info-card h3 { color: var(--white); margin-bottom: 2rem; }
.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.75rem;
}
.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r);
  background: rgba(240,165,0,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.contact-info-item h5 {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: .3rem;
}
.contact-info-item a,
.contact-info-item p {
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  margin: 0;
  line-height: 1.5;
}
.contact-info-item a:hover { color: var(--gold); }
.social-row { display: flex; gap: .75rem; margin-top: .5rem; }
.social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background var(--t);
}
.social-link:hover { background: var(--gold); color: var(--navy); }
.social-link svg { width: 20px; height: 20px; }

/* Form */
.contact-form-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.contact-form-card h3 { margin-bottom: 1.75rem; }
.form-row { display: grid; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-700);
}
.form-label span { color: var(--error); }
.form-control {
  width: 100%;
  padding: .75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--r);
  font-size: .95rem;
  color: var(--text);
  background: var(--off-white);
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.form-control:focus {
  border-color: var(--navy);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(30,45,90,.1);
}
.form-control.error { border-color: var(--error); }
textarea.form-control { resize: vertical; min-height: 140px; }
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23495057'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}
.form-error { font-size: .8rem; color: var(--error); display: none; }
.form-error.show { display: block; }
.form-message {
  padding: 1rem 1.25rem;
  border-radius: var(--r);
  font-size: .9rem;
  font-weight: 500;
  display: none;
}
.form-message.success {
  display: flex;
  gap: .75rem;
  align-items: center;
  background: #E8F5E9;
  color: var(--success);
  border: 1px solid #A5D6A7;
}
.form-message.error-msg {
  display: flex;
  gap: .75rem;
  align-items: center;
  background: #FFEBEE;
  color: var(--error);
  border: 1px solid #FFCDD2;
}
.honeypot { position: absolute; left: -9999px; opacity: 0; }
.btn-submit {
  width: 100%;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.btn-submit .spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: var(--white);
  border-radius: var(--r-full);
  animation: spin .7s linear infinite;
}
.btn-submit.loading .spinner { display: block; }
.btn-submit.loading .btn-text { opacity: .7; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 768px) {
  .form-row-2 { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 5fr 7fr; }
}

/* Mapa */
.map-wrap {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 380px;
  background: var(--gray-200);
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ── 21. Footer ───────────────────────────────────────────── */
.site-footer {
  background: var(--navy-dk);
  color: rgba(255,255,255,.75);
}
.footer-main {
  padding: 5rem 0 3rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
}
.footer-brand img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}
.footer-brand p {
  font-size: .95rem;
  font-style: italic;
  color: var(--gold-lt);
  margin-bottom: 1.5rem;
}
.footer-social { display: flex; gap: .5rem; }
.footer-col h5 {
  color: var(--white);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer-col ul li { margin-bottom: .6rem; }
.footer-col a {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  transition: color var(--t);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.footer-col a:hover { color: var(--gold); }
.footer-contact-item {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  font-size: .9rem;
  color: rgba(255,255,255,.65);
}
.footer-contact-item .icon { color: var(--gold); flex-shrink: 0; margin-top: .1rem; }
.footer-contact-item a { color: rgba(255,255,255,.65); }
.footer-contact-item a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .85rem;
  color: rgba(255,255,255,.4);
}
.footer-bottom a { color: var(--gold-lt); }
.footer-bottom a:hover { color: var(--gold); }

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 2fr; }
}

/* ── 22. Botones flotantes ────────────────────────────────── */
.fab-wrap {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .75rem;
}
.fab-whatsapp {
  width: 58px;
  height: 58px;
  border-radius: var(--r-full);
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  transition: transform var(--t-spring), box-shadow var(--t);
  animation: wa-pulse 2.5s infinite;
}
.fab-whatsapp svg { width: 30px; height: 30px; }
.fab-whatsapp:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(37,211,102,.6);
  animation: none;
}
@keyframes wa-pulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,.5); }
  50%      { box-shadow: 0 4px 36px rgba(37,211,102,.75); }
}
.fab-top {
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--t);
}
.fab-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.fab-top:hover { background: var(--navy-lt); transform: translateY(-2px); }
.fab-top svg { width: 20px; height: 20px; }

/* ── 23. Animaciones ──────────────────────────────────────── */
.animate {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.animate.delay-1 { transition-delay: .1s; }
.animate.delay-2 { transition-delay: .2s; }
.animate.delay-3 { transition-delay: .3s; }
.animate.delay-4 { transition-delay: .4s; }
.animate.delay-5 { transition-delay: .5s; }
.animate.visible { opacity: 1; transform: translateY(0); }
.animate-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity .65s ease, transform .65s ease;
}
.animate-left.visible { opacity: 1; transform: translateX(0); }
.animate-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.animate-right.visible { opacity: 1; transform: translateX(0); }

/* ── 24. Utilidades extras ────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .75rem;
  border-radius: var(--r-full);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.badge-gold  { background: var(--gold); color: var(--navy); }
.badge-navy  { background: var(--navy); color: var(--white); }
.badge-green { background: #E8F5E9; color: #2E7D32; }

.divider {
  width: 3rem;
  height: 4px;
  background: var(--gold);
  border-radius: var(--r-full);
  margin: 1.5rem 0;
}
.divider.center { margin-left: auto; margin-right: auto; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Responsive ajustes finales */
@media (max-width: 639px) {
  :root { --section-py: 3.5rem; --header-h: 64px; }
  .hero-content { padding: 1.5rem; }
  .cta-section { padding: 3.5rem 0; }
  .footer-main { padding: 3.5rem 0 2rem; }
  .contact-info-card, .contact-form-card { padding: 1.75rem; }
  .page-hero { padding: 3rem 0 2.5rem; }
  .hero-btn-secondary { display: none; }
}
@media (min-width: 768px) {
  .hero-content { padding: 2rem; }
}
@media (min-width: 1024px) {
  .hero-content { padding: 2rem 3rem; }
}

/* Print */
@media print {
  .site-header, .fab-wrap, .hero-arrows, .hero-nav { display: none !important; }
  .hero { height: auto; margin-top: 0; }
  .page-hero { margin-top: 0; }
  a[href]::after { content: " (" attr(href) ")"; }
}

/* ============================================================
   NUEVAS FUNCIONES — v2
   ============================================================ */

/* ── Variables adicionales ─────────────────────────────────── */
:root {
  --green: #2E7D32;
  --teal:  #00695C;
  --topbar-h: 36px;
}

/* ── TOPBAR (barra utilitaria) ─────────────────────────────── */
.topbar {
  background: var(--navy);
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.topbar-tagline {
  font-size: .72rem;
  color: rgba(255,255,255,.5);
  letter-spacing: .04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex-shrink: 0;
}
.topbar-link {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .72rem;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  padding: .3rem .6rem;
  border-radius: var(--r-sm);
  transition: background var(--t), color var(--t);
  white-space: nowrap;
}
.topbar-link:hover { background: rgba(255,255,255,.1); color: var(--white); }
.topbar-padres { color: rgba(255,255,255,.75); }
.topbar-pagar  { background: var(--gold); color: var(--navy) !important; border-radius: var(--r-sm); }
.topbar-pagar:hover { background: #d99200; }

/* Ajusta el header para compensar la topbar */
.site-header { top: var(--topbar-h); }
.page-hero, .hero { margin-top: calc(var(--header-h) + var(--topbar-h)); }

/* ── Selector de idioma ────────────────────────────────────── */
.lang-switch {
  display: flex;
  align-items: center;
  gap: .2rem;
  margin-left: .5rem;
  border-left: 1px solid rgba(255,255,255,.2);
  padding-left: .6rem;
}
.lang-btn {
  font-size: .72rem;
  font-weight: 700;
  color: rgba(255,255,255,.5);
  padding: .2rem .35rem;
  border-radius: 3px;
  letter-spacing: .04em;
  transition: color var(--t), background var(--t);
}
.lang-btn:hover { color: var(--white); }
.lang-btn.active { color: var(--gold); }
.lang-divider { color: rgba(255,255,255,.2); font-size: .65rem; }

/* Mobile: ocultar tagline en pantallas muy pequeñas */
@media (max-width: 400px) {
  .topbar-tagline { display: none; }
}

/* ── Drawer: divider y lang ────────────────────────────────── */
.drawer-divider {
  height: 1px;
  background: rgba(0,0,0,.08);
  margin: .5rem 0;
}
.drawer-highlight {
  background: var(--navy-xlt);
  border-radius: var(--r-md);
}
.drawer-lang {
  display: flex;
  gap: .5rem;
  padding: .5rem 0;
}
.drawer-lang a {
  flex: 1;
  text-align: center;
  font-size: .8rem !important;
  font-weight: 700 !important;
  padding: .4rem !important;
  border-radius: var(--r-sm) !important;
  border: 1px solid var(--navy) !important;
  color: var(--navy) !important;
}
.drawer-lang a.active {
  background: var(--navy) !important;
  color: var(--white) !important;
}

/* ── SELECTOR DE NIVEL / AGE CARDS ───────────────────────────  */
.age-selector-section {
  background: var(--navy);
  padding: 2.5rem 0;
}
.age-selector-title {
  color: var(--white);
  font-size: clamp(1.3rem, 3vw, 2rem);
  margin-bottom: .5rem;
}
.age-selector-sub {
  color: rgba(255,255,255,.65);
  font-size: .95rem;
  margin: 0;
}
.age-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.age-card {
  background: rgba(255,255,255,.06);
  border: 2px solid rgba(255,255,255,.1);
  border-radius: var(--r-xl);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  cursor: pointer;
}
.age-card:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.3);
}
.age-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--card-color, var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: .25rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.age-range {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.age-range span {
  font-size: .8rem;
  font-weight: 500;
  color: rgba(255,255,255,.5);
}
.age-nivel {
  font-size: .95rem;
  font-weight: 700;
  color: var(--white);
}
.age-sub {
  font-size: .75rem;
  color: rgba(255,255,255,.45);
}
.age-cta {
  margin-top: .5rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--gold);
  padding: .3rem .75rem;
  border: 1px solid rgba(240,165,0,.4);
  border-radius: 999px;
  transition: all var(--t);
}
.age-card:hover .age-cta {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

@media (max-width: 768px) {
  .age-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .age-cards { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .age-card { padding: 1rem .75rem; }
  .age-range { font-size: 1.3rem; }
}

/* ── BADGES DE CATEGORÍA ────────────────────────────────────── */
.cat-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  border-radius: 999px;
}
.cat-logro   { background: var(--gold);  color: var(--navy); }
.cat-evento  { background: var(--navy);  color: var(--white); }
.cat-aviso   { background: #e53935;      color: var(--white); }
.cat-noticia { background: #546e7a;      color: var(--white); }

/* ── NOTICIAS — listado ─────────────────────────────────────── */
.news-filters {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.news-filter-btn {
  background: none;
  border: 2px solid var(--navy);
  color: var(--navy);
  font-size: .82rem;
  font-weight: 600;
  padding: .4rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--t);
}
.news-filter-btn:hover,
.news-filter-btn.active {
  background: var(--navy);
  color: var(--white);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.news-grid-home {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Shared news card */
.news-card,
.news-card-home {
  background: var(--white);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
  display: flex;
  flex-direction: column;
}
.news-card:hover,
.news-card-home:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.news-card-img-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.news-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.news-card:hover .news-card-img-wrap img,
.news-card-home:hover .news-card-img-wrap img { transform: scale(1.04); }
.news-card-img-wrap .cat-badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
}

.news-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .35rem;
}
.news-date {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 500;
}
.news-card-title,
.news-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin: 0;
}
.news-card-title a,
.news-card-body h3 a {
  color: inherit;
}
.news-card-title a:hover,
.news-card-body h3 a:hover { color: var(--gold); }
.news-card-excerpt,
.news-card-body p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
  margin: 0;
}
.link-more {
  font-size: .85rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: auto;
}
.link-more:hover { color: var(--gold); }

@media (max-width: 900px) {
  .news-grid,
  .news-grid-home { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .news-grid,
  .news-grid-home { grid-template-columns: 1fr; }
}

/* ── NOTICIAS — artículo / detalle ─────────────────────────── */
.news-article-hero {
  position: relative;
  height: clamp(260px, 45vw, 500px);
  overflow: hidden;
  margin-top: calc(var(--header-h) + var(--topbar-h));
}
.news-article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,15,35,.85) 0%, rgba(10,15,35,.3) 60%, transparent 100%);
}
.news-article-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 0;
}
.news-article-hero-content h1 {
  color: var(--white);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  margin-top: .5rem;
}

.news-article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}
.news-article-lead {
  font-size: 1.15rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.7;
  border-left: 4px solid var(--gold);
  padding-left: 1.25rem;
  margin-bottom: 2rem;
}
.news-article-content {
  line-height: 1.75;
  color: var(--text);
}
.news-article-content h2,
.news-article-content h3 { color: var(--navy); margin-top: 2rem; }
.news-article-content ul,
.news-article-content ol { padding-left: 1.5rem; }
.news-article-content li { margin-bottom: .5rem; }
.news-article-content blockquote {
  background: var(--navy-xlt);
  border-left: 4px solid var(--gold);
  padding: 1rem 1.5rem;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--navy);
}
.news-article-content a { color: var(--navy); text-decoration: underline; }

.news-share {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: .9rem;
  color: var(--muted);
  font-weight: 600;
}
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: transform var(--t);
}
.share-btn:hover { transform: scale(1.1); }
.share-fb { background: #1877f2; color: white; }
.share-wa { background: #25D366; color: white; }

/* Sidebar */
.news-sidebar h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--gold);
}
.sidebar-news-item {
  display: flex;
  gap: .75rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
}
.sidebar-news-item img {
  width: 72px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--r-sm);
  flex-shrink: 0;
}
.sidebar-news-item p {
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  margin: .25rem 0;
}
.sidebar-news-item time { font-size: .72rem; color: var(--muted); }
.sidebar-news-item:hover p { color: var(--gold); }

@media (max-width: 900px) {
  .news-article-layout { grid-template-columns: 1fr; }
  .news-sidebar { order: -1; }
}

/* ── PORTAL DE PADRES ────────────────────────────────────────── */
.portal-placeholder-wrap {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3rem;
  align-items: start;
}
.portal-coming-soon {
  background: var(--navy);
  border-radius: var(--r-xl);
  padding: 3rem;
  text-align: center;
  color: var(--white);
}
.portal-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}
.portal-coming-soon h2 {
  color: var(--gold);
  font-size: 2rem;
  margin-bottom: 1rem;
}
.portal-coming-soon p {
  color: rgba(255,255,255,.75);
  max-width: 500px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.portal-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  text-align: center;
}
.portal-feature {
  background: rgba(255,255,255,.07);
  border-radius: var(--r-lg);
  padding: 1rem .75rem;
}
.portal-feature span { font-size: 1.75rem; }
.portal-feature p { font-size: .78rem; color: rgba(255,255,255,.65); margin:.35rem 0 0; }

.portal-alt {
  background: var(--off-white);
  border-radius: var(--r-xl);
  padding: 2rem;
}
.portal-alt h3 {
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}
.portal-alt-options { display: flex; flex-direction: column; gap: 1rem; }
.portal-alt-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 1rem;
  border: 2px solid transparent;
  transition: border-color var(--t);
}
.portal-alt-item:hover { border-color: var(--navy); }
.portal-alt-icon { font-size: 1.5rem; flex-shrink: 0; }
.portal-alt-item strong { display: block; color: var(--navy); font-size: .9rem; }
.portal-alt-item p { margin: .2rem 0 0; font-size: .82rem; color: var(--muted); }

@media (max-width: 900px) {
  .portal-placeholder-wrap { grid-template-columns: 1fr; }
  .portal-features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .portal-coming-soon { padding: 2rem 1.5rem; }
  .portal-features { grid-template-columns: repeat(3, 1fr); }
}

/* ── PAGO DE COLEGIATURA ─────────────────────────────────────── */
.pay-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.pay-table-wrap { overflow-x: auto; margin-top: 1.25rem; }
.pay-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.pay-table th {
  background: var(--navy);
  color: var(--white);
  padding: .75rem 1rem;
  text-align: left;
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.pay-table td {
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.pay-table tr:hover td { background: var(--off-white); }
.pay-btn { min-width: 80px; }
.pay-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}

.pay-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}
.pay-method-card {
  background: var(--off-white);
  border-radius: var(--r-xl);
  padding: 1.5rem;
  text-align: center;
  border: 2px solid transparent;
  transition: border-color var(--t), box-shadow var(--t);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}
.pay-method-card:hover { border-color: var(--navy); box-shadow: var(--shadow-sm); }
.pay-method-logo { height: 40px; display: flex; align-items: center; justify-content: center; }
.pay-method-card p { font-size: .82rem; color: var(--muted); line-height: 1.5; margin: 0; }

.pay-support-box {
  margin-top: 1.5rem;
  background: var(--navy-xlt);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.pay-support-box p { margin: 0; font-size: .9rem; }
.pay-support-box a { color: var(--navy); font-weight: 600; }

@media (max-width: 900px) {
  .pay-layout { grid-template-columns: 1fr; }
  .pay-methods { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .pay-methods { grid-template-columns: 1fr; }
}

/* ── MAPA + HORARIOS (contacto) ─────────────────────────────── */
.map-hours-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}
.map-info { display: flex; flex-direction: column; gap: 1.25rem; }
.map-info-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.map-info-card h3 {
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: .75rem;
}
.hours-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.hours-table td { padding: .4rem 0; }
.hours-table td:last-child { text-align: right; }

@media (max-width: 860px) {
  .map-hours-grid { grid-template-columns: 1fr; }
}

/* ── Footer horas ───────────────────────────────────────────── */
.footer-hours {
  margin-top: 1rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.footer-hours h6 {
  color: rgba(255,255,255,.55);
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.footer-hours p {
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  margin: .15rem 0;
}

