:root {
  --azul-profundo: #071e44;
  --azul-marino: #0a2a5e;
  --azul: #0e4c9c;
  --azul-brillante: #12a7e0;
  --celeste: #e8f4fb;
  --celeste-suave: #f4f8fc;
  --dorado: #f2b705;
  --dorado-claro: #ffd85e;
  --dorado-texto: #8a6500;
  --tinta: #0f172a;
  --texto: #1f2937;
  --texto-suave: #4a5a72;
  --gris: #5b6b82;
  --borde: #e3ecf6;
  --blanco: #ffffff;
  --sombra-sm: 0 4px 14px rgba(10, 42, 94, 0.06);
  --sombra-md: 0 14px 34px rgba(10, 42, 94, 0.1);
  --sombra-lg: 0 28px 60px rgba(7, 30, 68, 0.22);
  --radio: 18px;
  --radio-lg: 22px;
  --contenedor: 1180px;
  --transicion: 220ms ease;
  --fuente: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--fuente);
  font-size: 16px;
  line-height: 1.6;
  color: var(--texto);
  background-color: var(--blanco);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
iframe {
  max-width: 100%;
}

img {
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--azul-marino);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

a {
  color: var(--azul);
  text-decoration: none;
  transition: color var(--transicion);
}

a:hover {
  color: var(--azul-brillante);
}

strong {
  font-weight: 700;
}

::selection {
  background: var(--dorado);
  color: var(--azul-profundo);
}

:focus-visible {
  outline: 3px solid var(--dorado);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--contenedor);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 10px 10px;
  background: var(--dorado);
  color: var(--azul-profundo);
  font-weight: 700;
  transition: top var(--transicion);
}

.skip-link:focus {
  top: 0;
  color: var(--azul-profundo);
}

/* ---------- Topbar ---------- */

.topbar {
  background: var(--azul-profundo);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 38px;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.topbar__school {
  margin: 0;
  letter-spacing: 0.02em;
}

.topbar__links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.topbar__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

.topbar__links a:hover {
  color: var(--dorado);
}

.topbar__links svg {
  width: 15px;
  height: 15px;
  flex: none;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--borde);
  box-shadow: 0 6px 24px rgba(10, 42, 94, 0.06);
  backdrop-filter: blur(10px);
}

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: inherit;
}

.brand:hover {
  color: inherit;
}

.brand__logo {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px rgba(242, 183, 5, 0.35), var(--sombra-sm);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__name {
  color: var(--azul-marino);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand__sub {
  color: var(--gris);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

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

.nav__list {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
}

.nav__list a {
  position: relative;
  display: inline-block;
  padding: 0.35rem 0;
  color: var(--azul-marino);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--dorado);
  transition: width var(--transicion);
}

.nav__list a:hover,
.nav__list a:focus-visible {
  color: var(--azul);
}

.nav__list a:hover::after,
.nav__list a:focus-visible::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 11px;
  border: 1px solid var(--borde);
  border-radius: 12px;
  background: var(--blanco);
  cursor: pointer;
  transition: border-color var(--transicion), background var(--transicion);
}

.nav-toggle:hover {
  border-color: var(--azul-brillante);
}

.nav-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  border-radius: 3px;
  background: var(--azul-marino);
  transition: transform var(--transicion), opacity var(--transicion);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform var(--transicion), background var(--transicion),
    color var(--transicion), border-color var(--transicion), box-shadow var(--transicion);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

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

.btn--gold {
  background: var(--dorado);
  color: var(--azul-profundo);
  box-shadow: 0 10px 24px rgba(242, 183, 5, 0.32);
}

.btn--gold:hover,
.btn--gold:focus-visible {
  background: var(--dorado-claro);
  color: var(--azul-profundo);
  box-shadow: 0 14px 30px rgba(242, 183, 5, 0.4);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
  color: var(--blanco);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--blanco);
  background: rgba(255, 255, 255, 0.12);
  color: var(--blanco);
}

