/* =============================================================
   0. FUENTES — Cooper Black
   ============================================================= */
@font-face {
  font-family: 'Cooper Black';
  src: url('assets/fonts/CooperBlack.woff2') format('woff2'),
       url('assets/fonts/CooperBlack.woff')  format('woff'),
       url('assets/fonts/CooperBlack.ttf')   format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* =============================================================
   1. TOKENS
   ============================================================= */
:root {
  /* Paleta institucional Colegio de Jesús */
  --azul:        rgb(47, 59, 123);    /* #2F3B7B — azul principal */
  --celeste:     rgb(51, 77, 152);    /* #334D98 — celeste */
  --amarillo:    rgb(223, 185, 37);   /* #DFB925 — amarillo */
  --amarillo-drk:rgb(190, 157, 28);   /* amarillo oscuro hover */

  --bg:        #F5F6FA;
  --bg-2:      #EAECF4;
  --paper:     #ffffff;
  --ink:       rgb(47, 59, 123);      /* azul principal */
  --ink-soft:  rgb(51, 77, 152);      /* celeste */
  --ink-mute:  rgb(108, 120, 170);
  --accent:    rgb(47, 59, 123);
  --gold:      rgb(223, 185, 37);     /* amarillo institucional */
  --gold-dark: rgb(190, 157, 28);
  --red:       #C84B31;               /* solo alertas urgentes */
  --red-dark:  #a53b24;
  --line:      rgba(47, 59, 123, 0.13);
  --cream:     #F7F8FC;

  /* Cooper Black para titulares; fallbacks web-safe similares */
  --serif: 'Cooper Black', 'Bookman Old Style', 'Playfair Display', Georgia, serif;
  --sans:  'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --mono:  'Space Mono', 'JetBrains Mono', monospace;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 72px;
  --radius: 4px;
  --gutter: clamp(1rem, 5vw, 4rem);
  --container: 1280px;
}

/* =============================================================
   2. RESET & BASE
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; max-width: 68ch; }
h1,h2,h3,h4 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.02em; font-family: var(--serif); }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* =============================================================
   3. UTILITIES
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: #fff;
  z-index: 9999; border-radius: 4px; font-weight: 600; font-size: .875rem;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%; max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section-num {
  font-family: var(--mono);
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 700;
  color: var(--line);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
}

/* =============================================================
   4. REVEAL ANIMATIONS
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
/* DEFENSIVE — critical gotcha A.4.5 */
.reveal[data-split] { opacity: 1; transform: none; }

.reveal-left  { opacity: 0; transform: translateX(-32px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal-left.is-visible { opacity: 1; transform: none; }
.reveal-right { opacity: 0; transform: translateX(32px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal-right.is-visible { opacity: 1; transform: none; }

.reveal-scale { opacity: 0; transform: scale(0.94); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal-scale.is-visible { opacity: 1; transform: none; }

/* Stagger delays */
.stagger-1 { transition-delay: .1s; }
.stagger-2 { transition-delay: .2s; }
.stagger-3 { transition-delay: .3s; }
.stagger-4 { transition-delay: .4s; }
.stagger-5 { transition-delay: .5s; }

/* =============================================================
   5. SPLASH
   ============================================================= */
#splash {
  position: fixed; inset: 0; z-index: 9000;
  background: var(--azul);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  gap: 1.5rem;
  transition: opacity .6s var(--ease-out), clip-path .6s var(--ease-out);
  /* CSS safety net: hide at 4.5s even if JS fails */
  animation: splashSafety .01s 4.5s forwards;
}
#splash.is-out {
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
}
@keyframes splashSafety {
  to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
}

.splash-emblem {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.splash-logo-img {
  width: min(180px, 52vw);
  height: auto;
  /* Invertir a blanco sobre fondo azul marino */
  filter: brightness(0) invert(1);
  animation: fadeUp .8s .3s var(--ease-out) both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.splash-bar-wrap {
  width: min(180px, 50vw);
  height: 2px;
  background: rgba(255,255,255,.15);
  border-radius: 2px;
  overflow: hidden;
}
.splash-bar {
  height: 100%;
  background: var(--amarillo);
  width: 0;
  animation: loadBar 2s .6s var(--ease-soft) forwards;
}
@keyframes loadBar { to { width: 100%; } }

/* =============================================================
   6. NAVIGATION
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.nav.is-solid {
  background: rgba(248,249,250,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.nav-logo {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 44px;
  width: auto;
  display: block;
  /* Blanco sobre hero oscuro */
  filter: brightness(0) invert(1);
  transition: filter .3s var(--ease-out), opacity .3s;
}
.nav.is-solid .nav-logo-img {
  /* Color real sobre nav blanco */
  filter: none;
}
.nav-logo-text {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.15;
  transition: color .3s;
}
.nav-logo-text small {
  display: block;
  font-family: var(--mono);
  font-size: .55rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .75;
}
.nav.is-solid .nav-logo-text { color: var(--ink); }

.nav-links {
  display: none;
  list-style: none;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 960px) { .nav-links { display: flex; } }

.nav-links a {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  transition: color .25s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav.is-solid .nav-links a { color: var(--ink-mute); }
.nav.is-solid .nav-links a:hover { color: var(--ink); }

.nav-cta {
  display: none;
  background: var(--amarillo);
  color: var(--azul) !important;
  padding: .55rem 1.25rem;
  border-radius: 100px;
  font-family: var(--sans) !important;
  font-size: .8rem !important;
  font-weight: 700 !important;
  letter-spacing: .02em !important;
  text-transform: none !important;
  transition: background .25s, transform .2s var(--ease-bounce) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--amarillo-drk) !important; transform: translateY(-1px) !important; }
@media (min-width: 720px) { .nav-cta { display: inline-flex; } }

.nav-burger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
@media (min-width: 960px) { .nav-burger { display: none; } }
.nav-burger span {
  display: block; height: 1.5px;
  background: var(--paper);
  transition: transform .3s var(--ease-out), opacity .3s, background .3s;
}
.nav.is-solid .nav-burger span { background: var(--ink); }
.nav-burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: var(--nav-h) 0 0 0;
  background: var(--ink);
  z-index: 99;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2rem;
  transform: translateX(100%);
  transition: transform .4s var(--ease-out);
}
.nav-mobile.is-open { transform: none; }
.nav-mobile a {
  font-family: var(--serif);
  font-size: 1.75rem;
  color: var(--paper);
  transition: color .25s;
}
.nav-mobile a:hover { color: var(--gold); }
.nav-mobile .nav-mobile-cta {
  margin-top: .5rem;
  background: var(--red);
  color: #fff;
  padding: .75rem 2rem;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
}

/* =============================================================
   7. HERO
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden;
}

.hero-slides {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease-soft);
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.06);
  transition: transform 8s linear;
}
.hero-slide.is-active img { transform: scale(1); }

.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(15,44,89,.9) 0%, rgba(15,44,89,.4) 50%, rgba(15,44,89,.2) 100%),
    linear-gradient(to right, rgba(15,44,89,.3) 0%, transparent 60%);
}

.hero-grain {
  position: absolute; inset: 0; z-index: 2;
  opacity: .04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

.hero-content {
  position: relative; z-index: 3;
  padding-bottom: clamp(3rem, 8vh, 6rem);
  padding-top: calc(var(--nav-h) + 2rem);
  width: 100%;
}

.hero-kicker {
  font-family: var(--mono);
  font-size: clamp(.65rem, 1.5vw, .8rem);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: .75rem;
}
.hero-kicker::before {
  content: '';
  display: block; width: 32px; height: 1px;
  background: var(--gold);
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 8vw, 7rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.03em;
  max-width: 14ch;
  margin-bottom: 1.5rem;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
}
.hero-title .offset {
  display: block;
  padding-left: clamp(1rem, 4vw, 5rem);
}

.hero-sub {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.8);
  max-width: 44ch;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 1rem;
}

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.75rem;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: .9rem; font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .25s var(--ease-bounce), box-shadow .25s var(--ease-out), background .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--amarillo);
  color: var(--azul);
  box-shadow: 0 4px 20px rgba(223,185,37,.4);
  font-weight: 800;
}
.btn-primary:hover {
  background: var(--amarillo-drk);
  box-shadow: 0 8px 28px rgba(223,185,37,.5);
}

.btn-ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,.2); }

.btn-navy {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 4px 20px rgba(15,44,89,.3);
}
.btn-navy:hover { background: var(--ink-soft); box-shadow: 0 8px 28px rgba(15,44,89,.35); }

.btn-gold {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 4px 20px rgba(218,192,163,.4);
}
.btn-gold:hover { background: var(--gold-dark); box-shadow: 0 8px 28px rgba(218,192,163,.5); }

.hero-dots {
  position: absolute; bottom: 2.5rem; right: var(--gutter);
  z-index: 4;
  display: flex; gap: .5rem;
}
.hero-dot {
  width: 24px; height: 2px;
  background: rgba(255,255,255,.35);
  border-radius: 2px;
  cursor: pointer;
  transition: background .3s, width .3s;
  border: 0;
}
.hero-dot.is-active { background: var(--gold); width: 40px; }

.hero-scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: rgba(255,255,255,.5);
  font-family: var(--mono); font-size: .65rem; letter-spacing: .12em; text-transform: uppercase;
  animation: scrollBounce 2.5s ease-in-out infinite;
}
.hero-scroll-hint svg { width: 16px; opacity: .6; }
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* =============================================================
   8. MARQUEE
   ============================================================= */
.marquee-strip {
  background: var(--ink);
  padding: .75rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(218,192,163,.25);
  border-bottom: 1px solid rgba(218,192,163,.25);
}
.marquee-track {
  display: flex; gap: 3rem;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}
.marquee-strip:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  white-space: nowrap;
  display: flex; align-items: center; gap: 1.5rem;
}
.marquee-item::after {
  content: '✦';
  color: var(--gold);
  font-size: .6rem;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =============================================================
   9. SECCIÓN NOSOTROS
   ============================================================= */
.s-nosotros {
  padding: clamp(5rem, 12vh, 9rem) 0;
  position: relative;
  overflow: hidden;
}
.s-nosotros-bg-num {
  position: absolute;
  top: -1rem; left: -.5rem;
  pointer-events: none;
}

.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

.nosotros-collage {
  display: block;
}
.nosotros-collage-main {
  aspect-ratio: 16/7;
  border-radius: 2px;
  overflow: hidden;
}
.nosotros-collage img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-soft);
}
.nosotros-collage-main:hover img,
.nosotros-collage-a:hover img,
.nosotros-collage-b:hover img { transform: scale(1.05); }

.nosotros-label {
  font-family: var(--mono); font-size: .7rem;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: 1rem;
}
.nosotros-title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.8rem);
  color: var(--ink);
  margin-bottom: 1.5rem;
  max-width: 18ch;
}
.nosotros-title em { font-style: italic; color: var(--red); }

