/* MODAL BASE */
.modal{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-contenido{
    width: 90%;
    max-width: 650px;
    background: #fff;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    max-height: 80vh;   /* ocupa máximo 80% de la pantalla */
    overflow-y: auto;   /* agrega scroll si se pasa */
}

/* BOTONES */
.botones-formulario{
    display: flex;
    justify-content: center;
    gap: 15px;
}

/*  modal reagendar*/



#modalReagendar h2 {
    color: #02468a;
    font-size: 22px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    text-align: center;
    margin-bottom: 15px;
}

#modalReagendarFecha .modal-contenido{
    overflow-x: hidden;
}

#bloqueBusqueda label {
    color: #070808;
    font-size: 20px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    text-align: center;
    margin-bottom: 15px;
}

#txtDocReagendar{
    height: 40px;
    border-radius: 5px;
    box-shadow: #070808;
}

#btnBuscarCitas{
    width: 60%;
    display: block;
    margin: 25px auto 0 auto;
    background-color: #89f2fa;
    border-radius: 5px;
}

#btnCerrarReagendar{
    border-color: #374141;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 38;

    border: 1px solid #181d22;
    width: 60%;
    display: block;
    margin: 25px auto 0 auto;
    background-color: #4fe1f5;
    border-radius: 5px;
}


.btn-reagendar{
    width: 50%;
    background: #d4e3ec;
    color: rgb(0, 0, 0);
    border: 2px solid #181d22;
    border-radius: 5px;
    padding: 10px;
    margin-top: 10px;
    font-size: 16px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;    
    cursor: pointer;
    transition: 0.3s;
}

.btn-reagendar:hover{
    background: #03c8d6;
}

.cita-item{
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
    background: #f9f9f9;
}


/* fila horizontal */
.fila-fechas{
    display: flex;
    gap: 10px;
}

.campo{
    flex: 1;
}

/* selects más compactos */
.campo select{
    height: 36px;
    border-radius: 8px;
    border: 1px solid #ccc;
    padding: 5px;
    font-size: 13px;
}

#modalReagendarFecha .botones-formulario{
    display: flex;
    justify-content: center;
    gap: 15px;
}

#modalReagendarFecha .botones-formulario button{
    flex: 0 0 auto !important;   /* 🔥 evita que se estiren */
    width: 140px !important;     /* 🔥 fuerza ancho */
    height: 38px;
}

#modalReagendarFecha .modal-contenido{
    width: 90%;
    max-width: 600px;
    padding: 20px;
}

/* cada fila */
.fila{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

/* label a la izquierda */
.fila label{
    width: 60px; /* 🔥 ajusta si quieres */
    font-weight: 600;
    font-size: 14px;
}

/* select ocupa el resto */
.fila select{
    flex: 1;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #ccc;
    padding: 5px;
}

#modalReagendarFecha h2{
    font-size: 26px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    text-align: center;
    color: #0357ac;
    margin-bottom: 15px;
    font-weight: bold;
}

#formReag label{
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 18px;

}




/* OCULTO */
.hidden{
    display: none;
}


@media (max-width: 600px){
    .fila-fechas{
        flex-direction: column;
    }

    .fila{
        flex-direction: column;
        align-items: flex-start;
    }

    .fila label{
        width: 100%;
    }

    .fila select{
        width: 100%;
    }
}


#modalMotivoCancel .modal-contenido{
    max-width: 400px;
}

#modalMotivoCancel select,
#modalMotivoCancel input{
    width: 100%;
    height: 36px;
}

/* FUENTE GLOBAL */
body{
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    background: #f4f6f9;
    margin: 0;
}

/* TITULOS */
h2{
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    color: #2c3e50;
    margin-bottom: 15px;
}

.modal{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-contenido{
    width: 92%;
    max-width: 420px;
    background: #fff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: aparecer .25s ease;
}

@keyframes aparecer{
    from{opacity:0; transform: translateY(20px);}
    to{opacity:1; transform: translateY(0);}
}

.campo{
    margin-bottom: 12px;
}

.campo label{
    font-size: 12px;
    font-weight: bold;
    color: #555;
    margin-bottom: 4px;
    display: block;
}

.campo input,
.campo select{
    width: 100%;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 5px 10px;
    font-size: 13px;
    outline: none;
}

.campo input:focus,
.campo select:focus{
    border-color: #3498db;
}

/* contenedor */
.botones-formulario{
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
}

/* base */
.botones-formulario button{
    width: 130px;
    height: 38px;
    border-radius: 10px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

/* confirmar */
.btn-confirmar{
    background: #2ecc71;
    color: white;
}

.btn-confirmar:hover{
    background: #27ae60;
}

/* cancelar */
.btn-cancelar{
    background: #e74c3c;
    color: white;
}

.btn-cancelar:hover{
    background: #c0392b;
}

.cita-item{
    background: #ffffff;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.cita-item p{
    margin: 3px 0;
    font-size: 13px;
}

/* botón dentro de tarjeta */
.cita-item button{
    width: 100%;
    margin-top: 8px;
}

button:active{
    transform: scale(0.97);
}