:root {
    --fuenteHeading: 'Merriweather', serif;
    --fuenteParrafos: 'Noto Sans', sans-serif;

    --primario: #784D3C;
    --secundario: #F1C40F;
    --amarillo: #FFEB3B;
    --gris-black: #3D3B40;
    --gris-claro: #808B96;
    --gris: #f7f7f7;
    --blanco: #ffffff;
    --negro: #000000;

}

html {
    box-sizing: border-box;
    font-size: 62.5%;
    /* 1 rem = 10px */
    scroll-behavior: smooth;
}

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

body {
    font-family: var(--fuenteHeading);
    font-size: 1.6rem;
    line-height: 2;
}

/** Globales **/
.contenedor {
    width: min(95%, 160rem);
    margin: 0 auto;
}

a {
    text-decoration: none;
}

h1,
h2,
h3,
h4 {
    font-family: var(--fuenteHeading);
    line-height: 1.2;
    text-align: center;

}

h1 {
    font-size: 4.8rem;
}

h2 {
    font-size: 4rem;
}

h3 {
    font-size: 3.2rem;
}

h4 {
    font-size: 1.3rem;
    color: var(--gris-black);
}

p {
    font-size: 1.8rem;
    color: var(--gris-claro);
}

img {
    max-width: 100%;
    vertical-align: top;
}

hr {
    width: 80%;
    size: 2px;
    color: var(--gris);
    margin: 8rem;
}

/** Utilidades **/
.no-margin {
    margin: 0;
}

.no-padding {
    padding: 0;
}

.centrar-texto {
    text-align: center;
}

/** Header **/
.webp .header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.3)), url(/assets/img/header-5.webp);
}

.no-webp .header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.3)), url(/assets/img/header-4.jpg);

}

.header {
    height: 80rem;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.header__texto h1 {
    font-size: 2.8rem;
}

@media (min-width: 488px) {
    .header__texto h1 {
        font-size: 5.6rem;
    }
}

.header__texto {
    text-align: center;
    color: var(--blanco);
    margin-top: 5rem;
}

@media (min-width: 768px) {
    .header__texto {
        margin-top: 15rem;
    }
}

.barra {
    padding: 4rem;


}

@media (min-width: 768px) {
    .barra {
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 4rem;
    }
}

.logo {
    width: 25%;
    border-radius: .5rem;
}

@media (min-width: 768px) {
    .logo {
        width: 300px;
    }
}

.logo__nombre {
    border-radius: .5rem;
}

@media (min-width: 768px) {
    .navegacion {
        display: flex;
        gap: 2rem;
    }
}

.navegacion__enlace {
    display: block;
    text-align: center;
    font-size: 1.6rem;
    color: var(--blanco);
}

@media (min-width: 996px) {
    .navegacion__enlace {
        font-size: 2.2rem;
        font-weight: 300;
    }
}

.navegacion__enlace:hover {
    color: var(--secundario);
}

.flags {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem;
    gap: 2rem;
}

@media (min-width: 488px) {
    .flags {
        width: 150px;
    }
}

.flags__items {
    display: block;
    cursor: pointer;
}

/*
.languages {
    display: flex;
    align-items: center;
    margin: .2rem;
    padding: 0.5rem;
    color: #fff;
    cursor: pointer;
}
*/

/*
@media (min-width: 768px) {
    .contenido-principal {
        display: grid;
        grid-template-columns: 2fr 1fr;
        column-gap: 4rem;
    }
}
*/
.container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    column-gap: 2rem;
}



@media (min-width: 788px) {
    .container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        column-gap: 2rem;
    }

}
.title-section {
    margin-bottom: 0;
    font-size: 3.6rem;
    color: var(--gris-black);
    padding: 2rem;
}
@media (min-width: 488px) {
    .title-section {
        margin-bottom: 0;
        font-size: 4.6rem;
        color: var(--gris-black);
    }
}

.subtitle-section {
    color: var(--gris-black);
    margin-top: .5rem;
    font-size: 2.3rem;
}

.text-center {
    text-align: center;
}

