﻿/* VARIABLES GLOBALES DE IDENTIDAD  */

:root {
    --title-color: #424242;
    --dark-primary: #4a1323; /* Guinda oscuro */
    --primary-color: #6a1c32; 
    --bg-color: #6a1c32;
    --plain-text-color: #3C3C3C;
    --plain-text-color-gray: #555353;
    --secondary-color: #6a1c32; 
    --tertiary-color: #4a1323; 
    --separator-color: #b17a45; 
    --separator-color-secondary: #e6c8a8;
    --white-gray-color: #ECECEC;
    --separator-bg-color: #F2D3C6;
    --highlight-color: #b17a45;
    --breadcrumbs-color: #EEEEEE;
    --highlight-red: #6A0026; 
}


/* IMPORTACIÓN DE FUENTES INSTITUCIONALES */


@font-face {
    font-family: 'NeulisAlt-Black';
    src: url('../Content/fonts/NeulisAlt-Black.ttf') format('opentype');
}

@font-face {
    font-family: 'NeulisAlt-BlackItalic';
    src: url('../Content/fonts/NeulisAlt-BlackItalic.ttf') format('opentype');
}

@font-face {
    font-family: 'NeulisAlt-Bold';
    src: url('../Content/fonts/NeulisAlt-Bold.ttf') format('opentype');
}

@font-face {
    font-family: 'NeulisAlt-BoldItalic';
    src: url('../Content/fonts/NeulisAlt-BlackItalic.ttf') format('opentype');
}

@font-face {
    font-family: 'NeulisAlt-ExtraBold';
    src: url('../Content/fonts/NeulisAlt-ExtraBold.ttf') format('opentype');
}

@font-face {
    font-family: 'NeulisAlt-Regular';
    src: url('../Content/fonts/NeulisAlt-Regular.ttf') format('opentype');
}

@font-face {
    font-family: 'NeulisAlt-SemiBold';
    src: url('../Content/fonts/NeulisAlt-SemiBold.ttf') format('opentype');
}

@font-face {
    font-family: 'NeulisAlt-Medium';
    src: url('../Content/fonts/NeulisAlt-Medium.ttf') format('opentype');
}


/* 1. SECCION DE NOTICIAS (TARJETAS DE LA PÁGINA PRINCIPAL / HOME)           */

#noticias .card-title {
    font-family: NeulisAlt-SemiBold, sans-serif;
    font-weight: 600;
    color: var(--plain-text-color-gray);
}

.news-section {
    margin: 0 auto;
    padding: 1rem;
    width: 100%;
}

/* Card */
.news-card {
    display: flex;
    align-items: stretch;
    background: white;
    border-radius: 25px;
    margin-bottom: 1.1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.19);
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

/* Date Block */
.news-date {
    text-align: center;
    font-weight: bold;
    color: white;
    background: var(--secondary-color);
    padding: 2.5rem;
    object-fit: cover;
/*"Lineas Agregadas" Centrar fecha de noticia*/
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    min-width: 160px;
    font-family: NeulisAlt-Medium, sans-serif;
}

.news-date .day {
    display: flex;
    font-size: 4.5rem;
    margin-right: 5%;
    font-weight: 600;
}

.news-date .month {
    font-size: 3rem;
    letter-spacing: 1px;
    margin-top: 2%;
    font-weight: 500;
}

.news-image img {
    width: 300px;
    /*"Lineas Agregadas" Ajustar Imagen*/
    height:100%;
    object-fit: cover;
    display: block;
    overflow: hidden;
}

.news-content h3 {
    margin: 1rem;
    font-size: 1.2rem;
    color: var(--primary-color) !important;
    font-family: NeulisAlt-Medium, sans-serif;
    font-weight: 400 !important;
    text-align: left;
    height: 45px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-content p {
    margin: 1rem;
    color: var(--plain-text-color-gray);
    line-height: 1.4;
    font-family: NeulisAlt-Regular, sans-serif;
    text-align: justify;
    height: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.news-link {
    text-align: right;
    padding-right: 1.5rem;
    padding-bottom: 1rem;
    font-size: 1.6rem;
}
.news-link a:hover{
    color: var(--highlight-color);
    text-decoration: none;
}

.news-content a {
    margin-bottom: 1.5rem;
    color: var(--secondary-color) !important;
    line-height: 1.4;
    font-family: NeulisAlt-Medium, sans-serif;
    font-weight: bold;
    text-align: right;
}
.news-content a:hover {
    color: var(--highlight-color) !important;
}

.news-all {
    text-align: right;
    padding-top: 1.2rem;
    color: var(--primary-color);
}

.news-all a {
    font-family: NeulisAlt-Medium, sans-serif;
    font-weight: bold;
    text-align: right;
    font-size: 1.8rem;
}
.news-all a:hover{
    color: var(--highlight-color);
    text-decoration: none;
}

.see-all-link {
    color: white !important;
    background: var(--primary-color);
    font-weight: 400;
    text-decoration: none;
    border-radius: 25px;
    padding: 12px;
    font-family: 'NeulisAlt-Medium', sans-serif; 
}
}
.see-all-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    color: white !important;
    background: var(--tertiary-color);
}