.btn--small {
  padding: 0.65rem 1.15rem;
  font-size: 0.85rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 7vw, 6.5rem) 0 clamp(3.5rem, 6vw, 5.5rem);
  background: linear-gradient(135deg, var(--azul-profundo) 0%, var(--azul-marino) 45%, var(--azul) 100%);
  color: var(--blanco);
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(18, 167, 224, 0.4), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(242, 183, 5, 0.2), transparent 38%),
    radial-gradient(circle at 78% 92%, rgba(18, 167, 224, 0.22), transparent 46%);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.hero__content {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.9rem;
  color: var(--azul);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow--gold {
  color: var(--dorado);
}

.hero h1 {
  margin: 0 0 1.25rem;
  color: var(--blanco);
  font-size: clamp(2.2rem, 4.8vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.hero h1 span {
  display: block;
  color: var(--dorado);
}

.hero__lead {
  max-width: 58ch;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.7;
}

.hero__motto {
  margin: 0 0 1.75rem;
  padding-left: 1rem;
  border-left: 3px solid var(--dorado);
  color: #ffe9a8;
  font-size: 0.98rem;
  font-style: italic;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.25rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  list-style: none;
}

.hero__meta strong {
  display: block;
  color: var(--blanco);
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.1;
}

.hero__meta span {
  display: block;
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__meta abbr {
  text-decoration: none;
  border: 0;
}

.hero__crest {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

.crest {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(210px, 24vw, 270px);
  aspect-ratio: 1;
}

.crest::before {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background: rgba(18, 167, 224, 0.35);
  filter: blur(42px);
}

.crest__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(242, 183, 5, 0.55);
  animation: spin 44s linear infinite;
}

.crest img {
  position: relative;
  z-index: 1;
  width: 74%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.08), var(--sombra-lg);
}

.crest__caption {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: center;
}

.crest__label {
  color: var(--dorado);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.crest__text {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(3.75rem, 7vw, 6rem) 0;
}

.section--tint {
  background:
    radial-gradient(circle at 100% 0%, rgba(18, 167, 224, 0.08), transparent 34%),
    var(--celeste-suave);
}

.section--dark {
  background:
    radial-gradient(circle at 0% 100%, rgba(18, 167, 224, 0.2), transparent 42%),
    linear-gradient(160deg, var(--azul-profundo) 0%, var(--azul-marino) 100%);
  color: rgba(255, 255, 255, 0.82);
}

.section__head {
  max-width: 720px;
  margin: 0 auto clamp(2.25rem, 4vw, 3.25rem);
  text-align: center;
}

.section__head h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(1.85rem, 3.4vw, 2.7rem);
}

.section__lead {
  color: var(--gris);
  font-size: clamp(1rem, 1.3vw, 1.08rem);
  line-height: 1.7;
}

.section--dark .section__head h2,
.section__head--light h2 {
  color: var(--blanco);
}

.section--dark .section__lead,
.section__head--light .section__lead {
  color: rgba(255, 255, 255, 0.74);
}

/* ---------- About / timeline ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.about-copy p {
  color: var(--texto-suave);
  font-size: 1.02rem;
  line-height: 1.78;
}

.mission {
  margin-top: 1.75rem;
  padding: 1.5rem 1.6rem;
  border-left: 5px solid var(--dorado);
  border-radius: 4px 16px 16px 4px;
  background: var(--blanco);
  box-shadow: var(--sombra-sm);
}

.mission__label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--azul);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mission p {
  margin-bottom: 0.6rem;
  color: var(--azul-marino);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.7;
}

.mission cite {
  color: var(--gris);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 600;
}

.timeline {
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--borde);
  border-radius: var(--radio-lg);
  background: var(--blanco);
  box-shadow: var(--sombra-sm);
}

.timeline h3 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.timeline ol {
  position: relative;
  list-style: none;
}

.timeline ol::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  bottom: 0.4rem;
  left: 8px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(var(--dorado), var(--azul-brillante));
}

.timeline li {
  position: relative;
  padding-left: 2.1rem;
  margin-bottom: 1.15rem;
}

.timeline li:last-child {
  margin-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  left: 2px;
  width: 14px;
  height: 14px;
  border: 3px solid var(--dorado);
  border-radius: 50%;
  background: var(--blanco);
  box-shadow: 0 0 0 4px var(--blanco);
}

.timeline__year {
  display: block;
  color: var(--azul);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.timeline li p {
  margin-top: 0.15rem;
  color: var(--gris);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ---------- Cards ---------- */

.cards {
  display: grid;
  gap: 1.5rem;
}

.cards--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cards--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  padding: 1.75rem 1.6rem;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  background: var(--blanco);
  box-shadow: var(--sombra-sm);
  transition: transform var(--transicion), box-shadow var(--transicion),
    border-color var(--transicion);
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(18, 167, 224, 0.45);
  box-shadow: var(--sombra-md);
}

.card__icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1.15rem;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--celeste), #d7ecfa);
  color: var(--azul);
}

