:root {
    --blanco: #ffffff;
    --oscuro: rgba(0, 0, 0, 0.8);
    --amarillo: #eab925;
    --celeste: #0097a7;
    --negro: #0e0c0c;
    --gris:#44494a;
}

html{
    margin: 0;
    padding: 0;
    font-size: 62.5%;
    box-sizing: border-box;
    
}

body {
    margin: 0;
    padding: 0;
    font-size: 16px; /* 1 rem= 10px */
    font-family: sans-serif;
    background-color: var(--amarillo);
    
}

main{
    display: grid;
    grid-template-rows: auto auto auto;
    row-gap: 2rem;
}

*, *:before, *:after {
    box-sizing: inherit;
  }

  a{
    text-decoration: none;
    color: white; 
 }
 /*-------------------------------- navigator bar -------------------------------*/
 .background-container{
     width: 100%;
     height: 41rem;
     position: absolute;  
 }
 .background-img{
     width: 100%;
     height: 100%;
     object-fit: cover;
 }
 header{
     width: 80%;
     height: 41rem;
     margin: 0 auto;
     position: relative;
 }
 
 @media (max-width: 800px) {
     .background-container{
         width: 100%;
         height: 50rem;
         position: absolute;  
     }
     .background-img{
         width: 100%;
         height: 100%;
         object-fit: cover;
     }
     header{
         width: 80%;
         height: 50rem;
         margin: 0 auto;
         position: relative;
     }
 }
 
 @media (max-width: 450px) {
     .background-container{
         width: 100%;
         height: 70rem;
         position: absolute;  
     }
     .background-img{
         width: 100%;
         height: 100%;
         object-fit: cover;
     }
     header{
         width: 80%;
         height: 70rem;
         margin: 0 auto;
         position: relative;
     }
 }
 
 /* -------------------propiedades de la barra de navegacion------------------- */
 .contenedor{
     width: 70%;
     margin: 0 auto;
 }
 
 .contenedor h1{
     text-align: center;
 }
 
 .barra { /* propiedades de la barra de navegacion */
     width: 100%;
     height: auto;
     position: absolute;
     display: flex;
     justify-content: space-between;
     align-items: center;
     background-color: var(--oscuro);
     color: var(--blanco);
     border-radius: 1rem;
     margin-top: 2rem;
 
 }
 
 .navegacion{
     margin: 2rem;
 }
 .navegacion a{
     color: var(--blanco);
     text-decoration: none;
     margin: .5rem;
 }
 

 
 @media (max-width: 768px) {
     .barra{
         flex-direction: column;
         padding-bottom: 2rem;
     }
     .nombre-logo{
         text-align: center;
     }
     .navegacion {
         margin: 0;
         padding: 0;
     }
 }
 
 
 @media (max-width: 500px) {
     .barra{
         flex-direction: column;
         padding-bottom: 2rem;
     }
     .navegacion {
         margin: 0;
         padding: 0;
     }
     .navegacion a{
         display: block;
         margin: 1rem;
     }
     .nombre-logo{
         text-align: center;
     }
     
 }
 
 @media (max-width: 450px) {
     .logo{
         flex-direction: column;
         padding-bottom: 2rem;
     }
 }
 
 
 nav a{
     font-weight: 600;
     padding-right: 15px;
     font-size: 2rem;
     
 }
 
 nav a:hover{
     color: brown;
 }
 
 @media (max-width: 1100px) {
    nav {
        display: flex;
        flex-wrap: wrap; /* Permite que los enlaces se ajusten en varias filas */
        justify-content: space-between; /* Espacio entre enlaces */
    }
    nav a {
        flex: 1 1 45%; /* Permite que los enlaces se distribuyan en filas de dos elementos */
        padding: 10px 5px; /* Ajusta el padding para más espacio */
        text-align: center;
    }
}


 @media (max-width: 768px){
     nav{
         display: block;
         font-size: large;
         padding: 5rem 0px;
     }
     nav a{
         font-weight: 700;
         padding: 0;
         text-align: center;
     }
     
 }
 
 /* -------------------propiedades del logo------------------- */
 
 .logo{
     display:flex;
     align-items: center;
     
 }
 
 .logo h1{
     color: var(--blanco);
     padding: 1rem 1rem 0 1rem;;
     margin: 0;
     font-size: x-large;
     font-weight: 750;
     text-align: center;
 }
 
 .logo-img { /* imagen del logo*/
     width: 11rem;
     height: 11rem;
     border-radius: 50%;
     padding: 1rem;
 }

 .logo-img2 { /* imagen del logo*/
    width: 10rem;
    height: 10rem;
    padding: 1rem;
}

.logo-img3 { /* imagen del logo*/
    width: 25rem;
    height: 5rem;
    padding: 1.3rem;
    margin-top: -1.3rem ;
}

