/*
Theme Name:   De Frente al Futuro
Theme URI:    http://defrentealfuturo.com
Description:  Tema hijo de BlankSlate para la revista digital De Frente al Futuro.
Author:       Juan Suárez
Template:     blankslate
Version:      0.1.0
*/

/* ─── Reset hereda de BlankSlate ───────────────────────────────────────────── */

/* ─── Base tipográfica ─────────────────────────────────────────────────────── */

body {
    font-family: Georgia, serif;
    font-size: 18px;
    line-height: 1.7;
    color: #111;
    background: #fff;
    margin: 0;
}

a {
    color: #111;
}

a:hover {
    color: #555;
}

.skip-link.screen-reader-text {
  display: none;
}

blockquote {
  margin: 3rem;
  font-style: italic;
}

/* ─── Contenedor general ───────────────────────────────────────────────────── */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ─── Tipografía display ────────────────────────────────────────────────────── */

:root {
    --font-display:  'Space Grotesk', sans-serif;
    --font-serif:    Georgia, serif;
    --font-sans:     'Space Grotesk', sans-serif;
    --font-condensed:'Fira Sans Condensed', sans-serif;
}

/* ─── Variables ─────────────────────────────────────────────────────────────── */

:root {
    --header-bg:           #68bada;
    --header-color:        #fff;
    --header-fixed-height: 64px;
    --header-static-height: 130px; /* ~40% más que el fijo */
}

/* ─── Header estático ───────────────────────────────────────────────────────── */

#header-static {
    background: var(--header-bg);
    height: var(--header-static-height);
    position: relative;
    z-index: 10;
}

.header-static-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

/* Iconos sociales — izquierda */
.header-social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.header-social .social-links {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
}

.header-social .social-link {
    color: var(--header-color);
    opacity: 0.7;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s;
}

.header-social .social-link:hover {
    opacity: 1;
}

/* Logo — centro */
.header-brand {
    display: flex;
    justify-content: center;
}

.header-brand img {
    height: 69px;
    width: auto;
}

/* Hamburger — derecha */
.hamburger {
    justify-self: end;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--header-color);
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: currentColor;
    transition: transform 0.25s, opacity 0.25s;
}

/* ─── Header fijo ────────────────────────────────────────────────────────────── */

#header-fixed {
    background: var(--header-bg);
    height: var(--header-fixed-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transform: translateY(-100%);
    transition: transform 0.35s ease;
}

#header-fixed.is-visible {
    transform: translateY(0);
}

.header-fixed-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Logo pequeño — izquierda */
.header-brand-small img {
    height: 32px;
    width: auto;
}

.header-brand-small {
  margin-right: 1rem;
}

/* Nav inline */
#header-nav ul {
    display: flex;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
    font-family: var(--font-sans);
    list-style: none;
}

#header-nav ul li a {
    color: var(--header-color);
    text-decoration: none;
    font-size: 19px;
    /*! text-transform: uppercase; */
    letter-spacing: -0.3px;
    opacity: 1;
    transition: opacity 0.2s;
}

#header-nav ul li a:hover {
    opacity: 1;
}

/* ─── Nav overlay (hamburger) ───────────────────────────────────────────────── */

.nav-overlay {
    position: fixed;
    inset: 0;
    background: var(--header-bg);
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.nav-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.nav-overlay-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--header-color);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.nav-overlay-close:hover {
    opacity: 1;
}

.nav-overlay nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    /*! gap: 1.5rem; */
    padding: 0;
    margin: 0;
    list-style: none;
    font-family: var(--font-sans);
}

.nav-overlay nav ul li a {
    color: var(--header-color);
    text-decoration: none;
    font-size: 4rem;
    letter-spacing: -3px;
    /*! text-transform: uppercase; */
    /*! opacity: 0.85; */
    transition: opacity 0.2s;
    font-weight: 300;
}

.nav-overlay nav ul li a:hover {
    opacity: 1;
}

/* ─── Single: hero ─────────────────────────────────────────────────────────── */

/* Wrapper externo: necesario para que @container pueda modificar el grid interno */
.entry-hero-outer {
    container-type: inline-size;
    container-name: entry-hero;
}

.entry-header-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* Cuadrado izquierdo: imagen */
.entry-hero-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.entry-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Cuadrado derecho: texto */
.entry-hero-text {
    aspect-ratio: 1 / 1;
    background: white;
    color: #f0ece4;
    padding: 3.5rem 4rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}

