:root{
    --anaranjado: #ee6c4d;
    --negroClaro: #293241;
    --azulClaro: #e0fbfc;
    --azulMedio: #98c1d9;
    --azulGris: #3d5a80;

    --fuente:'Lato', sans-serif;
}





html {
    font-size: 62.5%;
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}
*{
    margin: 0;
    padding: 0;
    font-family: var(--fuente);
}



.principal{
    text-align: center;
    font-size: 2rem;
    margin: 5rem;
}

@media (min-width: 992px){
    .principal{
        font-size: 3rem;
    } 
}



.nosotros{
    max-width: 120rem;
    width: 90%;
    margin: 0 auto;
    display: grid;
    grid-template-rows: auto 25rem;
    gap: 5rem;
}
@media (min-width: 992px){
    .nosotros{
    grid-template-columns: repeat(2,1fr);
    grid-template-rows: unset;
    } 
}


.nosotros__texto h2{
    font-size: 3rem;
    
}
.nosotros__texto p{
    text-align: justify;
    font-size: 2rem;
    line-height: 1.5;
}

.nosotros__fondo{
    background-image: url(/img/index/1.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    height: 25rem;
}
@media (min-width: 992px){
    .nosotros__fondo{
        background-size: cover;
        height: auto;
    } 
}

.nosotros__fondo:hover{
    background-image: url(/img/index/2.jpg);
    transition: all 1s ease;
}


.servimos{
    max-width: 120rem;
    width: 90%;
    margin: 0 auto;
    display: grid;
    gap: 5rem;
    margin-bottom: 5rem;
}

@media (min-width: 992px){
    .servimos{
    
    grid-template-columns: repeat(6,1fr);
    } 
}

.servimos__caja{
    background-color: var(--azulMedio);
    color: #000;
    text-transform: uppercase;
    text-align: center;
    border-radius: 1rem;
    border: 1px solid var(--negroClaro);
    padding: 0.5rem;
    font-size: 1.5rem;
}
.servimos__caja:hover{
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.servimos__caja img{
    width: 6rem;
    margin-top: -3rem;
}

/* Carrusel */

.slider-container{
 width: 75vw;
 height: auto;
 margin: auto;
 overflow: hidden;

}


.slider-track {
    display: flex;
    animation: scroll 40s linear infinite;
    -webkit-animation: scroll 40s linear infinite;
    width: calc(200px * 26);
}


.slider-item{
    width: 200px;
}

.slider-item img{
    width: 100%;
}



@keyframes scroll {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
    100% {
        -webkit-transform: translateX(-2600px);
        transform: translateX(-2600px);
    }
}



/* Mas de nosotros */

.acerca-de {
    background-color: #f8f8f8;
    padding: 50px 0;
    text-align: center;
}

.contenido {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.imagen {
    max-width: 80%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

@media (min-width: 992px) {
    .contenido {
        flex-direction: row;
        justify-content: space-between;
    }

    .imagen {
        width: 45%;
        max-height: 30rem; /* Nueva regla para limitar la altura */
    }

    .texto {
        max-width: 45%;
    }
}

.texto {
    max-width: 600px;
    margin: 0 auto;
}

.titulo {
    color: #333;
    font-size: 24px;
    margin-bottom: 10px;
}
.titulo {
    font-size: 2.5rem;
    color: #2d3e50;
    text-align: center;
    margin-bottom: 20px;
     text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}


.titulo::after {
    content: "";
    display: block;
    width: 20rem;
    height: 3px;
    background-color: #3498db; 
    margin: 10px auto;
}
.descripcion {
    color: #666;
    font-size: 1.8rem;
    line-height: 1.6;
    text-align: justify;
    padding: 1.5rem;
}

@media (min-width: 700px) {
    .descripcion {
        padding: unset;
        font-size: 2rem;
    }
}
