/* ==========================================================================
   Fluidos UPV · Propuesta v2 (dirección institucional moderna)
   Como las webs de las universidades técnicas europeas: fotografía grande, una sans limpia,
   tarjetas con imagen y bloques de color sólido. Serio pero actual.
   La cabecera (franja UPV › Departamento, nombre del grupo, logo UPV y menú) se mantiene de la
   versión anterior porque gustó. Ver PRODUCT.md.
   ========================================================================== */

:root {
    --bg:        oklch(1 0 0);
    --surface:   oklch(0.968 0.006 250);
    --surface-2: oklch(0.935 0.011 250);
    --ink:       oklch(0.22 0.03 255);
    --ink-2:     oklch(0.42 0.022 255);
    --ink-3:     oklch(0.53 0.018 255);
    --rule:      oklch(0.22 0.03 255 / 0.13);
    --rule-2:    oklch(0.22 0.03 255 / 0.28);
    /* Azul y rojo de la marca (los del logo: #1A3056 y #C0392B) */
    --navy:      oklch(0.313 0.074 260.6);
    --navy-2:    oklch(0.38 0.08 260.6);
    --navy-3:    oklch(0.26 0.065 260.6);
    --red:       oklch(0.543 0.174 29.7);
    --red-2:     oklch(0.49 0.17 29.7);
    --on-navy:   oklch(0.98 0.004 250);
    --on-navy-2: oklch(0.98 0.004 250 / 0.78);

    /* Tipografías de la UPV (las de upv.es): Poppins en títulos, Inter en texto */
    --head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
    --serif: var(--head);   /* (nombre antiguo, se mantiene por compatibilidad) */
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

    --fs-xs: 0.8125rem;
    --fs-sm: 0.9375rem;
    --fs-body: 1.0625rem;
    --fs-lead: clamp(1.125rem, 1.05rem + 0.3vw, 1.3rem);
    --fs-h4: 1.15rem;
    --fs-h3: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
    --fs-h2: clamp(1.65rem, 1.35rem + 1.1vw, 2.25rem);
    --fs-h1: clamp(2.1rem, 1.6rem + 2vw, 3.1rem);

    --gutter: clamp(1rem, 0.5rem + 2.4vw, 2.5rem);
    --wrap: 1240px;
    --sec: clamp(3.25rem, 2.25rem + 4vw, 5.5rem);
    --r: 0px;
    --z-nav: 50;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: var(--fs-body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; font-family: var(--head); font-weight: 600; line-height: 1.18; letter-spacing: -0.012em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a, button, summary, label, select { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
[id] { scroll-margin-top: 6rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 100; background: var(--navy); color: var(--on-navy); padding: .7rem 1rem; }
.skip:focus { top: 1rem; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* ---------------------------------------------------------------- Elementos básicos */
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.more, .link { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-weight: 700; color: var(--navy); text-decoration: none; white-space: nowrap; }
.more::after { content: "→"; }
@media (hover: hover) and (pointer: fine) { .more:hover, .link:hover { text-decoration: underline; } }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .65rem 1.4rem;
    border: 2px solid var(--navy); border-radius: var(--r); background: var(--navy); color: var(--on-navy);
    font: 700 1rem/1.2 var(--sans); text-decoration: none; -webkit-user-select: none; user-select: none;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.btn:active { background: var(--navy-3); border-color: var(--navy-3); }
.btn--line { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--light { background: var(--bg); color: var(--navy); border-color: var(--bg); }
.btn--ghost { background: transparent; color: var(--on-navy); border-color: oklch(1 0 0 / .6); }
@media (hover: hover) and (pointer: fine) {
    .btn:hover { background: var(--navy-2); border-color: var(--navy-2); }
    .btn--line:hover { background: var(--navy); color: var(--on-navy); border-color: var(--navy); }
    .btn--light:hover { background: var(--surface-2); border-color: var(--surface-2); color: var(--navy); }
    .btn--ghost:hover { background: oklch(1 0 0 / .12); border-color: var(--on-navy); }
}

.tag { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem; background: var(--surface-2); font-size: var(--fs-xs); font-weight: 700; line-height: 1.45; color: var(--ink-2); white-space: nowrap; }
.tag--open { background: var(--red); color: var(--on-navy); }
.tag--live { background: var(--navy); color: var(--on-navy); }

/* ---------------------------------------------------------------- Cabecera institucional */
.topbar { background: var(--navy); color: var(--on-navy-2); font-size: var(--fs-xs); }
.topbar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1.5rem; min-height: 2.25rem; padding-block: .3rem; }
.topbar a { color: var(--on-navy); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar__inst { display: flex; flex-wrap: wrap; gap: .1rem .5rem; }
.topbar__inst span + span::before { content: "›"; margin-right: .5rem; opacity: .6; }

.masthead { border-bottom: 1px solid var(--rule); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.1rem; }
.brand { display: inline-flex; align-items: center; gap: 1.1rem; text-decoration: none; color: var(--ink); }
/* Logo grande (ver /marca): 48 px de alto; la descripción a la derecha, tras una línea fina */
.brand__logo { height: 48px; width: auto; flex: none; }
.brand .brand__sub { margin-top: 0; padding-left: 1.1rem; border-left: 1px solid var(--rule-2); max-width: 34ch; }
.brand__sub { display: block; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.3; margin-top: .2rem; }
.masthead__upv { display: block; flex: none; }
.masthead__upv img { height: 46px; width: auto; }
.masthead__menu { display: none; min-height: 44px; padding: .5rem 1rem; border: 1px solid var(--rule-2); border-radius: var(--r); background: var(--bg); color: var(--ink); font: 600 var(--fs-sm)/1 var(--sans); cursor: pointer; -webkit-user-select: none; user-select: none; }

.mainnav { position: sticky; top: 0; z-index: var(--z-nav); background: var(--bg); border-bottom: 1px solid var(--rule); }
.mainnav ul { display: flex; gap: .25rem; }
.mainnav a { position: relative; display: flex; align-items: center; min-height: 3.25rem; padding: 0 .9rem; text-decoration: none; font-weight: 600; font-size: .98rem; color: var(--ink-2); transition: color 150ms ease; }
.mainnav li:first-child a { padding-left: 0; }
.mainnav a::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: -1px; height: 3px; background: transparent; transition: background-color 150ms ease; }
.mainnav li:first-child a::after { left: 0; }
.mainnav a[aria-current="page"] { color: var(--ink); }
.mainnav a[aria-current="page"]::after { background: var(--red); }
@media (hover: hover) and (pointer: fine) { .mainnav a:hover { color: var(--ink); } .mainnav a:hover::after { background: var(--rule-2); } .mainnav a[aria-current="page"]:hover::after { background: var(--red); } }
.mainnav__contact { margin-left: auto; }

.menu { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; border: 0; padding: calc(1rem + env(safe-area-inset-top, 0px)) var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px)); background: var(--bg); color: var(--ink); }
.menu[open] { display: flex; flex-direction: column; }
.menu::backdrop { background: oklch(0.22 0.03 255 / .3); }
.menu__top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.menu__logo { height: 34px; width: auto; }
.menu__close { min-height: 44px; padding: .5rem 1rem; border: 1px solid var(--rule-2); border-radius: var(--r); background: none; color: inherit; font: 600 var(--fs-sm)/1 var(--sans); cursor: pointer; }
.menu nav a { display: flex; align-items: center; min-height: 3.5rem; border-bottom: 1px solid var(--rule); text-decoration: none; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.menu nav a[aria-current="page"] { color: var(--red); }
.menu__foot { margin-top: auto; padding-top: 1.5rem; color: var(--ink-2); font-size: var(--fs-sm); display: grid; gap: .25rem; }
.menu__foot a { color: var(--navy); font-weight: 600; }

/* ---------------------------------------------------------------- Secciones */
.sec { padding-block: var(--sec); }
.sec--alt { background: var(--surface); }
.sec--flush { padding-top: clamp(1.75rem, 3.5vw, 2.75rem); }
.sec__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .5rem 2rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.sec__title { font-size: var(--fs-h2); }
.sec__intro { color: var(--ink-2); max-width: 62ch; margin-top: .6rem; font-size: var(--fs-lead); line-height: 1.5; }

/* ---------------------------------------------------------------- Portada: foto a sangre con bloque de presentación */
.hero { position: relative; background: var(--navy-3); }
.hero__media { position: relative; height: clamp(460px, 72svh, 760px); overflow: hidden; background: var(--navy-3); }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 900ms ease-in-out; }
.hero__media img.is-on { opacity: 1; }
.hero__wrap { position: absolute; left: 0; right: 0; bottom: clamp(4.5rem, 7vw, 5.5rem); }
.hero__box { max-width: 660px; padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--navy); color: var(--on-navy); }
.hero__kicker { font-size: var(--fs-sm); font-weight: 700; color: var(--on-navy-2); margin-bottom: .75rem; }
.hero__title { font-size: var(--fs-h1); line-height: 1.08; letter-spacing: -0.02em; color: var(--on-navy); }
.hero__lead { margin-top: 1rem; color: var(--on-navy-2); font-size: 1.075rem; line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero__bar { position: absolute; left: 0; right: 0; bottom: 0; background: oklch(0.22 0.04 257 / .82); color: var(--on-navy-2); font-size: var(--fs-sm); }
.hero__bar-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem; }
.hero__caption { min-width: 0; }
.figure__text { display: flex; flex-wrap: wrap; gap: .1rem .75rem; align-items: baseline; }
.figure__text[hidden] { display: none; }
.figure__text strong { color: var(--on-navy); font-weight: 700; }
.figure__text a { color: var(--on-navy); font-weight: 700; }
.figure__dots { display: flex; flex: none; }
.figure__dots button { width: 2.75rem; height: 2.75rem; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.figure__dots button span { width: 1.6rem; height: 3px; background: oklch(1 0 0 / .4); }
.figure__dots button[aria-current="true"] span { background: var(--on-navy); }

/* Tres accesos con foto */
.gates { padding-block: clamp(2.5rem, 5vw, 4rem) 0; }
.gates__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.gate { display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: inherit; background: var(--surface); }
.gate__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.gate__img img { width: 100%; height: 100%; object-fit: cover; }
.gate__body { display: grid; gap: .45rem; align-content: start; padding: 1.25rem 1.4rem 1.5rem; border-top: 4px solid var(--red); }
.gate__title { font-size: var(--fs-h3); display: flex; justify-content: space-between; gap: 1rem; }
.gate__title::after { content: "→"; color: var(--navy); }
.gate__text { color: var(--ink-2); font-size: var(--fs-sm); }
.gate__data { font-size: var(--fs-sm); font-weight: 700; color: var(--navy); }
@media (hover: hover) and (pointer: fine) { .gate:hover .gate__title { text-decoration: underline; text-underline-offset: 4px; } }
.gate:active .gate__body { background: var(--surface-2); }

/* Ámbitos en páginas interiores (Investigación): bloques de color */
.areas3 { padding-block: clamp(2rem, 4vw, 3rem) 0; }
.areas3__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.area3 { display: grid; gap: .55rem; align-content: start; padding: 1.5rem 1.5rem 1rem; background: var(--navy); color: var(--on-navy-2); }
.area3 h2 { font-size: var(--fs-h3); color: var(--on-navy); }
.area3 p { font-size: var(--fs-sm); }
.area3__data { font-weight: 700; color: var(--on-navy); }
.area3 .more { color: var(--on-navy); }

/* Líneas de investigación: bloques claros */
.lines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.line { display: grid; gap: .5rem; align-content: start; padding: 1.5rem; background: var(--bg); border-top: 4px solid var(--navy); }
.sec:not(.sec--alt) .line { background: var(--surface); }
.line h3 { font-size: var(--fs-h4); }
.line p { color: var(--ink-2); font-size: var(--fs-sm); }
.line .more { min-height: 0; margin-top: .25rem; font-size: var(--fs-sm); }

/* ---------------------------------------------------------------- Tarjetas con imagen */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.card { display: grid; background: var(--surface); }
.sec--alt .card { background: var(--bg); }
.card > a { display: grid; grid-template-rows: auto auto auto 1fr; gap: .55rem; align-content: start; padding: 0 1.25rem 1.4rem; text-decoration: none; color: inherit; }
.card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface-2); margin: 0 -1.25rem .6rem; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__label { display: flex; flex-wrap: wrap; gap: .4rem .75rem; align-items: center; }
.card__title { font-size: var(--fs-h4); line-height: 1.3; }
.card__acr { color: var(--red); }
.card__text { color: var(--ink-2); font-size: var(--fs-sm); }
.card__meta { font-size: var(--fs-sm); color: var(--ink-3); align-self: end; }
.card__ph { display: grid; place-items: center; height: 100%; font-size: 2.5rem; font-weight: 700; color: var(--navy); }
@media (hover: hover) and (pointer: fine) { .card > a:hover .card__title { text-decoration: underline; text-underline-offset: 4px; } }
.card > a:active { background: var(--surface-2); }

/* Noticias en rejilla */
.newsgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.newsitem { background: var(--surface); }
.sec--alt .newsitem { background: var(--bg); }
.newsitem > a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.newsitem > a > span { display: grid; gap: .45rem; align-content: start; padding: 1.1rem 1.25rem 1.4rem; }
.newsitem__img { order: -1; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--surface-2); }
.newsitem__meta { display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: var(--fs-xs); font-weight: 700; color: var(--ink-3); }
.newsitem__meta span { color: var(--red); }
.newsitem__title { font-size: var(--fs-h4); line-height: 1.3; }
.newsitem__text { font-size: var(--fs-sm); color: var(--ink-2); }
.newsgrid .newsitem--lead { grid-column: 1 / -1; }
.newsitem--lead > a { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.newsitem--lead > a > span { align-content: center; padding: clamp(1.25rem, 3vw, 2.5rem); }
.newsitem--lead .newsitem__img { height: 100%; aspect-ratio: 16 / 10; }
.newsitem--lead .newsitem__title { font-size: var(--fs-h2); }
.newsitem--lead .newsitem__text { font-size: var(--fs-body); }
.newsgrid--page { margin-top: .5rem; }
@media (hover: hover) and (pointer: fine) { .newsitem > a:hover .newsitem__title { text-decoration: underline; text-underline-offset: 4px; } }
.newsitem > a:active { background: var(--surface-2); }

/* Citas (producción científica) */
.cites { border-top: 2px solid var(--ink); }
.cite { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.cite__ref { line-height: 1.5; }
.cite__authors { font-size: var(--fs-sm); color: var(--ink-2); }
.cite__title { font-weight: 700; }
.cite__title a { text-decoration: none; }
.cite__title a:hover { text-decoration: underline; }
.cite__source { font-style: italic; color: var(--ink-2); }
.cite__meta { grid-column: 1; display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: var(--fs-xs); color: var(--ink-3); font-weight: 600; }
.cite__code { font-weight: 700; color: var(--red); }
.cite__go { grid-row: 1 / span 2; grid-column: 2; align-self: start; display: inline-flex; align-items: center; min-height: 44px; padding: 0 .9rem; border: 2px solid var(--navy); font-size: var(--fs-sm); font-weight: 700; color: var(--navy); text-decoration: none; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .cite__go:hover { background: var(--navy); color: var(--on-navy); } }
.cite__desc { grid-column: 1; font-size: var(--fs-sm); color: var(--ink-2); }

/* Agenda de cursos */
.agenda { display: grid; gap: .75rem; }
.event > a { display: grid; grid-template-columns: 6rem minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; padding: 1rem 1.25rem 1rem 1rem; background: var(--surface); text-decoration: none; color: inherit; }
.sec--alt .event > a { background: var(--bg); }
.event__date { display: grid; place-content: center; justify-items: center; width: 6rem; aspect-ratio: 1; background: var(--navy); color: var(--on-navy); line-height: 1.1; text-align: center; }
.event__day { font-size: 2.2rem; font-weight: 700; font-variant-numeric: lining-nums; }
.event__month { font-size: var(--fs-xs); font-weight: 700; color: var(--on-navy-2); }
.event__tbd { padding: .5rem; font-size: var(--fs-xs); font-weight: 700; line-height: 1.3; }
.event__title { font-size: var(--fs-h4); line-height: 1.3; }
.event__sub { display: block; margin-top: .2rem; color: var(--ink-2); font-size: var(--fs-sm); }
.event__meta { display: flex; flex-wrap: wrap; gap: .35rem .9rem; align-items: center; margin-top: .5rem; font-size: var(--fs-sm); color: var(--ink-3); }
.event__go { color: var(--navy); font-weight: 700; font-size: var(--fs-sm); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .event > a:hover .event__title { text-decoration: underline; text-underline-offset: 4px; } }
.event > a:active { background: var(--surface-2); }

/* Personas (portada) */
.people { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.people__title { font-size: var(--fs-h2); margin-top: .5rem; }
.people__points { display: grid; gap: 1rem; margin-top: 1.5rem; }
.people__points > div { padding-left: 1rem; border-left: 4px solid var(--red); }
.people__points dt { font-weight: 700; }
.people__points dd { color: var(--ink-2); font-size: var(--fs-sm); }
.people__note { margin-top: 1.5rem; color: var(--ink-2); font-size: var(--fs-sm); }
.people__note a { color: var(--navy); font-weight: 700; }
.faces { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem 1rem; }
.face a, .face > div { display: grid; gap: .45rem; text-decoration: none; color: inherit; }
.face img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; background: var(--surface-2); }
.face strong { font-size: var(--fs-sm); line-height: 1.3; }
.face span { font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.35; }
@media (hover: hover) and (pointer: fine) { .face a:hover strong { text-decoration: underline; } }

/* Preguntas frecuentes */
.faq { border-top: 2px solid var(--ink); max-width: 920px; }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; padding: .9rem 0; cursor: pointer; list-style: none; -webkit-user-select: none; user-select: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { font-size: var(--fs-h4); line-height: 1.35; }
.faq__item summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; background: var(--navy); color: var(--on-navy); font-size: 1.3rem; line-height: 1; }
.faq__item[open] summary::after { content: "–"; }
.faq__answer { padding: 0 3rem 1.25rem 0; color: var(--ink-2); max-width: 72ch; }

/* Colaboración (cierre de la portada) */
.collab { background: var(--navy); color: var(--on-navy); }
.collab .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.collab h2 { font-size: var(--fs-h2); color: var(--on-navy); }
.collab__kicker { font-size: var(--fs-sm); font-weight: 700; color: var(--on-navy-2); margin-bottom: .75rem; }
.collab p { color: var(--on-navy-2); margin-top: 1rem; max-width: 56ch; }
.collab__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.collab .btn--line { color: var(--on-navy); border-color: oklch(1 0 0 / .6); }
@media (hover: hover) and (pointer: fine) { .collab .btn--line:hover { background: oklch(1 0 0 / .12); color: var(--on-navy); border-color: var(--on-navy); } }
.collab__tel { font-size: var(--fs-sm); }
.collab__tel a { color: var(--on-navy); font-weight: 700; }
.collab h3 { font-size: var(--fs-sm); color: var(--on-navy-2); margin-bottom: .5rem; }
.collab__services { display: grid; gap: .5rem; }
.collab__services a { display: flex; justify-content: space-between; gap: 1rem; min-height: 3.25rem; align-items: center; padding: 0 1.1rem; background: oklch(1 0 0 / .08); text-decoration: none; font-weight: 700; }
.collab__services a::after { content: "→"; }
@media (hover: hover) and (pointer: fine) { .collab__services a:hover { background: oklch(1 0 0 / .16); } }
.collab__partners { margin-top: 2rem; font-size: var(--fs-sm); }
.collab__partners strong { display: block; color: var(--on-navy); margin-bottom: .35rem; }

/* ---------------------------------------------------------------- Cabecera de las páginas interiores */
.ph { background: var(--surface); }
.ph__grid { padding-block: clamp(1.5rem, 3vw, 2.25rem) clamp(2rem, 4vw, 3rem); }
.ph--img .ph__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .1rem .5rem; font-size: var(--fs-sm); color: var(--ink-3); margin-bottom: 1.25rem; }
.crumbs li { display: flex; align-items: center; gap: .5rem; }
.crumbs li + li::before { content: "›"; }
.crumbs a { color: var(--ink-2); display: inline-flex; align-items: center; min-height: 32px; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.ph__kicker { font-size: var(--fs-sm); font-weight: 700; color: var(--red); margin-bottom: .6rem; }
.ph__title { font-size: var(--fs-h1); max-width: 24ch; line-height: 1.1; letter-spacing: -0.02em; }
.ph__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.1rem; }
.ph__lead { margin-top: 1rem; max-width: 62ch; font-size: var(--fs-lead); color: var(--ink-2); line-height: 1.5; }
.ph__fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface-2); }

