/* =====================================================================
   DIARIO CLICK
   Identidad del equipo de DIARIO CLICK (28-10-2026): azul marino, rojo,
   blanco y gris; turquesa para las etiquetas de sección y amarillo solo
   para España. Montserrat en titulares y Source Serif 4 en la lectura.
   Mobile-first. Objetivo WCAG 2.2 AA.
   ===================================================================== */

/* Tipografías autoalojadas (subconjunto latino, licencia OFL). */
@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 500 800;
    font-display: swap;
    src: url("../fonts/montserrat-latin.woff2") format("woff2");
}
@font-face {
    font-family: "Source Serif 4";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/source-serif-4-latin.woff2") format("woff2");
}
@font-face {
    font-family: "Source Serif 4";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/source-serif-4-italic-latin.woff2") format("woff2");
}

:root {
    /* Paleta de marca */
    --navy:        #091D36;
    --navy-soft:   #123A63;
    --red:         #BD2B2B;
    --red-dark:    #9E2020;
    --red-on-dark: #F4706C;
    --teal:        #0A7F86;
    --yellow:      #F2A900;
    --tint:        #EDF1F5;
    --bg:          #F5F7F9;
    --white:       #FFFFFF;

    /* Derivados neutros */
    --ink:         #091D36;
    --ink-muted:   #4F5D70;
    --ink-faint:   #6B7A88;
    --line:        #DBE2EA;
    --line-strong: #C3CDD6;

    /* Tipografía */
    --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
    --sans:  "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --headline-stretch: 100%;

    /* Métricas */
    --container: 1220px;
    --reading:   740px;
    --radius:    4px;
    --radius-lg: 8px;
    --gap:       1.25rem;
    --header-h:  50px;

    --shadow-soft: 0 1px 2px rgba(9, 29, 54, .06);
    --shadow-card: 0 1px 2px rgba(9, 29, 54, .06), 0 10px 28px rgba(9, 29, 54, .07);
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
}

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
body.has-drawer { overflow: hidden; }

img, video, iframe { max-width: 100%; height: auto; }
img { display: block; background: #E9EDF1; }

a { color: var(--navy-soft); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Foco siempre visible: requisito de accesibilidad. */
:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 2px;
    border-radius: 2px;
}

h1, h2, h3, h4 {
    font-family: var(--sans);
    font-weight: 700; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.005em;
}

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

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 999;
    background: var(--navy); color: #fff; padding: .75rem 1.25rem; font-weight: 600;
}
.skip-link:focus { left: 0; }

.icon { display: block; flex: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1rem; }
.container--narrow { max-width: 860px; }

@media (min-width: 1000px) {
    .container { padding: 0 1.25rem; }
}

.main { padding-bottom: 3rem; }

/* ----------------------------------------------------------------- Marca */
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo picture { display: block; }
.logo img { display: block; width: auto; height: 40px; background: none; }
.logo--masthead img { width: 170px; height: auto; }
.logo--navbar img { height: 30px; }
.logo--drawer img { height: 42px; }
.logo--footer img { width: 185px; height: auto; }

