/* css/custom-tailwind.css */

/* Animaciones personalizadas adicionales a las default de Tailwind */
@layer utilities {
    .animate-float {
        animation: float 6s ease-in-out infinite;
    }

    .fade-in-up {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
        will-change: opacity, transform;
    }

    .fade-in-up.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

/* Base Glassmorphism classes */
.glass-header {
    background: rgba(11, 15, 25, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.6));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* Mobile Menu Transitions */
#mobile-menu {
    transform-origin: top;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-menu.menu-closed {
    transform: scaleY(0);
    opacity: 0;
    visibility: hidden;
}

#mobile-menu.menu-open {
    transform: scaleY(1);
    opacity: 1;
    visibility: visible;
}

/* Tipografía de títulos general */
h1,
h2,
h3,
h4,
.font-display {
    font-family: 'Outfit', sans-serif;
}

/* Enlaces del nav */
.nav-link {
    position: relative;
    color: #e5e7eb;
    /* text-gray-200 */
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #3b82f6;
    /* infra-neon */
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #e5e7eb;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.mobile-nav-link:hover {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

/* Botón Neón Outline (Header) */
.btn-neon-outline {
    position: relative;
    display: inline-flex;
    padding: 0.6rem 1.5rem;
    color: #3b82f6;
    border: 1px solid #3b82f6;
    border-radius: 0.5rem;
    background: transparent;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2), inset 0 0 10px rgba(59, 130, 246, 0.1);
}

.btn-neon-outline:hover {
    color: #fff;
    background-color: rgba(59, 130, 246, 0.15);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4), inset 0 0 15px rgba(59, 130, 246, 0.2);
    border-color: #60a5fa;
}

/* Línea brillante glow (Footer) */
.glow-line {
    box-shadow: 0 0 15px 2px rgba(59, 130, 246, 0.7);
    border-radius: 10px;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0b0f19;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3b82f6;
}