.contenido__principal,
.boton {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.servicios{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.contenido__servicios {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
}
@media (min-width: 488px) { 
    .contenido__servicios {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        justify-items: center;
    }
}
.boton {
    font-family: var(--fuenteHeading);
    color: var(--negro);
    text-align: center;
    padding: 1rem 3rem;
    font-size: 1.3rem;
    text-transform: uppercase;
    font-weight: 700;
    border: none;
    border-radius: 1rem;
}

@media (min-width: 768px) {
    .boton {
        display: inline-block;
        font-size: 1.8rem;
    }
}

.boton:hover {
    cursor: pointer;
}

.boton--primario {
    background-color: var(--secundario);
}

.boton--primario:hover {
    background-color: var(--amarillo);
    transition: all 1s ease-out;
}

.boton--secundario {
    background-color: var(--primario);
}

.row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
}

@media (min-width: 786px) {
    .row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        justify-items: center;
        column-gap: 2rem;

    }
}

.redes {
    margin: 2rem 0;
}

.redes,
.img-redes1,
.img-redes2,
.img-redes3 {
    height: 45px;
    width: 45px;
    border-radius: 1rem;
}

@media (min-width: 488px) {

    .redes,
    .img-redes1,
    .img-redes2,
    .img-redes3 {
        display: flex;
        justify-content: center;
        height: 90px;
        width: 90px;
        border-radius: 1rem;
    }
}

.img-redes1:hover {
    box-shadow: 3px 3px 3px 3px greenyellow;
}

.img-redes2:hover {
    box-shadow: 3px 3px 3px 3px red;
}

.img-redes3:hover {
    box-shadow: 3px 3px 3px 3px blue;
}

/* card  */

.contenido-cards {
    background-color: var(--gris);
}

.title-card {
    text-align: center;
    font-size: 2.6rem;
}

@media (min-width: 488px) {
    .title-card {
        text-align: center;
        font-size: 4.6rem;
        padding: 2rem;
    }
}

.title-card-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2rem;
    padding: 3rem;
}

.subtitle-card,
.title-card-bottom {
    font-size: 2rem;
    text-align: center;
    color: var(--gris-black);
}

.subtitle-card {
    margin-top: 0;
    margin-bottom: 1rem;
    padding: 2rem;
}

.icon {
    max-width: 70px;

}

.emergencia {
    color: red;
}

.info-tecnico {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    align-items: center;
    text-align: center;
    justify-items: center;
}

@media (min-width: 488px) {
    .info-tecnico {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        align-items: center;

        text-align: center;
        max-width: 100rem;

    }
}

.description {
    white-space: wrap;
    text-align: center;
}

.wrap {
    display: flex;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    gap: 24px;
    padding: 24px;
    flex-wrap: wrap;
}

.box {
    display: flex;
    flex-direction: column;
    flex-basis: 100%;
    position: relative;
    padding: 24px;
    background: #fff;
}

.box-top {
    display: flex;
    flex-direction: column;
    position: relative;
    gap: 12px;
    margin-bottom: 36px;
}

.box-image {
    width: 100%;
    height: 360px;
    object-fit: cover;
    object-position: 50% 20%;
}

.title-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.box-title {
    border-left: 3px solid var(--purple);
    padding-left: 12px;
    text-align: center;
}

.user-follow-info {
    color: hsl(0, 0%, 60%);
    text-align: center;
}

.button {
    display: block;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: auto;
    padding: 16px;
    color: #000;
    background: transparent;
    box-shadow: 0px 0px 0px 1px black inset;
    transition: background 0.4s ease;
}

.button:hover {
    background: var(--secundario);
}

.fill-one {
    background: var(--light-bg);
}

.fill-two {
    background: var(--pink);
}

/* RESPONSIVE QUERIES */

