/* General */
@font-face {
    font-family: 'Aller Display';
    src: url('../fonts/Aller/AllerDisplay.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Aller Regular';
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}
@font-face{
    font-family: 'Aller Display';
    src: url(../fonts/Aller/AllerDisplay.ttf) format('truetype');
    font-style: normal;
    font-weight: normal;

}
.primera-seccion{
    overflow: hidden;
}
.primera-seccion img{
    width:100%;
    height: 750px;
}
.carousel-container {
    margin: 0 auto;
    position: relative;
    width: 100%; /* Ancho del área visible (ajústalo según tu diseño) */
    z-index: 5;
    /* justify-content: center; */
}
button.prev, button.next {
    position :absolute;
    top: 50%;
    background-color: rgba(0, 0, 0, 0.719);
    transform: translateY(-50%);
    z-index: 20;
    cursor: pointer;
    border: none;
    border-radius: 50%;
    padding: 20px;
    font-size: 25px;
    color:white;
}

button.prev{
    left: -25px;
}
button.next{
    right:-25px;
}

button:hover{
    background-color: #adf05683;
    color: rgba(0, 0, 0, 0.719);
}
button:active {
    background-color: #ffffff79;
}
.control_b{
    position:relative;
    width:95%;
    margin:0 auto;
    top: -160px;
    z-index: 10;
}
.carousel-overflow{
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    z-index: 5;
}
.carousel-track {
    width: 150%;
    white-space: nowrap;
    margin: 0 auto;
    display: flex;
    transition: transform 0.5s ease-in-out; /* Animación suave */
    position: relative;
    z-index: 8;
}

.carousel-slide {
    position:relative;
    display: inline-block;
    height: 390px;
    /* width: 25%; */
    width: calc(100% /4);
    box-sizing: border-box; /* Incluye padding y border en el cálculo del ancho */
    overflow: hidden;
    text-align: center;
    background-color: transparent;
    background-size: cover;
    background-position: center;
    transition: all 0.4s ease-in-out;
}
.carousel-slide img {
    position: absolute;
    top:0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    transition: opacity 0.4s ease-in-out;
    opacity: 0;
}
.carousel-slide h2{
    position: absolute;
    font-family: 'Aller Display';
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
    color: white;
    z-index: 10;
}
.carousel-slide:hover img{
    opacity:1;
}
.carousel-slide:hover{
    background-image: none;
}
.carousel-slide:hover h2{
    transition: all 0.4s ease-in-out;
    transform: translate(-50%,-50%) scale(1.5) ;
}
.c-geo{
    background-color: #002060;
}
.m-sue{
    background-color: #3F6685;
}
.e-geo{
    background-color: #0098DA;
}
.c-cal{
    background-color: #ABD15A;
}
.sdc{
    background-color: #6B6B6B;
}
.c-v{
    background-color: #989898;
    
}

/* Contenedor principal para centrar la imagen */
.contenedor-imagen-frase {
    position: relative;
    text-align: center;
    max-width: 100%; /* Ancho máximo de la imagen */
    margin: 20px auto; /* Centramos el contenedor con margen automático */
    padding: 10px; /* Espaciado para evitar que la imagen esté muy pegada */
}

/* Imagen con el texto incluido */
.imagen-frase {
    display: block;
    margin: 0 auto; /* Centramos la imagen horizontalmente */
    width: 100%; /* La imagen se adapta al 100% del ancho del contenedor */
    height: auto; /* Mantiene la proporción de la imagen */
    filter: brightness(1.1) contrast(1.1); /* Ajustes para mejorar la visibilidad */

}

#metodologia-container {
    text-align: center;
    padding: 40px 20px 0 20px;
    background-color: #f9f9f9; /* Fondo suave para separar visualmente la sección */
    margin-top: 30px; /* Espacio entre el contenedor anterior y este */
}

#metodologia-titulo {
    font-size: 3em;
    color:#002060; /* Color específico para el título, puedes cambiarlo según la paleta de colores que uses */
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Aller Display';
}

.metodologia-imagen {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    overflow-x: hidden; /* Previene que el contenido se desborde horizontalmente */
    margin-top: 30px;
}

