/* ===== MEJORAS VISUALES AVANZADAS ===== */

/* ===== FASE 1: EFECTOS VISUALES BASE ===== */

/* Efectos de partículas */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.3), rgba(147, 51, 234, 0.3));
    border-radius: 50%;
    animation: float-particle 8s infinite linear;
}

.particle:nth-child(1) { width: 4px; height: 4px; animation-delay: 0s; }
.particle:nth-child(2) { width: 6px; height: 6px; animation-delay: 2s; }
.particle:nth-child(3) { width: 3px; height: 3px; animation-delay: 4s; }
.particle:nth-child(4) { width: 5px; height: 5px; animation-delay: 6s; }
.particle:nth-child(5) { width: 4px; height: 4px; animation-delay: 8s; }

@keyframes float-particle {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* Efectos de hover 3D */
.card-3d {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-3d:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(59, 130, 246, 0.1);
}

/* Logo animado */
.logo-animated {
    animation: logo-pulse 2s ease-in-out infinite;
}

@keyframes logo-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.logo-animated:hover {
    animation: logo-bounce 0.6s ease-in-out;
}

@keyframes logo-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Estrellas animadas */
.star-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.star {
    color: #e5e7eb;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.star.filled {
    color: #fbbf24;
    animation: star-fill 0.3s ease-in-out;
}

.star:hover {
    transform: scale(1.2);
    color: #fbbf24;
}

@keyframes star-fill {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}



/* Animación de confeti */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #fbbf24;
    animation: confetti-fall 3s linear forwards;
}

.confetti:nth-child(2n) { background: #ef4444; }
.confetti:nth-child(3n) { background: #10b981; }
.confetti:nth-child(4n) { background: #8b5cf6; }
.confetti:nth-child(5n) { background: #3b82f6; }

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}



/* ===== FASE 4: ELEMENTOS DE CONFIANZA ===== */

/* Contador en tiempo real */
.live-counter {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(16, 185, 129, 0.5); }
    50% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.8); }
}

/* Testimonios con fotos */
.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 16px 0;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

/* Certificaciones visuales */
.certification-badges {
    display: flex;
    gap: 12px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.certification-badge {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    transition: all 0.3s ease;
}

.certification-badge:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
}



/* Fondos dinámicos */
.dynamic-bg {
    transition: background 0.5s ease;
}

.dynamic-bg.morning {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.dynamic-bg.afternoon {
    background: linear-gradient(135deg, #dbeafe, #93c5fd);
}

.dynamic-bg.evening {
    background: linear-gradient(135deg, #fecaca, #fca5a5);
}

.dynamic-bg.night {
    background: linear-gradient(135deg, #1e293b, #334155);
}

/* ===== FASE 6: URGENCIA Y CONVERSIÓN ===== */

/* Countdown timer */
.countdown-timer {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    margin: 16px 0;
    animation: countdown-pulse 1s infinite;
}

@keyframes countdown-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Notificaciones push */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

/* Alertas visuales */
.price-alert {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 2px solid #f59e0b;
    border-radius: 8px;
    padding: 12px;
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: alert-bounce 0.6s ease-in-out;
}

@keyframes alert-bounce {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Indicadores de demanda */
.demand-indicator {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    animation: demand-pulse 2s infinite;
}

@keyframes demand-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
    .points-system {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
        font-size: 0.875rem;
    }
    

    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* ===== ACCESIBILIDAD ===== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */

.visual-enhancement {
    will-change: transform;
    backface-visibility: hidden;
}

/* ===== UTILITY CLASSES ===== */

.text-gradient {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow-effect {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