@media (min-width: 320px) {
    .title-flex {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    .user-follow-info {
        margin-top: 6px;
    }
}

@media (min-width: 460px) {
    .title-flex {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }

    .user-follow-info {
        margin-top: 6px;
    }
}

@media (min-width: 640px) {
    .box {
        flex-basis: calc(50% - 12px);
    }

    .title-flex {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    .user-follow-info {
        margin-top: 6px;
    }
}

@media (min-width: 840px) {
    .title-flex {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .user-follow-info {
        margin-top: 6px;
    }
}

@media (min-width: 1024px) {
    .box {
        flex-basis: calc(33.3% - 16px);
    }

    .title-flex {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    .user-follow-info {
        margin-top: 6px;
    }
}

@media (min-width: 1100px) {
    .box {
        flex-basis: calc(25% - 18px);
    }
}

/*todos los servicios*/

.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 2em;
    padding: 2em;
    pointer-events: none;
    align-items: center;

    .img-galery {
        display: block;
        width: 100%;
        border-radius: .25em;
        transition: 250ms 50ms;
        pointer-events: auto;
    }
}

@media (min-width: 488px) {
    .gallery {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        max-width: 100%;
        grid-gap: 2em;
        padding: 2em;
        pointer-events: none;
        align-items: center;
        justify-items: center;

        .img-galery {
            display: block;
            width: 50rem;
            border-radius: 1rem;
            transition: 250ms 50ms;
            pointer-events: auto;
        }

        &:hover .img-galery:not(:hover) {
            filter: saturate(.2) opacity(.5);
        }
    }
}

.info-bg {
    background-color: var(--gris);
    padding: 3rem 0;
}

@media (min-width: 488px) {
    .info-bg {
        background-color: var(--gris);
        padding: 5rem 0;
    }
}


/** Contacto **/
.contacto-bg {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    height: 60rem;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, .2)), url(/assets/img/map.jpg);
    margin-bottom: 3rem;
}

.contacto-bg__text,
h1 {
    color: var(--blanco);
    text-align: center;
    font-size: 3.6rem;
}

@media (min-width: 488px) {

    .contacto-bg__text,
    h1 {
        color: var(--blanco);
        text-align: center;
        font-size: 5.6rem;
    }
}

.contacto-boton {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
}

@media (min-width: 688px) {
    .contacto-boton {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0 20rem;
        padding: 0;
    }
}

.contactar {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: .5rem 1rem;
    margin: .5rem;
    width: 300px;
    font-size: 2rem;
    background-color: var(--secundario);
    border-radius: 1rem;
    color: var(--negro);

}

.contactar:hover {
    background-color: var(--amarillo);
}

.contacto-redes {
    font-size: 3.2rem;
}

.icon-contact {
    width: 30px;
}


/* tarjetas nosotros */

.container-horario {
    background-color: var(--gris);
    padding: 3rem;
}

.header_title {
    font-size: 3.2rem;
    color: var(--gris-black);
}

.horario {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    margin: 5rem 0;

}

@media (min-width: 488px) {
    .horario {
        display: flex;
        flex-direction: row;
        justify-content: center;
    }
}

.light {
    background-color: #fff;
}

.calendar {
    width: 400px;
    height: 480px;
    box-shadow: 0px 0px 35px -16px rgba(0, 0, 0, 0.75);
    font-family: 'Roboto', sans-serif;
    padding: 20px 30px;
    color: #363b41;
    display: inline-block;
    border-radius: 1rem;
}

.calendar_header {
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}

.header_copy {
    color: light_grey;
    font-size: 20px;
    text-align: center;
}

.calendar_plan {
    margin: 20px 0 40px;
}

.cl_plan {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 140px;
    background-image: linear-gradient(-222deg, #2d98ea, #edba14);
    box-shadow: 0px 0px 52px -18px rgba(0, 0, 0, 0.75);
    padding: 1rem;
    color: #fff;
    margin-top: 2rem;
    border-radius: 1rem;
}

.cl_plan-e {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 140px;
    background-image: linear-gradient(-222deg, #ff0d2d, #edba14);
    box-shadow: 0px 0px 52px -18px rgba(0, 0, 0, 0.75);
    padding: 1rem;
    color: #fff;
    margin-top: 2rem;
    border-radius: 1rem;
}

.cl_copy {
    font-size: 20px;
    margin: 10px 0;
    text-align: center;
}


.dark {
    background-image: linear-gradient(-222deg, #646464, #454545);
    color: #fff;

    .header_title,
    .ei_Title,
    .ce_title {
        color: #fff;
    }

}

/*btn float*/

.flotante {
    position: fixed;
    bottom: 100px;
    right: 0px;
    width: 55px;
    margin-right: 5rem;
}

.flotante-1 {
    position: fixed;
    bottom: 170px;
    right: 0px;
    width: 65px;
    margin-right: 4.4rem;
}

.flotante-2 {
    position: fixed;
    bottom: 250px;
    right: 0px;
    width: 55px;
    margin-right: 4.9rem;
}

.flotante-3 {
    position: fixed;
    bottom: 20px;
    left: 10px;
    width: 35px;
    margin-right: 5rem;
    background-color: var(--gris-claro);
    border-radius: .5rem;
}

/* footer*/
.footer {
    background-color: var(--negro);
    margin-top: 4rem;
    padding: 2rem;
    font-family: var(--fuenteParrafos);
}

.a-footer {
    color: var(--gris-claro);
}

.a-footer:hover {
    color: var(--secundario);
}

.barra-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (min-width: 488px) {
    .barra-footer {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 3rem;
    }
}
