* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;

}

body {
    background:url('./assets/inicio.png') no-repeat;
    background-size: cover;
    color: #004186;
    overflow-x: hidden;
}

.background-layer {
    position: fixed;
    top: 20px;     /* siempre 20px del top */
    left: 30px;
    right: 30px;
    height: calc(100vh); /* alto dinámico restando los márgenes */
    background-color: rgba(208, 208, 208, 0.264);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: -1;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.019);
    border-radius: 10px;
}

/* Estilos del menú  */
.circular-menu {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    text-transform: uppercase;
}

.menu-toggle {
    width: 70px;
    height: 70px;
    background-color: #f9f9f9;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #004186;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1002; /* Mayor z-index para que esté por encima */
    position: relative;
    overflow: hidden; /* Añadido para contener la imagen */
}

.menu-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* NUEVOS ESTILOS PARA CENTRAR LA IMAGEN */
.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.img-logo {
    max-width: 80%; /* Ajusta el tamaño de la imagen */
    max-height: 80%; /* Ajusta el tamaño de la imagen */
    object-fit: contain; /* Mantiene las proporciones */
}

.menu-items {
    position: absolute;
    top: 0;
    left: 0;
    height: 70px;
    background: #f9f9f9;
    border-radius: 35px;
    display: flex;
    align-items: center;
    padding: 0 0 0 80px; /* Espacio a la izquierda para el logo */
    transition: all 0.5s ease;
    width: 70px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1001; /* Menor z-index que el logo */
    opacity: 0; /* OCULTAR INICIALMENTE */
    transform: translateX(-20px); /* OCULTAR INICIALMENTE */
}

.circular-menu:hover .menu-items {
    width: 700px;
    opacity: 1; /* MOSTRAR AL HACER HOVER */
    transform: translateX(0); /* MOSTRAR AL HACER HOVER */
}

.menu-items ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
    opacity: 0;
    transition: opacity 0.3s ease 0.2s;
}

.circular-menu:hover .menu-items ul {
    opacity: 1;
}

.menu-items li {
    white-space: nowrap;
}

.menu-items a {
    color: #004186;
    text-decoration: none;
    
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 20px;
}

.menu-items a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);

}


/*Posicion de logo completo*/

.img-logo-completo{
    position: relative;
    max-height: 60px;
   left: 130px;
   top: 30px;

}


/* Secciones de contenido */
section {
    padding: 100px 50px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.titulo-principal {
    font-size: 5rem;
    margin-bottom: 40px;
    text-align: left;
    position: relative;
    text-wrap: balance;

}

.sub-titulo{
    font-weight: 450;
    font-size: 1.5rem;
    padding-bottom: 50px;
}



/* Slider */

#slider-section{
    padding-bottom: 0;
}

.slider-container {
    width: 50%;
    overflow: hidden;
    position: relative;
    height: 400px;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.slider {
    display: flex;
    animation: slide 10s infinite linear;
}

.slider:hover {
    animation-play-state: paused;
}

.slide {
    min-width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
}

@keyframes slide {
    0% { transform: translateX(0); }
    20% { transform: translateX(0); }
    25% { transform: translateX(-100%); }
    45% { transform: translateX(-100%); }
    50% { transform: translateX(-200%); }
    70% { transform: translateX(-200%); }
    75% { transform: translateX(-300%); }
    95% { transform: translateX(-300%); }
    100% { transform: translateX(0); }
}


/* Sección de cuadros de iconos */

#icons{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    padding: 0;
   margin-top: 0;
   margin-bottom: 0;


}

.icons-elements{
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1.5rem;
}

.icons-elements img, p {
    padding-bottom: 40px;
}

.icons-elements img{
    height: 200px;
}

.icons-elements p {
    font-size: 150px;
    font-weight: bolder;
    padding-bottom: 10px;
}

/* Sección de cuadros de texto */
#text-boxes-section{
    padding-top: 0;
}

.text-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    color: white;
    font-size: 1.8rem;
    text-align: center;

}

.text-boxes h3, h4{
font-size: 2.5rem;
padding: 20px;

}
.main-box {
    width: 100%;
    display: flex;
    text-align: left;
    background-color: #004186;
    padding: 30px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.main-box h3{
    padding-top: 0;
}


.secondary-boxes {
    display: flex;
    gap: 20px;
    width: 100%;
}

.secondary-box {
    flex: 1;
    background-color:#004186;
    padding: 25px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.secondary-box:hover {
    transform: translateY(-5px);
}

ul{
    text-align: left;
    list-style-position: inside;
}
ul li {
    padding-left: 40px ;
}
/* Seccion de glosario*/

#glosario{
    text-align: center;
}
#glosario h2 {
    font-size: 3rem;
}

