/* ==========================================================================
   MODALES (Booking y Enquire)
   ========================================================================== */

.vxm-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.vxm-modal.is-open {
    display: flex;
    animation: vxmFadeIn 0.2s ease;
}

.vxm-modal__backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.vxm-modal__content {
    position: relative;
    background: var(--vxm-white);
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.vxm-modal__content--wide {
    max-width: 640px;
}

.vxm-modal__close {
    position: absolute;
    top: 12px; right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--vxm-gray-400);
    cursor: pointer;
    transition: color var(--vxm-transition);
    line-height: 1;
}

.vxm-modal__close:hover {
    color: var(--vxm-gray-800);
}

.vxm-modal__title {
    font-family: var(--vxm-font-heading);
    font-size: 1.5rem;
    color: var(--vxm-primary);
    margin-bottom: 4px;
}

.vxm-modal__subtitle {
    font-size: 0.9rem;
    color: var(--vxm-gray-400);
    margin-bottom: var(--vxm-space-lg);
    padding-bottom: var(--vxm-space-md);
    border-bottom: 1px solid var(--vxm-gray-200);
}

/* Mensaje de éxito */
.vxm-modal__success {
    text-align: center;
    padding: var(--vxm-space-xl) 0;
}

.vxm-modal__success svg {
    margin: 0 auto var(--vxm-space-md);
}

.vxm-modal__success p {
    font-size: 1.1rem;
    color: var(--vxm-gray-800);
    line-height: 1.6;
}

.vxm-booking-number {
    font-family: var(--vxm-font-heading);
    font-size: 1.3rem;
    color: var(--vxm-primary);
    margin-top: var(--vxm-space-sm);
}

/* ==========================================================================
   FORMULARIOS
   ========================================================================== */

.vxm-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 14px;
}

.vxm-form-grid:has(> :nth-child(3)) {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 500px) {
    .vxm-form-grid {
        grid-template-columns: 1fr;
    }
}

.vxm-form-field {
    margin-bottom: 4px;
}

.vxm-form-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--vxm-gray-600);
    margin-bottom: 4px;
}

.vxm-form-field input,
.vxm-form-field textarea,
.vxm-form-field select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--vxm-gray-300);
    border-radius: 8px;
    font-family: var(--vxm-font-body);
    font-size: 0.95rem;
    color: var(--vxm-gray-800);
    transition: border-color var(--vxm-transition), box-shadow var(--vxm-transition);
    background: var(--vxm-white);
}

.vxm-form-field input:focus,
.vxm-form-field textarea:focus,
.vxm-form-field select:focus {
    outline: none;
    border-color: var(--vxm-secondary);
    box-shadow: 0 0 0 3px rgba(1, 208, 186, 0.15);
}

.vxm-form-field textarea {
    resize: vertical;
}

.vxm-btn--full {
    width: 100%;
    margin-top: var(--vxm-space-md);
}

/* ==========================================================================
   CONTROL DE CANTIDAD (+/-)
   ========================================================================== */

.vxm-qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--vxm-gray-300);
    border-radius: 8px;
    overflow: hidden;
}

.vxm-qty-btn {
    width: 44px;
    height: 44px;
    background: var(--vxm-gray-100);
    border: none;
    font-size: 1.2rem;
    color: var(--vxm-primary);
    cursor: pointer;
    transition: background var(--vxm-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vxm-qty-btn:hover {
    background: var(--vxm-gray-200);
}

.vxm-qty-control input {
    width: 50px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--vxm-gray-300);
    border-right: 1px solid var(--vxm-gray-300);
    border-radius: 0;
    padding: 10px 0;
    font-weight: 700;
    font-size: 1rem;
}

.vxm-qty-control input:focus {
    box-shadow: none;
}

/* ==========================================================================
   BOOKING STEPS
   ========================================================================== */

.vxm-booking-step {
    display: none;
}

.vxm-booking-step.is-active {
    display: block;
    animation: vxmFadeIn 0.3s ease;
}

.vxm-booking-step__title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    color: var(--vxm-primary);
    margin-bottom: var(--vxm-space-lg);
}

.vxm-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--vxm-secondary);
    color: var(--vxm-white);
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
}

.vxm-booking-step__actions {
    display: flex;
    gap: 12px;
    margin-top: var(--vxm-space-lg);
}

.vxm-booking-step__actions .vxm-btn {
    flex: 1;
}

/* ==========================================================================
   BOOKING SUMMARY (resumen de precio)
   ========================================================================== */

.vxm-booking-summary {
    background: var(--vxm-gray-100);
    border-radius: 10px;
    padding: 16px 20px;
    margin: var(--vxm-space-lg) 0;
}

.vxm-booking-summary__row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--vxm-gray-600);
    margin-bottom: 8px;
}

.vxm-booking-summary__total {
    display: flex;
    justify-content: space-between;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--vxm-primary);
    padding-top: 12px;
    margin-top: 12px;
    border-top: 2px solid var(--vxm-gray-200);
}

/* ==========================================================================
   LOADING STATE
   ========================================================================== */

.vxm-btn.is-loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.vxm-btn.is-loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: vxmSpin 0.6s linear infinite;
    margin-left: 8px;
}

@keyframes vxmSpin {
    to { transform: rotate(360deg); }
}