/* ESTILOS NAVEGATION */

@keyframes navGlow {
    0% {
        border-color: #3B82F6;
    }

    50% {
        border-color: #60A5FA;
    }

    100% {
        border-color: #3B82F6;
    }
}

.nav-border {
    animation: navGlow 3s infinite;
}

.glass-effect {
    backdrop-filter: blur(12px);
    background: rgba(17, 24, 39, 0.85);
}

/* Animación para el menú móvil */
.mobile-menu-enter {
    opacity: 0;
    transform: translateY(-10px);
}

.mobile-menu-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 200ms, transform 200ms;
}

.mobile-menu-exit {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-exit-active {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 150ms, transform 150ms;
}

/* Mejora de la interactividad del menú */
.menu-item {
    position: relative;
    transition: all 0.3s ease;
}

.menu-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background-color: #3B82F6;
    transition: all 0.3s ease;
}

.menu-item:hover::after {
    width: 100%;
    left: 0;
}

/* ESTILOS DE LA SECCIÓN HERO */

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes textGlow {
    0% {
        text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    }

    50% {
        text-shadow: 0 0 30px rgba(96, 165, 250, 0.8);
    }

    100% {
        text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    }
}

.floating-animation {
    animation: float 6s ease-in-out infinite;
}

.gradient-animated {
    background: linear-gradient(-45deg, #3B82F6, #60A5FA, #2563EB, #1D4ED8);
    background-size: 300%;
    animation: gradientBG 6s ease infinite, textGlow 3s ease-in-out infinite;
    border-radius: 50px;
}

.hero-button-glow {
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.hero-button-glow:hover {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

.text-glow {
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.hero-bg {
    background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.1) 0%, rgba(17, 24, 39, 0) 70%);
}

/* ESTILOS DE LA SECCIÓN DE FEATURES */


.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: linear-gradient(165deg, rgba(55, 65, 81, 0.95), rgba(31, 41, 55, 0.95));
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 25px rgba(96, 165, 250, 0.5),
        0 0 45px rgba(59, 130, 246, 0.3),
        0 0 65px rgba(37, 99, 235, 0.2);
    border-color: rgba(96, 165, 250, 0.4);
}

.feature-icon {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(8deg);
    filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.6));
    color: #60A5FA;
}

.gradient-text {
    background: linear-gradient(135deg, #60A5FA, #3B82F6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-border {
    position: relative;
    z-index: 0;
    border-radius: 1rem;
    overflow: hidden;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(45deg, #3B82F6, #60A5FA, #93C5FD);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gradient-border::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: linear-gradient(165deg, rgba(55, 65, 81, 0.95), rgba(31, 41, 55, 0.95));
    border-radius: 0.9rem;
    z-index: -1;
}

.gradient-border:hover::before {
    opacity: 1;
}


/* ESTILOS DE LA SECCIÓN DE STATS */


.stat-card {
    background: linear-gradient(145deg, rgba(31, 41, 55, 0.95), rgba(17, 24, 39, 0.95));
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 0 0 25px rgba(96, 165, 250, 0.2);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(96, 165, 250, 0.1),
            transparent);
    transition: 0.5s;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-number {
    background: linear-gradient(135deg, #60A5FA, #3B82F6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.stat-icon {
    transition: all 0.4s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.5));
}

@property --num {
    syntax: "<integer>";
    initial-value: 0;
    inherits: false;
}

.animate-number {
    animation: counter 2s ease-out forwards;
    counter-reset: num var(--num);
}

.animate-number::after {
    content: counter(num);
}

@keyframes counter {
    from {
        --num: 0;
    }

    to {
        --num: attr(data-value);
    }
}