/* ----------------------------------------------------------------- Redes */
.social { display: flex; align-items: center; gap: .35rem; }
.social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%; color: var(--navy);
}
.social a:hover { background: var(--bg); color: var(--red); }
.social--footer a { color: #fff; }
.social--footer a:hover { background: rgba(255,255,255,.12); color: #fff; }

/* -------------------------------------------------------------- Buscador */
.search { display: flex; align-items: center; }
.search--header, .search--drawer { border-radius: var(--radius-lg); background: var(--white); overflow: hidden; }
.search--drawer { border: 1px solid var(--line-strong); }
.search--drawer:focus-within { border-color: var(--navy); }
.search--header input, .search--drawer input {
    flex: 1; min-width: 0; width: 180px; min-height: 44px; padding: .55rem .25rem .55rem .9rem;
    border: 0; background: transparent; font: inherit; font-size: .88rem; color: var(--ink);
}
.search--header input:focus, .search--drawer input:focus { outline: 0; }
.search--header button, .search--drawer button {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--navy); cursor: pointer;
}
.search--drawer { margin: 1rem 0; }
.search--drawer input { width: 100%; min-height: 46px; font-size: 1rem; }

/* ------------------------------------------------------------- Mancheta */
.band { height: 4px; background: var(--red); }
.masthead {
    color: #fff;
    background:
        radial-gradient(720px 280px at 14% 62%, rgba(60, 110, 180, .4), transparent 70%),
        linear-gradient(#0B2547, #061830);
}
.masthead :focus-visible { outline-color: #fff; }
.masthead__date { border-bottom: 1px solid rgba(255,255,255,.12); }
.masthead__dateinner {
    display: flex; justify-content: space-between; gap: 12px; padding-top: 9px; padding-bottom: 9px;
    font: 600 12px/1 var(--sans); letter-spacing: .05em; color: #B9C8DD;
}
.masthead__lema { display: none; font: italic 400 13px/1 var(--serif); letter-spacing: 0; }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 18px; }
.masthead__tools { display: flex; align-items: center; gap: 10px; }
.masthead__tools .btn { min-height: 44px; padding: .7rem 1rem; }
.search--header { display: none; }
.masthead__searchlink {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: var(--radius-lg); color: #fff;
}
.masthead__searchlink:hover { background: rgba(255,255,255,.1); color: #fff; }

@media (min-width: 701px) {
    .masthead__lema { display: inline; }
    .logo--masthead img { width: 210px; }
}
@media (min-width: 901px) {
    .masthead__inner { padding-top: 22px; padding-bottom: 22px; }
    .logo--masthead img { width: 250px; }
    .search--header { display: flex; }
    .search--header input { width: 230px; }
    .masthead__searchlink { display: none; }
    .masthead__tools .btn { padding: .75rem 1.25rem; }
}

/* ---------------------------------------------------------- Barra fija */
.navbar {
    position: sticky; top: 0; z-index: 100;
    padding-top: env(safe-area-inset-top, 0px);
    background: var(--navy); border-bottom: 2px solid var(--red); color: #fff;
}
.navbar__inner { display: flex; align-items: center; gap: .15rem; }
.navbar__btn {
    display: inline-flex; flex: none; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-left: -.6rem; padding: 0; border: 0; border-radius: var(--radius);
    background: transparent; color: #fff; cursor: pointer;
}
.navbar__btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.navbar :focus-visible { outline-color: #fff; outline-offset: -3px; }
.navbar.is-stuck { box-shadow: 0 2px 12px rgba(9, 29, 54, .28); }
/* El logotipo compacto solo aparece cuando la mancheta ya no se ve. */
.logo--navbar { display: none; flex: none; margin-right: .5rem; }

.mainnav { flex: 1; min-width: 0; }
.mainnav__list {
    display: flex; list-style: none; margin: 0; padding: 0;
    overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
}
.mainnav__list::-webkit-scrollbar { display: none; }
.mainnav__link {
    display: flex; align-items: center; min-height: 48px; padding: 0 12px;
    border-bottom: 3px solid transparent; margin-bottom: -2px;
    font: 600 12px/1 var(--sans); letter-spacing: .05em; text-transform: uppercase;
    white-space: nowrap; color: #C9D6E8;
}
.mainnav__link:hover, .mainnav__link.is-current { color: #fff; border-bottom-color: var(--red); text-decoration: none; }

/* Las doce entradas del menú caben en una línea desde 1200 px; por debajo,
   la barra se desliza en horizontal. */
@media (min-width: 1000px) {
    .mainnav__link { padding: 0 6px; font-size: 11px; letter-spacing: .03em; }
    .navbar.is-stuck .logo--navbar { display: inline-flex; }
    .navbar.is-stuck .mainnav__home { display: none; }
}
@media (min-width: 1200px) {
    .mainnav__link { padding: 0 7.5px; font-size: 11.5px; }
}

/* ----------------------------------------------------------- Menú lateral */
.drawer { position: fixed; inset: 0; z-index: 200; display: flex; }
.drawer[hidden] { display: none; }
.drawer__panel {
    position: relative; z-index: 1; width: min(88vw, 380px); height: 100%;
    overflow-y: auto; overscroll-behavior: contain;
    background: var(--white); padding: .75rem 1.25rem 2rem;
    box-shadow: 8px 0 32px rgba(7, 30, 53, .28);
    animation: drawer-in .22s ease;
}
.drawer__backdrop {
    position: absolute; inset: 0; width: 100%; padding: 0; border: 0; cursor: pointer;
    background: rgba(7, 30, 53, .58); animation: fade-in .22s ease;
}
@keyframes drawer-in { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.drawer__head { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.drawer__close {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-right: -.6rem; padding: 0; border: 0; border-radius: var(--radius);
    background: transparent; color: var(--navy); cursor: pointer;
}
.drawer__close:hover { background: var(--bg); }
.drawer__list, .drawer__sub, .drawer__meta { list-style: none; margin: 0; padding: 0; }
.drawer__list > li { border-bottom: 1px solid var(--line); }
.drawer__link {
    display: flex; align-items: center; min-height: 48px;
    font-family: var(--sans);
    font-size: 1.05rem; font-weight: 700; color: var(--navy);
}
.drawer__link:hover { color: var(--red); text-decoration: none; }
.drawer__link--alert { color: var(--red); }
.drawer__sub { display: flex; flex-wrap: wrap; gap: .1rem 1.1rem; padding: 0 0 .8rem; }
.drawer__sub a { display: inline-flex; align-items: center; min-height: 32px; font-size: .9rem; color: var(--ink-muted); }
.drawer__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; margin: 1.1rem 0; }
.drawer__meta a { display: flex; align-items: center; min-height: 40px; font-size: .88rem; color: var(--ink-muted); }
.drawer__cta { width: 100%; margin-bottom: 1rem; }
.social--drawer { justify-content: center; }

/* ---------------------------------------------------------- Última hora */
.ticker { background: var(--white); border-bottom: 1px solid var(--line); font-size: 14px; }
.ticker__inner { display: flex; align-items: center; gap: 14px; height: 44px; overflow: hidden; }
.ticker__label { flex: none; color: var(--red); font-weight: 700; white-space: nowrap; }
.ticker__label:hover { color: var(--red-dark); text-decoration: none; }
.ticker__label::before {
    content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px;
    border-radius: 50%; background: var(--red); animation: ticker-pulse 1.6s infinite;
}
@keyframes ticker-pulse { 50% { opacity: .25; } }
.ticker__list { flex: 1; min-width: 0; list-style: none; margin: 0; padding: 0; }
.ticker__item { display: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticker__item.is-on { display: block; }
.ticker__item time { margin-right: 8px; color: var(--red); font-weight: 700; font-variant-numeric: tabular-nums; }
.ticker__item a { color: var(--ink); font-weight: 500; }
.ticker__item a:hover { color: var(--red); text-decoration: none; }

/* ------------------------------------------------------------- Etiquetas */
.kicker { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .09em; color: var(--red); text-transform: uppercase; line-height: 1.3; }
a.kicker:hover { text-decoration: none; color: var(--red-dark); }
.kicker--alert { color: var(--red); }
.kicker--light { color: rgba(255,255,255,.85); }
.kicker--big { font-size: .8rem; }

.badge { display: inline-block; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .15rem .4rem; border-radius: 2px; }
.badge--sponsored { background: #F0E6D2; color: #6B4E12; }

/* -------------------------------------------------------------- Tarjetas */
.card { position: relative; display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
.card__media { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: #E9EDF1; }
.card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .35s ease; }
.card:hover .card__media img { transform: scale(1.03); }
.card__body { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; min-width: 0; }

.card__title { font-size: 1.12rem; line-height: 1.2; margin: 0; overflow-wrap: anywhere; }
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--navy-soft); text-decoration: none; }

.card__standfirst { margin: 0; color: var(--ink-muted); font-size: .98rem; line-height: 1.5; }

.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; margin: 0; font-size: .76rem; color: var(--ink-faint); }
.card__when { display: inline-flex; align-items: center; gap: .3rem; }
.card__read::before { content: "·"; margin-right: .5rem; }

.card__play {
    position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%);
    width: 52px; height: 52px; display: grid; place-items: center;
    background: rgba(7, 30, 53, .78); color: #fff; border: 2px solid rgba(255,255,255,.85); border-radius: 50%;
}
/* Insignia sobre la foto: minutos de lectura (solo móvil) o duración del vídeo. */
.card__badge {
    position: absolute; left: .45rem; bottom: .45rem; display: none; align-items: center; gap: .25rem;
    padding: .18rem .42rem; border-radius: 3px; background: rgba(7, 30, 53, .86); color: #fff;
    font-size: .68rem; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums;
}
.card__badge--always { display: inline-flex; left: auto; right: .45rem; }

.card--lead .card__title { font-size: clamp(1.3rem, 3vw, 1.55rem); }
.card--lead .card__standfirst,
.card--feature .card__standfirst { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card--feature .card__title { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.12; }

/* Filas: miniatura a la izquierda y titular a la derecha. */
.card--row, .card--compact { flex-direction: row; align-items: flex-start; gap: .85rem; }
.card--row .card__media { flex: 0 0 132px; }
.card--row .card__media img { aspect-ratio: 16 / 10; }
.card--row .card__title { font-size: 1.02rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card--row .card__play, .card--compact .card__play { width: 34px; height: 34px; border-width: 1.5px; }
.card--row .card__play .icon, .card--compact .card__play .icon { width: 15px; height: 15px; }

.card--compact { padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.card--compact .card__media { flex: 0 0 92px; }
.card--compact .card__media img { aspect-ratio: 4 / 3; }
.card--compact .card__title { font-size: .98rem; }
.card--list { padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.card--list .card__title { font-size: 1rem; }

/* ---------------------------------------------------------------- Portada */
body.page-home { background: var(--white); }
.portada { padding-top: 24px; }

/* Cabeceras de bloque de otras páginas (equipo, Instagram, errores). */
.block, .instagram { margin-top: 1.75rem; }
.block__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.block__all {
    display: inline-flex; align-items: center; gap: .3rem; flex: none;
    font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--red);
}
.block__all:hover { color: var(--red-dark); text-decoration: none; }

.section-title {
    display: flex; align-items: center; gap: .55rem; margin: 0;
    font-family: var(--sans); font-size: 1rem; font-weight: 800;
    letter-spacing: .05em; text-transform: uppercase; color: var(--navy); line-height: 1.2;
}
/* Marca de acento: da carácter sin competir con el titular. */
.section-title::before { content: ""; flex: none; width: 4px; height: 1.05em; border-radius: 2px; background: var(--red); }
.section-title--small { font-size: .86rem; }

/* Etiqueta de sección: turquesa; amarillo solo para España. */
.tag {
    display: inline-block; padding: 5px 9px; border-radius: 99px;
    background: var(--teal); color: #fff; font: 700 11px/1 var(--sans); white-space: nowrap;
}
a.tag:hover { color: #fff; text-decoration: none; filter: brightness(1.1); }
.tone-espana .tag { background: var(--yellow); color: var(--navy); }
.tag--red, .tone-espana .tag--red { background: var(--red); color: #fff; }

/* Temas (artículo) */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.chips--article { margin: 1.5rem 0; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: .3rem .85rem; background: var(--white); border: 1px solid var(--line-strong); border-radius: 999px; font-size: .84rem; color: var(--navy); }
.chip:hover { border-color: var(--navy); text-decoration: none; }

/* Portada grande: cuatro noticias que rotan solas, con pestañas abajo. */
.slider {
    position: relative; isolation: isolate; overflow: hidden;
    min-height: clamp(500px, 60vw, 660px); border-radius: 10px;
    background: var(--navy); color: #fff; box-shadow: 0 12px 32px rgba(9, 29, 54, .12);
}
.slider :focus-visible { outline-color: #fff; }
.slide {
    position: absolute; inset: 0; z-index: 0;
    display: flex; flex-direction: column; justify-content: flex-end; padding: 40px 40px 140px;
    opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s;
}
.slide.is-on { opacity: 1; visibility: visible; }
.slide__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; background: var(--navy); }
.slide::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(9, 29, 54, 0) 20%, rgba(9, 29, 54, .94)); }
.slide__tag {
    position: relative; z-index: 1; align-self: flex-start; margin-bottom: 12px; padding: 3px 10px; border-radius: 4px;
    background: var(--red); color: #fff; font-size: 13px; font-weight: 600;
}
.slide__tag:hover { background: var(--red-dark); color: #fff; text-decoration: none; }
.slide.tone-espana .slide__tag { background: var(--yellow); color: var(--navy); }
.slide__title {
    max-width: 780px; margin: 0 0 12px; padding-left: 16px; border-left: 5px solid var(--red);
    font-size: clamp(26px, 4.2vw, 50px); line-height: 1.18; text-wrap: balance;
}
.slide__title a { color: #fff; }
.slide__title a:hover { color: #fff; text-decoration: none; }
/* Toda la diapositiva lleva a la noticia; la etiqueta sigue siendo su enlace. */
.slide__title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.slide__standfirst { max-width: 640px; margin: 0 0 14px; font-family: var(--serif); font-size: 17px; line-height: 1.6; opacity: .95; }
.slide__meta { margin: 0; font-size: 13px; opacity: .85; }

.slider__tabs {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
    list-style: none; margin: 0; padding: 0;
    background: rgba(9, 29, 54, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.slider__tabs li + li { border-left: 1px solid rgba(255,255,255,.15); }
.slider__tab {
    position: relative; display: block; height: 100%; padding: 16px 18px 18px;
    color: #fff; font: 600 13px/1.35 var(--sans); opacity: .7;
}
.slider__tab:hover, .slider__tab.is-on { opacity: 1; color: #fff; text-decoration: none; }
.slider__tab b { display: block; margin-bottom: 4px; font-size: 11px; color: #D9E2EE; }
.slider__tab.tone-espana b { color: var(--yellow); }
.slider__tab span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slider__progress { position: absolute; left: 0; top: 0; width: 0; height: 3px; background: #fff; }
.slider.is-playing .slider__tab.is-on .slider__progress { animation: slider-fill 7s linear forwards; }
.slider.is-paused .slider__tab.is-on .slider__progress { animation-play-state: paused; }
@keyframes slider-fill { to { width: 100%; } }
.slider__pause {
    position: absolute; top: 16px; right: 16px; z-index: 3;
    display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
    border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--navy); cursor: pointer;
}
.slider__pause[hidden] { display: none; }
.slider__icon-play, .slider__pause[aria-pressed="true"] .slider__icon-pause { display: none; }
.slider__pause[aria-pressed="true"] .slider__icon-play { display: block; }

/* Cabecera de cada bloque */
.seccion { margin-top: 40px; }
.seccion__head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin-bottom: 16px; }
.seccion__title { margin: 0; padding-left: 12px; border-left: 4px solid var(--red); font-size: 24px; line-height: 1.2; color: var(--ink); }
.seccion__all { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--red); }
.seccion__all:hover { color: var(--red-dark); }

/* Noticias importantes */
.destacadas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.dcard {
    overflow: hidden; background: var(--white);
    border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card); transition: transform .2s ease;
}
.dcard.tone-espana { border-top-color: var(--yellow); }
.dcard:hover { transform: translateY(-3px); }
.dcard__media { display: block; }
.dcard__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.dcard__body { padding: 14px 16px 18px; }
.dcard__title { margin: 10px 0 8px; font-size: 16px; line-height: 1.3; }
.dcard__title a { color: var(--ink); }
.dcard__title a:hover { color: var(--red); text-decoration: none; }
.dcard__standfirst { margin: 0; font: 400 14px/1.6 var(--serif); color: var(--ink-muted); }

/* Últimas noticias: lista con filtros por sección y columna de publicidad */
.filtros { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.filtros[hidden] { display: none; }
.filtros button {
    min-height: 36px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 99px;
    background: var(--white); color: var(--ink); font: 600 13px var(--sans); cursor: pointer;
}
.filtros button:hover { border-color: var(--ink); }
.filtros button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.ultimas__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.ultimas__grid:not(:has(.ultimas__ads .ad)) { grid-template-columns: minmax(0, 1fr); }
.ultimas__list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.ultimas__item {
    display: grid; grid-template-columns: 54px 130px minmax(0, 1fr); gap: 12px; align-items: baseline;
    padding: 14px 0; border-bottom: 1px solid var(--line);
}
.ultimas__item[hidden] { display: none; }
.ultimas__item time { font: 700 13px var(--sans); color: var(--red); font-variant-numeric: tabular-nums; }
.ultimas__item .tag { justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ultimas__title { color: var(--ink); font: 600 16px/1.4 var(--sans); }
.ultimas__title:hover { color: var(--red); text-decoration: none; }
.ultimas__num { font: 800 20px/1 var(--sans); color: var(--red); }
.ultimas__more { display: flex; width: 100%; margin-top: 16px; }
.ultimas__ads { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 20px; }
.ultimas__ads .ad { margin: 0; }

/* Editorial */
.editorial {
    display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: center;
    margin-top: 44px; padding: 40px; border-radius: 10px; color: #fff;
    background: radial-gradient(600px 300px at 92% 8%, rgba(70, 120, 190, .35), transparent 70%), var(--navy);
    box-shadow: 0 12px 32px rgba(9, 29, 54, .12);
}
.editorial :focus-visible { outline-color: #fff; }
.editorial__photo {
    display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden;
    border: 3px solid rgba(255,255,255,.35); border-radius: 16px;
    background: linear-gradient(160deg, #1E5AA8, var(--navy)); color: #9DBBE6;
}
.editorial__photo img { width: 100%; height: 100%; object-fit: cover; }
.editorial__title { margin: 14px 0; font-size: clamp(22px, 3vw, 32px); line-height: 1.2; }
.editorial__title a { color: #fff; }
.editorial__title a:hover { color: #fff; text-decoration: underline; }
.editorial__quote {
    max-width: 680px; margin: 0 0 16px; padding-left: 18px; border-left: 5px solid var(--red);
    font: 400 18px/1.7 var(--serif); color: #E6EDF6;
}
.editorial__quote p { margin: 0; }
.editorial__by { margin: 0 0 16px; font-size: 14px; color: #B8C8DC; }
.editorial__by a { color: #fff; }

/* Panelistas */
.panelistas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.pcard {
    padding: 22px 18px; text-align: center; background: var(--white);
    border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
}
.pcard__avatar {
    display: grid; place-items: center; width: 96px; height: 96px; margin: 0 auto 12px; overflow: hidden;
    border: 4px solid var(--teal); border-radius: 50%;
    background: linear-gradient(160deg, #4A6F9C, var(--navy)); color: rgba(255,255,255,.88);
}
.pcard.tone-espana .pcard__avatar { border-color: var(--yellow); }
.pcard__avatar img { width: 100%; height: 100%; object-fit: cover; }
.pcard__name { margin: 0; font-size: 16px; }
.pcard__name a { color: var(--ink); }
.pcard__role { margin: 2px 0 10px; font-size: 12px; font-weight: 700; color: var(--ink); }
.pcard__quote { margin: 0 0 10px; font: italic 400 14px/1.55 var(--serif); color: var(--ink-muted); }
.pcard__link { font-size: 13px; font-weight: 700; color: var(--red); }
.pcard__link:hover { color: var(--red-dark); }

.portada > .newsletter { margin-top: 36px; }

/* ------------------------------------------------- Portada · tableta y móvil */
@media (max-width: 900px) {
    .destacadas, .panelistas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ultimas__grid { grid-template-columns: minmax(0, 1fr); }
    .ultimas__ads { position: static; justify-items: center; }
    .ultimas__ads .ad--halfpage { display: none; }
    .filtros { margin-left: 0; }
    .editorial { grid-template-columns: 1fr; gap: 24px; padding: 28px; }
    .editorial__photo { width: 100%; max-width: 220px; aspect-ratio: 1; }
}
@media (max-width: 700px) {
    .portada { padding-top: 0; }
    /* La portada grande ocupa la pantalla, a sangre. */
    .slider { min-height: min(78svh, 560px); margin: 0 -1rem; border-radius: 0; box-shadow: none; }
    .slide { padding: 22px 18px 76px; }
    .slide__title { font-size: 26px; padding-left: 12px; border-left-width: 4px; }
    .slide__standfirst { font-size: 15px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .slider__pause { top: 12px; right: 12px; }
    .slider__tab { height: 54px; padding: 16px 8px 0; text-align: center; }
    .slider__tab b { margin: 0; font-size: 10px; }
    .slider__tab span { display: none; }

    .seccion { margin-top: 28px; }
    .seccion__title { font-size: 22px; }
    /* Tarjetas y panelistas se deslizan en horizontal. */
    .destacadas, .panelistas {
        display: flex; gap: 14px; margin: 0 -1rem; padding: 4px 1rem 12px;
        overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    }
    .destacadas::-webkit-scrollbar, .panelistas::-webkit-scrollbar, .filtros::-webkit-scrollbar { display: none; }
    .dcard, .pcard { flex: 0 0 80%; scroll-snap-align: start; }
    .dcard:hover { transform: none; }
    /* Filtros en una sola fila deslizable. */
    .filtros {
        flex-wrap: nowrap; width: calc(100% + 2rem); margin: 0 -1rem; padding: 0 1rem 4px;
        overflow-x: auto; scrollbar-width: none;
    }
    .filtros button { flex: none; min-height: 42px; padding: 8px 16px; }
    .ultimas__item { grid-template-columns: 48px minmax(0, 1fr); padding: 16px 0; }
    .ultimas__item .tag { display: none; }
    .editorial { margin: 32px -1rem 0; padding: 28px 20px; border-radius: 0; }
    .editorial__photo { max-width: 150px; border-radius: 50%; }
    .editorial__quote { font-size: 17px; }
}

/* -------------------------------------------------------------- Rejillas */
.grid { display: grid; gap: var(--gap); }
.grid--3, .grid--4, .grid--archive, .grid--videos { grid-template-columns: 1fr; }

/* En los listados cada pieza es una tarjeta blanca. */
.grid .card { gap: 0; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.grid .card__media { border-radius: 0; }
.grid .card__body { padding: .85rem 1rem 1rem; }

@media (max-width: 619.98px) {
    .grid { gap: .75rem; }
    .grid .card--card { flex-direction: row; align-items: stretch; }
    .grid .card--card .card__media { flex: 0 0 40%; }
    .grid .card--card .card__media img { height: 100%; min-height: 104px; aspect-ratio: auto; }
    .grid .card--card .card__body { flex: 1; padding: .7rem .8rem; }
    .grid .card--card .card__title { font-size: 1.04rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .grid .card--card .card__badge { display: inline-flex; }
}
@media (min-width: 620px) {
    .grid--3, .grid--4, .grid--archive, .grid--videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
    .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid--4, .grid--archive { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .grid--videos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid--archive > .card--lead { grid-column: span 2; }
}

/* ------------------------------------------------------------ Publicidad */
.ad { margin: 1.75rem 0; text-align: center; }
.ad__label { display: block; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: .35rem; }
.ad img { margin: 0 auto; background: none; }
/* Las franjas anchas ceden el sitio a la creatividad móvil en pantallas estrechas. */
.ad__narrow { display: none; }
@media (max-width: 619.98px) {
    .ad__wide { display: none; }
    .ad__narrow { display: block; }
}

.ad--sidebar-300x250 { margin-top: 0; }
.ad--in-article { margin: 2rem 0; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Franja sobre la cabecera: se va con el scroll, no roba altura de lectura. */
.ad--top {
    background: var(--bg);
    border: 0;
    border-bottom: 1px solid var(--line);
    margin: 0;
    padding: .55rem 1rem .7rem;
}
.ad--top .ad__label { margin-bottom: .2rem; }

/* Portada: franja entre bloques y billboard de cierre. */
.ad--separator { margin: 28px 0 0; }
.ad--billboard { margin: 40px 0 0; }
.ad--billboard img, .ad--separator img { border-radius: var(--radius-lg); }

/* Rascacielos 160×600: a los lados, solo en pantallas anchas y altas. Van en
   un carril del alto del contenido: empiezan bajo el menú, se quedan a 150 px
   del borde al bajar (como en el diseño) y se paran antes del pie, así que
   nunca tapan la cabecera, el menú fijo ni el pie. */
.sky-rail { display: none; }
@media (min-width: 1560px) and (min-height: 780px) {
    .main:has(.sky-rail) { position: relative; }
    .sky-rail { display: block; position: absolute; top: 24px; bottom: 3rem; width: 160px; }
    .sky-rail--left { left: calc(50% - 770px); }
    .sky-rail--right { left: calc(50% + 610px); }
    .ad--skyscraper { position: sticky; top: 150px; width: 160px; margin: 0; }
}

/* Móvil 320×50: fijo abajo, con botón de cerrar. */
.ad--anchor { display: none; }
.ad__close {
    flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
    border: 0; border-radius: 50%; background: var(--tint); color: var(--ink); cursor: pointer;
}
@media (max-width: 700px) {
    .ad--anchor {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
        display: flex; align-items: center; gap: 6px; margin: 0;
        padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
        background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(9, 29, 54, .12);
    }
    .ad--anchor .ad__label { position: absolute; top: 2px; left: 8px; margin: 0; font-size: .5rem; }
    .ad--anchor > a, .ad--anchor > .ad__html { flex: 1; display: flex; justify-content: center; min-width: 0; }
    .ad--anchor img { width: auto; max-height: 50px; }
    body:has(.ad--anchor:not([hidden])) { padding-bottom: 72px; }
}
.ad--anchor[hidden] { display: none !important; }

/* ------------------------------------------------------------ Newsletter */
.newsletter { background: var(--navy); color: #fff; border-radius: 14px; padding: 20px; margin: 1.75rem 0 0; }
.container > .newsletter { margin: 2rem 0; }
.newsletter__inner { display: grid; gap: 1.25rem; }
.newsletter__title { color: #fff; font-size: 20px; margin: 0 0 .2rem; }
.newsletter__pitch { margin: 0; color: rgba(255,255,255,.85); font-size: 14px; }
.newsletter__form { display: grid; gap: .6rem; align-content: start; }
.newsletter__row { display: grid; gap: .5rem; }
.newsletter__form input[type=email] {
    width: 100%; min-height: 46px; padding: .65rem .85rem;
    border: 0; border-radius: var(--radius-lg);
    background: var(--white); color: var(--ink); font: inherit; font-size: 14px;
}
.newsletter__form input[type=email]::placeholder { color: var(--ink-faint); }
.newsletter :focus-visible { outline-color: #fff; }
.newsletter__legal { margin: 0; font-size: .74rem; color: rgba(255,255,255,.66); }
.newsletter__legal a { color: rgba(255,255,255,.9); text-decoration: underline; }
.newsletter__status { margin: 0; font-size: .85rem; font-weight: 600; }
.newsletter__status:empty { display: none; }
.newsletter__status.is-ok { color: #8FE3B0; }
.newsletter__status.is-error { color: #FFB4B4; }
@media (min-width: 520px) {
    .newsletter__row { grid-template-columns: minmax(240px, 340px) auto; justify-content: start; }
}
@media (min-width: 1000px) {
    .newsletter { padding: 24px 28px; }
    .container > .newsletter { margin: 36px 0; }
}

/* --------------------------------------------------------------- Botones */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 46px; padding: .65rem 1.25rem; border: 1px solid transparent; border-radius: var(--radius-lg);
    font-family: var(--sans); font-size: 14px; font-weight: 700;
    cursor: pointer; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn--sm { min-height: 38px; padding: .45rem 1rem; font-size: .74rem; }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-soft); }
.btn--accent { background: var(--red); color: #fff; }
.btn--accent:hover { background: var(--red-dark); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--navy); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }

.linklike { background: none; border: 0; padding: 0; color: var(--navy-soft); font: inherit; font-size: .85rem; cursor: pointer; text-decoration: underline; }

/* --------------------------------------------------------------- Artículo */
.breadcrumbs { padding: 1rem 0 0; font-size: .78rem; color: var(--ink-faint); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: .4rem; color: var(--line-strong); }

.article__grid { display: grid; gap: 2rem; padding: 1rem 0 2rem; }
@media (min-width: 1000px) {
    .article__grid { grid-template-columns: minmax(0, var(--reading)) minmax(280px, 320px); justify-content: center; column-gap: 3rem; }
    .article__header { grid-column: 1 / -1; max-width: var(--reading); }
    .article__aside { position: sticky; top: calc(var(--header-h) + 90px); align-self: start; }
}

.article__title { font-size: clamp(1.85rem, 6vw, 3.2rem); line-height: 1.08; margin: .5rem 0 .75rem; }
.article__standfirst { font-size: 1.15rem; line-height: 1.5; color: var(--ink-muted); margin: 0 0 1.1rem; font-family: var(--serif); }
.article__byline { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .82rem; color: var(--ink-faint); padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.article__byline a { font-weight: 600; }
.article__updated { color: var(--red); font-weight: 600; }
.article__share { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem; padding: .8rem 0; font-size: .8rem; border-bottom: 1px solid var(--line); }
.article__share > span:first-child { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); font-size: .7rem; }

.sponsored-note { display: inline-block; background: #F0E6D2; color: #6B4E12; font-size: .78rem; font-weight: 600; padding: .3rem .6rem; border-radius: 2px; margin: .5rem 0; }

.article__figure { margin: 1.25rem 0; }
.article__figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.article__figure figcaption, .gallery figcaption { margin-top: .5rem; font-size: .82rem; color: var(--ink-muted); line-height: 1.45; }
.credit { color: var(--ink-faint); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; }

.video-embed { position: relative; aspect-ratio: 16 / 9; margin: 1.25rem 0; background: #000; border-radius: var(--radius); overflow: hidden; }
.video-embed iframe, .video-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.essential { background: var(--white); border-left: 4px solid var(--red); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin: 1.5rem 0; box-shadow: var(--shadow-soft); }
.essential h2 { font-family: var(--sans); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin: 0 0 .6rem; }
.essential ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .45rem; }
.essential li { font-size: .96rem; line-height: 1.5; }

/* Cuerpo de lectura: 18-20 px, interlineado 1,6, columna 680-760 px. */
.article__body { font-family: var(--serif); font-size: 1.15rem; line-height: 1.65; color: var(--ink); }
.article__body > * { max-width: var(--reading); }
.article__body p { margin: 0 0 1.15rem; }
.article__body h2 { font-size: 1.6rem; margin: 2rem 0 .75rem; }
.article__body h3 { font-size: 1.3rem; margin: 1.75rem 0 .6rem; }
.article__body a { color: var(--navy-soft); text-decoration: underline; text-underline-offset: 2px; }
.article__body ul, .article__body ol { margin: 0 0 1.15rem; padding-left: 1.4rem; }
.article__body li { margin-bottom: .45rem; }
.article__body blockquote {
    margin: 1.75rem 0; padding: .3rem 0 .3rem 1.25rem;
    border-left: 3px solid var(--red); font-size: 1.3rem; line-height: 1.4; color: var(--navy);
}
.article__body figure { margin: 1.75rem 0; }
.article__body img { border-radius: var(--radius); }
.article__body table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .9rem; margin: 1.5rem 0; }
.article__body th, .article__body td { border: 1px solid var(--line); padding: .55rem .7rem; text-align: left; }
.article__body th { background: var(--white); font-weight: 700; }
.article__body .destacado { background: var(--white); border-left: 4px solid var(--navy); padding: 1rem 1.25rem; border-radius: var(--radius); }

@media (min-width: 620px) { .article__body { font-size: 1.2rem; } }

.gallery { display: grid; gap: 1.25rem; margin: 2rem 0; }
@media (min-width: 620px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

.trust { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin: 2rem 0; }
.trust h2 { font-family: var(--sans); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); margin: 0 0 .9rem; }
.trust h3 { font-family: var(--sans); font-size: .85rem; margin: 0 0 .4rem; }
.trust__block { margin-bottom: 1.1rem; }
.trust__block ul { margin: 0; padding-left: 1.1rem; font-size: .9rem; }
.trust__block--corrections li { margin-bottom: .6rem; }
.trust__block--corrections time { display: block; font-size: .76rem; color: var(--ink-faint); }
.trust__block--corrections p { margin: .2rem 0 0; }
.trust__links { margin: 0; font-size: .82rem; color: var(--ink-faint); }

.related .card--compact:last-child { border-bottom: 0; }
.related .section-title { margin-bottom: 1rem; }

/* ------------------------------------------------------------ Comentarios */
.comments { margin: 2.5rem 0; }
.comments__count { color: var(--ink-faint); font-weight: 400; }
.comments__form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin: 1.25rem 0 2rem; display: grid; gap: .9rem; }
.comments__rules { margin: 0; font-size: .78rem; color: var(--ink-faint); }
.comments__replying { margin: 0; font-size: .85rem; background: var(--bg); padding: .5rem .75rem; border-radius: var(--radius); }
.comments__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.comment { border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.comment__head { display: flex; gap: .6rem; align-items: baseline; font-size: .85rem; }
.comment__head time { color: var(--ink-faint); font-size: .76rem; }
.comment__body { margin: .4rem 0 .5rem; font-size: .95rem; line-height: 1.55; }
.comment__replies { list-style: none; margin: 1rem 0 0 1.25rem; padding-left: 1rem; border-left: 2px solid var(--line); display: grid; gap: 1rem; }
.comment--depth1 { border-bottom: 0; padding-bottom: 0; }
.comments__empty { color: var(--ink-faint); }

/* --------------------------------------------------------- Formularios */
.field { display: grid; gap: .35rem; }
.field label { font-size: .82rem; font-weight: 600; color: var(--navy); }
.field .hint { font-weight: 400; color: var(--ink-faint); }
.field input, .field textarea, .field select {
    width: 100%; min-height: 46px; padding: .6rem .75rem;
    border: 1px solid var(--line-strong); border-radius: var(--radius);
    font: inherit; font-size: 1rem; background: var(--white); color: var(--ink);
}
.field textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; gap: .9rem; }
@media (min-width: 620px) { .form-row { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------- Avisos */
.alert { padding: .8rem 1rem; border-radius: var(--radius); margin: 1rem 0; font-size: .92rem; border-left: 4px solid; background: var(--white); }
.alert--success { border-color: #1B7F4B; color: #14603A; }
.alert--error   { border-color: var(--red); color: var(--red-dark); }
.alert--warning { border-color: #B4801A; color: #7A5610; }
.alert--info    { border-color: var(--navy-soft); color: var(--navy); }

/* -------------------------------------------------------------- Listados */
.page-head { padding: 1.75rem 0 1.25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.page-head__title { font-size: clamp(1.8rem, 5vw, 2.75rem); margin: .35rem 0 .5rem; }
.page-head__desc { margin: 0; color: var(--ink-muted); max-width: 60ch; }
.subnav { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; font-size: .88rem; }
.empty { padding: 2.5rem 0; color: var(--ink-faint); text-align: center; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; padding: 2rem 0; }
.pagination__item { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 .75rem; border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: .88rem; background: var(--white); }
.pagination__item--current { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination__gap { display: inline-flex; align-items: center; padding: 0 .35rem; color: var(--ink-faint); }

.search--page { display: flex; gap: .6rem; margin-top: 1rem; max-width: 520px; }
.search--page input { flex: 1; min-height: 48px; padding: .6rem .85rem; border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 1rem; }
.search__summary { color: var(--ink-faint); margin-bottom: 1.25rem; }

/* ------------------------------------------------------------- Autor/equipo */
.author-head { display: flex; gap: 1.25rem; align-items: flex-start; padding: 1.75rem 0; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.author-head__avatar, .author-head__initials { flex: none; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.author-head__initials, .team__initials { display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 800; font-size: 1.6rem; }
.author-head__role { margin: 0 0 .5rem; color: var(--red); font-weight: 600; font-size: .9rem; }
.author-head__bio { margin: 0 0 .6rem; color: var(--ink-muted); max-width: 60ch; }
.author-head__links { display: flex; gap: 1rem; margin: 0; font-size: .85rem; }

.team { display: grid; gap: 1.5rem; padding-bottom: 2rem; }
@media (min-width: 620px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 901px) { .team { grid-template-columns: repeat(4, 1fr); } }
.team__card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; text-align: center; }
.team__card img, .team__initials { width: 88px; height: 88px; border-radius: 50%; margin: 0 auto .75rem; object-fit: cover; }
.team__card h2 { font-size: 1.05rem; margin: 0 0 .2rem; }
.team__role { margin: 0 0 .5rem; font-size: .8rem; color: var(--red); font-weight: 600; }
.team__bio { margin: 0 0 .5rem; font-size: .85rem; color: var(--ink-muted); }
.team__count { margin: 0; font-size: .76rem; color: var(--ink-faint); }

.contact-grid { display: grid; gap: 1.25rem; padding-bottom: 1rem; }
@media (min-width: 760px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.contact-card h2 { font-size: 1.05rem; }
.contact-card p { font-size: .92rem; color: var(--ink-muted); }

.static-page { padding: 1rem 0 2rem; }
.static-page__meta { color: var(--ink-faint); font-size: .82rem; margin-bottom: 1.5rem; }

.status-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.5rem 1.5rem; text-align: center; margin: 2.5rem 0; }
.status-panel--ok { border-top: 4px solid #1B7F4B; }
.status-panel--error { border-top: 4px solid var(--red); }

.error-page { text-align: center; padding: 3rem 0 2rem; }
.error-page__code { font-family: var(--serif); font-size: 5rem; font-weight: 700; color: var(--red); margin: 0; line-height: 1; }
.error-page__title { font-size: 2rem; margin: .5rem 0; }
.error-page__help { color: var(--ink-muted); max-width: 48ch; margin: 0 auto 1.5rem; }
.error-page__detail { text-align: left; background: var(--navy); color: #E6EDF3; padding: 1rem; border-radius: var(--radius); overflow-x: auto; font-size: .8rem; }
.error-page__actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* --------------------------------------------------------------- Pie */
.site-footer { margin-top: 3rem; background: var(--navy); color: #B8C4D6; font-size: 14px; }
.site-footer::before { content: ""; display: block; height: 4px; background: var(--red); }
.site-footer a { color: #B8C4D6; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer :focus-visible { outline-color: #fff; }
.footer__brand { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; padding: 32px 0 8px; }
.footer__about { flex: 1; min-width: 240px; }
.footer__lema { margin: 0 0 6px; font: 700 18px/1.3 var(--sans); color: #fff; }
.footer__links, .footer__more { display: flex; flex-wrap: wrap; gap: 0 14px; list-style: none; margin: 0; padding: 0; }
.footer__links a, .footer__more a { display: inline-flex; align-items: center; min-height: 32px; }
.footer__more { font-size: 12px; gap: 0 12px; }
.footer__legal {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px;
    margin-top: 12px; padding: 16px 0 28px; border-top: 1px solid rgba(255,255,255,.12);
}
.footer__legal p { margin: 0; }
@media (min-width: 701px) {
    .logo--footer img { width: 240px; }
}

@media print {
    .band, .masthead, .navbar, .drawer, .ticker, .site-footer, .ad, .newsletter, .comments, .article__share, .article__aside, .slider__tabs, .slider__pause { display: none !important; }
    body { background: #fff; }
    .article__body { font-size: 12pt; }
}

/* ------------------------------------------------------------ Instagram */
.instagram__grid {
    list-style: none; margin: 0 0 .75rem; padding: 0;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem;
}
@media (min-width: 620px) { .instagram__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .instagram__grid { grid-template-columns: repeat(6, 1fr); } }
.instagram__card {
    display: grid; place-content: center; gap: .4rem;
    width: 100%; aspect-ratio: 1; padding: .5rem;
    background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius);
    cursor: pointer; color: var(--navy); font: inherit; font-size: .78rem; text-align: center;
}
.instagram__card:hover { border-color: var(--navy); }
.instagram__icon { font-size: 1.5rem; opacity: .5; }
.instagram__card iframe { width: 100%; border: 0; }
.instagram__loaded { grid-column: span 2; aspect-ratio: auto; }
.instagram__note { margin: 0; font-size: .74rem; color: var(--ink-faint); }
