@font-face {
  font-family: "Cinzel";
  src: url("/assets/fuentes/Cinzel-Semibold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cinzel";
  src: url("/assets/fuentes/Cinzel.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans";
  src: url("/assets/fuentes/SourceSans-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans";
  src: url("/assets/fuentes/SourceSans-Semibold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Italic";
  src: url("/assets/fuentes/Playfair-Italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --navy: #0d1b3d;
  --navy-deep: #081226;
  --ink: #14203a;
  --muted: #44516c;
  --gold: #d4af37;
  --gold-deep: #8d6d16;
  --cream: #f8f3e8;
  --cream-2: #f3ecdc;
  --paper: #fffdf8;
  --line: rgba(13, 27, 61, 0.12);
  --line-strong: rgba(13, 27, 61, 0.22);
  --glass: rgba(248, 243, 232, 0.78);
  --glass-solid: #f7f1e6;
  --glass-edge: rgba(255, 255, 255, 0.72);
  --shadow: 0 10px 28px rgba(13, 27, 61, 0.08);
  --display: "Cinzel", "Palatino Linotype", Palatino, serif;
  --sans: "Source Sans", "Segoe UI", sans-serif;
  --quote: "Playfair Italic", Georgia, serif;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 7rem;
  --radius: 1.15rem;
  --header: 5.5rem;
  --content: min(1680px, calc(100% - 2.5rem));
  --measure: 66ch;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 180ms;
  --mid: 360ms;
  --slow: 620ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 480px at 100% -10%, rgba(212, 175, 55, 0.16), transparent 55%),
    var(--cream);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  padding: 0.7rem 1rem;
  background: var(--navy);
  color: var(--cream);
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.nav-shell {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: max(0.75rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) 0 max(1rem, env(safe-area-inset-left));
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: var(--content);
  min-height: 4.25rem;
  margin: 0 auto;
  padding: 0.45rem 0.55rem 0.45rem 0.85rem;
  border: 1px solid var(--glass-edge);
  border-radius: 999px;
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.2);
}

.nav.is-scrolled {
  background: rgba(248, 243, 232, 0.9);
}

.nav-brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  margin-right: auto;
  text-decoration: none;
}

.nav-brand img {
  width: auto;
  height: 2.7rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-links a {
  position: relative;
  padding: 0.65rem 0.7rem;
  color: var(--navy);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  white-space: nowrap;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.4rem;
  height: 1px;
  background: var(--gold-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--mid) var(--ease);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.btn-ehest,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform var(--fast) var(--ease), background var(--fast) var(--ease), color var(--fast) var(--ease);
}

.btn-ehest {
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--navy);
  color: var(--cream);
}

.btn-ehest::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(212, 175, 55, 0.45), transparent 65%);
  transform: translateX(-130%);
}

.btn-ehest:hover {
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
}

.btn-gold:hover {
  transform: translateY(-1px);
  background: #e2c25a;
}

.btn-line {
  border: 1px solid rgba(248, 243, 232, 0.45);
  color: var(--cream);
  background: transparent;
}

.btn-line-dark {
  border: 1px solid var(--line-strong);
  color: var(--navy);
  background: transparent;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}

.nav-toggle svg {
  width: 1.35rem;
  height: 1.35rem;
}

.nav-overlay,
.nav-close {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.72fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  width: var(--content);
  min-height: clamp(28rem, 72vh, 46rem);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vh, 3rem) 0 clamp(2rem, 5vh, 3.5rem);
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--gold-deep);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
.h-display {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(3.4rem, 7vw, 7.2rem);
  color: var(--navy);
}

.brand-hest {
  letter-spacing: 0;
}

.glyph {
  position: relative;
  display: inline-block;
  cursor: default;
  color: var(--navy);
}

.letter {
  position: relative;
  z-index: 1;
  color: var(--navy);
}

.glyph::before {
  content: attr(data-letter);
  position: absolute;
  z-index: 0;
  left: 0;
  top: 0;
  color: transparent;
  pointer-events: none;
  opacity: 0;
  text-shadow:
    0 0 7px rgba(212, 175, 55, 0.95),
    0 0 16px rgba(212, 175, 55, 0.72),
    0 0 34px rgba(212, 175, 55, 0.38);
  transition: opacity 180ms var(--ease);
}

.glyph:hover,
.glyph:focus-visible {
  color: var(--navy);
  outline: none;
}

.glyph:hover::before,
.glyph:focus-visible::before {
  opacity: 1;
}

.glyph .hint {
  position: absolute;
  left: 0;
  top: calc(100% + 0.12em);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  white-space: nowrap;
  font-family: var(--sans);
  font-size: 0.16em;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  text-shadow: none;
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}

.glyph .hint::before {
  content: "";
  width: 3.4em;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(22, 53, 110, 0.18), var(--gold));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 240ms var(--ease);
}

.glyph:hover .hint,
.glyph:focus-visible .hint {
  opacity: 1;
  transform: none;
}

.glyph:hover .hint::before,
.glyph:focus-visible .hint::before {
  transform: scaleX(1);
}

.hero .lede {
  margin-top: 2.15rem;
}

@media (prefers-reduced-motion: reduce) {
  .glyph::before,
  .glyph .hint,
  .glyph .hint::before {
    transition: none;
  }
}

.motto {
  margin: 1.1rem 0 0;
  font-family: var(--quote);
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  color: var(--navy);
}

.js.is-opening .nav-shell,
.js.is-opening main,
.js.is-opening .site-footer {
  opacity: 0;
}

.js.is-ready .nav-shell,
.js.is-ready main,
.js.is-ready .site-footer {
  opacity: 1;
  transition: opacity 720ms var(--ease);
}

.js.is-return .hero {
  animation: hero-return 200ms var(--ease) both;
}

@keyframes hero-return {
  from { opacity: 0; }
  to { opacity: 1; }
}

.intro {
  display: none;
}

.js.is-opening .intro,
.intro.is-done {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  pointer-events: none;
}

.js.is-opening .intro-line {
  animation: intro-in 720ms var(--ease) both;
}

