:root {
    --blanco: #ffffff;
    --oscuro: #2e2e2e;
    --primario: #82c0cc;
    --secundario: #ff6f61;
    --hover: #ff8a7a;
    --gris: #b0b0b0;
    --grisClaro: #efeff0;
    --gris-con-opacidad: #b0b0b080;
}

/* Globales */
html {
    font-size: 62.5%;
    box-sizing: border-box;
    /* Hack para Box Model */
    /*scroll-snap-type: y mandatory;*/
}

/*.servicios, .navegacion-principal, .formulario {
    scroll-snap-align: center;
    scroll-snap-stop: always;
}*/

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    font-size: 16px;
    /* 1rem = 10px */
    font-family: 'Poppins', sans-serif;
    background-image: linear-gradient(to top, var(--grisClaro) 0%, var(--blanco) 100%);
}

.contenedor {
    max-width: 120rem;
    margin: 0 auto;
}

.contenedor-nosotros {
    max-width: 105rem;
    margin: 2rem auto;
}

.boton {
    background-color: var(--secundario);
    transition: background-color 0.3s ease; /* Transición suave */
    color: var(--blanco);
    padding: 1rem 3rem;
    margin-top: 1rem;
    font-size: 2rem;
    text-decoration: none;
    text-transform: uppercase;
    text-align: center;
    border: none;
    border-radius: .5rem;
    font-weight: 700;
    width: 80%;
    border: none;
}

@media (min-width: 768px) {
    .boton {
        width: auto;
    }
}

.boton:hover {
    cursor: pointer;
    background-color: var(--hover);
}

.sombra {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    background-color: var(--blanco);
    padding: 2rem;
    border-radius: 1rem;
}

/* Tipografía */
h1 {
    font-size: 3.8rem;
    /*font-size: var(--fuente-principal);*/
}

h2 {
    font-size: 2.8rem;
}

h3 {
    font-size: 1.8rem;
}

h1,
h2,
h3 {
    text-align: center;
}

/* Titulos */
#titulo span {
    font-size: 2rem;
}

/*Utilidades*/
.w-100 {
    width: 100%;
}

.flex {
    display: flex;
}

.alinear-derecha {
    justify-content: flex-end;
}

/* Navegación principal */
/*SE CONOCE COMO UNA CLASS UTILITY*/
.nav-bg {
    background-color: var(--secundario);
}

.navegacion-principal {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 480px) {
    .navegacion-principal {
        flex-direction: row;
        justify-content: space-evenly;
    }
}

.navegacion-principal a {
    padding: 1rem;
    color: var(--blanco);
    text-decoration: none;
    font-size: 2rem;
    transition: background-color 0.3s ease;
}

.navegacion-principal a:hover {
    background-color: var(--primario);
}

/* Hero */
.hero {
    background-image: url(/assets/img/hero.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    height: 300px;
    /*padding: 20px;*/
    position: relative;
    margin-bottom: 2rem;
}

.contenido-hero {
    position: absolute;
    background-color: #2e2e2ed8;
    width: 100%;
    height: 100%;
    /*
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;*/

    display: flex;
    flex-direction: column;
    align-items: center;
    /*HORIZONTALMENTE*/
    justify-content: center;
    /*VERTICALMENTE*/
}

.contenido-hero h2,
.contenido-hero p {
    color: var(--blanco);
}

/*Servicios*/
@media (min-width: 768px) {
    .servicios {
        display: grid;
        /*grid-template-columns: 33.3% 33.3% 33.3%;*/
        /*grid-template-columns: 1fr 1fr 1fr; Lo mismo que un 33.3%, un tercio*/
        grid-template-columns: repeat(3, 1fr);
        /*Lo mismo que el anterior pero nos ahorramos escribir 1fr 3 veces*/
        /*grid: 200px 800px / 300px 300px;
    La primera parte sería las rows, y después de la barra las columnas*/
        column-gap: 1rem;
    }
}

.servicio {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.servicio h3 {
    font-weight: normal;
}

.servicio p {
    line-height: 2;
    /*Interlineado*/
}

.servicio .iconos {
    height: 15rem;
    width: 15rem;
    background-color: var(--primario);
    border-radius: 50%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

/* Animaciones suaves para íconos */
.iconos svg {
    transition: transform 0.3s ease, stroke 0.3s ease;
}

.iconos svg:hover {
    transform: rotate(10deg) scale(1.1);
    stroke: var(--grisClaro);
}

.iconos svg:active {
    transform: rotate(-5deg) scale(0.95);
    stroke: var(--grisClaro);
}

/*Formulario de Contacto*/
.formulario {
    background-color: var(--gris-con-opacidad);
    width: min(60rem, 100%);
    /*Min utiliza el valor mas pequeño*/
    margin: 0 auto;
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.formulario fieldset {
    border: none;
}

.formulario legend {
    text-align: center;
    font-size: 1.8rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--oscuro)
}

@media (min-width: 768px) {
    .contenedor-campos {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto 23rem;
        column-gap: 1rem;

    }

    .campo:nth-child(3),
    .campo:nth-child(4) {
        grid-column: 1 / 3;
    }
}

.campo {
    margin-bottom: 1rem;
}

.campo label {
    color: var(--blanco);
    font-weight: bold;
    margin-bottom: .5rem;
    display: block;
}

.campo textarea {
    height: 20rem;
}

/*Para coger un input en especifico ponemos .campo input[type="text"] {}*/
.input-text {
    width: 100%;
    border: none;
    padding: 1.5rem;
    border-radius: .5rem;
}

.footer {
    text-align: center;
}

/* Sección Nosotros */
.contenido-nosotros {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 2rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .contenido-nosotros {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }

    .texto-nosotros {
        padding-left: 2rem;
    }
}

.imagen img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
}

.texto-nosotros p {
    line-height: 1.6;
    margin-bottom: 1rem;
}