:root {
    --fuenteHeading: 'Montserrat', 'sans-serif';
    --fuenteParrafo: 'Montserrat', 'cursive';
    --azul: #082672;
    --blanco: #f4f4f4;
    --azulClaro: #bfcbeb;
    --negro: black;
    --azulMuyClaro: #e6e9f1;
    --azulParrafo: #6b7daa;
    --azulFooter: #213c80;
    --otroAzul: #ced4e3;
    
}

/* Globales */
html {
    box-sizing: border-box;
    font-size: 62.5%;
    /* 1rem = 10px */

}

*,
*::before,
*::after {
    box-sizing: inherit;
    


}

body {
    font-family: var(--fuenteParrafo);
    font-size: 1.6rem;
    line-height: 2;
    background-color: var(--azulMuyClaro);
}

a {
    text-decoration: none;
    font-weight: 700;
}

.contenedor {
    max-width: 120 rem;
    width: 90%;
    /* width: min(90%, 120rem); Otra forma*/
    margin: 0 auto;
}


h1,
h2,
h3,
h4 {
    font-family: var(--fuenteHeading);
    line-height: 1.2;
    color: var(--azulParrafo);
}

h1 {
    font-size: 4.8rem;
}

h2 {
    font-size: 4.2rem;
}

h3 {
    font-size: 3.6rem;
}

h4 {
    font-size: 3rem;
}

img {
    width: 100%;
}

/* Fin de Globales */

/* Header */

.header {
    background-color: var(--azul);
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

/* .header__texto {
    margin-right: auto;
}

.header__texto h1 {
    color: var(--blanco);
}

.navegacion {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 2rem;
}

.navegacion a {
    font-size: 1.6rem;
    color: var(--blanco);
} */

.header__texto {
    margin-right: auto;
}

.header__texto h1 {
    color: var(--blanco);
    
}

.logo {
    width: 12rem;
    height: auto;
    display: block;
}


.navegacion {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.navegacion a {
    font-size: 1.6rem;
    color: var(--blanco);
    transition: all 0.3s ease 0s;
}

.navegacion a:hover {
    color: var(--azulClaro);
}

@media (min-width: 768px) {
    .navegacion {
        flex-direction: row;
        justify-content: space-around;
        gap: 3rem;
    }
}

footer {
    text-align: center;
    background-color: var(--azulFooter);
    padding: 1rem;
    position: static;
}

footer p {
    color: var(--blanco);
}

@media (min-width: 768px) {
    .ajuste {
        display: flex;
        justify-content: space-around;
    }
    
    .footer p{
        text-align: center;
    }
    
    .footer__contactos {
        display: flex;
        align-items: center;
    }
}

/*Formulario del contacto*/

.sombra {
    -webkit-box-shadow: 0px 5px 15px 0px rgba(0,0,0,0.28);
    -moz-box-shadow: 0px 5px 15px 0px rgba(0,0,0,0.28);
    box-shadow: 0px 5px 15px 0px rgba(0,0,0,0.28);
    background-color: var(--blanco);
    padding: 2rem;
    border-radius: 1rem;
}

.centrar-texto h2{
    text-align: center;
    padding: 2rem;
}

.formulario {
    width: min(60rem, 100%); /* Utiliza el valor más pequeño */
    margin: 0 auto; /* Utilizar el margin cuando el padre no tienen un display flex */
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 1rem;
    background-color: var(--otroAzul);
}

.formulario fieldset {
    border: none;
}

.formulario legend {
    text-align: center;
    font-size: 1.8rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--negro);
}

.campo {
    margin-bottom: 1rem;
}

.campo label {
    color: var(--negro);
    display: block;
}

input[type="text"],
input[type="email"],
textarea {
    display: block;
    width: 100%;
    border: none;
    padding: 1.5rem;
    border-radius: .5rem;
}

textarea {
    height: 20rem;
    resize: none;
}

button[type="submit"] {
    background-color: #000000;
    color: var(--blanco);
    padding: 1rem 2rem;
    border-radius: 3rem;
    cursor: pointer;
    
  }
  button:hover {
    color: var(--azulParrafo);
  }

  .contenedor-campos button[type="submit"]:hover {
    color: var(--rojo);
    display: flex;
  }

