:root{
    --blanco: #fff;
    --negro: #000;
    --gris: #797979;
    --grisClaro: #cecece;
    --primero: #1b9447;
    --segundo: #c33328;
    --tercero: #443089;
    --cuarto: #e99524;

    --fuentePrincipal: "Zain", sans-serif;
}

.zain-light {
    font-family: "Zain", sans-serif;
    font-weight: 300;
    font-style: normal;
  }
  
.zain-bold {
    font-family: "Zain", sans-serif;
    font-weight: 700;
    font-style: normal;
}

html{
    box-sizing: border-box;
    font-size: 62.5%;
    scroll-behavior: smooth;
}

*, *::before, *::after{
    box-sizing: inherit;
}

/*EL TAMAÑO DE LAS IMAGENES DEBE SER 2070 DE ANCHO CON 1050 DE ALTO*/

/*GLOBALES*/

body{
    background-color: var(--blanco);
    line-height: 1.5;
}
p{
    font-family: var(--fuentePrincipal);
    font-weight: 300; /* light */
    font-size: 2.1rem;
    color: var(--negro);
}
a{
    text-decoration: none;
    font-family: var(--fuentePrincipal);
    font-weight: 300; /* light */
}
ul{
    font-family: var(--fuentePrincipal);
    font-weight: 300; /* light */
}
li{
    font-family: var(--fuentePrincipal);
    font-weight: 300; /* light */
    font-size: 2.1rem;
    
}
  
img{
    max-width: 100%;
}
.contenedor{
    max-width: 150rem;
    margin: 0 auto;
    border-radius: .5%;
}
h1, h2, h3{
    text-align: center;
    color: var(--gris);
    font-family: var(--fuentePrincipal);
    font-weight: 700; /* bold */
}
h1{
    font-size: 5rem;
}
h2{
    font-size: 3.5rem;
}
h3{
    font-size: 3rem;
}

/*UTILIDADES*/

.width-100{
    width: 100%;
}
@media (min-width: 768px) {
    .width-100{
        width: auto;
    }
}
.flex{
    display: flex;
}

.alinear-derecha{
    justify-content: flex-end;
}

.cursiva{
    font-style: oblique;
}

.boton{
    background-color: var(--gris); /*CAMBIA EL COLOR DEL BOTON*/
    color: var(--blanco); /*CAMBIA EL COLOR DE LA LETRA*/
    padding: 1rem 3rem; /*SE AGRANDA EL BOTON POR TODOS LOS LADOS 1REM ARRIBA Y ABAJO Y 3 REM DERECHA E IZQUIERDA*/
    margin-top: 2rem; /*SE SEPARA DE ARRIBA POR FUERA DEL BOTON*/
    font-size: 2.5rem; /*AUMENTA EL TAMAÑO DE LA LETRA*/
    text-decoration: none; /*ELIMINA EL SUBRAYADO*/
    text-transform: uppercase; /*CONVIERTE LO ESCRITO EN MAYUSCULA*/
    font-family: var(--fuentePrincipal);
    font-weight: 700; 
    border-radius: .7rem;
    width: 70%;
    text-align: center;
    border: none;

}
@media (min-width: 768px) {
    .boton{
        width: auto; /*AJUSTA EL BOTON A LA NORMALIDAD CON PANTALLAS MAYOR A 768PX*/
    }
}

.boton:hover{
    cursor:pointer;
}
/*HEADER*/

.header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
}

@media (min-width: 768px) {
    .header{
            flex-direction: row;
        }
    }

.header__logo{
    width: 40rem;
    
}

/*NAVEGACIÓN*/

.navegacion-principal {
    display: flex; /*COLOCA LOS NOMBRES EN HORIZONTAL LADO A LADO*/
    flex-direction: column; /*EL HORIZONTAL LOS ORDENA EN FORMA DE COLUMNA*/
    margin-top: 1rem;
    margin-bottom: 1rem;
    
}

@media (min-width: 768px) {
    .navegacion-principal{
        flex-direction: row;
        justify-content: space-evenly;
        align-items: flex-end;
        width: 100%;
    }
}
.navegacion-principal a {
    font-family: var(--fuentePrincipal);
    font-weight: 300; /* light */
    display: block;
    text-align: center;
    color: var(--negro);
    font-size: 3rem;
    padding: 1rem;
    transition: background-color 0.3s ease-in-out;
    border-radius: 5rem;
    
}
.navegacion-principal a:nth-child(1):hover {
    background-color: var(--primero);
    color: white;
}

.navegacion-principal a:nth-child(2):hover {
    background-color: var(--segundo);
    color: white;
}

.navegacion-principal a:nth-child(3):hover {
    background-color: var(--tercero);
    color: white;
}

.navegacion-principal a:nth-child(4):hover {
    background-color: var(--cuarto);
    color: white;
}


/*CARRUSEL*/
/*
.carrusel {
    position: relative;
    overflow: hidden;
    
    width: 140rem; /* El ancho visible del carrusel 
    height: 75rem; /* Ajusta según altura de tus imágenes 
    margin: 0 auto; /* Centrar el carrusel 
}

.carrusel__contenedor {
    display: flex;
    width: fit-content; /* Ajustar al total de las imágenes 
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carrusel__imagen {
    width: 170rem; /* Ancho fijo de cada imagen 
    height: 100%;
    object-fit: cover;
}

/* Botones del carrusel 
.carrusel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 3rem;
    padding: 1rem;
    cursor: pointer;
    z-index: 100;
}

.carrusel__btn--atras {
    left: 0;
}

.carrusel__btn--adelante {
    right: 0;
}
*/

