/* Mejoras UX/UI para La Pachanga DJ */

/* 1. Microinteracciones para botones y elementos interactivos */
.hover-scale {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-scale:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Efecto de brillo en hover */
.hover-glow {
    position: relative;
    overflow: hidden;
}

.hover-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hover-glow:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* 2. Mejoras visuales para texto y contenido */
.text-shadow-sm {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-shadow-md {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.text-shadow-lg {
    text-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* 3. Animaciones para el contador de estadísticas */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.count-animation {
    display: inline-block;
    opacity: 0;
}

.count-animation.animated {
    animation: countUp 1s cubic-bezier(0.38, 0.005, 0.215, 1) forwards;
}

/* 4. Estilo para testimonios */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    background-color: rgba(255, 255, 255, 0.05);
}

/* 5. Efecto parallax mejorado */
.parallax-bg {
    transform-style: preserve-3d;
    will-change: transform;
}

/* 6. Estilo para el formulario de contacto rápido */
.form-input {
    transition: border-color 0.3s ease, background-color 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
}

.form-input:focus {
    border-color: rgba(236, 72, 153, 0.5);
    background-color: rgba(255, 255, 255, 0.1);
    outline: none;
}

/* 7. CTA Sticky */
.cta-sticky {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    z-index: 40;
    transition: bottom 0.3s ease;
    text-align: center;
    padding: 12px;
    background: linear-gradient(to right, rgba(236, 72, 153, 0.9), rgba(168, 85, 247, 0.9));
    backdrop-filter: blur(10px);
}

.cta-sticky.visible {
    bottom: 0;
}

/* 8. Estilo para el indicador de scroll mejorado */
@keyframes bounce-subtle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.scroll-indicator {
    animation: bounce-subtle 2s infinite;
}

/* 9. Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #000000, #1a0033, #000025);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

@keyframes pulse-preloader {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

.preloader-logo {
    animation: pulse-preloader 1.5s infinite;
}

/* 10. Timeline styles */
.timeline-item {
    position: relative;
    padding-left: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, rgba(236, 72, 153, 0.7), rgba(168, 85, 247, 0.7));
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(to right, rgba(236, 72, 153, 1), rgba(168, 85, 247, 1));
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
}

/* 11. Equipamiento showcase */
.equipment-card {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.equipment-card:hover {
    transform: scale(1.05);
}

/* 12. Lazy loading images */
.lazy-image {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.lazy-image.loaded {
    opacity: 1;
}

/* 13. Indicadores de urgencia */
@keyframes pulse-urgency {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.urgency-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: linear-gradient(to right, rgba(239, 68, 68, 0.2), rgba(236, 72, 153, 0.2));
    border-radius: 20px;
    animation: pulse-urgency 2s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .equipment-card:hover {
        transform: scale(1.03);
    }
    
    .testimonial-card:hover {
        transform: translateY(-3px);
    }
}