@keyframes intro-in {
  from { opacity: 0; filter: blur(10px); }
  to { opacity: 1; filter: none; }
}

.intro.is-done {
  opacity: 0;
  transition: opacity 480ms var(--ease);
}

.intro-line {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.45em 0.7em;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 4.6vw, 4.2rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--gold);
  transition: gap 680ms var(--ease), transform 780ms var(--ease);
}

.intro.is-contract .intro-line {
  gap: 0;
}

.piece {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  line-height: 1;
}

.keep,
.tail,
.y {
  align-self: baseline;
  line-height: 1;
  letter-spacing: -0.02em;
}

.keep {
  color: var(--gold);
  transition: color 560ms var(--ease);
}

.intro.is-mark .keep {
  color: var(--navy);
}

.tail,
.y {
  min-width: 0;
  max-width: 14ch;
  white-space: nowrap;
  color: var(--gold);
  clip-path: inset(-0.35em 0 -0.45em 0);
  transition: max-width 680ms var(--ease), opacity 420ms var(--ease);
}

.intro.is-contract .tail,
.intro.is-contract .y {
  max-width: 0;
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .intro { display: none !important; }
  .js.is-opening .nav-shell,
  .js.is-opening main,
  .js.is-opening .site-footer { opacity: 1; }
  .js.is-return .hero { animation: none; opacity: 1; }
}

.lede,
.measure {
  max-width: var(--measure);
}

.lede {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.28rem);
}

.hero-actions,
.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-mark {
  justify-self: end;
  width: min(100%, 34rem);
}

.hero-mark img {
  width: 100%;
  filter: drop-shadow(0 30px 40px rgba(13, 27, 61, 0.18));
}

.band {
  width: 100%;
  padding: var(--space-9) 0;
}

.band.home-offer {
  padding-bottom: 0.65rem;
}

.band.home-life {
  padding-top: 1.35rem;
}

.band-paper {
  background: var(--paper);
}

.band-navy {
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(212, 175, 55, 0.18), transparent 50%),
    var(--navy);
  color: var(--cream);
}

.band-cream {
  background: transparent;
}

.frame {
  width: var(--content);
  margin: 0 auto;
}

.split {
  display: grid;
  grid-template-columns: minmax(10rem, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.year {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4.5rem, 8vw, 8rem);
  line-height: 0.85;
  color: rgba(13, 27, 61, 0.2);
}

.year small {
  display: block;
  margin-top: 1rem;
  color: var(--gold-deep);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  -webkit-text-stroke: 0;
}

h2 {
  font-size: clamp(2rem, 3.4vw, 3.4rem);
}

h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 600;
  line-height: 1.15;
}

p {
  margin: 0.85rem 0 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: 1.25rem;
  color: var(--navy);
  font-weight: 600;
  text-underline-offset: 0.28em;
}

.band-navy .text-link,
.band-navy .eyebrow {
  color: var(--gold);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.75rem);
  align-items: end;
  margin-top: 2.5rem;
}

.pillar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 1.15rem;
  align-items: end;
  margin: 0;
}

.pillar-well {
  width: 4.75rem;
  height: 16.25rem;
  overflow: hidden;
}

.pillar-order {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
}

.pillar-cap {
  flex: 0 0 auto;
  width: 100%;
  height: 0.86rem;
  background:
    linear-gradient(var(--gold), var(--gold)) center 0 / 2.15rem 0.16rem no-repeat,
    linear-gradient(var(--gold), var(--gold)) center 0.16rem / 100% 0.46rem no-repeat,
    linear-gradient(var(--gold), var(--gold)) center 0.62rem / 3.15rem 0.24rem no-repeat;
}