.pagenav { background: var(--bg); border-bottom: 1px solid var(--rule); position: sticky; top: 3.25rem; z-index: calc(var(--z-nav) - 1); }
.pagenav__in { display: flex; gap: 1.75rem; overflow-x: auto; scrollbar-width: none; }
.pagenav__in::-webkit-scrollbar { display: none; }
.pagenav a { position: relative; flex: none; display: inline-flex; align-items: center; gap: .4rem; min-height: 3rem; text-decoration: none; font-size: var(--fs-sm); font-weight: 700; color: var(--ink-2); }
.pagenav a span { font-weight: 400; color: var(--ink-3); }
.pagenav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: transparent; }
.pagenav a[aria-current="true"] { color: var(--ink); }
.pagenav a[aria-current="true"]::after { background: var(--red); }

/* Documento con ficha lateral */
.doc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: clamp(2rem, 5vw, 4.5rem); padding-block: clamp(2rem, 4vw, 3rem) var(--sec); align-items: start; }
.doc--single { grid-template-columns: minmax(0, 800px); }
.doc__main { min-width: 0; }
.doc__sec + .doc__sec { margin-top: 2.75rem; }
.doc__sec > h2 { font-size: var(--fs-h2); margin-bottom: 1rem; }
.doc__sub { display: flex; align-items: baseline; gap: .5rem; font-size: var(--fs-sm); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); margin: 1.75rem 0 .6rem; }
.doc__sub:first-of-type { margin-top: 0; }
.doc__aside { position: sticky; top: 7rem; display: grid; gap: 1.5rem; }

