/* Paleta de colores */
:root {
    --white: #ffffff;
    --black: #000000;
    --grey: #757575;
    --greyLight: #dfe4ea;
    --greyBlue: #22205F;
    --greyNight: #0B141F;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    max-width: 2000px!important;
    margin: 0 auto;
    background-color: #22205F;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    letter-spacing: 1px;
    margin: 0;
    padding: 0;
    background-color: white;
}

html {
    scroll-behavior: smooth;
}
.nav_first {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 30px;
    position: relative;
}


.nav_pri_first {
    display: flex;
    align-items: flex-start; 
    width: 100%;
    position: relative;
    z-index: 2;
}

.nav_pri_first a {
    color: var(--white);
    text-decoration: none;
    margin: 0 15px;
    font-size: 16px;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

.nav_pri_first a:hover {
    color: #22205F;
}

/* Parte izquierda con logo */
.nav_left_first {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Centro con columnas */
.nav_center_first {
    display: flex;
    flex-direction: row;
    gap: 80px;
    margin-left: 50px;
}

.nav_column_first {
    display: flex;
    list-style: none;
    padding: 0;
    text-align: left;
    gap : 80px;
}

/* Parte derecha con enlaces */
.nav_right_first {
    margin-left: auto;
    position: relative;
    display: flex; 
    list-style: none;
    gap: 94px;
    padding: 0;
}

/* Icono en el centro */
.nav_icon_first { 
    position: fixed;
    top: -10px;
    left: 50.5%;
    transform: translateX(-50%);
    background: var(--white);
    padding: 21px 14px 2px;
    border-radius: 0 0 18px 18px;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    z-index: 10;
    box-sizing: border-box;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.6);

}

.nav_icon_first .img_icon1 {
    height: 100px;
    transition: filter 0.3s ease-in-out;
}

.nav_icon_first .img_icon2 {
    height: 100px;
    transition: filter 0.3s ease-in-out;
}

.nav_icon_first:hover {
    background: var(--greyBlue);
}

.nav_icon_first:hover .img_icon1 {
    display: none;
}

.nav_icon_first .img_icon2 {
    
    display: none;
}

.nav_icon_first:hover .img_icon2 {
   opacity: 1;
   display: inline;
   filter: brightness(0) invert(1);
}




/* ==========================
        SUBMENUS
============================= */
/* Ocultar submenús por defecto */
.dropdown_first {
    display: none;
    position: absolute;
    list-style: none;
    padding: 10px 0;
    min-width: 200px;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    top: 35px;
}

.submenu_dropdown_first {
    position: absolute;
    top: 0;
    right: -89%;
    list-style: none;
    display: none;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 0;
    min-width: 200px;
}
.submenu_dropdown_first {
    position: absolute;
    top: 0;
    right: -89%;
    list-style: none;
    display: none;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 0;
    min-width: 200px;
}
/* Mostrar submenús cuando el usuario pase el mouse sobre el menú padre */
.menu_item_first:hover > .dropdown_first,
.submenu_item_first:hover > .submenu_dropdown_first {
    display: block;
}

.menu_item_first {
    position: relative;
    z-index: 5;
    padding-bottom: 29px;
}
.submenu_item_first {
    position: relative;
    z-index: 5;
}
/* Ajustar los enlaces del submenú */
.dropdown_first li {
    padding: 8px 15px;
    white-space: nowrap;
}

.dropdown_first li a {
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    color: #22205F;
}

.dropdown_first li a:hover {
    border-radius: 5px;
}





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

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

/* Agregar estos estilos para el skeleton loader */
.skeleton-loader {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
    width: 100%;
}

.skeleton-card {
    flex: 0 1 calc(33.333% - 2rem); /* Para 3 cards por fila */
    min-width: 300px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 400px;
    display: flex;
    flex-direction: column;
}

.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;
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.skeleton-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

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

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

.hero_bg1 {
    position: relative;
    top: -94px;
    width: 100%;
    height: 101vh;
    display: flex;
    align-items: end;
    justify-content: flex-start;
    padding-left: 0;
    color: white;
    overflow-x: hidden;
    z-index: 0;
}

.hero_bg1::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 34%,rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0) 100%);
    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_bg1 h1 {
    font-weight: bold;
    margin-bottom: 140px;
    z-index: 1;
    margin-left: 200px;
    font-size: 6rem;
    font-weight: 600;
    font-family: 'TGSPerfectCondensed';
    text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 4px;
}


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

