:root {
  color-scheme: light;
  --navy: #102341;
  --ink: #16273a;
  --muted: #46576b;
  --orange: #f59338;
  --paper: #fbfaf7;
  --line: #e5e1d9;
  font-family: "Avenir Next", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #ab4e0d; outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
.container { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: absolute; top: 12px; left: 12px; z-index: 2; transform: translateY(-160%); background: white; padding: 10px; }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.site-header { background: var(--paper); }
.header-content { min-height: 89px; display: flex; gap: 35px; align-items: center; justify-content: space-between; }
.brand { display: flex; gap: 12px; align-items: center; flex-shrink: 0; text-decoration: none; }
.brand img { width: 51px; height: 51px; }
.brand > span { display: grid; gap: 1px; }
.brand strong { font-size: 1.43rem; line-height: 1.12; letter-spacing: .085em; }
.brand span span { font-size: .75rem; color: var(--muted); }
nav { display: flex; gap: clamp(20px, 3vw, 40px); align-items: center; }
nav > a { text-decoration: none; font-size: .89rem; font-weight: 650; }
nav > a:not(.button):hover, .text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.button { min-height: 45px; display: inline-flex; align-items: center; justify-content: center; gap: 17px; padding: 0 18px; text-decoration: none; font-weight: 700; border-radius: 5px; }
.button-dark { background: var(--navy); color: white; }
.button-dark:hover { background: #243c61; }
.button-orange { background: var(--orange); color: #192032; }
.button-orange:hover { background: #ffad61; }
.hero {
  min-height: clamp(410px, 42vw, 590px);
  display: flex;
  align-items: center;
  color: white;
  background: #172b4b;
  background-image: linear-gradient(90deg, #10213e 3%, #10213eea 25%, #10213e9a 49%, #0b182829 72%), url("assets/portada.jpg");
  background-position: center, center 45%;
  background-size: cover;
}
.hero-content { padding-block: 56px 64px; }
.hero-university { font-size: .87rem; letter-spacing: .075em; font-weight: 650; color: #ffe1bd; }
.hero h1 { font-size: clamp(3.8rem, 7vw, 7.25rem); font-weight: 780; letter-spacing: -.068em; line-height: .94; margin: 22px 0 33px; }
.programs { padding-block: 54px 66px; }
.section-heading { display: flex; align-items: baseline; gap: 13px 25px; justify-content: space-between; margin-bottom: 23px; flex-wrap: wrap; }
h2 { font-size: clamp(2rem, 4vw, 3.15rem); line-height: 1.02; letter-spacing: -.045em; }
.text-link { color: #38516c; text-decoration: none; font-weight: 650; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { background: white; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.card img { width: 100%; height: auto; aspect-ratio: 5 / 3; object-fit: cover; }
.card-body { display: grid; gap: 11px; padding: 15px 17px 19px; }
.card h3 { font-size: 1.22rem; letter-spacing: -.027em; }
.card a { font-size: .86rem; text-underline-offset: 3px; color: #39536e; }
.aula { padding-bottom: 55px; }
.aula-content { display: flex; align-items: center; justify-content: space-between; gap: 22px 44px; padding: clamp(24px, 4vw, 48px); background: var(--navy); color: white; border-radius: 8px; }
.aula-content p { max-width: 49ch; margin-top: 12px; color: #e0e9f5; line-height: 1.55; }
.aula .button { flex: 0 0 auto; }
.campuses { background: #eaeff5; padding-block: 40px; }
.campuses-content { display: grid; grid-template-columns: 1.35fr 1fr; gap: 30px; align-items: center; }
.campuses p { margin-top: 12px; color: var(--muted); }
.campuses ul { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; list-style: none; gap: 9px; }
.campuses a { display: flex; justify-content: space-between; gap: 5px; padding: 11px; background: white; border: 1px solid #dee5ef; border-radius: 5px; font-size: .9rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.campuses a:hover { text-decoration: underline; }
.footer { display: flex; justify-content: space-between; gap: 10px 25px; flex-wrap: wrap; padding-block: 25px; color: var(--muted); font-size: .83rem; }
@media (max-width: 880px) {
  .container { width: calc(100% - 56px); }
  .header-content { gap: 20px; }
  .brand span span { display: none; }
  .aula-content { align-items: flex-start; flex-direction: column; }
  .campuses-content { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  .container { width: calc(100% - 32px); }
  .header-content { min-height: 69px; gap: 10px; }
  .brand { gap: 5px; }
  .brand img { width: 38px; height: 38px; }
  .brand strong { font-size: 1rem; }
  nav { gap: 11px; }
  nav > a { font-size: .74rem; }
  nav .button { gap: 5px; min-height: 40px; padding-inline: 8px; }
  nav > a[href="#sedes"] { display: none; }
  .hero { min-height: 420px; background-position: center, 66% center; }
  .hero-content { padding-block: 59px; }
  .hero h1 { font-size: clamp(3.3rem, 13vw, 5.6rem); }
  .hero-university { font-size: .74rem; }
  .programs { padding-block: 38px 44px; }
  .aula { padding-bottom: 38px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-body { padding: 11px; gap: 8px; }
  .card h3 { font-size: 1.02rem; }
  .campuses a { padding-inline: 7px; font-size: .81rem; }
}
@media (max-width: 350px) {
  nav > a[href="#oferta"] { display: none; }
  .campuses ul { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