.nombrers{
    display: flex ;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


/* ------------------------- contenedor informacion ----------------------------*/

.informacion{
    display: grid;
    grid-template-rows: 1fr 1fr ;
    row-gap: 2rem;
}

/* ----------------------------- seccion nosotros -------------------------------*/
.contenedor:nth-child(1), .contenedor:nth-child(2) {
    background-color: var(--negro);
    color: var(--blanco);
    margin-top: 2rem;
    border-radius: 2rem;
}




.imagenes-nosotros {
    display: flex;
    justify-content: center;
    align-items: center;

}

.imagenes-nosotros img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-left : 1rem ;
}

.texto-nosotros{
    text-align: justify;
    width: 80%;
    margin: 0 auto;
    padding: 2rem ;
}

@media (max-width: 900px) {
    .img-y-text{
        display: block;
    }
    .imagenes-nosotros{
        padding:0 1.5rem 0 0;
    }
    .imagenes-nosotros img {
        width: 45%;
        object-fit: cover;
        border-radius: 5px;
       
    }
    .texto-nosotros{
        padding: 0 3rem 0 3rem;
        width: 90%;
        margin: 0 auto;
       
    }
}

@media (max-width: 468px) {
    .img-y-text{
        display: block;
    }

    .imagenes-nosotros{
        padding:0 ;
        display: flex;
        flex-direction: column;
        gap:1rem;
    }

    .imagenes-nosotros img {
        width: 80%;
        object-fit: cover;
        border-radius: 5px;
        margin :0 1rem ;
    }
}

/* ------------------------- seccion servicios ----------------------------*/
.texto-servicios{
    display: flex;
    text-align: justify;
    align-items: center;
    padding: 0 3rem 3rem 3rem;
}

.imagenes-servicios {
    display: flex;
    justify-content: center;
    align-items: center;

}

.imagenes-servicios img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin :0 1rem ;
}

.texto-servicios{
    width: 80%;
    margin: 0 auto;
}

h1{
    font-size: x-large;
    font-weight: 800;
}

@media (max-width: 1000px) {
    .img-y-text2{
        display: block;
    }

    .imagenes-servicios{
        padding:0 0 0 2rem;
    }

    .imagenes-servicios img {
        width: 45%;
        object-fit: cover;
        border-radius: 5px;
        margin :0 1rem;
    }

    .imagenes-servicios img:last-child{
        width: 0;
        height: 0;
    }
    
    .texto-servicios{
        width: 90%;
        margin: 0 auto;
    }
    
}

@media (max-width: 468px) {
    .img-y-text2{
        display: block;
    }
    .imagenes-servicios{
        padding:0 ;
        display: flex;
        flex-direction: column;
        gap:1rem;
    }

    .imagenes-servicios img {
        width: 80%;
        object-fit: cover;
        border-radius: 5px;
        margin :0 1rem ;
    }
}
/* ------------------------- formulario ----------------------------*/

.contenedor {
    width: 70%;
    margin: 0 auto;
}

.h1-3{
    font-size: 3rem;
}

.formulario{
    width: 100%;
    background-color: var(--gris);
    margin: 2rem auto;
    padding: 1rem;
    border-radius:2rem ;
    display: flex;
    justify-content: center;
    gap: 2rem;
 }

 
 
.infoContact h1{
   font-size: 2.5rem;
   margin: 2rem 0 0 0;
   display: inline-block;
   font-weight: 700;
}

.infoContact {
    width: 45%;
    text-align: justify;
    margin: 0 auto;
 }

.infoContact a{
    display: block;
    text-align: start;
    color: var(--negro);
}

.infoContact i {
    text-align: start;
    color: var(--celeste);
}
 
.infoContact .logo-img3{
/* imagen del logo*/
    width: 70%;
    padding: 1.3rem;
    margin-top: -1.3rem ;

}
 .formulario fieldset{
    border: none;
    width: 100%;
    margin-top: 2rem;
 }

 .formulario legend{
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--negro);

 }

.formulario textarea{
    height: 17rem;
}


@media (max-width: 800px) {
    .infoContact{
        width: 90%;
        margin: 0 auto;
    }

    .formulario {
        flex-direction: column;
    }
}
 /* ------------ Campos ---------------- */

 
 @media (min-width: 768px) {
    .contenedor-campos {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto 20rem;
        column-gap: 1rem;
    } 

    .campo:nth-child(3), .campo:nth-child(4) {
        grid-column: 1/3;
    }

    .campo:nth-child(4){
        grid-row: 3/4;
    }
 }

 .contenedor-campos {
    border-color: var(--negro);
    border-style: groove;
 }
 .campo {
    margin-bottom: 1rem;
 }

 .campo label{
    color: var(--blanco);
    font-weight: bold;
    margin-bottom: .5rem ;
    display: block;
 }

.input-campo {
    width: 100%;
    padding: 1rem;
    border-radius: .5rem;
    border: none;
}

/* utilidades */
.w-100 {
    width: 100%;
}

.flex {
        display: flex;
    }

.mover-derecha {
    justify-content: flex-end;
}

@media (min-width: 768px){
    .w-100{
        width: auto;
        padding: 1rem 2rem;
    }
}
.boton{
    background-color: var(--celeste);
    color: var(--blanco);
    padding: 1rem;
    margin-top: 1rem;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: .5rem;
    width: 30%;
    border: none;
}