.img-planos{
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
}
.text-center {
    text-align: center !important;
}

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

.menu-mobile-container {
    display: none;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    width: 40px;
    height: 40px;
    background-color: rgba(49, 46, 141, 0.8);
    border-radius: 4px;
    justify-content: center;
    align-items: center;
    padding: 8px;
}

.hamburger-icon {
    position: relative;
    width: 24px;
    height: 20px;
}

.hamburger-icon span {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
    left: 0;
}

.hamburger-icon span:nth-child(1) {
    top: 0;
}

.hamburger-icon span:nth-child(2) {
    top: 9px;
}

.hamburger-icon span:nth-child(3) {
    top: 18px;
}

.hamburger-menu.active .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

.hamburger-menu.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
}

.menu-mobile {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background-color: #fff;
    z-index: 999;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.menu-mobile.active {
    left: 0;
}

.menu-mobile-list {
    padding: 60px 0 20px;
    margin: 0;
    list-style: none;
}

.menu-mobile-list li {
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.menu-mobile-list > li > a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

.menu-item-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.menu-item-wrapper:hover {
    background-color: #f0f0f0;
}

.menu-item-wrapper > a {
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    flex: 1;
    z-index: 2; /* Para asegurar que el enlace esté por encima */
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 48px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.dropdown-toggle i {
    font-size: 14px;
    color: #333;
    transition: transform 0.3s ease;
}

.dropdown-toggle.active i {
    transform: rotate(180deg);
}

.submenu-mobile, 
.submenu-mobile-nested {
    display: none;
    list-style: none;
    background-color: #f5f5f5;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.submenu-mobile.active, 
.submenu-mobile-nested.active {
    display: block;
    max-height: 1000px; /* Valor suficientemente grande para contener todos los elementos */
}

/* Estilos específicos para submenús anidados */
.submenu-mobile-nested {
    background-color: #e9e9e9; /* Un tono más oscuro para distinguir */
}

/* Mejorar estilos para el menú anidado de Pastoral del Santuario */
.submenu-mobile .submenu-mobile-dropdown {
    background-color: #f0f0f0;
    position: relative;
    cursor: pointer;
}

.submenu-mobile .menu-item-wrapper:hover {
    background-color: #e5e5e5;
}

.submenu-mobile li a, 
.submenu-mobile-nested li a {
    display: block;
    padding: 12px 20px 12px 40px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.submenu-mobile li a:hover,
.submenu-mobile-nested li a:hover {
    background-color: #e0e0e0;
}

.submenu-mobile-nested li a {
    padding-left: 60px;
    background-color: #e9e9e9;
}

/* Overlay cuando el menú está abierto */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
}

.menu-overlay.active {
    display: block;
}

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

.noticia-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.noticia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

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

.noticia-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.noticia-card:hover .noticia-imagen img {
    transform: scale(1.05);
}

.noticia-contenido {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.noticia-contenido h3 {
    text-align: center;
    color: var(--greyNight);
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.noticia-contenido p {
    color: var(--grey);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

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


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




/* Responsive */
@media (max-width: 1024px) {
    .noticia-card,
    .skeleton-card {
        flex: 0 1 calc(50% - 2rem); /* 2 cards por fila */
    }
}

@media (max-width: 768px) {
    .noticia-card,
    .skeleton-card {
        flex: 0 1 100%; /* 1 card por fila */
    }
}



@media (max-width: 1830px) {

    .nav_icon_first {
        left: 52%;
    }
    .nav_column_first {
        gap: 60px;
    }
    .nav_column_first li a {
        font-size:14px;
        margin: 0;
    }
    .nav_right_first {
        gap: 60px;
    }
    .nav_right_first li a {
        font-size:14px;
        margin: 0;
    }

    .container_first {
        top: 112px;

    }

 


}






@media (max-width: 1300px) {

      .nav_content_five {
        grid-template-columns: repeat(2, 1fr);
    }
    .noticias-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Ocultar menú de escritorio */
    .nav_pri_first {
        display: none;
    }
    
    /* Mostrar menú hamburguesa */
    .menu-mobile-container,
    .hamburger-menu {
        display: flex;
    }
    
    /* Ajustes adicionales para resolución móvil */
    .container_first {
        top: 80px;
    }
    
    .nav_icon_first {
    background: transparent;
    box-shadow: none;
    left: 10%;
    }

    .nav_icon_first:hover {
        background: transparent;
        box-shadow: none;
    }

.nav_icon_first:hover .img_icon1 {
    display: block;
        display: block;
      
    }
    
.nav_icon_first:hover .img_icon2 {
    display: none;
      
    }
    
    header::before {
        background-attachment: scroll;
    }

    .container_first {
                left: 50%;
        transform: translate(-50%);
    }

  .sq_square {
    width: 79vw;
  }

    
}








@media (max-width: 768px) {
    .nav_content_five {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    /* Ajustes adicionales para pantallas más pequeñas */
    .hero_bg1 h1,
    .hero_bg2_second h1,
    .hero_bg3_third h1 {
        font-size: 24px;
    }




    .description_first p,
    .description_second p,
    .description_third p {
        font-size: 14px;
    }

    /* Mejoras para los iconos de redes sociales */
    .content .top .media-icons {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .content .top .media-icons a {
        margin: 0 5px;
    }

    .hero_bg3_third{
    
    height: 245vh;

}

    /* Ajustes para la animación de texto en dispositivos móviles */
    .section_p_four {
        transition: opacity 0.8s ease;
    }
    
    /* Mejorar el contraste del texto */
    .section_title_four {
        text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    }
    

}






/* Footer Responsive */
@media (max-width: 1200px) {
    footer .content {
        max-width: 95%;
        padding: 30px 20px;
    }
    
    .footer-logo {
        width: 70px;
    }
    
    .content .top .media-icons a {
        height: 40px;
        width: 40px;
        line-height: 40px;
    }
}

@media (max-width: 992px) {
    footer .content .link-boxes {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    footer .content .link-boxes .box {
        width: 45%;
        margin-bottom: 25px;
    }
    
    .link-boxes .app-box {
        width: 100% !important;
    }
    
    .footer-app-links {
        display: flex;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    footer .content .top {
        flex-direction: column;
        margin-bottom: 30px;
    }
    
    
    .content .top .logo-details {
        margin-bottom: 15px;
    }
    
    .content .top .media-icons {
        margin-top: 15px;
    }
    
    footer .content .link-boxes .box {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .link-boxes .input-box {
        width: 100%;
    }
    
    .bottom-details .bottom_text {
        flex-direction: column;
        text-align: center;
    }
    
    .bottom-details .bottom_text span {
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    footer .content {
        padding: 25px 15px;
    }
    
    .footer-logo {
        width: 60px;
    }
    
    .content .top .media-icons a {
        height: 35px;
        width: 35px;
        line-height: 35px;
        font-size: 14px;
        margin: 0 4px;
    }
    
    .content .link-boxes .box .link_name {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .content .link-boxes .box li a {
        font-size: 14px;
    }
    
    .link-boxes .input-box input[type="button"] {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .footer-app-links {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-app-links img {
        max-width: 140px;
        margin-bottom: 10px;
    }
}

/* Mejoras para los botones de las aplicaciones */
@media (min-width: 769px) and (max-width: 992px) {
    .footer-app-links {
        display: flex;
        justify-content: flex-start;
        gap: 15px;
    }
    
    .footer-app-links img {
        max-width: 150px;
    }
}

/* Ajustes para la sección four */
@media (max-width: 992px) and (hover: none) {
    .section_four {
        padding-top: 50px;
        padding-bottom: 50px;
    }
    
    .section_title_four {
        padding: 0 10px;
    }
    
    .section_p_four {
        padding: 0 5px;
    }
}

@media (max-width: 480px) {
    .section_p_four {
        max-width: 100%;
        letter-spacing: 0.5px;
    }
}

/* Optimización para pantallas de alta resolución */
@media (min-width: 1400px) {
    .section_four {
        padding: 100px 60px;
    }
    
    .section_title_four {
        font-size: 2.8rem;
        margin-bottom: 30px;
    }
    
    .section_p_four {
        font-size: 1.1rem;
        max-width: 1000px;
        margin: 0 auto;
        line-height: 1.8;
    }
}

/* Ajustes para la sección de contacto */
@media (max-width: 768px) {
    .link-boxes .input-box input[type="button"] {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
    
    .contact-info {
        font-size: 14px;
    }
}

/* Alineación de los textos en las cajas de enlaces */
@media (max-width: 480px) {
    footer .content .link-boxes .box {
        text-align: center;
    }
    
    .link-boxes .box .link_name::before {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-app-links {
        justify-content: center;
        align-items: center;
    }
}

/* Ajustes finales para el footer */

/* Corregir espaciado en versión móvil */
@media (max-width: 768px) {
    footer .bottom-details {
        padding: 15px 0;
    }
    
    footer .bottom-details .bottom_text {
        padding: 15px;
    }
    
    /* Mejorar espaciado entre cajas */
    footer .content .link-boxes {
        gap: 10px;
    }
}

/* Ajustes específicos para versión extremadamente pequeña */
@media (max-width: 360px) {
    footer .content {
        padding: 20px 10px;
    }
    
    .content .top .media-icons a {
        height: 32px;
        width: 32px;
        line-height: 32px;
        font-size: 12px;
        margin: 0 3px;
    }
    
    .footer-logo {
        width: 50px;
    }
    
    .content .link-boxes .box .link_name {
        font-size: 15px;
    }
    
    .content .link-boxes .box li a {
        font-size: 13px;
    }
    
    .bottom-details .bottom_text span {
        font-size: 12px;
    }
    
    .footer-app-links img {
        max-width: 130px;
    }
}

/* Estilos responsivos para section_four */
@media (max-width: 1200px) {
    .section_four {
        padding: 70px 40px;
    }
    
    .section_title_four {
        font-size: 2.2rem;
        margin-bottom: 25px;
    }
    
    .section_p_four {
        font-size: 1rem;
        max-width: 900px;
        margin: 0 auto;
    }
}

@media (max-width: 992px) {
    .section_four {
        padding: 60px 30px;
    }
    
    .section_title_four {
        font-size: 2rem;
        margin-bottom: 20px;
        line-height: 1.3;
    }
    
    .section_p_four {
        font-size: 0.95rem;
        line-height: 1.6;
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .section_four {
        padding: 50px 25px;
    }
    
    .section_title_four {
        font-size: 1.8rem;
        text-align: center;
        margin-bottom: 20px;
        line-height: 1.4;
    }
    
    .section_p_four {
        font-size: 0.9rem;
        line-height: 1.6;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .section_four {
        padding: 40px 20px;
    }
    
    .section_title_four {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .section_p_four {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

@media (max-width: 360px) {
    .section_four {
        padding: 30px 15px;
    }
    
    .section_title_four {
        font-size: 1.3rem;
    }
    
    .section_p_four {
        font-size: 0.8rem;
    }
}

/* Estilos responsivos para nav_five - Sección de noticias */
@media (max-width: 1200px) {
    .nav_five {
        padding: 15px 25px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav_link_five {
        padding: 8px 15px;
        font-size: 15px;
        margin: 5px;
    }
    
    .nav_separator_five {
        margin: 0 5px;
    }
    
    .nav_bg_five {
        padding: 30px;
    }
    
    .nav_title_five {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    .nav_five {
        padding: 10px 20px;
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .nav_link_five {
        padding: 6px 12px;
        font-size: 14px;
        margin: 3px;
    }
    
    /* Ocultar separadores en versión tablet para ahorrar espacio */
    .nav_separator_five {
        display: none;
    }
    
    .nav_title_five {
        font-size: 2rem;
    }
    
    .nav_content_five {
        padding: 25px 15px;
    }
}

@media (max-width: 768px) {
    .nav_five {
        padding: 10px 15px;
        overflow-x: auto;
        justify-content: flex-start;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch; /* Para mejor desplazamiento en iOS */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
    
    /* Ocultar la barra de desplazamiento pero mantener la funcionalidad */
    .nav_five::-webkit-scrollbar {
        display: none;
    }
    
    .nav_link_five {
        white-space: nowrap;
        padding: 6px 10px;
        font-size: 13px;
        flex-shrink: 0;
    }
    
    .nav_title_five {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .nav_bg_five {
        padding: 25px 15px;
    }
    
    .nav_title_container_five {
        justify-content: center;
    }
}



@media (max-width: 500px) {
    .hero_bg1 h1, .hero_bg2_second h1, .hero_bg3_third h1 {
        font-size: 3em;
    }

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

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

    .menu-mobile {
        width: 90%;
    }

    .container_first {
        width: 90%;
    }

    .sq_img_container {
        height: auto;    }
    .sq_square {
        width: 100%;
        z-index: 99;
        display: none;
    }

    .nav_icon_first{
        left: 20%;
    }

}


@media (max-width: 576px) {
    .nav_title_five {
        font-size: 1.5rem;
    }
    
    .nav_bg_five {
        padding: 20px 10px;
    }
    
    .nav_five {
        padding: 8px 5px;
    }
    
    .nav_link_five {
        padding: 5px 8px;
        font-size: 12px;
        margin: 2px;
    }
}

/* Estilos específicos para dispositivos muy pequeños */
@media (max-width: 360px) {
    .nav_title_five {
        font-size: 1.3rem;
    }
    
    .nav_link_five {
        padding: 4px 6px;
        font-size: 11px;
    }
}

/* Estilos responsivos para tarjetas de noticias */
@media (max-width: 1200px) {
    .nav_content_five {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 30px;
    }
    
    .nav_card_five {
        border-radius: 8px;
    }
    
    .nav_card_text_five h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 992px) {
    .nav_content_five {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 25px 20px;
    }
    
    .nav_card_img_five {
        height: 180px;
    }
    
    .nav_card_text_five {
        padding: 15px;
    }
    
    .nav_card_text_five h3 {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .nav_card_footer_five {
        padding-top: 10px;
    }
}

@media (max-width: 768px) {
    .nav_content_five {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px 15px;
    }
    
    .nav_card_five {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .nav_card_img_five {
        height: 200px;
    }
    
    .nav_card_text_five h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .nav_card_img_five {
        height: 180px;
    }
    
    .nav_card_text_five {
        padding: 12px;
    }
    
    .nav_card_text_five h3 {
        font-size: 1rem;
    }
    
    .nav_card_date_five {
        font-size: 0.8rem;
    }
    
    .nav_card_more_five {
        font-size: 0.8rem;
    }
    
    .ver-mas-container {
        margin-top: 20px;
    }
    
    .ver-mas-btn {
        padding: 8px 20px;
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .nav_card_img_five {
        height: 160px;
    }
    
    .nav_card_text_five h3 {
        font-size: 0.95rem;
    }
    
    .nav_card_footer_five {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .nav_card_date_five {
        margin-bottom: 5px;
    }
}

/* Mejoras de interacción para nav_five */

/* Mejorar la interacción en dispositivos táctiles */
@media (max-width: 768px) {
    /* Indicador visual de scroll horizontal */
    .nav_five::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
        width: 30px;
        background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.2));
        pointer-events: none;
    }
    
    /* Añadir una transición suave al cambiar entre pestañas */
    .nav_link_five {
        transition: all 0.3s ease;
    }
    
    .nav_link_five.active {
        transform: scale(1.05);
    }
    
    /* Mejorar la animación al pasar el cursor */
    .nav_card_five {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .nav_card_five:hover {
        transform: translateY(-5px);
    }
}

/* Optimizar el rendimiento de las transiciones */
@media (max-width: 576px) {
    .nav_link_five,
    .nav_card_five,
    .nav_card_img_five img {
        will-change: transform;
    }
    
    .nav_card_five:hover {
        transform: translateY(-3px);
    }
}

/* Añadir indicación visual para mejorar la accesibilidad */
.nav_five {
    position: relative;
}

@media (hover: hover) {
    .nav_link_five:hover:not(.active) {
        background-color: rgba(255, 255, 255, 0.1);
    }
}

.ver-mas-container {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
    padding: 20px;
}

.ver-mas-btn {
    display: inline-block;
    background-color: #FFCC05;
    color: var(--greyBlue);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}