/* ============================================
   BITSDEVE - ESTILOS COMPARTIDOS
   Archivo centralizado para evitar duplicación
   ============================================ */

/* ============================================
   1. CSS VARIABLES - Sistema de Diseño
   ============================================ */
:root {
    /* Colores principales optimizados */
    --primary: #1E40AF;
    --primary-light: #3B82F6;
    --primary-dark: #1E3A8A;
    --secondary: #4F46E5;
    --accent: #F97316;
    --accent-light: #FDBA74;

    /* Gradientes profesionales */
    --gradient-primary: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%);
    --gradient-accent: linear-gradient(135deg, #F97316 0%, #FB923C 100%);
    --gradient-hero: linear-gradient(145deg, #0F172A 0%, #1E293B 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(30, 64, 175, 0.9) 0%, rgba(79, 70, 229, 0.8) 100%);

    /* Colores complementarios */
    --accent-emerald: #10B981;
    --accent-teal: #0D9488;
    --accent-amber: #F59E0B;
    --accent-rose: #F43F5E;

    /* Neutros sofisticados */
    --dark: #0F172A;
    --dark-light: #1E293B;
    --neutral-50: #F8FAFC;
    --neutral-100: #F1F5F9;
    --neutral-200: #E2E8F0;
    --neutral-300: #CBD5E1;
    --neutral-400: #94A3B8;
    --neutral-500: #64748B;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1E293B;
    --neutral-900: #0F172A;

    /* Textos */
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;

    /* Mantener compatibilidad con variables existentes */
    --primary-blue: #2563EB;
    --secondary-indigo: #4F46E5;
    --secondary-purple: #7C3AED;
    --accent-coral: #F97316;
    --brand-gradient-1: #667EEA;
    --brand-gradient-2: #764BA2;
    --highlight-yellow: #FEF08A;
}

/* ============================================
   2. FUENTES GLOBALES
   ============================================ */
.font-poppins {
    font-family: 'Poppins', sans-serif;
}

.font-playfair {
    font-family: 'Playfair Display', serif;
}

.font-space {
    font-family: 'Space Grotesk', sans-serif;
}

.font-orbitron {
    font-family: 'Orbitron', monospace;
}

body {
    font-family: 'Orbitron', monospace;
    background: linear-gradient(135deg, #ffffff 0%, #FAFAF9 50%, #F5F5F4 100%);
    color: var(--neutral-800);
    line-height: 1.6;
    min-height: 100vh;
}

/* ============================================
   3. SCROLLBAR PERSONALIZADO
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--neutral-100);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--primary-blue), var(--secondary-indigo));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}

/* ============================================
   4. CLASES UTILITY - GRADIENTES
   ============================================ */
.gradient-bg {
    background: var(--gradient-primary);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-accent-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-gradient {
    background: linear-gradient(145deg, #ffffff 0%, #F8FAFC 100%);
}

.warm-gradient {
    background: var(--gradient-accent);
}

.success-gradient {
    background: linear-gradient(135deg, var(--accent-emerald) 0%, var(--accent-teal) 100%);
}

/* ============================================
   5. CARDS PREMIUM
   ============================================ */
.premium-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid var(--neutral-200);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 16px;
}

.premium-card:hover {
    transform: translateY(-6px) rotate(0.5deg);
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.15), 0 15px 25px -8px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-coral);
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
}

/* ============================================
   6. BOTONES PREMIUM
   ============================================ */
.premium-btn {
    background: linear-gradient(135deg, var(--accent-coral) 0%, var(--accent-amber) 100%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 15px -3px rgba(249, 115, 22, 0.4);
    border-radius: 12px;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
}

.premium-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.7s ease;
}

.premium-btn:hover::before {
    left: 100%;
}

.premium-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 25px 40px -8px rgba(249, 115, 22, 0.5);
}

.secondary-btn {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-indigo) 100%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    font-weight: 500;
}

.btn-cyber {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-indigo) 100%);
    border: 2px solid var(--primary-blue);
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-cyber:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-purple) 100%);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
}

.btn-cyber::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-cyber:hover::before {
    left: 100%;
}

/* ============================================
   7. EFECTOS HOVER
   ============================================ */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-10px) scale(1.02);
}

.card-hover {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-hover:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: 0 25px 50px rgba(0, 255, 255, 0.3);
}

/* ============================================
   8. ANIMACIONES
   ============================================ */
.pulse-blue {
    animation: pulseBlue 2s infinite;
}

@keyframes pulseBlue {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(0, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 255, 0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.8;
    }
    25% {
        transform: translateY(-10px) rotate(2deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-20px) rotate(-1deg);
        opacity: 0.9;
    }
    75% {
        transform: translateY(-10px) rotate(1deg);
        opacity: 1;
    }
}

/* ============================================
   9. BACKGROUNDS Y PATRONES
   ============================================ */
.hero-pattern {
    background-image:
        radial-gradient(circle at 20% 50%, rgba(30, 64, 175, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(79, 70, 229, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(249, 115, 22, 0.04) 0%, transparent 50%);
    position: relative;
    overflow: hidden;
}

.hero-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(45deg, rgba(30, 64, 175, 0.03) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(30, 64, 175, 0.03) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(30, 64, 175, 0.03) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(30, 64, 175, 0.03) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    opacity: 0.5;
}

/* ============================================
   10. MOBILE OPTIMIZATIONS
   ============================================ */
@media (max-width: 768px) {
    .particle {
        display: none;
    }

    iframe {
        height: 200px;
    }

    .hero-grid-mobile {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    #hero {
        min-height: 100vh;
        padding: 6rem 1rem 2rem 1rem;
    }

    #hero .glass-card {
        padding: 1.5rem;
    }

    #hero h1 {
        font-size: 2.5rem;
    }
}

/* ============================================
   11. ACCESIBILIDAD
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.btn-primary:focus,
.btn-secondary:focus,
.premium-btn:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Reducción de movimiento para usuarios con preferencias */
@media (prefers-reduced-motion: reduce) {
    .tech-badge,
    .hero-animation,
    .particle {
        animation: none;
    }

    .premium-btn::before,
    .premium-btn:hover::before,
    .btn-cyber::before {
        animation: none;
        transition: none;
    }

    .hero-professional,
    .hero-background {
        will-change: auto;
    }
}

/* ============================================
   12. MODAL STYLES
   ============================================ */
.scale-95 {
    transform: scale(0.95);
}

.scale-100 {
    transform: scale(1);
}

.glow-cyan {
    border: 2px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.glow-cyan:hover {
    border-color: rgba(0, 255, 255, 0.6);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
}
