/* Postgradum Hub Madrid · estilos de la web pública (diseño de Mir).
   Tamaños medidos sobre el boceto a 1440 px de ancho: texto 18/30, titulares 53/62, botones 270×55. */

@font-face {
  font-family: 'Newsreader';
  src: url('/fonts/newsreader-latin-opsz-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #0022af;
  --blue-mid: #011a8a;
  --navy: #011156;
  --navy-deep: #000d49;
  --blue-bright: #0028e4;
  --lime: #dcfc00;
  --beige: #eeebe5;
  --orange: #e96716;
  --magenta: #e5007e;
  --ink: #1d1f1c;
  --ink-soft: #4f4d49;
  --heading: #3a3936;
  --line-blue: rgba(150, 172, 255, 0.7);
  --footer: #181818;

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --container: 1180px;
  --wide: 1290px;
  --gutter: clamp(20px, 5vw, 75px);

  --grad-header: linear-gradient(100deg, #0022af 0%, #011a8a 50%, #011156 100%);
  --grad-flex: linear-gradient(165deg, #0022af 0%, #011a8a 55%, #01135f 100%);
  --grad-rates: linear-gradient(140deg, #0626b8 0%, #011a8a 50%, #000d49 100%);
  --grad-alumni: linear-gradient(120deg, #01104f 0%, #011a8a 55%, #0022af 100%);
  --grad-contact: linear-gradient(180deg, #011261 0%, #011a8a 55%, #0022af 100%);
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.667;
  color: var(--ink);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
button, input, select, textarea { font: inherit; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.center { text-align: center; }
.hl { color: var(--lime); }
.h2 { font-size: clamp(36px, 3.7vw, 53px); line-height: 1.17; letter-spacing: -0.01em; text-wrap: balance; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--lime); color: var(--navy-deep);
  padding: 10px 16px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.hub :focus-visible, .why :focus-visible, .pu :focus-visible, .map :focus-visible { outline-color: var(--blue); }

mark.pending { background: #ffe9a8; color: #5c3c00; padding: 0 4px; border-radius: 2px; }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 19px 27px;
  border: 0; border-radius: 0;
  font: 600 13px/1.35 var(--sans);
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn::after {
  content: '';
  flex: none;
  width: 7px; height: 7px;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor;
  transform: rotate(45deg);
}
.btn--lime { background: var(--lime); color: var(--navy-deep); }
.btn--lime:hover { background: #ebff5e; }
.btn--blue { background: var(--blue-bright); color: #fff; }
.btn--blue:hover { background: #2349ff; }
.btn--ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--small { padding: 12px 18px; font-size: 11.5px; }
.btn--small::after { display: none; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Cabecera ---------- */

.site-header { position: relative; z-index: 20; background: var(--grad-header); color: #fff; }

.nav {
  width: min(100% - 2 * var(--gutter), var(--wide));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr auto 1fr 1fr;
  align-items: center;
  padding: 54px 0 67px;
}
.nav__links { display: contents; list-style: none; }
.nav__links li { grid-row: 1; text-align: center; }
.nav__links li:nth-child(1) { grid-column: 1; }
.nav__links li:nth-child(2) { grid-column: 2; }
.nav__links li:nth-child(3) { grid-column: 4; }
.nav__links li:nth-child(4) { grid-column: 5; }
.nav__links a {
  display: inline-block; padding: 6px 2px;
  font-family: var(--serif); font-size: 14px; line-height: 1.3;
  letter-spacing: 0.09em; text-transform: uppercase; text-decoration: none;
  color: rgba(255, 255, 255, 0.86);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--lime); }

.nav__brand {
  grid-column: 3; grid-row: 1;
  display: flex; flex-direction: column; align-items: center;
  padding: 0 28px;
  color: #fff; text-decoration: none;
}
.nav__logo { display: block; width: 200px; height: auto; }
.nav__toggle { display: none; }

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

.hero { padding: 0 var(--gutter) 60px; background: var(--grad-header); }
.hero__frame {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; place-items: center;
  max-width: var(--wide); min-height: clamp(560px, 43vw, 620px);
  margin-inline: auto;
  background: #030a3c;
}
.hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero__frame::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(2, 8, 48, 0.5) 0%, rgba(2, 8, 48, 0.6) 55%, rgba(2, 8, 48, 0.82) 100%);
}
.hero__content { max-width: 1000px; padding: 64px 24px; color: #fff; text-align: center; }
.hero__title { margin-bottom: 36px; font-size: clamp(36px, 3.9vw, 56px); font-weight: 500; line-height: 1.11; letter-spacing: -0.012em; text-wrap: balance; }
.hero__lead { max-width: 940px; margin: 0 auto 48px; font-size: 16px; line-height: 1.65; color: rgba(255, 255, 255, 0.9); }
.hero__ctas { display: flex; flex-direction: column; align-items: center; gap: 20px; }

/* ---------- Bloques con foto ---------- */

.photo { position: relative; margin: 0; overflow: hidden; background: #d8d3ca; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
/* Imágenes que no se pueden recortar (p. ej. los retratos): entran enteras sobre blanco. */
.photo--contain { background: #fff; }
.photo--contain img { object-fit: contain; }

/* ---------- El Hub ---------- */

.hub { padding-block: clamp(72px, 9vw, 128px); background: var(--beige); }
.hub__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 110px); }
.hub__photo { aspect-ratio: 2 / 3; }
.hub__side { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.hub__text { max-width: 550px; padding-bottom: clamp(0px, 3vw, 40px); }
.hub__text .h2, .why .h2, .pu .h2 { margin-bottom: 26px; color: var(--heading); }
.hub__text p, .pu__text p { color: var(--ink-soft); }

.plans { position: relative; align-self: flex-end; width: min(240px, 62%); }
.plans__viewport { aspect-ratio: 60 / 49; overflow: hidden; background: #fff; }
.plans__slide { display: none; width: 100%; height: 100%; padding: 0; border: 0; background: #fff; cursor: zoom-in; }
.plans__slide.is-active { display: block; }
.plans__slide img { width: 100%; height: 100%; object-fit: contain; }
.plans__nav { position: absolute; bottom: 6px; width: 30px; height: 30px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.plans__nav::before {
  content: ''; position: absolute; inset: 10px;
  border-top: 3px solid var(--magenta); border-left: 3px solid var(--magenta);
}
.plans__nav--prev { left: 2px; }
.plans__nav--prev::before { transform: rotate(-45deg); }
.plans__nav--next { right: 2px; }
.plans__nav--next::before { transform: rotate(135deg); }
.plans[data-count='1'] .plans__nav { display: none; }

/* ---------- Espacio flexible ---------- */

.flex {
  display: grid;
  grid-template-columns: minmax(300px, 455px) minmax(0, 1fr);
  column-gap: clamp(40px, 6.6vw, 95px);
  align-items: center;
  overflow: hidden;
  padding: 36px 0 40px max(var(--gutter), (100% - var(--wide)) / 2);
  background: var(--grad-flex);
  color: #fff;
}
.flex__text { padding-bottom: 36px; }
.flex__text .h2 { margin-bottom: 34px; }
.flex__text p { color: rgba(255, 255, 255, 0.9); }
.formats { margin: 34px 0 0; padding: 0; list-style: none; max-width: 370px; }
.formats li { padding: 14px 0 15px; border-top: 1px solid var(--line-blue); }

.gallery { display: grid; grid-template-columns: repeat(3, 21.2vw); gap: 3.1vw 2.9vw; align-items: start; }
.gallery__col { display: grid; gap: 3.1vw; }
.gallery__col:nth-child(2) { margin-bottom: -10vw; }
.gallery__col--bleed { margin-bottom: -16vw; }
.gallery__item { display: block; width: 100%; padding: 0; border: 0; background: rgba(255, 255, 255, 0.08); overflow: hidden; cursor: zoom-in; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery__item:hover img { transform: scale(1.03); }
.r-5x4 { aspect-ratio: 5 / 4; }
.r-1x1 { aspect-ratio: 1; }
.r-4x5 { aspect-ratio: 4 / 5; }
.r-16x9 { aspect-ratio: 16 / 9; }
.r-6x5 { aspect-ratio: 6 / 5; }
.r-3x4 { aspect-ratio: 3 / 4; }

/* ---------- Por qué elegir ---------- */

.why { padding-block: clamp(80px, 11vw, 160px); background: var(--beige); }
.why__grid { display: grid; grid-template-columns: minmax(0, 475fr) minmax(0, 590fr); column-gap: clamp(40px, 8vw, 115px); align-items: center; }
.why__photo { overflow: visible; aspect-ratio: 475 / 875; }
.badge {
  position: absolute; top: 35px; left: clamp(-56px, -3.9vw, -16px);
  display: grid; place-items: center;
  width: clamp(150px, 15.3vw, 220px); aspect-ratio: 1;
  padding: 26px; border-radius: 50%;
  background: var(--orange); color: #fff;
  font: 500 clamp(16px, 1.5vw, 22px)/1.3 var(--serif); text-align: center;
}
.reasons { display: grid; gap: 45px; margin: 44px 0 0; padding: 0; list-style: none; }
.reasons li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 22px; align-items: start; }
.reasons__icon { width: 34px; height: 34px; margin-top: 3px; fill: var(--blue); }
.reasons h3 { margin-bottom: 6px; font-size: 24px; line-height: 1.3; color: var(--heading); }
.reasons p { max-width: 460px; font-size: 16px; line-height: 30px; color: var(--ink-soft); }

/* ---------- Tarifas ---------- */

.rates { padding-block: clamp(80px, 9vw, 130px) clamp(72px, 8vw, 115px); background: var(--grad-rates); color: #fff; }
.rates .container { width: min(100% - 2 * var(--gutter), 1250px); }
.rates__title { margin-bottom: 52px; text-align: center; }
.rates__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; margin-inline: auto; }
.rate {
  display: grid; grid-template-rows: subgrid; grid-row: span 2; row-gap: 0;
  padding: 88px 40px 72px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-align: center;
}
.rate--featured { background: rgba(255, 255, 255, 0.24); border-color: rgba(255, 255, 255, 0.3); }
.rate__head { display: flex; flex-direction: column; justify-content: center; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1.5px solid var(--line-blue); }
.rate__name { font-size: clamp(32px, 3vw, 43px); line-height: 1.2; }
.rate__name--small { margin-bottom: 10px; font-size: clamp(28px, 2.45vw, 35px); }
.rate__price { margin: 4px 0 0; font: 400 clamp(40px, 3.6vw, 52px)/1.15 var(--serif); }
.rate__vat { margin: 0; font: 400 clamp(26px, 2.4vw, 34px)/1.2 var(--serif); opacity: 0.92; }
.rate__capacity { margin: 0; font: 400 clamp(40px, 3.6vw, 52px)/1.15 var(--serif); }
.rate__capacity span { font-size: clamp(26px, 2.4vw, 34px); }
.rate__capacity span:first-child { display: block; margin-bottom: 2px; }
.rate__text { max-width: 285px; margin: 0 auto; font-size: 16px; line-height: 30px; color: rgba(255, 255, 255, 0.9); }
.rates__notes { max-width: 1000px; margin: 24px auto 36px; font-size: 13px; line-height: 1.7; text-align: center; color: rgba(255, 255, 255, 0.78); }

/* ---------- Postgradum University ---------- */

.pu { padding-block: clamp(80px, 10.4vw, 150px) clamp(72px, 9vw, 130px); background: var(--beige); }
.pu__grid { display: grid; grid-template-columns: minmax(0, 555fr) minmax(0, 360fr); column-gap: clamp(40px, 5.2vw, 75px); max-width: 990px; }
.pu__photo { aspect-ratio: 360 / 535; }
.pu__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 27px; max-width: 1135px; margin-top: 55px; }
.pu__row .photo { aspect-ratio: 2 / 1; }

/* ---------- Antiguos alumnos ---------- */

.alumni { padding-block: clamp(80px, 10vw, 145px); background: var(--grad-alumni); color: #fff; }
.alumni__grid { display: grid; grid-template-columns: minmax(0, 360fr) minmax(0, 625fr); column-gap: clamp(40px, 6.25vw, 90px); align-items: center; max-width: 1075px; }
.alumni__photo { aspect-ratio: 360 / 615; }
.alumni__text .h2 { margin-bottom: 30px; }
.alumni__text p { color: rgba(255, 255, 255, 0.9); }
.alumni__text .btn { margin-top: 26px; }

/* ---------- Cómo reservar ---------- */

.steps { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(80px, 8.7vw, 125px); background: #0a0c16; color: #fff; text-align: center; }
.steps__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.steps::after { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(5, 7, 16, 0.72); }
.steps__inner { width: min(100% - 2 * var(--gutter), var(--wide)); }
.steps__lead { max-width: 850px; margin: 22px auto 44px; color: rgba(255, 255, 255, 0.9); }
.steps__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 35px; margin: 0 auto 44px; padding: 0; list-style: none; }
.steps__list li { display: flex; flex-direction: column; align-items: center; padding: 62px 30px 68px; border: 1px solid rgba(255, 255, 255, 0.45); background: rgba(8, 10, 22, 0.25); }
.steps__num { width: 100%; margin-bottom: 24px; padding-bottom: 22px; border-bottom: 1px solid rgba(255, 255, 255, 0.5); font: 400 40px/1 var(--serif); }
.steps__list p { max-width: 250px; font-size: 16px; line-height: 30px; }

/* ---------- Mapa ---------- */

.map { position: relative; height: 360px; overflow: hidden; background: #e9e5dc; }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
.map__placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center; padding: 20px;
  background: #ebe7de url('/img/mapa-fondo.svg') center / cover no-repeat;
}
.map__card { max-width: 360px; padding: 26px 30px; background: #fff; text-align: center; box-shadow: 0 14px 40px rgba(1, 17, 86, 0.16); }
.map__pin { width: 22px; height: 30px; margin: 0 auto 8px; fill: var(--orange); }
.map__address { margin-bottom: 16px; font-family: var(--serif); font-size: 22px; line-height: 1.3; color: var(--navy); }
.map__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.map__note { margin-top: 12px; font-size: 12px; line-height: 1.45; color: #6b6964; }

/* ---------- Contacto ---------- */

.contact { padding-block: clamp(80px, 8.3vw, 120px) clamp(72px, 8vw, 115px); background: var(--grad-contact); color: #fff; }
.contact__inner { max-width: 830px; text-align: center; }
.contact__lead { max-width: 610px; margin: 22px auto 70px; font-size: 16px; line-height: 30px; color: rgba(255, 255, 255, 0.9); }

.form { position: relative; text-align: left; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 84px; }
.field { display: flex; flex-direction: column; gap: 10px; min-width: 0; margin-top: 48px; }
.form__grid .field { margin-top: 0; }
.field label, .field__label { font-size: 14px; line-height: 1.3; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.78); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 8px 0 14px;
  border: 0; border-bottom: 1.5px solid var(--line-blue); border-radius: 0;
  background: transparent; color: #fff;
  font: 500 18px/1.45 var(--sans);
  color-scheme: dark;
  transition: border-color 0.2s;
}
.field textarea { resize: vertical; min-height: 46px; }
.field select { appearance: none; padding-right: 24px; cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") right 4px center no-repeat; }
.field select option { color: var(--ink); background: #fff; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, 0.45); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--lime); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-bottom-color: #ffa36b; }
.field__error, .check__error { margin: 0; font-size: 14px; color: #ffb88f; }
.field__hint { margin: 0; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, 0.78); }
.field__hint:empty { display: none; }
.field__hint.is-ok { color: var(--lime); }
.field__hint.is-warn { color: #ffc49e; }

.field--inline { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; margin-top: 56px; }
.radios { display: inline-flex; gap: 48px; }
.radio { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; cursor: pointer; }
.radio input, .check input { width: 18px; height: 18px; margin: 0; accent-color: var(--lime); cursor: pointer; }

.check { display: flex; align-items: flex-start; gap: 12px; margin: 34px 0 0; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, 0.86); cursor: pointer; }
.check input { flex: none; margin-top: 2px; }
.check__error { margin-top: 6px; }

.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__error { margin: 26px 0 0; padding: 12px 16px; border-left: 3px solid var(--orange); background: rgba(233, 103, 22, 0.18); font-size: 15px; }
.form .center { margin-top: 44px; }
.form__legal { max-width: 680px; margin: 28px auto 0; font-size: 12px; line-height: 1.55; text-align: center; color: rgba(255, 255, 255, 0.62); }

.form-done { padding: 56px 32px; border: 1px solid rgba(255, 255, 255, 0.3); text-align: center; }
.form-done h3 { margin-bottom: 12px; font-size: 40px; color: var(--lime); }
.form-done p { max-width: 520px; margin-inline: auto; }

/* ---------- Pie ---------- */

.footer { padding: 72px 0; background: var(--footer); color: #fff; }
.footer__inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 64px; align-items: center; width: min(100% - 2 * var(--gutter), var(--wide)); }
.footer__logo { display: block; }
.footer__logo img { display: block; width: 180px; height: auto; }
.footer__info { font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, 0.78); }
.footer__info p { margin: 0 0 8px; }
.footer__info a { text-decoration: none; }
.footer__info a:hover { text-decoration: underline; color: #fff; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-bottom: 8px; }
.footer__copy { color: rgba(255, 255, 255, 0.5); }
.whatsapp { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #25d366; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); transition: transform 0.2s; }
.whatsapp:hover { transform: scale(1.06); }
.whatsapp svg { width: 34px; height: 34px; fill: #fff; }

/* ---------- Visor de imágenes ---------- */

.lightbox { max-width: none; max-height: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(0, 6, 34, 0.9); }
.lightbox__img { max-width: min(92vw, 1400px); max-height: 86vh; width: auto; height: auto; object-fit: contain; }
.lightbox__close {
  position: fixed; top: 14px; right: 18px;
  width: 46px; height: 46px; padding: 0; border: 0;
  background: transparent; color: #fff; font-size: 38px; line-height: 1; cursor: pointer;
}
.lightbox__nav { position: fixed; top: 50%; width: 50px; height: 50px; padding: 0; border: 0; background: rgba(255, 255, 255, 0.12); transform: translateY(-50%); cursor: pointer; }
.lightbox__nav::before { content: ''; position: absolute; inset: 18px; border-top: 2px solid #fff; border-left: 2px solid #fff; }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--prev::before { transform: translateX(3px) rotate(-45deg); }
.lightbox__nav--next { right: 16px; }
.lightbox__nav--next::before { transform: translateX(-3px) rotate(135deg); }
.lightbox[data-single] .lightbox__nav { display: none; }

/* ---------- Páginas legales y 404 ---------- */

.page { min-height: 70vh; padding: clamp(48px, 6vw, 88px) 0 clamp(72px, 9vw, 128px); background: var(--beige); }
.page__inner { max-width: 780px; }
.page h1 { margin-bottom: 28px; font-size: clamp(36px, 3.7vw, 53px); line-height: 1.12; color: var(--heading); }
.page h2 { margin: 40px 0 12px; font-size: 28px; color: var(--heading); }
.page p, .page li { font-size: 17px; color: var(--ink-soft); }
.page ul { padding-left: 22px; }
.page a { color: var(--blue); }
.page__meta { font-size: 14px; color: #77746e; }
.page--center { display: grid; place-items: center; text-align: center; }
.page--center .btn { margin-top: 18px; }
.nav--simple { grid-template-columns: 1fr auto 1fr; }
.nav--simple .nav__brand { grid-column: 2; }
.nav__back { grid-column: 1; grid-row: 1; justify-self: start; font-family: var(--serif); font-size: 14px; letter-spacing: 0.09em; text-transform: uppercase; text-decoration: none; color: rgba(255, 255, 255, 0.86); }
.nav__back:hover { color: var(--lime); }

/* ---------- Adaptación a pantallas ---------- */

@media (max-width: 1200px) {
  .nav__links a { font-size: 13px; letter-spacing: 0.06em; }
  .nav__brand { padding: 0 18px; }
  .nav__logo { width: 180px; }
  .footer__inner { gap: 40px; }
}

@media (max-width: 900px) {
  body { font-size: 17px; }
  .br-lg { display: none; }
  .nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
  .nav__brand { align-items: flex-start; padding: 0; }
  .nav__logo { width: 124px; }
  .nav__toggle {
    display: grid; place-items: center;
    width: 46px; height: 46px; margin-right: -10px; padding: 0;
    border: 0; background: transparent; color: #fff; cursor: pointer;
  }
  .nav__toggle-bars, .nav__toggle-bars::before, .nav__toggle-bars::after {
    display: block; width: 22px; height: 2px; background: currentColor; transition: transform 0.2s, opacity 0.2s;
  }
  .nav__toggle-bars { position: relative; }
  .nav__toggle-bars::before, .nav__toggle-bars::after { content: ''; position: absolute; left: 0; }
  .nav__toggle-bars::before { top: -7px; }
  .nav__toggle-bars::after { top: 7px; }
  .nav.is-open .nav__toggle-bars { background: transparent; }
  .nav.is-open .nav__toggle-bars::before { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column;
    margin: 0; padding: 4px var(--gutter) 20px;
    background: var(--navy);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.25);
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links li { text-align: left; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
  .nav__links a { display: block; padding: 15px 0; font-size: 15px; }
  .nav__br { display: none; }
  .nav--simple { display: grid; }

  .hero { padding-bottom: 28px; }
  .hub__grid, .why__grid, .pu__grid, .alumni__grid { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .hub__photo { aspect-ratio: 4 / 3; }
  .hub__side { gap: 32px; }
  .plans { align-self: flex-start; width: min(280px, 100%); }
  .why__photo { aspect-ratio: 4 / 3; max-width: 100%; }
  .badge { left: 12px; top: auto; bottom: 12px; width: 136px; padding: 18px; font-size: 15px; }
  .reasons { gap: 32px; }
  .pu__photo, .alumni__photo { aspect-ratio: 4 / 3; }
  .alumni__photo { order: 2; }

  .flex { grid-template-columns: minmax(0, 1fr); padding: 72px var(--gutter); row-gap: 40px; }
  .flex__text { padding-bottom: 0; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .gallery__col { display: contents; }
  .gallery__item { aspect-ratio: 1; }

  .rates__grid { grid-template-columns: minmax(0, 1fr); max-width: 460px; }
  .rate { grid-row: auto; display: block; padding: 44px 28px 40px; }
  .steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .steps__list li { padding: 34px 22px 38px; }
  .form__grid { gap: 40px 40px; }
  .footer__inner { grid-template-columns: minmax(0, 1fr) auto; }
  .footer__info { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-inline: 12px; }
  .hero__content { padding: 56px 18px; }
  .hero__lead { font-size: 15px; margin-bottom: 36px; }
  .btn { padding: 16px 20px; font-size: 12px; letter-spacing: 0.1em; }
  .form__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .field--inline { margin-top: 40px; }
  .field input, .field select, .field textarea { font-size: 16px; }
  .contact__lead { margin-bottom: 48px; }
  .pu__row { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pu__row .photo { aspect-ratio: 16 / 9; }
  .steps__list { grid-template-columns: minmax(0, 1fr); }
  .rate__text, .steps__list p { font-size: 15px; line-height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
