/* Estilos del sistema de reservas */
.booking-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-4);
}

.booking-modal__backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: reservaFadeIn 0.2s ease;
}

.booking-modal__panel {
    position: relative;
    background: #fff;
    border-radius: var(--radius-2xl);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: reservaSlideUp 0.3s var(--ease-spring) both;
    z-index: 1;
    padding: var(--sp-8);
}

.booking-modal__close {
    position: absolute;
    top: var(--sp-4);
    right: var(--sp-4);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    color: var(--c-text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    z-index: 2;
}

.booking-modal__close:hover {
    background: rgba(0, 0, 0, 0.12);
    color: var(--c-heading);
}

.booking-step {
    display: none;
}

.booking-step--active {
    display: block;
}

.booking-step h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--c-heading);
    margin-bottom: var(--sp-6);
    text-align: center;
}

.booking-info {
    text-align: center;
    color: var(--c-text-muted);
    margin-bottom: var(--sp-6);
}

.booking-field {
    margin-bottom: var(--sp-5);
}

.booking-field label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--c-heading);
    margin-bottom: var(--sp-2);
}

.booking-field input,
.booking-field select,
.booking-field textarea {
    width: 100%;
    padding: var(--sp-3) var(--sp-4);
    border: 1.5px solid var(--c-border);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-family: inherit;
    transition: border-color 0.2s ease;
    background: #fff;
}

.booking-field input:focus,
.booking-field select:focus,
.booking-field textarea:focus {
    outline: none;
    border-color: var(--c-primary);
}

.booking-field textarea {
    min-height: 100px;
    resize: vertical;
}

.booking-hint {
    display: block;
    font-size: var(--text-xs);
    color: var(--c-text-muted);
    margin-top: var(--sp-1);
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-2);
    margin-top: var(--sp-2);
}

.time-slot {
    padding: var(--sp-2);
    border: 1.5px solid var(--c-border);
    border-radius: var(--radius-md);
    background: #fff;
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-slot:hover {
    border-color: var(--c-primary);
    background: var(--c-accent);
}

.time-slot.selected {
    background: var(--c-primary);
    color: #fff;
    border-color: var(--c-primary);
}

.booking-summary {
    background: var(--c-accent);
    border-radius: var(--radius-lg);
    padding: var(--sp-4);
    margin-bottom: var(--sp-5);
}

.summary-item {
    padding: var(--sp-2) 0;
    border-bottom: 1px solid var(--c-border);
    font-size: var(--text-sm);
}

.summary-item:last-child {
    border-bottom: none;
}

.booking-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    width: 100%;
    padding: var(--sp-3) var(--sp-6);
    border-radius: 999px;
    font-size: var(--text-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    margin-bottom: var(--sp-3);
}

.booking-btn--primary {
    background: var(--c-cta, #8B0000);
    color: #fff;
}

.booking-btn--primary:hover {
    background: var(--c-cta-hv, #660000);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.25);
}

.booking-btn--primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.booking-btn--ghost {
    background: transparent;
    color: var(--c-text-muted);
    border: 1.5px solid rgba(0, 0, 0, 0.1);
}

.booking-btn--ghost:hover {
    border-color: rgba(0, 0, 0, 0.25);
    color: var(--c-heading);
}

.booking-success {
    text-align: center;
    padding: var(--sp-4) 0;
}

.booking-success__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--c-success, #3D8B5E);
    color: #fff;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--sp-5);
}

.booking-success p {
    color: var(--c-text);
    line-height: 1.6;
    margin-bottom: var(--sp-4);
}

.booking-success .booking-hint {
    text-align: center;
    margin-top: var(--sp-4);
}

.loading {
    text-align: center;
    padding: var(--sp-4);
    color: var(--c-text-muted);
}

.error {
    text-align: center;
    padding: var(--sp-4);
    color: var(--c-error, #C4554D);
}

/* Responsive */
@media (max-width: 600px) {
    .time-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .booking-modal__panel {
        padding: var(--sp-6);
    }
}

@keyframes reservaFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Estado oculto del modal */
.booking-modal--hidden {
    display: none !important;
}
