/* Animaciones adicionales para la agencia web */

/* Animación de entrada con fade y desplazamiento */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Animaciones para elementos del hero */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.hero-animation-delay-1 {
    animation: fadeInUp 1s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-animation-delay-2 {
    animation: fadeInUp 1s ease-out 0.4s forwards;
    opacity: 0;
}

.hero-animation-delay-3 {
    animation: fadeInUp 1s ease-out 0.6s forwards;
    opacity: 0;
}

/* Animación de typing para texto */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink {
    50% { border-color: transparent }
}

.typing-animation {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--primary-gold);
    animation: 
        typing 3.5s steps(40, end),
        blink 1s step-end infinite;
}

/* Animación de hover para tarjetas */
.hover-float {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-float:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Animación de rotación */
@keyframes rotate360 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.rotate-animation {
    animation: rotate360 20s linear infinite;
}

/* Animación de escala */
@keyframes scale {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.scale-animation {
    animation: scale 3s ease-in-out infinite;
}

/* Animación de brillo */
@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.5); }
    50% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.8); }
    100% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.5); }
}

.glow-animation {
    animation: glow 3s ease-in-out infinite;
}

/* Animación de borde brillante */
@keyframes borderGlow {
    0% { border-color: rgba(212, 175, 55, 0.3); }
    50% { border-color: rgba(212, 175, 55, 1); }
    100% { border-color: rgba(212, 175, 55, 0.3); }
}

.border-glow-animation {
    animation: borderGlow 3s ease-in-out infinite;
}

/* Animación de ondas */
@keyframes ripple {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.ripple-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.3);
    animation: ripple 2s infinite;
    z-index: -1;
}

/* Animación de desvanecimiento para el preloader */
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

/* Animación de partículas */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background-color: rgba(212, 175, 55, 0.5);
    border-radius: 50%;
    animation: particleFloat 15s infinite linear;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* Animación para botones */
.btn-animation {
    position: relative;
    overflow: hidden;
}

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

.btn-animation:hover::after {
    left: 100%;
}

/* Animación para iconos de servicios */
@keyframes iconPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.icon-pulse-animation {
    animation: iconPulse 2s infinite;
}

/* Animación para números de estadísticas */
@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.count-animation {
    animation: countUp 1s ease-out forwards;
}

/* Animación para el menú móvil */
@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.slide-in-animation {
    animation: slideIn 0.3s ease-out forwards;
}

/* Animación para el scroll to top button */
@keyframes fadeInButton {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.scroll-to-top.show {
    animation: fadeInButton 0.3s ease-out forwards;
}

/* Animación para el formulario de contacto */
@keyframes formFieldFocus {
    0% { border-color: rgba(212, 175, 55, 0.3); }
    100% { border-color: #d4af37; }
}

.form-field-animation:focus {
    animation: formFieldFocus 0.3s ease-out forwards;
}

/* Animación para el portafolio */
@keyframes portfolioHover {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.portfolio-hover-animation {
    animation: portfolioHover 0.3s ease-out forwards;
}

/* Animación para el equipo */
@keyframes teamHover {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

.team-hover-animation:hover {
    animation: teamHover 0.3s ease-out forwards;
}

/* Animación para el logo */
@keyframes logoGlow {
    0% { text-shadow: 0 0 5px rgba(212, 175, 55, 0.5); }
    50% { text-shadow: 0 0 20px #d4af37cc; }
    100% { text-shadow: 0 0 5px rgba(212, 175, 55, 0.5); }
}

.logo-glow-animation {
    animation: logoGlow 3s ease-in-out infinite;
}

/* Animación para el footer */
@keyframes footerWave {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.footer-wave-animation {
    animation: footerWave 5s ease-in-out infinite;
}
