
::-webkit-scrollbar {
    width: 10px; /* Ancho de la barra de desplazamiento vertical */
    height: 6px; /* Altura de la barra de desplazamiento horizontal */
  }
  
  /* Estilo para el track de la barra de desplazamiento (la pista) */
  ::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0); /* Color de fondo de la pista */
  }
  
  /* Estilo para el thumb de la barra de desplazamiento (la parte móvil) */
  ::-webkit-scrollbar-thumb {
    background: #888; /* Color del thumb */
    border-radius: 6px; /* Bordes redondeados para el thumb */
  }
  
  /* Estilo para el thumb cuando se pasa el ratón por encima */
  ::-webkit-scrollbar-thumb:hover {
    background: #555; /* Color del thumb al pasar el ratón por encima */
  }
*{
    
    box-sizing: border-box;
    min-width: 0;
    margin: 0;
}
html{
    font-size: 16px;
}

body{
    
    width: 100%;
    min-height: 100dvh;
    
}
.whats{
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1;
    transition: .3s;
}

.whats:hover{
    transform: scale(1.2);
}
.curso-info a{
    transform: scale(1.1);
    margin-right: 30px;
}
h1, h2, h3, h4{
    text-wrap: balance;
}

p{
    text-wrap: pretty;
}
.header.abajo{
    background: #e67815;
}
header{
    width: 100vw;
    height: 11dvh;
    background: rgba(12, 12, 12, .35);
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position:fixed;
    top: 0;
    left: 0;
    z-index: 2;
    transition: .6s;

}

.option{
    cursor: pointer;
}



.header__logo{
    width: 63px;
    height: 63px;
}



.header__logo img {
    width: auto; 
    height: 100%; 
    display: block; 
    max-width: 100%;
}

nav{
    width: 70px;
    height: 58px;
}

.ham-menu{
    width: 70px;
    height: 38px;
    position: relative;
    z-index: 2;
}

.ham-menu span{
    width: 50px;
    height: 6px;
    margin: 10px;
    position: absolute;
    top: 50%;
    background: white;
    display: block;
    border-radius: 3px;
    transition: .3s ease;
}

.ham-menu span:nth-child(1){
    top: 15%;
}
.ham-menu span:nth-child(3){
    top: 85%;
}

.ham-menu.active span:nth-child(1) {
    top: 50%;
    transform:  rotate(45deg);
    background: white;
}
.ham-menu.active span:nth-child(2) {
    opacity: 0;
}
.ham-menu.active span:nth-child(3) {
    top: 50%;
    transform:  rotate(-45deg);
    background: white;
}








/* .titulo{
    width: 100dvw;
    height: 125px;
    font-size: .8rem;
    background:#E57815;
    text-align: center;
    color: white;
    font-family: "PT Serif", serif;
    display: flex;
    justify-content: center;
} */

.titulo h1{
    width: 300px;

}

.cursos{
    width: 100dvw;
    height: 100dvh;
    overflow: hidden;
    position: relative;
    
}

.cursos ul {
    width: max-content;
    height: min-content;
    display: flex;
    padding: 0;
    list-style: none;
    /* animation: slide 12s infinite normal ease-out; */
}
#slider{
    transition: .3s;
}
.curso img{
    object-fit: cover;
    display: block;
    width: 100%; 
    height: 100%;
}


.curso1, .curso2, .curso3, .curso{
    width: 100dvw;
    height: 100dvh;
    
    
}
.curso1, .curso:nth-of-type(1){
    background: rgb(53, 183, 140);
}
.curso2, .curso:nth-of-type(2){
    background: bisque;
}

.curso3, .curso:last-of-type{
    background: rgb(255, 127, 244);
}
.curso-info{
    position: relative;
    top: -80%;
    left: 10%;
    width: 80%;
    max-width: 650px;
    height: max-content;
    color: black;
    background: rgba(25, 25, 25, .3);
    font-size: 1.8rem;
    border-radius: 25px;
    padding: 20px;
    padding-bottom: 50px;
    color: aliceblue;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    flex-direction: column;
    font-size: 1.5rem;
}

.curso-info > a{
    width:fit-content;
    padding: 10px;
    background: #f5c340;
    margin-top: 40px;
    border-radius: 5px;
    text-decoration: none;
    align-self: center;
    color: white;
    transition: .3;
    font-size: 1.2rem;
    
   
}

.curso-info > a:hover{
    transform: scale(1.2);
   
}
.curso-info h2{
    margin-bottom: 20px;
    font-size: 2rem;
}


.back{
    width: 40dvw;
    height: 100dvh;
    position: fixed;
    top:0;
    left: -100%;;
    transition: .3s;
}
.back.active{
    
    left: 0;
}
.off-screen-menu{
    width: 60dvw;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    top:0;
    right: -100%;;
    gap: 13px;
    padding: 20dvh 0 0 0;
    position:fixed;
    list-style: none;
    background: #3C86E2;  /*<======================= */
    z-index: 1;
    transition: .3s;
    overflow-y: auto;
    pointer-events: all;

}