@media (max-width: 770px) {
    .news-card {
        flex-direction: column;
        align-items: center;
        display: flex;
    }

    .news-date {
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 0.01rem;
    }

    .news-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
        display: block;
        overflow: hidden;
    }
}

.nav-breadcrumb {
    background-color: white !important;
    border: 0 solid white;
    border-radius: 12px;
    padding: 5px;
    vertical-align: middle;
    margin-bottom: 20px;
}

.breadcrumb-list {
    margin-bottom: 0 !important;
    padding: 0 !important;
    font-size: 17px !important;
    background-color: white !important;
    font-family: NeulisAlt-Regular, sans-serif !important;

    display: flex;
    flex-wrap: wrap;
    list-style: none;
    border-radius: .25rem;
}

.b {
    font-weight: bold;
}

.w-h-100 {
    width: 100%;
    height: 100%;
}

.txt-jst {
    text-align: justify;
}

.link-menu {
    color: #606060 !important;
    text-decoration: none !important;
    
}
.link-menu:hover {
    color: var(--dark-primary) !important;
    font-weight: 600 !important;
}

.header__logo {
    max-width: 255px; 
    outline: none !important
}

.header-top {
    width: 100%;
    background-color: var(--dark-primary);
    padding: 10px 5px;
    position: relative;
    z-index: 5;
    max-height: 65px;
    
    .ic-container-fluid {
        width: 100%;
        max-width: 1504px;
        display: flex;
        -ms-flex-pack: justify;
        justify-content: space-between;
    }
}

@media (min-width: 992px) {
    .header-top {
        background-color: white;
        padding: 5px;

        .ic-container-fluid {
            width: 94%;
            height: 50px;
        }
    }
}
.loaded .header-top {
    max-height: 100%;
}

.header-mid {
    width: 100%;
    background-color: white;
    position: relative;
    z-index: 5;

    .ic-container-fluid {
        width: 100%;
    }
}

@media (min-width: 992px) {
    .header-mid {
        border-top: 1px solid var(--white-gray-color);
        z-index: 3;

        .ic-container-fluid {
            width: 94%;
            display: flex;
            -ms-flex-align: center;
            align-items: center;
            margin: 0 auto;
            max-width: 1504px;
            transition: all .3s ease-in-out;
            height: 60px;
        }
    }
}

.header-bottom {
    width: 100%;
    background: var(--dark-primary);
    padding: 16px 0;
    display: none;

    .ic-container-fluid {
        display: flex;
        -ms-flex-pack: justify;
        justify-content: space-between;
        max-width: 1504px;
    }
}
@media (min-width: 1200px) {
    .header-bottom {
        background: var(--dark-primary);
    }
}
@media (min-width: 992px) {
    .header-bottom {
        display: block;
        background: var(--dark-primary);
        transition: all .5s ease-in-out;
    }
}

.footer__title {
    color: white; 
    font-size: 14px; 
    margin-top: 10px;
}

.footer__line {
    border-right: 2px solid var(--separator-color);  
    margin-top: 3rem !important; 
    margin-bottom: 3rem !important;
}

a:link, a:visited {
    color: var(--dark-primary);
}

.cnt-btn {
    align-content: center;
}

