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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    min-height: 100vh;
    display: grid;
    grid-template:
        "header header header" 75px
        "aside main side" 1fr
        "footer footer footer" 35px / 12% 1fr 12%;

    background-image: url(https://sfo3.digitaloceanspaces.com/e-fuente/e-fuentedevida.net/sistema_super_salones/elrecurso/bg_5_mejora.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

/*--------------------------HEADER--------------------------------*/

header {
    grid-area: header;
    background: #003377;

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

    padding: 0 30px;
}

.logo {
    width: 290px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img {
    width: 100%;
}

.header_a {
    text-decoration: none;
}

.header_btn {
    font-size: 17px;
    font-weight: bolder;
    padding: 5px 10px;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 8px;
    background-color: transparent;
    transition: all 0.2s;
    outline: none;
    cursor: pointer;
}

.header_btn:hover {
    color: #003377;
    background-color: #fff;
    transform: scale(1.06);
    box-shadow: 0px 0px 9px -1px rgba(227, 227, 227, 0.544);
}

/*---------------------------MAIN--------------------------------*/

main {
    grid-area: main;

    padding: 15px;

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

.title {
    font-size: 35px;
    font-weight: bolder;
    color: #003077;
    text-align: center;
}

.padding {
    width: 100%;
    padding: 20px 0;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 35px;

    background-color: rgb(255, 255, 255);
    box-shadow: 0px 2px 15px -3px rgba(0, 0, 0, 0.15);
}

.fill {
    display: none;

    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.salon {
    width: 150px;
    height: 90px;
    font-size: 20px;
    font-weight: bolder;
    color: #fff;
    border: 2px solid #8c0000;
    background: #fff;
    background-color: #8c0000;
    border-radius: 10px;
    box-shadow: 0px 5px 6px 0px rgba(0, 0, 0, 0.156);

    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.salon:hover {
    transform: scale(1.06);
}

.btn_desplegar {
    width: 390px;
    font-size: 20px;
    color: #fff;
    font-weight: bolder;
    border: 2px solid #003377;
    background-color: #003377;
    border-radius: 8px;
    padding: 7px 17px;
    box-shadow: 0px 2px 15px -5px rgba(0, 0, 0, 0.276);

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
    cursor: pointer;
}

.confirm {
    border: 2px solid #22ce00;
    background-color: #22ce00;
}

.btn_desplegar:hover {
    color: #003377;
    background-color: #fff;
}

.titulos {
    width: 390px;
}

.salones-content-invisible {
    width: 100%;
    display: none;
    transition: all 0.3s;
}

.salones-content {
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    transition: all 0.3s;
}

/*---ESTILOS DE LA TABLA---*/

table {
    width: 80%;
    text-align: center;
    height: 10px;
    overflow: hidden;
}

thead {
    background-color: rgb(226, 226, 226);
}

th {
    border-radius: 8px;
    padding: 10px 15px;
}

td {
    padding: 10px 15px;
}

.fa-circle {
    color: #e30000;
}

.fa-circle-active {
    color: #00e317;
}

/*---Estilos para el SELECT---*/

select {
    appearance: none;
    border: 2px solid #003377;
    border-radius: 8px;
    color: #003377;
    font-weight: bolder;
    padding: 5px 10px;
    font-size: 16px;
    outline: none;
    cursor: pointer;
}

option {
    margin: 5px 10px;
}

.action_mas {
    border-radius: 8px;
    background-color: #003077;
    color: #fff;
    border: 2px solid #003077;
    padding: 5px 15px;
    font-weight: bolder;
}

.action_mas:hover {
    color: #003077;
    background-color: #fff;
    border-color: #003077;
}

/*--------------------------FOOTER--------------------------------*/

footer {
    grid-area: footer;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 12px;
    background: #003377;
}

p span {
    color: #3dd2ff;
}

#action,
.col-action {
    display: none;
}

/* Modal estilos */
.modal {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #11111171;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s 0.1s;
    --transform: translateY(-100vh);
    --transition: transform 0.5s;
    font-family: "Poppins", sans-serif;
}

.modal--show {
    opacity: 1;
    pointer-events: unset;
    transition: opacity 0.6s;
    --transform: translateY(0);
    --transition: transform 0.2s 0.1s;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    border-radius: 8px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

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

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

@media screen and (max-width: 1015px) {
    body {
        grid-template:
            "header header header" 75px
            "aside main side" 1fr
            "footer footer footer" 35px / 2% 1fr 2%;
    }
}

@media screen and (max-width: 900px) {
    table {
        width: 95%;
    }
}

/* Estilos para dispositivos móviles */
@media (max-width: 768px) {
    #ubicacion,
    .col-ubicacion,
    #fecha,
    .col-fecha,
    #hora,
    .col-hora {
        display: none;
    }

    #action,
    .col-action {
        display: table-cell;
    }
}

@media screen and (max-width: 640px) {
    body {
        grid-template:
            "header header header" 75px
            "aside main side" 1fr
            "footer footer footer" 35px / 1% 1fr 1%;
    }

    main {
        padding: 15px 5px;
    }

    table {
        width: 99%;
    }
}

@media screen and (max-width: 530px) {
    header {
        padding: 0 20px;
    }

    .logo {
        width: 200px;
    }
}

@media screen and (max-width: 460px) {
    header {
        padding: 0 15px;
    }
}

@media screen and (max-width: 415px) {
    .btn_desplegar {
        width: 300px;
        margin: 0 auto;
    }

    .titulos {
        width: 300px;
    }

    th {
        font-size: 14px;
        padding: 8px;
    }

    td {
        font-size: 15px;
    }
}

@media screen and (max-width: 370px) {
    .logo {
        width: 180px;
    }

    .logo .logolargo {
        display: none;
    }

    .logo .logoblanco {
        display: block;
        width: 100%;
    }

    .header_btn {
        font-size: 15px;
    }
}

@media screen and (max-width: 330px) {
    .logo {
        width: 130px;
    }

    .btn_desplegar {
        width: 250px;
    }

    .titulos {
        width: 250px;
    }
}
