/* ===== ANIMACIONES EMPRESARIALES ===== */

/* 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 fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

/* Animaciones de contador */
@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animaciones de hover profesionales */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
    }
    100% {
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
    }
}

/* Animación de carga de página */
@keyframes pageLoad {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animaciones de elementos específicos */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Animaciones del hero */
.hero-title {
    animation: fadeInUp 1s ease 0.2s both;
}

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

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

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

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

/* Animaciones de navegación */
.navbar {
    animation: slideInDown 0.8s ease both;
}

.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

/* Animaciones de tarjetas */
.feature-card,
.service-card,
.benefit-item {
    transition: all 0.3s ease;
}

.feature-card:hover {
    animation: pulse 0.6s ease;
}

.service-card:hover .service-icon {
    animation: pulse 0.6s ease;
}

/* Animaciones de formulario */
.form-group input,
.form-group select,
.form-group textarea {
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    animation: glow 2s ease infinite;
}

/* Animaciones de botones */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary:hover {
    animation: pulse 0.6s ease;
}

/* Animaciones de estadísticas */
.stat-number {
    transition: all 0.3s ease;
}

.stat-item:hover .stat-number {
    animation: countUp 0.6s ease;
}

/* Animaciones de testimonios */
.testimonial-card {
    transition: all 0.5s ease;
}

.testimonial-card.active {
    animation: fadeIn 0.8s ease;
}

/* Animaciones de logos de clientes */
.client-logo {
    transition: all 0.3s ease;
}

.client-logo:hover {
    animation: pulse 0.6s ease;
}

/* Animaciones de iconos */
.feature-icon,
.service-icon,
.contact-icon {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon,
.service-card:hover .service-icon,
.contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Animaciones de scroll reveal */
.section-header {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.section-header.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Animaciones de carga de página */
body {
    animation: pageLoad 0.8s ease;
}

/* Animaciones de hover para enlaces */
.footer-section a,
.nav-link,
.service-cta {
    position: relative;
    transition: all 0.3s ease;
}

.footer-section a:hover,
.service-cta:hover {
    transform: translateX(5px);
}

/* Animaciones de iconos sociales */
.social-link {
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    animation: glow 1s ease;
}

/* Animaciones de números de beneficios */
.benefit-number {
    transition: all 0.3s ease;
}

.benefit-item:hover .benefit-number {
    animation: pulse 0.6s ease;
    transform: scale(1.2);
}

/* Animaciones de scroll suave */
html {
    scroll-behavior: smooth;
}

/* Animaciones de carga de elementos */
.fade-in-up {
    animation: fadeInUp 0.8s ease both;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease both;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease both;
}

.scale-in {
    animation: scaleIn 0.8s ease both;
}

/* Delays para animaciones escalonadas */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* Animaciones específicas para móvil */
@media (max-width: 768px) {
    .hero-title,
    .hero-subtitle,
    .hero-description,
    .hero-buttons,
    .hero-stats {
        animation-duration: 0.6s;
    }
    
    .animate-on-scroll {
        transform: translateY(20px);
    }
    
    .feature-card:hover,
    .service-card:hover,
    .benefit-item:hover {
        transform: translateY(-3px);
    }
}

/* Animaciones de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* Animaciones de focus para accesibilidad */
.btn:focus,
.nav-link:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    animation: glow 0.3s ease;
}

/* Animaciones de estado de carga */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animaciones de éxito */
.success {
    animation: fadeInUp 0.5s ease;
}

.success::before {
    content: '✓';
    display: inline-block;
    margin-right: 0.5rem;
    color: var(--secondary-color);
    animation: scaleIn 0.3s ease 0.2s both;
}

/* Animaciones de error */
.error {
    animation: fadeInUp 0.5s ease;
    color: #ef4444;
}

.error::before {
    content: '✗';
    display: inline-block;
    margin-right: 0.5rem;
    animation: scaleIn 0.3s ease 0.2s both;
}