.link {
    color: #606060 !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}

/*
.titulo-principal {
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 5px;
    margin: 15px 0 5px;

    h1 {
        flex: 1 1 auto;
        font-family: NeulisAlt-SemiBold, sans-serif;
        word-break: break-word;
        overflow: hidden;
        margin: 10px 0;
        padding-left: 20px;
        border-left: 15px solid var(--secondary-color);
        color: #343434 !important;
        font-size: 2em !important;
    }
}*/

.boletin-title {
    color: var(--dark-primary);
}
.boletin-file {
    color: red;
}

.backgroud-default {
    background-position: 50% 82px;
}

.buzon-title {
    color: var(--dark-primary); 
    font-weight: normal; 
    font-size: 40px;
    text-align: left!important;
}

.directorio-item-title {
    color: var(--separator-color);
}

.mision-container {
    background-color: #EADACF; 
    margin: auto !important; 
    padding: 20px; 
    opacity: 0.8;
}

.salud-link {
    padding: 10px 35px !important;
}

.index-section-title {
    font-size: 20px !important;
}

.index-section-title-alt {
    font-size: 22px !important; 
    color: var(--dark-primary) !important;
}

.index-section-mark {
    color: var(--dark-primary);
}
.index-section-link {
    padding-left: 15px !important;
    padding-right: 15px !important;
    text-align: center !important;
    background-color: var(--dark-primary) !important;
}

.norm-separator {
    margin-top:10px; 
    margin-bottom:10px;
}

.traimite-info {
    margin-bottom: 0; 
    font-weight: 600;
}

.index-section__banner {
    width: 80%; 
    justify-self: center; 
    margin-bottom: 25px;
}

@media (max-width: 992px) {
    .index-section__banner {
        width: 100%;
    }
}

/* 2. DIRECTORIO, FILTROS Y NOTICIA COMPLETA (Código Base)                   */

/*Seccion de directorio de noticias*/
.main-noticia {
    background: var(--white-gray-color);
    padding: 20px 0 20px 0;
    justify-items: center;
    display: grid;
}

.container-noticia {
    max-width: 1400px;
    /*margin-top: 120px;*/
    width: 100%;
}
.news-row {
    display: block;
}

/* Sidebar filtros */
.card {
    background: white;
    border: 1px solid var(--white-gray-color);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

input, select {
    width: 100%; 
    padding: 10px 12px; 
    border-radius: 8px;
    border: 1px solid var(--white-gray-color); 
    background: white; 
    color: var(--plain-text-color);
    outline: none;
    font-family: 'NeulisAlt-Regular', sans-serif !important;
}

input:focus, select:focus { 
    border-color: var(--dark-primary);
}

label {
    font-family: 'NeulisAlt-Medium', sans-serif !important;
}

.btn {
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    gap: 8px; 
    padding: 10px 14px; 
    border-radius: 15px;
    border: none; 
    cursor: pointer; 
    text-decoration: none;
    transition: background .15s ease, transform .05s ease;
    font-weight: 600;
    font-family: NeulisAlt-Regular, sans-serif !important;
}
.btn-primary-filters { 
    background: var(--primary-color); 
    color: white !important; 
    width: 100%;
    font-family: NeulisAlt-Regular, sans-serif !important;
}
.btn-primary-filters:hover {
    background: var(--highlight-color);
    color: white !important;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
.btn:active { 
    transform: translateY(3px);
}
.btn-link {
    background: var(--primary-color);
    color: white;
    justify-self: center;
    margin-top: 20px;
    font-family: NeulisAlt-Regular, sans-serif !important;
}
.btn-link:hover {
    color: white;
    background: var(--highlight-color);
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

/* Contenido principal */
/* Destacado */
.hero {
    display: grid; 
    grid-template-columns: 44% 56%; 
    gap: 0;
    border-radius: 12px; 
    overflow: hidden; 
    border: 1px solid var(--white-gray-color);
    background: white; 
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
.hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

.hero-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block; 
    min-height: 220px; 
    padding: 15px;
}
.hero-body { 
    padding: 20px; 
}
.chip { 
    display: inline-block; 
    background: var(--dark-primary); 
    color: white; 
    font-weight: 700;
    padding: 6px 10px; 
    border-radius: 8px 8px 0 0; 
    font-size: .8rem; 
    letter-spacing: .2px;
    font-family: 'NeulisAlt-Medium', sans-serif !important; 
}
.date { 
    display: inline-block; 
    background: var(--primary-color); 
    color: white; 
    padding: 8px 12px; 
    border-radius: 10px; 
    /*font-size: .74rem;*/
    font-family: 'NeulisAlt-Medium', sans-serif !important;
}
.hero-title { 
    margin: .4rem 0 1rem; 
    font-size: 1.8rem !important; 
    line-height: 1.25; 
    font-weight: bold !important;
    text-transform: uppercase;
    font-family: 'NeulisAlt-Medium', sans-serif !important;
}
.hero-meta { 
    color: var(--plain-text-color-gray); 
    font-size: 1.2rem; 
    margin-bottom: .35rem;
    text-transform: uppercase;
    text-align: justify;
    font-family: NeulisAlt-Regular, sans-serif !important;
}
.hero-desc { 
    color: var(--plain-text-color-gray);
    margin-bottom: .8rem;
    text-align: justify;
    font-family: 'NeulisAlt-Regular', sans-serif !important;
}

/* Grilla de tarjetas */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, calc(100%/3.2));
    gap: 16px;
}
.card-item {
    background: white; 
    border: 1px solid var(--white-gray-color); 
    border-radius: 12px;
    overflow: hidden; 
    transition: transform .15s ease, box-shadow .15s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    height: 100%;
}
.card-item:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 10px 24px rgba(0,0,0,.12); 
}
.thumb-wrap { 
    position: relative; 
}
.thumb { 
    width: 100%;
    object-fit: cover; 
    display: block;
    height: 250px;
}
.badge-localidad {
    position: absolute; 
    top: 0; 
    left: 0;
    background: var(--dark-primary); 
    color: white; 
    padding: 10px 15px;
    font-weight: 700; 
    font-size: 1.2rem;
    display: inline-flex;
    width: 100%;
    font-family: NeulisAlt-Medium, sans-serif !important;
}
.card-body { 
    padding: 12px; 
}

.card-title { 
    margin: 5px 0 5px; 
    font-size: 1.8rem; 
    font-weight: bold;
    color: var(--primary-color);
    font-family: NeulisAlt-Medium, sans-serif !important;
}
.muted { 
    color: var(--plain-text-color-gray); 
    font-size: 1.2rem;
    font-family: NeulisAlt-Regular, sans-serif !important; 
}
.card-summary {
    margin-top: 10px;
    font-size: small;
    height: 120px;
    font-family: NeulisAlt-Regular, sans-serif !important;
}
.mb-3 {
    margin: 8px;
}
.d-grid {
    margin-top: 20px;
}

/* Paginación */
.pagination {
    display: flex; 
    flex-flow: wrap;
    gap: 6px; 
    align-items: center;
    margin-top: 15px;
    margin-bottom: 15px;
}

.pagination-span {
    align-self: anchor-center; 
    padding-left: 20px;
    font-family: NeulisAlt-Regular, sans-serif !important;
}

.page {
    border: 1px solid var(--white-gray-color); 
    background: white; 
    color: var(--plain-text-color);
    padding: 6px 10px; 
    border-radius: 8px; 
    text-decoration: none; 
    font-weight: 600;
    font-family: NeulisAlt-Regular, sans-serif !important;
}
.page:hover { 
    background: white; 
}
.page[aria-current="active"] { 
    background: var(--dark-primary); 
    color: white; 
    border-color: var(--dark-primary); 
}
.page.disabled { 
    pointer-events: none; 
    opacity: .45; 
}

.js-ellipsis {
    border: 1px solid var(--white-gray-color);
    background: white;
    color: var(--plain-text-color);
    padding: 6px 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-family: NeulisAlt-Regular, sans-serif !important;
}
.jump-popover {
    position: sticky;
    z-index: 1000;
    background: white;
    border: 1px solid var(--white-gray-color);
    border-radius: .4rem;
    padding: .35rem;
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
    display: flex;
    gap: .35rem;
}
.jump-popover[hidden] { 
    display: none; 
}
.jump-popover .jump-input {
    width: 4.5rem;
    padding: .25rem .35rem;
    font-family: 'NeulisAlt-Medium', sans-serif !important;
}
.jump-popover .btn-go {
    padding: .25rem .6rem;
    border: 1px solid var(--separator-color);
    background: var(--separator-color);
    color: white;
    border-radius: .35rem;
    font-family: 'NeulisAlt-Medium', sans-serif !important;
}
.jump-popover .btn-go:hover { 
    filter: brightness(0.95); 
}

/*Noticia completa*/
.container-breadcrumb {
    padding-top: 220px;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    width: 80%;
}
@media (max-width: 992px) {
    .container-breadcrumb {
        padding-top: 10px;
    }
}

.news-hero {
    display: grid;
    gap: 12px;
    background: white;
    margin: 30px;
    max-width: 80%;
    justify-self: anchor-center;
    border-radius: 15px;
}

/* ===== Card ===== */
.full-new {
    color: var(--plain-text-color);
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
    padding: 0 0 20px 0;
}

/* Figure + imagen */
.full-new__figure {
    position: relative;
    margin: 0 40px 0 40px;;
    border-radius: 14px;
    overflow: hidden;
    background: var(--white-gray-color);
}

.full-new__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;     /* mantiene proporción elegante */
    object-fit: cover;
}

