@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 .logolargo {
    width: 100%;
}

.logo .logoblanco {
    display: none;
}

.header_a, .header_a_pendientes {
    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);
}

.options {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0 30px;
}

/*---------------------------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: 15px;

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

.fill {
    display: none;
    padding: 25px 0px 0px 0px;

    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px 20px;
}

.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%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    transition: all 0.3s;
}

form {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 30px;
}

.radios {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.calendario {
    display: none;
}

input[type="date"] {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    width: 100%;
}

/* Estilos para mostrar el calendario cuando se selecciona un input de radio */
.mostrar {
    display: block;
}

.form_btn {
    font-size: 17px;
    font-weight: bolder;
    background-color: #003077;
    border: none;
    color: #fff;
    border-radius: 8px;
    padding: 10px 10px;
    margin-top: 20px;
    transition: all 0.2s;
    outline: none;
    cursor: pointer;
}

.form_btn:hover {
    transform: scale(1.02);
    box-shadow: 0px 4px 10px -3px rgba(0, 0, 0, 0.552);
}

/*---ESTILOS PARA LOS INPUT RADIO---*/

label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    position: relative;
    margin-bottom: 10px;
}

label::before {
    position: absolute;
    content: "";
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 45px;
    z-index: -1;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 10px;
    border: 2px solid transparent;
}
label:hover::before {
    transition: all 0.2s ease;
    background-color: rgb(0, 203, 0);
}

.label:has(input:checked)::before {
    background-color: rgb(0, 203, 0);
    border-color: rgb(0, 203, 0);
    height: 50px;
}

.label .text {
    color: #fff;
}

.label input[type="radio"] {
    background-color: #ffffff;
    border: 1px solid rgb(89, 89, 89);
    appearance: none;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.label input[type="radio"]:checked {
    background-color: rgb(0, 203, 0);
    border: 1px solid rgb(0, 203, 0);
    -webkit-animation: puls 0.7s forwards;
    animation: pulse 0.7s forwards;
}

.label input[type="radio"]:before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    transition: all 0.1s cubic-bezier(0.165, 0.84, 0.44, 1);
    background-color: #fff;
    transform: scale(0);
}

.label input[type="radio"]:checked::before {
    transform: scale(1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/*--------------------------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;
}

/*-----------------------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: 670px) {
    .logo {
        width: 50px;
    }

    .logo .logolargo {
        display: none;
    }

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

    .padding {
        padding: 20px 10px;
    }
}

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

    .options {
        gap: 15px;
    }

    .container_btn {
        width: 310px;
        height: 100px;
    }

    .radios {
        gap: 15px;
    }

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

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

    header {
        padding: 0 15px;
    }

    .container_btn {
        width: 300px;
        height: 100px;
    }
}

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

    .logo .logolargo {
        display: none;
    }

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

    .header_btn {
        font-size: 15px;
    }

    .container_btn {
        width: 260px;
        height: 100px;
    }
}

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

    .logo {
        width: 130px;
    }

    .container_btn {
        width: 260px;
        height: 100px;
        font-size: 15px;
    }
}

@media screen and (max-width: 310px) {
    .container_btn {
        width: 230px;
        height: 100px;
        font-size: 15px;
    }
}