.pillar-shaft {
  display: flex;
  flex: 1 1 auto;
  align-items: flex-start;
  justify-content: center;
  width: 2.2rem;
  padding-top: 1.15rem;
  background:
    linear-gradient(var(--navy), var(--navy)) 0 0 / 1px 100% no-repeat,
    linear-gradient(var(--navy), var(--navy)) 100% 0 / 1px 100% no-repeat,
    linear-gradient(rgba(13, 27, 61, 0.28), rgba(13, 27, 61, 0.28)) 27% 0 / 1px 100% no-repeat,
    linear-gradient(rgba(13, 27, 61, 0.28), rgba(13, 27, 61, 0.28)) 73% 0 / 1px 100% no-repeat,
    linear-gradient(#fbf8f1, #e6d9c0);
}

.pillar-index {
  margin: 0;
  color: var(--navy);
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.pillar-base {
  flex: 0 0 auto;
  width: 100%;
  height: 1.08rem;
  background:
    linear-gradient(var(--gold), var(--gold)) center 0 / 3.05rem 0.2rem no-repeat,
    linear-gradient(var(--gold), var(--gold)) center 0.2rem / 4.05rem 0.34rem no-repeat,
    linear-gradient(var(--gold), var(--gold)) center 0.54rem / 100% 0.54rem no-repeat;
}

.pillar-copy h3 {
  color: var(--navy);
}

.pillar-copy p {
  color: var(--ink);
  line-height: 1.55;
}

.js .pillar-order {
  transform: translateY(110%);
}

.js .reveal.is-in .pillar-order {
  animation: pillar-rise 1.2s var(--ease) forwards;
}

.js .reveal.is-in .pillar:nth-child(2) .pillar-order {
  animation-delay: 0.18s;
}

.js .reveal.is-in .pillar:nth-child(3) .pillar-order {
  animation-delay: 0.36s;
}

@keyframes pillar-rise {
  from { transform: translateY(110%); }
  to { transform: translateY(0); }
}

.bento p,
.levels p,
.life p,
.where p {
  color: inherit;
}

.band-navy p {
  color: rgba(248, 243, 232, 0.86);
}

.levels {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 0;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.levels li {
  padding: 1.6rem 1.4rem 1.8rem 0;
  border-bottom: 1px solid var(--line);
}

.levels li:first-child {
  padding-right: 2rem;
}

.levels span {
  display: block;
  margin-bottom: 1.2rem;
  color: var(--gold-deep);
  font-family: var(--display);
  font-size: 0.95rem;
}

.note {
  max-width: 72ch;
  margin-top: 1.5rem;
  color: var(--muted);
}

.life-board {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(16rem, 0.88fr);
  grid-template-areas:
    "copy side"
    "quote quote";
  column-gap: clamp(1.4rem, 3.2vw, 3.25rem);
  row-gap: 1.35rem;
  align-items: start;
}

.life-copy {
  grid-area: copy;
}

.life-side {
  grid-area: side;
  padding-top: 0.15rem;
}

.phrase {
  margin: 0.55rem 0 0;
  font-family: var(--quote);
  font-size: clamp(1.32rem, 2.05vw, 1.82rem);
  line-height: 1.28;
  color: var(--navy);
}

.life-claim {
  margin: 0.85rem 0 0;
  color: var(--gold-deep);
  font-family: var(--quote);
  font-size: clamp(1.12rem, 1.55vw, 1.38rem);
  line-height: 1.3;
}

.life-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.5;
}

.activities {
  display: block;
  margin: 0.95rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.activities li {
  margin: 0;
  padding: 0.48rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
}

.life-side .text-link {
  margin-top: 0.7rem;
  min-height: 2.2rem;
}

.life-rector {
  grid-area: quote;
  margin: 0.15rem 0 0;
  padding: 1.05rem 0 0;
  border: 0;
  border-top: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
}

.life-rector .eyebrow {
  margin: 0;
}

.life-rector blockquote {
  margin: 0.4rem 0 0;
}

.life-rector p {
  margin: 0;
  max-width: 62ch;
  font-family: var(--quote);
  font-size: clamp(1.15rem, 1.7vw, 1.48rem);
  line-height: 1.38;
  color: var(--navy);
}

.life-rector footer {
  margin-top: 0.7rem;
  color: var(--muted);
  font-style: normal;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
}

.admit {
  display: block;
}

.admit .cluster {
  align-items: center;
}

.admit-phone {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.admit-phone:hover {
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.glass-card {
  padding: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(16px);
}

.glass-card p,
.glass-card a {
  color: var(--cream);
}

.where-grid,
.footer-grid,
.doc-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.where article {
  padding-top: 1rem;
  border-top: 1px solid var(--line-strong);
}

.icon {
  width: 1.35rem;
  height: 1.35rem;
  margin-bottom: 0.8rem;
  color: var(--gold-deep);
}

.site-footer {
  padding: 4rem 0 2rem;
  background: var(--navy-deep);
  color: rgba(248, 243, 232, 0.86);
}

.footer-brand {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-brand img {
  width: 4.5rem;
  height: auto;
}

.footer-brand strong {
  display: block;
  color: var(--cream);
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
}

.site-footer a {
  color: var(--cream);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-footer ul {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 0.45rem;
}

.legal {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: var(--content);
  margin: 2.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(248, 243, 232, 0.14);
  color: rgba(248, 243, 232, 0.62);
  font-size: 0.95rem;
}

.page-hero {
  width: var(--content);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vh, 5rem) 0 0.5rem;
  text-align: center;
}

.page-hero h1,
.page-hero .lede {
  margin-inline: auto;
}

.page-hero h1 {
  max-width: 16ch;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
}

.local-nav {
  justify-content: center;
}

.local-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  text-decoration: none;
  background: rgba(255, 253, 248, 0.7);
}

.local-nav a:hover {
  border-color: var(--gold);
}

.ico {
  width: 1.6rem;
  height: 1.6rem;
  color: var(--gold-deep);
}

.card-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1rem;
}

.card-grid .span-2 {
  grid-column: 1 / -1;
}

.icon-card {
  padding: clamp(1.4rem, 2.5vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform var(--mid) var(--ease), box-shadow var(--mid) var(--ease);
}

.icon-card:hover {
  border-color: rgba(141, 109, 22, 0.4);
}

.icon-card p {
  max-width: 68ch;
}

.timeline {
  display: grid;
  gap: 0;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}

.timeline strong {
  color: var(--gold-deep);
  font-family: var(--display);
  font-size: 1.35rem;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

.step-grid article {
  padding: 1.3rem;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--cream);
}

.step-grid span {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--gold);
  font-family: var(--display);
}

.step-grid p,
.doc-cols p {
  color: inherit;
}

.doc-cols article {
  padding: clamp(1.3rem, 2vw, 2rem);
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
}

.doc-cols .doc-list li {
  color: var(--ink);
}

.list-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.list-board a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.4rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--paper);
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}

.list-board a:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.map-frame {
  margin-top: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  aspect-ratio: 16 / 9;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.gate {
  display: grid;
  place-items: center;
  width: var(--content);
  min-height: 62vh;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.gate form {
  width: min(100%, 28rem);
  padding: 2rem;
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.82);
  box-shadow: var(--shadow);
}

.gate label {
  display: block;
  font-weight: 600;
}

.gate input {
  width: 100%;
  min-height: 2.75rem;
  margin-top: 0.45rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.8rem;
  background: white;
  color: var(--navy);
  font: inherit;
}

.gate button {
  margin-top: 1rem;
  border: 0;
  cursor: pointer;
}

.gate .error {
  color: #8a2a2a;
  font-weight: 600;
}

.local-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.local-nav a {
  color: var(--navy);
  font-weight: 600;
  text-underline-offset: 0.25em;
}

.stack {
  display: grid;
  gap: 3rem;
  width: var(--content);
  margin: 0 auto;
  padding: 2rem 0 5rem;
}

.stack article {
  max-width: 78ch;
}

.stack h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.steps,
.doc-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: item;
}

.steps li,
.doc-list li {
  position: relative;
  margin: 0;
  padding: 1rem 0 1rem 3.2rem;
  border-top: 1px solid var(--line);
  counter-increment: item;
}

.steps li::before,
.doc-list li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1rem;
  color: var(--gold-deep);
  font-family: var(--display);
  font-size: 0.95rem;
}

.lists {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 2rem;
  margin-top: 1.5rem;
}

.lists a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3rem;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

.lists a:hover {
  color: var(--gold-deep);
}

.group-label {
  margin: 2rem 0 0;
  color: var(--gold-deep);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.js .reveal.is-pending {
  opacity: 0;
  transform: translateY(8px);
}

.js .reveal.is-pending.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 640ms var(--ease), transform 640ms var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal,
  .js .pillar-order,
  .js .reveal.is-in .pillar-order,
  .btn-ehest::after,
  .icon-card:hover,
  .list-board a:hover {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }
}

@media (max-width: 1100px) {
  .hero,
  .split,
  .life-board,
  .admit,
  .levels,
  .where-grid,
  .footer-grid,
  .lists,
  .doc-cols,
  .card-grid,
  .step-grid,
  .list-board {
    grid-template-columns: 1fr;
  }

  .life-board {
    grid-template-areas:
      "copy"
      "side"
      "quote";
    row-gap: 1.15rem;
  }

  .card-grid .span-2 {
    grid-column: auto;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .hero-mark {
    justify-self: start;
    width: min(16rem, 58vw);
    order: -1;
  }

  .hero {
    min-height: 0;
    padding-top: 1.5rem;
  }

  .levels li {
    padding-right: 0;
  }
}

@media (max-width: 1180px) {
  .nav {
    border-radius: 1.4rem;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--glass-solid);
  }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(8, 18, 38, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--mid) var(--ease);
  }

  body.nav-open .nav-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  body.nav-open .nav-shell {
    z-index: 50;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 55;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    width: min(17rem, 78vw);
    height: 100%;
    max-height: 100dvh;
    overflow-y: auto;
    padding: calc(3.4rem + env(safe-area-inset-top)) 1rem calc(1.25rem + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
    border-left: 1px solid var(--line);
    background: var(--paper);
    box-shadow: -16px 0 36px rgba(13, 27, 61, 0.16);
    transform: translateX(105%);
    visibility: hidden;
    pointer-events: none;
    transition: transform var(--mid) var(--ease), visibility 0s linear var(--mid);
  }

  .nav-links.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform var(--mid) var(--ease), visibility 0s;
  }

  .nav-close {
    display: inline-flex;
    position: absolute;
    top: max(0.7rem, env(safe-area-inset-top));
    right: 0.7rem;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--navy);
    cursor: pointer;
  }

  .nav-close svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  .nav-links a {
    min-height: 2.75rem;
    padding: 0.75rem 0.85rem;
  }

  .nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 56;
    align-items: center;
    justify-content: center;
  }

  .btn-ehest {
    padding-inline: 0.85rem;
    font-size: 0.95rem;
  }

  .legal {
    flex-direction: column;
  }

  .year {
    font-size: 5.5rem;
  }
}