/* Overlay del titular (cinta/pill) */
.full-new__overlay {
    position: absolute;
    left: clamp(12px, 3vw, 28px);
    bottom: clamp(12px, 3vw, 28px);
    max-width: min(50%, 800px);
    background: var(--secondary-color);
    color: white;
    border-radius: 18px;
    padding: clamp(10px, 2.4vw, 18px) clamp(12px, 2.8vw, 22px);
    box-shadow: 0 10px 28px rgba(0,0,0,.14);
    align-content: center;
}

.full-new__title {
    margin: 0;
    font-weight: 400;
    letter-spacing: .2px;
    line-height: 1.15;
    font-size: 2vw !important;
    text-transform: uppercase;              
    color: white !important;
    font-family: 'NeulisAlt-Medium', sans-serif !important;
}
.full-new__title_mobile {
    margin: 10px 0 10px 0;
    font-weight: 400;
    letter-spacing: .2px;
    line-height: 1.15;
    font-size: 20px !important;
    text-transform: uppercase;
    color: white !important;
    place-self: center;
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 18px;
    padding: 15px;
    max-width: 85%;
    visibility: hidden;
    display: none;
    font-family: 'NeulisAlt-Medium', sans-serif !important;
}

/* Meta y acciones */
.full-new__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 40px 0 40px;
    color: var(--plain-text-color-gray);
    margin-top: 10px;
}