.facts { background: var(--surface); }
.facts__title { padding: .85rem 1.25rem; background: var(--navy); color: var(--on-navy); font-size: var(--fs-sm); font-weight: 700; }
.facts > :not(.facts__title) { margin-inline: 1.25rem; }
.facts > :last-child { margin-bottom: 1.25rem; }
.facts dl { margin-top: .5rem; }
.facts dl > div { padding: .65rem 0; border-top: 1px solid var(--rule); }
.facts dl > div:first-child { border-top: 0; }
.facts dt { font-size: var(--fs-xs); font-weight: 700; color: var(--ink-3); }
.facts dd { font-size: var(--fs-sm); color: var(--ink); line-height: 1.45; }
.facts dd a { color: var(--navy); font-weight: 700; }
.facts p { font-size: var(--fs-sm); color: var(--ink-2); margin-top: 1rem; }
.facts .btn { width: calc(100% - 2.5rem); margin-top: 1.25rem; }
.facts .links { margin-top: .75rem; }
.facts__sub { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin-top: 1.25rem; margin-bottom: .25rem; }
.facts__links a { display: grid; padding: .6rem 0; border-top: 1px solid var(--rule); text-decoration: none; font-size: var(--fs-sm); }
.facts__links strong { color: var(--navy); }
.facts__links span { color: var(--ink-2); }