.nosotros-text {
  color: var(--ink-mute);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.nosotros-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 2rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 640px) {
  .nosotros-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}
.stat-item { }
.stat-num {
  font-family: var(--mono);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.stat-num span { color: var(--red); }
.stat-label {
  font-size: .8rem;
  color: var(--ink-mute);
  margin-top: .25rem;
}

.nosotros-pilares { list-style: none; }
.nosotros-pilares li {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
  color: var(--ink);
}
.nosotros-pilares li::before {
  content: '—';
  color: var(--gold-dark);
  font-family: var(--mono);
  flex-shrink: 0;
  margin-top: .05em;
}

.nosotros-sedes {
  margin-top: 2rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.sede-chip {
  background: var(--ink);
  color: var(--paper);
  border-radius: 2px;
  padding: .75rem 1.25rem;
}
.sede-chip-num {
  font-family: var(--mono); font-size: .65rem; letter-spacing: .1em;
  color: var(--gold); text-transform: uppercase; margin-bottom: .25rem;
}
.sede-chip-name { font-weight: 700; font-size: .95rem; margin-bottom: .2rem; }
.sede-chip-dir { font-size: .82rem; color: rgba(255,255,255,.65); }

/* =============================================================
   10. SECCIÓN NIVELES (scroll horizontal pinned)
   ============================================================= */
.s-niveles {
  position: relative;
  background: var(--cream);
}
.s-niveles-header {
  padding: clamp(4rem, 10vh, 7rem) 0 2rem;
  text-align: center;
}
.s-niveles-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: var(--ink);
  margin-bottom: .75rem;
}
.s-niveles-sub {
  color: var(--ink-mute);
  max-width: 44ch;
  margin: 0 auto;
  font-size: .95rem;
}

/* Desktop: pinned horizontal */
.niveles-pin-wrap {
  /* set by JS for desktop */
}
.niveles-track {
  display: flex;
}

.nivel-card {
  flex: 0 0 100vw;
  min-height: 80vh;
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center;
  padding: clamp(2rem, 6vw, 5rem) var(--gutter);
  position: relative;
  overflow: hidden;
  transition: none;
}

.nivel-card[data-nivel="inicial"]    { background: #EBF2FA; }
.nivel-card[data-nivel="primaria"]   { background: #FAF6F0; }
.nivel-card[data-nivel="secundaria"] { background: #FBF0ED; }

.nivel-card-bg-text {
  position: absolute;
  right: -2rem; bottom: -3rem;
  font-family: var(--serif);
  font-size: clamp(6rem, 18vw, 16rem);
  font-weight: 700; font-style: italic;
  line-height: 1;
  color: rgba(15,44,89,.05);
  pointer-events: none; user-select: none;
  white-space: nowrap;
}

.nivel-icon-wrap {
  margin-bottom: 2rem;
}
.nivel-svg {
  width: clamp(64px, 10vw, 100px);
  height: auto;
}

.nivel-num {
  font-family: var(--mono); font-size: .7rem;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: .75rem;
}
.nivel-nombre {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.8rem);
  color: var(--ink); margin-bottom: .5rem;
}
.nivel-sub {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  margin-bottom: 1rem;
}
.nivel-card[data-nivel="inicial"]    .nivel-sub { color: #3a7abf; }
.nivel-card[data-nivel="primaria"]   .nivel-sub { color: var(--gold-dark); }
.nivel-card[data-nivel="secundaria"] .nivel-sub { color: var(--red); }

.nivel-edades {
  display: inline-block;
  background: var(--ink); color: #fff;
  font-family: var(--mono); font-size: .7rem;
  padding: .3rem .75rem; border-radius: 100px;
  letter-spacing: .08em; margin-bottom: 1.25rem;
}
.nivel-desc {
  font-size: clamp(.9rem, 1.5vw, 1rem);
  color: var(--ink-mute); line-height: 1.7;
  max-width: 42ch; margin-bottom: 1.5rem;
}
.nivel-materias {
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.nivel-materia {
  font-size: .75rem; font-family: var(--mono);
  padding: .3rem .75rem;
  border: 1px solid var(--line); border-radius: 100px;
  color: var(--ink-mute);
  letter-spacing: .05em;
}

/* Progress bar */
.niveles-progress {
  position: sticky; top: var(--nav-h);
  z-index: 10;
  display: flex; gap: .5rem; justify-content: center;
  padding: .75rem 0;
  background: rgba(248,249,250,.9);
  backdrop-filter: blur(8px);
}
.niveles-progress-item {
  font-family: var(--mono); font-size: .65rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-mute); padding: .3rem .75rem;
  border-radius: 100px;
  border: 1px solid var(--line);
  transition: background .3s, color .3s, border-color .3s;
  cursor: pointer;
  background: transparent;
}
.niveles-progress-item.is-active {
  background: var(--ink); color: #fff; border-color: var(--ink);
}

/* Mobile: swipe */
@media (max-width: 959px) {
  .niveles-track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .niveles-track::-webkit-scrollbar { display: none; }
  .nivel-card { scroll-snap-align: start; }
}

/* =============================================================
   11. SECCIÓN TALLERES
   ============================================================= */
.s-talleres {
  padding: clamp(5rem, 12vh, 9rem) 0;
  background: var(--paper);
  position: relative; overflow: hidden;
}

.talleres-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (min-width: 540px) { .talleres-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .talleres-grid { grid-template-columns: repeat(4, 1fr); } }

.taller-card {
  background: var(--bg);
  border-radius: 2px;
  padding: 2rem 1.5rem;
  border: 1px solid var(--line);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s;
  position: relative;
  overflow: hidden;
}
.taller-card::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ink), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.taller-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(15,44,89,.12);
  border-color: rgba(15,44,89,.2);
}
.taller-card:hover::before { transform: scaleX(1); }

.taller-icon {
  font-size: 2.25rem; margin-bottom: 1.25rem;
  display: block;
}
.taller-nombre {
  font-family: var(--serif); font-size: 1.15rem;
  font-weight: 700; color: var(--ink);
  margin-bottom: .75rem;
}
.taller-desc { font-size: .875rem; color: var(--ink-mute); line-height: 1.65; }

/* =============================================================
   12. SECCIÓN GALERÍA
   ============================================================= */
.s-galeria {
  padding: clamp(4rem, 10vh, 7rem) 0;
  background: var(--ink);
  overflow: hidden;
}

.galeria-header { text-align: center; margin-bottom: 3rem; }
.galeria-label {
  font-family: var(--mono); font-size: .7rem;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .75rem;
}
.galeria-title {
  font-family: var(--serif); font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  color: #fff;
}

.galeria-rows { display: flex; flex-direction: column; gap: 1rem; }

.galeria-row {
  display: flex; gap: 1rem;
  width: max-content;
}
.galeria-row--fwd  { animation: galleryFwd 35s linear infinite; }
.galeria-row--rev  { animation: galleryRev 42s linear infinite; }
.galeria-row--slow { animation: galleryFwd 55s linear infinite; }

.galeria-row:hover { animation-play-state: paused; }

@keyframes galleryFwd { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes galleryRev { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.galeria-img {
  flex-shrink: 0;
  width: clamp(220px, 28vw, 360px);
  aspect-ratio: 4/3;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.galeria-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-soft), filter .4s;
  filter: saturate(.85);
}
.galeria-img:hover img { transform: scale(1.06); filter: saturate(1.1); }

/* =============================================================
   13. SECCIÓN ADMISIONES
   ============================================================= */
.s-admisiones {
  padding: clamp(5rem, 12vh, 9rem) 0;
  background: var(--cream);
  position: relative; overflow: hidden;
}
.s-admisiones::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(218,192,163,.3) 0%, transparent 70%);
  pointer-events: none;
}

.admisiones-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 960px) {
  .admisiones-inner { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
}

.admisiones-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--azul); color: #fff;
  font-family: var(--mono); font-size: .68rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .4rem 1rem; border-radius: 100px;
  margin-bottom: 1.25rem;
}
.admisiones-badge::before { content: '●'; font-size: .5rem; animation: blink 1.5s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.admisiones-title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.8rem);
  color: var(--ink); margin-bottom: 1rem;
}
.admisiones-text {
  color: var(--ink-mute); font-size: 1rem; line-height: 1.75; margin-bottom: 2rem;
}

