@import url('https://fonts.googleapis.com/css2?family=Epilogue:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Sora:wght@100..800&display=swap');
@font-face {
    font-family: 'Nohemi';
    src:     url('fonts/Nohemi-Bold-BF6438cc577b524.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
/* Variables de color */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
*{
    margin: 0;
    padding: 0;
    font-family: "sora", sans-serif;
}


.header__nav {
    gap: 100px;
    height: 100px;
    display: flex;
    justify-content: space-between;
    padding: 0px 15%;
    align-items: center;
}

.header__nav-img {
    width: 100px;
}

.header__nav-list {
    list-style: none;
    gap: 20px;
    display: flex;
    align-items: center;
}

.header__nav-list__item {
    position: relative; /* Necesario para posicionar el submenú */
    padding-bottom: 5px; /* Añade espacio entre el título y el submenú */
}

/* Amplía la altura del elemento que activa el submenú */
.header__nav-list__item:hover > a {
    padding-bottom: 10px; /* Aumenta el área del enlace al pasar el cursor */
}

.header__nav-list__item a {
    color: #0E2A46;
    text-decoration: none;
    font-size: 14px;
 
    position: relative;
}
.header__nav-list__item-title-content{
    display: flex;
    align-items: center;
    gap: 3px;
}

.dropdown-menu {
    display: none; /* Oculto por defecto */
    position: absolute;
    top: 100%; /* Justo debajo del elemento padre */
    left: 0;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 10px 0;
    z-index: 1000;
}
.dropdown:hover i{
    transform: rotate(180deg);
    transition: 0.3s;
}

.dropdown-menu__item {
    list-style: none;
    padding: 5px 20px;
}

.dropdown-menu__item a {
    color: #0E2A46;
    text-decoration: none;
    font-size: 14px;
}

.dropdown-menu__item a:hover {
    color: #0066cc; /* Color al pasar el cursor */
}

/* Mostrar el submenú al pasar el cursor */
.dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

/* Animación de la flecha */
.arrow {
    font-size: 12px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown:hover .arrow {
    transform: rotate(180deg); /* Girar la flecha hacia arriba */
}

/* Animación de entrada */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.header__title{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
    background-image: url(resources/Background-waves.jpg);
    z-index: 0; /* Asegura que esté debajo del submenú */
}
.header__title::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.164);
}


.header__title-h1{
    z-index: 1000;
    font-size: 3rem;
    color: #fff;
    font-family: 'Epilogue', sans-serif;
}
@media screen and (max-width: 600px) {
    .menu-toggle {
        display: none;
    }
    
    /* Fondo oscuro para la superposición */
    .menu-overlay {
        display: none; /* Oculto por defecto */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5); /* Semitransparente */
        z-index: 999; /* Más alto que otros elementos */
        transition: opacity 0.3s ease;
    }

    /* Mostrar fondo cuando se abre el menú */
    .menu-toggle:checked ~ .menu-overlay {
        display: block;
        opacity: 1;
    }
    
    .menu-toggle-label {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
        color: #0E2A46;
    }

    .header__nav-list {
        position: fixed;
        top: 0;
        left: -100%;
        width: 70%;
        height: 100%;
        background-color: #fff;
        flex-direction: column;
        padding: 20px;
        transition: left 0.5s ease;
        z-index: 1000; /* Encima del overlay pero debajo de la barra de menú */
        box-shadow: rgb(38, 57, 77) 0px 20px 30px -10px;
    }

    .menu-toggle:checked ~ .header__nav-list {
        left: 0;
    }
    
        /* Evitar superposición del título */
    .header__title {
        z-index: 1; /* Asegura que esté debajo del overlay */
    }

    .header__nav-list__item {
        margin: 20px 0;
    }

    .dropdown-menu {
        display: none;
        padding-left: 20px;
    }

    .dropdown.open .dropdown-menu {
        display: block;
    }
}
/* Ajustar la separación entre los elementos en móviles */
@media screen and (max-width: 600px) {
    .dropdown-menu__item {
        padding: 10px 20px;
    }
}

