/* Estilos adicionales para el flujo de preview y pago */

/* Animación para el efecto de desbloqueo */
@keyframes unlock-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Animación para spinner de carga */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Estilos del overlay de preview - movidos desde inline */
.preview-overlay {
    position: relative;
    max-height: 300px;
    overflow: hidden;
    border-radius: 15px;
    border: 2px solid #e3f2fd;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.preview-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,1) 100%);
    pointer-events: none;
    z-index: 2;
}

.preview-content {
    filter: blur(0px);
    transition: filter 0.3s ease;
    position: relative;
    z-index: 1;
}

.preview-content.blurred {
    filter: blur(1px);
}

/* Sección de desbloqueo */
.unlock-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 40px;
    margin: 30px 0;
    text-align: center;
    color: white;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.unlock-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Botón de desbloqueo */
.unlock-button {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    border: none;
    padding: 18px 45px;
    border-radius: 50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    position: relative;
    z-index: 10;
    cursor: pointer;
}

.unlock-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #ee5a24, #ff6b6b);
    animation: unlock-pulse 0.6s ease-in-out;
}

.unlock-button:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.unlock-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Spinner de carga */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

/* Badge de preview */
.preview-badge {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 20px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    animation: preview-badge-pulse 2s infinite;
}

@keyframes preview-badge-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Estilos para contenido desbloqueado */
.unlocked-content {
    animation: content-unlock 0.8s ease-out;
}

@keyframes content-unlock {
    0% {
        opacity: 0;
        transform: scale(0.95);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

/* Indicador de éxito del pago */
.payment-success-indicator {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
    animation: success-bounce 0.6s ease-in-out;
}

@keyframes success-bounce {
    0%, 20%, 60%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    80% { transform: translateY(-5px); }
}

/* Indicador de pago cancelado */
.payment-canceled-indicator {
    background: linear-gradient(45deg, #ffc107, #ffca2c);
    color: #212529;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3);
    animation: warning-pulse 0.8s ease-in-out;
}

@keyframes warning-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Mejoras para notificaciones warning e info */
.text-bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.text-bg-info {
    background-color: #0dcaf0 !important;
    color: #000 !important;
}

/* Mejoras generales para el botón de navegación */
.btn-nav {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-nav:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.3);
}

.btn-nav:disabled {
    opacity: 0.5;
    background: #6c757d;
}

.btn-run {
    background: linear-gradient(45deg, #28a745, #20c997);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-run:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
}