/* ==========================================================================
   DrmSoftFactory — Stripe Bold Design System
   Light-first, gradient accents, glassmorphism, bento grids, aurora mesh
   Inspired by Stripe / Vercel / Linear aesthetics
   ========================================================================== */

/* ── Design Tokens: Light Theme ─────────────────── */
:root {
    /* Surfaces */
    --surface-primary: #fafbff;
    --surface-secondary: #f0f4ff;
    --surface-card: #ffffff;
    --surface-glass: rgba(255, 255, 255, 0.78);
    --surface-overlay: rgba(15, 23, 42, 0.4);
    --surface-dark: #0f172a;

    /* Text */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-on-accent: #ffffff;
    --text-on-dark: #e2e8f0;

    /* Accents - indigo→cyan gradient system */
    --accent-primary: #635bff;
    --accent-primary-hover: #4f46e5;
    --accent-primary-glow: rgba(99, 91, 255, 0.25);
    --accent-secondary: #00d4ff;
    --accent-secondary-glow: rgba(0, 212, 255, 0.2);
    --accent-cta: #f97316;
    --accent-cta-glow: rgba(249, 115, 22, 0.3);
    --accent-success: #22c55e;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #635bff 0%, #a855f7 50%, #00d4ff 100%);
    --gradient-hero: linear-gradient(135deg, #635bff 0%, #00d4ff 100%);
    --gradient-stats: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-cta: linear-gradient(135deg, #f97316 0%, #635bff 100%);

    /* Mesh backgrounds (aurora blobs, used per section) */
    --mesh-hero: radial-gradient(ellipse 60% 60% at 20% 30%, rgba(99,91,255,0.07), transparent),
                 radial-gradient(ellipse 50% 50% at 80% 60%, rgba(0,212,255,0.05), transparent),
                 radial-gradient(ellipse 40% 40% at 50% 80%, rgba(168,85,247,0.03), transparent);

    /* Borders */
    --border-subtle: rgba(15, 23, 42, 0.05);
    --border-default: rgba(15, 23, 42, 0.08);
    --border-glow: rgba(99, 91, 255, 0.3);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.05);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.06);
    --shadow-glow: 0 0 30px rgba(99,91,255,0.15);
    --shadow-card-hover: 0 8px 30px rgba(99,91,255,0.1), 0 2px 8px rgba(0,0,0,0.04);

    /* Radius */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4,0,0.2,1);
    --transition: 300ms cubic-bezier(0.4,0,0.2,1);
    --transition-slow: 500ms cubic-bezier(0.4,0,0.2,1);

    /* Blur */
    --blur-sm: 6px;
    --blur: 12px;
    --blur-lg: 20px;

    /* Typography */
    --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --text-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.8125rem);
    --text-sm: clamp(0.8125rem, 0.75rem + 0.3vw, 0.9375rem);
    --text-base: clamp(0.9375rem, 0.9rem + 0.15vw, 1.0625rem);
    --text-lg: clamp(1rem, 0.95rem + 0.25vw, 1.1875rem);
    --text-xl: clamp(1.125rem, 1.05rem + 0.4vw, 1.4375rem);
    --text-2xl: clamp(1.25rem, 1.1rem + 0.8vw, 1.75rem);
    --text-3xl: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
    --text-4xl: clamp(2.25rem, 1.7rem + 2vw, 3.5rem);

    --leading-tight: 1.15;
    --leading-snug: 1.3;
    --leading-normal: 1.5;
    --leading-relaxed: 1.75;

    color-scheme: light dark;
}

