/* Estilos generales */
body {
    overflow-x: hidden;
    box-sizing: border-box;
}	



.noticias-main {
    padding: 0 0;
    background-color: var(--greyWhite);
    position: relative;
    top: -94px;
}

/* Estilos de la sección de filtros */
.filtros-section {
    background-color: white;
    padding: 2rem;
    margin-bottom: 2rem;
}

.filtros-container {
    max-width: 1200px;
    margin: 0 auto;
}

.filtros-container h2 {
    color: var(--greyBlue);
    margin-bottom: 1.5rem;
}

.filtros-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filtro-grupo {
    flex: 1;
    min-width: 200px;
}

.filtro-grupo input,
.filtro-grupo select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--greyLight);
    border-radius: 4px;
    font-size: 1rem;
}

.btn-filtrar {
    background-color: var(--greyBlue);
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-filtrar:hover {
    background-color: var(--greyNight);
}

/* Estilos de la sección de noticias */
.noticias-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.noticias-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
}

.noticia-card {
    flex: 0 1 calc(33.333% - 2rem);
    min-width: 300px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.noticia-imagen {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.noticia-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.noticia-contenido {
    padding: 1.5rem;
}

.noticia-contenido h3 {
    margin: 0 0 1rem 0;
    color: var(--greyBlue);
    font-size: 1.2rem;
}

.noticia-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--greyLight);
}

.fecha {
    color: var(--grey);
    font-size: 0.85rem;
}