@media (max-width: 900px) {
  .pillar {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 0.85rem;
  }

  .pillar-well {
    height: 12.75rem;
  }

  .pillar-copy {
    width: 100%;
  }
}

@media (max-width: 700px) {
  :root {
    --content: min(1680px, calc(100% - 1.2rem));
    --radius: 1.1rem;
    --space-7: 2.15rem;
    --space-8: 2.6rem;
    --space-9: 3.1rem;
  }

  body {
    font-size: 1.02rem;
    line-height: 1.55;
  }

  .nav-shell {
    padding: max(0.45rem, env(safe-area-inset-top)) max(0.65rem, env(safe-area-inset-right)) 0 max(0.65rem, env(safe-area-inset-left));
  }

  .nav {
    min-height: 3.2rem;
    padding: 0.22rem 0.28rem 0.22rem 0.55rem;
    gap: 0.35rem;
  }

  .nav-brand img {
    height: 1.75rem;
  }

  .nav-links {
    width: min(16.75rem, 78vw);
    padding-top: calc(3.6rem + env(safe-area-inset-top));
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    min-height: 0;
    padding: 0.35rem 0 1.1rem;
    text-align: center;
  }

  .hero-mark {
    order: -1;
    justify-self: center;
    width: min(6.6rem, 32vw);
    margin: 0 auto;
  }

  .hero-mark img {
    filter: drop-shadow(0 10px 14px rgba(13, 27, 61, 0.12));
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(1.85rem, 9.4vw, 2.25rem);
    line-height: 1.08;
    text-align: center;
  }

  .hero .eyebrow {
    margin-bottom: 0.45rem;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .hero .lede {
    margin-top: 0.55rem;
    font-size: 0.98rem;
    text-align: center;
  }

  .hero-actions,
  .cluster {
    justify-content: center;
    margin-top: 0.9rem;
    gap: 0.55rem;
  }

  .hero-actions .btn,
  .btn {
    min-height: 2.6rem;
    padding: 0.5rem 0.95rem;
    font-size: 0.95rem;
  }

  .glyph .hint {
    font-size: 0.17em;
  }

  .motto {
    margin-top: 0.65rem;
    font-size: 1.15rem;
  }

  h2,
  .h-display {
    font-size: clamp(1.45rem, 7vw, 1.85rem);
  }

  h3 {
    font-size: 1.18rem;
  }

  .pillars {
    grid-template-columns: 1fr;
    gap: 2.15rem;
  }

  .pillar {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 0.9rem;
  }

  .pillar-well {
    width: 3.85rem;
    height: 11.5rem;
  }

  .pillar-shaft {
    width: 1.85rem;
    padding-top: 0.85rem;
  }

  .pillar-copy {
    width: 100%;
  }

  .page-hero {
    padding: 0.85rem 0 0.35rem;
  }

  .page-hero h1 {
    max-width: 14ch;
    font-size: clamp(1.7rem, 8.4vw, 2.15rem);
  }

  .page-hero h1::after {
    width: 3.2rem;
    margin-top: 0.7rem;
  }

  .page-crest {
    width: 2.85rem;
    margin-bottom: 0.7rem;
  }

  .page-hero .lede,
  .lede,
  .measure,
  .section-intro > p {
    font-size: 0.98rem;
  }

  .local-nav {
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.95rem;
  }

  .local-nav a {
    min-height: 2.5rem;
    padding: 0.3rem 0.7rem;
    font-size: 0.92rem;
  }

  .year {
    font-size: clamp(2.2rem, 16vw, 2.85rem);
    text-align: center;
  }

  .year small {
    margin-top: 0.35rem;
  }

  .band {
    padding: var(--space-8) 0;
  }

  .band-first {
    padding-top: 1.1rem;
  }

  .split,
  .home-photo {
    gap: 0.85rem;
  }

  .pillars,
  .levels {
    margin-top: 1.15rem;
  }

  .icon-card,
  .faith-card,
  .enroll-card,
  .doc-cols article,
  .grade-board,
  .glass-card,
  .step-grid article {
    padding: 1rem 1.05rem 1.1rem;
  }

  .statement,
  .faith-top,
  .chronicle-lead,
  .law-grid .law-main {
    padding: 1.1rem 1.05rem;
  }

  .chronicle-year {
    font-size: 2.35rem;
  }

  .phrase {
    font-size: 1.28rem;
  }

  .life-claim {
    max-width: none;
    font-size: 1.12rem;
  }

  .life-lead {
    font-size: 0.98rem;
  }

  .life-rector {
    padding: 0.9rem 0 0;
  }

  .life-rector p {
    font-size: 1.12rem;
  }

  .stack {
    gap: 1.75rem;
    padding: 1.1rem 0 2.6rem;
  }

  .stack h2 {
    font-size: 1.55rem;
  }

  .home-photo figure {
    height: 12.5rem;
    border-radius: 1.1rem;
  }

  .school-photos {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 0.7rem;
  }

  .school-photo-large,
  .school-photo-wide {
    grid-row: auto;
    grid-column: auto;
  }

  .school-photos {
    grid-template-rows: none;
  }

  .school-photo {
    min-height: 11rem;
  }

  .school-photo figcaption,
  .home-photo figcaption {
    font-size: 0.95rem;
    bottom: 0.7rem;
    left: 0.75rem;
    right: 0.75rem;
  }

  .map-frame {
    aspect-ratio: 4 / 3;
    margin-top: 1rem;
    border-radius: 1rem;
  }

  .list-stage,
  .list-placeholder,
  .list-stage iframe {
    min-height: 16rem;
  }

  .list-board a,
  .grade-links a {
    min-height: 2.7rem;
  }

  .gate {
    min-height: 0;
    padding: 1.1rem 0 2.4rem;
    align-items: start;
  }

  .gate form {
    width: 100%;
    padding: 1.15rem 1.05rem 1.25rem;
  }

  .gate h1 {
    font-size: 1.7rem;
  }

  .site-footer {
    padding: 2rem 0 1.5rem;
  }

  .legal {
    margin-top: 1.4rem;
  }

  .page-inner #mision,
  .page-inner #filosofia,
  .page-inner #vision,
  .page-inner #resena,
  .page-inner #niveles,
  .page-inner #listas,
  .page-inner #admision,
  .page-inner #antiguo,
  .page-inner #nuevo,
  #espacios {
    scroll-margin-top: 4.6rem;
  }
}