.prose { font-size: 1.1rem; line-height: 1.7; color: var(--ink); max-width: 70ch; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.6em; }
.prose h2 { font-size: 1.45rem; } .prose h3 { font-size: 1.2rem; } .prose h4 { font-size: 1.05rem; }
.prose ul { list-style: square; padding-left: 1.25rem; }
.prose ol { list-style: decimal; padding-left: 1.25rem; }
.prose li + li { margin-top: .35rem; }
.prose li::marker { color: var(--red); }
.prose a { color: var(--navy); font-weight: 600; }
.prose blockquote { margin: 1.5em 0; padding: 1rem 1.25rem; border-left: 4px solid var(--red); background: var(--surface); color: var(--ink-2); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.prose th, .prose td { padding: .55rem .7rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.prose th { background: var(--surface); }
.prose img { margin-block: 1.5em; }

.goals { counter-reset: objetivo; display: grid; gap: .5rem; }
.goals li { counter-increment: objetivo; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 1rem; align-items: start; padding: .9rem 1rem; background: var(--surface); line-height: 1.55; }
.goals li::before { content: counter(objetivo); display: grid; place-items: center; width: 2.5rem; height: 2.5rem; background: var(--navy); color: var(--on-navy); font-weight: 700; }

.acts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
.acts > * { padding: 1.1rem 1.25rem; background: var(--surface); }
.acts h3 { font-size: var(--fs-sm); margin-bottom: .45rem; }
.acts ul { list-style: square; padding-left: 1.1rem; font-size: var(--fs-sm); color: var(--ink-2); display: grid; gap: .25rem; }

.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 1rem; }
.members li { display: flex; align-items: center; gap: .85rem; }
.members img, .members__ph { width: 60px; height: 60px; object-fit: cover; flex: none; background: var(--surface-2); }
.members__ph { display: grid; place-items: center; font-weight: 700; color: var(--navy); }
.members span { display: grid; line-height: 1.3; font-size: var(--fs-sm); }
.members em { font-style: normal; color: var(--ink-3); font-size: var(--fs-xs); }
.members a { color: inherit; }

.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.logos img { height: clamp(48px, 5vw, 64px); width: auto; max-width: 200px; object-fit: contain; }

.contactbox { padding: 1.75rem; background: var(--navy); color: var(--on-navy-2); }
.contactbox h2 { color: var(--on-navy); font-size: var(--fs-h3); }
.contactbox p { margin: .5rem 0 1.25rem; }
.contactbox .btn { background: var(--bg); color: var(--navy); border-color: var(--bg); }

/* Datos clave (cursos) */
.keyfacts { background: var(--navy); color: var(--on-navy); }
.keyfacts .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.25rem; }
.keyfacts dl { display: flex; flex-wrap: wrap; gap: .75rem 2.25rem; }
.keyfacts dt { font-size: var(--fs-xs); font-weight: 700; color: var(--on-navy-2); }
.keyfacts dd { font-weight: 700; font-size: var(--fs-sm); }
.keyfacts__cta { display: flex; flex-wrap: wrap; gap: .6rem; }
.keyfacts .btn { background: var(--bg); color: var(--navy); border-color: var(--bg); }
.keyfacts .btn--line { background: transparent; color: var(--on-navy); border-color: oklch(1 0 0 / .6); }

