/* --- CONTENEDOR PRINCIPAL --- */
#calendar-reservas {
    max-width: 100%;
    margin: 20px 0;
    background-color: #161b22;
    color: #e6edf3;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #30363d;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    margin-bottom: 120px !important; /* Espacio para que no lo tape la barra flotante */
}

/* --- CABECERA FULLCALENDAR --- */
.fc .fc-toolbar-title {
    font-size: 1.2rem !important;
    font-weight: 700;
    color: #58a6ff;
    text-transform: capitalize;
}

.fc .fc-button-primary {
    background-color: #21262d !important;
    border: 1px solid #30363d !important;
    color: #c9d1d9 !important;
    text-transform: capitalize !important;
    transition: all 0.2s ease;
}

.fc .fc-button-primary:hover {
    background-color: #30363d !important;
}

.fc .fc-button-active {
    background-color: #1f6feb !important;
    border-color: #388bfd !important;
}

/* --- CUERPO Y CELDAS --- */
.fc-theme-standard td, .fc-theme-standard th {
    border: 1px solid #30363d !important;
}

.fc .fc-col-header-cell-cushion {
    text-transform: capitalize;
    padding: 10px 0 !important;
    font-size: 1rem;
    color: #e6edf3;
}

.fc .fc-timegrid-slot {
    height: 3.5em !important;
    border-bottom: 1px solid #21262d !important;
}

/* --- EVENTOS (BLOQUES DISPONIBLES/OCUPADOS) --- */
.fc-event-main {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
    text-align: center;
    cursor: pointer;
}

.fc-event-title {
    white-space: normal !important;
}

/* --- ÁREA DE INFORMACIÓN (MODAL INTEGRADA) --- */
.reserva-info-container {
    display: none; /* Se activa por JS */
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    padding: 20px;
    background: #0d1117;
    border: 1px solid #388bfd;
    border-radius: 12px;
    margin: 20px 0;
    text-align: center;
}

.reserva-info-container.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

#reserva-seleccionada {
    color: #58a6ff;
    font-weight: 600;
}

/* --- BARRA FLOTANTE INFERIOR (COMPRA) --- */
form.cart {
    flex-direction: column !important;
    display: flex !important;
}

/* Este contenedor debe envolver a .quantity y al botón en tu PHP */
.amodo-float-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #161b22;
    padding: 15px 25px;
    display: none; /* Aparece por JS */
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
    z-index: 99999;
    border-top: 1px solid #30363d;
}

.amodo-float-bar .quantity {
    display: flex !important;
    align-items: center;
    background: #0d1117;
    padding: 5px 15px;
    border-radius: 8px;
    border: 1px solid #30363d;
    margin: 0 !important;
}

.amodo-float-bar .quantity input.qty {
    background: transparent !important;
    color: #fff !important;
    border: none !important;
    width: 50px !important;
    font-size: 1.3rem !important;
    text-align: center;
}

.amodo-float-bar .quantity::before {
    content: "Personas:";
    color: #8b949e;
    font-size: 0.9rem;
    margin-right: 10px;
}

.amodo-float-bar .single_add_to_cart_button {
    background-color: #388bfd !important;
    color: white !important;
    border-radius: 50px !important;
    padding: 12px 30px !important;
    font-weight: bold;
    border: none;
    margin: 0 !important;
}

@media (max-width: 768px) {
    .amodo-float-bar {
        padding: 10px;
    }
    .amodo-float-bar .single_add_to_cart_button {
        padding: 10px 20px !important;
        font-size: 0.9rem;
    }
}

/* Corregir el contenedor de Elementor dentro de nuestra modal */
#amodo-muda-botones .e-atc-qty-button-holder {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 15px !important;
    width: 100% !important;
}

/* Forzamos que los botones dejen de ser fijos/flotantes si se quedaron con esa propiedad */
#amodo-muda-botones .quantity, 
#amodo-muda-botones .single_add_to_cart_button {
    position: static !important;
    margin: 0 !important;
}

/* Estilo para que el cuadro negro resalte más */
.reserva-info-container {
    background-color: #0d1117 !important;
    border: 2px solid #388bfd !important;
    box-shadow: 0 0 20px rgba(56, 139, 253, 0.2);
    z-index: 10;
}

.amodo-contacto-fields input {
    background: #161b22 !important;
    border: 1px solid #30363d !important;
    color: #fff !important;
    padding: 10px !important;
    border-radius: 6px !important;
    font-size: 0.9rem !important;
}

.amodo-contacto-fields input:focus {
    border-color: #388bfd !important;
    outline: none !important;
}

.amodo-contacto-fields p {
    font-size: 0.85rem;
}

/* Animación para últimas plazas */
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}
.blink-urgente {
    animation: blink 1.5s infinite;
    border: 2px solid white !important;
}

/* Botón WhatsApp en el Admin */
.btn-whatsapp {
    background: #25D366;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 11px;
}
.btn-whatsapp:hover {
    background: #128C7E;
    color: white;
}