/* ── Design Tokens: Dark Theme ──────────────────── */
[data-theme="dark"] {
    --surface-primary: #0a0a10;
    --surface-secondary: #111118;
    --surface-card: #18181f;
    --surface-glass: rgba(24, 24, 31, 0.72);
    --surface-overlay: rgba(0,0,0,0.6);
    --surface-dark: #0a0a10;

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-on-accent: #ffffff;
    --text-on-dark: #e2e8f0;

    --accent-primary: #818cf8;
    --accent-primary-hover: #a5b4fc;
    --accent-primary-glow: rgba(129,140,248,0.3);
    --accent-secondary: #22d3ee;
    --accent-secondary-glow: rgba(34,211,238,0.25);
    --accent-cta: #fb923c;
    --accent-cta-glow: rgba(251,146,60,0.3);

    --gradient-primary: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #22d3ee 100%);
    --gradient-hero: linear-gradient(135deg, #818cf8 0%, #22d3ee 100%);
    --gradient-stats: linear-gradient(135deg, #0a0a10 0%, #18181f 100%);
    --gradient-cta: linear-gradient(135deg, #fb923c 0%, #818cf8 100%);

    --mesh-hero: radial-gradient(ellipse 60% 60% at 20% 30%, rgba(129,140,248,0.08), transparent),
                 radial-gradient(ellipse 50% 50% at 80% 60%, rgba(34,211,238,0.06), transparent);

    --border-subtle: rgba(255,255,255,0.05);
    --border-default: rgba(255,255,255,0.08);
    --border-glow: rgba(129,140,248,0.3);

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.3);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 40px rgba(129,140,248,0.2);
    --shadow-card-hover: 0 8px 30px rgba(129,140,248,0.12), 0 2px 8px rgba(0,0,0,0.2);
}

/* System preference fallback */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --surface-primary: #0a0a10;
        --surface-secondary: #111118;
        --surface-card: #18181f;
        --surface-glass: rgba(24, 24, 31, 0.72);
        --text-primary: #f1f5f9;
        --text-secondary: #94a3b8;
        --text-muted: #64748b;
        --accent-primary: #818cf8;
        --accent-primary-hover: #a5b4fc;
        --accent-secondary: #22d3ee;
        --accent-cta: #fb923c;
        --gradient-hero: linear-gradient(135deg, #818cf8 0%, #22d3ee 100%);
        --gradient-stats: linear-gradient(135deg, #0a0a10 0%, #18181f 100%);
        --border-subtle: rgba(255,255,255,0.05);
        --border-default: rgba(255,255,255,0.08);
        --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
        --shadow-md: 0 4px 16px rgba(0,0,0,0.3);
        --shadow-lg: 0 12px 40px rgba(0,0,0,0.4);
        --shadow-glow: 0 0 40px rgba(129,140,248,0.2);
        --shadow-card-hover: 0 8px 30px rgba(129,140,248,0.12), 0 2px 8px rgba(0,0,0,0.2);
    }
}

/* ── Reset & Base ──────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    background: var(--surface-primary);
    color: var(--text-primary);
    line-height: var(--leading-relaxed);
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.4s ease, color 0.3s ease;
}

[data-theme="dark"] body { font-weight: 375; }

/* Subtle grain texture */
body::after {
    content: ''; position: fixed; inset: 0;
    pointer-events: none; z-index: 9999; opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: var(--text-4xl); font-weight: 800; letter-spacing: -0.03em; line-height: var(--leading-tight); }
h2 { font-size: var(--text-3xl); line-height: var(--leading-tight); }
h3 { font-size: var(--text-2xl); line-height: var(--leading-snug); letter-spacing: -0.015em; }
h4 { font-size: var(--text-xl); font-weight: 600; line-height: var(--leading-snug); letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Focus ──────────────────────────────────────── */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--accent-primary); outline-offset: 2px;
}

/* ── Skip Link ──────────────────────────────────── */
.skip-link {
    position: absolute; top: -100%; left: 0;
    background: var(--accent-primary); color: #fff;
    padding: 12px 24px; z-index: 10001; font-weight: 700;
    text-decoration: none; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { top: 0; }

/* ── Layout Utilities ────────────────────────────── */
.container { max-width: 1280px; margin-inline: auto; padding-inline: 32px; position: relative; z-index: 1; }
.section { padding-block: 120px; position: relative; }

.section-label {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--accent-primary); margin-bottom: 20px;
}
.section-label::before {
    content: ''; width: 24px; height: 2px;
    background: var(--accent-primary); border-radius: 1px;
}
.section-title { margin-bottom: 20px; color: var(--text-primary); }

/* ── Aurora Blobs ────────────────────────────────── */
.aurora-blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora-blob {
    position: absolute; border-radius: 50%;
    filter: blur(100px); opacity: 0.12;
    animation: auroraFloat 25s ease-in-out infinite;
}
.aurora-blob:nth-child(1) {
    width: 700px; height: 700px; background: var(--accent-primary);
    top: -30%; left: -15%; animation-delay: 0s;
}
.aurora-blob:nth-child(2) {
    width: 550px; height: 550px; background: var(--accent-secondary);
    bottom: -25%; right: -10%; animation-delay: -8s;
}
.aurora-blob:nth-child(3) {
    width: 450px; height: 450px; background: #a855f7;
    top: 50%; left: 55%; animation-delay: -16s;
}

@keyframes auroraFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(8%, -8%) scale(1.1); }
    50% { transform: translate(-5%, 4%) scale(0.95); }
    75% { transform: translate(-8%, -4%) scale(1.05); }
}