.card__icon svg {
  width: 27px;
  height: 27px;
}

.card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.1rem;
  line-height: 1.3;
}

.card p {
  color: var(--gris);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* ---------- Specialties ---------- */

.specialty {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 1.9rem 1.75rem;
  border: 1px solid var(--borde);
  border-radius: var(--radio-lg);
  background: var(--blanco);
  box-shadow: var(--sombra-sm);
  transition: transform var(--transicion), box-shadow var(--transicion);
}

.specialty::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--dorado), var(--azul-brillante));
}

.specialty:hover {
  transform: translateY(-5px);
  box-shadow: var(--sombra-md);
}

.specialty__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.specialty__icon {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--azul-marino);
  color: var(--dorado);
}

.specialty__icon svg {
  width: 25px;
  height: 25px;
}

.tag {
  display: inline-block;
  padding: 0.34rem 0.7rem;
  border-radius: 999px;
  background: var(--celeste);
  color: var(--azul-marino);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag--gold {
  background: #fff1c2;
  color: var(--dorado-texto);
}

.specialty h3 {
  margin-bottom: 0.6rem;
  font-size: 1.22rem;
  line-height: 1.3;
}

.specialty > p {
  color: var(--gris);
  font-size: 0.95rem;
  line-height: 1.65;
}

.specialty__list {
  margin: 1.1rem 0;
  list-style: none;
}

.specialty__list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.45rem;
  color: var(--texto-suave);
  font-size: 0.92rem;
  line-height: 1.5;
}

.specialty__list li::before {
  content: "";
  position: absolute;
  top: 0.48em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dorado);
}

.specialty__title {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px dashed var(--borde);
  color: var(--gris);
  font-size: 0.86rem;
  line-height: 1.55;
}

.specialty__title strong {
  color: var(--azul-marino);
}

.note {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--dorado);
  border-radius: 4px 12px 12px 4px;
  background: #fff8df;
  color: #5f4d12;
  font-size: 0.92rem;
  line-height: 1.65;
}

.note strong {
  color: #4a3b08;
}

/* ---------- Split / formation ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.split__copy h2 {
  margin-bottom: 1rem;
  color: var(--blanco);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
}

.split__copy > p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.02rem;
  line-height: 1.75;
}

.checklist {
  margin: 1.6rem 0 2rem;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 2.1rem;
  margin-bottom: 0.9rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.95rem;
  line-height: 1.65;
}

.checklist li::before {
  content: "\2713";
  position: absolute;
  top: 0.12em;
  left: 0;
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--dorado);
  color: var(--azul-profundo);
  font-size: 0.72rem;
  font-weight: 900;
}

.split__panel {
  display: grid;
  gap: 1rem;
}

.panel-card {
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.panel-card__label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--dorado);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.panel-card h3 {
  margin-bottom: 0.45rem;
  color: var(--blanco);
  font-size: 1.14rem;
}

.panel-card p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
  line-height: 1.6;
}

.panel-card__meta {
  display: block;
  margin-top: 0.8rem;
  color: var(--dorado);
  font-size: 0.76rem;
  font-weight: 700;
}

.panel-card--gold {
  border-color: transparent;
  background: linear-gradient(135deg, var(--dorado) 0%, #e0a400 100%);
  color: var(--azul-profundo);
}

.panel-card--gold .panel-card__label,
.panel-card--gold h3 {
  color: var(--azul-profundo);
}

.panel-card--gold p {
  color: rgba(7, 30, 68, 0.82);
}

/* ---------- Admission ---------- */

.admission-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.steps {
  list-style: none;
}

.steps li {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1.4rem;
}

.steps li:last-child {
  margin-bottom: 0;
}

.step__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--azul-marino);
  color: var(--dorado);
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(10, 42, 94, 0.18);
}

.steps h3 {
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
}

.steps p {
  color: var(--gris);
  font-size: 0.94rem;
  line-height: 1.65;
}

.admission-card {
  padding: 2rem 1.8rem;
  border-radius: var(--radio-lg);
  background: linear-gradient(150deg, var(--azul-marino) 0%, var(--azul) 100%);
  color: rgba(255, 255, 255, 0.82);
  box-shadow: var(--sombra-lg);
}

.admission-card h3 {
  margin-bottom: 0.6rem;
  color: var(--blanco);
  font-size: 1.3rem;
}