.off-screen-menu li{
    
    width: 200px;
    max-width: 200px;
    height: min-content;
    flex: 0;
    display: flex;
    justify-content: end;
    align-items: center;
    transition: all .3s;
    
}
.off-screen-menu li a{
    font-weight: bold;
    /* text-transform: uppercase; */
    height: 70px;
    transition: .3s;
    transition: transform 0.5s ease, background-color 0.5s ease; /* Transición suave para transform y background-color */ 
    transform: translateX(0); /* Posición inicial */
    
}
.off-screen-menu li a:hover{
   transform: scale(1.15);
   
}
.off-screen-menu li li a:hover{
    padding-right: 15px;
}




.off-screen-menu > li:nth-child(2), .off-screen-menu > li:nth-child(3){
    
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: end;
    transition: all .3s ;
}
.off-screen-menu > li:nth-child(4){
    margin-bottom: 60px;
}
.subConocenos, .subDiplomados{
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: end;
    height: fit-content;
}
.subConocenos li, .subDiplomados li{
    min-width: 140px;
    padding: 0 5px 0 5px;
    text-align: end;
    border-left: solid rgba(0, 0, 0, .5) 1px;
    border-right: solid rgba(0, 0, 0, .5) 1px;
    background: #306bb3;
    transition: .3s;
    
}
.subConocenos li:last-child, .subDiplomados li:last-child{
    border-bottom: solid rgba(0, 0, 0, .5) 1px;
    border-radius: 0 0 10px 10px;
}



#conocenos-hermano, #diplomados-hermano{
    width: 0;
    height: 0;
    overflow: hidden;
    transition: width 0.5s ease, height 0.5s ease, transform 0.5s ease; /* Transición para ancho, alto y transformación */
}

#conocenos-hermano.active, #diplomados-hermano.active{
    width: fit-content;
    height: max-content;
    display: block;
}

.off-screen-menu a{
    width: 200px;
    height: 70px;
}

.off-screen-menu a.active{
    padding-right: 20px;
    border-radius: 10px;
    background: #081c35; /*<======================= */
}

#conocenos, #diplomados{
    border-radius: 10px 10px 0 0px;
}






nav a {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: end;
    align-items: center;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-style: normal;
    border: 0;
    color: white;
    font-size: 1.2rem;
}

.off-screen-menu.active{
    right: 0;
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .5); 
    z-index: 1;
}



.off-screen-menu a{
    text-decoration: none;
}
.demo-icon {
    font-family: "fontello";
    font-style: normal;
    font-weight: normal;
    font-size: 2rem;
    opacity: .5;
    position: absolute;
    color: gray;
}

.icon-right-open{
    position: absolute;
    top: 50%;
    right: 20px;
    width: 50px;
    height: 50px;
    pointer-events: auto;
    z-index: 1;
}

.icon-left-open{
    position: absolute;
    top: 50%;
    left: 20px;
    width: min-content;
    height: min-content;
    width: 50px;
    height: 50px;
    z-index: 1;
}

.diplomados{
    width: 100dvw;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Poppins';
}

.diplomados h2{
    margin: 40px 0;
    
    font-size: 2rem;
}

.diplomados-group{
    display: flex;
    width: 70dvw;
    max-width: 1200px;
    justify-content: space-evenly;
    flex-wrap: wrap;
    
}

.diplomado-card{
    width: 350px;
    height: 501px;
    display: flex;
    flex-direction: column;
    margin: 0 0 40px 0;
    transition: .3s;
    
}

.diplomado-card:hover{
    transform: scale(1.05);
}

.diplomado-card figure{
    width: 100%;
    height: 250px;
}



.diplomado-card figure img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px 10px 0  0;
    display: block;
}


.diplomado-card .info{
    height: 268px;
    display: flex;
    flex-direction: column;
    border: solid rgba(176, 176, 176, .99) 3px;
    border-top: none;
    border-radius: 0 0 10px 10px;
    position: relative;
}

.diplomado-card .info h3{
    text-align: center;
    width: 100%;
    margin-top: 15px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.diplomado-card .info p{
    font-size: .9rem;
    padding-left: 20px;
    margin-bottom: 2px;
}

.info a{
    
    width: 80px;
    min-height: 40px;
    max-height: 40px;
    position: absolute;
    bottom: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: center;
    font-weight: 600;
    background: #0A497F;
    color: white;
    text-decoration: none;
    border-radius: 1px;
    margin-top: 20px;
    margin-bottom: 10px;
    transition: .3s;
}
.info a:hover{
    scale: 1.1;
    background: #0d5ea5;
}

.vacio{
    width: 100vw;
    height: 90vh;
    
}
.vacio img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px 10px 0  0;
    display: block;
}