/* ── Theme Toggle ────────────────────────────────── */
.theme-toggle {
    width: 40px; height: 40px; border-radius: var(--radius);
    border: 1px solid var(--border-default);
    background: var(--surface-glass);
    backdrop-filter: blur(var(--blur-sm));
    -webkit-backdrop-filter: blur(var(--blur-sm));
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: var(--transition); color: var(--text-secondary); padding: 0;
}
.theme-toggle:hover { border-color: var(--border-glow); box-shadow: var(--shadow-glow); color: var(--accent-primary); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-icon-sun { display: none; }
.theme-icon-moon { display: block; }
.theme-toggle.is-dark .theme-icon-sun { display: block; }
.theme-toggle.is-dark .theme-icon-moon { display: none; }

/* ── Header & Navigation ─────────────────────────── */
header {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000; padding: 14px 0; transition: var(--transition);
}
header.scrolled {
    background: var(--surface-glass);
    backdrop-filter: blur(var(--blur-lg));
    -webkit-backdrop-filter: blur(var(--blur-lg));
    border-bottom: 1px solid var(--border-subtle);
    padding: 8px 0; box-shadow: var(--shadow-sm);
}
header .container { display: flex; align-items: center; justify-content: space-between; }

/* Logo */
.logo {
    font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
    letter-spacing: -0.03em; display: flex; align-items: center; gap: 6px;
    position: relative; z-index: 1001;
}
.logo-mark {
    width: 38px; height: 38px; background: var(--gradient-primary);
    border-radius: var(--radius-sm); display: flex; align-items: center;
    justify-content: center; font-weight: 900; font-size: 0.85rem; color: #fff;
}
.logo-text { font-size: 1.35rem; }
.logo-text span {
    background: var(--gradient-primary);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Nav Links */
.nav-links { display: flex; gap: 4px; list-style: none; align-items: center; }
.nav-links a {
    padding: 8px 16px; font-size: var(--text-sm); font-weight: 600;
    letter-spacing: 0.04em; color: var(--text-secondary);
    border-radius: var(--radius); transition: var(--transition); position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); background: var(--surface-glass); }
.nav-links a.active { color: var(--accent-primary); font-weight: 700; }
.nav-links a::after {
    content: ''; position: absolute; bottom: 2px; left: 50%;
    transform: translateX(-50%) scaleX(0); width: 20px; height: 2px;
    background: var(--accent-primary); border-radius: 1px;
    transition: transform 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { transform: translateX(-50%) scaleX(1); }

.nav-right { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1001; }
.admin-link {
    padding: 6px 14px; font-size: var(--text-xs); font-weight: 700;
    letter-spacing: 0.05em; color: var(--text-muted);
    border: 1px solid var(--border-default); border-radius: var(--radius);
    transition: var(--transition); background: var(--surface-glass);
}
.admin-link:hover { color: var(--accent-primary); border-color: var(--border-glow); }

/* Hamburger */
.hamburger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer;
    padding: 8px; position: relative; z-index: 1001;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-overlay {
    position: fixed; inset: 0; background: var(--surface-overlay);
    z-index: 999; opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.nav-overlay.active { opacity: 1; visibility: visible; }

/* ── Hero (Homepage) ─────────────────────────────── */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    position: relative; overflow: hidden; padding-top: 80px;
}
.hero::before { content: ''; position: absolute; inset: 0; background: var(--mesh-hero); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-content { position: relative; z-index: 2; }
.hero-content h1 { margin-bottom: 24px; line-height: var(--leading-tight); }
.hero-content h1 .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-content p {
    font-size: var(--text-lg); color: var(--text-secondary);
    max-width: 520px; margin-bottom: 36px; line-height: 1.8;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }

/* Engineering visual */
.hero-engineering {
    position: relative; width: 420px; height: 420px;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-primary);
}
.hero-gear {
    width: 100%; height: 100%; animation: gearSpin 30s linear infinite;
    position: absolute; opacity: 0.4;
}
.hero-orb-core {
    width: 130px; height: 130px; border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, var(--accent-secondary) 0%, var(--accent-primary) 40%, transparent 70%);
    box-shadow: 0 0 80px var(--accent-primary-glow), 0 0 160px rgba(99,91,255,0.08);
    animation: corePulse 3s ease-in-out infinite;
    position: relative; z-index: 2;
}
.hero-circuit {
    position: absolute; inset: 10%;
    border: 1px solid var(--accent-primary-glow); border-radius: 50%;
    animation: circuitPulse 4s ease-in-out infinite;
}
.hero-circuit::before {
    content: ''; position: absolute; inset: 25%;
    border: 1px dashed rgba(99,91,255,0.12); border-radius: 50%;
    animation: circuitSpin 25s linear infinite reverse;
}
.hero-circuit::after {
    content: ''; position: absolute; inset: 50%;
    border: 1px solid rgba(99,91,255,0.2); border-radius: 50%;
}

/* Hero particles */
.hero-particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.particle {
    position: absolute; width: 4px; height: 4px; border-radius: 50%;
    animation: floatUp linear infinite; opacity: 0;
}
.particle:nth-child(odd) { background: var(--accent-primary); }
.particle:nth-child(even) { background: var(--accent-secondary); }
.particle:nth-child(3n) { background: var(--accent-cta); }

/* ── Breadcrumbs ─────────────────────────────────── */
.breadcrumbs { padding-top: 16px; }
.breadcrumbs ol {
    display: flex; list-style: none; gap: 8px;
    font-size: var(--text-sm); color: rgba(255,255,255,0.65);
}
.breadcrumbs a { color: rgba(255,255,255,0.8); transition: var(--transition); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs li:not(:last-child)::after { content: '/'; margin-left: 8px; color: rgba(255,255,255,0.35); }
.breadcrumbs [aria-current="page"] { color: #fff; font-weight: 600; }

/* ── Page Hero ─────────────────────────────────────── */
.page-hero {
    min-height: 40vh; display: flex; align-items: center;
    position: relative; overflow: hidden;
    padding-top: 100px; padding-bottom: 60px;
}
.page-hero .container { z-index: 2; }
.page-hero .hero-content { max-width: 800px; }
.page-hero .hero-content h1 { color: #ffffff; font-size: var(--text-3xl); }
.page-hero .hero-content .section-label { color: rgba(255,255,255,0.75); }
.page-hero .hero-content .section-label::before { background: rgba(255,255,255,0.5); }
.page-hero .hero-content h1 .highlight {
    background: linear-gradient(135deg, #ffffff, rgba(255,255,255,0.85));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Buttons ────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; font-family: var(--font-display); font-weight: 600;
    font-size: var(--text-sm); letter-spacing: 0.02em; text-transform: uppercase;
    border: 1px solid transparent; border-radius: var(--radius);
    cursor: pointer; transition: var(--transition);
    position: relative; overflow: hidden; text-decoration: none;
}
.btn-primary {
    background: var(--accent-primary); color: var(--text-on-accent);
    box-shadow: 0 4px 20px var(--accent-primary-glow);
}
.btn-primary:hover { background: var(--accent-primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-primary::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
    transform: translateX(-100%); transition: transform 0.6s ease;
}
.btn-primary:hover::after { transform: translateX(100%); }

.btn-outline {
    background: transparent; color: var(--accent-primary); border-color: var(--accent-primary);
}
.btn-outline:hover { background: var(--accent-primary); color: var(--text-on-accent); box-shadow: var(--shadow-glow); }

.btn-glass {
    background: var(--surface-glass);
    backdrop-filter: blur(var(--blur-sm)); -webkit-backdrop-filter: blur(var(--blur-sm));
    border-color: var(--border-default); color: var(--text-primary);
}
.btn-glass:hover { border-color: var(--border-glow); box-shadow: var(--shadow-glow); }

.btn-cta {
    background: var(--accent-cta); color: #fff;
    box-shadow: 0 4px 20px var(--accent-cta-glow);
}
.btn-cta:hover { filter: brightness(1.1); transform: translateY(-2px); box-shadow: 0 8px 30px var(--accent-cta-glow); }

.btn-sm { padding: 10px 22px; font-size: var(--text-xs); border-radius: var(--radius-sm); }

/* ── Cards ───────────────────────────────────────── */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
    background: var(--surface-card); border: 1px solid var(--border-default);
    border-radius: var(--radius-lg); overflow: hidden;
    transition: var(--transition); position: relative;
    box-shadow: var(--shadow-sm);
}
.card:hover { transform: translateY(-4px); border-color: var(--border-glow); box-shadow: var(--shadow-card-hover); }
.card-img {
    height: 160px;
    position: relative;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.card:hover .card-img { transform: scale(1.04); }
.card-img img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    display: block;
}
.card-img::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 50%; background: linear-gradient(to top, var(--surface-card), transparent);
}
.card-badge {
    position: absolute; top: 16px; right: 16px;
    padding: 5px 14px; background: var(--surface-glass);
    backdrop-filter: blur(var(--blur-sm)); -webkit-backdrop-filter: blur(var(--blur-sm));
    border: 1px solid var(--border-default); border-radius: var(--radius-full);
    font-size: var(--text-xs); font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--accent-primary); z-index: 2;
}
.card-body { padding: 28px; }
.card-body h3 { margin-bottom: 12px; color: var(--text-primary); }
.card-body p { color: var(--text-secondary); font-size: var(--text-sm); line-height: 1.6; margin-bottom: 20px; }
.card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; border-top: 1px solid var(--border-subtle); }
.card-price { font-family: var(--font-mono); font-weight: 500; font-size: var(--text-lg); color: var(--text-primary); }

/* Category bars */
.card { border-left: 5px solid transparent; }
.card-cat-programas { border-left-color: var(--accent-primary); }
.card-cat-diseño_web { border-left-color: var(--accent-secondary); }
.card-cat-automatizacion { border-left-color: var(--accent-cta); }
.card-cat-desarrollo { border-left-color: var(--accent-primary); }
.card-cat-gestion { border-left-color: var(--accent-success); }

/* ── Bento Grid ──────────────────────────────────── */
.bento-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px; gap: 20px;
}
.bento-grid > * {
    border-radius: var(--radius-lg); padding: 32px;
    background: var(--surface-glass);
    backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border-default);
    transition: var(--transition); position: relative; overflow: hidden;
}
.bento-grid > *:hover {
    border-color: var(--border-glow); transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}
