/* ==========================================================================
   ANIMACIONES RESPONSIVE PARA CONTACTO
   ========================================================================== */

/* Animaciones de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

/* Aplicar animaciones */
.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-badge {
    animation: scaleIn 0.8s ease-out 0.2s both;
}

.hero-title {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-description {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-actions {
    animation: fadeInUp 1s ease-out 0.8s both;
}

.hero-stats {
    animation: fadeInUp 1s ease-out 1s both;
}

.contact-card:nth-child(1) {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.contact-card:nth-child(2) {
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.contact-card:nth-child(3) {
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

.contact-card:nth-child(4) {
    animation: fadeInLeft 0.6s ease-out 0.8s both;
}

.contact-card:nth-child(5) {
    animation: fadeInRight 0.6s ease-out 1s both;
}

.contact-card:nth-child(6) {
    animation: fadeInUp 0.6s ease-out 1.2s both;
}

/* Hover animations */
.contact-card:hover .contact-icon {
    animation: pulse 0.6s ease-in-out;
}

.hero-btn:hover {
    animation: pulse 0.3s ease-in-out;
}

/* FAQ animations */
.faq-item {
    animation: fadeInUp 0.6s ease-out both;
}

.faq-item:nth-child(even) {
    animation-delay: 0.1s;
}

/* Form animations */
.form-group {
    animation: fadeInUp 0.6s ease-out both;
}

.form-group:nth-child(2) {
    animation-delay: 0.1s;
}

.form-group:nth-child(3) {
    animation-delay: 0.2s;
}

/* Responsive animations - reduce motion on mobile */
@media (max-width: 768px) {
    .contact-card {
        animation-duration: 0.4s;
    }
    
    .hero-content > * {
        animation-duration: 0.6s;
    }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 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,255,255,0.4), transparent);
    animation: loading 1.5s infinite;
}

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

/* Micro-interactions */
.contact-action {
    position: relative;
    overflow: hidden;
}

.contact-action::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, height 0.6s;
}

.contact-action:active::before {
    width: 300px;
    height: 300px;
}

/* Floating elements */
.floating-particles .particle {
    animation: float 3s ease-in-out infinite;
}

.floating-particles .particle:nth-child(2) {
    animation-delay: -0.5s;
}

.floating-particles .particle:nth-child(3) {
    animation-delay: -1s;
}

.floating-particles .particle:nth-child(4) {
    animation-delay: -1.5s;
}

.floating-particles .particle:nth-child(5) {
    animation-delay: -2s;
}
