/* ==============================
   ESTILOS GENERALES
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f4f4;
    color: #333;
    text-align: center;
    padding: 20px;
}

/* ==============================
   CALENDARIO
================================ */
#calendar {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* FullCalendar Customization */
.fc-daygrid-day {
    cursor: pointer;
}

.fc-day-today {
    background: #2bc4e3 !important;
    color: white !important;
}

.fc-event {
    background: transparent !important;
    border: none;
    color: white;
    font-weight: bold;
}

.fc-event-title-container {
    background-color: transparent;
}

/* Opcional: Si utilizas un "dot" dentro de los eventos */
.calendar-event-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--bg-color, #000);
    position: absolute;
    top: 5px;
    right: 5px;
}

/* ==============================
   MODAL DE HORARIOS DISPONIBLES
================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.756);
    align-items: center;
    justify-content: center;
}

/* Mostrar modal cuando tenga la clase "activo" */
.modal.activo {
    display: flex;
}

/* Contenedor del modal */
.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 400px;
    text-align: center;
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
}

/* Animación de aparición */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Botón de cerrar */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 20px;
}

ul {
    list-style: none;
    padding: 0;
}

.horario-item {
    padding: 10px;
    background: #2bc4e3;
    color: white;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
}

.horario-item:hover {
    background: #1d2b2d;
}

/* Estilos para días bloqueados */
.disabled-date {
    background: #ccc !important;
    pointer-events: none;
    opacity: 0.5;
}

/* ==============================
   MODAL DE RESERVA
================================ */
#reservaModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.762); /* Opacidad en el fondo */
    align-items: center;
    justify-content: center;
}

/* Mostrar modal cuando tenga la clase "activo" */
#reservaModal.activo {
    display: flex;
}

/* Contenedor del modal de reserva */
#reservaModal .modal-content {
    background: white;
    padding: 20px;
    width: 320px; /* Compacto */
    border-radius: 10px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
}
/* Formulario del modal */
#reservaModal form {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Espacio entre cada campo */
    align-items: flex-start; /* Alinear contenido a la izquierda */
}

/* Labels alineados a la izquierda */
#reservaModal label {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    text-align: left;
    width: 100%;
}
/* Inputs compactos */
#reservaModal input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}
#reservaInfo{
    margin: 10px;
    font-size: 14px;
    font-weight: bold;
}

/* Botón de reservar */
#reservaModal button {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

#reservaModal button:hover {
    background-color: #2980b9;
}

/* ==============================
   MENSAJES DE ERROR Y ÉXITO
================================ */
.mensaje {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 300px;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    text-align: center;
    display: none;
    z-index: 1100;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

/* Tipos de mensajes */
.mensaje.success {
    background: #2ecc71;
    color: white;
}

.mensaje.error {
    background: #e74c3c;
    color: white;
}

.mensaje.warning {
    background: #f39c12;
    color: white;
}

.mensaje.info {
    background: #3498db;
    color: white;
}
