/* ===== BASE ===== */
.body{
    font-family: Verdana, Geneva, Tahoma, sans-serif;   
    margin: 0;
    background-color: #27ae60;
}

/* ===== ENCABEZADO ===== */
.encabezado{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #ffffff;
}

.logo{
    width: 780px;
    max-width: 45vw;
}

/* ===== BOTONES PRINCIPALES ===== */
.botones{
    display: grid;
    grid-template-columns: repeat(2, 180px);
    justify-content: center;
    gap: 40px 20px;
    margin-top: 120px;
}

.btn-menu{
    width: 170px;
    cursor: pointer;
    transition: transform .2s ease;
}

.btn-menu:hover{
    transform: scale(1.05);
}

/* ===== MODAL ===== */
.modal{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-contenido{
    width: 95%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ocultar */
.hidden{
    display: none !important;
}

/* ===== FORMULARIO ===== */
#formNuevaCita{
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* labels */
#formNuevaCita label{
    font-size: 14px;
    color: #1b5c9b;
    font-weight: bold;
}

/* inputs y selects */
#formNuevaCita input,
#formNuevaCita select{
    width: 100%;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #ccc;
    padding: 5px 10px;
    font-size: 14px;
    box-sizing: border-box;
}

/* ===== BOTONES FORM ===== */
.botones-formulario{
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.botones-formulario button{
    width: 140px;
    height: 40px;
    border-radius: 10px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

/* botón principal */
.botones-formulario button[type="submit"],
#btnConfirmarGuardar{
    background: #2ecc71;
    color: white;
}

.botones-formulario button[type="submit"]:hover{
    background: #27ae60;
}

/* botón cancelar */
#btnCerrarModal,
#btnVolver{
    background: #e74c3c;
    color: white;
}

#btnCerrarModal:hover,
#btnVolver:hover{
    background: #c0392b;
}

/* ===== MENSAJE ===== */
.mensaje-confirmacion{
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
    color: #444;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px){

    .botones{
        grid-template-columns: 1fr;
        margin-top: 60px;
        text-align: center;
    }

    .btn-menu{
        width: 150px;
    }

    .modal-contenido{
        width: 100%;
        max-width: none;
        margin: 10px;
        padding: 15px;
    }

    #formNuevaCita input,
    #formNuevaCita select{
        height: 38px;
    }

    .botones-formulario button{
        width: 120px;
        height: 38px;
    }
}