.requisitos { list-style: none; margin-bottom: 2.5rem; }
.requisitos li {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .65rem 0; border-bottom: 1px solid var(--line);
  font-size: .9rem; color: var(--ink);
}
.req-num {
  font-family: var(--mono); font-size: .65rem;
  color: var(--gold-dark); width: 2ch; flex-shrink: 0;
  padding-top: .1em;
}

/* ── REQUISITOS ACCORDIONS ───────────────────────────────── */
.req-section-title {
  font-family: var(--mono); font-size: .7rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 1rem;
}

.req-accordions { margin-bottom: 2rem; }

.req-acc {
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: .5rem;
  overflow: hidden;
  transition: box-shadow .2s;
}
.req-acc.is-open { box-shadow: 0 2px 12px rgba(15,44,89,.07); }

.req-acc-hd {
  width: 100%; display: flex; align-items: center; gap: .75rem;
  padding: .85rem 1rem;
  background: none; border: none; cursor: pointer;
  text-align: left; color: var(--ink);
  font-family: var(--sans); font-size: .88rem; font-weight: 600;
  transition: background .15s;
}
.req-acc-hd:hover { background: rgba(15,44,89,.04); }
.req-acc--alert .req-acc-hd { color: #b45309; }

.req-acc-icon {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: rgba(15,44,89,.06); color: var(--ink-soft);
}
.req-acc--alert .req-acc-icon { background: rgba(180,83,9,.1); color: #b45309; }

.req-acc-label { flex: 1; }

.req-acc-arrow {
  display: flex; align-items: center; flex-shrink: 0;
  color: var(--ink-mute);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.req-acc.is-open .req-acc-arrow { transform: rotate(180deg); }

.req-badge-alert {
  display: inline-block;
  font-size: .6rem; font-family: var(--mono); letter-spacing: .08em;
  text-transform: uppercase; font-weight: 700;
  background: #fef3c7; color: #92400e;
  border: 1px solid #fcd34d;
  padding: .1em .5em; border-radius: 99px;
  margin-left: .5rem; vertical-align: middle;
}

.req-acc-body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .28s cubic-bezier(.4,0,.2,1);
}
.req-acc.is-open .req-acc-body { grid-template-rows: 1fr; }
.req-acc-body > * { overflow: hidden; }

.req-list {
  list-style: none;
  padding: 0 1rem .75rem 1rem;
}
.req-list li {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .55rem 0; border-bottom: 1px solid var(--line);
  font-size: .875rem; color: var(--ink);
}
.req-list li:last-child { border-bottom: none; }

.req-download {
  color: var(--gold-dark); font-weight: 600;
  text-decoration: none; white-space: nowrap;
}
.req-download:hover { text-decoration: underline; }

.req-tag {
  display: inline-block;
  font-size: .6rem; font-family: var(--mono); letter-spacing: .06em;
  text-transform: uppercase; background: #dbeafe; color: #1e40af;
  border-radius: 99px; padding: .1em .5em; margin-left: .4rem;
  vertical-align: middle;
}

.req-acc-note {
  padding: .5rem 1rem .25rem;
  font-size: .82rem; color: var(--ink-mute); font-style: italic;
}

/* btn pack */
.btn-pack {
  background: var(--ink);
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-pack:hover { background: var(--gold); color: var(--ink); }

.admisiones-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }

.btn-wa {
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,.35);
}
.btn-wa:hover { background: #1eb856; box-shadow: 0 8px 28px rgba(37,211,102,.4); }

.admisiones-visual {
  background: var(--ink);
  border-radius: 2px;
  padding: 2.5rem 2rem;
  color: #fff;
}
.admisiones-visual-label {
  font-family: var(--mono); font-size: .65rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1.25rem;
}
.admisiones-visual-num {
  font-family: var(--serif); font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700; line-height: 1; margin-bottom: .25rem;
}
.admisiones-visual-desc {
  font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 2rem;
}
.admisiones-visual hr {
  border: 0; border-top: 1px solid rgba(255,255,255,.12); margin-bottom: 1.5rem;
}
.adm-info-row {
  display: flex; flex-direction: column; gap: 1.25rem;
}
.adm-info-item { }
.adm-info-key {
  font-family: var(--mono); font-size: .65rem;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--gold); margin-bottom: .2rem;
}
.adm-info-val { font-size: .9rem; color: rgba(255,255,255,.85); }

/* =============================================================
   14. SECCIÓN CONTACTO
   ============================================================= */
.s-contacto {
  padding: clamp(5rem, 12vh, 9rem) 0;
  background: var(--bg);
  position: relative;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 960px) {
  .contacto-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
}

.contacto-form-wrap { }
.form-title {
  font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--ink); margin-bottom: .75rem;
}
.form-sub { color: var(--ink-mute); font-size: .95rem; margin-bottom: 2rem; max-width: 38ch; }