.bento-featured {
    grid-column: span 2; grid-row: span 2;
    background: var(--gradient-primary) !important;
    color: #fff !important; border: none !important;
}
.bento-featured h3 { color: #fff; font-size: var(--text-2xl); }
.bento-featured p { color: rgba(255,255,255,0.8); font-size: var(--text-base); }
.bento-featured .bento-icon { background: rgba(255,255,255,0.15); color: #fff; }
.bento-wide { grid-column: span 2; }
.bento-tall { grid-row: span 2; }
.bento-grid h3 { font-size: var(--text-lg); margin: 12px 0 8px; }
.bento-grid p { color: var(--text-secondary); font-size: var(--text-sm); line-height: 1.6; }
.bento-icon {
    width: 48px; height: 48px; border-radius: var(--radius);
    background: rgba(99,91,255,0.08); display: flex;
    align-items: center; justify-content: center;
    font-size: 1.3rem; color: var(--accent-primary);
}

/* ── Stats Strip ─────────────────────────────────── */
.stats-strip {
    padding-block: 100px; background: var(--gradient-stats);
    position: relative; overflow: hidden;
}
.stats-strip::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(99,91,255,0.08), transparent);
    pointer-events: none;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.stat-item {
    padding: 40px 24px; text-align: center;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(var(--blur-sm)); -webkit-backdrop-filter: blur(var(--blur-sm));
    border: 1px solid rgba(255,255,255,0.08);
    transition: var(--transition);
}
.stat-item:hover { background: rgba(255,255,255,0.1); transform: translateY(-4px); }
.stat-icon {
    width: 56px; height: 56px; margin: 0 auto 16px;
    border-radius: var(--radius); background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: var(--accent-secondary);
    border: 1px solid rgba(255,255,255,0.1);
}
.stat-number {
    font-family: var(--font-mono); font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500; color: #fff; line-height: 1; margin-bottom: 8px;
    transition: transform 0.3s ease;
}
.stat-item:hover .stat-number { transform: scale(1.05); }
.stat-label {
    font-size: var(--text-sm); font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.06em; color: rgba(255,255,255,0.65);
}

/* ── Marquee ─────────────────────────────────────── */
.marquee-section { padding-block: 80px; background: var(--surface-secondary); overflow: hidden; position: relative; }
.marquee-track {
    display: flex; gap: 60px; width: max-content;
    animation: marquee 35s linear infinite;
}
.marquee-track.paused { animation-play-state: paused; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-pause {
    position: absolute; top: 16px; right: 24px;
    background: var(--surface-glass); border: 1px solid var(--border-default);
    border-radius: var(--radius); cursor: pointer; padding: 6px 12px;
    font-size: var(--text-sm); color: var(--text-secondary); z-index: 2;
    transition: var(--transition);
}
.marquee-pause:hover { border-color: var(--accent-primary); color: var(--accent-primary); }
.marquee-item {
    display: flex; align-items: center; gap: 12px;
    font-family: var(--font-mono); font-size: var(--text-sm);
    color: var(--text-muted); white-space: nowrap;
}
.marquee-item i { font-size: 1.5rem; color: var(--accent-primary); opacity: 0.6; }

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Feature Panel ───────────────────────────────── */
.feature-panel {
    display: grid; grid-template-columns: 1fr 1fr;
    min-height: 500px; border: 1px solid var(--border-default);
    border-radius: var(--radius-xl); overflow: hidden;
    background: var(--surface-card); box-shadow: var(--shadow-sm);
}
.feature-content {
    padding: 80px; display: flex; flex-direction: column; justify-content: center;
}
.feature-content h2 { margin-bottom: 24px; color: var(--accent-primary); }
.feature-content p { color: var(--text-secondary); font-size: var(--text-base); line-height: 1.8; margin-bottom: 36px; }
.feature-img { background-size: cover; background-position: center; position: relative; }
.feature-img::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--surface-secondary) 0%, transparent 40%);
}