.metodologia-imagen img {
    max-width: 100%;
    height: 90vh;

}
.contact-button-container {
    bottom: 152px;
    text-align: center;
    position: relative;
    height: auto;
    display: grid;
    justify-content: center;
    justify-self: center;
}

.contact-button {
    background-color: #A3D65F; /* Color verde claro */
    color: white;
    padding: 15px 40px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
    font-family: 'Aller Display', Arial, sans-serif;
}

.contact-button:hover {
    background-color:#b7ee6e; /* Color verde un poco más oscuro al pasar el ratón */
    color:#002060;
}
/* RESPONSIVIDAD */

@media screen and (max-width: 810px) and (orientation: portrait) {
    .primera-seccion img{
        height: auto;
        top: -50px;
        position: relative;
    }
    .carousel-slide h2{
        font-size: 0.68rem;
    }
    .control_b{
        top: -6.65rem;
    }
    .carousel-track{
        width: 151%;
    }
    .carousel-overflow{
        height: 102px ;
    }
    button.prev, button.next{
        font-size: 1rem;
        padding: 5px;
        transform: translateY(-52%);
    }
    button.next {
        right: -10px;
    }
    button.prev {
        left: -10px;
    }
    .carousel-slide{
        height: 6rem;
    }
    .carousel-container{
        height: 0;
    }
    .contenedor-imagen-frase{
        height: auto;
        margin: 0 0;
        padding: 0;
    }
    .imagen-frase {
        position: inherit;
        height: -125px;
        padding: 0 10px;
    }
    #metodologia-titulo {
        font-size: 1em;
    }
    #metodologia-container{
        margin-top: 0;
        padding: 5px 2.5px 0 2.5px;
    }
    .metodologia-imagen img {
        width: 100%;
        height: 480px;
    }
    .contact-button-container{
        position: relative;
        bottom: 50px;
    }
    .contact-button {
        padding: 1rem 1rem;
        font-size: 1rem;
    }

}
@media screen and (max-height: 854px) and (orientation: landscape) {
  /* Estilos para móviles en horizontal */
    .primera-seccion img{
        height: auto;
        top: -50px;
        position: relative;
    }
    .carousel-container{
        height: 27px;
    }
    .carousel-overflow {
        height: 100%;
    }
    .carousel-track{
        width: 150.25%;
    }
    .carousel-slide h2{
        font-size: 1rem;
    }
    .control_b {
        top: -135px;
    }
    .carousel-slide{
        height: 200px;
    }
    button.prev {
        left: -14px;
    }
    button.next {
        right: -14px;
    }
    button.prev, button.next {
        padding: 8px;
        transform: translateY(-54%);
    }
    .contenedor-imagen-frase{
        height: auto;}
    .imagen-frase {
        position: inherit;
        margin: 28px auto;
        height: -125px;
    }
    #metodologia-titulo {
        font-size: 2em;
    }
    #metodologia-container{
        margin-top: 0;
        padding: 5px 2.5px 0 2.5px;
    }
    .metodologia-imagen img {
        width: 100%;
        height: 480px;
    }
    .contact-button-container{
        position: relative;
        bottom: 50px;
    }
    .contact-button {
        padding: 1rem 1rem;
        font-size: 1rem;
    }
}
@media screen and (min-width: 1600px) {
    .carousel-container{
        height: 210px;
    }
    .carousel-slide {
        height: 350px;

    }
    .contact-button-container {
        bottom: 120px;
    }
}
@media screen and (min-width:3840px){
    .carousel-slide{
        height: 750px;
    }
    .control_b{
        top: -385px;
    }
    button.prev{
        left:-70px;
    }
    button.next{
        right: -70px;
    }
    button.prev, button.next{
        font-size: 100px;
        padding: 20px 50px;
    }
    .carousel-slide h2{
        font-size: 60px;
    }
    .contenedor-imagen-frase{
        top:180px;
    }
    .imagen-frase{
        width: 2700px;
    }
    #metodologia-container{
        position: relative;
        top: 120px;
    }
    #metodologia-titulo {
        font-size: 80px;
    }
    .metodologia-imagen{
        max-width: 100%;
    }
    .metodologia-imagen img{
        width: 2500px;
        height: auto;
    }
    .contact-button{
        position: relative;
        font-size: 80px;
        top: -225px;
    }
}