/* === ESTILOS OPTIMIZADOS PARA BOOKING === */

/* Loading spinner mejorado */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(179, 150, 86, 0.2);
    border-top: 4px solid #b39656;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast notifications */
.booking-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #15130f;
    border: 2px solid #b39656;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6), 0 2px 5px rgba(179, 150, 86, 0.2);
    z-index: 10000;
    min-width: 320px;
    max-width: 500px;
    animation: slideInRight 0.3s ease-out;
}

.booking-toast--error {
    border-color: #dc3545;
}

.booking-toast--success {
    border-color: #28a745;
}

.toast-content {
    display: flex;
    align-items: center;
    padding: 1rem;
    gap: 0.75rem;
}

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    color: #f5f0e6;
    font-size: 0.9rem;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #c4b9a2;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.toast-close:hover {
    background-color: #302c25;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Error container mejorado */
.error-container {
    text-align: center;
    padding: 2rem;
    background: #1c1a19;
    border-radius: 8px;
    border: 1px solid #dc3545;
}

.retry-button {
    background: #b39656;
    color: #0a0908;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.2s;
}

.retry-button:hover {
    background: #c9aa6b;
    transform: translateY(-2px);
}

/* Botones de horario mejorados */
.time-slot-btn {
    background: #15130f;
    color: #f5f0e6;
    border: 2px solid #302c25;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 80px;
    position: relative;
}

.time-slot-btn:hover {
    border-color: #b39656;
    background: #1c1a19;
    transform: translateY(-2px);
}

.time-slot-btn:focus {
    outline: 3px solid rgba(179, 150, 86, 0.3);
    outline-offset: 2px;
}

.time-slot-btn.selected {
    background: #b39656;
    color: #0a0908;
    border-color: #b39656;
}

.time-slot-btn.selected::after {
    content: '✓';
    position: absolute;
    top: -8px;
    right: -8px;
    background: #28a745;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Booking success styling */
.booking-success {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-radius: 12px;
    color: #155724;
}

.booking-success h3 {
    margin-bottom: 1rem;
}

.booking-success p {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

/* Form validation improvements */
.form-input.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-input:valid {
    border-color: #28a745;
}

/* Accessibility improvements */
[aria-label]:focus {
    outline: 3px solid #b39656;
    outline-offset: 2px;
}

.instruction-message {
    text-align: center;
    padding: 1.5rem;
    color: #c4b9a2;
    font-style: italic;
}

.instruction-message.error {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 6px;
}

/* Responsive mejoras */
@media (max-width: 768px) {
    .booking-toast {
        left: 10px;
        right: 10px;
        top: 10px;
        min-width: auto;
    }
    
    .time-slot-btn {
        min-width: 70px;
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .loading-spinner {
        padding: 1rem;
    }
    
    .error-container {
        padding: 1.5rem;
    }
}
