
body {
    margin: 0;
}

.div-1 {
    height: 170px;
    width: 100%;
    background-color:  #050247;
    justify-content: space-between;
    align-items: center;
    display: flex;
    z-index: 1000;
}

.div-2 {
    width: 100%;
    height: 10rem;
    background-color:  #050247;
    justify-content: space-between;
    align-items: center;
    display: flex;
}


.barralateral{
    position: fixed;
    top: 0;
    left: -350px;
    width: 250px;
    height: 100vh;
    background: rgba(5, 2, 71, 0.7);
    padding: 20px;
    transition: left 0.3s ease;
    justify-content: flex-end;
    align-items: flex-start;
    z-index: 1001;
    transform: translateX(5px);
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 1000;
}

.sidebar-active{
    left: -6px;
}

.button-menu{
    height: 77px ;
    width: 77px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    align-items: flex-start;
    justify-content: flex-end;
    margin-left: 20px;
    background-image: url(Boton/MenuButon.png);
    background-size: cover;
    background-color: #050247;
    transition: 0.2s;
}

.button-menu:hover{
    transition: 0.2s;
    margin-left: 25px;
}

.text-1{
    font-size: 1.4rem; /* larger but reasonable */
    height: auto;
    font-family: 'Times New Roman', serif;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 8px;
}

.text-2{
    font-size: 25px;
    font-family: Arial, 'Times New Roman', sans-serif;
    color: black;
    display: inline-flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 2px;
}

.text-3{
    font-size:25px;
    font-family: fantasy;
    color: black;
    justify-content: space-between;
    align-items: center;

}

.text-4{
    font-size: 25px;
    font-family: Arial, 'Times New Roman', sans-serif;
    color: rgb(255, 255, 255);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 10px;
}

.perfil {
    height: 110px;
    width: 110px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background-image: url("imagenperfilpredeterminado.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    transition: 0.2s;
}

.perfil:hover {
    transform: scale(1.05);
    transition: 0.2s;
}

.menu-lateral {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-lateral li {
    margin-bottom: 18px;
}

.menu-lateral a {
    display: block;
    padding: 15px 20px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15); 
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: 0.2s;
}

.menu-lateral a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(5px);
}

.Div-mhpadre{
    display: flex;
    height: 280px;
    width: 100%;
    overflow: hidden;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.Div-banner{
    display: flex;
    height: 20rem;
    width: 100%;
    justify-content: center;
    align-items: center;   
    background-image: url(banner/BannerFondo.jpg);
    background-repeat: repeat-x;
    background-size: cover;
}

.Div-banner-hijo{
    margin-top: 2%;
    display: flex;
    height: 140%;   
    width: 350px;  
    padding: 45px;
    background-image: url(botones/DRAGONIMAGEN.png);
    background-repeat: no-repeat;
    background-size: contain;
    z-index: 1000;

}

.Div-mh {
    width: 100%;
    max-width: 1200px;
    height: 350px;
    overflow: hidden;
    margin: auto;
    position: relative;
}

/* Tira que se mueve */
.Div-mh-tira {
    display: flex;
    width: max-content;
    height: 100%;
}

/* Imágenes */
.Div-mh-tira img {
    width: 1200px;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.divgridmapahorario{
    display: grid;
    grid-template-columns: repeat(2, minmax(100px, 1fr));
    gap: 2rem;
    padding: 2rem;
    justify-items: center;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 40px;
}

#Div-mapa{
    width: 40%;
    height: 25rem; 
    margin-bottom: 20px;
    background-image: url(botones/Botonmapabueno.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 5rem;
    margin-top: 3rem;
    margin-left: 3rem;
    transition: 0.2s;
}

#Div-Horario{
    width: 40%;
    height: 25rem;
    background-image: url(botones/botonhorariobueno.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 5rem;
    transition: 0.2s;
    margin-bottom: 20px;
    margin-top: 3rem;
}

#div-SO{
    width: 40%;
    height: 25rem;
    background-image: url(botones/botonSObueno.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: 0.2s;
    margin-bottom: 20px;
    margin-top: 3rem;
}

.contenedor{
    display: flex;
    justify-content: space-between; /* separa los div */
    align-items: center;
    width: 100%;
}

.logo{
    height: auto;
    width: 200px;
    transition: 0.2s;
}

.logo:hover{
    transform: scale(1.05);
    transition: 0.2s;
}

.ImagenBanner{
    height: 280px;
    width: auto;

}

#Div-mapa:hover{
    transform: scale(1.05);
    transition: 0.2s;
}

#Div-Horario:hover{
    transform: scale(1.05);
    transition: 0.2s;
}