.entry-hero-section {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
    font-family: "Space Grotesk", serif;
}

.entry-hero-section a {
    color: #000;
    opacity: 0.8;
    text-decoration: none;
}

.entry-hero-section a:hover {
    opacity: 1;
}

.entry-hero-text .entry-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 5cqw, 8rem);
    font-weight: 600;
    line-height: 0.9;
    color: black;
    flex: 1;
    margin: 0;
    letter-spacing: -3px;
    margin-bottom: 1rem;
}

.entry-hero-text .entry-title--large {
    font-size: clamp(1.19rem, 4.25cqw, 6.8rem);
}

.entry-hero-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    color: rgb(17,17,17);
    font-family: var(--font-sans);
    font-size: 16px;
    /*! font-style: italic; */
    line-height: 137%;
    margin-bottom: 10px;
}

.entry-autor a {
  /*! font-family: var(--font-sans); */
}

.entry-hero-footer .entry-autor a {
    color: #000;
    text-decoration: none;
    /*! font-size: 22px; */
    font-weight: 600;
    font-style: normal;
}

.entry-hero-footer .entry-autor a:hover {
    text-decoration: underline;
}

.entry-hero-footer .entry-date {
    font-size: 0.8rem;
    color: #000;
    opacity: 0.5;
}

.entry-hero-footer .entry-numero {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    /*! margin-top: 0.25rem; */
}

.entry-hero-footer .entry-numero a {
    color: #000;
    opacity: 0.5;
    text-decoration: none;
    font-size: inherit;
}

.entry-hero-footer .entry-numero a:hover {
    opacity: 1;
}

/* Responsive: menos de 800px → apilados con 4:3 */
@container entry-hero (max-width: 800px) {
    .entry-header-hero {
        grid-template-columns: 1fr;
    }

    .entry-hero-image,
    .entry-hero-text {
        aspect-ratio: 4 / 3;
    }

    /* En columna única el cqw es del contenedor completo, no de la mitad */
    .entry-hero-text .entry-title {
        font-size: clamp(1.8rem, 10cqw, 6rem);
        letter-spacing: -2px;
        line-height: 1;
    }

    .entry-hero-text .entry-title--large {
        font-size: clamp(1.53rem, 8.5cqw, 5.1rem);
    }

    .entry-hero-text .entry-extracto {
        font-size: clamp(0.85rem, 3cqw, 1.1rem);
    }

    .entry-hero-text {
        padding: 2rem 2.5rem;
    }
}
@container entry-hero (max-width: 599px) {
    .entry-hero-text {
        aspect-ratio: auto;
        padding: 2rem 1.5rem
    }
    .entry-hero-text .entry-extracto {
        font-size: 21px !important;
        line-height: 1.35 !important;
    }
    .entry-hero-footer .entry-autor a { 
        font-size:   1.13rem;   
        font-weight: 500;
     }
    .entry-hero-footer .entry-autor {
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    .entry-hero-footer .entry-autor a{
        line-height: 1.5;
    }

}
/* Single: cuerpo de la nota */
.entry-bajada {
    font-size: 1.2rem;
    line-height: 1.5;
    color: #444;
    border-left: 3px solid #111;
    padding-left: 1.25rem;
    margin: 2rem 0;
}

.entry-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 5rem 0 4rem;
}

.entry-content p {
    margin: 1em 0;
}

.wp-block-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
}

.dropcap::first-letter {
    float: left;
  font-weight: 700;
  font-size: 5.7rem;
  line-height: 0.65;
  margin: 0.12em 0.14em 0.10em 0;
  font-family: var(--font-display)
}
/* ─── Single: extracto en hero ─────────────────────────────────────────────── */

.entry-hero-text .entry-extracto {
    font-size: clamp(0.85rem, 1.5cqw, 3rem);
    line-height: 1.5;
    color: #000;
    opacity: 0.75;
    margin: 0.75rem 0 0;
    flex-shrink: 0;
}

/* ─── Teaser unificado (container-responsive) ───────────────────────────────── */

.teaser {
    container-type: inline-size;
    container-name: teaser;
}

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

.teaser a:hover {
    text-decoration: underline;
}

/* Imagen compartida */
.teaser-image-link {
    display: block;
    overflow: hidden;
}

.teaser-image {
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.teaser-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 0.4s ease;
}

.teaser-image-link:hover .teaser-image img {
    transform: scale(1.05);
}