@media (max-width: 420px) {
  .nav-brand img {
    height: 1.7rem;
  }

  .btn-ehest {
    font-size: 0;
  }

  .btn-ehest::before {
    content: "eHEST";
    font-size: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-overlay,
  .nav-links {
    transition: none;
  }
}

@supports not (backdrop-filter: blur(8px)) {
  .nav,
  .glass-card {
    background: var(--glass-solid);
  }
}

/* Páginas interiores: Nosotros, Académico, Admisiones.
   No altera .sigla, .intro ni la animación del hero. */

.page-inner {
  overflow-x: clip;
}

.page-inner h1,
.page-inner h2,
.page-inner h3 {
  text-wrap: balance;
}

.page-crest {
  width: 4.25rem;
  height: auto;
  margin: 0 auto 1.15rem;
}

.page-hero h1 {
  color: var(--navy);
}

.page-hero h1::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 2px;
  margin: 1.15rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.page-hero {
  padding-bottom: clamp(1.25rem, 3vh, 2.25rem);
}

.page-hero .hero-actions {
  justify-content: center;
}

.page-inner #mision,
.page-inner #filosofia,
.page-inner #vision,
.page-inner #resena,
.page-inner #niveles,
.page-inner #listas,
.page-inner #admision,
.page-inner #antiguo,
.page-inner #nuevo {
  scroll-margin-top: 6.5rem;
}

.band-first {
  padding-top: clamp(1.25rem, 3vw, 2.75rem);
}

.section-intro {
  align-items: start;
  margin-bottom: 1.75rem;
}

.section-intro > p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
}

.lift {
  transition: transform var(--mid) var(--ease), box-shadow var(--mid) var(--ease);
}

.lift:hover {
  border-color: rgba(141, 109, 22, 0.45);
}

.statement {
  padding: clamp(1.6rem, 3vw, 2.8rem);
  border-radius: var(--radius);
  border-top: 2px solid var(--gold);
  background: var(--navy);
  color: var(--cream);
}

.statement-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.statement .eyebrow,
.statement .ico {
  color: var(--gold);
}

.statement h2 {
  color: var(--cream);
}

.cols-2 {
  margin: 0;
  columns: 2;
  column-gap: 2.75rem;
  color: rgba(248, 243, 232, 0.9);
  font-size: clamp(1.05rem, 1.25vw, 1.18rem);
  line-height: 1.65;
}

.faith-top,
.faith-card,
.vision-pair .glass-card,
.law-grid article,
.grade-board,
.enroll-card,
.chronicle li {
  min-width: 0;
}

.faith-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
  align-items: start;
  margin-top: 1.75rem;
  padding: clamp(1.5rem, 3vw, 2.6rem);
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--cream);
}

.faith-top .ico {
  color: var(--gold);
}

.faith-top p,
.faith-card p,
.law-grid p,
.enroll-card > p {
  margin: 0;
}

