/*
 * UNC Noticias - Página institucional
 * UNC_NEWS_PAGE_V1760
 * Scope estricto: page-id-301
 */


/*
 * La página usa su propio encabezado editorial.
 * Evitar el título básico generado por Hello Elementor.
 */
body.page-id-301 main#content > .page-header,
body.page-id-301 .site-main > .page-header,
body.page-id-301 .page-header {
    display: none !important;
}

body.page-id-301 .site-main {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
}

body.page-id-301 .site-main .page-content {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
}

body.page-id-301 .unc-news-index {
    position: relative;
    width: 100%;
    background: #ffffff;
    overflow: hidden;
}

body.page-id-301 .unc-news-index__shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 40px 0 76px;
}

/* Encabezado editorial */
body.page-id-301 .unc-news-index__hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    margin-bottom: 34px;
    padding: 50px 54px;
    border: 1px solid rgba(0, 132, 61, 0.12);
    border-radius: 30px;
    background:
        linear-gradient(
            135deg,
            #f5f8ed 0%,
            #eef5e4 55%,
            #f8faf5 100%
        );
}

body.page-id-301 .unc-news-index__hero::before,
body.page-id-301 .unc-news-index__hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    pointer-events: none;
}

body.page-id-301 .unc-news-index__hero::before {
    width: 330px;
    height: 330px;
    top: -205px;
    right: -65px;
    border: 1px solid rgba(0, 132, 61, 0.16);
}

body.page-id-301 .unc-news-index__hero::after {
    width: 245px;
    height: 245px;
    right: 64px;
    bottom: -194px;
    background: rgba(0, 132, 61, 0.07);
}

body.page-id-301 .unc-news-index__hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

body.page-id-301 .unc-news-index__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    margin-bottom: 15px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(0, 132, 61, 0.10);
    color: #006b35;
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

body.page-id-301 .unc-news-index__hero h1 {
    margin: 0 0 14px;
    color: #123026;
    font-size: clamp(2.25rem, 5vw, 4rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

body.page-id-301 .unc-news-index__hero p {
    max-width: 720px;
    margin: 0;
    color: #52615b;
    font-size: clamp(1rem, 1.6vw, 1.14rem);
    line-height: 1.65;
}

/* Vista administrativa */
body.page-id-301 .unc-news-index__preview {
    margin: -6px 0 30px;
    padding: 15px 19px;
    border: 1px solid rgba(243, 154, 61, 0.28);
    border-radius: 16px;
    background: #fff8ef;
    color: #67513b;
    font-size: 0.92rem;
    line-height: 1.55;
}

/* Grilla */
body.page-id-301 .unc-news-index__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

body.page-id-301 .unc-news-index-card {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(17, 48, 38, 0.09);
    border-radius: 24px;
    background: #ffffff;
    box-shadow:
        0 10px 34px rgba(20, 55, 42, 0.07);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

body.page-id-301 .unc-news-index-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 132, 61, 0.20);
    box-shadow:
        0 18px 42px rgba(20, 55, 42, 0.12);
}

body.page-id-301 .unc-news-index-card__link {
    display: flex;
    height: 100%;
    flex-direction: column;
    color: inherit;
    text-decoration: none !important;
}

body.page-id-301 .unc-news-index-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9.7;
    background: #edf3e7;
}

body.page-id-301 .unc-news-index-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 260ms ease;
}

body.page-id-301 .unc-news-index-card:hover
.unc-news-index-card__image {
    transform: scale(1.025);
}

/* Placeholder elegante hasta cargar las imágenes finales */
body.page-id-301 .unc-news-index-card__placeholder {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    justify-content: flex-end;
    padding: 26px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 82% 15%,
            rgba(149, 193, 49, 0.28) 0,
            rgba(149, 193, 49, 0.28) 18%,
            transparent 19%
        ),
        radial-gradient(
            circle at 88% 22%,
            transparent 0,
            transparent 27%,
            rgba(0, 132, 61, 0.12) 28%,
            rgba(0, 132, 61, 0.12) 29%,
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #edf5e5 0%,
            #f8faf5 58%,
            #e4f1e4 100%
        );
}

