/*
Theme Name: CENAE Provisional
Description: Tema provisional urgente de CENAE sobre GeneratePress.
Template: generatepress
Version: 0.1.0
Text Domain: cenae-provisional
*/

body {
    background: #fff;
    color: #222;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.inside-header {
    padding: 14px 24px;
}

.site-branding .main-title,
.site-branding .main-title a {
    color: #171717;
    font-weight: 700;
    text-decoration: none;
}

.site-logo img,
.custom-logo {
    width: auto;
    max-height: 58px;
}

.main-navigation {
    background: transparent;
}

.main-navigation .main-nav ul li a,
.main-navigation .menu-toggle,
.main-navigation .menu-bar-items a {
    color: #222;
}

.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li:focus > a,
.main-navigation .main-nav ul li.sfHover > a,
.main-navigation .main-nav ul li[class*="current-menu-"] > a {
    color: #000;
    background: #f1f1f1;
}

.main-navigation .main-nav ul ul {
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
}

.main-navigation .main-nav ul ul li a {
    background: #fff;
    color: #222;
}

.cenae-featured-item > a {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin: 7px 8px;
    padding: 8px 12px !important;
    min-height: 0 !important;
    line-height: 1.2 !important;

    border: 1px solid #222;
    border-radius: 999px;

    background: #222;
    color: #fff !important;

    font-size: .90rem;
    font-weight: 600;
    text-decoration: none;
}

.cenae-featured-item > a:hover,
.cenae-featured-item > a:focus {
    background: #fff;
    color: #111 !important;
}

.grid-container {
    max-width: 1480px;
}

.site-content {
    padding: 24px;
}

.inside-article {
    padding: 25px 30px;
}

.cenae-provisional-hub {
    max-width: 950px;
}

.cenae-provisional-hub ul {
    margin-top: 24px;
}

.cenae-provisional-hub li {
    margin-bottom: 10px;
}

@media (max-width: 900px) {

    .inside-header {
        padding: 10px 15px;
    }

    .site-logo img,
    .custom-logo {
        max-height: 45px;
    }

    .cenae-featured-item > a {
        margin: 4px;
        padding: 7px 9px !important;
        font-size: .82rem;
    }

    .site-content {
        padding: 12px;
    }

    .inside-article {
        padding: 20px 15px;
    }
}


/*
 * CENAE_BRANDING_SPLIT_CSS_BEGIN
 */

/*
 * Header:
 * isotipo compacto + CENAE textual.
 */
.site-header .site-logo img,
.site-header .custom-logo {
    display: block;

    width: auto;
    height: auto;

    max-width: 52px;
    max-height: 44px;

    object-fit: contain;
}

.site-header .site-branding {
    margin-left: 10px;
}

.site-header .main-title {
    line-height: 1.1;
}

/*
 * Footer:
 * solo isotipo, deliberadamente mas grande
 * que el isotipo del header.
 */
.cenae-footer-brand {
    display: flex;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 12px;

    width: 100%;
}

.cenae-footer-logo {
    display: inline-block;

    line-height: 0;
}

.cenae-footer-logo-image {
    display: block;

    width: auto;
    height: auto;

    max-width: 92px;
    max-height: 92px;

    margin: 0 auto;

    object-fit: contain;
}

/*
 * Texto institucional ligeramente mayor
 * que en la version anterior.
 */
.cenae-footer-copy {
    display: block;

    font-size: 0.95rem;
    line-height: 1.45;

    text-align: center;
}

@media (max-width: 768px) {

    .site-header .site-logo img,
    .site-header .custom-logo {
        max-width: 44px;
        max-height: 38px;
    }

    .site-header .site-branding {
        margin-left: 7px;
    }

    .cenae-footer-brand {
        gap: 10px;
    }

    .cenae-footer-logo-image {
        max-width: 76px;
        max-height: 76px;
    }

    .cenae-footer-copy {
        font-size: 0.90rem;
        line-height: 1.4;
    }
}

/*
 * CENAE_BRANDING_SPLIT_CSS_END
 */

/* ==========================================================
   CENAE FRONT B - HOME PUBLICATION CLEANUP
   2026-09-11
   Scope estricto: pagina Inicio ID 3017
   ========================================================== */

