/* ==========================================================
   Colegio Beaumont — Propuesta de rediseño (demo)
   Paleta tomada del escudo institucional: azul real, rojo y dorado
   ========================================================== */
:root {
  --navy: #102a5c;
  --blue: #1a4893;
  --blue-soft: #e8eefa;
  --red: #d91e26;
  --red-dark: #b3151c;
  --gold: #e3b341;
  --cream: #faf7f2;
  --ink: #1b2233;
  --muted: #5b6477;
  --line: #e4e7ee;
  --white: #fff;
  --kinder: #f29f05;
  --kinder-ink: #b45f00; /* naranja oscuro: texto blanco encima pasa contraste 4.5:1 */
  --primaria: #1a4893;
  --secundaria: #d91e26;
  --radius: 22px;
  --shadow: 0 18px 45px -18px rgba(16, 42, 92, .35);
  --shadow-sm: 0 6px 20px -8px rgba(16, 42, 92, .25);
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
/* Foco visible al navegar con teclado */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
:is(.hero, .phero, .section--navy, .topbar, .footer, .cta, .lightbox) :focus-visible { outline-color: var(--gold); }
.btn:focus-visible { outline-offset: 4px; border-radius: 999px; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; color: var(--navy); font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); letter-spacing: -.015em; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(70px, 10vw, 120px) 0; }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); color: #d8e0f2; }
.section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--red); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section--navy .eyebrow { color: var(--gold); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.section--navy .lead { color: #b9c5e0; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.center .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; transition: .25s ease; font-family: inherit;
}
.btn svg { width: 18px; height: 18px; }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 10px 25px -10px rgba(217, 30, 38, .7); }
.btn--red:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--outline { border-color: var(--blue); color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: #fff; }

/* ---------- Top bar + Header ---------- */
.topbar { background: var(--navy); color: #c9d3ea; font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 0; }
.topbar .tb-left > * { display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 14px; height: 14px; }
.topbar .tb-left { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar .tb-right { color: var(--gold); font-weight: 600; font-style: italic; }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: .3s;
}
.header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 58px; width: auto; }
.brand strong { display: block; font-family: var(--font-head); font-size: 1.35rem; color: var(--navy); line-height: 1; }
.brand span { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--red); font-weight: 700; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--ink);
  position: relative; transition: .2s;
}
.nav a:not(.btn):hover { color: var(--blue); background: var(--blue-soft); }
.nav a.active { color: var(--blue); }
.nav a.active::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 6px; height: 6px;
  background: var(--red); border-radius: 50%; transform: translateX(-50%);
}
.nav .btn { margin-left: 12px; padding: 12px 22px; }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 26px; height: 2px; background: var(--navy); margin: 6px 0; transition: .3s; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: calc(100vh - 120px); display: grid; align-items: center;
  color: #fff; overflow: hidden; isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; animation: zoom 20s ease-out forwards; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 1.2s ease; }
.hero__video.is-done { opacity: 0; pointer-events: none; }
@keyframes zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(10,28,64,.95) 0%, rgba(16,42,92,.82) 45%, rgba(16,42,92,.2) 100%);
}
.hero .container { padding: 80px 0 120px; }
.hero h1 { color: #fff; max-width: 760px; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p { font-size: 1.2rem; max-width: 560px; color: #d8e0f2; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); font-size: .88rem; margin-bottom: 26px;
}
.hero__tag b { background: var(--red); padding: 4px 12px; border-radius: 999px; font-size: .75rem; letter-spacing: .08em; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero__crest {
  position: absolute; right: 6%; top: 50%; transform: translateY(-50%); width: min(300px, 26vw);
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(calc(-50% - 14px)); } }

/* ---------- Stats ---------- */
.stats { position: relative; z-index: 5; margin-top: -70px; }
.stats__grid {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden;
}
.stat { padding: 32px 28px; border-right: 1px solid var(--line); display: flex; gap: 16px; align-items: center; }
.stat:last-child { border-right: 0; }
.stat__icon {
  flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue);
}
.stat:nth-child(2) .stat__icon { background: #fde8e9; color: var(--red); }
.stat:nth-child(3) .stat__icon { background: #fdf3dc; color: #b8860b; }
.stat__icon svg { width: 26px; height: 26px; }
.stat strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--navy); line-height: 1.1; }
.stat span { font-size: .88rem; color: var(--muted); }

