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

@font-face {
    font-family: 'Aller';
    src: url('../fonts/Aller/Aller_Std_Bd.ttf') format('truetype');
}

@font-face {
    font-family: 'Aller Bold Italic';
    src: url('../fonts/Aller/Aller_Std_BdIt.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: 'Aller Light';
    src: url('../fonts/Aller/Aller_Std_It.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Aller Light Italic';
    src: url('../fonts/Aller/Aller_Std_LtIt.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: 'Aller Italic';
    src: url('../fonts/Aller/Aller_Std_It.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Aller Display';
    src: url('../fonts/Aller/AllerDisplay.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
/* Reset de estilos básicos para asegurar consistencia entre navegadores */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Estilos Generales del Body */

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

.slider-container-somos{
    position: relative;
    overflow: hidden;
    max-width: 100vw;
    height:auto;
}

.slider-buttons {
    position:absolute;
    top:50%;
    width:100%;
    display:flex;
    justify-content:space-between;
    transform:translateY (-50%);
    pointer-events: none;
}

.slider-buttons button{
    background-color: rgba(0, 0, 0, 0.5);
    color:white;
    border: none;
    border-radius:50%;
    padding:10px 20px;
    cursor:pointer;
    margin: 0 15px 0 15px;
    font-size:25px;
    pointer-events: all;
}

.slider-buttons button:hover{
    background-color: rgba(0, 0, 0, 0.7);
    transform: scale(1.2);
}

/* Contenedor de indicadores */
.slider-indicators {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    width: 120px; /* Ajusta según sea necesario */
    background-color: transparent; /* Fondo oscuro semi-transparente */
    border: none; /* Elimina cualquier borde explícito */
    outline: none; /* Elimina contornos adicionales */
    box-shadow: none; /* Elimina posibles sombras que parezcan bordes */
    border-radius: 10px;
    padding:15px;
}

/* Lista desordenada */
.slider-indicators ul{
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px; /* Espaciado entre los indicadores */
}

/* Estilo de los indicadores (li) */
.indicator {
    margin:0 10px 0 0;
    width: 15px;
    height: 15px;
    background-color: #ffffff9a;
    border-radius: 50%;
    opacity: 0.7;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.indicator.active {
    background-color: #ffffff; /* Color para el indicador activo */
    opacity: 1;
}
.indicator.active::after{
    background-color: transparent;
}
.slider-indicators .active {
    color: initial; /* Resetea el color al valor inicial */
    position:static; /* Restablece la posición */
}

/* Estilos para la Sección de la Cita del Carrusel */
.carousel-quote {
    width: 100vw;
    height: auto;
    display: flex;
    padding: 2% 2%;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.carousel-quote img {
    width: 60%;
    height: 90%;
}

/* Estilos para la Sección de Información */
.info-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    width: 100%;
    height: 100%;
    padding: 0.4% 2px 6px 3px;
    background-color:#EEEEEE;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.info-text {
    width: 100vw;
    height: 100%;
    margin: 4%  4%;
    gap: 30px;
    display:flex;
    flex-direction: column;
    justify-content: center;
}

.info-text p {
    font-size: 25.2px;
    text-align: justify;
    color:#002060;
    font-family: 'Aller Regular';
}

.info-section .carousel-dos{
    margin-right:40px;
    top:0;
}

.carousel-dos {
    position: relative;
    overflow: hidden;
    width: 50%;
    height: 380px;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%; /* Basado en el número de imágenes */
    height: 100%;
}

.carousel-item {
    width: 100%;
    flex: 0 0 100%;
    padding: 5%;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    padding: 0 4%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

button {
    background-color: rgba(255, 255, 255, 0.258);
    color: white;
    border: none;
    cursor: pointer;
    padding:10px 15px;
    border-radius: 100%;
    margin: 15px;
    font-size: 25px;
}

.container-elegirnos{
    position:relative;
    width:100%;
    height: auto;
    margin: 20px 0 20px 0;
}
.container-elegirnos h2{
    Color: #002060;
    font-family: 'Aller Display';
    font-size:52.3px;
    padding:2.5px 20px;
}
.container-elegirnos p{
    width:100%;
    height: auto;
    font-size:25.2px;
    color: #002060;
    font-family: 'Aller Regular';
    text-align: justify;
    padding:0 75px 25px 75px;
}
.container-card{
    display: flex;
    flex-direction: space-between;
    width: 100%;
    height:auto;
    padding:0 25px;
    gap:50px;
}

.card-row{
    width:100%;
}
.card-img img{
    position: relative;
    width:100%;
    height: 750px;
    background-color: #002060;
}

.card-img{
    position: relative;
    background-color: #002060;
}

.card-img p {
    width:100%;
    height: 100%;
    position: absolute;
    display:flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color:white;
    opacity:0;
    transition: opacity 0.5s ease-in-out;
    bottom: 0;
    left: 0;
    margin: 0;
    padding: 0 25px 0 25px;
    font-size: 29.2px;
    background-color: #002060;

}
.card-img:hover p{
    width:100%;
    height:100%;
    display:flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: opacity 0.3s ease-in-out;
    left: 0;
    bottom: 0;
    padding:0 25px 0 25px;
    margin:0;
    opacity:1;
}
.card-img.active p {
    opacity: 1;
}

.card-title h3{
    font-size:35px;
    color:#002060;
    font-family: 'Aller Display';
    text-align:center;
    line-height: 1.2;
}

#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 */
}

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

}


/* Media Queries para Responsividad */


/* Tablets y Dispositivos Medianos */
@media screen and (max-width: 768px) and (orientation: portrait) {
    .slider-container-somos{
        margin-top: 50px;
    }
    .slider-buttons{
        top: 40%;
    }
    .carousel-quote img {
        width: 95%;
        height: auto;
    }
    .info-section {
        flex-direction: column;
    }
    .slider-indicators {
        position: absolute;
        bottom: 25px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        justify-content: center;
        width: 120px;
        background-color: transparent;
        border: none;
        outline: none;
        box-shadow: none;
        border-radius: 10px;
        padding: 15px;
    }
    .indicator {
        width: 9px;
        height: 9px;

    }
    .slider-buttons button{
        font-size: 15px;
    }
    .info-text,
    .info-carousel {
        flex: 1 1 100%;
        gap: 1rem;
        padding: 28px;
    }

    .carousel-item {
        height: 400px;
        padding: 0;
    }

    .info-carousel .carousel-item {
        height: 250px;
    }
    .info-section .carousel-dos {
        margin-right: 0;
        top: 0;
    }
    .carousel-dos {
        position: relative;
        overflow: hidden;
        width: 100%;
        height: auto;
    }
    .carousel-controls{
        width: 100%;
    }
    button{
        font-size: 15px;
        background-color: rgba(43, 41, 41, 0.79);
    }
    .container-elegirnos h2{
        font-size: 1.2em;
        text-align: center;
    }
    .container-elegirnos p{
        font-size: 0.8rem;
        padding: 0 1rem 1rem 1rem;
    }
    .container-card{
        flex-direction: column;
        gap: 1rem;
    }
    .card-row {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .card-img{
        width: auto;
    }
    .card-img img{
        height: 250px;
    }
    .card-title h3{
        font-size: 1rem;
    }

    #metodologia-container {
        text-align: center;
        padding: 1rem 1rem 0 1rem;
        background-color: #f9f9f9;
        margin-top: 1rem;
    }
    #metodologia-titulo {
        font-size: 2rem;
        color: #002060;
        font-weight: bold;
        margin-bottom: 1rem;
        text-align: center;
        font-family: 'Aller Display';
    }
    .metodologia-imagen img {
        width: 100%;
        height: 480px;
    }
}


/* Dispositivos Muy Pequeños (Pequeñas Pantallas) */
@media (max-width: 480px) {
    .carousel-controls,
    .carousel-controls2 {
        width: 100%;
    }

    .carousel-control {
        font-size: 1.2rem;
        padding: 6px 10px;
    }

    .carousel-item {
        height: 200px;
    }

    .info-carousel .carousel-item {
        height: 150px;
    }

    .info-text p {
        font-size: 0.8rem;
    }
}

@media screen and (max-height: 500px) and (orientation: landscape) {
    .info-text,
    .info-carousel {
        flex: 1 1 100%;
        padding: 0 57px;
        gap: 1rem;
    }

    .carousel-item {
        height: 400px;
        padding: 0;
    }

    .info-carousel .carousel-item {
        height: 250px;
    }
    .info-section .carousel-dos {
        margin-right: 0;
        top: 0;
    }
    .carousel-dos {
        position: relative;
        overflow: hidden;
        width: 100%;
        height: auto;
    }
    .carousel-controls{
        width: 100%;
    }
    button{
        font-size: 15px;
        background-color: rgba(43, 41, 41, 0.79);
    }
    .info-section {
        flex-direction: column;
    }
    .container-elegirnos h2{
        font-size: 2em;
        text-align: center;
    }
    .container-elegirnos p{
        font-size: 1rem;
        padding: 15px 57px;
    }
    .container-card {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }
    .card-img p{
        font-size: 0.8rem
    }

    .card-row {
        flex-direction: column;
        align-items: center;
    }

    /* Primeras 4 tarjetas: 2 por fila */
    .card-row:nth-child(-n+4) {
        width: calc(50% - 25px);
        display: flex;
    }
    .card-img{
        width: 70%;
    }
    .card-img img {
        width: 100%;
        height: 250px;
    }
    .card-title h3{
        font-size: 1rem;
    }
    .info-text p{
        font-size: 1rem;
    }
    #metodologia-container {
        text-align: center;
        padding: 1rem 1rem 0 1rem;
        background-color: #f9f9f9;
        margin-top: 1rem;
    }
    #metodologia-titulo {
        font-size: 2rem;
        color: #002060;
        font-weight: bold;
        margin-bottom: 1rem;
        text-align: center;
        font-family: 'Aller Display';
    }
    .metodologia-imagen img {
        width: 100%;
        height: 480px;
    }
    .social-sidebar{
        transform: translateY(-61%);
        height: auto;
    }
    .social-media-sidebar img {
        width: 26px;
        height: 26px;
    }
    .social-media-sidebar a {
        margin: 2px 0;
    }
}