.teaser-image.img-pos--top img,
.slide-image.img-pos--top img,
.entry-hero-image.img-pos--top img    { object-position: center top; }

.teaser-image.img-pos--bottom img,
.slide-image.img-pos--bottom img,
.entry-hero-image.img-pos--bottom img { object-position: center bottom; }

/* ── Layout pequeño (base) ── */

.teaser-body {
    padding: 0.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    overflow: hidden;
}

.teaser-section {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.75;
    font-family: var(--font-sans);
}

.teaser-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    flex: 1;
    letter-spacing: -0.5px;
}

.teaser-extracto {
    font-size: 0.95rem;
    line-height: 1.3;
    opacity: 0.7;
    margin: 0;
}

.teaser-autor {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: -0.5px;
    opacity: 0.8;
}

.teaser-date {
    font-size: 0.75rem;
    opacity: 0.45;
}

/* ── Layout mediano (260px – 600px) ── */

@container teaser (min-width: 280px) and (max-width: 599.98px) {
    .teaser-inner {
        aspect-ratio: 1 / 1;
        display: grid;
        grid-template-rows: 60% 40%;
        overflow: hidden;
    }

    .teaser-image-link,
    .teaser-image {
        height: 100%;
        aspect-ratio: auto;
    }

    .teaser-body {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "section  extracto"
            "title    extracto"
            "footer   extracto";
        grid-template-rows: auto 1fr auto;
        padding: 0.75rem 0;
        gap: 0;
        border-top: 1px solid #e0e0e0;
        overflow: hidden;
    }

    .teaser-section  { grid-area: section; align-self: end; }
    .teaser-title    {
        grid-area: title;
        font-size: 5cqw;
        font-weight: 600;
        line-height: 1.1;
        letter-spacing: -0.06rem;
        flex: unset;
        align-self: start;
        margin-top: 0.25rem;
    }
    .teaser-extracto {
        grid-area: extracto;
        border-left: 1px solid #999;
        padding-left: 0.75rem;
        align-self: flex-start;
        font-size: 0.95rem;
        margin-left: 0.75rem;
        line-height: 1.2;
    }
    .teaser-footer   { grid-area: footer; align-self: end; }
    .teaser-autor {
        font-size: 1rem;
    }
}

/* ── Sin imagen: ocupa ancho completo en el listado ── */

.notas-listado .teaser--no-image {
    grid-column: 1 / -1;
    border-top: 1px solid #e0e0e0;
}

/* Reset total de los layouts de container-query */
.teaser--no-image .teaser-inner {
    display: grid !important;
    grid-template-columns: 1fr 2fr !important;
    grid-template-rows: auto !important;
    aspect-ratio: auto !important;
    overflow: visible !important;
    gap: 2rem !important;
    align-items: start !important;
    padding: 1.25rem 0 !important;
}

.teaser--no-image .teaser-body {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: unset !important;
    grid-template-areas: unset !important;
    grid-template-rows: unset !important;
    aspect-ratio: auto !important;
    padding: 0 !important;
    border-top: none !important;
    overflow: visible !important;
    height: auto !important;
    gap: 0.5rem !important;
}

.teaser--no-image .teaser-title {
    font-size: clamp(1.4rem, 3cqw, 2.5rem) !important;
    letter-spacing: -1px !important;
    line-height: 1 !important;
    flex: unset !important;
}

.teaser--no-image .teaser-section {
    font-size: 0.7rem !important;
}

.teaser--no-image .teaser-footer {
    margin-top: 0.5rem !important;
    padding-top: 0 !important;
}

/* ── Layout grande (≥ 600px) ── */

@container teaser (min-width: 600px) {
    .teaser-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        overflow: hidden;
        gap: 15px;
    }

    .teaser-image-link,
    .teaser-image {
        aspect-ratio: 1 / 1;
        height: auto;
    }

    .teaser-body {
        aspect-ratio: 1 / 1;
        padding: 2rem 3rem 3rem 1.3rem;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        border-top: none;
        overflow: hidden;
        box-sizing: border-box;
    }

    .teaser-section {
        font-size: 0.7rem;
        margin-bottom: 0.25rem;
    }

    .teaser-title {
        font-size: clamp(1.2rem, 5.7cqw, 5em);
        font-weight: 600;
        line-height: 0.9;
        margin: 0 0 0.5rem;
        flex: 1;
        letter-spacing: -3px;
    }

    .teaser-extracto {
        font-size: clamp(0.85rem, 1.6cqw, 1rem);
        flex-shrink: 0;
        border-left: none;
        padding-left: 0;
        line-height: 1.5;
    }

    .teaser-footer {
        margin-top: auto;
        padding-top: 1rem;
    }

    .teaser-autor {
        font-size: 1.2rem;
        letter-spacing: -0.7px;
        margin-bottom: 0.25rem;
    }
}

