/* Fuentes */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

/* Estilos globales */
body {
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
}

/* Fondos con gradientes */
.hero-gradient {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
}

/* Efectos de resplandor */
.glow-effect {
    position: relative;
}

.glow-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(59, 130, 246, 0.1);
    border-radius: inherit;
    z-index: -1;
    filter: blur(10px);
}

/* Efectos hover para tarjetas */
.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.service-card:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
}

/* Animación del robot */
.animated-robot {
    animation: robotAnimation 8s ease-in-out infinite;
}

@keyframes robotAnimation {
    0% { 
        transform: translateY(0) rotate(0deg) scale(1);
    }
    15% {
        transform: translateY(-30px) rotate(2deg) scale(1.02);
    }
    30% {
        transform: translateY(-10px) rotate(-1deg) scale(1);
    }
    45% {
        transform: translateY(-25px) rotate(3deg) scale(1.01);
        filter: drop-shadow(0 5px 5px rgba(59, 130, 246, 0.3));
    }
    60% {
        transform: translateY(-5px) rotate(0deg) scale(0.99);
    }
    75% {
        transform: translateY(-20px) rotate(-2deg) scale(1);
        filter: drop-shadow(0 10px 8px rgba(59, 130, 246, 0.4));
    }
    85% {
        transform: translateY(-8px) rotate(1deg) scale(1);
    }
    100% { 
        transform: translateY(0) rotate(0deg) scale(1);
    }
}

/* Efectos de parpadeo para ojos de robot (opcional) */
@keyframes eyeBlink {
    0%, 12%, 24%, 36%, 48%, 60%, 72%, 84%, 96% {
        height: 5%;
    } 
    10%, 20%, 30%, 40%, 50%, 70%, 80%, 90% {
        height: 1%;
    }
}

@keyframes mechanicalPulse {
    0%, 100% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0.9;
    }
    50% {
        opacity: 1;
    }
}

/* Efectos hover para iconos */
.feature-icon {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    color: #3b82f6;
}

/* Transiciones para navbar */
.navbar-transition {
    transition: all 0.3s ease;
}

.navbar-scrolled {
    background-color: rgba(17, 24, 39, 0.95);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Botón de WhatsApp flotante */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}

/* Mejoras de accesibilidad */
a:focus, button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Optimización de imágenes */
img {
    max-width: 100%;
    height: auto;
}

/* Mejora de rendimiento con will-change para animaciones */
.animated-robot {
    will-change: transform, opacity;
}