/* Las tablas multicolumna de Weebly son layout, no tablas de datos. */
body.page-id-3017 .wsite-multicol-table,
body.page-id-3017 .wsite-multicol-tbody,
body.page-id-3017 .wsite-multicol-tr,
body.page-id-3017 .wsite-multicol-col {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Evitar que el algoritmo automático de tablas ensanche la página. */
body.page-id-3017 .wsite-multicol-table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
}

body.page-id-3017 .wsite-multicol-table-wrap,
body.page-id-3017 .wsite-multicol,
body.page-id-3017 .wsite-multicol-col {
    max-width: 100% !important;
    min-width: 0 !important;
}

/* El margin negativo heredado de Weebly favorece overflow. */
body.page-id-3017 .wsite-multicol-table-wrap {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Quitar líneas divisorias heredadas. */
body.page-id-3017 .styled-hr {
    display: none !important;
}

/* Reducir espaciadores artificiales de Weebly. */
body.page-id-3017 .wsite-spacer {
    height: 12px !important;
}

/* Hay ya un buscador nativo de WordPress en el sidebar. */
body.page-id-3017 .wsite-search-element-outer {
    display: none !important;
}

/* Ocultar también la estructura multicolumna dedicada al
   buscador antiguo, para que no quede una tabla vacía. */
body.page-id-3017 .wsite-multicol:has(.wsite-search-element-outer) {
    display: none !important;
}

/* Protección general contra overflow heredado. */
body.page-id-3017 .entry-content,
body.page-id-3017 .wsite-multicol-col,
body.page-id-3017 .wsite-content-title,
body.page-id-3017 .paragraph {
    overflow-wrap: anywhere;
    min-width: 0;
}

/* ---------------- MOBILE ---------------- */
@media (max-width: 768px) {

    body.page-id-3017 .wsite-multicol-col {
        width: 33.333333% !important;
        max-width: 33.333333% !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
        box-sizing: border-box !important;
        vertical-align: middle;
    }

    /* Los títulos importados eran demasiado grandes para 3 columnas. */
    body.page-id-3017 .wsite-multicol-col h2,
    body.page-id-3017 .wsite-multicol-col .wsite-content-title {
        font-size: 19px !important;
        line-height: 1.15 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.page-id-3017 .wsite-multicol-col .paragraph {
        font-size: 18px !important;
        line-height: 1.2 !important;
    }

    /* El texto justificado se ve mal en pantallas estrechas. */
    body.page-id-3017 .paragraph[style*="text-align:justify"],
    body.page-id-3017 .paragraph[style*="text-align: justify"] {
        text-align: left !important;
    }

    body.page-id-3017 img {
        max-width: 100% !important;
        height: auto;
    }
}


/* ==========================================================
   CENAE FRONT B - HOME TYPOGRAPHY + SPACING
   2026-09-11
   Scope: Inicio ID 3017
   ========================================================== */

/* Heredar una sola familia tipográfica del tema WordPress. */
body.page-id-3017 .entry-content,
body.page-id-3017 .entry-content .paragraph,
body.page-id-3017 .entry-content .wsite-content-title,
body.page-id-3017 .entry-content .wsite-button-inner,
body.page-id-3017 .entry-content font {
    font-family: inherit !important;
}

/* Texto introductorio. */
body.page-id-3017 .entry-content .paragraph[style*="text-align:justify"],
body.page-id-3017 .entry-content .paragraph[style*="text-align: justify"] {
    font-size: 16px !important;
    line-height: 1.5 !important;
}

/* Texto legal bajo el logo: pequeño pero legible. */
body.page-id-3017 .entry-content .paragraph font[size="1"] {
    font-size: 12px !important;
    line-height: 1.4 !important;
}

/* Neutralizar los font-size HTML heredados de Weebly
   dentro de las columnas de navegación. */
body.page-id-3017 .wsite-multicol-col font {
    font-size: inherit !important;
}

/* Títulos de las seis categorías principales. */
body.page-id-3017 .wsite-multicol-col .wsite-content-title,
body.page-id-3017 .wsite-multicol-col > .paragraph {
    font-size: 23px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
}

/* Links de actualidad: misma tipografía y escala. */
body.page-id-3017 .wsite-button,
body.page-id-3017 .wsite-button-inner {
    font-family: inherit !important;
    font-size: 16px !important;
    line-height: 1.45 !important;
    font-weight: 400 !important;
}

/* Compactar separadores vacíos heredados de Weebly. */
body.page-id-3017 .entry-content div[style*="height: 10px"][style*="overflow: hidden"] {
    height: 4px !important;
}

body.page-id-3017 .entry-content div[style*="height: 20px"][style*="overflow: hidden"] {
    height: 8px !important;
}

body.page-id-3017 .wsite-spacer {
    height: 8px !important;
}

/* ---------- MOBILE ---------- */
@media (max-width: 768px) {

    /* Mantener las tres columnas pero con escala razonable. */
    body.page-id-3017 .wsite-multicol-col .wsite-content-title,
    body.page-id-3017 .wsite-multicol-col > .paragraph {
        font-size: 15px !important;
        line-height: 1.2 !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
        hyphens: none !important;
    }

    body.page-id-3017 .entry-content .paragraph[style*="text-align:justify"],
    body.page-id-3017 .entry-content .paragraph[style*="text-align: justify"] {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }

    body.page-id-3017 .entry-content .paragraph font[size="1"] {
        font-size: 11px !important;
        line-height: 1.4 !important;
    }

    body.page-id-3017 .wsite-button,
    body.page-id-3017 .wsite-button-inner {
        font-size: 16px !important;
        line-height: 1.4 !important;
    }
}


/* ==========================================================
   CENAE FRONT B - HOME STRUCTURE REFINEMENT
   2026-09-11
   ========================================================== */

/* El título sigue existiendo en WordPress, pero no necesita
   mostrarse dentro de la portada. */
body.page-id-3017 .entry-header {
    display: none !important;
}

/* La Home no necesita sidebar: la búsqueda ya vive en el header. */
body.page-id-3017 #right-sidebar {
    display: none !important;
}

body.page-id-3017 #primary,
body.page-id-3017 .content-area {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

body.page-id-3017 .site-main {
    margin-right: 0 !important;
}

/* Centrar el corpus de la portada respecto del sitio/footer,
   no respecto de una columna con sidebar. */
body.page-id-3017 .entry-content {
    width: 100%;
    max-width: 950px;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
}

/* Aviso institucional y separación con la introducción. */
body.page-id-3017 .cenae-legal-notice {
    margin-bottom: 20px !important;
}

body.page-id-3017 .cenae-home-intro {
    margin-top: 0 !important;
}

@media (max-width: 768px) {
    body.page-id-3017 .cenae-legal-notice {
        margin-bottom: 16px !important;
    }
}


/* ==========================================================
   CENAE FRONT B - HOME NAVIGATION LINKS
   ========================================================== */

body.page-id-3017 .cenae-home-nav-title a {
    text-decoration: none !important;
    color: inherit;
}

body.page-id-3017 .cenae-home-nav-title a:hover,
body.page-id-3017 .cenae-home-nav-title a:focus-visible {
    color: #1769aa;
    text-decoration: none !important;
}

body.page-id-3017 .cenae-home-nav-title a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}


/* ==========================================================
   CENAE FRONT B - FEATURE + SECTION CAROUSEL
   ========================================================== */

body.page-id-3017 .cenae-home-discovery {
    margin: 30px auto 52px;
}

/* ---------- LO ULTIMO ---------- */

body.page-id-3017 .cenae-latest-feature {
    width: min(620px, 82%);
    margin: 0 auto 52px;
}

body.page-id-3017 .cenae-latest-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    color: inherit;
    text-decoration: none !important;
    background: #111;
}

