/* ==========================================================================
   Colegio Galileo — public site
   Mobile first. Navy + gold brand, Lato + Public Sans.
   ========================================================================== */

:root {
  /* brand */
  --navy: #003679;
  --navy-deep: #00224f;
  --gold: #af911e;
  --gold-text: #7e6711;     /* gold for text on white, 4.9:1 */
  --gold-bright: #e3c452;   /* gold for text on navy, 6.8:1 */
  --gold-soft: #f6efd2;

  /* neutrals */
  --ink: #13213a;
  --muted: #47566f;
  --paper: #ffffff;
  --mist: #eef2f8;
  --line: #d8dfea;

  /* type */
  --font-display: 'Lato', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Public Sans', 'Segoe UI', system-ui, sans-serif;

  /* shape + space */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --gutter: 16px;
  --section: clamp(3rem, 8vw, 6rem);
  --shadow: 0 1px 2px rgba(0, 34, 79, .06), 0 8px 24px -12px rgba(0, 34, 79, .25);
}

@media (min-width: 700px) { :root { --gutter: 32px; } }

/* --------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.no-scroll { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: .18em; }
a:hover { color: var(--navy-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
[x-cloak] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .6em; color: var(--navy-deep); }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--navy-deep); padding: .5rem 1rem; border-radius: var(--radius-sm); }
.skip:focus { left: 8px; }

/* --------------------------------------------------------------- announcement bar */
.ann-bar {
  display: flex; align-items: center; gap: .75rem;
  background: var(--gold); color: var(--navy-deep);
  padding: .5rem var(--gutter); text-decoration: none;
  font-size: .9375rem; font-weight: 600;
}
.ann-bar:hover { color: var(--navy-deep); background: #c2a22a; }
.ann-bar__label { display: inline-flex; align-items: center; gap: .45rem; flex: none; font-family: var(--font-display); font-weight: 700; }
.ann-bar__label span { display: none; }
@media (min-width: 600px) { .ann-bar__label span { display: inline; } }
.ann-bar__viewport { flex: 1; overflow: hidden; white-space: nowrap; mask-image: linear-gradient(90deg, transparent, #000 2%, #000 96%, transparent); }
.ann-bar__track { display: inline-flex; }
.ann-bar__track.is-moving { animation: marquee var(--marquee-duration, 30s) linear infinite; }
.ann-bar:hover .ann-bar__track.is-moving, .ann-bar:focus-visible .ann-bar__track.is-moving { animation-play-state: paused; }
.ann-bar__group { display: inline-flex; }
.ann-bar__item { padding-right: 2.5rem; position: relative; }
.ann-bar__item::after { content: '★'; position: absolute; right: 1rem; font-size: .7em; top: .25em; opacity: .7; }
.ann-bar__more { flex: none; font-size: .8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------- header */
.cta-strip { background: var(--navy-deep); color: #fff; font-size: .9375rem; }
.cta-strip__inner { display: flex; justify-content: center; gap: 1.25rem; padding-block: .45rem; white-space: nowrap; }
.cta-link__label { display: none; }
@media (min-width: 480px) { .cta-link__label { display: inline; margin-right: .3em; } }
.cta-link { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; }
.cta-link i { color: var(--gold-bright); }
.cta-link strong { font-weight: 700; letter-spacing: .02em; }
.cta-link:hover { color: var(--gold-bright); }
.cta-link:hover span { text-decoration: underline; }

.brand { display: flex; justify-content: center; padding: 1.1rem var(--gutter) .9rem; background: var(--paper); }
.brand__logo { width: clamp(170px, 40vw, 250px); height: auto; }

/* --------------------------------------------------------------- menu: one line, scrolls sideways */
.menu {
  position: sticky; top: 0; z-index: 40;
  background: var(--navy);
  box-shadow: 0 2px 0 var(--gold);
}
.menu__scroller {
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.menu__scroller::-webkit-scrollbar { display: none; }
.menu__list {
  list-style: none; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: stretch; gap: .25rem;
  width: max-content; min-width: 100%; max-width: none;
  justify-content: center;
}
.menu__list li { flex: none; display: flex; }
.menu__link {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .95rem .85rem; color: #fff; text-decoration: none; white-space: nowrap;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s, background-color .2s;
}
.menu__link i { font-size: .85em; color: var(--gold-bright); opacity: .9; }
.menu__link:hover { color: var(--gold-bright); background: rgba(255, 255, 255, .06); }
.menu__link.is-active { border-bottom-color: var(--gold-bright); color: var(--gold-bright); }

/* contextual menu: section items lead, the rest of the site follows, muted */
.menu--context .menu__list { justify-content: flex-start; }
@media (min-width: 900px) { .menu--context .menu__list { justify-content: center; } }
.menu__context {
  align-items: center; gap: .5rem; padding: 0 .85rem; margin-right: .25rem;
  background: var(--gold); color: var(--navy-deep);
  font-family: var(--font-display); font-weight: 800; white-space: nowrap;
}
.menu__link--home span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* --------------------------------------------------------------- hero 1: animated name */
.hero { position: relative; overflow: hidden; }
.hero-1 {
  background:
    radial-gradient(ellipse 60% 70% at 85% 10%, rgba(175, 145, 30, .28), transparent 70%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(255, 255, 255, .08), transparent 70%),
    var(--navy);
  color: #fff;
  min-height: clamp(214px, 39vh, 391px); /* mobile: original clamp(340px, 62vh, 620px) x 0.7 x 0.9 */
  display: grid; align-items: center;
  isolation: isolate;
}
/* subtle texture: fine film grain over the navy */
.hero-1::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  2.2 0 0 0 -.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  opacity: .14;
}
.hero-1__inner { padding-block: 2.5rem; text-align: center; }
@media (min-width: 700px) {
  .hero-1 { min-height: clamp(272px, 49.6vh, 496px); } /* desktop: 20% lower than the original */
  .hero-1__inner { padding-block: 3rem; }
}
.hero-1__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3rem, 13vw, 9.5rem); line-height: .95; letter-spacing: -.02em;
  color: #fff; margin: 0;
}
.hero-1__title .word { display: inline-block; white-space: nowrap; overflow: hidden; padding-bottom: .08em; }
.hero-1__title .char { display: inline-block; }
.hero-1__stars { display: flex; justify-content: center; gap: .9rem; margin: 1.6rem 0 1.2rem; color: var(--gold-bright); font-size: clamp(1rem, 2.4vw, 1.4rem); }

/* --------------------------------------------------------------- hero 2: carousel 16:9 */
.hero-2 { background: var(--navy-deep); padding-block: .75rem 1rem; }
@media (min-width: 900px) { .hero-2 { padding: 1rem; } }
.carousel { position: relative; overflow: hidden; }
.carousel__track { display: flex; transition: transform .8s cubic-bezier(.65, 0, .35, 1); }
.carousel__slide { flex: 0 0 100%; margin: 0; padding: 0 .375rem; }
@media (max-width: 899px) { .carousel__slide { padding: 0; } }
.carousel__slide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 900px) { .carousel__slide img { border-radius: var(--radius); } }
.carousel__dots { display: flex; justify-content: center; gap: .5rem; padding-top: .8rem; }
.carousel__dot { width: 10px; height: 10px; border-radius: 99px; border: 0; padding: 0; cursor: pointer; background: rgba(255, 255, 255, .35); transition: width .3s, background-color .3s; }
.carousel__dot.is-active { width: 28px; background: var(--gold-bright); }

/* --------------------------------------------------------------- hero 3: panoramic 10:1 */
.hero-3 { background: var(--navy-deep); }
.pan { overflow: hidden; height: clamp(150px, 26vw, 460px); }
@media (max-width: 699px) { .pan { height: clamp(225px, 39vw, 690px); } } /* mobile: 50% taller */
.pan__img { height: 100%; width: auto; max-width: none; will-change: transform; }

/* --------------------------------------------------------------- sections */
.section { padding-block: var(--section); }
.section--mist { background: var(--mist); }
.section__title { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; }
.section__lead { color: var(--muted); max-width: 60ch; margin-top: -.6rem; margin-bottom: 2rem; font-size: 1.125rem; }

/* welcome */
.welcome__grid { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .welcome__grid { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; } }
.welcome__title { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; color: var(--navy); margin: 0; }
.welcome__text { font-size: clamp(1.125rem, 2vw, 1.3rem); line-height: 1.6; max-width: 60ch; }
.facts { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact { background: var(--paper); padding: 1.1rem 1rem; display: grid; gap: .15rem; }
.fact i { color: var(--gold); font-size: 1.35rem; margin-bottom: .4rem; }
.fact strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--navy-deep); line-height: 1.2; }
.fact span { color: var(--muted); font-size: .9375rem; line-height: 1.4; }

/* shortcuts */
.shortcuts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
@media (min-width: 700px) { .shortcuts { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .shortcuts { grid-template-columns: repeat(5, 1fr); gap: 1.25rem; } }
.shortcut {
  display: flex; flex-direction: column; height: 100%;
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: var(--navy-deep); box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.shortcut:hover { transform: translateY(-4px); color: var(--navy); box-shadow: 0 2px 4px rgba(0, 34, 79, .08), 0 18px 32px -14px rgba(0, 34, 79, .35); }
.shortcut__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.shortcut__label { display: flex; align-items: center; gap: .55rem; padding: .85rem .95rem; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; line-height: 1.2; border-top: 3px solid var(--gold); flex: 1; }
.shortcut__label i { color: var(--gold-text); }

/* results: lazy youtube grid */
.videos { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .videos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .videos { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } .videos--pairs { grid-template-columns: repeat(2, 1fr); } }
.video { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; border-radius: var(--radius); overflow: hidden; background: var(--navy-deep); aspect-ratio: 16 / 9; }
.video__thumb { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s, transform .6s ease; }
.video:hover .video__thumb { opacity: 1; transform: scale(1.04); }
.video__play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--navy-deep); font-size: 1.3rem; box-shadow: 0 0 0 8px rgba(175, 145, 30, .3); transition: transform .3s; }
.video__play i { margin-left: 4px; }
.video:hover .video__play { transform: scale(1.1); }
.video__title { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem .9rem .7rem; color: #fff; text-align: left; font-weight: 600; background: linear-gradient(transparent, rgba(0, 20, 50, .85)); }

.video-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: var(--gutter); }
.video-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 20, 50, .88); }
.video-modal__box { position: relative; width: min(1100px, 100%); aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); }
.video-modal__box iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.video-modal__close, .popup__close {
  position: absolute; top: -18px; right: -10px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--gold); color: var(--navy-deep); font-size: 1.2rem; box-shadow: var(--shadow);
}