body.page-id-301 .unc-news-index-card__placeholder span {
    position: relative;
    z-index: 1;
    color: #00753a;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

body.page-id-301 .unc-news-index-card__placeholder small {
    position: relative;
    z-index: 1;
    margin-top: 2px;
    color: #52615b;
    font-size: 0.83rem;
    font-weight: 650;
}

body.page-id-301 .unc-news-index-card__status {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #635545;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.09);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Contenido de tarjeta */
body.page-id-301 .unc-news-index-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px 24px 25px;
}

body.page-id-301 .unc-news-index-card__date {
    display: block;
    margin-bottom: 10px;
    color: #738079;
    font-size: 0.79rem;
    font-weight: 600;
}

body.page-id-301 .unc-news-index-card h2 {
    margin: 0 0 12px;
    color: #172a23;
    font-size: clamp(1.12rem, 1.6vw, 1.35rem);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

body.page-id-301 .unc-news-index-card p {
    display: -webkit-box;
    margin: 0 0 22px;
    overflow: hidden;
    color: #59655f;
    font-size: 0.93rem;
    line-height: 1.57;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

body.page-id-301 .unc-news-index-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: #00753a;
    font-size: 0.91rem;
    font-weight: 750;
}

body.page-id-301 .unc-news-index-card__cta span {
    transition: transform 180ms ease;
}

body.page-id-301 .unc-news-index-card:hover
.unc-news-index-card__cta span {
    transform: translateX(4px);
}

/* Sin resultados */
body.page-id-301 .unc-news-index__empty {
    padding: 54px 30px;
    border-radius: 24px;
    background: #f5f8f1;
    text-align: center;
}

body.page-id-301 .unc-news-index__empty h2 {
    margin: 0 0 8px;
    color: #143126;
}

body.page-id-301 .unc-news-index__empty p {
    margin: 0;
    color: #617069;
}

/* Tablet */
@media (max-width: 980px) {
    body.page-id-301 .unc-news-index__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.page-id-301 .unc-news-index__hero {
        padding: 42px 38px;
    }
}

/* Móvil */
@media (max-width: 640px) {
    body.page-id-301 .unc-news-index__shell {
        width: min(100% - 28px, 1180px);
        padding: 24px 0 52px;
    }

    body.page-id-301 .unc-news-index__hero {
        margin-bottom: 24px;
        padding: 34px 24px;
        border-radius: 24px;
    }

    body.page-id-301 .unc-news-index__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    body.page-id-301 .unc-news-index-card {
        border-radius: 21px;
    }

    body.page-id-301 .unc-news-index-card__body {
        padding: 21px;
    }
}

/* UNC_NEWS_H1_VISIBLE_V1760 */
body.page-id-301 .unc-news-index__hero h1 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    margin: 0 0 14px !important;
    color: #123026 !important;
}

/*
 * UNC_NEWS_TITLE_FORCE_V1760
 * Fuerza únicamente el título editorial de /noticias/.
 * Neutraliza reglas globales que puedan ocultar H1.
 */
body.page-id-301
.unc-news-index
.unc-news-index__hero
.unc-news-index__hero-content
.unc-news-index__title {
    display: block !important;
    position: relative !important;
    inset: auto !important;
    float: none !important;

    width: auto !important;
    min-width: 0 !important;
    max-width: 760px !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin: 0 0 14px !important;
    padding: 0 !important;

    overflow: visible !important;

    visibility: visible !important;
    opacity: 1 !important;

    clip: auto !important;
    clip-path: none !important;

    white-space: normal !important;
    text-indent: 0 !important;

    transform: none !important;

    color: #123026 !important;

    font-size: clamp(
        2.25rem,
        5vw,
        4rem
    ) !important;

    font-weight: 750 !important;
    line-height: 1.02 !important;
    letter-spacing: -0.04em !important;

    z-index: 5 !important;
}