body.page-id-3017 .cenae-latest-link img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform .25s ease;
}

body.page-id-3017 .cenae-latest-label {
    position: absolute;
    left: 20px;
    bottom: 18px;

    padding: 8px 15px;

    background: rgba(255,255,255,.94);
    color: #111;

    font-size: 25px;
    line-height: 1.15;
    font-weight: 700;

    border-radius: 3px;
}

body.page-id-3017 .cenae-latest-link:hover img,
body.page-id-3017 .cenae-latest-link:focus-visible img {
    transform: scale(1.025);
}


/* ---------- CAROUSEL ---------- */

body.page-id-3017 .cenae-carousel {
    width: 100%;
    margin: 0 auto;
}

body.page-id-3017 .cenae-carousel-heading {
    margin: 0 0 18px;
    text-align: center;
    font-size: 26px;
    line-height: 1.2;
}

body.page-id-3017 .cenae-carousel-stage {
    position: relative;
}

body.page-id-3017 .cenae-carousel-viewport {
    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scrollbar-width: none;

    padding: 24px 0 30px;
}

body.page-id-3017 .cenae-carousel-viewport::-webkit-scrollbar {
    display: none;
}

body.page-id-3017 .cenae-carousel-track {
    display: flex;
    align-items: center;
    gap: 22px;

    padding-left: 29%;
    padding-right: 29%;
}