/* extras: stacked image links */
.extras { display: grid; gap: 1.5rem; max-width: 760px; }
.extra { display: block; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s ease; }
a.extra:hover { transform: translateY(-3px); }
.extra img { width: 100%; }

/* --------------------------------------------------------------- pop up */
.popup { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 2rem var(--gutter); }
.popup__backdrop { position: absolute; inset: 0; background: rgba(0, 20, 50, .8); }
.popup__box { position: relative; width: min(440px, 100%); }
.popup__box img { width: 100%; max-height: 82vh; object-fit: contain; border-radius: var(--radius-lg); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.popup__close { right: -8px; top: -14px; }

/* --------------------------------------------------------------- inner pages */
.page-head { background: var(--navy); color: #fff; padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(2rem, 5vw, 3.5rem); position: relative; }
.page-head { border-bottom: 3px solid var(--gold); }
.page-head__section { display: inline-flex; align-items: center; gap: .5rem; color: var(--gold-bright); font-weight: 600; margin-bottom: .8rem; }
.page-head__title { color: #fff; font-size: clamp(2.1rem, 6.5vw, 4.25rem); font-weight: 800; margin: 0; max-width: 20ch; }
.page-head__lead { color: rgba(255, 255, 255, .85); font-size: clamp(1.1rem, 2.2vw, 1.3rem); max-width: 56ch; margin: 1rem 0 0; }
.page-banner { margin-top: clamp(1.25rem, 3vw, 2rem); }
.page-banner img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 5 / 1; object-fit: cover; }
@media (max-width: 599px) { .page-banner img { aspect-ratio: 3 / 1; } }

.page-body { padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--section); }
.prose { max-width: 70ch; }
.prose > * + h2 { margin-top: 2.6rem; }
.prose h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); color: var(--navy); }
.prose h3 { font-size: 1.3rem; color: var(--navy-deep); margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .5rem; }
.prose li::marker { color: var(--gold-text); font-weight: 700; }
.prose strong, .prose b { color: var(--navy-deep); }
.prose .lead { font-size: clamp(1.15rem, 2.2vw, 1.35rem); color: var(--navy-deep); line-height: 1.55; }
.prose table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--line); }
.prose th { color: var(--navy); font-family: var(--font-display); }

