:root {
    --blanco: #ffffff;
    --primario: #93bff8;
    --secundario: #0097A7;
    --gris: #413e3e;
    --oscuro: #212121;
}
html {
    box-sizing: border-box;
    min-height: 100%;
    /* scroll-snap-type: y mandatory; */
}
*, *:before, *:after {
    box-sizing: inherit;
}
p {
    line-height: 2;
}
body {
    font-family: 'Krub', sans-serif;
    background-image: linear-gradient(to top, #dfe9f3 0%, white 100%);
    min-height: 100%;
    
}
h1 {
    font-size: 1.4rem;
}
h1 span {
    font-size: 1.4rem;
}
h1, h2, h3 {
    text-align: center;
}
h2 {
    font-size: 2.4rem;
}
h3 {
    color: var(--secundario);
    font-weight: 400;
    font-size: 1.6rem;
}
.contenedor {
    margin: 0 auto;
    max-width: 1200px;
}
.sombra {
    padding: 2rem;
    margin-bottom: 3rem;
    background-color: rgba(255, 255, 255, 1);
    border-radius: 10px;
    -webkit-box-shadow: 0px 11px 15px -9px rgba(0,0,0,0.63);
    -moz-box-shadow: 0px 11px 15px -9px rgba(0,0,0,0.63);
    box-shadow: 0px 11px 15px -9px rgba(0,0,0,0.63);
}
.nav-bg {
    background-color: var(--secundario);
}
.navegacion {
    scroll-snap-align: center;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    align-items: center;
}
@media (min-width:768px) {
    .navegacion {
        flex-direction: row;
        justify-content: space-between;
    }
}
.navegacion a{
    padding: 1rem 2rem;
    color: var(--blanco);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
}
.navegacion a:hover {
    background-color: var(--primario);
    color: var(--oscuro);
}
.navegacion a:last-of-type {
    margin-bottom:0;
}
@media (min-width:768px) {
    .navegacion a{
        margin-bottom: 0;
    }
}
.hero {
    height: 450px;
    background-image: url(../img/scott-graham-5fNmWej4tAA-unsplash.jpg);
    background-size: 100%;
    background-repeat: no-repeat;
    margin-bottom: 2rem;
    position: relative;
}
.contenido-hero {
    background-repeat: no-repeat;
    background-color: rgba(0, 0, 0, .7);
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
   align-items: center;
   justify-content: center;
}

.contenido-hero h2, 
.contenido-hero p {
    color: var(--blanco);
}
.boton {
    background-color: var(--secundario);
    color: var(--blanco);
    margin-top: .5rem;
    padding: .5rem 3rem;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.2rem;
    border:none;
}
.boton:hover{
    cursor: pointer;
}
.carrusel {
    display: flex;
    justify-content: center;
    min-width: 90%;
    /* height: 300px; */
}
.preguntas {
    scroll-snap-align: center;
    scroll-snap-stop: always;
}
@media (min-width:768px) {
    .preguntas {
        display: grid;
        grid-template-columns: 33.3% 33.3% 33.3%;
        column-gap: 1rem;
    }
}
.servicio {
    text-align:center;
}
.servicio {
    display: flex;
    flex-direction: column;
    align-items: center;
}


.iconos {
    display: flex;
    height: 150px;
    width: 150px;
    justify-content: space-evenly;
    align-items: center;
    background-color: var(--primario);
    border-radius: 50%;
}
.iconos i {
    font-size: 2rem;
    color: var(--oscuro);
}
/* TARJETAS */

.container {
    display: flex;
    overflow-x: scroll;
    max-width: 100%;
    height: 222px;
    scroll-snap-type: x mandatory;
    scroll-padding: 25px;
    column-gap: 10px;
    margin-top: 20px;
}

.tarjeta {
    display: block;
    padding: 50px;
    text-align: center;
    scroll-snap-align: start;
    border-radius: 50px;
    width: 600px;
    height: 196px;
    border-radius: 20%;
}

section {
    margin-top: 20px;
    margin-bottom: 20px;
}

section h2 {
    color: var(--blanco);
    margin-top: -40px;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 20px;
}

.tarjeta p {
    color: var(--blanco);
}

.tarjeta:nth-child(1) {
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url("../img/ServicioAfore.jpg");
    background-position: center center;
    -webkit-filter: blur(2px);
    transition: 1s ease;
}

.tarjeta:nth-child(1):hover {
    background-color: rgba(0, 0, 0, .3);
    transition: 1s ease;
    -webkit-filter: blur(0px);
    cursor: pointer;

}

.tarjeta:nth-child(2) {
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url("../img/ImssIssste.png");
    background-position: center center;
    -webkit-filter: blur(2px);
    transition: 1s ease;
}

.tarjeta:nth-child(2):hover {
    background-color: rgba(0, 0, 0, .3);
    transition: 1s ease;
    -webkit-filter: blur(0px);
    cursor: pointer;

}


.tarjeta:nth-child(3) {
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url("../img/pension.jpg");
    background-position: center center;
    -webkit-filter: blur(2px);
    transition: 1s ease;
}

.tarjeta:nth-child(3):hover {
    background-color: rgba(0, 0, 0, .3);
    transition: 1s ease;
    -webkit-filter: blur(0px);
    cursor: pointer;
}

@media (max-width: 768px) {
    .tarjeta {
        -webkit-filter: blur(0px) !important;
    }
}

/* TERMINA TARJETAS */

/* FOOTER */
.links {
    display: flex;
    justify-content: center;
}

.textoFooter {
    color: var(--letraTexto);
    text-align: center;

}

.imagenFooter {
    display: flex;
    justify-content: center;

}

.icon {
    max-width: 50px;

}


/* FORMULARIO */

.formulario {
    background-color: var(--gris);
    padding: 2rem;
    border-radius: 10px;
    scroll-snap-align: center;
    scroll-snap-stop: always;
}
.formulario legend {
    text-align: center;
    font-size: 1.2rem;
    color: var(--primario);
    margin-bottom: 2rem;
    display: block;
    text-transform: uppercase;
    font-weight: 700;
}
@media (min-width:768px) {
    .formulario {
        max-width: 800px;
        margin: 0 auto;
    }
}
.contenedor-campos {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.campo {
    margin-bottom: 1rem;
    width: 100%;
}
@media (min-width:480px) {
    .campo {
        display: flex;
        align-items: center;
    }
}
@media (min-width: 768px) {
    .campo{
        flex: 0 0 calc(50% - .5rem)
    }
}
.campo label {
    color: var(--blanco);
    font-weight: 700;
    margin-bottom: .5rem;
    display: block;
}
@media (min-width:480px) {
    .campo label {
        flex: 0 0 90px;
    }
}
.campo input[type="text"],
.campo input[type="tel"],
.campo input[type="mail"],
.campo textarea {
    width: 100%;
    padding: .5rem;
    border: none;
    border-radius: .5rem;
}
@media (min-width: 768px) {
    :is(.campo) :is( 
        input[type="text"], 
        input[type="text"],  
        input[type="tel"],  
        input[type="mail"] , 
        textarea ) {
        flex: 1;
    }
}

.w-100{
    flex: 0 0 100%;
}
.campo textarea {
    height: 4rem;
}

.enviar {
    display: flex;
    justify-content: flex-end;
}

.footer {
    text-align: center;
}