.links { border-top: 1px solid var(--rule); }
.links a { display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 3rem; border-bottom: 1px solid var(--rule); text-decoration: none; font-weight: 700; color: var(--navy); }
@media (hover: hover) and (pointer: fine) { .links a:hover { text-decoration: underline; } }
.links--cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); column-gap: 2rem; border-top: 0; }

/* Filtros y paginación */
.filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.5rem 0; }
.filters ul { display: flex; flex-wrap: wrap; gap: .4rem; }
.filters ul a { display: inline-flex; align-items: center; min-height: 42px; padding: 0 1rem; background: var(--surface); text-decoration: none; font-size: var(--fs-sm); font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.filters ul a[aria-current="true"] { background: var(--navy); color: var(--on-navy); }
@media (hover: hover) and (pointer: fine) { .filters ul a:not([aria-current]):hover { background: var(--surface-2); color: var(--ink); } }
.filters__year { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: var(--fs-sm); }
select, input, textarea { font: inherit; font-size: max(16px, 1rem); color: var(--ink); }
.filters__year select, .field input, .field select, .field textarea { background: var(--bg); border: 1px solid var(--rule-2); border-radius: 0; padding: .65rem .8rem; }
.filters__year select:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); }
.pager { display: flex; align-items: center; justify-content: center; gap: .4rem; margin-top: 2.5rem; }
.pager ol { display: flex; gap: .25rem; }
.pager a, .pager span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .6rem; text-decoration: none; font-weight: 700; font-size: var(--fs-sm); }
.pager a { background: var(--surface); color: var(--navy); }
.pager [aria-current="page"] { background: var(--navy); color: var(--on-navy); }
.pager .is-off { color: var(--ink-3); opacity: .5; }

