
/* ==========================================================
   CENAE HOME — SECTIONS CAROUSEL V2
   ========================================================== */

.cenae-home-discovery-v2 {
    margin: 34px auto 46px;
}


/* ----------------------------------------------------------
   SECCIONES
   ---------------------------------------------------------- */

.cenae-sections-heading {
    margin: 0 0 24px;

    text-align: center;

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


.cenae-sections-splide {
    position: relative;

    width: 100%;
    max-width: 950px;

    margin: 0 auto;
}


/* Dejamos espacio para escala y sombra de la tarjeta central */

.cenae-sections-splide .splide__track {
    padding-top: 22px;
    padding-bottom: 34px;
}


/* Slides */

.cenae-sections-splide .splide__slide {
    display: flex;
    align-items: stretch;

    opacity: .58;

    transform: scale(.86);

    transition:
        transform .35s ease,
        opacity .35s ease;
}


.cenae-sections-splide .splide__slide.is-active {
    opacity: 1;

    transform: scale(1);
}


/* Tarjeta */

.cenae-section-card {
    display: flex;
    flex-direction: column;

    width: 100%;

    overflow: hidden;

    background: #fff;

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

    color: #111;

    text-decoration: none !important;

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

    transition:
        box-shadow .25s ease,
        transform .25s ease;
}


.cenae-sections-splide
.splide__slide.is-active
.cenae-section-card {

    box-shadow:
        0 12px 30px rgba(0,0,0,.15);
}


.cenae-section-card:hover,
.cenae-section-card:focus-visible {

    color: #111;

    text-decoration: none !important;

    box-shadow:
        0 14px 34px rgba(0,0,0,.18);
}


/* Imagen */

.cenae-section-media {
    width: 100%;

    overflow: hidden;

    aspect-ratio: 3 / 2;

    background: #f1f1f1;
}


.cenae-section-media img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .3s ease;
}


.cenae-section-card:hover
.cenae-section-media img {

    transform: scale(1.025);
}


/* Título */

.cenae-section-title {
    display: flex;

    min-height: 74px;

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

    padding: 14px 18px;

    text-align: center;

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

    color: #151515;
}


/* ----------------------------------------------------------
   FLECHAS
   ---------------------------------------------------------- */

