:root{
    --blanco: #ffffff;
    --oscuro: #212121;
    --primario: #ffc107; /*ES EL COLOR QUE MAS SE VA A UTILIZAR*/
    --secundario: #0097A7;  
    --gris: #757575;
    --dorado: rgb(137, 142,29);
    --verde: rgb(30,99,49);}

html{
    font-size: 62.5%;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body{
    font-size: 16px;    /*1 rem = 10px*/
    font-family: "Arimo", sans-serif;
    background-image: linear-gradient(to top, #DFE9F3 0%, var(--blanco) 100%);
    margin: 0;
    padding: 0;
}

a{
    text-decoration: none;
    color: black;
}

header{
    position: relative; /* para el logo */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem 4rem 2rem;
    text-align: center;
}
header img{
    position: absolute;
    top: .5rem;
    left: 2rem;
    width: clamp(8rem, 15vw, 25rem); 
    height: auto;     
}
@media (max-width: 792px) { 
    header img{ 
        position: relative; 
    } 
}
h1{
    font-size: 3em;
    text-align: center
}

header p{
    font-size: 1.3em;
    margin: 0 0 2rem 0;
}

/* Secciones */
section {
    margin: auto;
}

section h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2em;
}

.parrafo {
    text-align: center;
    max-width: 70rem;
    padding: 2rem; 
    font-style: italic;
    font-size: 1.8rem;          /* Tamaño de letra más cómodo */
    line-height: 1.8;           /* Mejor legibilidad */
    color: var(--oscuro);         /* Usa tu paleta de colores */
    background: #f9f9f9;        /* Fondo sutil */
    border-left: 5px solid #0b00df; /* Detalle tipo cita */
    border-radius: 1rem;        /* Bordes redondeados */
    margin: 2rem auto;          /* Espaciado centrado */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* Sombra suave */
    transition: transform 0.3s ease;
}

/*Navegacion principal*/
.nav-bg{
    background-color: #3a3737; /*Para el fondo*/
    border-radius: 2rem;
}

.navegacion-principal{
    display: flex; /*habilita el flexbox*/
    flex-direction: column;
}

/*PAGINA RESPONSIVA CON MEDIA QUERIES*/
@media (min-width: 768px) { 
      .navegacion-principal{
        flex-direction: row;
        justify-content: space-around;
    } 
}

.navegacion-principal a{
    display: block;
    text-align: center;
    color: var(--blanco);
    text-decoration: none; /*text tiene varias funcionalidades*/
    font-size: 2rem;
    font-weight: bold; /*Para hacerlo en negritas*/
    padding: 1rem; /*Lo interpreta como si fueran 4 veces */
}

.navegacion-principal a:hover{ /*Damos otro efecto es una pseudoclase*/
    background-color: #807e7e;
    border-radius: 10rem;
    color: #222;
}
 
/* Botón hamburguesa */
.menu-btn {
  background: none;
  border: none;
  font-size: 3rem;
  cursor: pointer;
  color: #222;
  position: absolute;
  top: 1rem;
  right: 2rem;
  z-index: 1000;
}

/* Ocultar menú en móvil */
#nav {
  display: none;
}

#nav.active {
  display: block;
}

/* En pantallas grandes mostrar nav siempre */
@media (min-width: 768px) {
  #nav {
    display: block;
  }
    .nav-bg{
        border-radius: 50rem;
    }
  .menu-btn {
    display: none;
  }
}


/* Servicios */
@media (min-width: 768px) { 
    .services{
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        column-gap: 1rem;
    }
}

.servicio {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: 2rem;
    box-shadow: 0px 5px 15px 0px rgba(128,128,128,0.54);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    margin-bottom: 3rem;
}
.servicio:hover {
    transform: translateY(-10px) ;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
}

.parrafoSomos{
    text-align:center;
    max-width:80rem;
    margin:auto;
}

.contenedor{
    max-width: 100rem;
    margin: 0 auto;
    margin-bottom: 2rem;
}
.sombra{
    -webkit-box-shadow: 0px 5px 15px 0px rgba(128,128,128,0.54);
    -moz-box-shadow: 0px 5px 15px 0px rgba(128,128,128,0.54);
    box-shadow: 0px 5px 15px 0px rgba(128,128,128,0.54);
    background-color: var(--blanco);
    padding: 2rem;
    border-radius: 5rem;
}

.contenedor-boton{
    max-width: 35.8rem;
    margin: 0 auto;
    margin-bottom: 2rem;
    justify-content: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}


.boton{
    background-color: #131313;
    color: var(--blanco);
    padding: 1rem 3rem;
    margin-top: 1rem;
    font-size: 2rem;
    text-decoration: none;
    text-transform: uppercase; /*asi se transforma en mayusculas*/
    font-weight: bold;
    border-radius: 5rem;
    width: 90%;
    text-align: center;
    border: none;
}
@media (min-width:768px) {
    .boton{
        width: auto;
    }
}
.boton:hover{
    cursor: pointer; 
    background-color: #c7c5c5;
    color: black;
}

/*Contacto*/
.formulario{
    background-color: var(--gris);
    width: min(60rem,100%); /*Toma 2 valores utiliza el valor mas pequeño*/
    margin: 0 auto; /*lo centra horizontalmente cuando el elemento es de tipo block*/
    padding: 2rem;
    border-radius: 5rem;
}

.formulario fieldset{/*Este es el que agrega los bordes*/
    border: none;
}

.formulario legend{
    text-align: center;
    font-size: 1.8rem;
    text-transform: uppercase;
    font-weight: bold; /*para que este en negritas*/
    margin-bottom: 2rem;
    color: var(--primario);
}

@media (min-width: 768px) { 
    .contenedor-campos{
        display: grid;
        grid-template-columns: repeat(2,1fr);
        grid-template-rows: auto auto 20rem;
        column-gap: 1rem; /*separacion de columnas*/
    }
      
    .campo:nth-child(3),/*si hay 4 que se llamen igual selecciona el numero que le pongamos*/
    .campo:nth-child(4){
        /*Con esto evitamos crean una clase de mas*/
        grid-column: 1 / 3;/*con esto posicionamos el elemnto*/
    }
}

.campo{
    margin-bottom: 1rem;
}

.campo label{
    color: var(--blanco);
    font-weight: bold;
    margin-bottom: .5rem;
    display: block;
}

.campo textarea{
    height: 20rem;
}

.input-text{
    width: 100%;/*ancho*/
    border: none;
    border-radius: 5rem;
    padding: 1.5rem;
}

footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 3rem 2rem;
}