#div-SO:hover{
    transform: scale(1.05);
    transition: 0.2s;
}

.imagenperfil{
    height: 150px;
    width: 150px;
    border-radius: 50%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 30px;
    background-image: url("imagenperfilpredeterminado.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.texto-usuario{
    color: black;
    font-size: 20px;
    font-family: Arial, Helvetica, sans-serif;
}

.label-usuario {
    color: #050247;
    font-weight: bold;
    font-size: 25px;
}

.button-perso {
    height: 50px ;
    width: 100px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    display: block;
    margin-left: auto; 
    margin-right: auto;
    margin-top: 15px;
    background-color: #4b71bf;
}

.button-CS {
    height: 50px ;
    width: 200px;
    cursor: pointer;
    font-size: 16px;
    display: block;
    margin-left: auto; 
    margin-right: auto;
    margin-top: 15px;
    background-color: #4b71bf;
}

.button-perso:hover{
    background: rgba(255, 255, 255, 0.25);
    transition: 0.2s;
}

.modal-personalizar {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    position: relative;
    display: flex;
    flex-direction: column;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
}

.close-modal:hover,
.close-modal:focus {
    color: #070373;
    text-decoration: none;
    cursor: pointer;
}

.modal-content h2 {
    margin-bottom: 10px;
    text-align: center;
}

.modal-content #contenedorHorario {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 10px;
}

.modal-content #guardarHorario {
    margin-top: auto;
    align-self: center;
    padding: 10px 20px;
    background-color: #050247;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.horario {
    font-size: 12px;
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
}

.horario th, .horario td {
    padding: 5px;
    text-align: center;
    border: 1px solid #ddd;
}

.horario select {
    font-size: 10px;
    padding: 2px;
}

.div-pf{
    height: 100%;
    width: 30%;
    background-image: url("imagenes_perfil/imagenbanerperfil.JPG.jpg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin-left: 4rem;
}

.div-mp{
    height: 100%;
    width: 30%;
    background-image: url("botones/M_BHD.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin-left: 4rem;
}

.div-hr{
    height: 100%;
    width: 30%;
    background-image: url("botones/H_BHD.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin-left: 4rem;
}

.div-DG{
    height: 100%;
    width: 30%;
    background-image: url("botones/DGM.jpeg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin-left: 4rem;
}

.button-perfil {
    height: 20% ;
    width: 30%;
}

.button-perfil:hover{
    background: rgba(255, 255, 255, 0.25);
    transition: 0.2s;
}


.guardar-imagen {
    margin-top: 10px;
    background-color: #4b71bf;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.guardar-imagen:hover {
    background-color: #355a8c;
}

.btn-imagen-perfil {
    border: none;
    background: none;
    cursor: pointer;
    padding: 5px;
    margin: 5px;
}

.btn-imagen-perfil img {
    width: 100%;
    height: 15%;
    border-radius: 50%;
}

.btn-imagen-perfil img:hover {
    transform: scale(1.1);
    transition: 0.2s;
}

.divinfoadicional{
    margin-top: 20px;
    padding: 10px;
    border: 2px solid #070373;
    border-radius: 8px;
}

.div-Hastaabajote{
    width: 100%;
    height: 30rem;
    background-color: #070373;
    display: grid;
    grid-template-columns: 2fr;
    margin-top: 3rem;
}

.div-qys-padre{
    height: 40rem;
    width: 86.5%;
    align-items: center;
    padding: 3rem;
    justify-content: center;
    display: flex;
}

.div-qys-hijo{
    height: 30rem;
    width: 30rem;
    align-items: center;
    justify-content: center;
}   

.div-qys-hijo-correo{
    width: 100%;
    height: 5rem;
    text-align: left;
    margin-top: 1.5rem;
    display: flex;
}
.textbox-correo{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    width: 90%;
    height: 2rem;
    text-align: left;
    color: black;
    margin-left: 2rem;    
}

.div-qys-hijo-queja{
    width: 100%;
    height: 25rem;
    text-align: left;
    align-items: left;
    justify-content: left;
    display: flex;
}

.textbox-queja{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    width: 90%;
    height: 24rem;
    color: black;
    margin-left: 2rem;
}

.textbox-correo,
.textbox-queja {
    border-radius: 10px;
    border: 1.5px solid #070373;
    outline: none;
}

.label-qys {
    font-family: Arial, Helvetica, sans-serif;
    color: #070373;
    margin-top: 10px;
    margin-bottom: 5px;
    display: block;
    margin-left: 2rem;
}

.textbox-correo {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    width: 100%;
    height: 2.2rem;
    padding: 8px;
    border-radius: 8px;
    border: 2px solid #070373;
    outline: none;
}

.textbox-queja {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    width: 100%;
    height: 10rem;
    padding: 8px;
    border-radius: 8px;
    border: 2px solid #070373;
    resize: none;
    outline: none;
}

.textbox-correo:focus,
.textbox-queja:focus {
    border-color: #4b71bf;
}

.btn-enviar {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #070373;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
    margin-left: 50%;
}

.btn-enviar:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.mensaje-form {
    margin-top: 10px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.div-grandote-horario{
    width: 100%;
    height: 33rem;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-top: 20px;
}

.div_cambio_opc{
    width: 80%;
    height: 13rem;
    padding-left: 5px;
    border-radius: 5px;
    border-color: black;
    border-width: 5px;
    border-style: solid;
    align-items: start;
    justify-content: start;
    margin-left: 20px;
}

#agregar-opcion{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    border-radius: 1rem;
    height: 2rem;
    width: 8rem;
    background-color: #050247;
    text-decoration: solid;
    transition: 0.3s;
    padding: 0.5rem;
    color: white;
    margin-left: 0.5rem;
}

#agregar-opcion:hover{
    transform: scale(1.05);
    background-color: rgba(5,2,71,0.85);
}

.barrasuperiorroja{
    width: 99%;
    height: 19px;
    background-color: #c62828;
}

.horario{
    width: auto;
    border-collapse: collapse;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 25px;    
    padding:0;
}

.horario th{
    background-color: #c62828;
    color: white;
    padding: 5px;
    border: 1px solid black;
    border-bottom: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    height: 3rem;    
}

.horario td{
    border: 1px solid black;
    padding: 5px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;  
    height: 3rem;
    width: 180px;   
}


#editarhorario{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 25px;
    border-radius: 1rem;
    width: 15rem;
    height: 4rem;
    background-color: #050247;
    color: white;
    text-decoration: solid;
    transition: 0.3s;
    margin-top: 80px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#editarhorario:hover{
    transform: scale(1.05);
    background-color: rgba(5,2,71,0.85);
}

#guardarHorario{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 25px;
    border-radius: 1rem;
    width: 15rem;
    height: 4rem;
    background-color: #050247;
    color: white;
    text-decoration: solid;
    transition: 0.3s;
}

#guardarHorario:hover{
    transform: scale(1.05);
    background-color: rgba(5,2,71,0.85);
}

