/* ==========================================================================
   Escuela Particular Latinoamericana — styles.css
   Concepto: "cuaderno escolar" — papel cuadriculado, rojo institucional,
   tipografía grotesca con acentos serif en cursiva.
   ========================================================================== */

:root {
  --paper: #fbfaf6;
  --paper-2: #f2efe7;
  --ink: #15110f;
  --ink-2: #4a4440;
  --mute: #807872;
  --red: #e10600;
  --red-deep: #b30500;
  --yellow: #ffc93c;
  --blue: #1d3fbf;
  --grid: rgba(29, 63, 191, 0.075);
  --radius: 22px;
  --display: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--display); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
h1, h2, h3 { margin: 0; line-height: 1; letter-spacing: -0.03em; font-weight: 700; }
p { margin: 0; }
button { font: inherit; }
::selection { background: var(--red); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; gap: .5em; justify-content: center;
  padding: 1em 1.6em; border-radius: 999px; border: 1.5px solid var(--bg);
  background: var(--bg); color: var(--fg); text-decoration: none; cursor: pointer;
  font-weight: 600; font-size: 1rem; line-height: 1; white-space: nowrap;
  transition: transform .35s var(--ease), background .25s, color .25s, box-shadow .35s var(--ease);
  will-change: transform;
}
.btn:hover { box-shadow: 0 10px 30px -10px rgba(225, 6, 0, .55); }
.btn:active { transform: scale(.97); }
.btn-red { --bg: var(--red); }
.btn-red:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn-ink { --bg: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: currentColor; }
.btn-ghost:hover { background: var(--ink); color: #fff; box-shadow: none; }
.btn-white { --bg: #fff; --fg: var(--red); }
.btn-sm { padding: .75em 1.2em; font-size: .9rem; }
.btn-lg { padding: 1.25em 2.2em; font-size: 1.15rem; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; opacity: .75; }
.link-btn:hover { opacity: 1; }

.kicker {
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em;
  color: var(--red); margin-bottom: 1.2rem; display: inline-flex; align-items: center; gap: .6em;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.kicker.light { color: #fff; }

.section-head { padding: 0 var(--gutter); margin-bottom: clamp(40px, 6vw, 80px); }
.section-head h2 { font-size: clamp(2.4rem, 6.2vw, 5.4rem); }
.section-head em { color: var(--red); }

/* ---------- Splash (doble red de seguridad: CSS 4.5s + JS) ---------- */
.splash {
  position: fixed; inset: 0; z-index: 1000; background: var(--red); color: #fff;
  display: grid; place-items: center;
  animation: splashSafety .6s ease 4.5s forwards;
}
.splash.is-out { opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; }
@keyframes splashSafety { to { opacity: 0; visibility: hidden; } }
.splash-inner { display: grid; justify-items: center; gap: 18px; }
.splash-logo { width: 92px; height: auto; animation: splashLogo 1s var(--ease) both; }
@keyframes splashLogo { from { transform: translateY(20px) scale(.8); opacity: 0; } }
.splash-count { font-size: 1.1rem; font-weight: 700; letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.splash-bar { width: 140px; height: 2px; background: rgba(255,255,255,.3); overflow: hidden; }
.splash-bar span { display: block; height: 100%; background: #fff; animation: splashBar 1.5s var(--ease) forwards; transform-origin: left; transform: scaleX(0); }
@keyframes splashBar { to { transform: scaleX(1); } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter); transition: background .3s, box-shadow .3s, padding .3s;
}
.nav.is-scrolled { background: rgba(251, 250, 246, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(0,0,0,.06); padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 30px; height: auto; }
.brand-text { font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; line-height: 1; }
.brand-text small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: 3px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .95rem; position: relative; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid;
  grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px;
  padding: 120px var(--gutter) 80px; overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 40%, transparent 85%);
          mask-image: radial-gradient(ellipse at 60% 40%, #000 40%, transparent 85%);
}
.hero-grid-bg::before { /* margen rojo del cuaderno */
  content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--gutter) - 18px); width: 2px; background: rgba(225, 6, 0, .28);
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9rem; background: #fff; border: 1px solid rgba(0,0,0,.08); padding: 8px 14px; border-radius: 999px; margin-bottom: 28px; box-shadow: 0 6px 20px -12px rgba(0,0,0,.25); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(225, 6, 0, .6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(225, 6, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(225, 6, 0, 0); } }
.hero-title { font-size: clamp(3rem, 7.4vw, 7.2rem); font-weight: 800; letter-spacing: -.045em; line-height: .92; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; animation: lineUp 1.1s var(--ease) both; }
.hero-title .line:nth-child(2) > span { animation-delay: .1s; }
.hero-title .line:nth-child(3) > span { animation-delay: .2s; }
.hero-title em { color: var(--red); font-size: 1.08em; letter-spacing: -.02em; }
.is-loading .hero-title .line > span { animation-play-state: paused; }
@keyframes lineUp { from { transform: translateY(105%); } }
.hero-lead { max-width: 46ch; font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--ink-2); margin: 30px 0 36px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-art { position: relative; height: min(78vh, 680px); }
.big-30 {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: clamp(16rem, 34vw, 34rem); line-height: .8; letter-spacing: -.08em;
  color: transparent; -webkit-text-stroke: 2px var(--red); user-select: none;
}
.big-30 span { display: inline-block; animation: numIn 1.4s var(--ease) both .2s; }
.big-30 span:last-child { animation-delay: .32s; color: var(--red); -webkit-text-stroke: 0; }
@keyframes numIn { from { transform: translateY(30%) rotate(-8deg); opacity: 0; } }
.float-card { position: absolute; margin: 0; border-radius: 18px; overflow: hidden; background: #fff; padding: 8px; box-shadow: 0 30px 60px -25px rgba(20, 10, 5, .45); transition: transform .6s var(--ease); }
.float-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.fc-1 { width: 34%; aspect-ratio: 1; top: 4%; left: 2%; rotate: -6deg; animation: cardIn 1s var(--ease) both .5s; }
.fc-2 { width: 32%; aspect-ratio: 3/4; bottom: 6%; right: 4%; rotate: 5deg; animation: cardIn 1s var(--ease) both .65s; }
.fc-3 { width: 38%; aspect-ratio: 4/3; bottom: 2%; left: 10%; rotate: 3deg; animation: cardIn 1s var(--ease) both .8s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(40px) scale(.9); } }
.badge { position: absolute; top: 2%; right: 6%; width: 150px; height: 150px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; animation: cardIn 1s var(--ease) both .95s; }
.badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.badge text { fill: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .18em; }
.badge img { width: 34px; height: auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.is-loading .hero-art * { animation-play-state: paused; }

.scroll-hint { position: absolute; left: 50%; bottom: 22px; width: 26px; height: 42px; border: 2px solid var(--ink); border-radius: 14px; translate: -50% 0; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; background: var(--red); border-radius: 2px; translate: -50% 0; animation: hint 1.6s infinite; }
@keyframes hint { 60% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { background: var(--red); color: #fff; overflow: hidden; padding: 22px 0; rotate: -1.5deg; margin: 20px -20px; position: relative; z-index: 2; }
.marquee-track { display: flex; width: max-content; gap: 34px; align-items: center; animation: marquee 32s linear infinite; font-size: clamp(1.6rem, 3.4vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; white-space: nowrap; }
.marquee-track i { font-style: normal; color: var(--yellow); font-size: .7em; }
.marquee-track em { font-size: 1.1em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Manifiesto ---------- */
.manifesto { padding: clamp(100px, 14vw, 180px) var(--gutter); max-width: 1300px; margin: 0 auto; }
.manifesto-text { font-size: clamp(1.7rem, 3.6vw, 3.3rem); font-weight: 600; line-height: 1.18; letter-spacing: -.025em; }
.manifesto-text .w { opacity: .14; transition: opacity .4s; }
.manifesto-text .w.on { opacity: 1; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(60px, 8vw, 110px); border-top: 2px solid var(--ink); }
.stat { padding-top: 26px; }
.stat strong { display: block; font-size: clamp(4rem, 9vw, 8rem); font-weight: 800; line-height: .9; letter-spacing: -.06em; color: var(--red); font-variant-numeric: tabular-nums; }
.stat p { margin-top: 10px; color: var(--ink-2); max-width: 22ch; }

.stat strong { white-space: nowrap; }
.results {
  margin-top: clamp(60px, 8vw, 100px); display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 70px); align-items: center;
  background: var(--yellow); border-radius: 36px; padding: clamp(28px, 5vw, 64px); position: relative; overflow: hidden;
}
.results::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background-image: linear-gradient(var(--ink) 1px, transparent 1px), linear-gradient(90deg, var(--ink) 1px, transparent 1px); background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000); mask-image: linear-gradient(90deg, transparent 40%, #000); }
.results-medal { position: relative; z-index: 1; width: clamp(150px, 18vw, 230px); aspect-ratio: 1; border-radius: 50%; background: var(--red); color: #fff;
  display: grid; place-items: center; align-content: center; font-weight: 800; font-size: clamp(5rem, 9vw, 8rem); line-height: .8; letter-spacing: -.06em;
  box-shadow: 0 0 0 10px rgba(255,255,255,.55), 0 30px 50px -20px rgba(179, 5, 0, .6); rotate: -8deg; }
.results-medal span { font-size: .26em; letter-spacing: .05em; margin-bottom: .2em; }
.results-copy { position: relative; z-index: 1; }
.results .kicker { color: var(--red-deep); }
.results h2 { font-size: clamp(1.9rem, 3.6vw, 3.3rem); letter-spacing: -.035em; line-height: 1.02; margin-bottom: 18px; }
.results h2 em { color: var(--red-deep); }
.results-copy > p:not(.kicker) { color: var(--ink-2); max-width: 58ch; font-size: 1.05rem; }
@media (max-width: 700px) { .results { grid-template-columns: 1fr; justify-items: start; } }

/* ---------- Niveles (tarjetas apiladas con sticky) ---------- */
.levels { padding: clamp(60px, 8vw, 120px) 0; background: var(--paper-2); border-radius: 40px 40px 0 0; }
.stack { padding: 0 var(--gutter); display: grid; gap: 30px; }
.level-card {
  position: sticky; top: 100px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 60px);
  background: #fff; border-radius: 32px; padding: clamp(24px, 4vw, 56px);
  min-height: min(76vh, 620px);
  box-shadow: 0 -10px 50px -30px rgba(0,0,0,.25);
  border-top: 10px solid var(--tint);
  transform-origin: center top;
}
.level-card:nth-child(2) { top: 120px; }
.level-card:nth-child(3) { top: 140px; }
.level-info { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.level-num { font-family: var(--serif); font-style: italic; font-size: 2.4rem; color: var(--tint); line-height: 1; }
.level-card h3 { font-size: clamp(2.2rem, 4.8vw, 4.4rem); letter-spacing: -.045em; }
.level-age { font-weight: 700; color: var(--red); }
.level-info > p:not(.level-age) { color: var(--ink-2); max-width: 48ch; }
.chips { list-style: none; padding: 0; margin: 4px 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 14px; border-radius: 999px; background: var(--paper-2); font-size: .88rem; font-weight: 600; }
.level-info .btn { margin-top: auto; }
.level-photo { margin: 0; border-radius: 22px; overflow: hidden; min-height: 280px; }
.level-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.level-card:hover .level-photo img { transform: scale(1.05); }

/* ---------- Por qué ---------- */
.why { padding: clamp(100px, 12vw, 160px) 0; }
.why-grid { padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1.5px solid var(--ink); }
.why-card { padding: 36px 30px 40px 0; border-bottom: 1.5px solid var(--ink); position: relative; }
.why-card:not(:nth-child(3n)) { border-right: 1.5px solid var(--ink); }
.why-card:not(:nth-child(3n+1)) { padding-left: 30px; }
.why-card svg { width: 46px; height: 46px; fill: none; stroke: var(--red); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; margin-bottom: 26px; transition: transform .5s var(--ease); }
.why-card:hover svg { transform: rotate(-10deg) scale(1.12); }
.why-card h3 { font-size: 1.55rem; margin-bottom: 12px; letter-spacing: -.03em; }
.why-card p { color: var(--ink-2); }

.life { padding: 0 var(--gutter); margin-top: clamp(70px, 9vw, 120px); display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(120px, 14vw, 190px); gap: 14px; }
.life figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; }
.life img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.life figure:hover img { transform: scale(1.06); }
.life figcaption { position: absolute; left: 14px; bottom: 14px; background: #fff; padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 700; }
.life-a { grid-column: 1 / 7; grid-row: span 3; }
.life-b { grid-column: 7 / 10; grid-row: span 2; }
.life-c { grid-column: 10 / 13; grid-row: span 2; }
.life-d { grid-column: 7 / 9; grid-row: span 1; }
.life-e { grid-column: 9 / 13; grid-row: span 1; }

/* ---------- Historia ---------- */
.history { background: var(--red); color: #fff; position: relative; }
.history-pin { min-height: 100svh; display: grid; align-content: center; padding: 100px var(--gutter); position: relative; overflow: hidden; }
.history-pin::after { /* cuadrícula blanca sutil */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .09;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 40px 40px;
}
.odometer { font-size: clamp(6rem, 25vw, 24rem); font-weight: 800; line-height: .85; letter-spacing: -.07em; font-variant-numeric: tabular-nums; margin: 10px 0 30px -0.05em; }
.history-lines { position: relative; min-height: 6.5em; max-width: 34ch; font-size: clamp(1.25rem, 2.3vw, 2rem); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.hl { position: absolute; inset: 0 auto auto 0; opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s var(--ease); }
.hl.is-on { opacity: 1; transform: none; }
.hl em { color: var(--yellow); font-size: 1.1em; }
.history-bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 50px; height: 3px; background: rgba(255,255,255,.25); }
.history-bar span { display: block; height: 100%; width: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.history-next { padding: 40px var(--gutter) clamp(100px, 12vw, 160px); text-align: center; }
.history-next p { font-size: 1.1rem; opacity: .85; }
.history-next h2 { font-size: clamp(3rem, 9vw, 8.5rem); letter-spacing: -.05em; margin: 10px 0 40px; }
.history-next em { color: var(--yellow); }
/* sin JS/GSAP: mostrar todo el texto */
.no-gsap .hl { position: static; opacity: 1; transform: none; margin-bottom: .6em; }
.no-gsap .history-lines { min-height: 0; }

/* ---------- Admisión ---------- */
.admission { padding: clamp(100px, 12vw, 160px) 0; }
.steps { list-style: none; margin: 0; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { background: #fff; border-radius: var(--radius); padding: 30px 26px 34px; border: 1.5px solid rgba(0,0,0,.08); position: relative; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; }
.step:hover { transform: translateY(-8px); box-shadow: 0 30px 50px -30px rgba(225, 6, 0, .5); border-color: var(--red); }
.step span { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; font-size: 1.4rem; margin-bottom: 40px; }
.step:nth-child(2) span { background: var(--yellow); color: var(--ink); }
.step:nth-child(3) span { background: var(--blue); }
.step:nth-child(4) span { background: var(--ink); }
.step h3 { font-size: 1.35rem; margin-bottom: 10px; letter-spacing: -.02em; }
.step p { color: var(--ink-2); font-size: .98rem; }

/* ---------- Formulario ---------- */
.reserve { margin: 0 var(--gutter); border-radius: 40px; overflow: hidden; display: grid; grid-template-columns: .85fr 1.15fr; background: #fff; box-shadow: 0 50px 100px -60px rgba(0,0,0,.4); }
.reserve-side { background: var(--ink); color: #fff; padding: clamp(36px, 5vw, 70px); position: relative; overflow: hidden; }
.reserve-side h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); letter-spacing: -.04em; margin-bottom: 22px; }
.reserve-side em { color: var(--yellow); }
.reserve-side > p:not(.kicker) { color: rgba(255,255,255,.75); max-width: 40ch; }
.reserve-points { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 14px; position: relative; z-index: 1; }
.reserve-points li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.reserve-points li::before { content: "✓"; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--red); font-size: .8rem; flex: none; }
.reserve-logo { position: absolute; right: -30px; bottom: -40px; width: 220px; opacity: .07; }

.form { padding: clamp(30px, 5vw, 64px); position: relative; }
.form-progress { display: flex; gap: 8px; margin-bottom: 34px; }
.fp { flex: 1; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--mute); padding-top: 12px; border-top: 4px solid var(--paper-2); transition: color .3s, border-color .3s; }
.fp.is-on { color: var(--ink); border-color: var(--red); }
.fstep { border: 0; padding: 0; margin: 0; display: none; }
.fstep.is-on { display: block; animation: stepIn .5s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(20px); } }
.fstep legend { font-size: 1.6rem; font-weight: 700; letter-spacing: -.03em; margin-bottom: 24px; padding: 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > span { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 14px 16px; border-radius: 14px; border: 1.5px solid #e4e0d8; background: var(--paper);
  transition: border-color .2s, box-shadow .2s, background .2s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); background: #fff; box-shadow: 0 0 0 4px rgba(225, 6, 0, .12); }
.field .invalid, .field input.invalid, .field select.invalid { border-color: var(--red); background: #fff5f4; }
.field textarea { resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); margin: 6px 0 10px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--red); margin-top: 2px; flex: none; }
.check.invalid span { color: var(--red); }
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.form-error { color: var(--red); font-weight: 600; margin-top: 14px; min-height: 1.4em; }
.form-done { text-align: center; padding: 40px 0; animation: stepIn .5s var(--ease); }
.form-done img { width: 50px; margin: 0 auto 20px; }
.form-done h3 { font-size: 2rem; margin-bottom: 12px; }
.form-done p { color: var(--ink-2); max-width: 42ch; margin: 0 auto 28px; }
.done-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(100px, 12vw, 160px) 0 60px; display: grid; grid-template-columns: .8fr 1.2fr; align-items: start; }
.faq .section-head { position: sticky; top: 110px; }
.faq-list { padding: 0 var(--gutter) 0 0; }
.faq details { border-bottom: 1.5px solid var(--ink); }
.faq details:first-child { border-top: 1.5px solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 50px 26px 0; font-size: clamp(1.15rem, 1.8vw, 1.45rem); font-weight: 700; letter-spacing: -.02em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); font-size: 1.4rem; font-weight: 500; transition: transform .4s var(--ease), background .3s, color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--red); color: #fff; }
.faq details p { padding: 0 50px 28px 0; color: var(--ink-2); max-width: 62ch; }

/* ---------- Ubicación ---------- */
.location { padding: 40px var(--gutter) 0; display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; }
.location-card { background: #fff; border-radius: 32px; padding: clamp(28px, 4vw, 56px); border: 1.5px solid rgba(0,0,0,.08); }
.location-card h2 { font-size: clamp(2.2rem, 4.4vw, 3.8rem); letter-spacing: -.04em; margin-bottom: 30px; }
.location-card h2 em { color: var(--red); }
.location-data { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 16px; }
.location-data li { display: grid; gap: 2px; font-weight: 600; font-size: 1.05rem; overflow-wrap: anywhere; }
.location-data span { font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; color: var(--mute); font-weight: 700; }
.location-data a { text-decoration: none; border-bottom: 2px solid var(--red); }
.location-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.location-map { position: relative; border-radius: 32px; overflow: hidden; min-height: 480px; background: #eef0ed; border: 1.5px solid rgba(0,0,0,.08); box-shadow: 0 40px 80px -50px rgba(20, 10, 5, .45); isolation: isolate; }
.map { position: absolute; inset: 0; z-index: 0; background: #eef0ed; font-family: var(--display); }
.map .leaflet-tile-pane { filter: grayscale(1) sepia(.22) contrast(.92) brightness(1.06); }
.map::after { /* viñeta suave */
  content: ""; position: absolute; inset: 0; z-index: 400; pointer-events: none;
  background: radial-gradient(ellipse at 50% 55%, transparent 55%, rgba(251, 250, 246, .55) 100%);
}
.map-fallback { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; text-decoration: none; padding: 20px;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 32px 32px; }
.map-fallback img { width: 40px; margin-bottom: 6px; }
.map-fallback strong { font-size: 1.2rem; border-bottom: 2px solid var(--red); }
.map-fallback span { color: var(--mute); font-size: .9rem; }
.map-chip { position: absolute; top: 18px; left: 18px; z-index: 500; display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 9px 14px; border-radius: 999px; font-weight: 700; font-size: .85rem; box-shadow: 0 8px 24px -12px rgba(0,0,0,.3); }
.map-actions { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 500; display: flex; gap: 10px; flex-wrap: wrap; }
.map-btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; font-size: .92rem; padding: 12px 18px; border-radius: 999px; box-shadow: 0 12px 30px -12px rgba(0,0,0,.5); transition: transform .3s var(--ease), background .2s; }
.map-btn:hover { transform: translateY(-2px); background: var(--red); }
.map-btn svg { width: 18px; height: 18px; fill: currentColor; }
.map-btn-light { background: rgba(255,255,255,.94); color: var(--ink); }
.map-btn-light:hover { background: #fff; color: var(--red); }

/* Marcador personalizado */
.school-pin { position: relative; width: 64px; height: 80px; }
.school-pin .pin-body { position: absolute; left: 50%; top: 0; width: 58px; height: 58px; translate: -50% 0; border-radius: 50% 50% 50% 4px; rotate: -45deg; background: var(--red); border: 3px solid #fff; box-shadow: 0 14px 30px -8px rgba(179, 5, 0, .7); display: grid; place-items: center; }
.school-pin .pin-body img { width: 24px; height: auto; rotate: 45deg; }
.school-pin .pin-pulse { position: absolute; left: 50%; bottom: 0; width: 22px; height: 10px; translate: -50% 0; border-radius: 50%; background: rgba(225, 6, 0, .35); }
.school-pin .pin-pulse::before, .school-pin .pin-pulse::after { content: ""; position: absolute; inset: -14px -24px; border-radius: 50%; border: 2px solid rgba(225, 6, 0, .5); animation: pinPulse 2.4s ease-out infinite; }
.school-pin .pin-pulse::after { animation-delay: 1.2s; }
@keyframes pinPulse { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.school-label { position: absolute; left: 50%; bottom: 92px; translate: -50% 0; white-space: nowrap; background: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: 0 16px 34px -14px rgba(0,0,0,.4); text-align: center; line-height: 1.2; }
.school-label strong { display: block; font-size: .9rem; letter-spacing: -.01em; color: var(--ink); }
.school-label span { font-size: .75rem; color: var(--mute); font-weight: 600; }
.school-label::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: #fff; translate: -50% 0; rotate: 45deg; }
.leaflet-container a.leaflet-control-zoom-in, .leaflet-container a.leaflet-control-zoom-out { width: 38px; height: 38px; line-height: 38px; font-size: 20px; color: var(--ink); }
.leaflet-touch .leaflet-bar, .leaflet-bar { border: 0 !important; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 26px -12px rgba(0,0,0,.35) !important; }
.leaflet-top.leaflet-right { top: 8px; right: 8px; }
.leaflet-control-attribution { font-size: 10px; background: rgba(255,255,255,.75) !important; border-radius: 8px 0 0 0; }
@media (max-width: 900px) {
  .location { grid-template-columns: 1fr; }
  .location-map { min-height: 400px; }
  .school-label { bottom: 88px; }
  .map-btn { flex: 1 1 auto; justify-content: center; font-size: .82rem; padding: 11px 14px; }
  .map-actions { left: 12px; right: 12px; bottom: 12px; gap: 8px; }
  .location-ctas .btn { flex: 1 1 160px; }
}

/* ---------- CTA final ---------- */
.final { position: relative; text-align: center; padding: clamp(110px, 14vw, 200px) var(--gutter); overflow: hidden; }
.final-logo { position: absolute; left: 50%; top: 50%; width: min(70vw, 520px); translate: -50% -50%; opacity: .06; pointer-events: none; }
.final h2 { font-size: clamp(2.6rem, 7vw, 6.4rem); letter-spacing: -.05em; margin-bottom: 46px; position: relative; }
.final em { color: var(--red); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #fff; padding: 80px var(--gutter) 30px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; gap: 18px; align-items: flex-start; }
.footer-brand img { width: 44px; height: auto; }
.footer-brand p { color: rgba(255,255,255,.7); }
.footer-brand strong { color: #fff; }
.footer h4 { margin: 0 0 14px; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--yellow); }
.footer-col p { color: rgba(255,255,255,.75); margin-bottom: 6px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.socials { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 30px; margin-top: 30px; border-top: 1px solid rgba(255,255,255,.15); font-size: .85rem; color: rgba(255,255,255,.55); }

/* ---------- Botón flotante ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; align-items: center; gap: 10px; background: var(--red); color: #fff; text-decoration: none; padding: 12px 18px 12px 14px; border-radius: 999px; font-weight: 700; box-shadow: 0 16px 34px -12px rgba(225, 6, 0, .7); transform: translateY(120px); transition: transform .5s var(--ease); }
.wa-float.is-on { transform: none; }
.wa-float svg { width: 26px; height: 26px; fill: #fff; }

/* ---------- Créditos ---------- */
.credits { border: 0; border-radius: 24px; padding: 32px; max-width: 560px; width: calc(100% - 32px); }
.credits::backdrop { background: rgba(21, 17, 15, .6); backdrop-filter: blur(4px); }
.credits h3 { font-size: 1.5rem; margin-bottom: 16px; }
.credits ul { padding-left: 18px; margin: 0 0 22px; font-size: .9rem; color: var(--ink-2); display: grid; gap: 8px; }

/* ---------- Reveal (red de seguridad incluida) ---------- */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.js .why-card.reveal:nth-child(3n+2) { transition-delay: .08s; }
.js .why-card.reveal:nth-child(3n) { transition-delay: .16s; }
.js .step.reveal:nth-child(2) { transition-delay: .08s; }
.js .step.reveal:nth-child(3) { transition-delay: .16s; }
.js .step.reveal:nth-child(4) { transition-delay: .24s; }

/* ==========================================================================
   Responsive — composición propia para tablet y móvil
   ========================================================================== */
@media (max-width: 1180px) and (min-width: 901px) {
  .nav-links { gap: 16px; }
  .nav-links a:not(.btn) { font-size: .86rem; }
  .brand-text { font-size: 1rem; }
}

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

@media (max-width: 900px) {
  body { font-size: 16px; }
  .nav-toggle { display: grid; gap: 6px; place-content: center; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); cursor: pointer; position: relative; z-index: 3; }
  .nav-toggle span { width: 18px; height: 2px; background: #fff; transition: transform .35s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav-links {
    position: fixed; inset: 0; z-index: 2; background: var(--red); flex-direction: column; justify-content: center; gap: 22px;
    clip-path: circle(0 at calc(100% - 40px) 36px); transition: clip-path .7s var(--ease); visibility: hidden;
  }
  .nav-links.is-open { clip-path: circle(150% at calc(100% - 40px) 36px); visibility: visible; }
  .nav-links a:not(.btn) { color: #fff; font-size: 2rem; font-weight: 800; letter-spacing: -.03em; }
  .nav-links .nav-cta { --bg: #fff; --fg: var(--red); margin-top: 10px; }
  .brand-text { font-size: 1rem; }

  .hero { grid-template-columns: 1fr; padding-top: 110px; gap: 10px; text-align: left; }
  .hero-art { height: 430px; order: -1; margin: 0 -8px; }
  .big-30 { font-size: 21rem; }
  .fc-1 { width: 40%; } .fc-2 { width: 34%; } .fc-3 { width: 44%; left: 4%; }
  .badge { width: 112px; height: 112px; top: 0; right: 2%; }
  .badge text { font-size: 15px; }
  .badge img { width: 26px; }
  .scroll-hint { display: none; }
  .hero-lead { margin: 22px 0 28px; }
  .hero-ctas .btn { flex: 1 1 200px; }

  .stats { grid-template-columns: 1fr; gap: 0; }
  .stat { display: flex; align-items: baseline; gap: 20px; padding: 20px 0; border-bottom: 1px solid rgba(0,0,0,.1); }
  .stat strong { font-size: 4.4rem; min-width: 1.4em; }

  .level-card, .level-card:nth-child(2), .level-card:nth-child(3) { position: relative; top: 0; grid-template-columns: 1fr; min-height: 0; }
  .level-photo { order: -1; height: 200px; min-height: 0; }
  .level-info { gap: 14px; }

  .why-grid { grid-template-columns: 1fr; }
  .why-card, .why-card:not(:nth-child(3n+1)) { padding: 28px 0; border-right: 0 !important; }
  .life { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .life-a { grid-column: 1 / -1; grid-row: span 2; }
  .life-b, .life-c, .life-d, .life-e { grid-column: span 1; grid-row: span 1; }

  .reserve { grid-template-columns: 1fr; margin: 0 10px; border-radius: 28px; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .form-nav .btn { flex: 1; }

  .faq { grid-template-columns: 1fr; }
  .faq .section-head { position: static; }
  .faq-list { padding: 0 var(--gutter); }

  .footer { grid-template-columns: 1fr; gap: 30px; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .big-30 { font-size: 17rem; }
  .hero-art { height: 360px; }
  .marquee { padding: 16px 0; }
}