footer{
    width: 100dvw;
    margin-top: 100px;
    background: #e67815;
    display: flex;
    flex-direction: column;
    color: white;
    padding: 30px 0;
    font-family: 'Poppins';
    font-size: .9rem;
}
.copy{
    width: fit-content;
    align-self: center;
}
.presentacion{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;

}
.presentacion figure{
    width: fit-content;
}
.presentacion img{
    width: 350px;
}

.presentacion p:last-child{
    text-align: center;
}
.presentacion p{
    margin: 20px 0 0 0;
    padding: 0 20px;
    text-align: justify;
    line-height: 20px;

}
.presentacion p:nth-child(2){
    max-width: 744px;

}
.enlaces{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px 0px;
    margin-top: 30px;
}
.enlaces div{
    width: 200px;
    margin: 0 15px;

}
.enlaces p{
    line-height: 20px;
    text-align: justify;
    margin: 15px 0;
}
.enlaces h3{
    text-align: left;
    font-size: 1.1rem;
}

.enlaces div ul{
    margin: 10px 0;
    padding: 0;
}
.enlaces ul{
    list-style: none;
    margin-left: 15px;
}
.enlaces li{
    margin-bottom: 10px;
}
.enlaces a{
    text-decoration: none;
    color: white;
    font-size: 1rem;
}
.enlaces a:hover{
    text-decoration: underline;
    font-weight: bold;
}

.redes{
    margin-top: 15px;
}
.redes span{
    width: 50px;
    height: 50px;
}
.redes span svg{
    width: 50px;
    height: auto;
    transition: .3s;
}
.redes span svg:first{
    
    fill: #075e54;
}
.redes a{
    width: 50px;
    height: 50px;
}
.redes svg:hover{
    transform: scale(1.3);
}
.contactanos h3{
    display: flex;
    align-items: start;
}
/* @keyframes slide{
    0% { margin-left: 0; }
    30% { margin-left: 0; }
    35% { margin-left: -100%; }
    65% { margin-left: -100%; }
    70% { margin-left: -200%; }
    95% { margin-left: -200%; }
    100% { margin-left: -300%;}
}  */

@media screen and (min-width: 750px){
    .diplomados-group{
        width: 100dvw;
        
    }
    .diplomado-card{
        margin-left: 15px;
        margin-right: 15px;
    }
    
}

@media screen and (min-width: 700px){
    .cursos{
        width: 100%;
    }
    .diplomados{
        width: 100%;
    }
    footer{
        width: 100%;
    }
    .curso-info{
        top: -50%;
    }

    .off-screen-menu{
        width: 600px;
        height: 11dvh;
        flex-direction: row;
        position: absolute;
        justify-content: space-evenly;
        right: 0;
        padding: 0 30px 0 0 ;
        background: initial;
    }

    .off-screen-menu > li{
        width: fit-content;
        max-width: inherit;
        height: 70px;
        flex: 1;
        
        
    }
    .off-screen-menu > li a{
        width: min-content;
        height: 70px;
        font-size: 1.2rem;
        transition: .3s;
        
    }

    .off-screen-menu > li:last-child{
        margin: 0;
    }

    .off-screen-menu svg{
        display: none;
    }
    .ham-menu{
        display: none;
    }

    .off-screen-menu a:hover{
        font-weight: bold;
    }



    .subConocenos, .subDiplomados{
        width: 250px;
    }
    .subConocenos li{
        width: 210px;
        max-width: none;
    }
    .subDiplomados li{
        width: 250px;
        max-width: none;
    }
    .subConocenos li a, .subDiplomados li a{
        font-size: 1.1rem;
        width: 210px;
        max-width: none;
    }
    
    #conocenos-hermano{
        
        position: fixed;
        top: 11dvh;

    
    }

    .header{
        background: #e67815;
    }
    #conocenos-hermano .subConocenos-a{
        background: #e67815;
    }
    #diplomados-hermano .subDiplomados-a{
        background: #e67815;
    }

    #conocenos-hermano .subConocenos-a{
        background: #e67815;;
    }
    #conocenos-hermano .subConocenos-a.abajo{
        background: #e67815;
    }
    #diplomados-hermano{
        position:fixed;
        top: 11vh;

    }
    
    #diplomados-hermano .subDiplomados-a{
        background: #e67815;
    }
    #diplomados-hermano .subDiplomados-a.abajo{
        background: #e67815;
    }
    .off-screen-menu a.active{
        background: initial;
        padding: 0;
    }

}
@media screen and (min-width: 1000px){
    
    .footer-group{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
    .enlaces{
        margin-right: 10px;
    }
    .enlaces div{
        width: 170px;
        margin-top:  10px;
        
    
    }
}