/* ─── Grilla de teasers (página test y portada) ─────────────────────────────── */

.test-row {
    margin-bottom: 4rem;
}

.test-row-large {
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 18px;
}

.test-row-medium {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.test-row-small {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

/* ─── Secciones de portada ──────────────────────────────────────────────────── */

.seccion-portada {
    margin-top: 2rem;
}

.seccion-portada-titulo {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.45;
    margin: 0 0 0.75rem;
    font-weight: normal;
}

.seccion-portada-grid {
    display: grid;
    gap: 15px;
}

/* 1 artículo: columna completa → teaser large */
.seccion-portada--1 .seccion-portada-grid {
    grid-template-columns: 1fr;
}

/* 2 artículos: dos columnas iguales → teaser medium */
.seccion-portada--2 .seccion-portada-grid {
    grid-template-columns: 1fr 1fr;
}

/* 3 artículos: primero el doble → primero medium, los otros small */
.seccion-portada--3 .seccion-portada-grid {
    grid-template-columns: 2fr 1fr 1fr;
}

/* 4 artículos: cuatro columnas iguales → teaser small */
.seccion-portada--4 .seccion-portada-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* 3 artículos invertido: dos small a la izquierda, medium a la derecha */
.seccion-portada--3.seccion-portada--invertida .seccion-portada-grid {
    grid-template-columns: 1fr 1fr 2fr;
}

/* Destacados */
.seccion-portada.destacado-1,
.seccion-portada.destacado-2 {
    padding: 1.5rem;
    margin-left: calc(-1.5rem);
    margin-right: calc(-1.5rem);
}

.seccion-portada.destacado-1 {
    background: var(--header-bg);
}

.seccion-portada.destacado-2 {
    background: #e8622a;
}

.seccion-portada.destacado-1 .seccion-portada-titulo,
.seccion-portada.destacado-2 .seccion-portada-titulo {
    color: #fff;
    opacity: 1;
}

.seccion-portada-titulo {
  font-size: 1.4rem;
  margin-top: -0.88rem;
}

/* ─── Último número (bloque home) ───────────────────────────────────────────── */

.ultimo-numero {
    background: var(--header-bg);
    padding: 3rem 0;
    margin: 2rem 0;
}

.ultimo-numero-inner {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    align-items: center;
}

.ultimo-numero-imagen a {
    display: block;
}

.ultimo-numero-imagen img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.ultimo-numero-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    color: var(--header-color);
}

.ultimo-numero-logo img {
    height: 48px;
    width: auto;
    /* El logo en fondo celeste necesita ser blanco o con contraste;
       si es oscuro, aplicar filter: brightness(0) invert(1) */
    filter: brightness(0) invert(1);
}

.ultimo-numero-contenido {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ultimo-numero-titulo {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -3px;
    margin: 0;
}

.ultimo-numero-titulo a {
    color: var(--header-color);
    text-decoration: none;
}

.ultimo-numero-titulo a:hover {
    text-decoration: underline;
}

.ultimo-numero-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    opacity: 0.8;

    margin: 1rem 0;
}

.ultimo-numero-etiqueta {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    border: 1px solid rgba(255,255,255,0.5);
    padding: 0.15rem 0.5rem;
    border-radius: 2px;
}

.ultimo-numero-extracto {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.85;
    margin: 0;
    max-width: 520px;
}

/* ─── Archivo de revistas ───────────────────────────────────────────────────── */

.archivo-revistas {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem 1.5rem;
    margin-top: 2rem;
}

.teaser-revista a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.teaser-revista a:hover .teaser-revista-titulo {
    text-decoration: underline;
}

.teaser-revista-imagen {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f0ece4;
    margin-bottom: 0.75rem;
}

.teaser-revista-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.teaser-revista-imagen-placeholder {
    width: 100%;
    height: 100%;
    background: #e8e4dc;
}

.teaser-revista-numero {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.5;
    margin-bottom: 0.35rem;
}

.teaser-revista-titulo {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 0.35rem;
}

.teaser-revista-extracto {
    font-size: 0.8rem;
    line-height: 1.4;
    opacity: 0.65;
    margin: 0;
}

/* ─── Single revista ────────────────────────────────────────────────────────── */

.revista-hero {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.revista-hero-inner {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 4rem;
    align-items: start;
}

.revista-tapa {
    position: sticky;
    top: calc(var(--header-fixed-height) + 1.5rem);
}

.revista-tapa img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.revista-numero {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.5;
    margin-bottom: 0.75rem;
}

.revista-titulo {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -2px;
    margin: 0 0 1.5rem;
}

.revista-extracto {
    font-size: 1.1rem;
    line-height: 1.5;
    opacity: 0.7;
    margin-bottom: 2rem;
    border-left: 3px solid #111;
    padding-left: 1rem;
}

.revista-contenido {
    font-size: 1rem;
    line-height: 1.7;
}

.revista-meta {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
}

.revista-meta-etiqueta {
    font-weight: 600;
}

.revista-meta-fecha {
    opacity: 0.6;
}

/* ─── Perfil de autor ───────────────────────────────────────────────────────── */

.autor-nombre {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 600;
    letter-spacing: -2px;
    line-height: 1;
    margin: 2rem 0 1.5rem;
}

.autor-perfil {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 3rem;
}

.autor-foto {
    width: 200px;
    height: 200px;
    overflow: hidden;
    margin: 0;
    flex-shrink: 0;
}

.autor-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.autor-bio {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    max-width: 600px;
}

@media (max-width: 599px) {
    .autor-perfil {
        grid-template-columns: 1fr;
    }
    .autor-foto {
        width: 140px;
        height: 140px;
    }
    .teaser-extracto {
        font-size: 2.2svh !important;
    }
    .ultimo-numero-meta {
        justify-content: center;
    }
}

.revista-notas {
    padding-top: 2rem;
    padding-bottom: 4rem;
    border-top: 1px solid #e0e0e0;
}

/* ─── Página estática (page.php) ─────────────────────────────────────────────── */

.page-titulo {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 600;
    letter-spacing: -2px;
    line-height: 1;
    margin: 2rem 0 1.5rem;
}

.post-618 .page-titulo { 
     font-size:clamp(2rem, 6vw, 3rem);
     margin: 4rem 0 4.25rem;
}

.page-imagen {
    margin: 0 0 2rem;
}

.page-imagen img {
    width: 100%;
    height: auto;
    display: block;
}

.page-contenido {
    max-width: 680px;
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
}

.page-contenido p,
.page-contenido ul,
.page-contenido ol {
    margin-bottom: 1.25rem;
}

.page-contenido h2,
.page-contenido h3,
.page-contenido h4 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -1px;
    margin: 2rem 0 0.75rem;
}

.revista-notas-titulo {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.45;
    font-weight: normal;
    margin: 0 0 1.5rem;
}

.revista-notas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* ─── Contenido principal ──────────────────────────────────────────────────── */

main#main {
    padding: 0;
}

