/* ==========================================================================
   Tema EBCT para Ghost — Noticias EBCT
   Paleta: azul marino #0b1c2c · marino elevado #14283d · marfil #f9f8f3
           azul #3b82f6 · petróleo #2a9d8f · oro #c9a227
   Tipografías: Montserrat (títulos) · Source Sans 3 (texto)
   ========================================================================== */

:root {
    --paper: #f9f8f3;
    --paper-2: #f2f0e8;
    --surface: #fdfcf9;
    --ink: #0b1c2c;
    --ink-2: #14283d;
    --ink-soft: rgba(11, 28, 44, 0.74);
    --ink-mute: rgba(11, 28, 44, 0.55);
    --rule: rgba(11, 28, 44, 0.13);
    --rule-strong: rgba(11, 28, 44, 0.85);
    --blue: #3b82f6;
    --petrol: #2a9d8f;
    --gold: #c9a227;
    --marfil: #f8f6f2;

    /* Si se eligen fuentes en Ghost (Design → Typography) se respetan; si no, las de la marca */
    --f-head: var(--gh-font-heading, 'Montserrat', system-ui, sans-serif);
    --f-body: var(--gh-font-body, 'Source Sans 3', system-ui, sans-serif);

    --gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);
    --maxw: 1240px;
    --col: 720px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--f-body);
    font-size: 1.0625rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--f-head);
}

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

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

:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.eyebrow,
.tag,
.section {
    font-family: var(--f-head);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.tag {
    color: var(--petrol);
}

.tag:hover {
    color: var(--ink);
}

.meta {
    font-size: 0.8125rem;
    color: var(--ink-mute);
    font-variant-numeric: tabular-nums;
}

.empty {
    padding-block: 3rem;
    color: var(--ink-soft);
}

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1.2;
    padding: 0.7rem 1.15rem;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}

.btn-primary {
    background: var(--ink);
    color: var(--paper);
}

.btn-primary:hover {
    background: var(--blue);
}

.btn-ghost {
    border-color: var(--rule-strong);
    color: var(--ink);
    background: transparent;
}

.btn-ghost:hover {
    background: var(--ink);
    color: var(--paper);
}

/* ---------- Cabecera ---------- */
.site-head {
    border-bottom: 1px solid var(--rule);
}

.site-head-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding-block: 1.1rem;
}

.site-logo {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.site-logo img {
    height: 26px;
    width: auto;
}

.site-logo em {
    font-family: var(--f-head);
    font-style: normal;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--blue);
}

.site-nav {
    flex: 1;
}

.site-nav .nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.site-nav .nav a:hover,
.site-nav .nav-current a {
    color: var(--blue);
}

.site-head-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 0 0 auto;
}

.btn-night span {
    font-size: 0.95em;
}

.label-short {
    display: none;
}

/* ---------- Portada: cabecera tipo revista ---------- */
.masthead {
    padding-top: clamp(1.5rem, 1rem + 3vw, 3.25rem);
}

.masthead-rule {
    border-top: 3px solid var(--ink);
    border-bottom: 1px solid var(--ink);
    height: 7px;
}

.masthead-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    padding: 0.7rem 0;
    font-size: 0.8125rem;
    color: var(--ink-soft);
    border-bottom: 1px solid var(--rule);
}

.masthead-meta strong {
    color: var(--ink);
}

.masthead-title {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 1.5rem 3rem;
    padding: clamp(1.25rem, 0.8rem + 2vw, 2.5rem) 0 clamp(1rem, 0.8rem + 1vw, 1.75rem);
}

.masthead-title h1 {
    margin: 0;
    font-weight: 800;
    font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.2rem);
    line-height: 0.95;
    letter-spacing: -0.035em;
}

.masthead-title h1 span {
    display: block;
    color: var(--blue);
}

.masthead-title p {
    margin: 0;
    max-width: 34ch;
    color: var(--ink-soft);
    font-size: 1.3rem;
    line-height: 1.45;
}

/* ---------- Imágenes en listas ---------- */
.frame {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: var(--ink-2);
}

.frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
}

.frame:hover img {
    transform: scale(1.03);
}

.ph {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 30%, rgba(59, 130, 246, 0.5), transparent 42%),
        radial-gradient(circle at 25% 80%, rgba(42, 157, 143, 0.45), transparent 45%),
        repeating-linear-gradient(90deg, rgba(248, 246, 242, 0.06) 0 1px, transparent 1px 22px),
        var(--ink);
}

/* ---------- Portada: destacado ---------- */
.lead {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(1.5rem, 1rem + 2.5vw, 3.5rem);
    align-items: center;
    padding-block: clamp(1.75rem, 1.25rem + 2.5vw, 3.5rem) clamp(2rem, 1.5rem + 3vw, 4rem);
    border-top: 1px solid var(--rule);
}

.lead .frame {
    aspect-ratio: 16 / 10;
}

.lead h2 {
    margin: 0.75rem 0 1rem;
    font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.lead h2 a {
    background-image: linear-gradient(var(--ink), var(--ink));
    background-size: 0% 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size .45s var(--ease);
}

.lead h2 a:hover {
    background-size: 100% 2px;
}

.lead .excerpt {
    margin: 0 0 1.25rem;
    color: var(--ink-soft);
    font-size: 1.2rem;
    line-height: 1.5;
}

/* ---------- Portada: lo último ---------- */
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    border-top: 3px solid var(--ink);
    padding-top: 0.9rem;
    margin-bottom: 1.75rem;
}

.section-head h1,
.section-head h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.grid-news {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 1rem + 2vw, 3rem);
    padding-bottom: clamp(2.5rem, 2rem + 3vw, 5rem);
}

.story h3 {
    margin: 0.45rem 0 0.55rem;
    font-weight: 700;
    font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem);
    line-height: 1.15;
    letter-spacing: -0.015em;
}

.story h3 a:hover {
    color: var(--blue);
}

.story p {
    margin: 0 0 0.75rem;
    color: var(--ink-soft);
}

.story-tall .frame {
    aspect-ratio: 4 / 3;
    margin-bottom: 1.1rem;
}

.story-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.story-list li {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 1.1rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--rule);
}

.story-list li:first-child {
    padding-top: 0;
}

.story-list .frame {
    aspect-ratio: 1;
}

.story-list h3 {
    font-size: 1.12rem;
    margin: 0.3rem 0 0.4rem;
}

/* ---------- Portada: grilla de noticias pequeñas ---------- */
.news {
    padding-bottom: clamp(2.5rem, 2rem + 3vw, 5rem);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.75rem, 1.2rem + 1.5vw, 2.5rem) clamp(1.25rem, 1rem + 1.2vw, 2rem);
}

.news-card .frame {
    aspect-ratio: 16 / 10;
    margin-bottom: 0.9rem;
}

.news-card h3 {
    margin: 0.4rem 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.news-card h3 a:hover {
    color: var(--blue);
}

/* Notas de "EBCT en los medios": epígrafe y marca de prensa */
.news-kicker {
    margin: 0;
    font-family: var(--f-head);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--petrol);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-badge {
    position: absolute;
    left: 0.6rem;
    top: 0.6rem;
    padding: 0.3rem 0.55rem;
    border-radius: 4px;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--f-head);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(11, 28, 44, 0.2);
}

/* Versión pequeña de las tarjetas (sección "Sigue leyendo" de cada post) */
.news-grid--small {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.75rem 1.25rem;
}

.news-grid--small .news-card .frame {
    margin-bottom: 0.7rem;
}

.news-grid--small .news-card h3 {
    margin: 0.3rem 0 0.4rem;
    font-size: 0.98rem;
    line-height: 1.3;
}

.news-grid--small .news-kicker,
.news-grid--small .tag {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
}

.news-grid--small .news-badge {
    left: 0.45rem;
    top: 0.45rem;
    padding: 0.22rem 0.45rem;
    font-size: 0.56rem;
}

.news-grid--small .meta {
    font-size: 0.78rem;
}