.split { display: grid; gap: 2rem; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3.5rem; align-items: start; } .split--reverse { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.figure { margin: 0; }
.figure img { border-radius: var(--radius-lg); width: 100%; box-shadow: var(--shadow); }
.figure figcaption { color: var(--muted); font-size: .9rem; margin-top: .6rem; }
.sticky-figure { position: sticky; top: 5rem; }

.quote {
  margin: 2.5rem 0; padding: 1.6rem;
  background: var(--gold-soft); border-radius: var(--radius-lg);
  font-family: var(--font-display); font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.35; color: var(--navy-deep); font-weight: 600;
}
.quote footer { font-family: var(--font-body); font-size: 1rem; font-weight: 400; color: var(--muted); margin-top: .7rem; }

/* gallery */
.gallery { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); margin-top: 2.5rem; }
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }

/* icon list: principles, values, benefits */
.icon-list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .9rem; }
@media (min-width: 800px) { .icon-list--cols { grid-template-columns: 1fr 1fr; } }
.icon-list > li { display: grid; grid-template-columns: 2.6rem 1fr; gap: .9rem; align-items: start; margin: 0; padding: 1rem; border-radius: var(--radius); background: var(--mist); }
.icon-list > li > i { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--gold-bright); font-size: 1.05rem; }
.icon-list strong { display: block; font-family: var(--font-display); font-size: 1.12rem; color: var(--navy-deep); }
.icon-list p { margin: .2rem 0 0; color: var(--ink); }
/* nested list inside an item (e.g. Proactividad) */
.icon-list ul { list-style: disc; margin: .6rem 0 0; padding-left: 1.2rem; display: grid; gap: .35rem; }
.icon-list ul li { margin: 0; padding: 0; background: none; }