/* Tesis */
.theses { display: grid; gap: .75rem; }
.thesis { display: grid; gap: .5rem; padding: 1.25rem 1.4rem; background: var(--surface); border-left: 4px solid var(--navy); }
.sec--alt .thesis { background: var(--bg); }
.thesis__state { display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: center; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-3); }
.thesis__title { font-size: var(--fs-h4); line-height: 1.35; }
.thesis__title a { text-decoration: none; }
.thesis__title a:hover { text-decoration: underline; }
.thesis__facts { display: flex; flex-wrap: wrap; gap: .3rem 1.5rem; font-size: var(--fs-sm); color: var(--ink-2); }
.thesis__facts dt { display: inline; font-weight: 700; color: var(--ink); }
.thesis__facts dt::after { content: ": "; }
.thesis__facts dd { display: inline; }

/* Quiénes somos */
.mission { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.group-title { display: flex; align-items: baseline; gap: .5rem; font-size: var(--fs-sm); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); margin: 2.75rem 0 1.25rem; }
.group-title:first-of-type { margin-top: 0; }
.group-title span { font-weight: 400; color: var(--ink-3); }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 2rem 1.25rem; }
.person { display: grid; gap: .3rem; align-content: start; }
.person img, .person__ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface-2); margin-bottom: .5rem; }
.person__ph { display: grid; place-items: center; font-size: 3rem; font-weight: 700; color: var(--navy); }
.person__name { font-size: var(--fs-h4); line-height: 1.3; }
.person__name a { text-decoration: none; }
.person__name a:hover { text-decoration: underline; }
.person__role { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.4; }
.person__links { display: flex; flex-wrap: wrap; gap: .1rem 1rem; font-size: var(--fs-sm); }
.person__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--navy); font-weight: 700; }

