/* Animaciones de entrada */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* Animaciones para las características */
.feature {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.feature:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.feature i {
    transition: all 0.4s ease;
}

.feature:hover i {
    transform: scale(1.2);
    color: var(--primary-green);
}

/* Animaciones para las tarjetas de servicio */
.service-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 0%, rgba(255,255,255,0.1) 100%);
    transition: transform 0.6s;
    transform: translateX(-100%);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.service-card:hover::after {
    transform: translateX(100%);
}

/* Animaciones para los pasos del proceso */
.step {
    transition: all 0.4s ease;
}

.step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(var(--primary-blue-rgb), 0.4);
}

.step-number {
    transition: all 0.4s ease;
    position: relative;
}

.step-number::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid var(--primary-blue);
    opacity: 0;
    transition: all 0.4s ease;
}

.step:hover .step-number::after {
    opacity: 1;
    transform: scale(1.2);
}

/* Animaciones para las garantías */
.guarantee-card {
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.guarantee-card:hover {
    transform: translateY(-10px) scale(1.03);
    background: rgba(255, 255, 255, 0.2);
}

.guarantee-card i {
    transition: all 0.5s ease;
}

.guarantee-card:hover i {
    transform: rotateY(360deg);
}

/* Animaciones para testimonios */
.testimonial {
    transition: all 0.4s ease;
}

.testimonial:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.testimonial-content i {
    transition: all 0.4s ease;
}

.testimonial:hover .testimonial-content i {
    transform: rotate(-10deg) scale(1.1);
}

/* Animaciones para estadísticas */
.stat-card {
    transition: all 0.4s ease;
    overflow: hidden;
}

.stat-card::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: 0.5s;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.stat-number {
    transition: all 0.4s ease;
}

.stat-card:hover .stat-number {
    transform: scale(1.1);
    color: var(--primary-green);
}

/* Animaciones para el CTA */
.cta-content {
    transition: all 0.4s ease;
}

.cta-content:hover {
    transform: scale(1.02);
}

.benefit {
    transition: all 0.3s ease;
}

.benefit:hover {
    transform: translateX(10px);
}

.benefit i {
    transition: all 0.3s ease;
}

.benefit:hover i {
    transform: scale(1.2);
    color: var(--primary-green);
}

/* Animaciones para botones */
.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.btn:hover::after {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Animaciones para el equipo */
.team-member {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.team-member img {
    transition: all 0.4s ease;
}

.team-member:hover img {
    transform: scale(1.1);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Animaciones para certificaciones */
.certification {
    transition: all 0.4s ease;
}

.certification:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.certification img {
    transition: all 0.4s ease;
}

.certification:hover img {
    transform: rotate(5deg);
}

/* Animaciones para la flota */
.vehicle {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.vehicle img {
    transition: all 0.6s ease;
}

.vehicle:hover img {
    transform: scale(1.1);
}

.vehicle:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Animación para el timeline */
.timeline-item {
    transition: all 0.4s ease;
    position: relative;
}

.timeline-item:hover {
    transform: translateX(10px);
}

.timeline-item .year {
    transition: all 0.4s ease;
}

.timeline-item:hover .year {
    transform: scale(1.1);
    color: var(--primary-green);
}

/* Animación para valores */
.value-card {
    transition: all 0.4s ease;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.value-card i {
    transition: all 0.4s ease;
}

.value-card:hover i {
    transform: rotateY(360deg);
    color: var(--primary-green);
}

/* Efectos de hover para links del menú */
.nav-links a {
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: all 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Animación para el logo */
.logo img {
    transition: all 0.4s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

/* Animación para iconos sociales */
.social-icons a {
    transition: all 0.4s ease;
}

.social-icons a:hover {
    transform: translateY(-5px);
    color: var(--primary-blue);
}

/* Animación de carga inicial */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header,
.hero,
.page-hero {
    animation: fadeInUp 1s ease-out;
}