/* ---------- Niveles ---------- */
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; }
.level {
  position: relative; border-radius: var(--radius); overflow: hidden; background: #fff;
  box-shadow: var(--shadow-sm); transition: .35s; display: flex; flex-direction: column;
}
.level:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.level__img { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.level__img img { width: 100%; height: 100%; object-fit: cover; transition: .6s; }
.level:hover .level__img img { transform: scale(1.07); }
.level__badge {
  position: absolute; left: 20px; top: 20px; padding: 6px 14px; border-radius: 999px;
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--c);
}
.level__body { padding: 28px; display: flex; flex-direction: column; flex: 1; border-top: 5px solid var(--c); }
.level__body p { color: var(--muted); font-size: .96rem; }
.level__meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 20px; }
.chip { font-size: .78rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--cream); color: var(--ink); }
.level__link { margin-top: auto; font-weight: 700; color: var(--c); display: inline-flex; align-items: center; gap: 8px; }
.level__link svg { width: 18px; transition: .3s; }
.level:hover .level__link svg { transform: translateX(6px); }

/* ---------- Split / Quiénes somos ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.split--rev > :first-child { order: 2; }
.collage { position: relative; aspect-ratio: 1/1.02; }
.collage img { position: absolute; border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow); }
.collage img:nth-child(1) { width: 72%; height: 70%; top: 0; left: 0; }
.collage img:nth-child(2) { width: 55%; height: 52%; right: 0; bottom: 0; border: 8px solid #fff; }
.collage__badge {
  position: absolute; left: 6%; bottom: 8%; background: var(--red); color: #fff; padding: 20px 24px;
  border-radius: 18px; box-shadow: var(--shadow); max-width: 200px;
}
.collage__badge strong { font-family: var(--font-head); font-size: 1.25rem; display: block; line-height: 1.2; }
.collage__badge span { font-size: .8rem; opacity: .9; }
.checks { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; font-size: .95rem; }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 2px;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- Pilares ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 56px; }
.pillar {
  padding: 34px 28px; border-radius: var(--radius); background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1); transition: .3s;
}
.pillar:hover { background: rgba(255,255,255,.1); transform: translateY(-6px); }
.pillar__icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--gold); color: var(--navy); margin-bottom: 22px; }
.pillar:nth-child(2) .pillar__icon { background: var(--red); color: #fff; }
.pillar:nth-child(3) .pillar__icon { background: #fff; color: var(--blue); }
.pillar:nth-child(4) .pillar__icon { background: #5fb8ff; color: var(--navy); }
.pillar__icon svg { width: 28px; height: 28px; }
.pillar p { font-size: .94rem; margin: 0; color: #b9c5e0; }

/* ---------- Misión / Visión ---------- */
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 50px; }
.mv__card { position: relative; padding: 48px 42px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; }
.mv__card::before {
  content: attr(data-n); position: absolute; right: 26px; top: 6px; font-family: var(--font-head);
  font-size: 7rem; font-weight: 700; color: var(--blue-soft); line-height: 1;
}
.mv__card h3 { font-size: 1.9rem; position: relative; }
.mv__card p { color: var(--muted); position: relative; margin: 0; }
.mv__card:nth-child(2) { background: var(--blue); }
.mv__card:nth-child(2)::before { color: rgba(255,255,255,.08); }
.mv__card:nth-child(2) h3 { color: #fff; }
.mv__card:nth-child(2) p { color: #d8e0f2; }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px; margin-top: 50px; }
.gallery figure { margin: 0; position: relative; border-radius: 18px; overflow: hidden; cursor: zoom-in; }
.gallery figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery figure:nth-child(4) { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: .6s; }
.gallery figure:hover img { transform: scale(1.08); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 40px 18px 14px; color: #fff; font-weight: 600; font-size: .92rem;
  background: linear-gradient(transparent, rgba(10,28,64,.85));
}

/* ---------- Aliados ---------- */
.allies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 46px; }
.ally {
  background: #fff; border-radius: var(--radius); padding: 30px; border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; transition: .3s;
}
.ally:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-4px); }
.ally__logo { height: 90px; display: grid; place-items: center; }
.ally__logo img { max-height: 90px; max-width: 220px; object-fit: contain; mix-blend-mode: multiply; }
.ally p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- Horario ampliado / Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; margin-top: 44px; }
.service { display: flex; gap: 14px; align-items: center; padding: 20px 22px; border-radius: 16px; background: #fff; border: 1px solid var(--line); font-weight: 600; }
.service svg { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); }

