/* Enhanced Animations inspired by stndrd.app */

/* Hero Background Animation */
.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(255, 184, 0, 0.1) 0%, 
        transparent 25%, 
        transparent 75%, 
        rgba(255, 184, 0, 0.1) 100%);
    animation: heroGradient 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes heroGradient {
    0%, 100% {
        transform: translateX(-100%) skewX(-15deg);
    }
    50% {
        transform: translateX(100%) skewX(-15deg);
    }
}

/* Floating Badge Animation */
.floating-badge {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(2deg);
    }
    75% {
        transform: translateY(-5px) rotate(-2deg);
    }
}

/* Hero CTA Button Animation */
.hero-cta {
    position: relative;
    overflow: hidden;
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 184, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 184, 0, 0.8), 0 0 60px rgba(255, 184, 0, 0.4);
    }
}

/* Service Cards Enhanced Hover */
.service-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: linear-gradient(135deg, #2A2A2A 0%, #1A1A1A 100%);
    border: 1px solid rgba(255, 184, 0, 0.1);
    z-index: 1;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 184, 0, 0.1), 
        transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 184, 0, 0.3);
}

/* Transformation Cards Enhanced */
.transformation-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.transformation-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 184, 0, 0.2) 0%, 
        transparent 50%, 
        rgba(255, 184, 0, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

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

.transformation-card:hover {
    transform: translateY(-5px) rotateX(5deg);
    box-shadow: 0 15px 35px rgba(255, 184, 0, 0.4);
}

/* Testimonial Cards Enhanced */
.testimonial-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 120px;
    font-weight: bold;
    color: rgba(255, 184, 0, 0.1);
    z-index: 1;
}

.testimonial-card:hover {
    transform: translateY(-8px) rotateY(5deg);
    box-shadow: 0 15px 30px rgba(255, 184, 0, 0.3);
    border-color: rgba(255, 184, 0, 0.5);
}

/* Pricing Cards Enhanced */
.pricing-card {
    position: relative;
    overflow: visible;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: linear-gradient(135deg, #2A2A2A 0%, #1A1A1A 100%);
    border: 1px solid rgba(255, 184, 0, 0.1);
    z-index: 1;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* Featured Badge */
.pricing-card .absolute.z-50 {
    z-index: 50 !important;
    position: absolute !important;
    pointer-events: none;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(255, 184, 0, 0.1) 0%, 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.pricing-card:hover::before {
    opacity: 1;
}

.pricing-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 50px rgba(255, 184, 0, 0.4);
}

.pricing-card.featured {
    animation: featuredPulse 4s ease-in-out infinite;
}

@keyframes featuredPulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(255, 184, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 50px rgba(255, 184, 0, 0.6), 0 0 80px rgba(255, 184, 0, 0.3);
    }
}

/* Navigation Enhanced */
nav {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

/* Scroll Indicator Enhanced */
.animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Form Input Enhanced */
.form-input {
    position: relative;
    transition: all 0.3s ease;
}

.form-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 184, 0, 0.3);
}

/* Button Enhanced Effects */
.btn-gold {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

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

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 184, 0, 0.5);
}

/* Services Section Fix */
#servicios {
    position: relative;
    z-index: 10;
    background: #1A1A1A;
}

#servicios .service-card {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

#servicios .grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 2rem !important;
}

/* Pricing Section Fix */
#planes {
    position: relative;
    z-index: 10;
    background: #1A1A1A;
}

#planes .pricing-card {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

#planes .grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 2rem !important;
}

#planes .featured {
    transform: scale(1.05) !important;
    z-index: 20;
}

/* Section Background Patterns */
section {
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 184, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 184, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Enhanced Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 184, 0, 0.3), 
        transparent);
    animation: loadingShimmer 1.5s infinite;
}

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

/* Mobile Menu Fix */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.active {
    max-height: 500px;
}

/* WhatsApp CTA Styles */
.whatsapp-cta {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border: 2px solid #25D366;
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.3);
}

.whatsapp-cta:hover {
    box-shadow: 0 20px 50px rgba(37, 211, 102, 0.4);
    transform: translateY(-3px) scale(1.05);
}

/* Enhanced Mobile Animations */
@media (max-width: 768px) {
    .service-card:hover {
        transform: translateY(-5px) scale(1.01);
    }
    
    .pricing-card:hover {
        transform: translateY(-8px) scale(1.02);
    }
    
    .testimonial-card:hover {
        transform: translateY(-4px);
    }
    
    /* Fix for mobile menu visibility */
    #mobile-menu.active {
        max-height: 400px;
        overflow: visible;
    }
    
    /* Service cards mobile optimization */
    .service-card {
        padding: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.25rem;
    }
    
    .service-card p {
        font-size: 0.875rem;
    }
    
    /* Mobile specific fixes */
    .hero-content h1 {
        font-size: 3rem !important;
    }
    
    .hero-content p {
        font-size: 1.25rem !important;
    }
    
    /* Pricing cards mobile */
    .pricing-card {
        padding: 1.5rem;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
    
    .pricing-card.featured {
        transform: none !important;
        margin-top: 0;
    }
    
    /* Testimonial cards mobile */
    .testimonial-card {
        padding: 1rem;
    }
    
    /* Contact form mobile */
    .contact-form {
        padding: 1.5rem;
    }
    
    /* About section mobile */
    .about-section .grid {
        gap: 2rem;
    }
    
    /* Transformations mobile */
    .transformation-card .grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .transformation-card .grid > div {
        height: 200px;
    }
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Enhanced Typography Animations */
h1, h2, h3 {
    position: relative;
}

h1::after, h2::after, h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #FFB800, #FFD700);
    transition: width 0.6s ease;
}

h1:hover::after, h2:hover::after, h3:hover::after {
    width: 100%;
}

/* Enhanced Link Animations */
a {
    position: relative;
    transition: all 0.3s ease;
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FFB800;
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

a:hover {
    color: #FFB800;
    transform: translateY(-1px);
}

/* Enhanced Image Hover */
.image-hover {
    overflow: hidden;
    position: relative;
}

.image-hover img {
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.image-hover:hover img {
    transform: scale(1.1) rotate(2deg);
}

/* Enhanced Particle Effects */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    background: #FFB800;
    border-radius: 50%;
    opacity: 0.3;
    animation: particleFloat 8s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-30px) translateX(20px) rotate(90deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) translateX(-20px) rotate(180deg);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-40px) translateX(10px) rotate(270deg);
        opacity: 0.6;
    }
}

/* Enhanced Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    animation: slideInRight 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.notification.success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.notification.error {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
}

.notification.info {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
}

/* Enhanced Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: linear-gradient(135deg, #1A1A1A 0%, #2A2A2A 100%);
    padding: 2rem;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    border: 2px solid #FFB800;
    animation: slideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 60px rgba(255, 184, 0, 0.3);
}