.form-step {
  display: flex; gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}
.form-step-num {
  font-family: var(--mono); font-size: .65rem;
  color: var(--gold-dark);
  padding-top: .85rem;
  flex-shrink: 0; width: 2.5ch;
}
.form-field { flex: 1; }
.form-field label {
  display: block; font-size: .8rem; font-weight: 600;
  color: var(--ink-mute); margin-bottom: .4rem;
  letter-spacing: .02em;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans); font-size: .9rem;
  transition: border-color .25s, box-shadow .25s;
  appearance: none;
  -webkit-appearance: none;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15,44,89,.1);
}
.form-field textarea { resize: vertical; min-height: 100px; }

.form-submit { margin-top: 1.5rem; }

.contacto-info { }
.contacto-info-title {
  font-family: var(--serif); font-size: 1.25rem;
  color: var(--ink); margin-bottom: 1.5rem;
}
.info-block {
  padding: 1.25rem 0; border-bottom: 1px solid var(--line);
}
.info-block-label {
  font-family: var(--mono); font-size: .65rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: .35rem;
}
.info-block-val {
  font-size: .95rem; color: var(--ink); font-weight: 500;
}
.info-block-val a { transition: color .2s; }
.info-block-val a:hover { color: var(--red); }

.map-wrap {
  margin-top: 2rem;
  border-radius: 2px; overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16/9;
}
.map-wrap iframe { width: 100%; height: 100%; display: block; border: 0; }

