:root {
    --negro:#1f1f1f; 
    --beige: #efe7d6;
    --amarillo: #ffd47c;
    --azul: #6c81fe;
    --rojo: #ff5757;
    --blanco: #ffffff;

    --fuente-principal: 3.8rem;
}

/* Globales */
html {
    font-size: 62.5%;
    box-sizing: border-box;  /*Hack para box model */
    /* scroll-snap-type: y mandatory; */
}

/* Scroll Snap */
/* .kacemos, .navegacion-principal, .formulario {
    scroll-snap-align: center;
    scroll-snap-stop: always;
} */

*, *:before, *:after {
    box-sizing: inherit;
}
  
body {
    font-size: 16px;/*1rem=10px*/
    font-family: "Ysabeau", serif;
    background-color: #efe7d6;
}

.contenedor {
    max-width: 120rem;
    margin: 0 auto;
}

.boton {
    background-color: #6c81fe;
    color: #efe7d6;
    text-decoration: none;
    padding: 1rem 2rem;
    margin-top: 1.5rem;
    font-size: 1.5rem;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 1rem;
    border: none;
}

.boton:hover {
    cursor: pointer;
}

/* .sombra {
    -webkit-box-shadow: 8px 8px 8px 8px rgb(201, 171, 106);
    -moz-box-shadow: 8px 8px 8px 8px rgb(172, 145, 88);
    box-shadow: 8px 8px 8px 8px rgb(165, 137, 77);
    border-radius: 1rem;
    padding: 2rem;
} Lo quitamos porque a antoñita no le gusta como queda */

/* Tipografía */
/* h1 {
    font-size: 3.8rem;
    font-family: "Ranchers", serif;
} */

h2 {
    font-size: 2.8rem;
}

h3 {
    font-size: 1.8rem;
}

h1, h2, h3 {
    text-align: center;
}
img {
    max-width: 100%;
}

/* Logo */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
}
.header__logo {
    max-width: 60%;
}
@media (min-width: 768px) {
    .header__logo {
        max-width: 40%;
    }
}

/* Utilidades */
.w-sm-100 {
    width: 100%;
}

@media (min-width: 768px) {
    .w-sm-100 {
        width: auto;
        margin-top: 6rem;
    }
}

.flex {
    display: flex;
}

.alinear-derecha {
    justify-content: flex-end;
}

.subtitulo {
    font-family: "Meow Script", serif;
}
/* Navegación principal */
.nav-bg {
    background-color: #6c81fe;
}

.navegacion-principal {
   
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 480px) {
    .navegacion-principal {
        flex-direction: row;
        justify-content: space-between;
    }
}

.navegacion-principal a {
    color: #efe7d6;
    text-decoration: none;
    font-size: 2rem;
    font-weight: bold;
    padding: 1rem;
}

.navegacion-principal a:hover {
    background-color: #ffd47c;
    color:#1f1f1f;
    border-radius: 1rem;
}

/* Imagen portada */
.portada {
    background-image: url(../img/Portada.png);
    background-repeat: no-repeat;
    background-size: cover;
    height: 250px;
    position: relative;
    margin-bottom: 3rem; /* esta línea es para separar la imagen del h2 ¿qué hacemos? */
}

.contenido-portada {
    position: absolute;
    background-color: rgb(0, 0, 0, 0.5); /** Anterior **/
    background-color: rgb(0 0 0 / 50%);
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contenido-portada h2, .contenido-portada p {
    color: #efe7d6;
}

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

.kacemos {
    margin: 2rem;
}

.servicio {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.servicio h3 {
    color: #6c81fe;
    font-weight: normal;
}

.servicio p{
    line-height: 2;
    text-align: center;
}

.servicio .iconos {
    height: 13rem;
    width: 13rem;
    background-color: #ff5757;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Contacto*/

.formulario {
    background-color: #ffd47c;
    width: min( 60rem, 100%);
    margin: auto;
    padding: 2rem;
    border-radius: 2rem;
}

.formulario fieldset {
    border: none;
}

.formulario legend {
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .contenedor-campos {
        display: grid;
        grid-template-columns: 50% 50%;
        grid-template-rows: auto auto 20rem;
        column-gap: 1rem;
    }
    .campo:nth-child(3), .campo:nth-child(4) {
        grid-column: 1 / 3;
    }
}

.campo {
    margin-bottom: 1rem;

}

.campo label {
    font-weight: bold;
    margin-bottom: 1rem;
    display: block;
}

.campo textarea {
    height: 20rem;
}

.input-text {
    width: 100%;
    border: none;
    padding: 1.5rem;
    border-radius: 1rem;
}

/* Footer */
.footer {
    text-align: center;
}
