/* ============================================
   CONTROL DE SCROLL EN MODAL DEL CARRITO
   Estilos para indicador de scroll y botón bloqueado
   ============================================ */

/* Indicador de scroll */
.scroll-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ff6b6b;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 16px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border-radius: 25px;
    border: 2px solid #ff6b6b;
    animation: pulse-indicator 2s infinite;
}

.scroll-indicator i {
    font-size: 1.1rem;
    animation: bounce-arrow 1.5s infinite;
}

@keyframes pulse-indicator {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 107, 107, 0);
    }
}

@keyframes bounce-arrow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(5px);
    }
}

/* Botón de pago bloqueado */
.btn-pagar[disabled] {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    background: linear-gradient(135deg, #999 0%, #777 100%) !important;
    border-color: #999 !important;
}

.btn-pagar[disabled]:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Estado normal del botón */
.btn-pagar:not([disabled]) {
    background: linear-gradient(135deg, #d4af37 0%, #c9a030 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.btn-pagar:not([disabled]):hover {
    background: linear-gradient(135deg, #e0bd45 0%, #d4af37 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.5);
}

.btn-pagar:not([disabled]):active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Texto del botón bloqueado */
#btn-pago-locked {
    color: white;
    display: none;
}

.btn-pagar[disabled] #btn-pago-locked {
    display: inline;
}

.btn-pagar[disabled] #btn-pago-text {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .scroll-indicator {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .scroll-indicator i {
        font-size: 1rem;
    }

    .btn-pagar {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    #btn-pago-locked {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .scroll-indicator {
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    #btn-pago-locked {
        font-size: 0.8rem;
    }

    .btn-pagar {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* Animación de desbloqueo */
@keyframes unlock-animation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.btn-pagar:not([disabled]).just-unlocked {
    animation: unlock-animation 0.5s ease;
}

/* Barra de progreso de scroll (opcional) */
.scroll-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b 0%, #ff3838 100%);
    transition: width 0.2s ease;
    border-radius: 0 2px 2px 0;
}
