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

.reveal-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.split-text {
    overflow: hidden;
    position: relative;
}

.split-text span {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.split-text.visible span {
    transform: translateY(0);
    opacity: 1;
}

/* Efectos de hover */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
    z-index: 0;
}

.service-card:hover::before {
    opacity: 0.1;
}

/* Animación de fondo */
.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.background-animation span {
    position: absolute;
    display: block;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    opacity: 0.1;
    animation: move 25s linear infinite;
}

@keyframes move {
    0% {
        transform: translateY(100vh) rotate(0deg);
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
    }
}

/* Efecto de desplazamiento */
.parallax {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efecto de carga progresiva */
.progress-line {
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    transition: width 0.3s ease;
}

/* Animación de botones */
.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.cta-button:hover::after {
    width: 300px;
    height: 300px;
}