.cenae-sections-splide .splide__arrow {

    position: absolute;

    top: 43%;

    z-index: 8;

    display: flex;

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

    width: 46px;
    height: 46px;

    padding: 0;

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

    background: rgba(255,255,255,.96);

    color: #111;

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

    cursor: pointer;

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


.cenae-sections-splide .splide__arrow:hover {

    background: #fff;

    box-shadow:
        0 7px 20px rgba(0,0,0,.16);
}


.cenae-sections-splide .splide__arrow--prev {
    left: -16px;
}


.cenae-sections-splide .splide__arrow--next {
    right: -16px;
}


.cenae-sections-splide .splide__arrow svg {

    width: 16px;
    height: 16px;

    fill: currentColor;
}


/* ----------------------------------------------------------
   PAGINACION
   ---------------------------------------------------------- */

.cenae-sections-splide .splide__pagination {

    position: static;

    display: flex;

    justify-content: center;

    gap: 9px;

    margin: 2px 0 0;
    padding: 0;

    list-style: none;
}


.cenae-sections-splide
.splide__pagination__page {

    width: 9px;
    height: 9px;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background: #b8bec4;

    cursor: pointer;

    transition:
        transform .2s ease,
        background .2s ease;
}


.cenae-sections-splide
.splide__pagination__page.is-active {

    background: #171717;

    transform: scale(1.35);
}


/* ----------------------------------------------------------
   LO ULTIMO — DEBAJO DEL CARRUSEL
   ---------------------------------------------------------- */

.cenae-latest-v2 {

    width: min(620px, 82%);

    margin:
        58px auto
        42px;
}


.cenae-latest-v2-link {

    position: relative;

    display: block;

    overflow: hidden;

    border-radius: 8px;

    background: #111;

    color: #111;

    text-decoration: none !important;

    box-shadow:
        0 5px 18px rgba(0,0,0,.11);
}


.cenae-latest-v2-link img {

    display: block;

    width: 100%;

    aspect-ratio: 16 / 9;

    object-fit: cover;

    transition: transform .3s ease;
}


.cenae-latest-v2-link:hover img {

    transform: scale(1.025);
}


.cenae-latest-v2-label {

    position: absolute;

    left: 18px;
    bottom: 17px;

    padding: 8px 15px;

    border-radius: 3px;

    background: rgba(255,255,255,.95);

    color: #111;

    font-size: 24px;
    line-height: 1.1;
    font-weight: 700;
}


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

@media (max-width: 720px) {

    .cenae-home-discovery-v2 {

        margin-top: 26px;
        margin-bottom: 38px;
    }


    .cenae-sections-heading {

        margin-bottom: 16px;

        font-size: 23px;
    }


    .cenae-sections-splide .splide__track {

        padding-top: 14px;
        padding-bottom: 27px;
    }


    .cenae-sections-splide .splide__slide {

        transform: scale(.91);

        opacity: .58;
    }


    .cenae-sections-splide
    .splide__slide.is-active {

        transform: scale(1);

        opacity: 1;
    }


    .cenae-section-title {

        min-height: 64px;

        padding: 12px 14px;

        font-size: 18px;
    }


    .cenae-sections-splide .splide__arrow {

        width: 38px;
        height: 38px;

        top: 42%;
    }


    .cenae-sections-splide
    .splide__arrow--prev {

        left: 4px;
    }


    .cenae-sections-splide
    .splide__arrow--next {

        right: 4px;
    }


    .cenae-latest-v2 {

        width: 92%;

        margin-top: 46px;
        margin-bottom: 34px;
    }


    .cenae-latest-v2-label {

        left: 13px;
        bottom: 13px;

        font-size: 21px;
    }

}


/* ----------------------------------------------------------
   REDUCED MOTION
   ---------------------------------------------------------- */

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

    .cenae-sections-splide .splide__slide,
    .cenae-section-media img,
    .cenae-latest-v2-link img {

        transition: none;
    }
}



/* ==========================================================
   CENAE HOME — LATEST LABEL REFINEMENT
   ========================================================== */

.cenae-latest-v2-label {
    display: inline-flex;

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

    min-height: 46px;

    padding: 0 16px;

    line-height: 1 !important;

    white-space: nowrap;
}

/* Defensa ante wpautop */
.cenae-latest-v2-link > p {
    margin: 0 !important;
}

.cenae-latest-v2-link br {
    display: none !important;
}


/* ==========================================================
   CENAE HOME — PERMANENT UPDATES
   ========================================================== */

.cenae-updates {
    width: 100%;
    max-width: 950px;

    margin: 48px auto 44px;
}


/* ---------- HEADER ---------- */

.cenae-updates-header {
    max-width: 720px;

    margin: 0 auto 26px;

    text-align: center;
}


.cenae-updates-heading-row {
    display: flex;

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

    gap: 11px;
}


.cenae-updates-status {
    display: inline-block;

    width: 10px;
    height: 10px;

    flex: 0 0 auto;

    border-radius: 50%;

    background: #1769aa;

    box-shadow:
        0 0 0 6px rgba(23,105,170,.10);
}


.cenae-updates-header h2 {
    margin: 0;

    font-size: 27px;
    line-height: 1.2;

    font-weight: 700;
}


.cenae-updates-header p {
    margin: 10px 0 0;

    color: #626a70;

    font-size: 15px;
    line-height: 1.45;
}


/* ---------- GRID ---------- */

.cenae-updates-grid {
    display: grid;

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

    gap: 16px;
}


/* ---------- CARDS ---------- */

.cenae-update-card {
    position: relative;

    display: flex;

    min-height: 138px;

    overflow: hidden;

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

    background: #fff;

    color: #161616;

    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;
}


/* Línea editorial sutil */

.cenae-update-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 4px;
    height: 100%;

    background: #1769aa;

    opacity: .75;
}


.cenae-update-card-body {
    display: flex;

    width: 100%;

    flex-direction: column;
    justify-content: space-between;

    padding: 20px 22px 18px 25px;
}


.cenae-update-card h3 {
    margin: 0;

    font-size: 18px;
    line-height: 1.35;

    font-weight: 650;

    color: inherit;
}