.faith-top p {
  color: rgba(248, 243, 232, 0.9);
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.65;
}

@media (min-width: 1101px) {
  .faith-top p {
    columns: 2;
    column-gap: 2.5rem;
    column-fill: balance;
  }
}

.faith-rest {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  align-items: start;
  margin-top: 1rem;
}

.faith-card {
  padding: clamp(1.4rem, 2.4vw, 2.15rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.faith-card-gold {
  background: var(--cream-2);
  border-color: rgba(141, 109, 22, 0.28);
}

.faith-card p,
.law-grid article p,
.enroll-card > p {
  margin-top: 0.85rem;
  line-height: 1.65;
}

.vision-pair {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  margin-top: 2rem;
}

.vision-pair .ico {
  color: var(--gold);
}

.vision-pair .glass-card p {
  margin: 0.8rem 0 0;
  font-size: clamp(1.05rem, 1.3vw, 1.18rem);
  line-height: 1.65;
}

.chronicle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.chronicle-lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(7.5rem, 0.28fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.6rem);
  border-radius: var(--radius);
  background:
    radial-gradient(520px 240px at 0% 0%, rgba(212, 175, 55, 0.22), transparent 56%),
    var(--navy);
  color: var(--cream);
}

.chronicle-year {
  margin: 0;
  color: var(--gold);
  font-family: var(--display);
  font-size: clamp(3.2rem, 6vw, 5.5rem);
  line-height: 0.85;
}

.chronicle-lead > p:last-child {
  margin: 0;
  color: rgba(248, 243, 232, 0.9);
  font-size: clamp(1.05rem, 1.3vw, 1.18rem);
  line-height: 1.65;
}

.chronicle li:not(.chronicle-lead) {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.3rem 1.35rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.chronicle li:not(.chronicle-lead):nth-child(4n + 1) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent 46%),
    var(--cream-2);
  border-color: rgba(212, 175, 55, 0.4);
}

.chronicle-kicker {
  margin: 0;
  color: var(--gold-deep);
  font-family: var(--display);
  font-size: 1.2rem;
  line-height: 1.1;
}

.motto-bits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  margin: 0;
  color: var(--navy);
  font-family: var(--display);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.motto-bits span {
  display: inline-flex;
  align-items: center;
}

.motto-bits span + span {
  padding-left: 0.9rem;
  border-left: 1px solid rgba(212, 175, 55, 0.7);
}

.chronicle li p:last-child {
  margin: 0;
  line-height: 1.6;
}

.law-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
}

.law-grid article {
  padding: clamp(1.35rem, 2.4vw, 2.1rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.law-grid .law-main {
  grid-column: 1 / -1;
  border-color: transparent;
  background:
    radial-gradient(480px 200px at 100% 0%, rgba(212, 175, 55, 0.18), transparent 55%),
    var(--navy);
  color: var(--cream);
}

.law-main .ico {
  color: var(--gold);
}

.law-main .cols-2 {
  margin-top: 0.9rem;
}

.law-grid .law-note {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent 42%),
    var(--cream-2);
  border-color: rgba(212, 175, 55, 0.45);
}

.grade-boards {
  display: grid;
  grid-template-columns: 0.9fr 1fr 1.12fr;
  gap: 1rem;
  align-items: stretch;
}

.grade-board {
  padding: 1.25rem 1.15rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.grade-board h3 {
  margin-bottom: 0.85rem;
}

.grade-board-accent {
  border-color: transparent;
  background:
    radial-gradient(280px 160px at 100% 0%, rgba(212, 175, 55, 0.2), transparent 60%),
    var(--navy);
  color: var(--cream);
}

.grade-links {
  display: grid;
  gap: 0.45rem;
}

.grade-links a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.7rem;
  border-radius: 0.85rem;
  background: rgba(13, 27, 61, 0.035);
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--fast) var(--ease), background var(--fast) var(--ease);
}

.grade-links a:hover {
  transform: translateY(-2px);
  background: rgba(212, 175, 55, 0.18);
}