body.page-id-3017 .cenae-carousel-card {
    flex: 0 0 42%;
    min-width: 0;

    scroll-snap-align: center;

    display: block;

    background: #fff;

    color: inherit;
    text-align: center;
    text-decoration: none !important;

    opacity: .52;
    transform: scale(.84);

    transition:
        transform .24s ease,
        opacity .24s ease;

    transform-origin: center;
}

body.page-id-3017 .cenae-carousel-card.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

body.page-id-3017 .cenae-carousel-card img {
    display: block;

    width: 100%;
    aspect-ratio: 3 / 2;

    object-fit: cover;

    border-radius: 5px;
}

body.page-id-3017 .cenae-carousel-title {
    display: block;

    margin-top: 14px;

    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;

    color: inherit;
}

body.page-id-3017 .cenae-carousel-card:hover .cenae-carousel-title,
body.page-id-3017 .cenae-carousel-card:focus-visible .cenae-carousel-title {
    color: #1769aa;
}


/* Flechas */

body.page-id-3017 .cenae-carousel-arrow {
    position: absolute;
    top: 43%;
    transform: translateY(-50%);

    z-index: 5;

    width: 42px;
    height: 42px;

    padding: 0;

    border: 1px solid #ddd;
    border-radius: 50%;

    background: #fff;
    color: #222;

    font-size: 23px;
    line-height: 1;

    cursor: pointer;
}

body.page-id-3017 .cenae-carousel-prev {
    left: 4px;
}

body.page-id-3017 .cenae-carousel-next {
    right: 4px;
}

body.page-id-3017 .cenae-carousel-arrow:hover,
body.page-id-3017 .cenae-carousel-arrow:focus-visible {
    background: #f4f4f4;
}


/* Puntos */

body.page-id-3017 .cenae-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;

    margin-top: 5px;
}

body.page-id-3017 .cenae-carousel-dot {
    width: 9px;
    height: 9px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: #bbb;

    cursor: pointer;
}

body.page-id-3017 .cenae-carousel-dot.is-active {
    background: #222;
}


/* ---------- MOBILE ---------- */

@media (max-width: 768px) {

    body.page-id-3017 .cenae-home-discovery {
        margin-top: 24px;
        margin-bottom: 40px;
    }

    body.page-id-3017 .cenae-latest-feature {
        width: 92%;
        margin-bottom: 40px;
    }

    body.page-id-3017 .cenae-latest-label {
        left: 14px;
        bottom: 13px;

        font-size: 21px;
    }

    body.page-id-3017 .cenae-carousel-heading {
        font-size: 23px;
    }

    body.page-id-3017 .cenae-carousel-track {
        gap: 14px;

        padding-left: 11%;
        padding-right: 11%;
    }

    body.page-id-3017 .cenae-carousel-card {
        flex-basis: 78%;
        transform: scale(.88);
    }

    body.page-id-3017 .cenae-carousel-card.is-active {
        transform: scale(1);
    }

    body.page-id-3017 .cenae-carousel-title {
        font-size: 18px;
    }

    body.page-id-3017 .cenae-carousel-arrow {
        width: 36px;
        height: 36px;

        font-size: 20px;
    }

}


/* Accesibilidad: respetar reducción de movimiento */

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

    body.page-id-3017 .cenae-carousel-card,
    body.page-id-3017 .cenae-latest-link img {
        transition: none;
    }

    body.page-id-3017 .cenae-carousel-viewport {
        scroll-behavior: auto;
    }

}


/* ==========================================================
   CENAE FRONT B - STICKY DESKTOP HEADER
   2026-09-11
   ========================================================== */