/* ── Forms ───────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-label {
    font-size: var(--text-xs); font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--text-secondary);
}
.form-input, .form-select, .form-textarea {
    padding: 14px 18px; background: var(--surface-card);
    border: 1px solid var(--border-default); border-radius: var(--radius);
    color: var(--text-primary); font-family: var(--font-body);
    font-size: var(--text-sm); transition: var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-primary-glow);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-select { cursor: pointer; }
.form-input:valid:not(:placeholder-shown) { border-color: rgba(34,197,94,0.5); }
.form-input:invalid:not(:placeholder-shown):not(:focus) { border-color: rgba(239,68,68,0.5); }
.input-error { border-color: #ef4444 !important; box-shadow: 0 0 0 3px rgba(239,68,68,0.15) !important; }
.field-error { color: #dc2626; font-size: var(--text-xs); margin-top: 4px; }
.success-alert {
    background: rgba(34,197,94,0.06); border: 1px solid rgba(34,197,94,0.15);
    color: #22c55e; padding: 20px; border-radius: var(--radius); margin-bottom: 24px; font-weight: 600;
}

/* ── Contact Page ────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; }
.contact-info h2 { margin-bottom: 20px; }
.contact-info > p { color: var(--text-secondary); margin-bottom: 40px; font-size: var(--text-base); }
.contact-detail { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 28px; }
.contact-detail-icon {
    width: 48px; height: 48px; border-radius: var(--radius);
    background: var(--surface-glass); border: 1px solid var(--border-default);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; color: var(--accent-primary); font-size: 1.1rem;
}
.contact-detail-text h4 {
    font-size: var(--text-xs); font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--accent-primary); margin-bottom: 4px;
}
.contact-detail-text p { color: var(--text-secondary); }
.contact-form-box {
    background: var(--surface-glass);
    backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border-default); border-radius: var(--radius-lg);
    padding: 48px; box-shadow: var(--shadow-md);
}

/* ── About Page ──────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-text h2 { margin-bottom: 24px; }
.about-text p { color: var(--text-secondary); font-size: var(--text-base); line-height: 1.8; margin-bottom: 20px; }
.about-img-wrapper { position: relative; }
.about-img-wrapper::before {
    content: ''; position: absolute; inset: -12px; border-radius: var(--radius-lg);
    background: var(--gradient-primary); opacity: 0.25; filter: blur(20px);
}
.about-img-wrapper img { border-radius: var(--radius); position: relative; width: 100%; }

/* Mission & Vision */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv-card {
    padding: 48px; border: 1px solid var(--border-default);
    border-radius: var(--radius-lg); background: var(--surface-glass);
    backdrop-filter: blur(var(--blur-sm)); -webkit-backdrop-filter: blur(var(--blur-sm));
    position: relative; overflow: hidden; box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.mv-card:hover { border-color: var(--border-glow); box-shadow: var(--shadow-glow); }
.mv-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; border-radius: 4px 0 0 4px; }
.mv-card:nth-child(1)::before { background: var(--accent-primary); }
.mv-card:nth-child(2)::before { background: var(--accent-secondary); }
.mv-card h3 { margin-bottom: 16px; }
.mv-card p { color: var(--text-secondary); font-size: var(--text-base); line-height: 1.8; }

