/**
 * Mejoras Específicas para Index.php
 * Efectos visuales adicionales y animaciones
 */

/* Hero Section Mejorado */
.hero-section-modern {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 30%, #f093fb 60%, #4facfe 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

.hero-section-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Cards de Categorías Mejoradas */
.category-link {
    display: block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px;
    border-radius: 20px;
}

.category-link:hover {
    transform: translateY(-8px);
    background: rgba(102,126,234,0.05);
}

.category-link img {
    transition: all 0.4s ease;
}

.category-link:hover img {
    transform: scale(1.15) rotate(5deg);
    filter: brightness(1.1);
}

/* Efecto de brillo en imágenes de categorías */
.category-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102,126,234,0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.category-link:hover::before {
    width: 200px;
    height: 200px;
}

/* Sección de Cupones Mejorada */
.cupones-ali {
    position: relative;
    overflow: hidden;
}

.cupones-ali::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    animation: rotate 25s linear infinite;
}

/* Cards de Ofertas con Efecto 3D */
.ofertas-category-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.ofertas-category-card:hover {
    transform: translateY(-10px) rotateX(2deg);
}

/* Mini Cards Mejoradas */
.mini-card {
    position: relative;
    overflow: hidden;
}

.mini-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102,126,234,0.05) 0%, rgba(118,75,162,0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.mini-card:hover::after {
    opacity: 1;
}

.mini-card .product-info {
    position: relative;
    z-index: 2;
}

/* Badges Animados */
.badge-discount {
    animation: bounce 2s infinite, pulseGlow 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes pulseGlow {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(255,107,107,0.4);
    }
    50% { 
        box-shadow: 0 6px 25px rgba(255,107,107,0.6), 0 0 15px rgba(255,107,107,0.4);
    }
}

/* Efecto de ondas en secciones */
.section-wave {
    position: relative;
    overflow: hidden;
}

.section-wave::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: waveMove 3s infinite;
}

@keyframes waveMove {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Efecto de brillo en títulos */
.text-shimmer {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

/* Botones con efecto neón mejorado */
.btn-neon-enhanced {
    position: relative;
    overflow: hidden;
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
    transition: all 0.3s ease;
}

.btn-neon-enhanced::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: #667eea;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn-neon-enhanced:hover::before {
    width: 300px;
    height: 300px;
}

.btn-neon-enhanced:hover {
    color: white;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.6), 0 0 40px rgba(102, 126, 234, 0.4);
    border-color: #764ba2;
}

/* Efecto parallax suave */
.parallax-element {
    transition: transform 0.3s ease-out;
}

/* Cards con efecto de elevación */
.card-lift {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-lift:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

/* Efecto de máscara en imágenes */
.image-mask {
    position: relative;
    overflow: hidden;
}

.image-mask::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-mask:hover::after {
    opacity: 1;
}

/* Animación de entrada escalonada */
.stagger-animation {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.stagger-animation:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation:nth-child(4) { animation-delay: 0.4s; }
.stagger-animation:nth-child(5) { animation-delay: 0.5s; }
.stagger-animation:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efecto de gradiente animado en fondos */
.gradient-animated-bg {
    background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #4facfe);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Efecto de hover en estadísticas */
.stat-box {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-box:hover {
    transform: translateY(-8px) scale(1.08);
    background: rgba(255,255,255,0.3) !important;
}

.stat-box:hover .h2,
.stat-box:hover .h3 {
    transform: scale(1.1);
    color: #fff;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Efecto de brillo en badges flotantes */
.floating-badge {
    animation: float 3s ease-in-out infinite, glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    }
    50% {
        box-shadow: 0 12px 35px rgba(0,0,0,0.3), 0 0 20px rgba(102,126,234,0.3);
    }
}

/* Mejoras en imágenes de productos */
.product-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.product-image-container::before {
    display: none !important;
}

.product-image-container:hover::before {
    display: none !important;
}

/* Efecto de zoom mejorado - Desactivado */
.zoom-on-hover {
    transition: none !important;
}

.zoom-on-hover:hover {
    transform: none !important;
}

/* Efecto de sombra dinámica - Desactivado */
.dynamic-shadow {
    transition: none !important;
}

.dynamic-shadow:hover {
    box-shadow: 0 20px 60px rgba(102,126,234,0.3);
}

/* Responsive mejoras */
@media (max-width: 768px) {
    .hero-section-modern {
        padding: 2rem 1rem !important;
    }
    
    .stat-box {
        padding: 15px 20px !important;
    }
    
    .category-link {
        padding: 5px;
    }
    
    .category-link img {
        width: 70px !important;
        height: 70px !important;
    }
}