.admission-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.94rem;
  line-height: 1.65;
}

.admission-card .btn {
  width: 100%;
  margin: 0.6rem 0 0.9rem;
}

.admission-card__note {
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 0.8rem !important;
  line-height: 1.55 !important;
}

/* ---------- News ---------- */

.news {
  display: flex;
  flex-direction: column;
  padding: 1.7rem 1.6rem;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  background: var(--blanco);
  box-shadow: var(--sombra-sm);
  transition: transform var(--transicion), box-shadow var(--transicion);
}

.news:hover {
  transform: translateY(-5px);
  box-shadow: var(--sombra-md);
}

.news .tag {
  align-self: flex-start;
  margin-bottom: 1rem;
}

.news h3 {
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
  line-height: 1.35;
}

.news p {
  color: var(--gris);
  font-size: 0.93rem;
  line-height: 1.65;
}

.news__date {
  display: block;
  margin-top: auto;
  padding-top: 1rem;
  color: var(--azul);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 4vw, 3rem);
  align-items: stretch;
}

.contact-info ul {
  list-style: none;
}

.contact-info li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.contact-info li:last-child {
  margin-bottom: 0;
}

.contact-info__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: rgba(242, 183, 5, 0.14);
  color: var(--dorado);
}

.contact-info__icon svg {
  width: 22px;
  height: 22px;
}

.contact-info strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--blanco);
  font-size: 0.95rem;
}

.contact-info span,
.contact-info a {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.93rem;
  line-height: 1.6;
}

.contact-info a:hover {
  color: var(--dorado);
}

.map {
  overflow: hidden;
  min-height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radio-lg);
  background: var(--azul-profundo);
  box-shadow: var(--sombra-lg);
}

.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

/* ---------- Footer ---------- */

.footer {
  padding-top: clamp(3rem, 6vw, 4.5rem);
  background: #051530;
  color: rgba(255, 255, 255, 0.68);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: clamp(1.75rem, 3vw, 2.75rem);
  padding-bottom: 3rem;
}

.footer__brand img {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px rgba(242, 183, 5, 0.28);
}

.footer__brand p {
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer__brand strong {
  color: var(--blanco);
  font-size: 0.98rem;
}

.footer__links h3,
.footer__note h3 {
  margin-bottom: 1rem;
  color: var(--blanco);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer__links ul {
  list-style: none;
}

.footer__links li {
  margin-bottom: 0.55rem;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer__links a:hover {
  color: var(--dorado);
}

.footer__note p {
  margin-bottom: 0.8rem;
  font-size: 0.84rem;
  line-height: 1.65;
}

.footer__bottom {
  padding: 1.2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hero__inner {
    gap: 2.5rem;
  }

  .nav {
    gap: 1.2rem;
  }

  .nav__list {
    gap: 1rem;
  }
}

@media (max-width: 980px) {
  .cards--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid,
  .split,
  .admission-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .split__panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split__panel .panel-card:last-child {
    grid-column: 1 / -1;
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map,
  .map iframe {
    min-height: 380px;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1rem 24px 1.4rem;
    border-bottom: 1px solid var(--borde);
    background: var(--blanco);
    box-shadow: 0 18px 30px rgba(10, 42, 94, 0.12);
  }

  .nav.is-open {
    display: flex;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__list a {
    display: block;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--borde);
  }

  .nav__list a::after {
    display: none;
  }

  .nav .btn {
    width: 100%;
    margin-top: 0.4rem;
  }

  .header__inner {
    min-height: 76px;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 86px;
  }

  .topbar__school {
    display: none;
  }

  .topbar__inner {
    justify-content: center;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__crest {
    order: -1;
  }

  .crest {
    width: 190px;
  }

  .hero__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
  }

  .split__panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .split__panel .panel-card:last-child {
    grid-column: auto;
  }

  .brand__name {
    font-size: 0.92rem;
  }

  .brand__sub {
    font-size: 0.64rem;
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer__bottom .container {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 18px;
  }

  .brand__logo {
    width: 46px;
    height: 46px;
  }

  .cards--4,
  .cards--3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .map,
  .map iframe {
    min-height: 320px;
  }

  .admission-card {
    padding: 1.6rem 1.4rem;
  }
}

@media (max-width: 420px) {
  .topbar__links {
    flex-direction: column;
    gap: 0.3rem;
  }

  .topbar__inner {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .brand__text {
    display: none;
  }

  .hero__meta {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