.full-new__meta-left,
.full-new__meta-right {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Chips */
.news-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    background: var(--white-gray-color);
    color: var(--plain-text-color-gray);
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--white-gray-color);
    font-family: NeulisAlt-Regular, sans-serif !important;
}

.category {
    background: var(--secondary-color);
    color: white;
}

.news-chip--location::before {
    content: "📍";
    font-size: 1rem;
    line-height: 1;
}

/* Icon buttons */
.icon-btn {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--white-gray-color);
    border-radius: 50%;
    background: white;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.icon-btn:hover {
    background: var(--white-gray-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.icon-btn:active {
    transform: translateY(0);
}

.icon {
    width: 18px;
    height: 18px;
    fill: var(--plain-text-color-gray);
}

/* ====== Share Modal ====== */
.share-modal[hidden] {
    display: none;
}
.share-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
}

.share-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.35);
    backdrop-filter: blur(2px);
}

.share-dialog {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: 8vh auto;
    background: white;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr auto;
    height: 300px;
}

.share-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem 1rem 1.25rem;
    border-bottom: 1px solid var(--white-gray-color);
}
.share-header h2 {
    font-size: 24px !important;
    font-weight: bold !important;
    margin: 0;
    color: var(--primary-color) !important;
    font-family: 'NeulisAlt-Medium', sans-serif !important;
}
.share-close {
    background: transparent;
    border: 0;
    cursor: pointer;
    color: gray;
    padding: .4rem;
    border-radius: 8px;
}
.share-close:hover {
    background: var(--white-gray-color);
    color: var(--plain-text-color);
}

.share-body {
    padding: 1rem 1.25rem 1.25rem;
}
.share-caption {
    margin: 0 0 .75rem;
    color: gray;
}

.share-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: .75rem;
}
.share-item {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    width: 100%;
    padding: .7rem .8rem;
    border-radius: 12px;
    border: 1px solid var(--white-gray-color);
    background: var(--white-gray-color);
    color: var(--plain-text-color) !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: background .15s ease, transform .05s ease, border-color .15s ease, box-shadow .15s ease;
    font-weight: 400 !important;
}
.share-item:hover {
    background: white;
    border-color: var(--white-gray-color);
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    color: var(--separator-color) !important;
}
.share-item:active {
    transform: scale(.99);
}
.share-item .share-icon {
    font-size: 1.8rem;
}
.svg-inline--fa {
    color: var(--plain-text-color) !important;
}

.share-item.copied {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--secondary-color) 20%, white);
}