/* Values */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value-card {
    padding: 36px 28px; border: 1px solid var(--border-default);
    border-radius: var(--radius); background: var(--surface-glass);
    backdrop-filter: blur(var(--blur-sm)); -webkit-backdrop-filter: blur(var(--blur-sm));
    box-shadow: var(--shadow-sm); text-align: center;
    transition: var(--transition); position: relative; overflow: hidden;
}
.value-card:hover { border-color: var(--border-glow); transform: translateY(-4px); }
.value-card::before {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 40px; height: 3px; background: var(--accent-primary);
    border-radius: 2px; transition: width 0.3s ease;
}
.value-card:hover::before { width: 60px; }
.value-icon { font-size: 2rem; margin-bottom: 16px; }
.value-icon i { color: var(--accent-primary); }
.value-card h4 { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; color: var(--text-primary); }
.value-card h3 { font-size: var(--text-sm); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; color: var(--text-primary); }
.value-card p { color: var(--text-muted); font-size: var(--text-sm); }

/* ── Filters ─────────────────────────────────────── */
.filter-bar { display: flex; gap: 10px; margin-bottom: 50px; flex-wrap: wrap; }
.filter-btn {
    padding: 10px 22px; font-size: var(--text-xs); font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em;
    border: 1px solid var(--border-default); border-radius: var(--radius);
    background: transparent; color: var(--text-secondary);
    cursor: pointer; transition: var(--transition);
    font-family: var(--font-body); text-decoration: none;
}
.filter-btn:hover { border-color: var(--accent-primary); color: var(--accent-primary); }
.filter-btn.active {
    background: var(--accent-primary); color: #fff;
    border-color: var(--accent-primary); box-shadow: var(--shadow-glow);
}