.grade-links small {
  margin-left: auto;
  color: var(--gold-deep);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.grade-board-accent .grade-links a {
  background: rgba(255, 255, 255, 0.06);
  color: var(--cream);
}

.grade-board-accent .grade-links a:hover {
  background: rgba(212, 175, 55, 0.22);
}

.grade-board-accent .grade-links small,
.grade-board-accent .ico {
  color: var(--gold);
}

.step-grid .ico {
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.step-grid article {
  transition: transform var(--mid) var(--ease), box-shadow var(--mid) var(--ease);
}

.step-grid article:hover {
  outline: 1px solid rgba(212, 175, 55, 0.55);
  outline-offset: -1px;
}

.step-grid a {
  color: var(--gold);
  text-underline-offset: 0.2em;
}

.step-grid p {
  line-height: 1.45;
}

.enroll-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 1rem;
  align-items: start;
}

.enroll-card {
  padding: clamp(1.4rem, 2.4vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.enroll-card h2 {
  margin-top: 0.85rem;
  font-size: clamp(1.65rem, 2.3vw, 2.35rem);
}

.enroll-navy {
  border-color: transparent;
  background:
    radial-gradient(360px 180px at 0% 0%, rgba(212, 175, 55, 0.2), transparent 58%),
    var(--navy);
  color: var(--cream);
}

.enroll-navy .ico,
.enroll-navy .doc-list li::before {
  color: var(--gold);
}

.enroll-navy > p,
.enroll-navy .doc-list li {
  color: rgba(248, 243, 232, 0.9);
}

.enroll-navy .doc-list li {
  border-top-color: rgba(248, 243, 232, 0.16);
}

.enroll-navy a {
  color: var(--gold);
}

.doc-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(5, auto);
  grid-auto-flow: column;
  column-gap: 1.35rem;
}

.enroll-close {
  margin-top: 1.2rem;
  padding-top: 1.05rem;
  border-top: 1px solid var(--line);
}

.contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.85rem;
  margin-top: 1rem;
}

.contact-line a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-line a:hover {
  color: var(--gold-deep);
}

.contact-line .ico {
  flex: 0 0 auto;
}

.ico-sm {
  width: 1.05rem;
  height: 1.05rem;
}

@media (max-width: 1100px) {
  .faith-top,
  .faith-rest,
  .vision-pair,
  .chronicle,
  .chronicle-lead,
  .law-grid,
  .grade-boards,
  .enroll-grid,
  .doc-two {
    grid-template-columns: 1fr;
  }

  .law-main,
  .chronicle-lead {
    grid-column: auto;
  }

  .cols-2,
  .law-main .cols-2 {
    columns: 1;
  }

  .doc-two {
    grid-auto-flow: row;
    grid-template-rows: none;
  }

  .motto-bits span + span {
    padding-left: 0;
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lift,
  .lift:hover,
  .step-grid article,
  .step-grid article:hover,
  .grade-links a,
  .grade-links a:hover,
  .vision-pair .glass-card,
  .vision-pair .glass-card:hover {
    transform: none;
    transition: none;
    animation: none;
  }
}

#espacios { scroll-margin-top:6.5rem; }

.era {
  margin-top: 1.75rem;
}

.era-rail {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0.2rem;
}

.era-shift {
  appearance: none;
  display: grid;
  place-items: center;
  width: 2.75rem;
  border: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  border-radius: 999px;
}

.era-shift svg {
  width: 1.45rem;
  height: 1.45rem;
}

.era-shift:hover {
  color: var(--gold-deep);
}

.era-shift:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.era-tabs {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.15rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  margin: 0;
  padding: 0.2rem 0 0;
  border-bottom: 2px solid var(--gold);
  scrollbar-width: none;
}

.era-tabs::-webkit-scrollbar {
  display: none;
}

.era-tab {
  appearance: none;
  position: relative;
  flex: 1 1 0;
  min-width: 4.4rem;
  margin: 0 0 -2px;
  padding: 0.7rem 0.5rem 1.05rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.3vw, 1.7rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  scroll-snap-align: center;
  transition: color 180ms var(--ease);
}

.era-tab:hover {
  color: var(--navy);
}

.era-tab:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.era-tab[aria-selected="true"] {
  color: var(--gold-deep);
}

.era-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 0;
  height: 4px;
  border-radius: 4px 4px 0 0;
  background: var(--gold);
}

.era-story {
  max-width: 68ch;
  margin: 1.85rem auto 0;
  min-height: 11rem;
}

.era-panel {
  min-width: 0;
}

.js .era-panel {
  display: none;
}

.js .era-panel.is-open {
  display: block;
}

.js .era-panel[hidden] {
  display: none !important;
}

.era-mark {
  margin: 0 0 0.7rem;
  color: var(--gold-deep);
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 0.95;
}

.era-panel p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.3vw, 1.18rem);
  line-height: 1.65;
}

.era-panel p + p {
  margin-top: 1rem;
}