.resumen-horario {
    font-weight: bold;
    margin-top: 5px;
}

.div_editar_horario{
    width: 100%;
    height: 7rem;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start ;
    margin-top: 20px;
    margin-bottom: 20px;
}

.lista-clases { 
    width: 100%;
    height: 72%;;
    border-radius: 5px;
    align-items: start;
    justify-content: start;
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    flex-direction: column;
    overflow: auto;
}

.elemento-clase {
    width: 90%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #f9f9f9;

    display: flex;
    justify-content: space-between;
    align-items: center;

    flex-shrink: 0;
    overflow: hidden;

    transition: 
        transform 0.3s ease,
        opacity 0.3s ease,
        height 0.3s ease,
        margin 0.3s ease,
        padding 0.3s ease;
}

.elemento-clase span {
    flex: 1;              /* ocupa el espacio disponible */
    min-width: 0;         /* 👈 CLAVE en flexbox */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.elemento-clase.mostrar {
    opacity: 1;
    transform: translateY(0);
}

.elemento-clase.eliminar {
    opacity: 0;
    transform: translateX(100%);
    height: 0;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    border: 0;
}

.item-clase {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f2f2f2;
    padding: 8px 10px;
    border-radius: 6px;
    margin-bottom: 5px;
    font-family: Arial;
}

.btn-eliminar {
    background-color: red;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 3px 6px;
    font-size: 12px;
}

#Nueva-Opcion {
    width: 52%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-family: Arial, Helvetica, sans-serif;
}

.map-cm{
    width: 100%;
    height: 70%;
    z-index: 1000;
    position: relative;
}

.barra-ajustes{ 
    background-color: rgba(255,255,255,0.25);
    border: none;
    border-radius: 8px;
    padding: 14px 20px;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.barra-ajustes:hover {
    background-color: rgba(255,255,255,0.35);
    transform: translateX(5px);
    transition: 0.2s;
}

#mano{
    display:none;
}

.div-abmapa{
    width: 100%;
    height: 200px;
    justify-content: center;
    align-items: center;
    display: flex;
    z-index: 999;
}

.abmapa{
    width: 254px;
    height: 120px;
    border: none;
    margin-top: 12px;
    cursor: pointer;
    background-image: url(botones/SO_barraLB.jpeg);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: 0.2s;
}