.wp-block-quote {
    font-family: var(--font-sans);
    font-size: 27px;
    letter-spacing: -1px;
    
    line-height: 1.3;
    margin: 3rem 0;
    max-width: 80%;
    margin-left: clamp(1rem, 10%, 4rem);
    font-weight: 700;
    color: var(--header-bg);
}
.wp-block-quote em {
    font-style: normal
}

/* ─── Slider / carousel de portada ──────────────────────────────────────────── */

.slider {
    position: relative;
    container-type: inline-size;
    container-name: slider;
}

.slider-slides {
    position: relative;
    /* Altura = mitad del ancho total (dos cuadrados 1:1 side-by-side) */
    aspect-ratio: 2 / 1;
    overflow: hidden;
}

/* Cada slide apilado */
.slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    pointer-events: none;
}

.slide.is-active {
    pointer-events: auto;
    z-index: 1;
}

.slide.is-entering,
.slide.is-leaving {
    z-index: 2;
}

/* Imagen */
.slide-image-link {
    display: block;
    overflow: hidden;
}

.slide-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide.is-active .slide-image {
    opacity: 1;
}

/* Texto */
.slide-text {
    background: white;
    padding: 3.5rem 4rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
    opacity: 0;
    transform: translateX(0);
}

.slide.is-active .slide-text {
    opacity: 1;
}