.share-footer {
    padding: .9rem 1.25rem; border-top: 1px solid var(--white-gray-color);
    display: flex; justify-content: flex-end; gap: .5rem;
    background-color: transparent !important;
}
.btn-secondary {
    padding: .55rem .9rem;
    border-radius: 10px;
    border: 1px solid var(--white-gray-color);
    background: white;
    color: var(--plain-text-color);
    cursor: pointer;
}
.btn-secondary:hover {
    background: var(--white-gray-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

/* Accesibilidad visual */
.share-dialog:focus {
    outline: 3px solid color-mix(in srgb, var(--secondary-color) 70%, #6aa9ff);
    outline-offset: 2px;
}



/* Lead / avance - Limpieza de estilos  "Lineas Agregadas" Formato al texto de noticia completa */
.full-new__lead { 
    margin: clamp(15px, 5vw, 40px); 
}

/* Fuerza el justificado en ABSOLUTAMENTE TODO  */
.full-new__lead,
.full-new__lead * {
    text-align: justify !important;
    line-height: 1.8 !important; 
    background-color: transparent !important;
}

/* Formato para texto plano y párrafos estándar */
.full-new__lead p, 
.full-new__lead span, 
.full-new__lead div, 
.full-new__lead li,
.full-new__lead font {
    font-family: 'NeulisAlt-Regular', sans-serif !important; 
    font-size: 18px !important; 
    color: #3C3C3C !important;
}

/* Bloque modificado: mantiene su lugar y propiedades de bloque, pero con estilo visual de párrafo */
.full-new__lead h1, 
.full-new__lead h2, 
.full-new__lead h3,
.full-new__lead h4 {
    font-family: NeulisAlt-Regular, sans-serif !important; /* Normalizado */
    color: #3C3C3C !important;                         /* Normalizado */
    font-size: 18px !important;                        /* Normalizado */
    font-weight: normal !important;                    /* Normalizado */
    margin-top: 0px !important;                        /* Ajustado a 0px para no romper el flujo del párrafo */
    margin-bottom: 15px !important; 
    display: block !important;
    text-align: justify !important; 
}

.full-new__lead strong, .full-new__lead b { font-weight: 700 !important; color: #111111 !important; }
.full-new__lead a { color: var(--primary-color) !important; text-decoration: underline !important; }
.full-new__lead img { display: block !important; margin: 20px auto !important; max-width: 100% !important; height: auto !important; }

/* Carrusel de imágenes de noticia completa */
#carousel .carousel-item {
    height: clamp(240px, 50vw, 560px);
}
#carousel .carousel-item img {
    object-fit: cover;
    height: 100%;
}

/* Alto consistente para todas las slides */
#carousel .carousel-item {
    height: clamp(240px, 50vw, 560px);
    position: relative;
}

#carousel .carousel-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media(max-width: 440px){
    .jump-popover{
        position: inherit;
    }
}

@media (min-width: 768px) {
    #carousel .carousel-item { height: 600px; }
}
@media (min-width: 1200px) {
    #carousel .carousel-item { height: 800px; }
}

.carousel-control {
    align-content: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .01);
    border: 0 solid transparent;
    border-radius: 15px;
}
.svg-inline--fa {
    color: white;
}
.carousel-inner{
    border: 1px solid transparent;
    border-radius: 15px;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .full-new__overlay {
        visibility: hidden;
    }
    .full-new__title_mobile {
        visibility: visible;
        display: flex;
    }
}
@media (max-width: 768px) {
    .full-new__meta {
        flex-direction: column;
        align-items: stretch;
    }
    .full-new__meta-right {
        justify-content: flex-end;
    }
}

/*Esto es para que cuando se vean las noticias en móviles el apartado de filtros quede arriba del listado de noticias.*/
@media (max-width: 1200px) {
    #listado-container {
        order: 2 !important;
    }
    #filtros-listado {
        order: 1 !important;
    }
    #paginacion-listado {
        order: 3 !important;
    }
    #tarjetas-noticias{
        grid-template-columns: 80%;
        justify-content: center;
    }

    .news-row {
        display: grid;
    }

    .hero-body {
        padding: 10px;
    }
    
    .hero-img {
        padding: 0;
    }
    
    #primeraNoticia {
        margin: 15px;
    }
}

/*Loader*/
.loader-overlay {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white; /* White background, can be opaque */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    padding: 30px 0 30px 0;
}
.spinner {
    border: 16px solid #f3f3f3; /* Light grey "track" */
    border-top: 16px solid var(--primary-color); /* Blue "spinner" part */
    border-radius: 50%; /* Makes the element a perfect circle */
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite; /* Apply the spin animation */
}
@keyframes spin {
    0% { transform: rotate(0deg); } /* Start the rotation at 0 degrees */
    100% { transform: rotate(360deg); } /* End the rotation at 360 degrees */
}

a:hover {
    text-decoration: none !important;
}


#pageHeading h1 {
    font-family: 'NeulisAlt-Medium', sans-serif !important;
}