.schedule { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 40px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.schedule > div { padding: 36px 30px; background: #fff; text-align: center; }
.schedule > div:nth-child(2) { background: var(--blue); color: #fff; }
.schedule small { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; color: var(--red); }
.schedule > div:nth-child(2) small { color: var(--gold); }
.schedule strong { display: block; font-family: var(--font-head); font-size: 2.3rem; margin: 6px 0; color: var(--navy); }
.schedule > div:nth-child(2) strong { color: #fff; }
.schedule p { margin: 0; font-size: .9rem; opacity: .8; }

/* ---------- CTA admisiones ---------- */
.cta {
  position: relative; border-radius: 32px; overflow: hidden; padding: clamp(50px, 7vw, 80px);
  background: linear-gradient(120deg, var(--red) 0%, #a3141b 100%); color: #fff;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
}
.cta::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px; border-radius: 50%;
  border: 60px solid rgba(255,255,255,.08);
}
.cta h2 { color: #fff; }
.cta p { color: #ffe1e2; font-size: 1.1rem; margin: 0; }
.cta__actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; position: relative; z-index: 1; }
.cta .btn--white { background: #fff; color: var(--red); }
.cta .btn--white:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(0,0,0,.4); }

/* ---------- Page hero (niveles) ---------- */
.phero { position: relative; color: #fff; padding: 110px 0 150px; overflow: hidden; isolation: isolate; }
.phero__bg { position: absolute; inset: 0; z-index: -2; }
.phero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg picture, .phero__bg picture { display: contents; }
.phero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(16,42,92,.85) 0%, rgba(16,42,92,.62) 40%, rgba(16,42,92,.1) 72%, transparent); }
.phero h1 { color: #fff; max-width: 780px; }
.phero p { max-width: 620px; color: #d8e0f2; font-size: 1.15rem; }
.crumbs { font-size: .85rem; color: #a9b7d6; margin-bottom: 18px; }
.crumbs a:hover { color: #fff; }
.phero--kinder::before { background: linear-gradient(100deg, rgba(122,63,0,.85) 0%, rgba(150,78,0,.62) 40%, rgba(180,95,0,.1) 72%, transparent); }
.phero--secundaria::before { background: linear-gradient(100deg, rgba(94,11,16,.85) 0%, rgba(130,16,22,.62) 40%, rgba(160,20,27,.1) 72%, transparent); }
/* Texto legible sobre la foto, ahora más clara */
.phero h1, .phero p, .phero .eyebrow, .crumbs { text-shadow: 0 1px 2px rgba(0,0,0,.75), 0 3px 18px rgba(0,0,0,.5); }
.phero p { color: #fff; font-weight: 500; }
.crumbs { color: #e6ecf8; }
.phero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

.facts { position: relative; z-index: 5; margin-top: -80px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.fact { background: #fff; border-radius: 20px; padding: 26px; box-shadow: var(--shadow); border-top: 4px solid var(--accent, var(--blue)); }
.fact small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.fact strong { font-family: var(--font-head); font-size: 1.45rem; color: var(--navy); }

/* Sub-navegación en páginas de nivel */
.subnav { position: sticky; top: 84px; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); margin-top: 60px; }
.subnav .container { display: flex; gap: 6px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.subnav a { white-space: nowrap; padding: 8px 16px; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--muted); transition: .2s; }
.subnav a:hover, .subnav a.on { background: var(--accent, var(--blue)); color: #fff; }

/* Tarjetas de contenido */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; margin-top: 44px; }
.card { background: #fff; border-radius: var(--radius); padding: 32px; border: 1px solid var(--line); transition: .3s; }
.card:hover { box-shadow: var(--shadow); border-color: transparent; transform: translateY(-4px); }
.card__icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--accent-soft, var(--blue-soft)); color: var(--accent, var(--blue)); margin-bottom: 18px; }
.card__icon svg { width: 26px; height: 26px; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.card ul { color: var(--muted); font-size: .93rem; padding-left: 18px; margin: 10px 0 0; }

.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tag { padding: 9px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .9rem; }
.tag--solid { background: var(--accent, var(--blue)); color: #fff; border-color: transparent; }

.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3.2; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

.program { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.program__item { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
/* Imagen de taller sin foto: icono de línea sobre un fondo suave del color del taller */
.program__art {
  aspect-ratio: 16/10; display: grid; place-items: center; position: relative; color: var(--c);
  background: radial-gradient(circle at 78% 22%, color-mix(in srgb, var(--c) 16%, transparent), transparent 55%),
              linear-gradient(135deg, var(--cream), color-mix(in srgb, var(--c) 10%, #fff));
}
.program__art::before { content: ""; position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); }
.program__art svg { position: relative; width: 26%; height: auto; }
.program__head { padding: 26px 28px 22px; background: var(--c); color: #fff; }
.program__head small { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; opacity: .85; }
.program__head h3 { color: #fff; margin: 4px 0 0; font-size: 1.6rem; }
.program__body { padding: 26px 28px; flex: 1; }
.program__body p { color: var(--muted); font-size: .94rem; }
.program__body ul { padding-left: 18px; color: var(--muted); font-size: .92rem; margin: 0 0 18px; }
.program__foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 28px 26px; }

.quote {
  font-family: var(--font-head); font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-style: italic; color: var(--navy);
  border-left: 5px solid var(--red); padding: 6px 0 6px 26px; margin: 30px 0;
}
.highlight { background: var(--navy); color: #d8e0f2; border-radius: var(--radius); padding: 40px; position: relative; overflow: hidden; }
.highlight h3 { color: #fff; }
.highlight .trophy { position: absolute; right: -20px; bottom: -30px; width: 180px; color: rgba(255,255,255,.07); }

/* Acordeón */
.acc { margin-top: 40px; display: grid; gap: 14px; }
.acc details { background: #fff; border-radius: 18px; border: 1px solid var(--line); overflow: hidden; }
.acc summary {
  list-style: none; cursor: pointer; padding: 22px 26px; font-weight: 700; font-size: 1.08rem; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 1.6rem; font-weight: 400; color: var(--red); transition: .3s; }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc details > div { padding: 0 26px 24px; color: var(--muted); }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; }
.contact__info { background: var(--navy); color: #d8e0f2; border-radius: var(--radius); padding: 44px; position: relative; overflow: hidden; }
.contact__info h3 { color: #fff; font-size: 1.8rem; }
.contact__info .crest-bg { position: absolute; right: -60px; bottom: -60px; width: 260px; opacity: .08; }
.info-row { display: flex; gap: 16px; margin: 26px 0; align-items: flex-start; }
.info-row svg { flex: none; width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: rgba(255,255,255,.1); color: var(--gold); }
.info-row small { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #8fa0c6; }
.info-row strong { color: #fff; font-weight: 600; }
.form { background: #fff; border-radius: var(--radius); padding: 44px; box-shadow: var(--shadow); }
.form h3 { font-size: 1.8rem; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 700; color: var(--navy); }
.field input, .field select, .field textarea {
  font: inherit; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--cream); transition: .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px var(--blue-soft); }
.consent { display: flex; gap: 10px; font-size: .84rem; color: var(--muted); align-items: flex-start; }
.consent input { margin-top: 4px; accent-color: var(--blue); }
.consent a { color: var(--blue); font-weight: 600; text-decoration: underline; }
.form__demo { margin: 0; padding: 8px 14px; border-radius: 10px; background: var(--gold-soft, #fdf3dc); color: var(--navy); font-size: .85rem; font-weight: 600; }
.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; }
.form__ok { display: none; margin-top: 18px; padding: 16px 20px; border-radius: 12px; background: var(--blue-soft); color: var(--navy); font-size: .92rem; }
.form__ok.show { display: block; }
.map { border-radius: var(--radius); overflow: hidden; margin-top: 40px; box-shadow: var(--shadow-sm); height: 380px; }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.footer { background: #0a1c40; color: #9fb0d4; padding: 80px 0 30px; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer .brand strong { color: #fff; }
.footer h4 { color: #fff; font-family: var(--font-body); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 20px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .94rem; }
.footer a:hover { color: #fff; }
.footer__motto { font-family: var(--font-head); font-style: italic; font-size: 1.3rem; color: var(--gold); margin-top: 20px; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); transition: .2s; }
.social a:hover { background: var(--red); color: #fff; }
.social svg { width: 18px; height: 18px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 60px; padding-top: 24px; display: flex; justify-content: space-between; font-size: .85rem; flex-wrap: wrap; gap: 10px; }

/* Botón flotante */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(0,0,0,.35);
  transition: .25s;
}
.fab:hover { transform: scale(1.08); }
.fab svg { width: 30px; height: 30px; }
.fab--tel { background: var(--red); }
.fab--tel svg { width: 26px; height: 26px; }
.fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: pulse 2.2s infinite; z-index: -1; }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5,14,33,.92); display: none; place-items: center; padding: 30px; cursor: zoom-out; }
.lightbox.show { display: grid; }
.lightbox__close {
  position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; font-size: 1.8rem; line-height: 1; display: grid; place-items: center;
}
.lightbox__close:hover { background: rgba(255,255,255,.25); }
.lightbox img { max-height: 88vh; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }

/* Banner de demo */
.demo-banner { background: var(--gold); color: var(--navy); text-align: center; font-size: .8rem; font-weight: 700; padding: 6px 16px; letter-spacing: .03em; }

/* Animaciones de entrada */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .1s; }
.reveal[data-d="2"] { transition-delay: .2s; }
.reveal[data-d="3"] { transition-delay: .3s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__crest { display: none; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .program { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 84px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch;
    padding: 20px; gap: 4px; box-shadow: var(--shadow); transform: translateY(-10px); opacity: 0; visibility: hidden; transition: .3s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav { top: auto; position: absolute; left: 0; right: 0; top: 100%; }
  .nav .btn { margin: 10px 0 0; justify-content: center; }
  .burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .levels, .allies, .mv, .split, .contact, .cta, .schedule { grid-template-columns: 1fr; }
  .split--rev > :first-child { order: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .gallery figure:nth-child(4) { grid-column: span 1; }
  .topbar .tb-right { display: none; }
  /* En celular el texto cruza toda la foto: capa pareja en vez de degradado lateral */
  .phero::before { background: rgba(16,42,92,.55); }
  .phero--kinder::before { background: rgba(122,63,0,.55); }
  .phero--secundaria::before { background: rgba(94,11,16,.55); }
}
@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  .stats__grid, .pillars, .footer__grid, .checks, .form__grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .facts { grid-template-columns: 1fr 1fr; gap: 12px; }
  .fact { padding: 18px 16px; }
  .fact strong { font-size: 1.15rem; }
  .topbar .tb-left > :not(:first-child) { display: none; }
  .brand img { height: 48px; }
  .mv__card, .form, .contact__info { padding: 32px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Recorrido 360° */
.tour { position: relative; z-index: 5; margin-top: -70px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; }
.tour__viewer { width: 100%; aspect-ratio: 16 / 9; max-height: 75vh; border-radius: 16px; overflow: hidden; background: var(--navy); }
.tour__stage { position: relative; }
.tour__intro { position: absolute; inset: 0; z-index: 20; border-radius: 16px; overflow: hidden; background: #000; transition: opacity .9s ease; }
.tour__intro video { width: 100%; height: 100%; object-fit: cover; }
.tour__intro.is-done { opacity: 0; pointer-events: none; }
.tour__skip { position: absolute; right: 14px; bottom: 14px; padding: 8px 16px; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; background: rgba(0,0,0,.45); color: #fff; font: 600 .85rem var(--font-body); cursor: pointer; }
.tour__skip:hover { background: #fff; color: var(--navy); }
.tour__scenes { display: flex; gap: 12px; overflow-x: auto; padding: 14px 2px 4px; scrollbar-width: thin; }
.tour__scenes button { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border: 2px solid var(--line); border-radius: 999px; background: #fff; font: 600 .9rem var(--font-body); color: var(--ink); cursor: pointer; transition: .25s; }
.tour__scenes button img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.tour__scenes button:hover { border-color: var(--blue); color: var(--blue); }
.tour__scenes button[aria-current="true"] { border-color: var(--blue); background: var(--blue); color: #fff; }
.tour__viewer .hs { width: 34px; height: 34px; margin: -17px 0 0 -17px; cursor: pointer; }
.hs__dot { position: absolute; inset: 0; border-radius: 50%; background: var(--red); border: 3px solid #fff; box-shadow: 0 4px 14px rgba(0,0,0,.45); }
.hs__dot::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid #fff; animation: hs-pulse 1.8s ease-out infinite; }
.hs__label { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); white-space: nowrap; padding: 6px 12px; border-radius: 999px; background: rgba(16,42,92,.92); color: #fff; font: 600 .82rem var(--font-body); pointer-events: none; transition: .25s; }
.hs:hover .hs__dot { background: var(--red-dark); transform: scale(1.12); }
@keyframes hs-pulse { from { opacity: .9; transform: scale(.6); } to { opacity: 0; transform: scale(1.4); } }
@media (prefers-reduced-motion: reduce) { .hs__dot::after { animation: none; opacity: .5; } }
.tour__coords { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 10; padding: 8px 14px; border-radius: 10px; background: rgba(0,0,0,.75); color: #fff; font: 600 .9rem ui-monospace, monospace; }
.gallery__cta { display: flex; justify-content: center; margin-top: 34px; }
@media (max-width: 560px) {
  .tour { padding: 8px; }
  .tour__viewer { aspect-ratio: 4 / 3; }
}
.tour__sound { position: absolute; left: 14px; bottom: 14px; z-index: 2; padding: 10px 18px; border: 0; border-radius: 999px; background: var(--red); color: #fff; font: 700 .9rem var(--font-body); cursor: pointer; box-shadow: 0 8px 22px -8px rgba(0,0,0,.6); }
.tour__sound:hover { background: var(--red-dark); }
.tour__skip { z-index: 2; }
.tour__bar { display: flex; align-items: center; gap: 12px; }
.tour__bar .tour__scenes { flex: 1; min-width: 0; }
.tour__replay { flex: 0 0 auto; margin-top: 10px; padding: 10px 16px; border: 2px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy); font: 600 .9rem var(--font-body); cursor: pointer; transition: .25s; }
.tour__replay:hover { border-color: var(--red); color: var(--red); }

/* Recorrido 360° en el inicio */
.btn--tour { gap: 10px; }
.btn__play { width: 22px; height: 22px; border-radius: 50%; background: var(--red); position: relative; flex: 0 0 auto; box-shadow: 0 0 0 0 rgba(217,30,38,.7); animation: tour-ping 2s infinite; }
.btn__play::after { content: ""; position: absolute; left: 8px; top: 6px; border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.tour-promo { position: relative; isolation: isolate; overflow: hidden; color: #fff; text-align: center; padding: clamp(90px, 14vw, 170px) 0; background: var(--navy); }
.tour-promo__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.tour-promo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at center, rgba(16,42,92,.35), rgba(16,42,92,.85) 75%); }
.tour-promo__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.tour-promo .eyebrow { color: var(--gold); }
.tour-promo h2 { color: #fff; margin: 0; font-size: clamp(2rem, 5vw, 3.4rem); text-shadow: 0 3px 18px rgba(0,0,0,.5); }
.tour-promo p { max-width: 620px; margin: 0; color: #e6ecf8; font-size: 1.1rem; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.tour-promo__play { width: 96px; height: 96px; border-radius: 50%; background: var(--red); position: relative; margin: 10px 0; box-shadow: 0 0 0 0 rgba(217,30,38,.7); animation: tour-ping 2s infinite; transition: transform .25s; }
.tour-promo__play:hover { transform: scale(1.08); }
.tour-promo__play span { position: absolute; left: 39px; top: 31px; border-left: 28px solid #fff; border-top: 17px solid transparent; border-bottom: 17px solid transparent; }
@keyframes tour-ping { 0% { box-shadow: 0 0 0 0 rgba(217,30,38,.7); } 70% { box-shadow: 0 0 0 22px rgba(217,30,38,0); } 100% { box-shadow: 0 0 0 0 rgba(217,30,38,0); } }
@media (prefers-reduced-motion: reduce) { .btn__play, .tour-promo__play { animation: none; } }