@media (min-width: 769px) {

    .site-header {
        position: sticky;
        top: 0;
        z-index: 1000;

        background: rgba(255, 255, 255, 0.97);

        box-shadow:
            0 1px 0 rgba(0, 0, 0, 0.08),
            0 3px 12px rgba(0, 0, 0, 0.04);

        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    /* Si se está logueado en WordPress y aparece la admin bar */
    body.admin-bar .site-header {
        top: 32px;
    }
}

/* WP usa una admin bar más alta entre 769 y 782 px */
@media (min-width: 769px) and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}


/* ==========================================================
   CENAE FRONT B — ARTICULOS DEL DIRECTOR / TEMATICAS
   Post legacy ID 24
   ========================================================== */

body.postid-24 .cenae-legacy-content {
    width: 100%;
    max-width: none;
}

body.postid-24 .cenae-topics-page {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto 48px;
}

body.postid-24 .cenae-topics-heading {
    margin: 18px 0 30px;

    text-align: center;

    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;

    color: #222;
}

body.postid-24 .cenae-topics-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 24px;
}

/* Centrar la séptima tarjeta en la última fila */
body.postid-24 .cenae-topic-item-last {
    grid-column: 2;
}

body.postid-24 .cenae-topic-card {
    display: flex;
    flex-direction: column;

    height: 100%;

    overflow: hidden;

    border: 1px solid #e1e5e8;
    border-radius: 10px;

    background: #fff;

    color: #171717;
    text-decoration: none !important;

    box-shadow:
        0 2px 8px rgba(0,0,0,.045);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

body.postid-24 .cenae-topic-card:hover,
body.postid-24 .cenae-topic-card:focus-visible {
    transform: translateY(-3px);

    border-color: #cbd3d9;

    box-shadow:
        0 10px 26px rgba(0,0,0,.10);

    color: #171717;
    text-decoration: none !important;
}

body.postid-24 .cenae-topic-card:focus-visible {
    outline: 2px solid #1769aa;
    outline-offset: 3px;
}

body.postid-24 .cenae-topic-media {
    display: block;

    width: 100%;
    height: 215px;

    overflow: hidden;

    background: #f3f5f6;
}

body.postid-24 .cenae-topic-media img {
    display: block;

    width: 100% !important;
    height: 100% !important;

    object-fit: cover;

    margin: 0 !important;
}

body.postid-24 .cenae-topic-media-contain img {
    object-fit: contain;

    padding: 14px;
    box-sizing: border-box;
}

body.postid-24 .cenae-topic-title {
    display: flex;

    flex: 1 1 auto;

    min-height: 72px;

    align-items: center;
    justify-content: center;

    padding: 14px 18px;

    box-sizing: border-box;

    text-align: center;

    font-size: 20px;
    line-height: 1.25;
    font-weight: 600;
}


/* TABLET */

@media (max-width: 900px) and (min-width: 769px) {

    body.postid-24 .cenae-topics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.postid-24 .cenae-topic-item-last {
        grid-column: auto;
    }
}


/* MOBILE */

@media (max-width: 768px) {

    body.postid-24 .cenae-topics-page {
        width: 100%;
        max-width: 520px;

        margin-bottom: 34px;
    }

    body.postid-24 .cenae-topics-heading {
        margin-top: 8px;
        margin-bottom: 24px;

        font-size: 29px;
    }

    body.postid-24 .cenae-topics-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    body.postid-24 .cenae-topic-item-last {
        grid-column: auto;
    }

    body.postid-24 .cenae-topic-media {
        height: 220px;
    }

    body.postid-24 .cenae-topic-title {
        min-height: 62px;

        padding: 12px 16px;

        font-size: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.postid-24 .cenae-topic-card {
        transition: none;
    }
}


/* ==========================================================
   CENAE FRONT B — SEARCH RESULTS
   2026-09-11
   ========================================================== */

body.search-results .site-main,
body.search-no-results .site-main {
    width: 100%;
    max-width: 1050px;
    margin-left: auto;
    margin-right: auto;
}

body.search-results .page-header,
body.search-no-results .page-header {
    margin: 12px 0 32px;
    padding: 0;
}

body.search-results .page-title,
body.search-no-results .page-title {
    margin: 0;

    font-size: 34px;
    line-height: 1.2;
    font-weight: 700;

    color: #171717;
}

body.search-results article {
    margin: 0 0 18px;
    padding: 24px 26px;

    border: 1px solid #e1e5e8;
    border-radius: 10px;

    background: #fff;

    box-shadow: 0 2px 7px rgba(0,0,0,.035);

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

body.search-results article:hover {
    transform: translateY(-2px);

    border-color: #cbd3da;

    box-shadow: 0 8px 20px rgba(0,0,0,.07);
}

body.search-results article .entry-header {
    margin-bottom: 10px;
}

body.search-results article .entry-title {
    margin: 0;

    font-size: 26px;
    line-height: 1.25;
    font-weight: 650;
}

body.search-results article .entry-title a {
    color: #171717;
    text-decoration: none !important;
}

body.search-results article .entry-title a:hover,
body.search-results article .entry-title a:focus-visible {
    color: #1769aa;
}

body.search-results article .entry-summary,
body.search-results article .entry-content {
    margin-top: 0;

    color: #454b50;

    font-size: 16px;
    line-height: 1.6;
}

body.search-results article .read-more {
    white-space: nowrap;

    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 768px) {

    body.search-results .page-title,
    body.search-no-results .page-title {
        font-size: 28px;
    }

    body.search-results article {
        padding: 19px 18px;
        margin-bottom: 14px;
    }

    body.search-results article .entry-title {
        font-size: 22px;
    }

    body.search-results article .entry-summary,
    body.search-results article .entry-content {
        font-size: 16px;
        line-height: 1.55;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.search-results article {
        transition: none;
    }
}


/* ==========================================================
   CENAE FRONT B — FINAL CORE PAGES
   Quienes somos + Articulos + Temas
   ========================================================== */


/* =========================
   QUIENES SOMOS
   ========================= */

body.postid-2494 .cenae-legacy-content {
    width: 100%;
    max-width: 1000px;

    margin-left: auto;
    margin-right: auto;
}

body.postid-2494 .cenae-team {
    display: flex;
    flex-direction: column;

    gap: 24px;

    margin: 12px auto 50px;
}

body.postid-2494 .cenae-person {
    display: grid;

    grid-template-columns: 200px minmax(0, 1fr);
    gap: 28px;

    align-items: start;

    padding: 26px;

    border: 1px solid #e1e5e8;
    border-radius: 11px;

    background: #fff;

    box-shadow: 0 2px 8px rgba(0,0,0,.035);
}

body.postid-2494 .cenae-person-media {
    display: flex;

    justify-content: center;
    align-items: flex-start;
}

body.postid-2494 .cenae-person-media img {
    display: block;

    width: 180px !important;
    height: 210px !important;

    margin: 0 !important;

    border-radius: 7px;

    object-fit: cover;
    object-position: center top;
}

body.postid-2494 .cenae-person-director .cenae-person-media img {
    width: 190px !important;
    height: 220px !important;
}

body.postid-2494 .cenae-person-body h2 {
    margin: 0 0 3px;

    font-size: 25px;
    line-height: 1.2;
    font-weight: 700;
}

body.postid-2494 .cenae-person-role {
    margin: 0 0 17px;

    color: #1769aa;

    font-size: 14px;
    line-height: 1.3;
    font-weight: 650;
}

body.postid-2494 .cenae-person-body p:not(.cenae-person-role) {
    max-width: none;

    margin: 0 0 11px;

    font-size: 16px;
    line-height: 1.65;

    text-align: left;
}

body.postid-2494 .cenae-person-body p:last-child {
    margin-bottom: 0;
}


/* =========================
   ARTICULOS + TEMAS
   ========================= */

body.page-id-32 .entry-content,
body.page-id-33 .entry-content {
    max-width: 1000px;

    margin-left: auto;
    margin-right: auto;
}

body.page-id-32 .cenae-hub,
body.page-id-33 .cenae-hub {
    margin: 8px auto 50px;
}

body.page-id-32 .cenae-hub-intro,
body.page-id-33 .cenae-hub-intro {
    max-width: 700px;

    margin: 0 0 30px;

    color: #555d63;

    font-size: 16px;
    line-height: 1.55;
}

body.page-id-32 .cenae-hub-grid,
body.page-id-33 .cenae-hub-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 16px;
}

body.page-id-32 .cenae-hub-card,
body.page-id-33 .cenae-hub-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    min-height: 132px;

    padding: 22px;

    box-sizing: border-box;

    border: 1px solid #e1e5e8;
    border-radius: 10px;

    background: #fff;

    color: #171717;
    text-decoration: none !important;

    box-shadow: 0 2px 8px rgba(0,0,0,.035);

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

body.page-id-32 .cenae-hub-card:hover,
body.page-id-32 .cenae-hub-card:focus-visible,
body.page-id-33 .cenae-hub-card:hover,
body.page-id-33 .cenae-hub-card:focus-visible {
    transform: translateY(-3px);

    border-color: #c8d1d8;

    box-shadow: 0 9px 22px rgba(0,0,0,.08);

    color: #171717;
}

body.page-id-32 .cenae-hub-card-title,
body.page-id-33 .cenae-hub-card-title {
    font-size: 19px;
    line-height: 1.3;
    font-weight: 700;
}

body.page-id-32 .cenae-hub-card-action,
body.page-id-33 .cenae-hub-card-action {
    margin-top: 20px;

    color: #1769aa;

    font-size: 13px;
    font-weight: 600;
}


/* TABLET */

@media (max-width: 900px) and (min-width: 769px) {

    body.page-id-32 .cenae-hub-grid,
    body.page-id-33 .cenae-hub-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* MOBILE */

@media (max-width: 768px) {

    body.postid-2494 .cenae-team {
        gap: 16px;
    }

    body.postid-2494 .cenae-person {
        grid-template-columns: 1fr;

        gap: 18px;

        padding: 20px;
    }

    body.postid-2494 .cenae-person-media img,
    body.postid-2494 .cenae-person-director .cenae-person-media img {
        width: 170px !important;
        height: 195px !important;
    }

    body.postid-2494 .cenae-person-body h2 {
        text-align: center;

        font-size: 23px;
    }

    body.postid-2494 .cenae-person-role {
        text-align: center;
    }

    body.page-id-32 .cenae-hub-grid,
    body.page-id-33 .cenae-hub-grid {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    body.page-id-32 .cenae-hub-card,
    body.page-id-33 .cenae-hub-card {
        min-height: 108px;

        padding: 19px;
    }
}

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

    body.page-id-32 .cenae-hub-card,
    body.page-id-33 .cenae-hub-card {
        transition: none;
    }
}


/* ==========================================================
   CENAE FRONT B — HUB PAGE ALIGNMENT
   Articulos + Temas
   ========================================================== */

/* Integrar el H1 nativo con el diseño del hub */
body.page-id-32 .entry-header,
body.page-id-33 .entry-header {
    width: 100%;
    max-width: 1000px;

    margin: 18px auto 12px;

    text-align: center;
}

body.page-id-32 .entry-title,
body.page-id-33 .entry-title {
    margin: 0;

    color: #171717;

    font-size: 36px;
    line-height: 1.15;
    font-weight: 700;
}

/* Centrar introducción */
body.page-id-32 .cenae-hub-intro,
body.page-id-33 .cenae-hub-intro {
    max-width: 700px;

    margin: 0 auto 30px;

    text-align: center;
}

/*
 * Flex en lugar de Grid:
 * mantiene 3 columnas pero centra automáticamente
 * una última fila incompleta.
 */
body.page-id-32 .cenae-hub-grid,
body.page-id-33 .cenae-hub-grid {
    display: flex !important;
    flex-wrap: wrap;

    justify-content: center;
    align-items: stretch;

    gap: 16px;
}

body.page-id-32 .cenae-hub-card,
body.page-id-33 .cenae-hub-card {
    flex: 0 1 calc((100% - 32px) / 3);

    width: calc((100% - 32px) / 3);
    max-width: calc((100% - 32px) / 3);

    box-sizing: border-box;
}

/* TABLET */
@media (max-width: 900px) and (min-width: 769px) {

    body.page-id-32 .cenae-hub-card,
    body.page-id-33 .cenae-hub-card {
        flex-basis: calc((100% - 16px) / 2);

        width: calc((100% - 16px) / 2);
        max-width: calc((100% - 16px) / 2);
    }
}

/* MOBILE */
@media (max-width: 768px) {

    body.page-id-32 .entry-header,
    body.page-id-33 .entry-header {
        margin-top: 8px;
        margin-bottom: 12px;
    }

    body.page-id-32 .entry-title,
    body.page-id-33 .entry-title {
        font-size: 30px;
    }

    body.page-id-32 .cenae-hub-intro,
    body.page-id-33 .cenae-hub-intro {
        margin-bottom: 24px;

        text-align: left;
    }

    body.page-id-32 .cenae-hub-card,
    body.page-id-33 .cenae-hub-card {
        flex-basis: 100%;

        width: 100%;
        max-width: 100%;
    }
}


/* ==========================================================
   CENAE FRONT B — HUB CARD WIDTH FIX
   Corrige flex-basis incompatible del parche anterior.
   ========================================================== */

body.page-id-32 .cenae-hub,
body.page-id-33 .cenae-hub {
    width: 100%;
    max-width: 1000px;

    margin-left: auto;
    margin-right: auto;
}

body.page-id-32 .cenae-hub-grid,
body.page-id-33 .cenae-hub-grid {
    display: flex !important;
    flex-wrap: wrap !important;

    justify-content: center !important;
    align-items: stretch !important;

    width: 100% !important;

    gap: 16px !important;
}

body.page-id-32 .cenae-hub-card,
body.page-id-33 .cenae-hub-card {
    flex: 0 0 calc(33.333333% - 11px) !important;

    width: calc(33.333333% - 11px) !important;
    max-width: calc(33.333333% - 11px) !important;
    min-width: 0 !important;

    box-sizing: border-box !important;

    overflow-wrap: normal !important;
    word-break: normal !important;
}


/* TABLET */

@media (max-width: 900px) and (min-width: 769px) {

    body.page-id-32 .cenae-hub-card,
    body.page-id-33 .cenae-hub-card {
        flex-basis: calc(50% - 8px) !important;

        width: calc(50% - 8px) !important;
        max-width: calc(50% - 8px) !important;
    }
}


/* MOBILE */

@media (max-width: 768px) {

    body.page-id-32 .cenae-hub-card,
    body.page-id-33 .cenae-hub-card {
        flex-basis: 100% !important;

        width: 100% !important;
        max-width: 100% !important;
    }
}


/* ==========================================================
   CENAE FRONT B — HUB WPAUTOP FLEX FIX
   WordPress envuelve los enlaces en <p>. Al usar display:
   contents, las tarjetas vuelven a ser los elementos flex.
   ========================================================== */

body.page-id-32 .cenae-hub-grid > p,
body.page-id-33 .cenae-hub-grid > p {
    display: contents !important;

    margin: 0 !important;
    padding: 0 !important;
}

/* Evitar que <br> introducidos por wpautop se conviertan
   en elementos adicionales del flex. */
body.page-id-32 .cenae-hub-grid br,
body.page-id-33 .cenae-hub-grid br {
    display: none !important;
}


/* Contenedor */
body.page-id-32 .cenae-hub-grid,
body.page-id-33 .cenae-hub-grid {
    display: flex !important;
    flex-wrap: wrap !important;

    justify-content: center !important;
    align-items: stretch !important;

    width: 100% !important;

    gap: 16px !important;
}


/* Desktop: 3 por fila */
body.page-id-32 .cenae-hub-card,
body.page-id-33 .cenae-hub-card {
    flex: 0 0 calc(33.333% - 11px) !important;

    width: calc(33.333% - 11px) !important;
    max-width: calc(33.333% - 11px) !important;
    min-width: 0 !important;

    box-sizing: border-box !important;

    overflow-wrap: normal !important;
    word-break: normal !important;
}


/* Tablet: 2 por fila */
@media (max-width: 900px) and (min-width: 769px) {

    body.page-id-32 .cenae-hub-card,
    body.page-id-33 .cenae-hub-card {
        flex-basis: calc(50% - 8px) !important;

        width: calc(50% - 8px) !important;
        max-width: calc(50% - 8px) !important;
    }
}


/* Mobile: 1 por fila */
@media (max-width: 768px) {

    body.page-id-32 .cenae-hub-card,
    body.page-id-33 .cenae-hub-card {
        flex-basis: 100% !important;

        width: 100% !important;
        max-width: 100% !important;
    }
}

