/* ============================================================
   Vulpes AI Solution — Custom Styles
   Complementa Tailwind CSS con estilos específicos
   ============================================================ */

/* ─── Base ─────────────────────────────────────────────── */
::selection {
    background: rgba(14, 165, 233, 0.3);
    color: #fff;
}

html {
    scroll-behavior: smooth;
}

/* ─── Navigation ───────────────────────────────────────── */
.nav-link {
    @apply relative px-3.5 py-2 rounded-xl text-[13px] font-medium text-dark-400
           hover:text-white transition-all duration-300 flex items-center gap-1.5;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #38bdf8, #22d3ee);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}
.nav-link:hover::after {
    width: 60%;
}
.nav-link:hover {
    background: rgba(14, 165, 233, 0.06);
}
.nav-link:hover i {
    opacity: 1 !important;
}

.nav-link.active {
    @apply text-white;
    background: rgba(14, 165, 233, 0.1);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.08);
}
.nav-link.active::after {
    width: 60%;
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.4);
}
.nav-link.active i {
    opacity: 1 !important;
    color: #38bdf8;
}

/* CTA nav button */
.nav-cta {
    @apply inline-flex items-center gap-2 px-5 py-2.5 rounded-xl text-sm font-semibold
           text-white transition-all duration-300;
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.25), inset 0 1px 0 rgba(255,255,255,0.1);
}
.nav-cta:hover {
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    box-shadow: 0 6px 24px rgba(14, 165, 233, 0.35), inset 0 1px 0 rgba(255,255,255,0.15);
    transform: translateY(-1px);
}

.mobile-nav-link {
    @apply flex items-center gap-3 px-4 py-3 rounded-xl text-dark-300 hover:text-white
           hover:bg-white/[0.05] transition-all duration-200 text-sm font-medium;
}
.mobile-nav-link.active {
    @apply text-white bg-vulpes-600/10;
    box-shadow: inset 3px 0 0 #0ea5e9;
}

/* ─── Navbar scroll states ─────────────────────────────── */
.navbar-scrolled #navbar-inner {
    @apply mt-2 rounded-2xl;
    background: rgba(2, 6, 23, 0.85);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(14, 165, 233, 0.05);
}

/* ─── Fade-down for mobile menu ────────────────────────── */
@keyframes fade-down {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-down {
    animation: fade-down 0.25s ease-out;
}

/* ─── Buttons ──────────────────────────────────────────── */
.btn-primary {
    @apply inline-flex items-center gap-2 px-5 py-2.5 rounded-lg 
           bg-vulpes-600 hover:bg-vulpes-500 text-white font-semibold 
           transition-all duration-200 shadow-lg shadow-vulpes-600/25
           hover:shadow-vulpes-500/30 hover:-translate-y-0.5;
}

.btn-secondary {
    @apply inline-flex items-center gap-2 px-5 py-2.5 rounded-lg 
           border border-dark-600 hover:border-vulpes-500 text-dark-200 
           hover:text-white font-semibold transition-all duration-200
           hover:-translate-y-0.5;
}

.btn-ghost {
    @apply inline-flex items-center gap-2 px-5 py-2.5 rounded-lg 
           text-vulpes-400 hover:text-vulpes-300 hover:bg-vulpes-950/40 
           font-semibold transition-all duration-200;
}

/* ─── Cards ────────────────────────────────────────────── */
.card {
    @apply bg-dark-900/60 border border-dark-800/60 rounded-2xl 
           backdrop-blur-sm transition-all duration-300
           hover:border-vulpes-700/40 hover:shadow-xl hover:shadow-vulpes-950/20;
}

.card-glow {
    @apply card hover:bg-dark-900/80;
    position: relative;
}

.card-glow::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, transparent 40%, rgba(14, 165, 233, 0.15) 100%);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: opacity 0.3s;
}

.card-glow:hover::before {
    opacity: 1;
}

/* ─── Form inputs ──────────────────────────────────────── */
.form-input {
    @apply w-full px-4 py-3 rounded-xl bg-dark-800/80 border border-dark-700 
           text-dark-100 placeholder-dark-500
           focus:outline-none focus:border-vulpes-500 focus:ring-2 focus:ring-vulpes-500/20
           transition-all duration-200;
}

/* ─── Section headers ──────────────────────────────────── */
.section-label {
    @apply inline-flex items-center gap-2 px-3 py-1 rounded-full 
           bg-vulpes-950/60 border border-vulpes-800/30 text-vulpes-400 
           text-xs font-semibold uppercase tracking-widest mb-4;
}

.section-title {
    @apply text-3xl sm:text-4xl lg:text-5xl font-extrabold text-white leading-tight;
}

.section-subtitle {
    @apply text-lg text-dark-400 max-w-2xl leading-relaxed mt-4;
}

/* ─── Tech badge ───────────────────────────────────────── */
.tech-badge {
    @apply inline-flex items-center px-2.5 py-1 rounded-md 
           bg-dark-800 text-dark-300 text-xs font-mono font-medium
           border border-dark-700/50;
}

/* ─── Gradient text ────────────────────────────────────── */
.gradient-text {
    @apply bg-gradient-to-r from-vulpes-400 to-cyan-300 bg-clip-text text-transparent;
}

/* ─── Animations ───────────────────────────────────────── */
@keyframes slide-in {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

.animate-slide-in {
    animation: slide-in 0.4s ease-out;
}

@keyframes fade-up {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.animate-fade-up {
    animation: fade-up 0.6s ease-out both;
}

.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }

/* ─── Hero grid background ─────────────────────────────── */
.hero-grid {
    background-image: 
        linear-gradient(rgba(14, 165, 233, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-glow {
    background: radial-gradient(ellipse 600px 400px at 50% 0%, rgba(14, 165, 233, 0.12) 0%, transparent 70%);
}

/* ─── Prose (blog) ─────────────────────────────────────── */
.prose-vulpes h2 { @apply text-2xl font-bold text-white mt-10 mb-4; }
.prose-vulpes h3 { @apply text-xl font-semibold text-white mt-8 mb-3; }
.prose-vulpes p  { @apply text-dark-300 leading-relaxed mb-4; }
.prose-vulpes ul { @apply list-disc list-inside text-dark-300 mb-4 space-y-1; }
.prose-vulpes ol { @apply list-decimal list-inside text-dark-300 mb-4 space-y-1; }
.prose-vulpes a  { @apply text-vulpes-400 hover:text-vulpes-300 underline; }
.prose-vulpes code { @apply px-1.5 py-0.5 rounded bg-dark-800 text-vulpes-300 font-mono text-sm; }
.prose-vulpes pre { @apply p-4 rounded-xl bg-dark-800 overflow-x-auto mb-4; }
.prose-vulpes pre code { @apply p-0 bg-transparent; }
.prose-vulpes blockquote { @apply border-l-4 border-vulpes-500 pl-4 italic text-dark-400 my-4; }
.prose-vulpes img { @apply rounded-xl my-6; }

/* ─── Scroll indicator fade ────────────────────────────── */
.alert-msg {
    animation: slide-in 0.4s ease-out, fadeOut 0.4s 4s ease-out forwards;
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateY(-10px); }
}