#glosario p{
    font-size: 2rem;
    padding: 30px;
}


/* Slider de texto */
#text-slider-section {
    padding: 80px 0;
    min-height: auto;
}

.text-slider-container {
    position: relative;
    width: 100%;
    background-color: #004186;
    padding: 60px 80px;
    overflow: hidden;
    margin: auto;
    border-radius: 30px;
}

.text-slider {
    position: relative;
    height: 120px;
}

.text-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: translateX(50px);
}

.text-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.text-slide p {
    color: white;
    font-size: 2rem;
    font-weight: 500;
    text-align: center;
    max-width: 80%;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #f9f9f9;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color:#004186;
    font-size: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-btn:hover {
    background-color:#eef5fd;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}



/* Sección de logos */

#logos-section h2{
    font-size: 3rem;
    text-align: center;
    padding-bottom: 50px;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.logo-item {
    
    border-radius: 10px;
    padding: 35px 25px;
    text-align: center;
    
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}



.logo-title {
    font-weight: 600;
    font-size: 30px;
    color: #004186;
    transition: all 0.4s ease;
    padding-top: 20px;
}

.logo-description {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 15px;
    font-size: 20px;
    color: white;
    background-color: #004186;
    transition: all 0.4s ease;
    opacity: 0;
}

.logo-item:hover {
    background: #004186;
    transform: translateY(-10px);
}

.logo-item:hover i {
    color: white;
    transform: scale(1.2);
}

.logo-item:hover .logo-title {
    color: white;
    transform: translateY(-100px);
}

.logo-item:hover .logo-description {
    bottom: 30px;
    opacity: 1;
}

/* Sección de unite */

#unite-section{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

}

.unite-botones{
display: flex;
flex-direction: row;
justify-content: space-evenly;
}


.boton-principal{
    background-color: #004186;
    padding: 20px 30px;
    border: 1px solid #004186;
    border-radius: 50px;
    color: #f9f9f9;
    font-size: 1.5rem;

}

.boton-principal:hover{
    background-color: #012b57;

}

.boton-principal i{
    background-color: white;
    color: #004186;
    padding: 9px;
    border-radius: 100%;
    margin-left: 10px;
}
.boton-principal:hover i {
    color: #012b57 ;
}


#unite-section p{
font-size: 2rem;
padding: 80px;

}


/* Footer */
footer {
    background-color: #004186;
    color: white;
    padding: 40px 20px;
    text-align: center;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
}

.footer-items {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 60px;
}

.footer-item {
    flex: 1;
    min-width: 250px;
    margin: 15px;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease;
    
}

.footer-item h4{
    font-size: 1rem;
    padding-bottom: 0;
}

.footer-item {
    font-size: 1rem;
    padding-bottom: 0;
}

.footer-item-description{
    padding-top: 20px;
}

.footer-info{
    display: flex;
    flex-direction: column;
    padding-left: 20%;
    font-size: 1.5rem;
    text-align: left;
    
}
.footer-info p{
   padding-bottom: 0;
   
   
}

.footer-logohh{
    height: 3rem;
}

.footer-titulo{
    font-size: 3rem;
    letter-spacing: 2px;
}


/* Formulario */

.form-group {
    margin: 40px 80px;
    align-items: center;
}

#form h2{
    font-size: 3rem;
    text-align: center;
    padding:150px 30px 30px ;
    
}
label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #242424;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #aaa;
    border-radius: 10px;
    font-size: 16px;
    transition: border 0.3s;
    
}

input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.btn {
    display: inline-block;
    background-color: #004186;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s;
    width: 100%;
    margin-top: 40px;
   
    
}

.btn:hover {
    background-color: #012b57;
}