.cenae-update-action {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    margin-top: 18px;

    color: #1769aa;

    font-size: 14px;
    line-height: 1.2;

    font-weight: 600;
}


.cenae-update-card:hover,
.cenae-update-card:focus-visible {
    transform: translateY(-3px);

    border-color: #cdd5dc;

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

    color: #161616;

    text-decoration: none !important;
}


.cenae-update-card:focus-visible {
    outline: 2px solid #1769aa;
    outline-offset: 3px;
}


/* ---------- DESTACADA ---------- */

.cenae-update-card-featured {
    grid-column: 1 / -1;

    min-height: 148px;

    background: #17191b;

    border-color: #17191b;

    color: #fff;

    box-shadow:
        0 8px 22px rgba(0,0,0,.12);
}


.cenae-update-card-featured::before {
    width: 5px;

    opacity: 1;
}


.cenae-update-card-featured h3 {
    max-width: 760px;

    font-size: 23px;
    line-height: 1.3;
}


.cenae-update-card-featured
.cenae-update-action {

    color: #fff;

    opacity: .84;
}


.cenae-update-card-featured:hover,
.cenae-update-card-featured:focus-visible {

    border-color: #17191b;

    color: #fff;

    box-shadow:
        0 14px 32px rgba(0,0,0,.18);
}


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

@media (max-width: 720px) {

    .cenae-updates {
        width: 92%;

        margin-top: 38px;
        margin-bottom: 34px;
    }


    .cenae-updates-header {
        margin-bottom: 20px;
    }


    .cenae-updates-header h2 {
        font-size: 22px;
    }


    .cenae-updates-header p {
        font-size: 14px;
    }


    .cenae-updates-grid {
        grid-template-columns: 1fr;

        gap: 12px;
    }


    .cenae-update-card,
    .cenae-update-card-featured {
        grid-column: auto;

        min-height: 124px;
    }


    .cenae-update-card-body {
        padding: 18px 18px 16px 21px;
    }


    .cenae-update-card h3,
    .cenae-update-card-featured h3 {
        font-size: 17px;
        line-height: 1.35;
    }


    .cenae-update-action {
        margin-top: 14px;
    }

}


/* ---------- REDUCED MOTION ---------- */

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

    .cenae-update-card {
        transition: none;
    }

}


/* ==========================================================
   CENAE UPDATES — WPAUTOP SAFE MARKUP
   ========================================================== */

/* WordPress puede envolver <a> inline en párrafos.
   Los neutralizamos para que no se conviertan en items del grid. */
.cenae-updates-grid > p {
    display: contents !important;
    margin: 0 !important;
}

/* Contenido de la tarjeta ahora usa spans en vez de div/h3. */
.cenae-update-card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    width: 100%;

    padding: 20px 22px 18px 25px;
}

.cenae-update-title {
    display: block;

    margin: 0;

    font-size: 18px;
    line-height: 1.35;
    font-weight: 650;

    color: inherit;
}

.cenae-update-card-featured .cenae-update-title {
    max-width: 760px;

    font-size: 23px;
    line-height: 1.3;
}

@media (max-width: 720px) {

    .cenae-update-card-body {
        padding: 18px 18px 16px 21px;
    }

    .cenae-update-title,
    .cenae-update-card-featured .cenae-update-title {
        font-size: 17px;
        line-height: 1.35;
    }
}


/* ==========================================================
   CENAE UPDATES — GRID ALIGNMENT FIX
   ========================================================== */

/* Evitar que wrappers o párrafos creados por WordPress
   ocupen celdas reales del grid. */
.cenae-updates-grid > p,
.cenae-updates-grid > br {
    display: contents !important;
}

/* Asegurar dimensiones consistentes. */
.cenae-updates-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    align-items: stretch;
}

.cenae-update-card {
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
}

/* 1 — destacada */
.cenae-updates-grid .cenae-update-card:nth-of-type(1) {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
}

/* 2 */
.cenae-updates-grid .cenae-update-card:nth-of-type(2) {
    grid-column: 1 !important;
    grid-row: 2 !important;
}