.archive-more {
    display: flex;
    justify-content: center;
    padding-block: 2.5rem;
}

/* ---------- Comunidad EBCT (suscripción) ---------- */
.community {
    position: relative;
    background: var(--ink);
    color: var(--marfil);
    overflow: hidden;
}

.community::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 15%, rgba(59, 130, 246, 0.28), transparent 45%),
        radial-gradient(circle at 100% 90%, rgba(42, 157, 143, 0.22), transparent 50%);
    pointer-events: none;
}

.community-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2rem 4rem;
    align-items: center;
    padding-block: clamp(2.75rem, 2rem + 4vw, 5.5rem);
}

.community .eyebrow {
    color: var(--blue);
}

.community h2 {
    margin: 0.6rem 0 0.9rem;
    font-weight: 800;
    font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.9rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
}

.community p {
    margin: 0;
    color: rgba(248, 246, 242, 0.78);
    font-size: 1.2rem;
    max-width: 42ch;
}

.community small {
    display: block;
    margin-top: 0.75rem;
    color: rgba(248, 246, 242, 0.6);
    font-size: 0.8125rem;
}

/* Formulario de suscripción (Ghost agrega las clases loading / success / error) */
.subscribe-form .field {
    display: flex;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: 8px;
    padding: 5px;
}

.subscribe-form .field:focus-within {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

.subscribe-form input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    font: inherit;
    color: var(--ink);
    padding: 0.7rem 0.85rem;
}

.subscribe-form input:focus {
    outline: none;
}

.subscribe-form .btn {
    background: var(--blue);
    color: var(--ink);
}

.subscribe-form .btn:hover {
    background: var(--gold);
}

.btn-loading,
.form-msg {
    display: none;
}

.subscribe-form.loading .btn-label {
    display: none;
}

.subscribe-form.loading .btn-loading {
    display: inline;
}

.form-msg {
    margin: 0.75rem 0 0;
    font-size: 0.95rem;
}

.subscribe-form.success .form-success,
.subscribe-form.error .form-error {
    display: block;
}

.subscribe-form.success .field {
    display: none;
}

.community .form-success {
    color: #9fe3d9;
}

.community .form-error {
    color: #f3b4a3;
}

/* ---------- Archivo ---------- */
.archive {
    padding-block: clamp(2.5rem, 2rem + 3vw, 5rem);
}

.archive-row {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr) 11rem;
    gap: 1.5rem;
    align-items: baseline;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--rule);
}

.archive-row time {
    font-family: var(--f-head);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-mute);
    font-variant-numeric: tabular-nums;
}

.archive-row h3 {
    margin: 0;
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.25;
}

.archive-row h3 a:hover {
    color: var(--blue);
}

.archive-row p {
    margin: 0.3rem 0 0;
    color: var(--ink-soft);
    font-size: 0.98rem;
}

.archive-row .tag {
    text-align: right;
}

.pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.pagination .btn:last-child {
    justify-self: end;
}

.page-number {
    font-size: 0.875rem;
    color: var(--ink-mute);
}

/* ---------- Sección (etiqueta) ---------- */
.tag-head {
    padding-top: clamp(2rem, 1.5rem + 3vw, 4rem);
}

.tag-head .eyebrow {
    color: var(--petrol);
}

.tag-head h1 {
    margin: 0.5rem 0 0.75rem;
    font-weight: 800;
    font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem);
    line-height: 1;
    letter-spacing: -0.03em;
}

.tag-head p {
    margin: 0;
    max-width: 60ch;
    color: var(--ink-soft);
    font-size: 1.15rem;
}

.archive-page {
    padding-top: 2rem;
}

/* ---------- Post ---------- */
.crumb {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
    font-family: var(--f-head);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-mute);
}

.crumb a:hover {
    color: var(--ink);
}

.hero-img {
    margin: 0;
}

.hero-img img {
    width: 100%;
    max-height: 70vh;
    object-fit: cover;
}

.hero-img figcaption {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem var(--gutter) 0;
    font-family: var(--f-head);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-mute);
}

