/* Modal de reserva de bandas locales */

.bandas-modal-native {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.bandas-modal-native.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.bandas-modal-native .bandas-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}

.bandas-modal-native .bandas-container {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    background: linear-gradient(145deg, #1A1A1A, #2C3E50);
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 255, 0.25);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), var(--glow-blue);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(24px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bandas-modal-native.show .bandas-container {
    transform: translateY(0) scale(1);
}

.bandas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(139, 92, 246, 0.08));
    flex-shrink: 0;
}

.bandas-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bandas-header-title i {
    font-size: 1.4rem;
    color: var(--neon-blue);
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.5));
}

.bandas-header-title h3 {
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.05em;
}

.bandas-close-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    line-height: 1;
}

.bandas-close-btn:hover {
    background: rgba(255, 0, 128, 0.15);
    border-color: var(--neon-pink);
    color: var(--neon-pink);
}

.bandas-steps {
    display: flex;
    gap: 0;
    padding: 12px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.bandas-step {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.bandas-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.bandas-step.active .bandas-step-num {
    background: var(--neon-blue);
    border-color: var(--neon-blue);
    color: #000;
    box-shadow: var(--glow-blue);
}

.bandas-step.active {
    color: var(--text-primary);
}

.bandas-step.done .bandas-step-num {
    background: var(--neon-green);
    border-color: var(--neon-green);
    color: #000;
}

.bandas-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.bandas-panel {
    display: none;
}

.bandas-panel.active {
    display: block;
    animation: bandasFadeIn 0.25s ease;
}

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

/* Búsqueda */
.bandas-search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.bandas-search-input-wrap {
    flex: 1;
    position: relative;
}

.bandas-search-input-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.bandas-search-input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-fast);
}

.bandas-search-input:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

.bandas-search-input::placeholder {
    color: rgba(176, 176, 176, 0.5);
}

.bandas-genre-select {
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
    min-width: 160px;
    transition: var(--transition-fast);
}

.bandas-genre-select:focus {
    border-color: var(--neon-blue);
}

.bandas-genre-select option {
    background: #1A1A1A;
}

/* Lista de bandas */
.bandas-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 340px;
    overflow-y: auto;
}

.bandas-list::-webkit-scrollbar {
    width: 4px;
}

.bandas-list::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 4px;
}

.banda-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.banda-card:hover {
    border-color: rgba(0, 212, 255, 0.4);
    background: rgba(0, 212, 255, 0.05);
}

.banda-card.selected {
    border-color: var(--neon-blue);
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.3);
}

.banda-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(139, 92, 246, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.banda-card-icon i {
    font-size: 1.2rem;
    color: var(--neon-blue);
}

.banda-card-info {
    flex: 1;
    min-width: 0;
}

.banda-card-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.banda-card-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.banda-card-genre {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--neon-purple);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.banda-card-duration {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.banda-card-price {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--neon-green);
    white-space: nowrap;
}

.bandas-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.bandas-empty i {
    font-size: 2rem;
    margin-bottom: 12px;
    opacity: 0.4;
    display: block;
}

/* Calendario */
.bandas-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.bandas-selected-info {
    margin-bottom: 16px;
    padding: 12px 16px;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
}

.bandas-selected-info h4 {
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.bandas-selected-info p {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.bandas-cal-nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.bandas-cal-nav-btn:hover {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
}

.bandas-cal-month {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
    text-transform: capitalize;
}

.bandas-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.bandas-cal-day-name {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-secondary);
    padding: 6px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bandas-cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.2);
    cursor: default;
    transition: var(--transition-fast);
}

.bandas-cal-day.empty {
    pointer-events: none;
}

.bandas-cal-day.available {
    color: var(--text-primary);
    cursor: pointer;
    border: 1px solid rgba(0, 255, 136, 0.2);
    background: rgba(0, 255, 136, 0.05);
}

.bandas-cal-day.available:hover {
    background: rgba(0, 255, 136, 0.15);
    border-color: var(--neon-green);
}

.bandas-cal-day.selected {
    background: var(--neon-green);
    color: #000;
    border-color: var(--neon-green);
    font-weight: 700;
    box-shadow: var(--glow-green);
}

.bandas-cal-legend {
    display: flex;
    gap: 16px;
    margin-top: 14px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.bandas-cal-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bandas-cal-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.bandas-cal-legend-dot.available {
    background: rgba(0, 255, 136, 0.3);
    border: 1px solid var(--neon-green);
}

.bandas-cal-legend-dot.unavailable {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Perfil de banda */
.banda-profile-top {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.banda-profile-image-wrap {
    position: relative;
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(0, 212, 255, 0.25);
}

.banda-profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banda-profile-image-fallback {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--neon-blue);
    opacity: 0.5;
}

.banda-profile-image-wrap.no-image .banda-profile-image-fallback {
    display: flex;
}

.banda-profile-header {
    flex: 1;
    min-width: 0;
}

.banda-profile-name {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.2;
}

.banda-profile-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.banda-stars {
    display: flex;
    gap: 2px;
    color: #FFD700;
    font-size: 0.85rem;
}

.banda-rating-num {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.banda-profile-genre {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--neon-purple);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.banda-profile-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0 0 12px;
}

.banda-profile-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.banda-profile-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.banda-profile-meta i {
    color: var(--neon-blue);
    font-size: 0.75rem;
}

.banda-profile-section {
    margin-bottom: 18px;
}

.banda-profile-section-title {
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.banda-profile-section-title i {
    color: var(--neon-blue);
    font-size: 0.75rem;
}

.banda-samples {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.banda-sample-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    transition: var(--transition-fast);
}

.banda-sample-item:hover {
    border-color: rgba(0, 212, 255, 0.3);
}

.banda-sample-play {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.75rem;
    transition: var(--transition-fast);
}

.banda-sample-play:hover {
    transform: scale(1.08);
    box-shadow: var(--glow-blue);
}

.banda-sample-play.playing {
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
    color: #fff;
}

.banda-sample-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.banda-sample-title {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.banda-sample-hint {
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-family: var(--font-mono);
}

.banda-lugares {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.banda-lugar-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.banda-lugar-tag i {
    color: var(--neon-blue);
    font-size: 0.65rem;
}

.banda-profile-empty {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-style: italic;
    margin: 0;
}

/* Pago */
.bandas-payment-summary {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.bandas-payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
}

.bandas-payment-row:last-child {
    border-bottom: none;
    padding-top: 14px;
    margin-top: 4px;
}

.bandas-payment-label {
    color: var(--text-secondary);
}

.bandas-payment-value {
    color: var(--text-primary);
    font-weight: 500;
}

.bandas-payment-total .bandas-payment-label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

.bandas-payment-total .bandas-payment-value {
    color: var(--neon-green);
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
}

.bandas-stripe-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #635BFF, #8B5CF6);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition-fast);
    letter-spacing: 0.03em;
}

.bandas-stripe-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 91, 255, 0.4);
}

.bandas-stripe-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bandas-stripe-btn i {
    font-size: 1.1rem;
}

.bandas-stripe-note {
    text-align: center;
    margin-top: 12px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.bandas-stripe-note i {
    color: var(--neon-green);
    margin-right: 4px;
}

/* Footer */
.bandas-footer {
    display: flex;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.bandas-btn {
    padding: 12px 20px;
    border-radius: 12px;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    letter-spacing: 0.03em;
}

.bandas-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
}

.bandas-btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
}

.bandas-btn-primary {
    flex: 1;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: #000;
    font-weight: 700;
}

.bandas-btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--glow-blue);
}

.bandas-btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.bandas-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px;
    color: var(--text-secondary);
}