@media (max-width: 700px) {
  .era {
    margin-top: 1.1rem;
  }

  .era-rail {
    grid-template-columns: 1fr;
  }

  .era-shift {
    display: none;
  }

  .era-tabs {
    justify-content: flex-start;
    gap: 0.15rem;
    padding-bottom: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .era-tab {
    flex: 0 0 auto;
    min-width: 3.6rem;
    padding: 0.55rem 0.55rem 0.85rem;
    font-size: 1.05rem;
  }

  .era-tab[aria-selected="true"]::after {
    left: 22%;
    right: 22%;
    height: 3px;
  }

  .era-story {
    margin-top: 1.35rem;
    min-height: 0;
  }

  .era-mark {
    font-size: 1.45rem;
  }

  .era-panel p {
    font-size: 0.98rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .era-tab {
    transition: none;
    transform: none;
  }
}

.school-photos { display:grid; grid-template-columns:1.25fr 1fr 1fr; grid-template-rows:15rem 13rem; gap:1rem; margin-top:2rem; }
.school-photo,.home-photo figure { position:relative; margin:0; overflow:hidden; border-radius:1.4rem; background:var(--navy); box-shadow:var(--shadow); }
.school-photo img,.home-photo img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .6s var(--ease); }
.school-photo:hover img,.home-photo figure:hover img { transform:scale(1.035); }
.school-photo::after,.home-photo figure::after { content:""; position:absolute; inset:45% 0 0; background:linear-gradient(transparent,rgba(6,18,43,.72)); pointer-events:none; }
.school-photo figcaption,.home-photo figcaption { position:absolute; z-index:1; bottom:1rem; left:1rem; right:1rem; color:white; font-family:var(--display); font-size:1.1rem; text-shadow:0 1px 3px #14213d; }
.school-photo-large { grid-row:span 2; }.school-photo-wide { grid-column:span 2; }
.home-photo { align-items:center; gap:2rem; }.home-photo figure { height:21rem; border-radius:2rem .7rem 2rem .7rem; }
@media (max-width: 700px) {
  .school-photos {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 0.7rem;
  }

  .school-photo-large,
  .school-photo-wide {
    grid-row: auto;
    grid-column: auto;
  }

  .home-photo figure {
    height: 12.5rem;
  }
}

.list-stage-actions { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.7rem 1rem; color:var(--navy); font-size:.86rem; font-weight:600; }
.list-stage-actions a { padding:.55rem .85rem; border-radius:.7rem; text-decoration:none; }
.list-stage-actions a[hidden] { display:none; }

.list-split {
  display: grid;
  grid-template-columns: minmax(17rem, 23.5rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.list-index .grade-boards {
  grid-template-columns: 1fr;
}

.list-index .grade-links a[aria-current="true"] {
  background: rgba(212, 175, 55, 0.34);
  box-shadow: inset 3px 0 0 var(--gold-deep);
}

.grade-board-accent .grade-links a[aria-current="true"] {
  background: rgba(212, 175, 55, 0.3);
  color: var(--cream);
  box-shadow: inset 3px 0 0 var(--gold);
}

.list-stage {
  min-height: 28rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(212, 175, 55, 0.16), transparent 58%),
    var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.list-stage iframe {
  display: block;
  width: 100%;
  height: 72vh;
  min-height: 36rem;
  border: 0;
  background: var(--cream);
}

.list-placeholder[hidden],
.list-stage iframe[hidden] {
  display: none !important;
}

.list-placeholder {
  display: grid;
  place-items: center;
  min-height: 28rem;
  padding: 2rem 1.5rem;
  text-align: center;
}

.list-placeholder img {
  width: 3.4rem;
  height: auto;
  margin: 0 auto 0.9rem;
}

.list-placeholder strong {
  display: block;
  color: var(--navy);
  font-family: var(--display);
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  font-weight: 600;
}

.list-placeholder p {
  max-width: 28ch;
  margin: 0.45rem auto 0;
  color: var(--muted);
}

@media (min-width: 1101px) {
  .list-index {
    position: sticky;
    top: 6.25rem;
    max-height: calc(100vh - 7.5rem);
    overflow: auto;
    padding-bottom: 0.25rem;
  }
}

@media (max-width: 1100px) {
  .list-split {
    grid-template-columns: 1fr;
  }

  .list-stage,
  .list-placeholder,
  .list-stage iframe {
    min-height: 32rem;
  }
}

.lista-wrap {
  width: min(52rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1.15rem, 3vh, 2.4rem) 0 3.5rem;
}

html.lista-panel .nav-shell,
html.lista-panel .site-footer,
html.lista-panel .skip,
html.lista-panel .lista-back {
  display: none !important;
}

html.lista-panel body {
  background: var(--cream);
}

html.lista-panel .lista-wrap {
  width: min(52rem, 100%);
  padding: 0.7rem;
}

.lista-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem 1rem;
  margin-bottom: 0.85rem;
}

.lista-actions .btn {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.lista-back {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

.lista-back:hover {
  color: var(--gold-deep);
}

.lista-sheet {
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.lista-mast {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.35rem 1.15rem;
  align-items: center;
  padding: 1.35rem 1.4rem 1.15rem;
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(212, 175, 55, 0.32), transparent 60%),
    var(--navy);
  color: var(--cream);
}

.lista-mast img {
  grid-column: 1;
  grid-row: 1;
  width: 4.75rem;
  height: auto;
}

.lista-brand {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.lista-name {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  letter-spacing: 0.03em;
}

.lista-former {
  margin: 0.12rem 0 0;
  color: var(--gold);
  font-family: var(--quote);
  font-size: 1.22rem;
  line-height: 1.2;
}

.lista-motto {
  margin: 0.28rem 0 0;
  color: rgba(248, 243, 232, 0.82);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lista-grade-block {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(212, 175, 55, 0.45);
}

.lista-kicker {
  margin: 0 0 0.2rem;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lista-grade-block h1 {
  margin: 0;
  color: var(--cream);
  font-size: clamp(2rem, 4vw, 2.85rem);
}

.lista-body {
  padding: 0.4rem 1.35rem 1.4rem;
}

.lista-block,
.lista-note,
.lista-hours {
  margin-top: 1.25rem;
}

.lista-block h2,
.lista-note h2,
.lista-hours h2 {
  margin: 0 0 0.35rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.85);
  color: var(--navy);
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lista-items {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lista-items li {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.48rem 0;
  border-bottom: 1px solid var(--line);
}

.lista-items li.is-plain {
  grid-template-columns: minmax(0, 1fr);
}

.lista-block.is-marks .lista-items li.is-plain {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}

.lista-block.is-marks .lista-items li.is-plain::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: var(--gold-deep);
}

.lista-items p,
.lista-note p,
.lista-legal {
  margin: 0;
}

.lista-qty {
  color: var(--gold-deep);
  font-family: var(--display);
  font-size: 1.02rem;
  text-align: right;
}

.lista-note {
  padding: 0.9rem 1rem 1rem;
  border-radius: 0.9rem;
  background: var(--cream);
}

.lista-note h2 {
  border-bottom-color: transparent;
  padding-bottom: 0;
}

.lista-hours dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin: 0.7rem 0 0;
}

.lista-hours div {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--cream);
}

.lista-hours dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lista-hours dd {
  margin: 0.15rem 0 0;
  color: var(--navy);
  font-family: var(--display);
  font-size: 1.25rem;
}

.lista-legal {
  margin-top: 1.35rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

@media (max-width: 560px) {
  .lista-mast {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .lista-mast img,
  .lista-brand,
  .lista-grade-block {
    grid-column: 1;
    grid-row: auto;
  }

  .lista-hours dl {
    grid-template-columns: 1fr;
  }
}

@media print {
  @page {
    size: letter;
    margin: 12mm;
  }

  body.page-lista {
    background: white !important;
  }

  body.page-lista .nav-shell,
  body.page-lista .site-footer,
  body.page-lista .skip,
  body.page-lista .lista-actions,
  body.page-academico .nav-shell,
  body.page-academico .site-footer,
  body.page-academico .skip,
  body.page-academico .page-hero,
  body.page-academico #niveles,
  body.page-academico .list-index,
  body.page-academico .section-intro,
  body.page-academico .list-placeholder {
    display: none !important;
  }

  body.page-lista .lista-wrap {
    width: auto;
    margin: 0;
    padding: 0;
  }

  body.page-lista .lista-sheet {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body.page-lista .lista-mast {
    background: white !important;
    color: #0d1b3d !important;
    border-bottom: 2px solid #d4af37;
  }

  body.page-lista .lista-name,
  body.page-lista .lista-grade-block h1,
  body.page-lista .lista-motto {
    color: #0d1b3d !important;
  }

  body.page-lista .lista-former,
  body.page-lista .lista-kicker {
    color: #8d6d16 !important;
  }

  body.page-academico .list-split,
  body.page-academico .band,
  body.page-academico .frame {
    display: block;
    width: auto;
    margin: 0;
    padding: 0;
  }

  body.page-academico .list-stage {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: white;
    overflow: visible;
  }

  body.page-academico .list-stage iframe {
    height: auto !important;
    min-height: 100vh;
  }
}