.abmapa:hover{
    transform: scale(1.05);
    transition: 0.2s;
}   

.div-simb {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    background-color: white;
    padding: 10px 0;
    margin: 0;
    position: relative;
    z-index: 999;
}

.div-simb img {
    height: 200px;
    width: auto;
    object-fit: contain;
}

.titulo-creditos {
    font-family: Arial, Helvetica, sans-serif;
    color: #070373;
    font-size: 24px;
    text-align: center;
    margin-top: 20px;
}

.div-creditos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.texto-creditos{
    font-family: Arial, Helvetica, sans-serif;
    color: #070373;
    font-size: 18px;
    text-align: center;
}

.lista-creditos{
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.texto-agradecimientos {
    font-family: Arial, Helvetica, sans-serif;
    color: #070373;
    font-size: 18px;
    text-align: center;
    margin-top: 20px;

}
@media (max-width: 768px) {
    .div-abmapa{
        height: 150px;
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    .abmapa{
        width: 170px;
        height: 60px;
        padding: 0;
        margin: 0;
    }
    
    .div-1 {
        height: 110px;
        padding: 0 10px;
        width: 94.7%;
    }

    .div-2 {
        height: 110px;
        padding: 0 10px;
        width: 94.7%;
    }

    .logo {
        width: 130px;
    }

    .button-menu {
        width: 55px;
        height: 55px;
        margin-left: 10px;
    }

    .barralateral {
        width: 60%;
        left: -100%;
    }

    .sidebar-active {
        left: 0;
    }

    .Div-mhpadre {
        height: 200px;
        margin-top: 0;
        width: 100%;
    }

    .Div-mh {
        width: 100%;
        height: 200px;
        margin-top: 0%;
    }

    .Div-mh-tira img {
        width: 100vw;
        height: 100%;
        min-width: 100vw;
    }

    #Div-mapa{
        width: 70%;
        height: 14rem;
        border-radius: 2rem;
        margin-bottom: 20px;
        background-image: url(botones/Mapa_B.jpeg);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        justify-self: center;
        margin-top: 0.8rem;
        transition: 0.2s;
        margin-left: 0;
        margin-bottom: 0;
    }

    #Div-Horario {
        width: 70%;
        height: 14rem;
        background-image: url(botones/Horario_B.jpeg);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        border-radius: 2rem;
        transition: 0.2s;
        justify-self: center;
    }

    #div-SO{
        width: 70%;
        height: 14rem;
        background-image: url(botones/SO_B.jpeg);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        border-radius: 2rem;
        transition: 0.2s;
        justify-self: center;
    }

    .contenedor {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .divgridmapahorario {
        grid-template-columns: 1fr; /* de 2 columnas a 1 */
        gap: 1rem;
        padding: 1rem;
    }

    .Div-banner {
        height: 10rem;
        width: 100%;
        object-fit: contain;   
    }

    .Div-banner-hijo {
        width: 18px;
        padding: 100px;
        height: 50%;
    }

    .text-2, .text-4 {
        font-size: 18px;
    }

    .perfil {
        width: 80px;
        height: 80px;
    }

    .div-Hastaabajote {
        height: 15rem;  
        width: 100%;    
        padding: 2rem 0;
        justify-content: left;
        margin-top: 1rem;
    }

    .div-qys-padre {
        width: 100%;
        height: auto;
        padding: 0rem;
        flex-direction: column;
    }

    .div-qys-hijo {
        width: 100%;
        height: auto;
    }

    .div-qys-hijo-queja,
    .div-qys-hijo-correo {
        height: auto;
        width: 90%;
        margin: 1rem 0;
        padding: 10px;
        display: flex;
        align-items: center;
    }

    .textbox-queja {
        height: 10rem;
        width: 90%;
    }

    .textbox-correo {
            width: 90%;
        }

    .map-cm{
        width: auto;
        height: 80%;
        margin-top: 115px, 100px;
    }

    .modal-personalizar .modal-content {
        width: 70%;
        max-width: none;
    }

    .div-grandote-horario {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .barralateral{
        width: 65%;
        left: -100%;
    }

     .sidebar-active {
        left: -2%;
    }

    .abmapa{
        width: 170px;
        height: 60px;
        padding: 0;
        margin: 0;
    }

    .editarhorario{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 25px;
    border-radius: 1rem;
    width: 15rem;
    margin-top: 0px;
    height: 4rem;
    background-color: #050247;
    }

    .div-simb {
    flex-direction: row;
    width: 100%;
    padding: 8px 0;
    gap: 5px;
}

.div-simb img {
    height: 45px;
    width: auto;
}


}