.bandas-loading i {
    color: var(--neon-blue);
}

/* Vista desktop — modal más amplio */
@media (min-width: 901px) {
    .bandas-modal-native {
        padding: var(--space-xl);
    }

    .bandas-modal-native .bandas-container {
        max-width: 1040px;
        min-height: 620px;
        max-height: 88vh;
        border-radius: 20px;
    }

    .bandas-header {
        padding: 24px 32px 18px;
    }

    .bandas-header-title h3 {
        font-size: 1.35rem;
    }

    .bandas-steps {
        padding: 14px 32px;
    }

    .bandas-step {
        font-size: 0.75rem;
    }

    .bandas-body {
        padding: 24px 32px;
        min-height: 420px;
    }

    .bandas-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        max-height: 480px;
    }

    .banda-card {
        padding: 16px 18px;
    }

    .banda-card-name {
        font-size: 1rem;
    }

    .bandas-cal-grid {
        gap: 6px;
        max-width: 520px;
        margin: 0 auto;
    }

    .bandas-cal-day {
        font-size: 0.9rem;
    }

    .bandas-payment-summary {
        padding: 28px 32px;
        max-width: 560px;
        margin: 0 auto 24px;
    }

    .bandas-stripe-btn {
        max-width: 400px;
        margin: 0 auto;
        padding: 16px 24px;
        font-size: 1rem;
    }

    .bandas-stripe-note {
        max-width: 400px;
        margin: 14px auto 0;
    }

    .bandas-footer {
        padding: 16px 24px;
        justify-content: flex-end;
    }

    .bandas-btn {
        padding: 16px 24px;
        font-size: 1rem;
        border-radius: 12px;
    }

    .bandas-btn-secondary {
        margin-right: auto;
    }

    .bandas-btn-primary {
        flex: 0 0 auto;
        min-width: 200px;
        max-width: 400px;
    }

    .banda-profile-top {
        gap: 28px;
    }

    .banda-profile-image-wrap {
        width: 180px;
        height: 180px;
    }

    .banda-profile-name {
        font-size: 1.5rem;
    }

    .banda-samples {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

}

@media (max-width: 600px) {
    .bandas-modal-native {
        padding: 0;
        align-items: flex-end;
    }

    .bandas-modal-native .bandas-container {
        width: 100%;
        max-width: 100%;
        max-height: 95dvh;
        max-height: 95vh;
        border-radius: 16px 16px 0 0;
        min-height: 0;
    }

    .bandas-header {
        padding: 16px 16px 12px;
    }

    .bandas-header-title h3 {
        font-size: 1rem;
    }

    .bandas-search-bar {
        flex-direction: column;
    }

    .bandas-genre-select {
        min-width: unset;
        width: 100%;
    }

    .bandas-step-label {
        display: none;
    }

    .bandas-steps {
        padding: 10px 16px;
        justify-content: center;
        gap: 16px;
    }

    .bandas-body {
        padding: 16px;
    }

    .bandas-list {
        max-height: none;
    }

    .bandas-search-input,
    .bandas-genre-select {
        font-size: 16px;
    }

    .bandas-footer {
        flex-direction: column-reverse;
        gap: 10px;
        padding: 14px 16px;
        padding-bottom: max(14px, env(safe-area-inset-bottom, 14px));
    }

    .bandas-btn {
        display: flex;
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .bandas-btn-primary {
        flex: none;
    }

    .banda-profile-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .banda-profile-rating {
        justify-content: center;
    }

    .banda-profile-meta {
        justify-content: center;
    }

    .banda-profile-image-wrap {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .bandas-modal-native .bandas-container {
        max-height: 100dvh;
        max-height: 100vh;
        border-radius: 12px 12px 0 0;
    }

    .bandas-header {
        padding: 14px 14px 10px;
    }

    .bandas-body {
        padding: 14px;
    }
}
