@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    width: 100%;
    min-height: 100vh;

    display: grid;
    grid-template:  "header header header" 100px 
                    "aside main side" 1fr 
                    "footer footer footer" 40px / 15% 1fr 15%;
}

header {
    grid-area: header;
    background: url(https://e-fuentedevida.net/lastoo_e/vista_docente/recurso/bg-header.jpg);
    background-position: top;
    background-size: cover;
    background-repeat: no-repeat;

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

    padding: 0 50px;
}

header img{
    height: 100px;
}

header form{
    position: relative;
}

header form i{
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translate(0%, -50%);
    color: rgba(128, 128, 128, 0.56);

    transition: .2s ease all;
}

header form input{
    width: 200px;
    border-radius: 15px;
    outline: none;
    border: none;
    padding: 7px 15px;
    padding-right: 30px;
    transition: .2s ease all;
    color: rgba(128, 128, 128, 0.56);
}

header form input:focus{
    width: 250px;
    color: black;
}

header form input:focus~i{
    color: black;
}

.regresar {
    border: 2px solid #fff;
    color: #fff;
    padding: 10px 15px;
    font-weight: bolder;
    text-decoration: none;
    cursor: pointer;
    border-radius: 8px;
    background-color: transparent;
    transition: all 0.2s;
}

.regresar:hover {
    color: #775DFF;
    border-color: #fff;
    background-color: #fff;
    transform: scale(1.05);
    box-shadow: 0px 4px 15px -3px rgba(0, 0, 0, 0.341);
}

main{
    grid-area: main;
    padding: 30px 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    justify-content: space-between;
}

.paginacion{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 5px 15px;
}


.paginacion a{
    margin: 5px;

    padding: 7px 20px;

    background-color: #2E87FF;
    color: white;

    border-radius: 10px;

    text-decoration: none;

    transition: .2s ease all;
}

.paginacion a:hover{
    background-color: #7463FF;
    box-shadow: 0px 5px 15px rgba(74, 74, 74, 0.589);
}

.pagination button{
    margin: 5px;

    padding: 7px 20px;

    background-color: #2E87FF;
    color: white;

    border-radius: 10px;

    text-decoration: none;

    transition: .2s ease all;

    outline: none;
    border: none;
}

.pagination button:hover{
    background-color: #7463FF;
    box-shadow: 7px 5px 5px rgba(0, 0, 0, 0.589);
}
.cards{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.card{
    width: 350px;
    min-height: 270px;

    background: url(https://sfo3.digitaloceanspaces.com/e-fuente/e-fuentedevida.net/lastoo_e/vista_docente/recurso/bg-header.jpg);
    background-position: bottom;
    background-size: cover;

    border-radius: 20px;
    box-shadow: 0px 5px 15px rgba(72, 72, 72, 0.468);

    display: flex;
    flex-direction: column-reverse;
}

.card-info{
    padding: 40px 15px 20px 15px; 
    background-color: white;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    border-radius: 20px 20px 20px 20px;

    object-fit: fill;

    position: relative;
}

.fecha{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    box-shadow: 0 0 10px rgba(0, 0, 0, 0.506);

    background-color: white;
    border-radius: 15px;
    padding: 10px;
    font-weight: 700;
}

.mes{
    font-size: 12px;
    font-weight: 500;
    color: #5C68DE;
}

.ev-title{
    font-weight: 700;
    font-size: 20px;
}

.ev-info{
    font-size: 14px;
    color: rgba(0, 0, 0, 0.542);
}

.mark{
    font-weight: 500;
}

.funciones{
    position: absolute;
    top: -30px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.edit button{
    background-color: #080D56;
}

.delete button{
    background-color: #d62828;
}

.copy button{
    background-color: #0DAAD2;
}

.show button{
    background-color: #91C306;
}

.play button{
    background-color: #03CEA4;
}

.coment button{
    background-color: #5c28d6;
}

.float-btn button{
    font-size: 20px;
    height: 35px;
    width: 35px;
    border-radius: 50%;
    border: none;
    
    color: white;

    transition: all ease .2s;
    cursor: pointer;
}

.float-btn button:hover{
    box-shadow: 4px 4px 5px rgba(51, 51, 51, 0.535);

}

footer{
    grid-area: footer;
    background: url(https://sfo3.digitaloceanspaces.com/e-fuente/e-fuentedevida.net/lastoo_e/vista_docente/recurso/bg-header.jpg);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.alerta{
    position: fixed;
    top: 0;
    left: 0;

    padding: 35px;

    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.343);

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

    opacity: 0;

    pointer-events: none;

    transition: opacity .2s ease ;
}

.alerta--show{
    opacity: 1;
    z-index: 3;
    pointer-events: unset;

    display: flex;
    justify-content: center;
    align-items: center;
}

.alerta-container{
    background-color: white;
    border-radius: 20px;
    padding: 40px;

    max-width: 700px;

    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    gap: 20px;

    position: relative;
}

.alerta-container .botonera{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.botonera button{
    width: 150px;
    height: 35px;

    border-radius: 10px;

    border: none;
    outline: none;
    margin: 5px;

    margin-top: 20px;
}

.alerta-header{
    font-size: 24px;
    font-weight: 700;
    color: #3041A7;
    text-align: center;
    width: 100%;
}

.cancel{
    background-color: #91C306;
    color: white;
}

.aceptar{
    background-color: #d62828;
    color: white;
}

.modal{
    position: fixed;
    top: 0;
    left: 0;

    padding: 35px;

    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.343);

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

    opacity: 0;

    pointer-events: none;

    transition: opacity .2s ease ;
}

.modal--show{
    opacity: 1;
    z-index: 3;
    pointer-events: unset;
}

.modal-container{
    background-color: white;
    border-radius: 20px;
    padding: 40px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#clase{
    width: 300px;
    padding: 7px 15px;
    margin: 10px;

    border-radius: 10px;
    font-size: 16px;
}

#success_msg{
    width: 100%;
    margin: 10px 0;
}

#success_msg .mensaje{
    width: 100%;
    padding: 7px;
    text-align: center;

    border-radius: 10px;
    color: white;

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

    margin: 7px 0;
}

.msg_correct{
    background-color: #91C306;
}

.msg_error{
    background-color: #d62828;
}

.cerrar{
    margin: 5px;

    padding: 7px 20px;

    background-color: #2E87FF;
    color: white;

    border-radius: 10px;

    text-decoration: none;

    transition: .2s ease all;
}

.cerrar:hover{
    background-color: #7463FF;
    box-shadow: 7px 5px 5px rgba(0, 0, 0, 0.589);
}

.cerrar_alerta {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 25px;
    cursor: pointer;
}

.tooltip {
    display: none;
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 5px;
    border-radius: 5px;
    font-size: 12px;
    top: -40px; /* Ajusta según tu necesidad */
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 10;
}

button:hover .tooltip {
    display: block;
}

.aceptar, .cancel {
    cursor: pointer;
}

.informacion_alerta {
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
    gap: 15px;
}

.title-modal {
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 20px;
}

.punteo-modal {
    margin-bottom: 10px;
}

/* ---------------------------------- MEDIAS QUERY -------------------------------------- */

@media  screen and (max-width: 600px) {
    header img{
        height: 50px;
    }
}

@media  screen and (max-width: 500px) {
    body{
        display: grid;
        grid-template:  "header header header" 100px 
                        "aside main side" 1fr 
                        "footer footer footer" 40px / 0% 1fr 0%;
    }
}

@media screen and (max-width: 400px){
    header img{
        display: none;
    }

    .cards {
        width: 90%;
    }

    .card{
        width: 100%;
    }
}