/* pillars (EMOH) */
.pillars { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 1rem; }
@media (min-width: 800px) { .pillars { grid-template-columns: 1fr 1fr; } }
.pillar { padding: 1.4rem; border-radius: var(--radius-lg); background: var(--navy); color: #fff; margin: 0; }
.pillar__letter { font-family: var(--font-display); font-weight: 800; font-size: 3.2rem; line-height: 1; color: var(--gold-bright); display: block; margin-bottom: .5rem; }
.pillar h3 { color: #fff; margin: 0 0 .5rem; font-size: 1.3rem; }
.pillar p { margin: 0; color: rgba(255, 255, 255, .88); }

/* subject areas */
.areas { list-style: none; padding: 0; margin: 2rem 0 3rem; display: grid; gap: .9rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .areas { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .areas { grid-template-columns: repeat(5, 1fr); } }
.area { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--paper); box-shadow: var(--shadow); }
.area img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.area span { display: block; padding: .7rem .8rem; font-family: var(--font-display); font-weight: 700; color: var(--navy-deep); border-top: 1px solid var(--line); line-height: 1.2; }

/* steps (admission): a real sequence, so numbered */
.steps { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 1rem; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { counter-increment: step; margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); box-shadow: var(--shadow); }
.step img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.step__body { padding: 1rem 1.1rem 1.2rem; display: flex; align-items: center; gap: .8rem; }
.step__body::before { content: counter(step); flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--navy-deep); font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
.step__body strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--navy-deep); line-height: 1.2; }