.hero-img figcaption time {
    margin-left: auto;
}

.post-head {
    max-width: var(--col);
    margin: 0 auto;
    padding: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem) var(--gutter) 0;
    text-align: center;
}

.post-head .section {
    color: var(--petrol);
}

.post-title {
    margin: 0.9rem 0 0;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--rule);
    font-weight: 800;
    font-size: clamp(1.75rem, 1.3rem + 2vw, 2.6rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.bajada {
    margin: 1.2rem auto 0;
    max-width: 56ch;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--ink-soft);
}

.by {
    margin: 1rem 0 0;
    font-size: 1rem;
    color: var(--ink-soft);
}

.by em {
    color: var(--ink-mute);
}

.by a:hover {
    color: var(--blue);
}

.share {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 1.1rem;
}

.share a,
.share button {
    position: relative;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink-soft);
    cursor: pointer;
    transition: background .2s, color .2s;
}

.share a:hover,
.share button:hover {
    background: var(--ink);
    color: var(--paper);
}

.share svg {
    width: 17px;
    height: 17px;
}

.share-copied {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--ink);
    color: var(--paper);
    font-size: 0.75rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}

.share-copy.is-copied .share-copied {
    opacity: 1;
}

/* ---------- Contenido del post (bloques del editor de Ghost) ---------- */
.content {
    max-width: var(--col);
    margin: 0 auto;
    padding: clamp(2rem, 1.5rem + 2vw, 3rem) var(--gutter) 3rem;
    font-size: 1.1875rem;
    line-height: 1.72;
}

.gh-content> :first-child {
    margin-top: 0;
}

.gh-content p,
.gh-content ul,
.gh-content ol {
    margin: 0 0 1.3em;
}

.gh-content li {
    margin-bottom: 0.4em;
}

.gh-content h2 {
    margin: 2em 0 0.6em;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.2;
}

.gh-content h3 {
    margin: 1.8em 0 0.5em;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.25;
}

.gh-content a {
    text-decoration: underline;
    text-decoration-color: var(--blue);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.gh-content a:hover {
    background: rgba(59, 130, 246, 0.12);
}

.gh-content blockquote:not(.kg-blockquote-alt) {
    margin: 1.8em 0;
    padding-left: 1.2rem;
    border-left: 3px solid var(--gold);
    font-style: italic;
    color: var(--ink-soft);
}

.gh-content blockquote.kg-blockquote-alt {
    margin: 2em 0;
    font-family: var(--f-head);
    font-size: 1.5rem;
    font-weight: 700;
    font-style: normal;
    line-height: 1.3;
    text-align: center;
    color: var(--ink);
}

.gh-content hr {
    margin: 2.5em 0;
    border: 0;
    border-top: 1px solid var(--rule);
}

.gh-content figure {
    margin: 1.8em 0;
}

.gh-content figcaption {
    margin-top: 0.6rem;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--ink-mute);
    text-align: center;
}

.gh-content img {
    border-radius: 4px;
}

/* Anchos de imagen del editor (obligatorios para Ghost) */
.kg-width-wide {
    position: relative;
    width: min(1040px, calc(100vw - 2 * var(--gutter)));
    left: 50%;
    transform: translateX(-50%);
}

.kg-width-full {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
}

.kg-width-full img {
    border-radius: 0;
}

/* Video de YouTube / Vimeo pegado como enlace */
.gh-content .kg-embed-card {
    display: block;
}

.gh-content .kg-embed-card iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 6px;
}

/* Tarjeta de enlace (bookmark) en posts normales: con la marca */
.gh-content .kg-bookmark-card .kg-bookmark-container {
    border-radius: 8px;
    border: 1px solid var(--rule);
    background: var(--surface);
    text-decoration: none;
}

.gh-content .kg-bookmark-card .kg-bookmark-title {
    font-family: var(--f-head);
}

/* Botón del editor (tarjeta "Button" de Ghost): estilo de la marca, no el color de acento de Ghost */
.gh-content .kg-button-card {
    margin: 2rem 0;
}