/* 3 */
.cenae-updates-grid .cenae-update-card:nth-of-type(3) {
    grid-column: 2 !important;
    grid-row: 2 !important;
}

/* 4 */
.cenae-updates-grid .cenae-update-card:nth-of-type(4) {
    grid-column: 1 !important;
    grid-row: 3 !important;
}

/* 5 */
.cenae-updates-grid .cenae-update-card:nth-of-type(5) {
    grid-column: 2 !important;
    grid-row: 3 !important;
}

/* Igualar alturas de las cuatro tarjetas secundarias. */
.cenae-updates-grid .cenae-update-card:not(.cenae-update-card-featured) {
    min-height: 145px !important;
}


/* MOBILE: una sola columna */
@media (max-width: 720px) {

    .cenae-updates-grid {
        grid-template-columns: 1fr !important;
    }

    .cenae-updates-grid .cenae-update-card:nth-of-type(n) {
        grid-column: 1 !important;
        grid-row: auto !important;
    }

    .cenae-updates-grid .cenae-update-card:not(.cenae-update-card-featured) {
        min-height: 124px !important;
    }
}


/* ==========================================================
   CENAE HOME — FINAL PROVISIONAL POLISH
   ========================================================== */

/* Un mismo eje editorial para los componentes principales. */
.cenae-home-discovery-v2,
.cenae-updates,
.cenae-telegram-cta {
    width: 100%;
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
}


/* ---------- RITMO VERTICAL ---------- */

.cenae-home-discovery-v2 {
    margin-top: 34px;
    margin-bottom: 42px;
}

.cenae-latest-v2 {
    margin-top: 52px;
    margin-bottom: 46px;
}

.cenae-updates {
    margin-top: 42px;
    margin-bottom: 48px;
}


/* ---------- TELEGRAM ---------- */

.cenae-telegram-cta {
    margin-top: 42px;
    margin-bottom: 48px;
}

.cenae-telegram-link {
    display: flex;
    align-items: center;

    gap: 16px;

    width: 100%;

    padding: 18px 20px;

    box-sizing: border-box;

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

    background: #f8f9fa;

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

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

.cenae-telegram-link:hover,
.cenae-telegram-link:focus-visible {
    transform: translateY(-2px);

    border-color: #cfd6dc;

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

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

.cenae-telegram-link:focus-visible {
    outline: 2px solid #1769aa;
    outline-offset: 3px;
}

.cenae-telegram-icon {
    display: inline-flex;

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

    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    border-radius: 50%;

    background: #229ED9;
    color: #fff;

    font-size: 20px;
    line-height: 1;
}

.cenae-telegram-copy {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;

    flex-direction: column;

    gap: 3px;
}

.cenae-telegram-title {
    font-size: 17px;
    line-height: 1.25;
    font-weight: 700;
}

.cenae-telegram-subtitle {
    color: #687078;

    font-size: 13px;
    line-height: 1.4;
}

.cenae-telegram-action {
    flex: 0 0 auto;

    padding: 9px 14px;

    border-radius: 999px;

    background: #17191b;
    color: #fff;

    font-size: 12px;
    line-height: 1;
    font-weight: 600;

    white-space: nowrap;
}


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

@media (max-width: 720px) {

    .cenae-home-discovery-v2,
    .cenae-updates,
    .cenae-telegram-cta {
        width: 92%;
    }

    .cenae-latest-v2 {
        margin-top: 42px;
        margin-bottom: 38px;
    }

    .cenae-updates {
        margin-top: 36px;
        margin-bottom: 38px;
    }

    .cenae-telegram-cta {
        margin-top: 34px;
        margin-bottom: 38px;
    }

    .cenae-telegram-link {
        align-items: flex-start;

        padding: 16px;

        gap: 12px;

        flex-wrap: wrap;
    }

    .cenae-telegram-icon {
        flex-basis: 38px;

        width: 38px;
        height: 38px;

        font-size: 18px;
    }

    .cenae-telegram-copy {
        flex-basis: calc(100% - 50px);
    }

    .cenae-telegram-title {
        font-size: 16px;
    }

    .cenae-telegram-action {
        margin-left: 50px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cenae-telegram-link {
        transition: none;
    }
}

