@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

* {
    font-family: 'Inter', sans-serif;
}

.font-display {
    font-family: 'Space Grotesk', sans-serif;
}

.gradient-primary {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.gradient-accent {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
}

.gradient-text-primary {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-accent {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.glass-effect-dark {
    background: rgba(2, 6, 23, 0.85) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(59, 130, 246, 0.05);
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}

.tech-grid {
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.pulse-dot {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.voice-wave {
    height: 30px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.voice-bar {
    width: 4px;
    background: #3b82f6;
    border-radius: 3px;
    animation: wave 1.2s infinite ease-in-out;
}

.voice-bar:nth-child(1) {
    animation-delay: -1.2s;
    height: 10px;
}

.voice-bar:nth-child(2) {
    animation-delay: -1.1s;
    height: 20px;
}

.voice-bar:nth-child(3) {
    animation-delay: -1.0s;
    height: 15px;
}

.voice-bar:nth-child(4) {
    animation-delay: -0.9s;
    height: 25px;
}

.voice-bar:nth-child(5) {
    animation-delay: -0.8s;
    height: 18px;
}

.voice-bar:nth-child(6) {
    animation-delay: -0.7s;
    height: 12px;
}

.voice-bar:nth-child(7) {
    animation-delay: -0.6s;
    height: 22px;
}

@keyframes wave {

    0%,
    40%,
    100% {
        transform: scaleY(0.4);
    }

    20% {
        transform: scaleY(1);
    }
}

.chat-bubble {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-indicator {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.performance-bar {
    transition: width 1.5s ease-out;
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.component-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.component-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
    transition: left 0.5s ease;
}

.component-card:hover::before {
    left: 100%;
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #3b82f6, #06b6d4);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}


/* Glass effect */
.glass-effect-dark {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(12px);
}

/* Gradients como los de tus páginas */
.gradient-accent {
    background: linear-gradient(135deg, #0ea5e9, #3b82f6);
}

/* Animación bars mic */
.voice-wave {
    display: flex;
    align-items: center;
    height: 20px;
}

.voice-bar {
    width: 4px;
    height: 100%;
    margin: 0 2px;
    background: #3b82f6;
    animation: wave 1.2s infinite ease-in-out;
    border-radius: 4px;
}

.voice-bar:nth-child(1) { animation-delay: 0s; }
.voice-bar:nth-child(2) { animation-delay: 0.1s; }
.voice-bar:nth-child(3) { animation-delay: 0.2s; }
.voice-bar:nth-child(4) { animation-delay: 0.3s; }
.voice-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave {
    0%, 100% { transform: scaleY(0.3); }
    50% { transform: scaleY(1); }
}

/* Burbuja del usuario */
.user-bubble {
    background: #1e293b;
    padding: 12px 16px;
    border-radius: 10px;
    max-width: 70%;
    margin-left: auto;
    border: 1px solid #334155;
}


/* estilos para bloques de código */
pre {
    background-color: #1f2937; /* gris oscuro */
    padding: 0.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
}

code {
    background-color: #111827;
    color: #facc15; /* amarillo */
    padding: 0.2rem 0.4rem;
    border-radius: 0.3rem;
}