@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container{
    max-width: 1300px;
    margin: auto;
    padding: 10px 15px;
}

body{
    font-family: 'Poppins', sans-serif;
}

.logo img{
    width: 50%;
}

.header{
    left: 0;
    top: 0;
    width: 100%;
    border-bottom: 1px solid hsla(0,0%,100%,0.2);
}

.header .container{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header .logo img{
    vertical-align: middle;
}

.header .menu .head{
    display: none;
}

.header .menu ul{
    list-style: none;
}

.header .menu > ul > li{
    display: inline-block;
}

.header .menu > ul > li:not(:last-child){
    margin-right: 40px;
}

.header .menu .dropdown{
    position: relative;
    z-index: 2;
}

.header .menu a{
    text-decoration: none;
    text-transform: capitalize;
    font-size: 16px;
    color: hsl(100, 100%, 0%);
    line-height: 1.5;
    display: block;
}

.header .menu > ul > li > a{
    padding: 24px 0;
}

.header .menu > ul > .dropdown > a{
    padding-right: 15px;
}

.header .menu i{
    font-size: 10px;
    pointer-events: none;
    user-select: none;
    position: absolute;
    top: calc(50% - 5px);
}

.header .menu > ul > li > i{
    right: 0;
}

.header .menu .sub-menu{
    position: absolute;
    top: 100%;
    left: 0;
    width: 230px;
    padding: 15px 0;
    background-color: hsl(0, 0%, 87%);
    box-shadow: 0 0 5px hsla(0, 0%, 0%, 0.5);
    z-index: 3;
    transform-origin: top;
    transform: scaleY(0);
    visibility: hidden;
    opacity: 0;
}

.header .menu .sub-menu-right{
    left: 100%;
    top: 0;
}

.header .menu .sub-menu-left{
    top: 0;
    left: auto;
    right: 100%;
}

.header .menu li:hover > .sub-menu{
    opacity: 1;
    transform: none;
    visibility: visible;
    transition: all 0.5s ease;
}

.header .menu .sub-menu a{
    padding: 6px 24px;
}

.header .menu .sub-menu .dropdown > a{
    padding-right: 34px;
}

.header .menu .sub-menu span{
    background-image: linear-gradient(hsl(100, 100%, 0%), hsl(100, 100%, 0%));
    background-size: 0 1px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size 0.5s ease;
}

.header .menu .sub-menu li:hover > a > span{
    background-size: 100% 1px;
}

.header .menu .sub-menu i{
    transform: rotate(-90deg);
    right: 24px;
}

.header-right{
    display: flex;
}

.header-right > *{
    margin-left: 15px;
}

.header-right .icon-btn{
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: black;
    font-size: 16px;
}

.header-right .open-menu-btn{
    display: none;
}

.horarios{
    text-decoration: none;
    background-color: rgb(175, 0, 0);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
}

.horarios:hover{
    background-color: rgb(143, 0, 0);
    font-weight: 600;
}

/*HORARIOS*/

.title{
    color: rgb(210, 18, 22);
    margin-top: 30px;
    text-align: center;
}

.title p{
    padding: 3em;
    width: 80%;
    margin: auto;
    color: black;
}

/*FOOTER*/

footer{
    background-color: black;
    position: relative;
    width: 100%;
    min-height: 350px;
    padding: 3rem 1rem;
}

.container-footer{
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.col .fa-facebook,
.col .fa-instagram,
.col .fa-tiktok{
    font-size: 25px;
}

.row{
    display: flex;
    justify-content: space-between;
}

.col{
    color: white;
    font-family: 'Poppins', sans-serif;
    padding: 0 2rem;
    font-size: 13px;
}

.col img{
    width: 100px;
    margin-bottom: 25px;
}

.col h3{
    color: aquamarine;
    margin-bottom: 20px;
    position: relative;
    cursor: pointer;
}

.col h4{
    color: beige;
}

.col h3::after{
    content: '';
    height: 3px;
    width: 0px;
    background-color: aquamarine;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: 0.3s ease;
}

.col h3:hover::after{
    width: 50px;
}

.col .social a i{
    color: white;
    margin-top: 2rem;
    margin-right: 20px;
    transition: 0.3s ease;
}

.col .social a i:hover{
    transform: scale(1.5);
    filter: grayscale(25);
}

.col .links a{
    display: block;
    text-decoration: none;
    color: white;
    margin-bottom: 5px;
    position: relative;
    transition: 0.5s ease;
}

.col .links a:before{
    content: '';
    height: 16px;
    width: 3px;
    position: absolute;
    top: 5px;
    left: -10px;
    background-color: aquamarine;
    transition: 0.5s ease;
    opacity: 0;
}

.col .links a:hover::before{
    opacity: 1;
}

.col .links a:hover{
    transform: translateX(-8px);
    color: aquamarine;
}

.col2 a{
    color: white;
    margin: auto;
    text-decoration: none;
    align-items: center;
}

.col2 .fa-solid{
    font-size: 80px;
    margin-bottom: 15px;
}

/*HORARIOS DE ATENCIÓN*/

.containersch{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.containerschedule{
    width: 1000px;
    position: relative;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 20px;
}

.containerschedule .cardschedule{
    margin: auto;
    position: relative;
    height: 340px;
    background-color: #ebebeb;
    display: flex;
    width: 45%;
    margin: 30px 0;
}

.containerschedule .cardschedule .imgbx{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ebebeb;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: 0.5s ease-in-out;
}

.containerschedule .cardschedule:hover .imgbx{
    width: 150px;
    height: 150px;
    left: -75px;
    top: calc(50% - 75px);
    transition: 0.5s ease-in-out;
    background: #D21216;
}

.containerschedule .cardschedule .imgbx img{
    max-width: 180px;
    transition: 0.5s ease-in-out;
}

.containerschedule .cardschedule:hover .imgbx img{
    max-width: 100px;
}

.containerschedule .cardschedule .contentschedule{
    position: absolute;
    right: 0;
    width: calc(100% - 70px);
    height: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.containerschedule .cardschedule:last-child{
    height: 415px;
}

.containerschedule .cardschedule .contentschedule h3{
    margin-bottom: 5px;
    color: #D21216;
}

/*PARA CELULAR*/

@media(max-width:991px){

    .header{
        padding: 12px 0;
    }

    .header .menu{
        position: fixed;
        right: 0;
        top: 0;
        width: 320px;
        height: 100%;
        background-color: hsl(0, 0%, 87%);
        padding: 15px 30px 30px;
        overflow-y: auto;
        z-index: 2;
        transform: translateX(100%);
    }

    .header .menu.open{
        transform: none;
    }

    .header .menu .head{
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 25px;
    }

    .header .menu .close-menu-btn{
        height: 35px;
        width: 35px;
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background-color: transparent;
        cursor: pointer;
        border: none;
    }

    .header .menu .close-menu-btn::before,
    .header .menu .close-menu-btn::after{
        content: '';
        position: absolute;
        width: 80%;
        height: 2px;
        background-color: hsl(100, 100%, 0%);
    }

    .header .menu .close-menu-btn::before{
        transform: rotate(45deg);
    }

    .header .menu .close-menu-btn::after{
        transform: rotate(-45deg);
    }

    .header .menu > ul > li{
        display: block;
    }

    .header .menu > ul > li:not(:last-child){
        margin-right: 0;
    }

    .header .menu li{
        border-bottom: 1px solid hsla(100, 100%, 0%, 0.75);
    }

    .header .menu li:first-child{
        border-top: 1px solid hsla(100, 100%, 0%, 0.75);
    }

    .header .menu > ul > li > a{
        padding: 12px 0;
    }

    .header .menu > ul > .dropdown > a{
        padding-right: 34px;
    }

    .header .menu i{
        height: 34px;
        width: 34px;
        border: 1px solid hsla(100, 100%, 0%, 0.75);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        pointer-events: auto;
        cursor: pointer;
        top: 7px;
    }

    .header .menu .dropdown.active > i{
        background-color: hsla(0, 0%, 58%, 0.75);
        transform: rotate(180deg);
    }

    .header .menu .sub-menu{
        position: static;
        opacity: 1;
        transform: none;
        visibility: visible;
        padding: 0;
        transition: none;
        box-shadow: none;
        width: 100%;
        display: none;
    }

    .header .menu .dropdown.active > .sub-menu{
        display: block;
    }

    .header .menu .sub-menu li:last-child{
        border: none;
    }

    .header .menu .sub-menu a{
        padding: 12px 0 12px 15px;
    }

    .header .menu .sub-menu .sub-menu a{
        padding-left: 30px;
    }

    .header .menu .sub-menu span{
        background-image: none;
    }

    .header .menu .sub-menu i{
        transform: none;
        right: 0;
    }

    .header-right .open-menu-btn{
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 40px;
        width: 44px;
        cursor: pointer;
        position: relative;
        background-color: transparent;
        border: none;
    }

    .header-right .open-menu-btn .line{
        height: 2px;
        width: 30px;
        background-color: hsl(100, 100%, 0%);
        position: absolute;
    }

    .header-right .open-menu-btn .line-1{
        transform: translateY(-8px);
    }

    .header-right .open-menu-btn .line-3{
        transform: translateY(8px);
    }

}

@media(max-width:900px) {
    
    /*FOOTER*/

    .row{
        flex-direction: column;
    }
    
    .col{
        width: 100%;
        text-align: left;
        margin-bottom: 25px;
    }

    .horario img{
        width: 850px;
    }
}

@media(max-width:768px) {
    
    /*FOOTER*/

    .row{
        flex-direction: column;
    }
    
    .col{
        width: 100%;
        text-align: left;
        margin-bottom: 20px;
    }

    .horario img{
        width: 100%;
    }

    .title{
        font-size: 13px;
    }
}

@media (max-width: 992px){
    /*HORARIOS DE ATENCIÓN*/
    .containerschedule{
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

    .containerschedule .cardschedule{
        width: 400px;
    }
}

@media (max-width: 768px){

    /*HORARIOS DE ATENCIÓN*/

    .containerschedule .cardschedule{
        max-width: 300px;
        height: auto;
        flex-direction: column;
    }

    .containerschedule .cardschedule .imgbx{
        position: relative;
    }

    .containerschedule .cardschedule .imgbx,
    .containerschedule .cardschedule:hover .imgbx{
        width: 100%;
        height: 200px;
        left: 0;

    }

    .containerschedule .cardschedule .imgbx img,
    .containerschedule .cardschedule:hover .imgbx img{
        max-width: 100px;        
    }

    .containerschedule .cardschedule .contentschedule{
        position: relative;
        width: 100%;
    }
    
    .header-right .horarios{
        font-size: 13px;
    }

    .botton-group .button{
        font-size: 10px;
    }
}