/* =============================================================
   15. FOOTER
   ============================================================= */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  overflow: hidden;
  position: relative;
}

.footer-brand-strip {
  padding: 2.5rem 0 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand-text {
  font-family: var(--serif);
  font-size: clamp(3rem, 10vw, 9rem);
  font-weight: 700;
  color: rgba(255,255,255,.06);
  white-space: nowrap;
  letter-spacing: -0.03em;
  line-height: .9;
  padding-bottom: .5rem;
  animation: marqueeScroll 20s linear infinite;
  width: max-content;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 3.5rem 0 2.5rem;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
}

.footer-logo {
  font-family: var(--serif); font-size: 1.2rem;
  font-weight: 700; color: #fff; margin-bottom: .75rem;
}
.footer-tagline {
  font-style: italic; font-family: var(--serif);
  color: var(--gold); font-size: .9rem; margin-bottom: 1rem;
}
.footer-desc { font-size: .85rem; max-width: 32ch; line-height: 1.65; }

.footer-col-title {
  font-family: var(--mono); font-size: .65rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { font-size: .875rem; transition: color .2s; }
.footer-links a:hover { color: #fff; }

.footer-social { display: flex; gap: .75rem; margin-top: 1.25rem; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  transition: background .25s, border-color .25s;
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.25rem 0;
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: center;
}
.footer-copy { font-size: .78rem; }
.footer-back {
  font-family: var(--mono); font-size: .7rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold);
  background: none; border: 0; cursor: pointer;
  transition: color .2s; display: flex; align-items: center; gap: .4rem;
}
.footer-back:hover { color: #fff; }

/* =============================================================
   16. CURSOR PERSONALIZADO
   ============================================================= */
.cursor {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9900;
  opacity: 0;
  transition: opacity .3s;
}
.cursor.is-ready { opacity: 1; }
.cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform .1s;
}
.cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width .25s var(--ease-out), height .25s var(--ease-out), border-color .25s;
}
.cursor.on-cta .cursor-ring {
  width: 56px; height: 56px;
  border-color: var(--red);
}
.cursor-label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--mono); font-size: .55rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); white-space: nowrap;
  opacity: 0; transition: opacity .2s;
}
.cursor.on-cta .cursor-label { opacity: 1; }

