/* Colegio Cristiano Emanuel · sitio público
   Concepto: azul marino institucional como base, dorado como acento de "excelencia",
   rojo solo para llamados a la acción y verde para lo espiritual/deportivo.
   Tipografía con remate (slab) que dialoga con el logotipo CCE. */
:root {
  --navy: #0c1d40;
  --navy-2: #13295a;
  --navy-ink: #0a1733;
  --red: #e30613;
  --red-strong: #c4040f;
  --gold: #f29b30;
  --gold-soft: #fde9cc;
  --green: #1f601a;
  --green-soft: #e3efe0;
  --paper: #ffffff;
  --mist: #f3f5fa;
  --line: #dde3ee;
  --ink: #18223a;
  --muted: #56617a;

  --f-display: "Zilla Slab", "Roboto Slab", Georgia, serif;
  --f-body: "Figtree", "Segoe UI", system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1180px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --shadow: 0 10px 30px -12px rgba(12, 29, 64, .25);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); }
a:hover { color: var(--red-strong); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--navy); line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: #dfe6f5; }
.section--navy h2, .section--navy h3 { color: #fff; }
.stack { display: grid; gap: 16px; }
.stack-lg { display: grid; gap: 28px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.section--navy .lead { color: #c4cfe6; }
.muted { color: var(--muted); }
.prose { max-width: 68ch; display: grid; gap: 14px; }

.eyebrow {
  font-family: var(--f-body); font-weight: 800; font-size: .78rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--red-strong); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--gold); border-radius: 2px; }
.section--navy .eyebrow { color: var(--gold); }
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.sec-head--center { margin-inline: auto; text-align: center; justify-items: center; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease; cursor: pointer; font-family: var(--f-body);
}
.btn:hover { transform: translateY(-2px); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-strong); color: #fff; }
.btn--gold { background: var(--gold); color: var(--navy-ink); }
.btn--gold:hover { background: #e58a1c; color: var(--navy-ink); }
.btn--ghost { border-color: currentColor; color: var(--navy); background: transparent; }
.btn--ghost-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; color: var(--red-strong); }
.link-arrow::after { content: "→"; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Barra de utilidades ---------- */
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--gold); color: var(--navy-ink); padding: 10px 14px; border-radius: 8px; font-weight: 800; }
.skip:focus { top: calc(10px + env(safe-area-inset-top, 0px)); }
.utility { background: var(--navy-ink); color: #c4cfe6; font-size: .82rem; }
.utility .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.utility__motto { font-family: var(--f-display); font-style: italic; color: var(--gold); font-size: .95rem; white-space: nowrap; }
.utility__links { list-style: none; padding: 0; margin: 0 0 0 auto; display: flex; align-items: center; gap: 4px; }
.utility__links li + li { border-left: 1px solid rgba(255,255,255,.14); }
.utility__links a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; color: #e3e9f6; text-decoration: none; font-weight: 600; transition: color .2s; }
.utility__links a:hover, .utility__links a[aria-current="page"] { color: var(--gold); }
.utility__links svg { width: 15px; height: 15px; }

/* ---------- Encabezado ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--paper);
  border-bottom: 1px solid var(--line); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .3s;
}
.header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(12,29,64,.45); }
.header.is-hidden { transform: translateY(-110%); }
.header__bar { display: flex; align-items: center; gap: 24px; min-height: 78px; transition: min-height .3s; }
.header.is-scrolled .header__bar { min-height: 64px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 52px; width: auto; transition: height .3s; }
.header.is-scrolled .brand img { height: 42px; }

.mainnav { margin-left: auto; }
.mainnav > ul { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; gap: 2px; }
.mainnav__drop { position: relative; }
.mainnav__link {
  position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border: 0; background: none; cursor: pointer;
  font: 700 .98rem var(--f-body); color: var(--ink); text-decoration: none; letter-spacing: .005em;
}
.mainnav__link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; border-radius: 3px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.mainnav__link:hover::after, .mainnav__link[aria-current="page"]::after, .is-current > .mainnav__link::after, .open > .mainnav__link::after { transform: scaleX(1); }
.mainnav__link:hover, .mainnav__link[aria-current="page"], .is-current > .mainnav__link { color: var(--navy); }
.mainnav__link i { width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); transition: transform .25s; }
.open > .mainnav__link i { transform: rotate(-135deg) translateY(-1px); }

.dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%; width: min(620px, 92vw); display: grid; grid-template-columns: 210px 1fr;
  background: #fff; border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(12,29,64,.4); overflow: hidden; border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .2s ease, transform .25s ease, visibility 0s linear .25s;
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.open > .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .2s ease, transform .25s ease; }
.dropdown__intro { background: var(--navy); color: #c9d3ea; padding: 24px; display: grid; gap: 8px; align-content: start; position: relative; overflow: hidden; }
.dropdown__intro::after { content: ""; position: absolute; width: 150px; height: 180px; right: -40px; bottom: -50px; background: url("../img/escudo-blanco.png") center/contain no-repeat; opacity: .1; }
.dropdown__intro b { font-family: var(--f-display); font-size: 1.5rem; color: #fff; }
.dropdown__intro p { font-size: .92rem; line-height: 1.5; }
.dropdown__links { list-style: none; margin: 0; padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; align-content: start; }
.dropdown__links a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .93rem; line-height: 1.3; transition: background .15s, color .15s; }
.dropdown__links a small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.dropdown__links a:hover, .dropdown__links a[aria-current="page"] { background: var(--mist); color: var(--red-strong); }

.header__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn--sm { padding: 10px 18px; font-size: .93rem; }
.header__cta[aria-current="page"] { background: var(--red-strong); }
.menu-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px 9px 12px; border-radius: 999px; border: 2px solid var(--line);
  background: #fff; color: var(--navy); font: 800 .9rem var(--f-body); cursor: pointer; transition: border-color .2s, background .2s;
}
.menu-btn:hover { border-color: var(--navy); }
.menu-btn__icon { display: grid; gap: 4px; width: 18px; }
.menu-btn__icon i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: width .2s; }
.menu-btn__icon i:nth-child(2) { width: 70%; }
.menu-btn:hover .menu-btn__icon i:nth-child(2) { width: 100%; }

@media (max-width: 1180px) { .mainnav__link { padding-inline: 9px; font-size: .94rem; } .mainnav__link::after { left: 9px; right: 9px; } }
@media (max-width: 1060px) {
  .mainnav { display: none; }
  .header__actions { margin-left: auto; }
}
@media (max-width: 760px) {
  .utility__motto { display: none; }
  .utility__links { margin: 0 auto; }
  .utility__links .hide-sm { display: none; }
}
@media (max-width: 480px) {
  .utility__links a { padding-inline: 8px; }
  .brand img, .header.is-scrolled .brand img { height: 40px; }
  .menu-btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .menu-btn { padding: 10px 12px; }
  .header__bar { gap: 12px; min-height: 66px; }
}

/* ---------- Menú completo ---------- */
html.no-scroll { overflow: hidden; }
.menu {
  position: fixed; inset: 0; z-index: 100; background: var(--navy-ink); color: #c9d3ea; overflow-y: auto; overscroll-behavior: contain;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  opacity: 0; transition: opacity .25s ease;
}
.menu::before { content: ""; position: fixed; width: 620px; height: 720px; right: -160px; bottom: -160px; background: url("../img/escudo-blanco.png") center/contain no-repeat; opacity: .05; pointer-events: none; }
.menu.is-open { opacity: 1; }
.menu__top { display: flex; align-items: center; justify-content: space-between; min-height: 78px; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand--light { gap: 12px; color: #fff; text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; line-height: 1.1; }
.brand--light img { height: 50px; }
.menu__close { display: inline-flex; gap: 8px; align-items: center; background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 9px 16px; font: 800 .9rem var(--f-body); cursor: pointer; }
.menu__close:hover { background: #fff; color: var(--navy); }
.menu__body { display: grid; grid-template-columns: repeat(3, 1fr) 1fr; gap: 32px 40px; padding-block: clamp(32px, 6vw, 72px); position: relative; }
.menu__group, .menu__aside { opacity: 0; transform: translateY(18px); transition: opacity .4s ease, transform .5s cubic-bezier(.2,.7,.2,1); }
.menu.is-open .menu__group, .menu.is-open .menu__aside { opacity: 1; transform: none; }
.menu.is-open .menu__group:nth-child(2) { transition-delay: .06s; }
.menu.is-open .menu__group:nth-child(3) { transition-delay: .12s; }
.menu.is-open .menu__aside { transition-delay: .18s; }
.menu__title { font: 800 .75rem var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.menu__group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.menu__big {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 8px 0; background: none; border: 0; cursor: pointer; text-align: left;
  font: 700 clamp(1.5rem, 2.6vw, 2.1rem)/1.15 var(--f-display); color: #fff; text-decoration: none; transition: color .2s, transform .2s;
}
.menu__big:hover, .menu__big[aria-current="page"] { color: var(--gold); transform: translateX(6px); }
.menu__big i { width: 10px; height: 10px; border: solid currentColor; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); transition: transform .25s; flex-shrink: 0; }
.menu__acc.open > .menu__big i { transform: rotate(-135deg); }
.menu__group .menu__sub { padding: 0 0 0 4px; gap: 0; max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .35s ease, padding .35s ease, visibility 0s linear .35s; }
.menu__acc.open .menu__sub { max-height: 420px; padding-bottom: 12px; visibility: visible; transition: max-height .35s ease, padding .35s ease; }
.menu__sub a { display: block; padding: 6px 0 6px 14px; border-left: 2px solid rgba(255,255,255,.15); color: #c9d3ea; text-decoration: none; font-weight: 600; }
.menu__sub a:hover, .menu__sub a[aria-current="page"] { color: var(--gold); border-color: var(--gold); }
.menu__aside { display: grid; gap: 14px; align-content: start; font-size: .95rem; padding: 24px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); overflow-wrap: anywhere; }
.menu__aside a:not(.btn) { color: #fff; }
.menu__aside .btn { justify-content: center; }
@media (max-width: 1000px) { .menu__body { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .menu__body { grid-template-columns: 1fr; gap: 28px; } .menu__top { min-height: 66px; } .brand--light span { display: none; } }

/* ---------- Botones flotantes ---------- */
.floaters { position: fixed; z-index: 75; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 10px; justify-items: center; }
.wa-float { width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 28px; height: 28px; }
.to-top { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; font-size: 1.2rem; font-weight: 800; cursor: pointer; box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .25s, transform .25s; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.review-toggle {
  position: fixed; z-index: 74; left: calc(16px + env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  background: var(--navy-ink); color: #fff; border: 2px solid var(--gold); border-radius: 999px; padding: 8px 14px;
  font: 700 .8rem var(--f-body); cursor: pointer; box-shadow: var(--shadow); display: flex; gap: 8px; align-items: center;
}
.review-toggle i { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
body:not(.revision) .review-toggle i { background: #56617a; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 640px; height: 760px; right: -140px; top: -60px;
  background: url("../img/escudo-blanco.png") center/contain no-repeat; opacity: .06; pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(48px, 7vw, 96px); }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero__copy { display: grid; gap: 22px; min-width: 0; }
.hero__copy .lead { color: #c9d3ea; }
.hero__badge { display: inline-flex; gap: 10px; align-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); padding: 6px 14px 6px 6px; border-radius: 999px; font-size: .9rem; width: fit-content; }
.hero__badge b { background: var(--red); color: #fff; border-radius: 999px; padding: 2px 10px; font-size: .78rem; letter-spacing: .06em; }
.hero__media { position: relative; min-width: 0; }
.hero__media .ph { aspect-ratio: 4/3.4; border-radius: 22px 22px 22px 120px; }
.hero__seal { position: absolute; left: -26px; bottom: -22px; width: 118px; filter: drop-shadow(0 10px 18px rgba(0,0,0,.35)); }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.14); }
.hero__facts div { display: grid; }
.hero__facts strong { font-family: var(--f-display); font-size: 1.8rem; color: var(--gold); line-height: 1.1; }
.hero__facts span { font-size: .85rem; color: #aebbd8; }

.page-hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; width: 380px; height: 450px; right: -60px; top: -40px; background: url("../img/escudo-blanco.png") center/contain no-repeat; opacity: .07; }
.page-hero .wrap { position: relative; padding-block: clamp(40px, 6vw, 72px); display: grid; gap: 14px; }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
.page-hero p { color: #c9d3ea; max-width: 60ch; font-size: 1.15rem; }
.crumbs { font-size: .85rem; color: #aebbd8; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: #fff; text-decoration: none; }
.page-hero .eyebrow { color: var(--gold); }

/* ---------- Marcadores de foto ---------- */
.ph {
  position: relative; width: 100%; max-width: 100%; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(12,29,64,.05) 0 12px, rgba(12,29,64,.0) 12px 24px),
    linear-gradient(160deg, #e8edf7, #d5ddec);
  border: 2px dashed #9aa8c4; display: grid; place-items: center; text-align: center; color: var(--navy);
}
.ph__inner { display: grid; gap: 6px; justify-items: center; padding: 16px; max-width: 90%; }
.ph__icon { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; }
.ph__icon svg { width: 24px; height: 24px; }
.ph__label { font-weight: 800; font-size: .95rem; line-height: 1.3; }
.ph__meta { font-size: .75rem; color: var(--muted); letter-spacing: .04em; }
.ph__tag { position: absolute; top: 10px; left: 10px; background: var(--gold); color: var(--navy-ink); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; }
.section--navy .ph, .hero .ph, .page-hero .ph { background: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 12px, transparent 12px 24px), linear-gradient(160deg, #1b336a, #13295a); border-color: rgba(255,255,255,.35); color: #fff; }
.section--navy .ph__meta, .hero .ph__meta { color: #aebbd8; }
.hero .ph__icon { background: var(--gold); color: var(--navy); }
.ph--wide { aspect-ratio: 16/9; }
/* Mapa insertado de Google Maps (Contacto) */
.map { position: relative; aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--mist); box-shadow: var(--shadow); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 620px) { .map { aspect-ratio: 4/3; } }
.ph--square { aspect-ratio: 1; }
.ph--portrait { aspect-ratio: 3/4; }
.ph--round { aspect-ratio: 1; border-radius: 50%; }
.ph--round .ph__tag { display: none; }

/* ---------- Revisión: textos por confirmar ---------- */
.confirmar { background: linear-gradient(transparent 60%, rgba(242,155,48,.35) 0); border-bottom: 2px dotted var(--gold); }
.confirmar-badge { display: none; }
body.revision .confirmar-badge {
  display: inline-block; vertical-align: middle; font: 800 .62rem/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase;
  background: var(--gold); color: var(--navy-ink); padding: 4px 6px; border-radius: 5px; margin-left: 6px;
}
body:not(.revision) .confirmar { background: none; border: 0; }
/* ---------- Componentes ---------- */
.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid > * { min-width: 0; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split > * { min-width: 0; }
.split--top { align-items: start; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 12px; align-content: start; }
.card--media { padding: 0; overflow: hidden; }
.card--media .ph { border-radius: 0; border-width: 0 0 2px; }
.card__body { padding: 22px 24px 26px; display: grid; gap: 10px; align-content: start; }
.card--lift { transition: transform .2s, box-shadow .2s; }
.card--lift:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.icon-badge { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-soft); color: var(--navy); }
.icon-badge svg { width: 26px; height: 26px; }
.icon-badge--red { background: #fde3e4; color: var(--red-strong); }
.icon-badge--green { background: var(--green-soft); color: var(--green); }
.icon-badge--navy { background: #e2e8f5; color: var(--navy); }

.tag { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: #e2e8f5; color: var(--navy); width: fit-content; }
.tag--green { background: var(--green-soft); color: var(--green); }
.tag--red { background: #fde3e4; color: var(--red-strong); }
.tag--gold { background: var(--gold-soft); color: #8a4d00; }

/* Pilares (Tops de Emanuel) */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.pillar { padding: clamp(26px, 3vw, 40px); display: grid; gap: 12px; align-content: start; color: #fff; }
.pillar h3 { color: #fff; font-size: 1.6rem; }
.pillar p { color: rgba(255,255,255,.85); }
.pillar__n { font-family: var(--f-display); font-size: .95rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.pillar--1 { background: var(--navy); }
.pillar--2 { background: var(--red-strong); }
.pillar--3 { background: var(--green); }

/* Identidad (misión, visión, valores) */
.identity { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: clamp(18px, 2.4vw, 28px); }
.identity > * { min-width: 0; }
.identity .card h3 { display: flex; gap: 10px; align-items: center; }
.values { list-style: none; padding: 0; display: grid; gap: 10px; }
.values li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.values li::before { content: ""; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c1d40' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/13px no-repeat; }

/* Niveles */
.levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.level { border-radius: var(--radius); padding: 22px; background: #fff; border: 1px solid var(--line); display: grid; gap: 6px; position: relative; overflow: hidden; }
.level::after { content: ""; position: absolute; inset: auto 0 0 0; height: 5px; }
.level:nth-child(1)::after { background: var(--gold); }
.level:nth-child(2)::after { background: var(--red); }
.level:nth-child(3)::after { background: var(--green); }
.level:nth-child(4)::after { background: var(--navy); }
.level small { font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-size: .72rem; }
.level h3 { font-size: 1.3rem; }

/* Cronología */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 63px; top: 8px; bottom: 8px; width: 3px; background: linear-gradient(var(--gold), var(--red), var(--green), var(--navy)); border-radius: 3px; }
.timeline li { display: grid; grid-template-columns: 50px 30px 1fr; gap: 14px; padding-block: 14px; align-items: start; }
.timeline__year { font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; color: var(--navy); text-align: right; line-height: 1.4; }
.timeline__dot { width: 17px; height: 17px; margin: 4px auto 0; border-radius: 50%; background: #fff; border: 4px solid var(--gold); position: relative; z-index: 1; }
.timeline__body { display: grid; gap: 4px; min-width: 0; }

/* Pasos */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.steps li::before { content: counter(step); width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; }
.steps li > div { display: grid; gap: 4px; min-width: 0; }

/* Pestañas */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tabs button { font: 700 .95rem var(--f-body); padding: 10px 18px; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.tabs button:hover:not([aria-selected="true"]) { border-color: var(--navy); }

/* Lista con viñetas */
.checklist { list-style: none; padding: 0; display: grid; gap: 10px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.checklist li::before { content: ""; width: 10px; height: 10px; margin-top: 9px; border-radius: 3px; background: var(--gold); transform: rotate(45deg); }
.cols-2 { columns: 2; column-gap: 40px; }
.cols-2 li { break-inside: avoid; margin-bottom: 10px; }

/* Tabla de precios */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 520px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--mist); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
td.num { font-weight: 800; color: var(--navy); white-space: nowrap; }

/* Aviso */
.notice { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 18px 20px; border-radius: var(--radius); background: var(--gold-soft); color: #5b3500; }
.notice svg { width: 24px; height: 24px; color: #b36400; margin-top: 2px; }
.notice--navy { background: #e2e8f5; color: var(--navy); }
.notice--navy svg { color: var(--navy); }

/* Estadísticas */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { display: grid; gap: 4px; padding: 22px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.stat strong { font-family: var(--f-display); font-size: clamp(2rem, 3.4vw, 2.7rem); color: var(--gold); line-height: 1; }
.stat span { color: #c9d3ea; font-size: .95rem; }

/* Noticias */
.news-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: .85rem; color: var(--muted); }

/* Personas */
.person { display: grid; gap: 12px; text-align: center; justify-items: center; }
.person .ph { max-width: 180px; }
.person h4 { font-size: 1.1rem; }
.person p { font-size: .9rem; color: var(--muted); }

/* Cita */
.quote { font-family: var(--f-display); font-size: clamp(1.5rem, 2.8vw, 2.2rem); line-height: 1.3; color: #fff; font-weight: 500; max-width: 28ch; }
.quote::before { content: "“"; display: block; font-size: 4rem; line-height: .6; color: var(--gold); margin-bottom: 10px; }

/* CTA final */
.cta-band { background: var(--red-strong); color: #fff; border-radius: 24px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; width: 260px; height: 300px; right: -40px; bottom: -80px; background: url("../img/escudo-blanco.png") center/contain no-repeat; opacity: .12; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #ffe1e1; }
.cta-band > * { position: relative; z-index: 1; min-width: 0; }

/* Formulario */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 700; font-size: .92rem; }
.field input, .field select, .field textarea { font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: 3px solid rgba(242,155,48,.4); }
.form-ok { padding: 14px 16px; border-radius: 10px; background: var(--green-soft); color: var(--green); font-weight: 700; }

/* Contacto */
.contact-list { list-style: none; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; }
.contact-list li > div { min-width: 0; overflow-wrap: anywhere; }
.contact-list strong { display: block; color: var(--navy); }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery .ph { aspect-ratio: 1; }
.gallery .g-big { grid-column: span 2; grid-row: span 2; }
.gallery .g-big .ph { aspect-ratio: auto; height: 100%; min-height: 280px; }

/* Pie de página */
.footer { background: var(--navy-ink); color: #aebbd8; font-size: .95rem; }
.footer .wrap { padding-block: 64px 28px; display: grid; gap: 40px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer__grid > * { min-width: 0; overflow-wrap: anywhere; }
.footer h4 { color: #fff; font-family: var(--f-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.footer a { color: #dfe6f5; text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.footer__brand { display: grid; gap: 16px; align-content: start; }
.footer__brand .logo { display: flex; gap: 14px; align-items: center; }
.footer__brand img { width: 68px; }
.footer__brand b { font-family: var(--f-display); font-size: 1.35rem; color: #fff; line-height: 1.15; display: block; }
.footer__brand em { color: var(--gold); font-family: var(--f-display); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .85rem; }
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.social a:hover { background: var(--gold); color: var(--navy); }
.social svg { width: 18px; height: 18px; }

/* Animación de entrada (respeta reducción de movimiento) */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { animation: rise .6s ease both; }
  .hero__copy > *:nth-child(2) { animation-delay: .08s; }
  .hero__copy > *:nth-child(3) { animation-delay: .16s; }
  .hero__copy > *:nth-child(4) { animation-delay: .24s; }
  .hero__copy > *:nth-child(5) { animation-delay: .32s; }
  @keyframes rise { from { transform: translateY(14px); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .g-4, .levels, .stats { grid-template-columns: repeat(2, 1fr); }
  .identity { grid-template-columns: 1fr 1fr; }
  .identity > :last-child { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .hero__media { max-width: 560px; }
  .g-3, .pillars { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 1rem; }
  .g-2, .g-4, .levels, .stats, .identity, .form .row, .footer__grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .cols-2 { columns: 1; }
  .hero__seal { width: 84px; left: -6px; }
}

/* Ajustes */
[id] { scroll-margin-top: 96px; }
.section--navy .card h3, .section--navy .card h4 { color: var(--navy); }
.news-feature { display: grid; grid-template-columns: 1.1fr 1fr; }
.news-feature .ph { height: 100%; min-height: 260px; }
.ph--mini { width: 56px; flex-shrink: 0; border-width: 1.5px; }
.ph--mini .ph__label, .ph--mini .ph__meta, .ph--mini .ph__tag { display: none; }
.ph--mini .ph__icon { width: 30px; height: 30px; }
.ph--mini .ph__icon svg { width: 16px; height: 16px; }
.ph--mini .ph__inner { padding: 0; }
.testimonial { margin: 0; }
.testimonial blockquote { margin: 0; font-family: var(--f-display); font-size: 1.3rem; line-height: 1.4; color: var(--navy); }
.testimonial figcaption { display: flex; gap: 12px; align-items: center; }
@media (max-width: 620px) { .news-feature { grid-template-columns: 1fr; } .news-feature .ph { min-height: 0; aspect-ratio: 16/9; height: auto; } }
img.foto { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

/* ---------- Portada (inspirada en héroes editoriales de gran formato) ---------- */
.hero-xl { position: relative; overflow: hidden; background: var(--navy); color: #fff; isolation: isolate; }
.hero-xl__bg { position: absolute !important; inset: 0; z-index: -2; aspect-ratio: auto !important; border: 0 !important; border-radius: 0 !important; place-items: end !important; }
.hero-xl__bg .ph__inner { margin: 0 96px 28px 0; padding: 12px 16px 12px 12px; background: rgba(10,23,51,.6); border: 1px dashed rgba(255,255,255,.35); border-radius: 14px; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 2px; align-items: center; text-align: left; max-width: 340px; }
.hero-xl__bg .ph__icon { grid-row: span 2; }
.hero-xl__bg .ph__label { font-size: .85rem; }
.hero-xl__bg .ph__tag { display: none; }
@media (max-width: 760px) { .hero-xl__bg .ph__inner { display: none; } .hero-xl__bg .ph__tag { display: block; top: 12px; right: 12px; left: auto; bottom: auto; } .hero-xl__scroll { display: none; } }
.hero-xl::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(10,23,51,.96) 0%, rgba(12,29,64,.88) 42%, rgba(12,29,64,.35) 100%); pointer-events: none; }
.hero-xl::after { content: ""; position: absolute; z-index: -1; width: 520px; height: 620px; right: -120px; top: -80px; background: url("../img/escudo-blanco.png") center/contain no-repeat; opacity: .05; pointer-events: none; }
.hero-xl__content { display: grid; gap: 24px; padding-block: clamp(72px, 11vw, 150px) clamp(88px, 12vw, 160px); max-width: var(--wrap); }
.hero-xl__content > * { max-width: 760px; }
.hero-xl__kicker { font-weight: 800; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); display: inline-flex; gap: 12px; align-items: center; }
.hero-xl__kicker::before { content: ""; width: 36px; height: 3px; background: var(--red); border-radius: 2px; }
.hero-xl__title { color: #fff; font-size: clamp(3.4rem, 10vw, 8rem); line-height: .9; letter-spacing: -.025em; }
.hero-xl__title em { font-style: normal; color: var(--gold); }
.hero-xl__lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: #d3dcef; max-width: 56ch !important; }
.hero-xl__scroll { position: absolute; left: 50%; bottom: 26px; width: 30px; height: 48px; margin-left: -15px; border: 2px solid rgba(255,255,255,.5); border-radius: 20px; }
.hero-xl__scroll span { position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); }
@media (prefers-reduced-motion: no-preference) {
  .hero-xl__scroll span { animation: cue 1.8s ease-in-out infinite; }
  @keyframes cue { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(14px); opacity: 0; } }
  .hero-xl__content > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero-xl__content > :nth-child(2) { animation-delay: .08s; }
  .hero-xl__content > :nth-child(3) { animation-delay: .16s; }
  .hero-xl__content > :nth-child(4) { animation-delay: .24s; }
}

/* Datos rápidos */
.facts { background: var(--paper); border-bottom: 1px solid var(--line); }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts__item { padding: clamp(24px, 3.4vw, 44px) clamp(16px, 2.4vw, 32px); display: grid; gap: 6px; align-content: start; border-left: 1px solid var(--line); min-width: 0; }
.facts__item:first-child { border-left: 0; padding-left: 0; }
.facts__label { font-weight: 800; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--red-strong); }
.facts__item strong { font-family: var(--f-display); font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1; color: var(--navy); letter-spacing: -.02em; }
.facts__item p { color: var(--muted); font-size: .95rem; line-height: 1.5; }
@media (max-width: 860px) {
  .facts__grid { grid-template-columns: 1fr 1fr; }
  .facts__item:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts__item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 420px) { .facts__item { padding-inline: 12px; } }

/* Tipografía de sección más audaz */
.display { font-size: clamp(2rem, 4.4vw, 3.3rem); letter-spacing: -.015em; line-height: 1.05; }
.sec-head--row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 32px; max-width: none; }
.sec-head--row > .stack { max-width: 760px; }
.link-arrow--light { color: var(--gold); }
.link-arrow--light:hover { color: #fff; }

/* Visión y misión */
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv > div { border-top: 4px solid var(--gold); padding-top: 16px; display: grid; gap: 8px; align-content: start; }
.mv > div:last-child { border-color: var(--red); }
@media (max-width: 620px) { .mv { grid-template-columns: 1fr; } }

/* Niveles con foto */
.levels { gap: 18px; }
a.level { padding: 0; text-decoration: none; color: inherit; display: grid; align-content: start; transition: transform .25s ease, box-shadow .25s ease; }
a.level .ph { border-radius: 0; border-width: 0 0 2px; }
a.level:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.level__body { padding: 18px 20px 26px; display: grid; gap: 6px; }

/* Lista de programas */
.feature-list { border-top: 1px solid rgba(255,255,255,.14); }
.feature { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 24px 4px; border-bottom: 1px solid rgba(255,255,255,.14); text-decoration: none; color: inherit; transition: padding .3s ease, background .3s ease; }
.feature > div { display: grid; gap: 4px; min-width: 0; }
.feature h3 { color: #fff; font-size: clamp(1.3rem, 2.4vw, 1.9rem); transition: color .2s; }
.feature p { color: #aebbd8; }
.feature__go { width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); display: grid; place-items: center; color: #fff; font-size: 1.2rem; transition: background .25s, border-color .25s, transform .25s, color .25s; }
.feature:hover { padding-left: 16px; background: rgba(255,255,255,.03); }
.feature:hover h3 { color: var(--gold); }
.feature:hover .feature__go { background: var(--gold); border-color: var(--gold); color: var(--navy); transform: rotate(-45deg); }

/* Puertas de entrada (padres / alumnos) */
.door { display: grid; background: #fff; border-radius: 20px; overflow: hidden; text-decoration: none; color: inherit; border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease; }
.door .ph { border-radius: 0; border-width: 0 0 2px; }
.door__body { padding: 26px 28px 30px; display: grid; gap: 10px; }
.door:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

/* Movimiento: aparición al desplazar, pestañas y transiciones entre páginas */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease var(--d, 0ms), transform .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
.card--lift.reveal.is-in:hover, a.level.reveal.is-in:hover, .door.reveal.is-in:hover { transform: translateY(-6px); transition-delay: 0ms; }
.fade-in { animation: fadeIn .35s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
.btn { transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease; }
.btn:hover { box-shadow: 0 10px 22px -12px rgba(12,29,64,.6); }
.tabs button { transition: background .2s, color .2s, border-color .2s; }
.ph { transition: filter .3s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } @view-transition { navigation: none; } }
.ph--wide:not(.ph--bg) .ph__inner { padding-top: 30px; }