/* Contenedor principal */
.organigrama-wrapper {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* Contenedor optimizado del PDF */
.pdf-optimized-container {
    margin: 2rem 0;
}

.pdf-viewer-wrapper {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--light-color);
    border: 1px solid #e5e7eb;
    min-height: 600px;
    transition: all 0.3s ease;
}

/* Visor PDF mejorado (ahora es un iframe) */
.enhanced-pdf-viewer {
    width: 100%;
    height: 75vh;
    min-height: 600px;
    max-height: 800px;
    display: block;
    border: none;
    background: #f5f5f5;
}

/* Mensaje alternativo */
.pdf-alternative-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 80%;
    padding: 2rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.pdf-alert-icon {
    width: 3rem;
    height: 3rem;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Botón de descarga */
.download-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    margin-top: 1rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.download-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.download-button i {
    margin-right: 0.5rem;
}

/* Nota al pie */
.organigrama-footer-note {
    text-align: center;
    padding: 1rem;
    color: #6b7280;
    font-style: italic;
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* Efectos hover */
.pdf-viewer-wrapper:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .organigrama-wrapper {
        padding: 0 1rem;
    }
    
    .pdf-viewer-wrapper {
        min-height: 400px;
    }
    
    .enhanced-pdf-viewer {
        height: 60vh;
        min-height: 400px;
    }
    
    .pdf-alternative-message {
        width: 90%;
        padding: 1.5rem;
        font-size: 0.9rem;
    }
    
    .download-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .enhanced-pdf-viewer {
        height: 50vh;
        min-height: 300px;
    }
    
    .pdf-alternative-message {
        width: 95%;
        padding: 1rem;
    }
}


/* Footer General Styles */
.footer {
    position: relative;
    overflow: hidden;
    color: #fff;
    margin-top: 30px;
    background: linear-gradient(135deg, #8B0000, #000, #600000, #111);
    background-size: 400% 400%; /* Aumenta el tamaño del fondo para que el desplazamiento sea notable */
    animation: diagonalScroll 10s infinite linear; /* Controla la animación */
}

/* Animación del fondo */
@keyframes diagonalScroll {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}
.footer__details{
    display: flex;
    justify-content: space-evenly;
    border-bottom: 1px solid #ffffff31;
}
.footer__details__contact{
    padding-top: 55px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 50px;
   
}
.firt{
    padding-left: 100px;
    padding-right: 50px;
    border-right: 1px solid #ffffff31;
}
.second {
    padding-left: 30px;
}

.trird{
    padding-left: 100px;
    padding-right: 100px;

    border-left: 1px solid #ffffff31;
}
.footer__details__contact__icon{
    background-color: #ffffff0e;
    border-radius: 50%;
    border: 1px solid #f4f4f480;
    min-width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* Necesario para posicionar el mensaje emergente */
    cursor: pointer; /* Indica que es interactivo */
    
}

/* Estilo del mensaje emergente */
.footer__details__contact__icon:hover::after {
    content: "Únete a nuestro grupo para más información o contáctanos directamente.";
    position: absolute;
    bottom: 120%; /* Posiciona el mensaje encima del ícono */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.9); /* Fondo oscuro para el mensaje */
    color: #fff; /* Texto blanco */
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap; /* Evita que el texto se divida en varias líneas */
    z-index: 10;
    opacity: 0; /* Por defecto, el mensaje no es visible */
    visibility: hidden; /* Oculta el mensaje cuando no está en hover */
    transition: opacity 0.3s ease-in-out;
}

/* Muestra el mensaje emergente al hacer hover */
.footer__details__contact__icon:hover::after {
    opacity: 1;
    visibility: visible;
}


.footer__details__contact__text__title{
    color: #13C4F5;
    margin-bottom: 5px;
    
}
.footer__details__contact__text__subtitle{
    max-width: 300px;
}
.footer_derechos{
    padding: 0px 20px;
    text-align: center;
}
.footer__social__img{
    width: 150px;
    margin-top: 20px;
    padding-left: 140px;
    margin-right: 10px;
}
.footer__social__eslogan{
    padding-top: 20px;
    padding-left: 140px;
    margin-right: 10px;
    max-width: 400px;
}
.footer__social__icons{
    display: flex;
    padding-left: 140px;
    gap: 10px;
    margin-top: 20px;
}
.footer__social__icons_icon{
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: #4D5756;
    width: 40px;
    height: 40px;
}
.footer_derechos{
    margin-top: 40px;
    padding-top: 15px;
    padding-bottom: 15px;
    background-color: #222222;
    color: #fff;
}

.checkbox{
    z-index: 1000;
    display: none;
}
.icon-checkbox{
    z-index: 1000;
    display: none;
}


@media screen and (max-width: 1200px){
    .firt{
        padding-left: 0px;
        padding-right: 0px;
        border: none;
    }
    .second {
        padding-left: 0px;
    }
    
    .trird{
        padding-left: 0px;
        padding-right: 0px;
    
        border-left: none;
    }
    .footer__details{
        border: none;
    }
}
@media screen and (max-width: 1000px){
    
    .footer__details{
        flex-direction: column;
        gap: 0px;
    }
    .footer__details__contact{
        padding: 0px;
        margin-left: 10%;
        margin-bottom: 10px;
        margin-top: 20px;
    }
    .footer__social{
        padding: 0px;
        margin-left: 10%;
    }
    .footer__social__img{
        padding-left: 0px;
    }
    .footer__social__eslogan{
        padding-left: 0px;
    }
    .footer__social__icons{
        padding-left: 0px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px); /* Ajusta el valor según sea necesario */
    }
}
@media screen and (max-width: 1200px){
    .about-us-section{
        flex-direction: column-reverse;
        align-items: center;
    }
    .about-us-section__gallery{
        margin-top: 60px;
    }
    .about-us-section__content__mision-vision{
        margin-top: 20px;
    }
    
}
@media screen and (max-width: 600px){
    .header__title{
        height: 200px;
    }
    .convenios-section__title__text{
        font-size: 30px;
        padding-left: 20px;
        padding-right: 20px;
    }
    .about-us-section__content__title{
        font-size: 40px;
    }
    .about-us-section__content__p{
        line-height: 30px;
    }
    .about-us-section__content__mision-vision__item__p{
        line-height: 30px;
    }
    .about-us-section__content__mision-vision{
        flex-direction: column;
    }
    .about-us-section{
        padding: 0px 7%;
    }
    .about-us-section__gallery{
        min-width: 380px;
        height: 470px;
    }
    .about-us-section__gallery__img1{
        width: 130px;
        
    }
    
    .about-us-section__gallery__img2{
        width: 230px;
    }
    .header__title-h1{
        font-size: 2rem;
        text-align: center;
    }
    
   
}
@media screen and (max-width: 900px){
    .icon-checkbox{
        display: block;
    }
    
   
    
    .header__nav-list{
        z-index: 2000;
        position: absolute;
        position: fixed;
        flex-direction: column;
        background-color: #fff;
        width: 60%;
        left: -100%;
        top: 0;
        height: 100%;
        justify-content: start;
        transition: 0.5s;
        box-shadow: rgb(38, 57, 77) 0px 20px 30px -10px;
        align-items: start;
    }
    
    #check:checked ~ ul{
        left:0;
       
    }
    .header__nav-list__item{
        margin-top: 20px;
        
    }
    .header__nav-list__item{
        
        color: #0E2A46;
        font-weight: bold;
        margin-left: 50px;
        font-size: 20px;
        
    } 
}