/* Hide custom cursor on touch */
@media (hover: none) {
  .cursor { display: none !important; }
}

/* =============================================================
   17. GRANO ORGÁNICO DE FONDO
   ============================================================= */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  opacity: .025;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 256px;
}

/* =============================================================
   18. SECTION HEADERS COMUNES
   ============================================================= */
.section-header { margin-bottom: 3rem; }
.section-kicker {
  font-family: var(--mono); font-size: .7rem;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: .75rem;
  display: flex; align-items: center; gap: .75rem;
}
.section-kicker::before {
  content: '';
  display: block; width: 24px; height: 1px;
  background: var(--gold-dark);
}
.section-title {
  font-family: var(--serif); font-size: clamp(1.75rem, 4vw, 2.8rem);
  color: var(--ink);
}
.section-title em { font-style: italic; color: var(--red); }

/* Talleres header adjustments */
.s-talleres .section-header { text-align: center; }
.s-talleres .section-kicker { justify-content: center; }
.s-talleres .section-kicker::before { display: none; }

/* =============================================================
   19. WHATSAPP FLOTANTE
   ============================================================= */
.wa-float {
  position: fixed; bottom: 1.75rem; right: 1.75rem;
  z-index: 200;
  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,.45);
  transition: transform .3s var(--ease-bounce), box-shadow .3s;
  color: #fff;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37,211,102,.55);
}
.wa-float svg { width: 28px; }

/* =============================================================
   20. SECTION DIVIDER
   ============================================================= */
.divider {
  height: 1px; background: var(--line);
  margin: 0; border: 0;
}