/* ── Empty State ─────────────────────────────────── */
.empty-state { text-align: center; padding: 80px 20px; grid-column: 1 / -1; }
.empty-state i { font-size: 3rem; color: var(--border-default); margin-bottom: 20px; }
.empty-state p { color: var(--text-muted); font-size: var(--text-base); }

/* ── Map Section ─────────────────────────────────── */
.map-section { height: 400px; position: relative; overflow: hidden; }
.map-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: grayscale(0.3) brightness(0.3); }
.map-pin { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; height: 100%; }
.map-label {
    background: var(--surface-glass); backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur)); border: 1px solid var(--border-default);
    padding: 16px 28px; border-radius: var(--radius); font-weight: 700;
    display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-md);
}
.map-label i { color: var(--accent-primary); }

/* ── Legal Pages ─────────────────────────────────── */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-section { margin-bottom: 48px; }
.legal-section h2 {
    font-size: var(--text-xl); margin-bottom: 16px;
    padding-left: 20px; border-left: 3px solid var(--accent-primary);
    color: var(--accent-primary);
}
.legal-section p, .legal-section li { color: var(--text-secondary); font-size: var(--text-sm); line-height: 1.8; margin-bottom: 12px; }
.legal-section ul { padding-left: 24px; margin-bottom: 16px; }

