a{
color:white;
}

.noticias-section {
    padding: clamp(60px, 40px + 4vw, 110px) 6%
        clamp(80px, 60px + 4vw, 120px);

    max-width: 1100px;

    margin: 0 auto;
}

.noticias-grid {
    display: grid;

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

    gap: 28px;
}

.noticia-card {
    display: flex;

    flex-direction: column;

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

    border: 1px solid rgba(255, 255, 255, 0.15);

    overflow: hidden;

    backdrop-filter: blur(2px);

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

.noticia-card:hover {
    transform: translateY(-6px);

    border-color: rgba(255, 255, 255, 0.4);

    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.4);
}

.noticia-imagen {
    width: 100%;

    height: 170px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.12),
            rgba(255, 255, 255, 0.02)
        );

    position: relative;
}


.noticia-imagen img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    filter:
        saturate(0.9)
        brightness(0.95);

    transition:
        filter 0.3s ease,
        transform 0.3s ease;
}


.noticia-card:hover .noticia-imagen img {
    filter:
        saturate(1)
        brightness(1.05);

    transform: scale(1.03);
}

.noticia-imagen-fallback {
    width: 100%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;
}

.noticia-imagen-fallback .material-icons {
    font-size: 40px;

    opacity: 0.35;
}

.noticia-body {
    padding: 22px 24px 26px;

    display: flex;

    flex-direction: column;

    flex: 1;
}

.noticia-fecha {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    align-self: flex-start;

    font-family:
        ui-monospace,
        "SFMono-Regular",
        Menlo,
        Consolas,
        monospace;

    font-size: 12px;

    letter-spacing: 0.5px;

    padding: 4px 12px;

    border-radius: 3px;

    background: #414141;

    border: 1px solid rgba(255, 255, 255, 0.5);

    margin-bottom: 12px;
}


.noticia-fecha .material-icons {
    font-size: 14px;
}

.noticia-categoria {
    display: block;

    font-size: 12px;

    opacity: 0.6;

    text-transform: uppercase;

    letter-spacing: 1px;

    margin-bottom: 6px;
}

.noticia-card h3 {
    font-size:
        clamp(18px, 0.5vw + 15px, 21px);

    line-height: 1.3;

    margin-bottom: 10px;

    text-shadow:
        0 0 6px rgba(255, 255, 255, 0.4);
}

.noticia-card p {
    font-size: 14.5px;

    line-height: 1.7;

    opacity: 0.85;

    margin-bottom: 18px;

    flex: 1;
}

.noticia-link {
    display: inline-flex;

    align-items: center;

    gap: 4px;

    font-size: 14px;

    font-weight: 600;

    align-self: flex-start;

    padding-bottom: 2px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.4);

    text-decoration: none;

    transition:
        border-color 0.25s ease,
        gap 0.25s ease,
        opacity 0.25s ease;
}


.noticia-link .material-icons {
    font-size: 16px;

    transition:
        transform 0.25s ease;
}


.noticia-link:hover {
    border-color: white;
}


.noticia-link:hover .material-icons {
    transform: translateX(3px);
}

.noticias-estado {
    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 10px;

    text-align: center;

    padding: 40px 20px;

    opacity: 0.75;
}


.noticias-estado .material-icons {
    font-size: 32px;
}

.noticias-vacio {
    grid-column: 1 / -1;

    text-align: center;

    opacity: 0.7;

    padding: 30px 0;
}

.skeleton {
    pointer-events: none;
}


.skeleton-line {
    height: 12px;

    margin-bottom: 12px;

    border-radius: 4px;

    background: rgba(255, 255, 255, 0.12);
}


.skeleton-small {
    width: 40%;
}


.skeleton-short {
    width: 65%;
}

.noticia-modal {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 30px;

    visibility: hidden;

    opacity: 0;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.noticia-modal-overlay {
    position: absolute;

    inset: 0;

    background: rgba(0, 0, 0, 0.65);

    backdrop-filter: blur(12px);

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

.noticia-modal-contenido {
    position: relative;

    z-index: 1;

    width: min(850px, 100%);

    max-height: 90vh;

    overflow: hidden;

    background: rgba(20, 20, 20, 0.96);

    border: 1px solid rgba(255, 255, 255, 0.18);

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(255, 255, 255, 0.05);

    transform:
        translateY(25px)
        scale(0.97);

    transition:
        transform 0.3s ease;
}

.noticia-modal.activo {
    visibility: visible;

    opacity: 1;
}


.noticia-modal.activo .noticia-modal-contenido {
    transform:
        translateY(0)
        scale(1);
}

.noticia-modal-imagen {
    width: 100%;

    height: 280px;

    overflow: hidden;

    background: #111;
}


.noticia-modal-imagen img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;
}

.noticia-modal-body {
    padding: 30px 35px 40px;

    max-height:
        calc(90vh - 280px);

    overflow-y: auto;
}

.noticia-modal-body h2 {
    font-size:
        clamp(26px, 3vw, 38px);

    line-height: 1.15;

    margin-bottom: 15px;

    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.25);
}

.noticia-modal-texto {
    margin-top: 25px;

    font-size: 16px;

    line-height: 1.85;

    color:
        rgba(255, 255, 255, 0.88);

    overflow-wrap: break-word;
}

.noticia-modal-cerrar {
    position: absolute;

    top: 15px;

    right: 15px;

    z-index: 10;

    width: 42px;

    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid rgba(255, 255, 255, 0.25);

    background:
        rgba(0, 0, 0, 0.55);

    color: white;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.noticia-modal-cerrar:hover {
    background:
        rgba(255, 255, 255, 0.15);

    transform:
        rotate(90deg);
}


.noticia-modal-cerrar .material-icons {
    font-size: 22px;
}

.noticia-modal-body::-webkit-scrollbar {
    width: 7px;
}


.noticia-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}


.noticia-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);

    border-radius: 10px;
}


.noticia-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

body.modal-abierto {
    overflow: hidden;
}

@media (min-width: 1025px) {

    .noticia-body {
        padding: 20px 20px 22px;
    }
}

@media (max-width: 1024px) {

    .noticias-section {
        padding:
            clamp(40px, 30px + 3vw, 60px)
            clamp(12px, 8.36px + 1.14vw, 20px)
            clamp(24px, 16.73px + 2.27vw, 40px);
    }


    .noticias-grid {
        grid-template-columns: 1fr;

        gap:
            clamp(
                16px,
                10px + 2vw,
                24px
            );
    }
}

@media (max-width: 600px) {

    .noticia-modal {
        padding: 12px;
    }


    .noticia-modal-contenido {
        width: 100%;

        max-height: 94vh;
    }


    .noticia-modal-imagen {
        height: 210px;
    }


    .noticia-modal-body {
        padding: 25px 22px 30px;

        max-height:
            calc(94vh - 210px);
    }


    .noticia-modal-body h2 {
        font-size: 26px;
    }


    .noticia-modal-texto {
        font-size: 15px;

        line-height: 1.75;
    }


    .noticia-modal-cerrar {
        width: 38px;

        height: 38px;

        top: 10px;

        right: 10px;
    }
}