/* accounts + fees */
.accounts { display: grid; gap: 1rem; margin: 1.5rem 0; }
@media (min-width: 800px) { .accounts { grid-template-columns: 1fr 1fr; } }
.account { padding: 1.3rem 1.4rem; border-radius: var(--radius-lg); border: 2px solid var(--gold); background: var(--paper); }
.account p { margin: 0; }
.account__title { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--navy-deep); margin-bottom: .6rem !important; }
.account__title i { color: var(--gold-text); }
.account__bank { color: var(--muted); }
.account__number { font-family: var(--font-display); font-size: clamp(1.35rem, 4vw, 1.7rem); font-weight: 700; color: var(--navy); letter-spacing: .02em; margin: .2rem 0 .6rem !important; }
.account__holder { font-size: .9rem; color: var(--muted); }
.price { display: inline-flex; align-items: baseline; gap: .5rem; padding: .8rem 1.1rem; border-radius: var(--radius); background: var(--navy); color: #fff; margin: .5rem 0 1rem; }
.price strong { font-family: var(--font-display); font-size: 1.7rem; color: var(--gold-bright); }

.table-wrap { overflow-x: auto; margin: 1.5rem 0; border-radius: var(--radius); border: 1px solid var(--line); }
.fees { border-collapse: collapse; width: 100%; min-width: 520px; }
.fees th, .fees td { padding: .85rem 1rem; text-align: left; }
.fees thead th { background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 700; }
.fees tbody tr:nth-child(even) { background: var(--mist); }
.fees td:first-child { font-weight: 700; color: var(--navy-deep); }

/* contact block */
.contact-card { display: grid; gap: .5rem; padding: 1.4rem; border-radius: var(--radius-lg); background: var(--mist); margin: 1.5rem 0; }
.contact-card a { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; font-size: 1.1rem; }
.contact-card i { color: var(--gold-text); width: 1.2rem; }

/* level chips (helicoide) */
.levels { list-style: none; padding: 0; margin: 1.5rem 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.levels li { margin: 0; padding: .6rem 1rem; border-radius: 99px; background: var(--navy); color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: .5rem; }
.levels li i { color: var(--gold-bright); }
.levels li small { color: rgba(255, 255, 255, .75); font-weight: 400; }

/* campus links */
.platforms { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 1.5rem 0 3rem; }
@media (min-width: 700px) { .platforms { grid-template-columns: repeat(3, 1fr); } }
.platform { display: flex; align-items: center; gap: 1rem; padding: 1.3rem; border-radius: var(--radius-lg); color: #fff; text-decoration: none; background: var(--navy); transition: transform .25s; }
.platform:hover { transform: translateY(-3px); color: #fff; }
.platform img { width: 54px; height: auto; background: #fff; border-radius: var(--radius-sm); padding: 4px; }
.platform strong { display: block; font-family: var(--font-display); font-size: 1.25rem; }
.platform span { color: rgba(255, 255, 255, .8); font-size: .95rem; }
.platform--primaria { background: #b3262c; }
.platform--secundaria { background: var(--navy); }
.platform--biblioteca { background: #4a6e0c; }
.tools { list-style: none; padding: 0; margin: 1rem 0 2.5rem; display: grid; gap: .8rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .tools { grid-template-columns: repeat(4, 1fr); } }
.tool { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; color: var(--navy-deep); font-weight: 600; transition: border-color .2s, background-color .2s; }
.tool:hover { border-color: var(--gold); background: var(--gold-soft); }
.tool img { width: 40px; height: 40px; object-fit: contain; }

/* downloads */
.download-groups { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .download-groups { grid-template-columns: 1fr 1fr; } }
.download-group h2 { font-size: 1.5rem; display: flex; align-items: center; gap: .6rem; }
.download-group h2 i { color: var(--gold-text); font-size: .9em; }
.files { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.file { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; border-radius: var(--radius); background: var(--mist); text-decoration: none; color: var(--navy-deep); font-weight: 600; transition: background-color .2s, transform .2s; }
.file:hover { background: var(--gold-soft); transform: translateX(3px); color: var(--navy-deep); }
.file > i:first-child { font-size: 1.5rem; color: #b3262c; flex: none; }
.file span { flex: 1; line-height: 1.35; }
.file > i:last-child { color: var(--muted); }

/* announcements */
.notices { display: grid; gap: 1.5rem; max-width: 860px; }
.notice { border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.notice__head { padding: 1.3rem 1.4rem 0; }
.notice__meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: var(--muted); font-size: .95rem; margin-bottom: .5rem; }
.notice__meta i { color: var(--gold-text); }
.notice__title { font-size: clamp(1.25rem, 3vw, 1.6rem); color: var(--navy); margin: 0; }
.notice__body { padding: 1rem 1.4rem 1.4rem; }
.notice__body > :last-child { margin-bottom: 0; }
.notice__image { display: block; border-top: 1px solid var(--line); }
.notice__image img { width: 100%; }
.notice__foot { padding: 0 1.4rem 1.4rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.notice__sign { color: var(--muted); font-size: .9rem; margin: 0; }
.notice--new { border: 2px solid var(--gold); }
.button {
  display: inline-flex; align-items: center; gap: .55rem; padding: .7rem 1.15rem;
  border-radius: var(--radius); background: var(--navy); color: #fff; text-decoration: none; font-weight: 600;
  transition: background-color .2s;
}
.button:hover { background: var(--navy-deep); color: #fff; }
.button i { color: var(--gold-bright); }
.empty { padding: 2rem; border-radius: var(--radius-lg); background: var(--mist); max-width: 640px; }
.empty i { color: var(--gold-text); font-size: 1.6rem; margin-bottom: .6rem; }

/* legal */
.legal-facts { display: grid; gap: .5rem; margin: 1.5rem 0; padding: 0; list-style: none; }
.legal-facts li { padding: 1rem 1.2rem; background: var(--mist); border-radius: var(--radius); margin: 0; }

/* --------------------------------------------------------------- footer */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .85); padding-top: clamp(3rem, 7vw, 4.5rem); font-size: .98rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold-bright); text-decoration: underline; }
.site-footer i { color: var(--gold-bright); }
.site-footer__grid { display: grid; gap: 2.2rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .site-footer__grid { grid-template-columns: 1.1fr 1.2fr 1.2fr 1fr; } }
.site-footer__brand img { width: 84px; height: auto; margin-bottom: 1rem; }
.site-footer__motto { font-family: var(--font-display); font-size: 1.3rem; color: #fff; line-height: 1.3; max-width: 18ch; }
.site-footer__title { color: var(--gold-bright); font-size: 1.1rem; margin-bottom: 1rem; }
.site-footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.socials { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; gap: .6rem; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); font-size: 1.1rem; }
.socials a:hover { background: var(--gold); text-decoration: none; }
.socials a:hover i { color: var(--navy-deep); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 3rem; padding-block: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .9rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__group { display: inline-flex; align-items: center; gap: .7rem; }
.site-footer__group img { width: 150px; height: auto; filter: brightness(0) invert(1); opacity: .85; }

/* --------------------------------------------------------------- motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