.carrusel {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    width: 100rem;
    height: 75rem;
    margin: 0 auto;
}

.carrusel__contenedor {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carrusel__imagen {
    width: 100rem;
    height: 75rem;
    object-fit: contain; /* Muestra la imagen completa sin recortarla */
    flex-shrink: 0;
}

.carrusel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 3rem;
    padding: 1rem;
    cursor: pointer;
    z-index: 100;
}

.carrusel__btn--atras {
    left: 0;
}

.carrusel__btn--adelante {
    right: 0;
}



/* SERVICIOS */
.servicios {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    margin-left: 2rem;
    margin-right: 2rem;
  }
  
.servi {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
  }
  
.iconos {
    margin: 1rem auto;
    width: 120px;
  }
  
.cursiva {
    font-style: italic;
    font-weight: 700;
  }
  
  /* RESPONSIVE GRID */
@media (min-width: 768px) {
    .servicios {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  /* SERVICIOS Y BENEFICIOS */
.servicios-beneficios {
    margin-bottom: 2rem;
    margin-left: 2rem;
    margin-right: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
.servicios-incluidos, .beneficios {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
ul {
    list-style: disc;
    padding-left: 20px;
  }
  
li {
    margin-bottom: 10px;
  }
  
  /* RESPONSIVE PARA BENEFICIOS */
  @media (min-width: 768px) {
    .servicios-beneficios {
      grid-template-columns: repeat(2, 1fr);
    }
  }

/* CLIENTES */
.clientes {
    text-align: center;
    padding-top: 2rem;
    margin-left: 2rem;
    margin-right: 2rem;
}

.clientes img {
    width: 15rem;  /* Ajusta el tamaño según necesidad */
    height: 15rem;
    object-fit: contain;
}

.clientes-container {
    display: flex;
    flex-wrap: wrap; /* Permite que los logos se ajusten en pantallas pequeñas */
    justify-content: center;
    gap: 2rem; /* Espacio entre los logos */
}


/* NOSOTROS */

.nosotros {
    text-align: center;
    padding: 4rem 2rem 2rem 2rem;
    margin-left: 2rem;
    margin-right: 2rem;
}

.nosotros p {
    font-size: 2.1rem;
    margin: 0 2rem 0 2rem;
}

.nosotros__grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.nosotros__item {
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border-radius: 1rem;
    
}

.nosotros__item h2 {
    color: var(--negro);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.nosotros__item ul {
    padding-left: 2rem;
    font-size: 2.1rem;
    text-align: left;
}

@media (min-width: 768px) {
    .nosotros__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, auto);
    }
}

/* CONTACTO */

.contacto {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-left: 2rem;
    margin-right: 2rem;
}
  
.contactos {
    flex: 1; /* Se adapta mejor en pantallas pequeñas */
    min-width: 20rem;
    padding: 2rem;
}

.contactos div {
    display: flex;
    align-items: center;
    gap: 1rem; /* Espacio entre icono y título */
}

.contactos h2 {
    display: inline-flex;
    margin: 0;
}
.contenido-contacto {
    display: flex;
    flex: 0.4;
    justify-content: space-between; /* Distribuye los elementos con espacio */
    gap: 2rem; /* Separación entre los elementos */
    flex-wrap: wrap; /* Permite que se ajusten a pantallas pequeñas */
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
  
.formulario {
    flex: 0.6;
    min-width: 30rem;
    padding: 2rem;
    background-color: var(--grisClaro);
}
  
@media (min-width: 768px) {
    .contacto {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .contenido-contacto,
    .formulario {
        width: 48%;
    }
}

.formulario{
    background-color: var(--grisClaro);
    width: min(80rem, 100%); /*valor mas pequeño*/
    margin: 0 auto;
    padding: 2rem;
    border-radius: 2rem;
    font-family: var(--fuentePrincipal);
    font-weight: 300; /* light */
    

}
.formulario fieldset{
    border: none;
}
.formulario legend{
    text-align: center;
    font-size: 2rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--gris);
}
.formulario label{
    font-family: var(--fuentePrincipal);
    font-weight: 700;
    font-size: 2rem;
}
.formulario .input-text{
    font-family: var(--fuentePrincipal);
    font-weight: 700;
    font-size: 2rem;
    width: 100%;
    border: none;
    padding: 1.5rem;
    border-radius: .5rem;
}

@media (min-width: 768px) {
    .contenedor-campos{
        display: grid; /* Se progrma para volverse tabla */
        grid-template-columns: 50% 50%; /* Se crean dos columnas */
        grid-template-rows: auto auto 25rem ;
        column-gap: 1rem; /* Se separan las columnas por 1 rem */
    }
    .campo:nth-child(4){
        grid-column: 2 / 3 ;
    }
    .campo:nth-child(5){ /* Cuando a una clase que se repite, el nth-child, toma el que va en el puesto 5 */
        grid-column: 1 / 3;
    }
}

.campo{
    margin-bottom: 1rem;
}
.campo label{
    color: var(--gris);
    font-weight: bold;
    margin-bottom: .5rem;
    display: block;
}
.campo textarea{
    width: 100%;
    height: 23rem;
    resize: none;
}

/* FOOTER */ 

.footer{
    text-align: center;
    background-color: var(--blanco);
    font-family: var(--fuentePrincipal);
    font-weight: 700;
    margin: 3rem auto;
}

.footer__logo{
    margin: 1rem auto;
    width: 30rem;
}