/* Animaciones personalizadas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Clases de animación */
.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fadeInRight {
    animation: fadeInRight 0.8s ease-out forwards;
}

.animate-slideDown {
    animation: slideDown 0.6s ease-out forwards;
}

.animate-scaleIn {
    animation: scaleIn 0.6s ease-out forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Efectos de hover mejorados */
.service-card {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
}

.service-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-10px);
}

.project-card {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
}

.project-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: scale(1.05);
}

.testimonial-card {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
}

.testimonial-card.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Efectos de parallax */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Animaciones de entrada para elementos específicos */
.fade-in-section {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.fade-in-section.animate {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.fade-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.fade-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Animaciones para elementos de lista */
.check-item {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s ease-out;
}

.check-item.animate {
    opacity: 1;
    transform: translateX(0);
}

.contact-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.contact-item.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Efectos de botones */
.btn-primary {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* Efectos de tarjetas */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Badge personalizado */
.badge {
    transition: all 0.3s ease;
}

/* Animación de carga inicial */
.nav-link {
    transition: all 0.3s ease;
}

/* Efectos de scroll suave */
html {
    scroll-behavior: smooth;
}

/* Animación del menú móvil */
#mobile-menu {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

#mobile-menu.show {
    max-height: 300px;
}

/* Animación de la insignia de certificación */
.certification-badge {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s ease-out;
}

.certification-badge.animate {
    opacity: 1;
    transform: scale(1);
}

/* Efectos de loading */
.loading {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loaded {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-card:hover {
        transform: none;
    }
    
    .project-card:hover {
        transform: none;
    }
}

/* Animación de las estadísticas flotantes */
.stat-card {
    transition: all 0.6s ease-out;
}

.stat-card.animate {
    opacity: 1;
    transform: scale(1);
}

/* Efecto de escritura para el título principal */
@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.typewriter {
    overflow: hidden;
    border-right: 3px solid #c94736;
    white-space: nowrap;
    animation: typewriter 2s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: #c94736;
    }
}

/* Control de ancho máximo */
.max-width-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 1024px) {
    .max-width-container {
        padding: 0 2rem;
    }
}

/* Espaciado mejorado para móviles */
@media (max-width: 768px) {
    .max-w-7xl, .max-w-6xl, .max-w-5xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
} 

/* Hero Slider */
.hero-nav-btn.active {
    background-color: #c94736 !important;
    transform: scale(1.3);
} 


 .whatsapp-float {
            position: fixed;
            width: 60px;
            height: 60px;
            bottom: 20px;
            right: 20px;
            background-color: #25d366;
            color: white;
            border-radius: 50px;
            text-align: center;
            font-size: 24px;
            box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
            z-index: 100;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
        }
        
        .whatsapp-float:hover {
            transform: scale(1.1);
            box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.4);
        }
        
        /* Animación de pulso para WhatsApp */
        .whatsapp-float::before {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background-color: #25d366;
            animation: pulse 2s infinite;
            z-index: -1;
        }
        
        @keyframes pulse {
            0% {
                transform: scale(1);
                opacity: 1;
            }
            50% {
                transform: scale(1.2);
                opacity: 0.7;
            }
            100% {
                transform: scale(1.4);
                opacity: 0;
            }
        }

        