/* Animaciones de transición */
@keyframes slide-img-enter  { from { opacity: 0 } to { opacity: 1 } }
@keyframes slide-img-leave  { from { opacity: 1 } to { opacity: 0 } }
@keyframes slide-text-enter { from { opacity: 0; transform: translateX(-30px) } to { opacity: 1; transform: translateX(0) } }
@keyframes slide-text-leave { from { opacity: 1 } to { opacity: 0 } }

.slide.is-entering .slide-image { animation: slide-img-enter  0.7s ease forwards; }
.slide.is-leaving  .slide-image { animation: slide-img-leave  0.7s ease forwards; opacity: 1; }
.slide.is-entering .slide-text  { animation: slide-text-enter 0.7s ease forwards; }
.slide.is-leaving  .slide-text  { animation: slide-text-leave 0.7s ease forwards; opacity: 1; }

/* Contenido del texto */
.slide-section {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
    font-family: var(--font-sans);
}

.slide-section a {
    color: #000;
    opacity: 0.6;
    text-decoration: none;
}

.slide-section a:hover { opacity: 1; }

.slide-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 5cqw, 8rem);
    font-weight: 600;
    line-height: 0.9;
    color: black;
    flex: 1;
    margin: 0;
    letter-spacing: -3px;
}

.slide-title a {
    color: inherit;
    text-decoration: none;
}

.slide-title a:hover { text-decoration: underline; }

.slide-extracto {
    font-size: clamp(0.85rem, 1.5cqw, 3rem);
    line-height: 1.5;
    color: #000;
    opacity: 0.75;
    margin: 0.75rem 0 0;
    flex-shrink: 0;
}

.slide-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.slide-autor {
    font-family: var(--font-sans);
}

.slide-autor a {
    color: #000;
    text-decoration: none;
    font-size: 22px;
}

.slide-autor a:hover { text-decoration: underline; }

.slide-date {
    font-size: 0.8rem;
    color: #000;
    opacity: 0.5;
}

/* Flechas */
.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: none;
    border: none;
    color: #000;
    font-size: 4rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.75rem;
    text-shadow: 0 0 8px rgba(255,255,255,0.9), 0 1px 3px rgba(255,255,255,0.6);
    opacity: 0.6;
    transition: opacity 0.2s;
}

.slider-prev { left: 0; }
.slider-next { right: 0; }

.slider-prev:hover,
.slider-next:hover { opacity: 1; }

/* Dots */
.slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 25%; /* centrado sobre el cuadrado de imagen */
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.slider-dot.is-active {
    background: #fff;
    transform: scale(1.25);
}

/* Responsive: menos de 700px → apilado */
@container slider (max-width: 700px) {
    .slider-slides {
        aspect-ratio: auto;
        height: 100svh;
    }

    /* Ocultar slides inactivos */
    .slide {
        position: relative;
        inset: auto;
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        height: 100%;
        display: none;
    }

    .slide.is-active,
    .slide.is-entering,
    .slide.is-leaving {
        display: grid;
    }

    /* El slide saliente se posiciona encima sin ocupar espacio en el flujo */
    .slide.is-leaving {
        position: absolute;
        inset: 0;
        z-index: 2;
    }

    .slide-image,
    .slide-image-link {
        aspect-ratio: 4 / 3;
        height: auto;
    }

    .slide-text {
        padding: 2rem 1.5rem;
        aspect-ratio: auto;
        min-height: 0;
        align-content: start;
    }

    .slide-title {
        font-size: clamp(1.4rem, 10cqw, 5rem);
        letter-spacing: -1px;
    }

    .slider-prev {
        top: calc(3 / 8 * 100cqw);
        left: 0;
    }
    .slider-next {
        top: calc(3 / 8 * 100cqw);
        right: 0;
    }

    .slider-dots {
        left: 50%;
        top: calc(3 / 4 * 100cqw - 1.5rem);
        bottom: auto;
        transform: translateX(-50%);
    }
}

/* ─── Share bar ─────────────────────────────────────────────────────────────── */

.share-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.share-bar-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.5;
    flex-shrink: 0;
}

.share-bar-links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.share-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    opacity: 0.45;
    transition: opacity 0.2s;
    text-decoration: none;
}

.share-link:hover {
    opacity: 1;
}

.share-link svg {
    width: 20px;
    height: 20px;
}

/* ─── Etiquetas ─────────────────────────────────────────────────────────────── */

.entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-borde, #e0e0e0);
}