.timeline { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1rem; }
.milestone { display: grid; gap: .35rem; align-content: start; padding: 1.25rem 1.4rem; background: var(--surface); border-top: 4px solid var(--red); }
.sec--alt .milestone { background: var(--bg); }
.milestone__year { font-size: 1.6rem; font-weight: 700; color: var(--navy); line-height: 1.1; }
.milestone h3 { font-size: var(--fs-h4); }
.milestone__sub { font-size: var(--fs-sm); font-weight: 700; color: var(--ink-2); }
.milestone__text { color: var(--ink-2); font-size: var(--fs-sm); }
.milestone img { margin-top: .5rem; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.place { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.place__map { aspect-ratio: 4 / 3; background: var(--surface-2); }
.place__map iframe { width: 100%; height: 100%; border: 0; }
.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 1rem; }
.partners li > * { display: grid; gap: .3rem; height: 100%; min-height: 5rem; padding: 1.1rem 1.25rem; background: var(--surface); text-decoration: none; color: inherit; align-content: center; }
.partners img { max-height: 48px; max-width: 160px; object-fit: contain; }
.partners strong { font-weight: 700; }
.partners span { font-size: var(--fs-xs); color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) { .partners a:hover { background: var(--surface-2); } }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: .75rem; margin-top: 1.5rem; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; aspect-ratio: 4 / 3; cursor: zoom-in; background: var(--surface-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.lightbox { max-width: min(94vw, 1400px); max-height: 92vh; padding: 0; border: 0; background: var(--ink); }
.lightbox::backdrop { background: oklch(0.15 0.02 255 / .85); }
.lightbox img { max-width: 100%; max-height: 92vh; object-fit: contain; }
.lightbox__close { position: absolute; top: .75rem; right: .75rem; min-height: 44px; padding: .5rem 1rem; border: 0; background: var(--bg); color: var(--ink); font: 700 var(--fs-sm)/1 var(--sans); cursor: pointer; }

/* Servicios */
.services { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.service > a { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--surface); text-decoration: none; color: inherit; }
.service > a > div { display: grid; gap: .5rem; align-content: center; padding: clamp(1.25rem, 3vw, 2.5rem); order: 2; }
.service img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--surface-2); }
.service__name { font-size: var(--fs-h3); display: flex; gap: 1rem; justify-content: space-between; }
.service__name::after { content: "→"; color: var(--navy); }
.service__text { color: var(--ink-2); max-width: 60ch; }
.service__data { font-size: var(--fs-sm); font-weight: 700; color: var(--red); }
@media (hover: hover) and (pointer: fine) { .service > a:hover .service__name { text-decoration: underline; text-underline-offset: 4px; } }
.service > a:active { background: var(--surface-2); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1rem; counter-reset: paso; }
.steps li { counter-increment: paso; display: grid; gap: .4rem; align-content: start; padding: 1.4rem; background: var(--bg); }
.steps li::before { content: counter(paso); display: grid; place-items: center; width: 2.5rem; height: 2.5rem; margin-bottom: .4rem; background: var(--red); color: var(--on-navy); font-weight: 700; }
.steps span { color: var(--ink-2); font-size: var(--fs-sm); }

/* Contacto */
.contact { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; padding-block: clamp(2rem, 4vw, 3rem) var(--sec); }
.contact__info { display: grid; background: var(--navy); color: var(--on-navy); padding: .5rem 1.5rem; }
.contact__info > * { display: grid; gap: .2rem; padding: 1.1rem 0; border-bottom: 1px solid oklch(1 0 0 / .18); text-decoration: none; color: inherit; }
.contact__info > *:last-child { border-bottom: 0; }
.contact__info span { font-size: var(--fs-xs); font-weight: 700; color: var(--on-navy-2); }
.contact__info strong { font-size: 1.35rem; font-weight: 700; }
.contact__info address { font-size: var(--fs-sm); color: var(--on-navy-2); }
.contact__info .link { color: var(--on-navy); }
.form { display: grid; gap: 1.1rem; }
.form__title { font-size: var(--fs-h2); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .35rem; font-weight: 700; font-size: var(--fs-sm); }
.field em { font-style: normal; font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea { width: 100%; font-weight: 400; }
.field textarea { min-height: 9rem; resize: vertical; }
.field :user-invalid { border-color: var(--red); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-2); }
.check input { width: 1.2rem; height: 1.2rem; margin-top: .15rem; accent-color: var(--navy); }
.check a { color: var(--navy); font-weight: 700; }
.form__foot { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.form__status { font-size: var(--fs-sm); font-weight: 700; }
.form__status.is-ok { color: oklch(0.45 0.12 155); }
.form__status.is-error { color: var(--red); }

/* Franja final de las páginas interiores */
.strip { background: var(--red); color: var(--on-navy); }
.strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: clamp(1.75rem, 3vw, 2.5rem); }
.strip p { font-size: var(--fs-h3); font-weight: 700; max-width: 44ch; }
.strip .btn { background: var(--bg); color: var(--red-2); border-color: var(--bg); }
@media (hover: hover) and (pointer: fine) { .strip .btn:hover { background: var(--surface-2); border-color: var(--surface-2); } }

.empty { padding: 2rem; color: var(--ink-2); background: var(--surface); }

/* Noticia */
.article__body { padding-block: clamp(2rem, 4vw, 3rem) var(--sec); }
.article__back { margin-top: 2.5rem; max-width: 70ch; }

/* «Qué cambia y por qué» */
.why { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.why__head h2 { font-size: var(--fs-h2); }
.why__head p { margin-top: .75rem; color: var(--ink-2); }
.why__list { display: grid; gap: .5rem; }
.why__item { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: .3rem 2rem; padding: 1.1rem 1.25rem; background: var(--surface); }
.sec--alt .why__item { background: var(--bg); }
.why__item dt { font-weight: 700; line-height: 1.35; }
.why__item dd { color: var(--ink-2); font-size: var(--fs-sm); }

/* Páginas de texto antiguas (privacidad, cookies) */
.page-text main { padding: clamp(2rem, 4vw, 3rem) var(--gutter) var(--sec); }
.page-text main .container { width: min(100%, 800px); margin-inline: auto; }
.page-text main h1 { font-size: var(--fs-h1); margin-bottom: 2rem; }
.page-text main h2, .page-text main h3 { margin: 2em 0 .6em; }
.page-text main h2 { font-size: 1.45rem; } .page-text main h3 { font-size: 1.2rem; }
.page-text main p, .page-text main li { color: var(--ink-2); margin-bottom: .8em; }
.page-text main ul, .page-text main ol { padding-left: 1.25rem; list-style: revert; }
.page-text main a { color: var(--navy); }
.page-text main table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); margin: 1.5rem 0; }
.page-text main th, .page-text main td { padding: .55rem .7rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }

/* ---------------------------------------------------------------- Pie */
.foot { background: var(--navy); color: var(--on-navy-2); font-size: var(--fs-sm); }
.foot a { color: var(--on-navy); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .foot a:hover { text-decoration: underline; } }
.foot__grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(2, minmax(0, 2fr)) minmax(0, 3fr); gap: 2.5rem; padding-block: clamp(2.5rem, 5vw, 4rem); }
.foot__about { display: grid; gap: 1rem; align-content: start; }
.foot__logo { height: 52px; width: auto; }
.foot__about p { max-width: 42ch; }
.foot__upv { display: inline-flex; justify-self: start; padding: .6rem .9rem; background: var(--bg); }
.foot__upv img { height: 40px; width: auto; }
.foot__col { display: grid; gap: .1rem; align-content: start; }
.foot__col h2 { font-family: var(--sans); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em; color: var(--on-navy); margin-bottom: .5rem; }
.foot__col a { display: inline-flex; align-items: center; min-height: 2.25rem; }
.foot__redes { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid oklch(1 0 0 / .15); font-size: var(--fs-xs); }
.foot__legal span:last-child { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }

/* Aviso de propuesta (demo) */

/* ---------------------------------------------------------------- Adaptación */
@media (max-width: 1099px) {
    .mainnav { display: none; }
    .masthead__menu { display: inline-flex; align-items: center; }
    .masthead__upv { display: none; }
    .pagenav { top: 0; }
    .lines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 999px) {
    .people, .collab .wrap, .place, .contact, .why, .mission { grid-template-columns: 1fr; }
    .ph--img .ph__grid { grid-template-columns: 1fr; }
    .ph__fig img { aspect-ratio: 16 / 9; }
    .doc { grid-template-columns: 1fr; }
    .doc__aside { position: static; order: -1; }
    .doc__aside--end { order: 0; }
    .gates__grid, .areas3__grid { grid-template-columns: 1fr; }
    .gate { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); grid-template-rows: none; }
    .gate__img { aspect-ratio: auto; height: 100%; }
    .gate__body { border-top: 0; border-left: 4px solid var(--red); }
    .newsitem--lead > a { grid-template-columns: 1fr; }
    .newsitem--lead .newsitem__img { height: auto; }
    .service > a { grid-template-columns: 1fr; }
    .service > a > div { order: 0; }
}
@media (max-width: 699px) {
    .topbar { display: none; }
    .masthead .wrap { padding-block: .75rem; padding-top: calc(.75rem + env(safe-area-inset-top, 0px)); }
    .brand__logo { height: 38px; }
    .brand__sub { display: none; }

    /* Portada: la foto arriba y el bloque de presentación debajo, a todo el ancho */
    .hero__media { height: 62vw; min-height: 220px; }
    .hero__wrap { position: static; width: 100%; }
    .hero__box { max-width: none; padding: 1.75rem var(--gutter) 2rem; }
    .hero__actions .btn { flex: 1 1 100%; }
    .hero__bar { position: static; background: var(--navy-3); }
    .hero__bar-in { min-height: 0; padding-block: .6rem; align-items: flex-start; }
    .figure__text { display: grid; gap: .1rem; font-size: var(--fs-xs); }
    .figure__text[hidden] { display: none; }
    .gates__grid { gap: .6rem; }
    .gate { grid-template-columns: 104px minmax(0, 1fr); }
    .gate__body { padding: .9rem 1rem 1rem; gap: .3rem; }
    .gate__text { display: none; }
    .lines { grid-template-columns: 1fr; }
    .faces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .face:nth-child(n+5) { display: none; } /* en el teléfono, cuatro caras; el equipo completo está a un toque */

    .newsgrid { gap: .6rem; }
    .newsitem:not(.newsitem--lead) > a { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: .9rem; padding: .85rem; }
    .newsitem:not(.newsitem--lead) > a > span { padding: 0; }
    .newsitem:not(.newsitem--lead) .newsitem__img { order: 0; width: 96px; }
    .newsitem:not(.newsitem--lead) .newsitem__text { display: none; }
    .event > a { grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1rem; padding: .85rem; }
    .event__date { width: 4.5rem; }
    .event__day { font-size: 1.7rem; }
    .event__go { display: none; }
    .cite { grid-template-columns: 1fr; }
    .cite__go { grid-row: auto; grid-column: 1; justify-self: start; min-height: 40px; }
    .facts dl { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1rem; }
    .facts dl > div:nth-child(2) { border-top: 0; }
    .keyfacts dl { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: .75rem 1rem; }
    .keyfacts__cta, .keyfacts__cta .btn { width: 100%; }
    .filters ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; }
    .filters ul::-webkit-scrollbar { display: none; }
    .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; }
    .form__row { grid-template-columns: 1fr; }
    .faq__answer { padding-right: 0; }
    .why__item { grid-template-columns: 1fr; }
    .strip .btn { width: 100%; }
    .foot__grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.25rem; }
    .foot__about, .foot__nap { grid-column: 1 / -1; }
    .foot__col a { min-height: 44px; }
    .foot__legal { padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0ms !important; scroll-behavior: auto !important; }
}