.gh-content .kg-button-card a.kg-btn,
.gh-content .kg-button-card a.kg-btn-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: auto;
    min-height: 0;
    padding: 0.85rem 1.5rem;
    border: 0;
    border-radius: 8px;
    background: var(--ink);
    color: var(--marfil);
    font-family: var(--f-head);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: background-color .25s var(--ease);
}

.gh-content .kg-button-card a.kg-btn:hover,
.gh-content .kg-button-card a.kg-btn-accent:hover {
    background: var(--blue);
    color: var(--marfil);
    opacity: 1;
}

/* ---------- Plantilla: EBCT en los medios ---------- */
.epigrafe {
    margin: 0;
    font-family: var(--f-head);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--petrol);
}

.epigrafe a {
    text-decoration: underline;
}

.article-medios .post-title {
    margin-top: 0.8rem;
}

/* Foto: pantallazo de la nota original como recorte de prensa */
.recorte {
    margin: 0 0 2rem;
}

.recorte .ventana {
    border: 1px solid var(--rule);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 18px 40px -24px rgba(11, 28, 44, 0.45);
}

.recorte .barra {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.8rem;
    background: var(--paper-2);
    border-bottom: 1px solid var(--rule);
    font-size: 0.78rem;
    line-height: 1;
    color: var(--ink-mute);
}

.recorte .barra i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(11, 28, 44, 0.18);
}

.recorte .barra span {
    margin-left: 0.4rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: var(--surface);
}

.recorte img {
    width: 100%;
    border-radius: 0;
}

/* Link a la nota: la tarjeta de enlace se convierte en el botón "Revisa la nota completa" */
.article-medios .gh-content .kg-bookmark-card {
    margin: 0 0 2.5rem;
}

.article-medios .gh-content .kg-bookmark-card .kg-bookmark-container {
    position: relative;
    display: flex;
    min-height: 0;
    border: 0;
    border-radius: 8px;
    background: var(--ink);
    color: var(--marfil);
    text-decoration: none;
    transition: background-color .25s;
}

.article-medios .gh-content .kg-bookmark-card .kg-bookmark-container:hover {
    background: var(--blue);
}

.article-medios .gh-content .kg-bookmark-card .kg-bookmark-container::after {
    content: "↗";
    align-self: center;
    padding: 0 1.3rem;
    font-size: 1.4rem;
    line-height: 1;
}

.article-medios .gh-content .kg-bookmark-content {
    padding: 1.1rem 1.3rem;
}

.article-medios .gh-content .kg-bookmark-content::before {
    content: "Revisa la nota completa en";
    display: block;
    margin-bottom: 0.25rem;
    font-family: var(--f-head);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(248, 246, 242, 0.65);
}

.article-medios .gh-content .kg-bookmark-title {
    font-family: var(--f-head);
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--marfil);
}

.article-medios .gh-content .kg-bookmark-description,
.article-medios .gh-content .kg-bookmark-thumbnail {
    display: none;
}

.article-medios .gh-content .kg-bookmark-metadata {
    margin-top: 0.4rem;
    color: rgba(248, 246, 242, 0.7);
}

/* ---------- Suscripción al final del post ---------- */
.subscribe-inline {
    max-width: var(--col);
    margin: 0 auto 3rem;
    padding: 1.6rem var(--gutter);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    text-align: center;
}

.subscribe-inline>p {
    margin: 0 0 1rem;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 1.05rem;
}

.subscribe-inline .subscribe-form {
    max-width: 460px;
    margin: 0 auto;
}

.subscribe-inline .subscribe-form .btn {
    background: var(--ink);
    color: var(--paper);
}

.subscribe-inline .subscribe-form .btn:hover {
    background: var(--blue);
}

/* ---------- Sigue leyendo ---------- */
.related {
    padding-bottom: clamp(3rem, 2rem + 3vw, 5rem);
}

.related-head {
    margin: 0 0 1.5rem;
    border-top: 3px solid var(--ink);
    padding-top: 0.9rem;
    font-size: 1rem;
    font-weight: 800;
}

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

