@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* Impeccable Corporate Executive Design System (Apple / Stripe Style) - J.M. Computer System */
:root {
    --primary: #0056b3;
    --primary-gradient: linear-gradient(135deg, #0056b3 0%, #0070e0 100%);
    --secondary: #00a8ff;
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-subtle: #e2e8f0;
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 20px 40px rgba(0, 86, 179, 0.1);
}

body {
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(circle at 100% 0%, rgba(0, 86, 179, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(0, 168, 255, 0.03) 0%, transparent 50%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .font-display {
    font-family: 'Space Grotesk', sans-serif !important;
    letter-spacing: -0.03em !important;
    color: #0f172a !important;
    font-weight: 700;
}

.text-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #0056b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Executive Cards (Apple / Stripe Floating Cards) */
.neo-card, .glass-card, .overdrive-card {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-soft) !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    color: var(--text-main) !important;
}

.neo-card:hover, .glass-card:hover, .overdrive-card:hover {
    transform: translateY(-5px) !important;
    border-color: rgba(0, 86, 179, 0.25) !important;
    box-shadow: var(--shadow-hover) !important;
    background: #ffffff !important;
}

.overdrive-card::before {
    display: none !important;
}

/* High-End Executive Buttons */
.btn-primary {
    background: linear-gradient(135deg, #0056b3 0%, #0070e0 100%) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 14px rgba(0, 86, 179, 0.25) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #004494 0%, #0056b3 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 86, 179, 0.35) !important;
}

.btn-ghost {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-ghost:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0056b3 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
}

/* Header & Clean Navigation */
header {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

nav a {
    color: #475569 !important;
    font-weight: 500 !important;
}

nav a:hover {
    color: #0056b3 !important;
    background: #f1f5f9 !important;
}

.nav-link-active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #0056b3 0%, #0070e0 100%) !important;
    box-shadow: 0 2px 10px rgba(0, 86, 179, 0.25) !important;
    font-weight: 600 !important;
}

.badge-neo {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border: 1px solid #dbeafe !important;
    font-weight: 600 !important;
}

/* ──────────── 🧩 3D WORKSTATION INTERACTIVE ASSEMBLY ENGINE ───────────── */
.workstation-3d-stage {
    perspective: 1200px;
    transform-style: preserve-3d;
}

.workstation-3d-model {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
}

/* Hotspots Interáctivos de Componentes */
.hotspot-pin {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 86, 179, 0.9);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 0 0 rgba(0, 86, 179, 0.6);
    animation: pulseHotspot 2s infinite;
    z-index: 20;
    transition: all 0.3s ease;
}

.hotspot-pin:hover {
    transform: scale(1.25);
    background: #00a8ff;
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.8);
}

@keyframes pulseHotspot {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 86, 179, 0.7);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(0, 86, 179, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 86, 179, 0);
    }
}

/* Tarjeta emergente de especificaciones de componentes */
.component-spec-popover {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(15, 23, 42, 0.95);
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 168, 255, 0.3);
    z-index: 30;
}

.hotspot-pin:hover .component-spec-popover,
.hotspot-pin.active .component-spec-popover {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Animación de Ensamble de Componentes */
.assembling .assembly-layer-cpu {
    animation: assembleCpu 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.assembling .assembly-layer-gpu {
    animation: assembleGpu 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.assembling .assembly-layer-ram {
    animation: assembleRam 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.assembling .assembly-layer-cooler {
    animation: assembleCooler 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}

@keyframes assembleCpu {
    0% { transform: translateZ(200px) scale(1.3) translateY(-40px); opacity: 0; }
    100% { transform: translateZ(0) scale(1) translateY(0); opacity: 1; }
}

@keyframes assembleGpu {
    0% { transform: translateX(180px) translateZ(150px) rotateY(-30deg); opacity: 0; }
    100% { transform: translateX(0) translateZ(0) rotateY(0); opacity: 1; }
}

@keyframes assembleRam {
    0% { transform: translateY(-120px) translateZ(100px); opacity: 0; }
    100% { transform: translateY(0) translateZ(0); opacity: 1; }
}

@keyframes assembleCooler {
    0% { transform: translateZ(250px) rotateX(20deg); opacity: 0; }
    100% { transform: translateZ(0) rotateX(0); opacity: 1; }
}

@view-transition {
    navigation: auto;
}

header {
    view-transition-name: main-header;
}