.entry-tag {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-acento);
    border: 1px dotted;
    padding: 0.05rem 0.4rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.entry-tag:hover {
    background: transparent;
    color: var(--header-bg);
}

/* ─── Navegación entre artículos ───────────────────────────────────────────── */

.entry-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    /*! background: #e0e0e0; */
    /*! border-top: 1px solid #e0e0e0; */
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.entry-nav-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.5rem 0;
    text-decoration: none;
    color: inherit;
    background: #fff;
}

.entry-nav-prev { padding-right: 2rem; }
.entry-nav-next { padding-left: 2rem; text-align: right; }

.entry-nav-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.5;
}

.entry-nav-title {
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.5vw, 1.4rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.5px;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.entry-nav-item:hover .entry-nav-title {
    opacity: 1;
}

@media (max-width: 599px) {
    .entry-nav {
        grid-template-columns: 1fr;
    }
    .entry-nav-prev,
    .entry-nav-next {
        padding-left: 0;
        padding-right: 0;
        text-align: left;
        border-bottom: 1px solid #e0e0e0;
    }
    .slide-extracto {
        font-size: 2.2svh;
    }
    
    .slide-autor a {
        font-size: 18px;
        line-height: 1.3;
    }
    .teaser-body {
        padding-top: 1.4rem
    }
}

/* ─── Pie de página ────────────────────────────────────────────────────────── */

footer#colophon {
    border-top: 1px solid #e0e0e0;
    padding: 3rem 0 2rem;
    margin-top: 3rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-tagline {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: #555;
    margin: 0;
}

.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav ul li a {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: #111;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.footer-nav ul li a:hover {
    opacity: 1;
}

.footer-inner .social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-inner .social-link {
    color: #111;
    opacity: 0.5;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-inner .social-link:hover {
    opacity: 1;
}

/* ─── Archivo de notas (archive.php) ────────────────────────────────────── */

.archive-header {
    padding: 2rem 0 1.25rem;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 1.5rem;
}

.archive-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -2px;
    margin: 2rem 0 3rem;
    color: var(--header-bg);
}

.archive-description {
    font-size: 1rem;
    opacity: 0.65;
    margin: 0;
    max-width: 600px;
    line-height: 1.5;
}

.notas-listado {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 0 0 3rem;
}

@media (min-width: 600px) {
    .notas-listado {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 700px) {
    .notas-listado {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (min-width: 920px) {
    .notas-listado {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

/* ─── Responsive mobile ─────────────────────────────────────────────────── */

/* Grillas de portada */
@media (max-width: 599px) {
    .seccion-portada--2 .seccion-portada-grid,
    .seccion-portada--3 .seccion-portada-grid,
    .seccion-portada--4 .seccion-portada-grid,
    .seccion-portada--3.seccion-portada--invertida .seccion-portada-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 600px) and (max-width: 699px) {
    .seccion-portada--3 .seccion-portada-grid,
    .seccion-portada--4 .seccion-portada-grid,
    .seccion-portada--3.seccion-portada--invertida .seccion-portada-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 700px) and (max-width: 919px) {
    .seccion-portada--4 .seccion-portada-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* Último número */
@media (max-width: 699px) {
    .ultimo-numero-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .ultimo-numero-imagen {
        max-width: 200px;
        margin: 0 auto;
    }
    .ultimo-numero-info {
        text-align: center;
        align-items: center;
    }
}

/* Archivo de revistas */
@media (max-width: 599px) {
    .archivo-revistas {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem 1rem;
    }
}

/* Single revista */
@media (max-width: 699px) {
    .revista-hero-inner {
        grid-template-columns: 1fr;
    }
    .revista-tapa {
        max-width: 240px;
        position: static;
    }
    .revista-notas-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 700px) and (max-width: 899px) {
    .revista-hero-inner {
        grid-template-columns: 240px 1fr;
        gap: 2rem;
    }
    .revista-notas-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Header estático en mobile */
@media (max-width: 599px) {
    :root {
        --header-static-height: 80px;
    }
    .header-brand img {
        height: 48px;
    }
    .header-social {
        gap: 0.5rem;
    }
}

/* Nav overlay: letras más chicas en mobile */
@media (max-width: 599px) {
    .nav-overlay nav ul li a {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }
}

/* Iconos sociales: solo visibles en header en desktop */
@media (max-width: 799px) {
    .header-social {
        visibility: hidden;
    }

    /* Header fijo mobile: solo logo + hamburger */
    #header-nav {
        display: none;
    }

    .hamburger--fixed {
        display: flex;
        margin-left: auto;
    }
}

@media (min-width: 800px) {
    .hamburger--fixed {
        display: none;
    }
}

/* Iconos sociales en el overlay (solo en mobile) */
.nav-overlay-social {
    display: none;
}

@media (max-width: 799px) {
    .nav-overlay-social {
        display: flex;
        margin-top: 2rem;
    }
    .nav-overlay-social .social-links {
        display: flex;
        gap: 1.5rem;
    }
    .nav-overlay-social .social-link {
        color: var(--header-color);
        opacity: 0.7;
        display: flex;
        align-items: center;
        text-decoration: none;
        transition: opacity 0.2s;
    }
    .nav-overlay-social .social-link:hover {
        opacity: 1;
    }
}

/* Teaser medio en mobile (430–599px): sin altura fija, se expande al contenido */
@media (min-width: 430px) and (max-width: 599px) {
    @container teaser (min-width: 280px) {
        .teaser-inner {
            aspect-ratio: auto;
            overflow: visible;
            grid-template-rows: auto auto;
        }
        .teaser-image-link {
            width: 100%;
            height: auto;
            aspect-ratio: 4 / 3;
            overflow: hidden;
        }
        .teaser-image {
            width: 100%;
            height: 100%;
            aspect-ratio: auto;
        }
        .teaser-body {
            overflow: visible;
        }
    }
}

/* Teaser medio en mobile (<430px): forzar layout pequeño */
@media (max-width: 429px) {
    @container teaser (min-width: 280px) {
        .teaser-inner {
            display: block;
            aspect-ratio: auto;
            overflow: visible;
            margin-bottom: 1rem;
        }
        .teaser-image-link {
            height: auto;
        }
        .teaser-image {
            aspect-ratio: 1 / 1;
            height: auto;
        }
        .teaser-body {
            display: flex;
            flex-direction: column;
            grid-template-columns: initial;
            grid-template-areas: initial;
            overflow: visible;
        }
        .teaser-section,
        .teaser-title,
        .teaser-extracto,
        .teaser-footer { grid-area: initial; align-self: initial; }
        .teaser-title {
            font-size: 1.6rem;
            letter-spacing: -0.5px;
            flex: 1;
            margin-bottom: 1rem;
        }
        .teaser-extracto {
            border-left: none;
            padding-left: 0;
            margin-left: 0;
            margin-bottom: 1rem;
            line-height: 1.5;
            font-size: 16px;
        }
    }
}

/* Single: cuerpo y citas */
@media (max-width: 599px) {
    .entry-content {
        padding: 2.5rem 0 2rem;
    }
    .wp-block-quote {
        max-width: 100%;
        margin-left: 0;
        font-size: 1.3rem;
    }
}

/* ordenar */


.autor-nombre {
  font-family: var(--font-display);
  font-size: 48px;
  margin: 4rem 0 2rem;
}

.entry-texto-previo {
  margin-bottom: 3rem;
}

.archive-title.archive-title--tag {
  color: #ccc;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
}

/* ── Contact Form 7 ───────────────────────────────────────────────────────── */

.wpcf7-form {
    max-width: 600px;
    margin: 2rem 0 3rem;
}

.wpcf7-form label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    margin-bottom: 1.5rem;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
    display: block;
    width: 100%;
    margin-top: 0.4rem;
    padding: 0.6rem 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    color: #1a1a1a;
    background: transparent;
    border: none;
    border-bottom: 1px solid #ccc;
    border-radius: 0;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form textarea:focus {
    border-bottom-color: #1a1a1a;
}

.wpcf7-form textarea {
    min-height: 140px;
    resize: vertical;
}

.wpcf7-form input[type="submit"] {
    margin-top: 0.5rem;
    padding: 0.7rem 2rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    background: #1a1a1a;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.wpcf7-form input[type="submit"]:hover {
    opacity: 0.75;
}

.wpcf7-response-output {
    margin-top: 1.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border: 1px solid #ccc;
}

.wpcf7-mail-sent-ok {
    border-color: #4a4 !important;
    color: #4a4;
}

.wpcf7-mail-sent-ng,
.wpcf7-aborted {
    border-color: #c44 !important;
    color: #c44;
}

.wpcf7-not-valid-tip {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.75rem;
    color: #c44;
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: 0;
}