:root {
    --blanco: #ffe5ec;
    --oscuro: #ffc2d1;
    --primario: #ffb3c6;
    --secundario: #ff8fab;
    --gris: #fb6f92;
}

html {
    font-size: 62.5%;
    box-sizing: border-box;
    scroll-snap-type: y mandatory;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    font-size: 16px;
    font-family: 'Krub', sans-serif;
    background-image: linear-gradient(to top, #97167d 0%, var(--blanco)100%);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

h1 {
    font-size: 3.8rem;
}

h2 {
    font-size: 2.8rem;
}

h3 {
    font-size: 1.8rem;
}

h1, h2, h3 {
    text-align: center;
}

.titulo span {
    font-size: 2rem;
}


.contenedor {
    width: 90%;
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}


.boton {
    background-color: var(--secundario);
    color: var(--blanco);
    padding: 1rem 3rem;
    margin-top: 1rem;
    font-size: 1.6rem;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: .5rem;
    width: 100%;
    text-align: center;
    border: none;
    display: inline-block;
}


.sombra {
    -webkit-box-shadow: 0px 5px 15px 0px rgba(99, 97, 99, 0.63);
    -moz-box-shadow: 0px 5px 15px 0px rgba(99, 97, 99, 0.63);
    box-shadow: 0px 5px 15px 0px rgba(99, 97, 99, 0.63);
    background-color: var(--blanco);
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
}


.nav-bg {
    background-color: var(--secundario);
}

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

.navegacion-principal a {
    color: black;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
    padding: 1rem;
    width: 100%;
    text-align: center;
    transition: background-color 0.3s ease;
}

.navegacion-principal a:hover {
    background-color: var(--blanco);
}


.hero {
    background-image: url(Fondo.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    height: 45rem;
    position: relative;
    margin-bottom: 2rem;
}

.contenido-hero {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.7);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.contenido-hero h2,
.contenido-hero p {
    color: var(--blanco);
    margin: 0;
}

.contenido-hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.ubicacion {
    display: flex;
    align-items: center;
    margin: 1rem 0;
}

.ubicacion svg {
    margin-right: 0.5rem;
}


.servicios {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.servicio {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background-color: var(--blanco);
    border-radius: 1rem;
}

.servicio h3 {
    color: black;
    font-weight: normal;
    margin-bottom: 1rem;
}

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

.servicio .iconos {
    height: 12rem;
    width: 12rem;
    background-color: var(--primario);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}


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

.formulario fieldset{
    border: none;
}

.formulario legend{
    text-align: center;
    font-size: 1.8rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primario);
}

.contenedor-campos{
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    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{
    color:var(--blanco);
    font-weight: bold;
    margin-bottom: .5rem;
    display: block;
}

.campo textarea{
    height:20rem;
}

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

.enviar.boton{
    width: 100%;
}


.footer {
    text-align: center;
    font-size: 1.6rem;
    padding: 2rem;
    background-color: var(--secundario);
    margin-top: 2rem;
}


.flex {
    display: flex;
}

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

.w-100 {
    width: 100%;
}


@media (min-width: 768px) {
    .navegacion-principal {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .navegacion-principal a {
        width: auto;
    }
    
    .boton {
        width: auto;
        font-size: 2rem;
    }
    
    .boton:hover {
        cursor: pointer;
        background-color: var(--gris);
    }
    
    .servicios {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contenedor-campos {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .campo:nth-child(3),
    .campo:nth-child(4) {
        grid-column: 1 / 3;
    }
    
    .contenido-hero h2 {
        font-size: 4rem;
    }
}


@media (min-width: 992px) {
    .servicios {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contenido-hero h2 {
        font-size: 5rem;
    }
    
    .hero {
        height: 55rem;
    }
}


@media (max-width: 400px) {
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .hero {
        height: 40rem;
    }
    
    .servicio .iconos {
        height: 10rem;
        width: 10rem;
    }
}