.leer-mas {
    color: var(--greyBlue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.leer-mas:hover {
    color: var(--greyNight);
}

/* Loader */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.loader {
    border: 4px solid var(--greyLight);
    border-top: 4px solid var(--greyBlue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mensajes de estado */
.no-resultados,
.error {
    text-align: center;
    padding: 2rem;
    color: var(--grey);
    font-size: 1.1rem;
}

/* Hero Section */
.hero-section {
    width: 100%;
    position: relative;
}

.hero-container {
    max-width: 100%;
    margin: 0 auto;
}

.hero-image {
    width: 100%;
    height: 80vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-content h1 {
    color: white;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-content p {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-image {
        height: 50vh;
        min-height: 300px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .filtros-form {
        flex-direction: column;
    }

    .filtro-grupo {
        width: 100%;
    }

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

/* Estilos del Footer */
.noticias-footer {
    background: #22205F;
    width: 100%;
    bottom: 0;
    left: 0;
}

.noticias-footer .content {
    max-width: 1250px;
    margin: auto;
    padding: 30px 40px 40px 40px;
}

.noticias-footer .content .top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 50px;
}

.noticias-footer .content .top .logo-details {
    color: #fff;
    font-size: 30px;
}

.noticias-footer .logo-details {
    display: flex;
    align-items: center; 
    gap: 10px; 
}

.noticias-footer .footer-logo {
    width: 150px; 
    height: auto;
    filter: brightness(0) invert(1);
}

.noticias-footer .content .top .media-icons {
    display: flex;
}

.noticias-footer .content .top .media-icons a {
    height: 40px;
    width: 40px;
    margin: 0 8px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: #fff;
    font-size: 17px;
    text-decoration: none;
    transition: all 0.4s ease;
}

/* Redes sociales - Estilos */
.noticias-footer .top .media-icons a.fb {background: #312e8d;}
.noticias-footer .top .media-icons a.fb:hover {color: #4267B2; background: #fff;}

.noticias-footer .top .media-icons a.ig {background: #312e8d;}
.noticias-footer .top .media-icons a.ig:hover {color: #E1306C; background: #fff;}

.noticias-footer .top .media-icons a.tw {background: #312e8d;}
.noticias-footer .top .media-icons a.tw:hover {color: #1DA1F2; background: #fff;}

.noticias-footer .top .media-icons a.yt {background: #312e8d;}
.noticias-footer .top .media-icons a.yt:hover {color: #FF0000; background: #fff;}

.noticias-footer .top .media-icons a.sp {background: #312e8d;}
.noticias-footer .top .media-icons a.sp:hover {color: #1DB954; background: #fff;}

.noticias-footer .top .media-icons a.fl {background: #312e8d;}
.noticias-footer .top .media-icons a.fl:hover {color: #FF0084; background: #fff;}

footer .content .link-boxes {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

footer .content .link-boxes .box {
    width: calc(100% / 5 - 10px);
    text-align: start;
}

.link-boxes .app-box {
    margin-right: 30px;
    margin-left: 18px;
}

.content .link-boxes .box .link_name {
    color: #fff;
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 10px;
    position: relative;
}

.link-boxes .box .link_name::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 2px;
    width: 35px;
    background: #fff;
}

.content .link-boxes .box li {
    margin: 6px 0;
    list-style: none;
}

.content .link-boxes .box li a {
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.4s ease
}

.content .link-boxes .box li a:hover {
    opacity: 1;
    text-decoration: underline;
}

.content .link-boxes .input-box {
    margin-right: 55px;
}

.footer-app-links {
    display: flex;
    flex-direction: column; 
    gap: 10px; 
}

.footer-app-links img {
    width: 130px;
    transition: transform 0.3s ease;
}

.footer-app-links img:hover {
    transform: scale(1.05);
}

.link-boxes .input-box input {
    height: 40px;
    width: calc(100% + 55px);
    outline: none;
    border: 2px solid #AFAFB6;
    background: #22205F;
    border-radius: 4px;
    padding: 0 15px;
    font-size: 15px;
    color: #fff;
    margin-top: 5px;
}

.input-box span {
    color: #fff;
}

.link-boxes .input-box input[type="button"] {
    background: #fff;
    color: #22205F;
    border: none;
    font-size: 18px;
    font-weight: 500;
    margin: 4px 0;
    opacity: 0.8;
    cursor: pointer;
    transition: all 0.4s ease;
}

.input-box input[type="button"]:hover {
    opacity: 1;
}

.noticias-footer .bottom-details {
    width: 100%;
    background: #312e88;
}

.noticias-footer .bottom-details .bottom_text {
    max-width: 1250px;
    margin: auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
}

.noticias-footer .bottom-details .bottom_text span,
.noticias-footer .bottom-details .bottom_text a {
    font-size: 14px;
    font-weight: 300;
    color: #fff;
    opacity: 0.8;
    text-decoration: none;
}

.noticias-footer .bottom-details .bottom_text a:hover {
    opacity: 1;
    text-decoration: underline;
}

.noticias-footer .bottom-details .bottom_text a {
    margin-right: 10px;
}

/* Estilos para el skeleton loader */
.skeleton-loader {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
}

.skeleton-card {
    flex: 0 1 calc(33.333% - 2rem);
    min-width: 300px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.skeleton-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-content {
    padding: 1.5rem;
}

.skeleton-title {
    height: 24px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    margin-bottom: 1rem;
}

.skeleton-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 15px;
    border-top: 1px solid var(--greyLight);
}

.skeleton-date {
    width: 100px;
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-button {
    width: 80px;
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Media queries para responsividad */
@media (max-width: 1024px) {
    .noticia-card {
        flex: 0 1 calc(50% - 2rem);
    }
}

@media (max-width: 768px) {
    .noticia-card {
        flex: 0 1 100%;
    }
    
    .noticias-grid {
        padding: 1rem;
    }
}

/* Estilos para la página de detalle de noticia */
.noticia-detalle-main {
    background-color: var(--greyWhite);

}

.hero_bg1 {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 0;
    color: white;
    overflow-x: hidden;
}

.hero_bg1::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
    z-index: 1;
}

.hero_bg1 img {
    width: 105%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    object-position: top;
    top: 0;
    left: 0;
    z-index: -1;
    filter: brightness(0.9);
    transform: translateX(-3.7%);
}

.hero-content h1 {
    font-weight: bold;
    margin-bottom: 140px;
    z-index: 1;
    font-size: 6rem;
    font-weight: 600;
    font-family: 'TGSPerfectCondensed';
    text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 4px;
}

.hero-content h1 {
    font-weight: bold;
    margin-bottom: 10px;
}


.hero_texto1 {
    padding: 60px 10%;
    color: var(--greyNight);
    text-align: justify;
    margin-top: -94px;
}

.hero_texto1::before {
    content: "";
    display: block;
    width: 100%;
    height: 0px;
    margin-bottom: 0px;
}

.hero_texto1 h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--greyBlue);
    margin-bottom: 1.5rem;
}

.noticia-metadata {
    color: var(--grey);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--greyLight);
}

.noticia-cuerpo {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--greyNight);
}

.noticia-cuerpo p {
    margin-bottom: 1.5rem;
}

/* Estilos adicionales para el contenido rico del cuerpo */
.noticia-cuerpo h2 {
    font-size: 1.8rem;
    color: var(--greyBlue);
    margin: 2rem 0 1rem;
}

.noticia-cuerpo h3 {
    font-size: 1.5rem;
    color: var(--greyBlue);
    margin: 1.5rem 0 1rem;
}

.noticia-cuerpo ul, 
.noticia-cuerpo ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.noticia-cuerpo li {
    margin-bottom: 0.5rem;
}

.noticia-cuerpo a {
    color: var(--greyBlue);
    text-decoration: none;
}

.noticia-cuerpo a:hover {
    text-decoration: underline;
}

/* Ajustes del skeleton loader */
.skeleton-loader-detalle .hero_bg1 {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ... resto de los estilos del skeleton ... */

/* Botón para ver imagen completa */
.ver-imagen-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: var(--greyBlue);
    transition: all 0.3s ease;
    z-index: 2;
}

.ver-imagen-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.ver-imagen-btn i {
    font-size: 1.1rem;
}

/* Estilos del modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    margin: auto;
}

.cerrar-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.cerrar-modal:hover {
    color: #bbb;
}

/* Animación para el modal */
@keyframes zoomIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content {
    animation: zoomIn 0.3s ease-out;
}