:root {
    font-size: 15px;
    --gris_oscuro: rgb(63, 63, 63);
    --gris_medio: rgb(100, 100, 100);
    --gris_claro: rgb(158, 158, 158);
    --morado: rgb(49, 28, 59);
    --opensans300: 'Open Sans', sans-serif;
    --opensans400: 'Open Sans 400', sans-serif;
    --lobster: 'Lobster', cursive;
    --rosado: rgb(255, 188, 255);
}


* {
    margin: 0;
    padding: 0;
}

::-webkit-scrollbar {
    display: none;
}

html {
    /* Firefox Fix scroll*/
    overflow: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body {
    font-family: var(--opensans300);
    
}

/* MOBILE FIRST  */

/* Header */

.btn_menu {
    background: var(--gris_medio);
    width: 100%;
    height: 4rem;
    position: fixed;
    z-index: 1000;

}

.btn_menu .icon_menu {
    color: var(--gris_claro);
    font-family: var(--opensans400);
    display: flex;
    justify-content: space-between;
    height: 4rem;
    align-items: center;
    padding: 0 2rem;
    cursor: pointer;
}

.btn_menu .icon_menu i {
    font-size: 1.5rem;
}

#btn_menu {
    display: none;
}

.container_menu {
    position: absolute;
    padding-top: 4rem;
    transition: all 300ms ease;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    z-index: 900;
    position: fixed;
}

#btn_menu:checked~.container_menu {
    opacity: 1;
    visibility: visible;
}

.cont_menu {
    width: 50%;
    background: var(--gris_oscuro);
    height: 100vh;
    transition: all 300ms ease;
    transform: translateX(-100%);


}

#btn_menu:checked~.container_menu .cont_menu {
    transform: translateX(0%);
}

.cont_menu nav {
    transform: translateY(15%);
}

.cont_menu nav a {
    display: block;
    text-decoration: none;
    color: var(--gris_claro);
    padding: 20px;
    border-left: 5px solid transparent;
    transition: all 300ms ease;
}

.cont_menu nav a:hover {
    border-left: 5px solid var(--gris_claro);
    background: rgb(73, 73, 73);

}

.cont_menu nav a i {
    margin-right: 1rem;
}

.cont_menu label {
    position: absolute;
    right: 15px;
    top: 10px;
    color: var(--gris_claro);
    font-size: 1.2rem;
    cursor: pointer;
}

.logo {
    display: none;
}

/* Section */

section {
    position: relative;
}

.cont_cajas {
    position: relative;
    background: rgb(15, 15, 15);
    top: 60px;
    
}

.cont_cajas .cajas {
    transition: all .3s;
}

.cont_cajas .cajas:hover {
    cursor: pointer;
    transform: scale(1.02);
}

.cajas:hover::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 400px;
    background: #242424c2;
}

.cajas:hover .cont_titulo {
    color: rgb(14, 247, 255);
}

.caja1 {
    background: url(../img/medico\ domicilio.jpg);
    width: 100%;
    height: 400px;
    background-position: center;
    background-size: cover;
}

.caja2 {
    background: url(../img/consultorio.jpg);
    width: 100%;
    height: 400px;
    background-position: center;
    background-size: cover;
}

.caja3 {
    background: url(../img/domicilio2.jpg);
    width: 100%;
    height: 400px;
    background-position: center;
    background-size: cover;
}

.caja4 {
    background: url(../img/hospital.jpg);
    width: 100%;
    height: 400px;
    background-position: center;
    background-size: cover;
}
.caja5 {
    background: url(../img/domicilio.jpeg);
    width: 100%;
    height: 400px;
    background-position: center;
    background-size: cover;
}

.caja6 {
    background: url(../img/servicios5.jpg);
    width: 100%;
    height: 400px;
    background-position: center;
    background-size: cover;
}

.caja7 {
    background: url(../img/incubadora.jpg);
    width: 100%;
    height: 400px;
    background-position: center;
    background-size: cover;
}

.cont_cajas .cont_info {
    /* background: violet; */
    height: 100%;
    display: flex;
    justify-content: end;
    align-items: center;
    flex-direction: column;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    overflow: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    transition: all .5s;
}

.cont_info .cont_titulo {
    background: rgba(212, 1, 240, 0.76);
    text-align: center;
    width: 100%;
    position: absolute;
    transition: all .6s;
    padding: 13px 0;
    color: rgb(252, 252, 252);
}

.cont_titulo h2 {
    text-transform: uppercase;
    font-size: 18px;
    padding: 0 10px;
}

.cont_info .cont_parrafo {
    /* background: blueviolet; */
    text-align: justify;
    width: 80%;
    opacity: 0;
    transition: all .3s;
    color: rgb(250, 250, 250);
    margin-bottom: 1rem;
}

.cont_info .enlace {
    background: rgb(212, 0, 219);
    padding: 13px 17px;
    border-radius: 15px;
    color: aliceblue;
    text-decoration: none;
    box-shadow: 2px 2px 8px 2px rgba(0, 0, 0, 0.267);
    color: white;
    opacity: 0;
    transition: all .3s;
}

.enlace:hover {
    transform: scale(1.05);
}


/* VISTA PC */

@media screen and (min-width: 811px) {

    /* Hedaer */

    .btn_menu {
        display: none;
    }

    .container_menu {
        opacity: 1;
        visibility: visible;
        padding-top: 0;
        z-index: 1000;
    }

    .cont_menu {
        transform: translateX(0%);
        height: 4rem;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        
    }

    .cont_menu nav {
        transform: translateY(0%);
        display: flex;
        padding-right: 3rem;
    }

    .container_menu .cont_menu label {
        display: none;
    }

    .cont_menu nav a {
        display: block;
        text-decoration: none;
        color: var(--gris_claro);
        padding: 20px;
        border-left: none;
        transition: all 300ms ease;
    }

    .cont_menu nav a:hover {
        border-left: none;
        background: rgb(73, 73, 73);

    }

    .logo {
        display: block;
        width: 3rem;
        padding-left: 3rem;
    }

    .cont_titulo h2 {
        text-transform: uppercase;
        font-size: 18px;
        padding: 10px 10px;
    }

}