.related-list article {
    border-left: 1px solid var(--rule);
    padding-left: 1.25rem;
}

.related-list h3 {
    margin: 0.5rem 0;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.25;
}

.related-list h3 a:hover {
    color: var(--blue);
}

.related-list time {
    font-size: 0.8125rem;
    color: var(--ink-mute);
}

/* ---------- Páginas fijas y error ---------- */
.page-img {
    max-width: 1040px;
    margin: 2rem auto 0;
    padding: 0 var(--gutter);
}

.error-page {
    padding-block: clamp(4rem, 3rem + 6vw, 8rem);
    text-align: center;
}

.error-page .eyebrow {
    color: var(--petrol);
}

.error-page h1 {
    margin: 0.6rem 0 0.8rem;
    font-weight: 800;
    font-size: clamp(2rem, 1.4rem + 2.5vw, 3.2rem);
    letter-spacing: -0.025em;
}

.error-page p {
    margin: 0 0 1.75rem;
    color: var(--ink-soft);
}

/* ---------- Footer (igual al de ebct.cl) ---------- */
.site-foot {
    margin-top: auto;
    background: var(--ink-2);
    color: rgba(248, 246, 242, 0.7);
    border-top: 1px solid rgba(248, 246, 242, 0.1);
    padding: 3rem var(--gutter);
    font-size: 0.8125rem;
    text-align: center;
}

.site-foot-row {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
}

.site-foot-row p {
    margin: 0;
}

.site-foot img {
    height: 20px;
    width: auto;
}

.site-foot-dev {
    color: rgba(248, 246, 242, 0.6);
}

.site-foot-nav .nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
    font-weight: 600;
}

.site-foot-nav a:hover {
    color: var(--marfil);
}

.site-foot-keywords {
    max-width: 1280px;
    margin: 1.5rem auto 0;
    color: rgba(248, 246, 242, 0.5);
    line-height: 1.6;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {

    .lead,
    .grid-news,
    .community-inner,
    .masthead-title {
        grid-template-columns: 1fr;
    }

    .archive-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .archive-row .tag {
        text-align: left;
        order: -1;
    }

    .related-list {
        grid-template-columns: 1fr;
    }

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

    .site-foot-row {
        flex-direction: column;
    }
}

@media (max-width: 700px) {
    .site-head-inner .btn {
        padding: 0.55rem 0.7rem;
        font-size: 0.78rem;
    }

    .site-head-actions {
        gap: 0.4rem;
    }

    .label-long {
        display: none;
    }

    .label-short {
        display: inline;
    }

    .story-list li {
        grid-template-columns: 84px minmax(0, 1fr);
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-grid.news-grid--small {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem 1rem;
    }

    .subscribe-form .field {
        flex-direction: column;
        gap: 5px;
    }

    .subscribe-form .btn {
        padding: 0.8rem;
    }

    .pagination {
        grid-template-columns: 1fr 1fr;
    }

    .page-number {
        grid-column: 1 / -1;
        grid-row: 1;
        text-align: center;
    }

    .hero-img figcaption {
        flex-direction: column;
        gap: 0.2rem;
    }

    .hero-img figcaption time {
        margin-left: 0;
    }
}

/* Pantallas medianas y chicas: el menú pasa a una segunda fila horizontal */
@media (max-width: 1000px) {
    .site-head-inner {
        flex-wrap: wrap;
        row-gap: 0.6rem;
    }

    .site-nav {
        order: 3;
        flex: 1 0 100%;
        margin: 0 calc(-1 * var(--gutter));
        padding: 0 var(--gutter);
        overflow-x: auto;
        scrollbar-width: none;
    }

    .site-nav::-webkit-scrollbar {
        display: none;
    }

    .site-nav .nav {
        flex-wrap: nowrap;
        gap: 1.25rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }
}

/* Celulares angostos: logo sin la palabra "Noticias" para que quepan los dos botones */
@media (max-width: 480px) {
    .site-logo em {
        display: none;
    }

    .site-logo img {
        height: 22px;
    }

    .btn-night span {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}