/* ── Footer ──────────────────────────────────────── */
footer {
    background: var(--surface-dark);
    position: relative; z-index: 1;
    color: var(--text-on-dark);
}
.footer-main { padding: 80px 0 50px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
.footer-col .logo { margin-bottom: 20px; }
.footer-col .logo-text span {
    background: var(--gradient-primary);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.footer-col > p { color: rgba(255,255,255,0.6); font-size: var(--text-sm); line-height: 1.7; }
.footer-col h4 {
    font-size: var(--text-xs); font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: #fff; margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: rgba(255,255,255,0.55); font-size: var(--text-sm); transition: var(--transition); }
.footer-col a:hover { color: var(--accent-secondary); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 16px;
}
.footer-copy { color: rgba(255,255,255,0.55); font-size: var(--text-xs); }
.footer-links { display: flex; gap: 20px; align-items: center; }
.footer-links > a { color: rgba(255,255,255,0.55); font-size: var(--text-xs); transition: var(--transition); }
.footer-links > a:hover { color: var(--accent-secondary); }
.social-links { display: flex; gap: 12px; }
.social-link {
    width: 36px; height: 36px; border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.5); transition: var(--transition);
    background: rgba(255,255,255,0.04);
}
.social-link:hover { color: #fff; border-color: var(--accent-secondary); transform: translateY(-2px); }

/* ── WhatsApp Float ──────────────────────────────── */
.whatsapp-btn {
    position: fixed; bottom: 32px; right: 32px;
    width: 56px; height: 56px; background: #25d366; color: #fff;
    border-radius: var(--radius); display: flex; align-items: center;
    justify-content: center; font-size: 26px;
    box-shadow: 0 8px 30px rgba(37,211,102,0.4);
    z-index: 9999; transition: var(--transition); text-decoration: none;
}
.whatsapp-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(37,211,102,0.5); }
.whatsapp-pulse {
    position: absolute; inset: -4px; border-radius: var(--radius);
    border: 2px solid #25d366; animation: pulseRing 1.5s ease-out infinite; opacity: 0;
}
@keyframes pulseRing {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* ── Modal ───────────────────────────────────────── */
.modal-overlay {
    position: fixed; inset: 0; background: var(--surface-overlay);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    z-index: 10000; opacity: 0; visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
    background: var(--surface-card); border: 1px solid var(--border-default);
    border-radius: var(--radius-lg); max-width: 560px; width: 90%;
    padding: 48px; position: relative; box-shadow: var(--shadow-lg);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.modal-overlay.active .modal-content { transform: translateY(0) scale(1); }
.modal-close {
    position: absolute; top: 16px; right: 16px;
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--border-default);
    background: var(--surface-secondary); color: var(--text-secondary);
    font-size: 1.2rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.modal-close:hover { color: #fff; border-color: var(--accent-primary); background: var(--accent-primary); }
.modal-badge {
    display: inline-flex; padding: 4px 12px;
    background: var(--accent-primary-glow); color: var(--accent-primary);
    font-weight: 700; font-size: var(--text-xs); border-radius: var(--radius-full);
    margin-bottom: 20px; letter-spacing: 0.06em;
}
.modal-message h2 { font-size: var(--text-2xl); margin-bottom: 16px; }
.modal-message h2 span { color: var(--accent-primary); }
.modal-message p { color: var(--text-secondary); font-size: var(--text-base); margin-bottom: 28px; }

/* ── Animations ──────────────────────────────────── */
@keyframes gearSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes corePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 80px var(--accent-primary-glow), 0 0 160px rgba(99,91,255,0.06); }
    50% { transform: scale(1.08); box-shadow: 0 0 100px var(--accent-primary-glow), 0 0 200px rgba(99,91,255,0.1); }
}
@keyframes circuitPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.04); opacity: 1; }
}
@keyframes circuitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}
@keyframes floatUp {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* Scroll Reveal */
.reveal {
    opacity: 0; transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content { display: flex; flex-direction: column; align-items: center; }
    .hero-content p { max-width: 100%; }
    .hero-actions { justify-content: center; }
    .hero-visual { display: none; }
    .feature-panel { grid-template-columns: 1fr; }
    .feature-content { padding: 48px; }
    .feature-img { height: 300px; }
    .about-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-featured, .bento-wide { grid-column: span 1; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .container { padding-inline: 20px; }
    .section { padding-block: 80px; }
    header .container { padding-inline: 20px; }
    .nav-links {
        position: fixed; top: 0; right: -100%;
        width: 280px; height: 100vh;
        background: var(--surface-card); flex-direction: column;
        padding: 100px 32px 32px; gap: 8px;
        border-left: 1px solid var(--border-default);
        transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
        z-index: 1000; box-shadow: var(--shadow-lg);
    }
    .nav-links.active { right: 0; }
    .nav-links a { padding: 14px 16px; font-size: var(--text-base); width: 100%; }
    .hamburger { display: flex; }
    .hero { min-height: auto; padding: 140px 0 80px; }
    .cards-grid { grid-template-columns: 1fr; }
    .bento-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .stat-number { font-size: 2rem; }
    .values-grid { grid-template-columns: 1fr; }
    .mv-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form-box { padding: 32px 24px; }
    .feature-content { padding: 32px 24px; }
    .modal-content { padding: 32px 24px; }
    .marquee-track { animation-duration: 25s; }
}

@media (max-width: 480px) {
    .container { padding-inline: 16px; }
    .hero { padding: 120px 0 60px; }
    .stats-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { justify-content: center; }
    .filter-bar { justify-content: center; }
}

/* ── Reduced Motion ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-gear, .hero-orb-core, .hero-circuit, .hero-circuit::before { animation: none; }
    .aurora-blob { animation: none; }
    .marquee-track { animation: none; }
}

/* ── Blog Components ──────────────────────────── */
.blog-post { max-width: 780px; margin: 0 auto; }
.blog-hero-img {
    width: 100%; max-height: 400px; object-fit: cover;
    border-radius: var(--radius-lg); margin-bottom: 32px;
}
.blog-meta {
    display: flex; gap: 20px; margin-bottom: 32px;
    color: var(--text-muted); font-size: var(--text-sm);
}
.blog-body {
    font-size: var(--text-base); line-height: 1.9;
    color: var(--text-secondary);
}
.blog-body h2 {
    font-size: var(--text-xl); color: var(--text-primary);
    margin: 40px 0 16px; padding-left: 0; border-left: none;
    letter-spacing: -0.01em;
}
.blog-body p { margin-bottom: 20px; }
.blog-body ul { padding-left: 24px; margin-bottom: 20px; }
.blog-body li { margin-bottom: 10px; }
.blog-body strong { color: var(--text-primary); }
.blog-footer-cta {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 16px;
    margin-top: 60px; padding-top: 40px;
    border-top: 1px solid var(--border-subtle);
}
.card-title-link {
    color: inherit; text-decoration: none; transition: var(--transition);
}
.card-title-link:hover { color: var(--accent-primary); }
.card-meta { color: var(--text-muted); font-size: var(--text-xs); }