/*   seccion partners    */



        .container {
            width: 100%;
            max-width: 1400px;
            margin: 0 auto;
            position: relative;
            font-family: 'Montserrat', sans-serif;
        }

        #partners-boton-principal{
            align-self: flex-end;
            max-width: fit-content;
            position: absolute;   /* lo fijamos en relación al padre */
    top:50px;            /* separación desde arriba */
    right: 40px; 
        }
        
        
        .subtitle {
            font-size: 1.2rem;
            opacity: 0.9;
            max-width: 600px;
            margin: 0 auto;
        }
        
        .carousel-container {
            position: relative;
            width: 100%;
            padding: 0 40px;
            margin-top: 80px;
        }
        
        .carousel {
            display: flex;
            gap: 15px;
            padding: 15px 0;
            overflow-x: auto;
            scroll-behavior: smooth;
            scrollbar-width: none; /* Firefox */
        }
        
        .carousel::-webkit-scrollbar {
            display: none; /* Chrome, Safari, Edge */
        }
        
        .carousel-item {
            flex: 0 0 calc(100% / 6 - 13px);
            height: 500px;
            position: relative;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            border-radius: 50px;
            overflow: hidden;
            
        }
        
        .carousel-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: all 0.4s ease;
        }
        
        .carousel-title {
            position: absolute;
            right: 0;
            bottom: 20px;
            writing-mode: vertical-rl;
            transform: rotate(180deg);
            color: #fafafa;
            font-weight: 800;
            text-transform: uppercase;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
            padding: 10px 6px;
            z-index: 3;
            font-size: 1.3rem;
            letter-spacing: 2px;
            padding-left: 15px;
        }
        
        .carousel-item.expanded {
            flex: 0 0 calc((100% / 6) * 2 - 13px);
            z-index: 10;
        }
        

        .carousel-item.expanded .carousel-title{
            display: none;
        }
        .text-content {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: #f9f9f9cb;
            color: #004186;
            padding: 20px;
            transform: translateY(100%);
            transition: transform 0.4s ease;
            z-index: 2;
            max-height: 70%;
            overflow-y: auto;
        }
        
        .carousel-item.expanded .text-content {
            transform: translateY(0);
        }
        
        .text-content h3 {
            margin-bottom: 12px;
            color: #004186;
            font-size: 1.4rem;
        }
        
        .text-content p {
            line-height: 1.6;
            font-size: 1rem;
            margin-bottom: 15px;
        }
        
       
        
        .nav-button {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            border-color: #004186;
            backdrop-filter: blur(10px);
            border: none;
            color: #004186;
            font-size: 1.2rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            z-index: 20;
        }
        
        .nav-button:hover {
            background: rgba(255, 255, 255, 0.3);
        }
        
        .nav-button:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }
        
        .nav-button.prev {
            left: 0;
        }
        
        .nav-button.next {
            right: 0;
        }
        
        .item-counter {
            text-align: center;
            margin-top: 20px;
            font-size: 1.1rem;
            opacity: 0.8;
        }
        
        /* Efecto de overlay al expandir */
        .carousel-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(to bottom, transparent 0%, transparent 60%, rgba(0, 0, 0, 0.7) 100%);
            z-index: 1;
            opacity: 0.7;
            transition: opacity 0.4s ease;
        }
        
        .carousel-item.expanded::before {
            opacity: 0.9;
        }
        
        /* Responsive */
        @media (max-width: 1200px) {
            .carousel-item {
                flex: 0 0 calc(100% / 4 - 13px);
            }
            
            .carousel-item.expanded {
                flex: 0 0 calc((100% / 4) * 2 - 13px);
            }
        }
        
        @media (max-width: 900px) {
            .carousel-item {
                flex: 0 0 calc(100% / 3 - 13px);
            }
            
            .carousel-item.expanded {
                flex: 0 0 calc((100% / 3) * 2 - 13px);
            }
        }
        
        @media (max-width: 600px) {
            .carousel-item {
                flex: 0 0 calc(100% / 2 - 13px);
            }
            
            .carousel-item.expanded {
                flex: 0 0 calc((100% / 2) * 2 - 13px);
            }
            
            h1 {
                font-size: 2.2rem;
            }
            
            .subtitle {
                font-size: 1rem;
            }
            
            .carousel-title {
                font-size: 1.1rem;
            }
        }


/* Responsive */
@media (max-width: 992px) {
    .logos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .secondary-boxes {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    section {
        padding: 100px 20px;
    }
    
    .menu-items.open {
        width: 280px;
    }
    
    .menu-items.open li:nth-child(4) {
        left: 210px;
    }
    
    .footer-content {
        flex-direction: column;
    }

    .text-slider-container {
        padding: 40px 60px;
    }
    
    .text-slide p {
        font-size: 22px;
        max-width: 90%;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

