﻿:root {
            --bg: #050816;
            --bg-soft: #0b122b;
            --surface: #111a3a;
            --surface-2: #0e1733;
            --line: #24335f;
            --text: #e6ecff;
            --muted: #9aa8d1;
            --primary: #3b82f6;
            --primary-2: #22d3ee;
            --ok: #22c55e;
            --warn: #f59e0b;
            --radius: 14px;
            --shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
        }

        * { box-sizing: border-box; }
        html { scroll-behavior: smooth; }
        body {
            margin: 0;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: var(--bg);
            color: var(--text);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            transition: background 0.25s, color 0.25s;
            overflow-x: hidden;
            user-select: none;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
        }

        body.light-mode {
            --bg: #ebf4ff;
            --bg-soft: #f5f9ff;
            --surface: #ffffff;
            --surface-2: #f4f9ff;
            --line: #c9d9f8;
            --text: #0b1b33;
            --muted: #38506f;
            --primary: #1d4ed8;
            --primary-2: #06b6d4;
            --shadow: 0 12px 28px rgba(3, 30, 80, 0.12);
            background:
                radial-gradient(1050px 520px at 78% -15%, rgba(29, 78, 216, 0.18) 0%, transparent 60%),
                radial-gradient(760px 360px at 12% -12%, rgba(6, 182, 212, 0.18) 0%, transparent 55%),
                linear-gradient(180deg, #f6fbff 0%, #eaf3ff 100%);
        }

        body.light-mode .site-header {
            border-bottom-color: rgba(59, 130, 246, 0.25);
            background: rgba(255, 255, 255, 0.86);
            box-shadow: 0 6px 18px rgba(29, 78, 216, 0.08);
        }

        body.light-mode .site-footer {
            border-top-color: rgba(59, 130, 246, 0.25);
            background: rgba(255, 255, 255, 0.92);
            color: #38506f;
        }

        body.light-mode .site-footer small {
            color: #244062;
        }

        body.light-mode .brand {
            color: #0b1b33;
        }

        body.light-mode .brand-logo-slot {
            color: #38506f;
            background: linear-gradient(180deg, #ffffff, #eef5ff);
            border-color: rgba(96, 165, 250, 0.55);
            box-shadow: 0 10px 24px rgba(59, 130, 246, 0.16);
        }

        body.light-mode .hero {
            background: linear-gradient(140deg, #ffffff 0%, #f2f8ff 55%, #ffffff 100%);
            border-color: #bcd3fb;
            box-shadow: 0 14px 30px rgba(29, 78, 216, 0.1);
        }

        body.light-mode .section-soft,
        body.light-mode .section-panel,
        body.light-mode .card,
        body.light-mode .modal-content,
        body.light-mode .stat-card,
        body.light-mode .skill-group-card,
        body.light-mode .skill-group-security,
        body.light-mode .hero-cta,
        body.light-mode .kpi,
        body.light-mode .achievement-badge,
        body.light-mode .service-card {
            background: linear-gradient(180deg, #ffffff, #f3f8ff);
            border-color: #c2d5fb;
            box-shadow: 0 10px 24px rgba(29, 78, 216, 0.09);
        }

        body.light-mode .chip,
        body.light-mode .skill-tag,
        body.light-mode .kpi-icon,
        body.light-mode .hero-cta-icon {
            background: rgba(37, 99, 235, 0.12);
            border-color: rgba(37, 99, 235, 0.28);
            color: #174ea6;
        }

        body.light-mode .hero p,
        body.light-mode .hero-cta-copy small,
        body.light-mode .service-desc,
        body.light-mode .badge-desc,
        body.light-mode .meta,
        body.light-mode .kpi span,
        body.light-mode .section-head p {
            color: #38506f;
        }

        body.light-mode .hero h1,
        body.light-mode .hero-cta-copy strong,
        body.light-mode .skill-group-title,
        body.light-mode .service-card h4,
        body.light-mode .achievement-badge h4,
        body.light-mode .kpi strong,
        body.light-mode .section-head h2,
        body.light-mode .card h3 {
            color: #0b1b33;
        }

        body.light-mode .modal-close,
        body.light-mode .btn-outline,
        body.light-mode .btn-view-badge-file,
        body.light-mode .btn-view-badge-image {
            background: rgba(29, 78, 216, 0.08);
            border-color: rgba(29, 78, 216, 0.35);
            color: #174ea6;
        }

        body.light-mode .detail-meta-right .btn-outline {
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(5, 150, 105, 0.08));
            border-color: rgba(16, 185, 129, 0.5);
            color: #047857;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            box-shadow: 0 0 14px rgba(16, 185, 129, 0.15);
        }

        body.light-mode .achievements-modal,
        body.light-mode .services-modal,
        body.light-mode .consulting-modal {
            background:
                radial-gradient(circle at top right, rgba(251, 191, 36, 0.16), transparent 28%),
                radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 24%),
                linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
            border-color: rgba(96, 165, 250, 0.4);
            box-shadow: 0 24px 50px rgba(37, 99, 235, 0.16);
        }

        body.light-mode .services-grid {
            background: linear-gradient(180deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.95));
            border-color: rgba(59, 130, 246, 0.26);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
        }

        body.light-mode .consulting-grid {
            background: linear-gradient(180deg, rgba(236, 253, 245, 0.94), rgba(255, 255, 255, 0.96));
            border-color: rgba(16, 185, 129, 0.24);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
        }

        body.light-mode .achievement-badge h4,
        body.light-mode .service-card h4,
        body.light-mode .consulting-entry h4 {
            color: #10233f;
        }

        body.light-mode .achievements-modal h3,
        body.light-mode .services-modal h3,
        body.light-mode .consulting-modal h3,
        body.light-mode .achievements-modal p,
        body.light-mode .services-modal p,
        body.light-mode .consulting-modal p,
        body.light-mode .achievements-modal .modal-close,
        body.light-mode .services-modal .modal-close,
        body.light-mode .consulting-modal .modal-close {
            color: #173250;
        }

        body.light-mode .badge-desc,
        body.light-mode .service-desc {
            color: #45607e;
        }

        body.light-mode .input,
        body.light-mode select,
        body.light-mode textarea,
        body.light-mode .form-row input,
        body.light-mode .form-row textarea {
            background: #f8fbff;
            border-color: #bfd3fb;
            color: #0b1b33;
        }

        body.light-mode .form-row input::placeholder,
        body.light-mode .form-row textarea::placeholder {
            color: #6b84a6;
        }

        .container { width: min(1160px, 92vw); margin: 0 auto; }

        .site-header {
            position: sticky;
            top: 0;
            z-index: 20;
            border-bottom: 1px solid rgba(154, 168, 209, 0.2);
            background: rgba(5, 8, 22, 0.82);
            backdrop-filter: blur(8px);
        }

        .nav-wrap {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 8px 0;
        }

        .nav-tools {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .brand {
            color: #fff;
            text-decoration: none;
            font-size: 18px;
            font-weight: 700;
            letter-spacing: 0.4px;
        }

        .brand span { color: var(--primary-2); }

        .theme-toggle {
            width: 40px;
            height: 40px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 10px;
            border: 1px solid rgba(154, 168, 209, 0.5);
            background: rgba(17, 26, 58, 0.55);
            color: var(--text);
            cursor: pointer;
            font-size: 18px;
            transition: all 0.2s ease;
        }

        .theme-toggle:hover {
            transform: translateY(-1px);
            border-color: rgba(59, 130, 246, 0.6);
            box-shadow: 0 8px 20px rgba(2, 6, 23, 0.2);
        }

        body.light-mode .theme-toggle {
            background: #fff;
            border-color: #cbd5e1;
            color: #0f172a;
        }

        .lang-switch {
            position: relative;
        }

        .lang-toggle {
            width: 40px;
            height: 40px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 10px;
            border: 1px solid rgba(154, 168, 209, 0.5);
            background: rgba(17, 26, 58, 0.55);
            color: var(--text);
            cursor: pointer;
            font-size: 18px;
            transition: all 0.2s ease;
        }

        .lang-toggle:hover {
            transform: translateY(-1px);
            border-color: rgba(59, 130, 246, 0.6);
            box-shadow: 0 8px 20px rgba(2, 6, 23, 0.2);
        }

        body.light-mode .lang-toggle {
            background: #fff;
            border-color: #cbd5e1;
            color: #0f172a;
        }

        .lang-menu {
            position: absolute;
            right: 0;
            top: calc(100% + 8px);
            min-width: 150px;
            padding: 8px;
            border-radius: 10px;
            border: 1px solid var(--line);
            background: linear-gradient(180deg, var(--surface), var(--surface-2));
            box-shadow: var(--shadow);
            display: none;
            z-index: 40;
        }

        .lang-menu.is-open {
            display: grid;
            gap: 6px;
        }

        .lang-option {
            width: 100%;
            border: 1px solid rgba(154, 168, 209, 0.35);
            background: transparent;
            color: var(--text);
            border-radius: 8px;
            padding: 8px 10px;
            text-align: left;
            cursor: pointer;
            font-size: 13px;
            font-weight: 600;
        }

        .lang-option:hover {
            border-color: rgba(59, 130, 246, 0.6);
            background: rgba(59, 130, 246, 0.12);
        }

        .nav-links {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            align-items: center;
        }

        .nav-links a {
            color: var(--muted);
            text-decoration: none;
            font-size: 14px;
            padding: 7px 10px;
            border-radius: 8px;
            border: 1px solid transparent;
        }

        .nav-links a:hover {
            color: #fff;
            border-color: rgba(59, 130, 246, 0.6);
            background: rgba(59, 130, 246, 0.12);
        }

        .nav-brand-group {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .brand-logo-slot {
            width: 36px;
            height: 36px;
            border: 1px solid rgba(154, 168, 209, 0.45);
            border-radius: 999px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--muted);
            font-size: 12px;
            overflow: hidden;
            flex-shrink: 0;
        }

        .brand-logo-slot img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        main { padding: 24px 0 34px; }
        section { margin-bottom: 22px; }

        .hero {
            background: linear-gradient(130deg, #0b122b 0%, #14224a 55%, #0b122b 100%);
            border: 1px solid var(--line);
            border-radius: 16px;
            padding: 28px;
            box-shadow: var(--shadow);
        }

        .hero h1 { margin: 4px 0 8px; font-size: clamp(24px, 3.0vw, 34px); }
        .hero p { color: #b7c5ec; max-width: 760px; margin: 0 0 12px; text-align: justify; }

        .landing-hero {
            display: grid;
            gap: 22px;
        }

        .hero-layout {
            display: grid;
            grid-template-columns: minmax(0, 1.25fr) minmax(280px, 360px);
            gap: 22px;
            align-items: stretch;
        }

        .hero-copy-block {
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .hero-copy-block .chip {
            align-self: flex-start;
            margin-bottom: 10px;
        }

        .hero-copy-block p {
            font-size: 15px;
            line-height: 1.65;
            max-width: 720px;
        }

        .skills-rotating {
            min-height: 42px;
            align-content: flex-start;
            transition: opacity 0.2s ease;
        }

        .skills-rotating.skills-fade {
            opacity: 0.45;
        }

        .hero-actions-panel {
            display: flex;
            align-items: stretch;
        }

        .hero-actions-grid {
            width: 100%;
            display: grid;
            gap: 12px;
        }

        .hero-cta {
            width: 100%;
            display: grid;
            grid-template-columns: 52px 1fr;
            gap: 12px;
            align-items: center;
            text-align: left;
            border-radius: 16px;
            padding: 16px;
            border: 1px solid rgba(154, 168, 209, 0.18);
            background: linear-gradient(160deg, rgba(17, 26, 58, 0.9), rgba(14, 23, 51, 0.92));
            color: var(--text);
            cursor: pointer;
            box-shadow: 0 10px 24px rgba(2, 6, 23, 0.26);
            transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
            position: relative;
            overflow: hidden;
        }

        .hero-cta::after {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(120deg, transparent 15%, rgba(255, 255, 255, 0.06), transparent 85%);
            transform: translateX(-120%);
            transition: transform 0.45s ease;
        }

        .hero-cta:hover {
            transform: translateY(-3px);
            box-shadow: 0 16px 34px rgba(2, 6, 23, 0.34);
        }

        .hero-cta:hover::after {
            transform: translateX(120%);
        }

        .hero-cta-icon {
            width: 52px;
            height: 52px;
            border-radius: 14px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.1);
            position: relative;
            z-index: 1;
        }

        .hero-cta-copy {
            display: grid;
            gap: 4px;
            position: relative;
            z-index: 1;
        }

        .hero-cta-copy strong {
            font-size: 15px;
            line-height: 1.2;
            color: #fff;
        }

        .hero-cta-copy small {
            color: #b8c4ea;
            font-size: 12px;
            line-height: 1.45;
        }

        .hero-cta-warn {
            border-color: rgba(59, 130, 246, 0.3);
        }

        .hero-cta-warn .hero-cta-icon {
            background: rgba(59, 130, 246, 0.14);
            border-color: rgba(59, 130, 246, 0.3);
        }

        .hero-cta-primary {
            border-color: rgba(59, 130, 246, 0.32);
        }

        .hero-cta-primary .hero-cta-icon {
            background: rgba(59, 130, 246, 0.14);
            border-color: rgba(59, 130, 246, 0.3);
        }

        .hero-cta-accent {
            border-color: rgba(236, 72, 153, 0.32);
        }

        .hero-cta-accent .hero-cta-icon {
            background: rgba(236, 72, 153, 0.14);
            border-color: rgba(236, 72, 153, 0.32);
        }

        .hero-cta-consulting {
            border-color: rgba(16, 185, 129, 0.3);
        }

        .hero-cta-consulting .hero-cta-icon {
            background: rgba(59, 130, 246, 0.2);
            border-color: rgba(59, 130, 246, 0.28);
        }

        .hero-kpis {
            margin-top: 0;
        }

        .btn-achievements {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: linear-gradient(135deg, #f59e0b 0%, #f59e0b 100%);
            color: #fff;
            border: none;
            border-radius: 12px;
            padding: 14px 22px;
            font-weight: 600;
            font-size: 15px;
            margin-bottom: 16px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
            position: relative;
            overflow: hidden;
        }

        .btn-achievements::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: left 0.5s ease;
        }

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

        .btn-achievements:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 30px rgba(245, 158, 11, 0.4);
        }

        .btn-achievements:active {
            transform: translateY(-1px);
        }

        .achievements-icon {
            font-size: 20px;
            animation: pulse-icon 2.5s ease-in-out infinite;
        }

        .btn-services {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: linear-gradient(135deg, #3b82f6 0%, #3b82f6 100%);
            color: #fff;
            border: none;
            border-radius: 12px;
            padding: 14px 22px;
            font-weight: 600;
            font-size: 15px;
            margin-left: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
            position: relative;
            overflow: hidden;
        }

        .btn-services::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: left 0.5s ease;
        }

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

        .btn-services:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4);
        }

        .btn-services:active {
            transform: translateY(-1px);
        }

        .services-icon {
            font-size: 20px;
            animation: pulse-icon 2.5s ease-in-out infinite;
        }

        .btn-contact {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: linear-gradient(135deg, #ec4899 0%, #ec4899 100%);
            color: #fff;
            border: none;
            border-radius: 12px;
            padding: 14px 22px;
            font-weight: 600;
            font-size: 15px;
            margin-left: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 8px 20px rgba(236, 72, 153, 0.25);
            position: relative;
            overflow: hidden;
        }

        .btn-contact::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: left 0.5s ease;
        }

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

        .btn-contact:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 30px rgba(236, 72, 153, 0.4);
        }

        .btn-contact:active {
            transform: translateY(-1px);
        }

        .contact-icon {
            font-size: 20px;
            animation: pulse-icon 2.5s ease-in-out infinite;
        }

        .chip {
            display: inline-block;
            border-radius: 999px;
            border: 1px solid rgba(34, 211, 238, 0.55);
            color: #67e8f9;
            background: rgba(34, 211, 238, 0.09);
            padding: 4px 10px;
            font-size: 12px;
        }

        .skills-container {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 14px;
            margin-bottom: 16px;
        }

        .hero-skill-groups {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 12px;
            margin-top: 10px;
            margin-bottom: 16px;
        }

        .hero-copy-block .hero-skill-groups {
            justify-items: center;
        }

        .skill-group-card {
            padding: 14px;
            border-radius: 14px;
            border: 1px solid rgba(59, 130, 246, 0.22);
            background: linear-gradient(160deg, rgba(17, 26, 58, 0.72), rgba(14, 23, 51, 0.72));
        }

        .hero-copy-block .skill-group-card {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .skill-group-security {
            border-color: rgba(236, 72, 153, 0.24);
            background: linear-gradient(160deg, rgba(26, 17, 40, 0.72), rgba(14, 23, 51, 0.72));
        }

        .skill-group-title {
            display: inline-block;
            margin-bottom: 8px;
            color: #fff;
            font-size: 13px;
            font-weight: 700;
            letter-spacing: 0.4px;
            text-transform: uppercase;
        }

        .grouped-skills {
            margin-top: 0;
            margin-bottom: 0;
            flex-wrap: nowrap;
            overflow: hidden;
            align-items: center;
            min-height: 42px;
        }

        .hero-copy-block .grouped-skills {
            justify-content: center;
        }

        .grouped-skills .skill-tag {
            flex: 0 0 auto;
            white-space: nowrap;
        }

        .skill-tag {
            display: inline-block;
            background: linear-gradient(130deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.1));
            border: 1px solid rgba(59, 130, 246, 0.3);
            color: #93c5fd;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
            transition: all 0.2s ease;
        }

        .skill-tag:hover {
            background: linear-gradient(130deg, rgba(59, 130, 246, 0.25), rgba(37, 99, 235, 0.15));
            border-color: rgba(59, 130, 246, 0.6);
            color: #fff;
        }

        .project-tech-stack {
            margin-top: 6px;
            margin-bottom: 10px;
        }

        .compact-tech-stack {
            gap: 6px;
            margin-top: 6px;
            margin-bottom: 8px;
        }

        .compact-tech-stack .skill-tag,
        .project-tech-stack .skill-tag {
            padding: 4px 10px;
            font-size: 11px;
        }

        .list-cards .compact-tech-stack,
        .collab-grid-3x3 .compact-tech-stack {
            max-height: 56px;
            overflow: hidden;
        }

        .skill-tag-more {
            background: rgba(99, 102, 241, 0.18) !important;
            border-color: rgba(99, 102, 241, 0.35) !important;
            color: #a5b4fc !important;
        }

        body.light-mode .skill-tag-more {
            background: rgba(99, 102, 241, 0.1) !important;
            border-color: rgba(99, 102, 241, 0.25) !important;
            color: #4f46e5 !important;
        }

        .badge-en-proceso {
            display: inline-block;
            margin-top: 8px;
            padding: 4px 12px;
            border-radius: 999px;
            background: rgba(251, 191, 36, 0.15);
            border: 1px solid rgba(251, 191, 36, 0.35);
            color: #fbbf24;
            font-size: 12px;
            font-weight: 600;
        }

        body.light-mode .badge-en-proceso {
            background: rgba(245, 158, 11, 0.1);
            border-color: rgba(245, 158, 11, 0.3);
            color: #d97706;
        }

        .modal .badge-en-proceso {
            padding: 6px 14px;
            background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(245, 158, 11, 0.15));
            border: 1.5px solid rgba(251, 191, 36, 0.6);
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            box-shadow: 0 0 12px rgba(251, 191, 36, 0.15);
        }

        body.light-mode .modal .badge-en-proceso {
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(251, 191, 36, 0.08));
            border-color: rgba(245, 158, 11, 0.5);
            color: #b45309;
            box-shadow: 0 0 12px rgba(245, 158, 11, 0.12);
        }

        .badge-en-produccion {
            display: inline-block;
            margin-top: 8px;
            padding: 4px 12px;
            border-radius: 999px;
            background: rgba(52, 211, 153, 0.15);
            border: 1px solid rgba(52, 211, 153, 0.35);
            color: #34d399;
            font-size: 12px;
            font-weight: 600;
        }

        body.light-mode .badge-en-produccion {
            background: rgba(16, 185, 129, 0.1);
            border-color: rgba(16, 185, 129, 0.3);
            color: #059669;
        }

        .kpis {
            margin-top: 14px;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
            gap: 10px;
        }

        .kpi {
            border: 1px solid rgba(59, 130, 246, 0.35);
            border-radius: 12px;
            background: linear-gradient(160deg, rgba(37, 99, 235, 0.18), rgba(17, 26, 58, 0.72));
            padding: 12px;
            min-height: 92px;
            display: grid;
            grid-template-columns: 34px 1fr;
            gap: 10px;
            align-items: center;
        }

        .kpi-icon {
            width: 34px;
            height: 34px;
            border-radius: 10px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(34, 211, 238, 0.18);
            border: 1px solid rgba(34, 211, 238, 0.35);
            font-size: 16px;
        }

        .kpi-copy { display: grid; gap: 4px; }

        .kpi strong {
            display: block;
            font-size: 28px;
            line-height: 1;
            margin-bottom: 6px;
            color: #fff;
        }

        .kpi span {
            color: #c7d2fe;
            font-size: 12px;
            letter-spacing: 0.2px;
            text-transform: uppercase;
        }

        .section-head {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            gap: 10px;
            margin-bottom: 8px;
        }

        .section-head h2 {
            margin: 0;
            padding-left: 12px;
            border-left: 3px solid var(--primary);
            font-size: clamp(18px, 2vw, 22px);
            line-height: 1.3;
        }
        .section-head p { margin: 0; color: var(--muted); font-size: 14px; }

        .portfolio-layout {
            display: grid;
            grid-template-columns: 1.35fr 0.75fr;
            gap: 16px;
            align-items: start;
        }

        .stack {
            display: grid;
            gap: 14px;
        }

        .final-informacion {
            margin-top: 16px;
            width: 100%;
        }

        .info-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 12px;
        }

        .compact-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
            gap: 12px;
        }

        .list-cards {
            display: grid;
            gap: 10px;
        }

        .auto-pager { display: grid; gap: 10px; }

        .auto-pager-nav {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
        }

        .stat-card {
            border: 1px solid rgba(52, 70, 125, 0.45);
            border-radius: 12px;
            padding: 10px;
            background: rgba(17, 26, 58, 0.45);
        }

        .trophy-grid {
            display: grid;
            gap: 10px;
        }

        .trophy-card {
            border: 1px solid rgba(245, 158, 11, 0.45);
            border-radius: 12px;
            padding: 12px;
            background: linear-gradient(160deg, rgba(120, 53, 15, 0.25), rgba(17, 26, 58, 0.5));
        }

        .trophy-head {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 6px;
        }

        .trophy-icon {
            width: 30px;
            height: 30px;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(59, 130, 246, 0.2);
            border: 1px solid rgba(59, 130, 246, 0.5);
        }

        .btn-view-image {
            background: transparent;
            border: none;
            color: var(--muted);
            cursor: pointer;
            font-size: 18px;
            padding: 4px 8px;
            border-radius: 6px;
            margin-top: 6px;
            transition: all 0.15s ease;
        }

        .btn-view-image:hover {
            color: var(--primary-2);
            background: rgba(34, 211, 238, 0.15);
        }

        .section-panel {
            background: rgba(17, 26, 58, 0.35);
            border: 1px solid rgba(52, 70, 125, 0.45);
            border-radius: 14px;
            padding: 16px;
        }

        .section-soft {
            background: rgba(11, 18, 43, 0.45);
            border: 1px solid rgba(52, 70, 125, 0.35);
            border-radius: 14px;
            padding: 16px;
        }

        .btn {
            display: inline-block;
            text-decoration: none;
            background: linear-gradient(130deg, var(--primary), #2563eb);
            color: #fff;
            border: 0;
            border-radius: 10px;
            padding: 10px 14px;
            font-weight: 600;
            margin-top: 8px;
            margin-right: 8px;
            cursor: pointer;
        }

        .btn:hover { filter: brightness(1.08); }

        .btn-outline {
            background: transparent;
            border: 1px solid rgba(59, 130, 246, 0.65);
            color: #93c5fd;
        }

        .detail-meta-right .btn-outline {
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.12));
            border: 1.5px solid rgba(16, 185, 129, 0.6);
            color: #6ee7b7;
            font-weight: 700;
            padding: 6px 14px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            box-shadow: 0 0 14px rgba(16, 185, 129, 0.2);
        }

        .btn-secondary { background: linear-gradient(130deg, #334155, #1e293b); }

        .grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 16px;
            margin-top: 12px;
        }

        .card {
            background: linear-gradient(180deg, var(--surface), var(--surface-2));
            border: 1px solid var(--line);
            border-radius: var(--radius);
            padding: 16px;
            box-shadow: var(--shadow);
        }

        .card-link {
            text-decoration: none;
            color: inherit;
            display: block;
        }

        .clickable-card {
            cursor: pointer;
            transition: transform 0.15s ease, border-color 0.15s ease;
        }

        .clickable-card:hover {
            transform: translateY(-2px);
            border-color: rgba(59, 130, 246, 0.75);
        }

        .card h3 { margin: 8px 0; }

        .fixed-card {
            min-height: 180px;
            display: flex;
            flex-direction: column;
        }

        .fixed-card .meta,
        .fixed-card p,
        .fixed-card h3 {
            margin-top: 0;
        }

        .fixed-card .badge-en-proceso,
        .fixed-card .badge-en-produccion {
            margin-top: auto;
        }

        .ellipsis-1,
        .ellipsis-2,
        .ellipsis-3 {
            display: -webkit-box;
            overflow: hidden;
            -webkit-box-orient: vertical;
        }

        .ellipsis-1 { -webkit-line-clamp: 1; }
        .ellipsis-2 { -webkit-line-clamp: 2; }
        .ellipsis-3 { -webkit-line-clamp: 3; }

        .card img {
            width: 100%;
            border-radius: 10px;
            max-height: 180px;
            object-fit: cover;
            border: 1px solid rgba(154, 168, 209, 0.25);
            margin-bottom: 8px;
            aspect-ratio: 16 / 9;
        }

        .fixed-card img,
        .fixed-card .media-fallback {
            height: 150px;
            max-height: 150px;
            aspect-ratio: 16 / 9;
        }

        .media-fallback {
            height: 180px;
            border-radius: 10px;
            margin-bottom: 8px;
            border: 1px dashed rgba(154, 168, 209, 0.5);
            background: rgba(17, 26, 58, 0.55);
            color: var(--muted);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            text-align: center;
            padding: 10px;
        }

        .meta { color: var(--muted); font-size: 13px; }

        .empty {
            padding: 14px;
            border-radius: 12px;
            border: 1px dashed rgba(154, 168, 209, 0.45);
            background: rgba(17, 26, 58, 0.55);
            color: var(--muted);
        }

        .card-form {
            background: linear-gradient(180deg, var(--surface), var(--surface-2));
            border: 1px solid var(--line);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            padding: 16px;
        }

        .form-row { margin-bottom: 10px; }
        .form-row label { display: block; color: var(--muted); font-size: 13px; margin-bottom: 4px; }

        input, select, textarea {
            width: 100%;
            border-radius: 10px;
            border: 1px solid #33467d;
            background: #0b122b;
            color: #e2e8f0;
            padding: 10px;
        }

        .site-footer {
            border-top: 1px solid rgba(154, 168, 209, 0.2);
            color: var(--muted);
            padding: 18px 0;
            background: rgba(5, 8, 22, 0.75);
            text-align: center;
        }

        .site-footer .container {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .modal {
            position: fixed;
            inset: 0;
            display: none;
            z-index: 50;
            background: rgba(2, 6, 23, 0.75);
            padding: 24px;
        }

        .modal.is-open { display: block; }

        .modal-content {
            max-width: 980px;
            margin: 0 auto;
            max-height: calc(100vh - 48px);
            overflow: auto;
            background: linear-gradient(180deg, var(--surface), var(--surface-2));
            border: 1px solid var(--line);
            border-radius: 22px;
            box-shadow: 0 28px 70px rgba(2, 6, 23, 0.48);
            padding: 24px;
            position: relative;
        }

        .modal-content::before {
            content: "";
            position: absolute;
            inset: 0 0 auto 0;
            height: 120px;
            background: linear-gradient(180deg, rgba(59, 130, 246, 0.14), transparent);
            pointer-events: none;
        }

        .modal-content > * {
            position: relative;
            z-index: 1;
        }

        .modal-head {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            margin-bottom: 16px;
            padding-bottom: 14px;
            border-bottom: 1px solid rgba(148, 163, 184, 0.18);
        }

        .modal-close {
            border: 1px solid #33467d;
            background: #0b122b;
            color: var(--text);
            border-radius: 8px;
            padding: 7px 10px;
            cursor: pointer;
        }

        .gallery {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
            gap: 10px;
            margin-top: 10px;
        }

        .gallery img {
            width: 100%;
            height: 140px;
            object-fit: cover;
            border-radius: 14px;
            border: 1px solid rgba(96, 165, 250, 0.28);
            box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
        }

        .image-viewer-modal {
            max-width: 800px;
        }

        .pdf-viewer-modal {
            max-width: 980px;
        }

        .pdf-viewer-container {
            min-height: 72vh;
            border-radius: 18px;
            overflow: hidden;
            border: 1px solid rgba(96, 165, 250, 0.22);
            background: linear-gradient(180deg, rgba(8, 15, 31, 0.82), rgba(15, 23, 42, 0.72));
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
        }

        .pdf-viewer-container iframe {
            width: 100%;
            height: 72vh;
            border: 0;
            background: #ffffff;
        }

        .pdf-viewer-actions {
            margin-top: 14px;
            justify-content: flex-end;
        }

        .modal-content p:not(.meta) {
            line-height: 1.7;
            color: #d6e2ff;
        }

        .modal-content .meta {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            margin: 0 8px 10px 0;
            padding: 6px 12px;
            border-radius: 999px;
            border: 1px solid rgba(96, 165, 250, 0.3);
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(99, 102, 241, 0.08));
            color: #93c5fd;
        }

        .modal-content video {
            margin-top: 14px !important;
            border-radius: 16px !important;
            border: 1px solid rgba(96, 165, 250, 0.24) !important;
            box-shadow: 0 18px 34px rgba(2, 6, 23, 0.24);
            background: #020617;
        }

        .detail-modal {
            max-width: 1080px;
            background:
                radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 26%),
                radial-gradient(circle at top left, rgba(96, 165, 250, 0.12), transparent 22%),
                linear-gradient(180deg, rgba(17, 26, 58, 0.98), rgba(10, 16, 34, 0.98));
        }

        .detail-modal .modal-head h3 {
            margin: 0;
            font-size: clamp(22px, 3vw, 30px);
            letter-spacing: 0.2px;
        }

        .detail-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 12px;
            align-items: center;
        }

        .detail-meta-right {
            margin-left: auto;
        }

        .btn-sm {
            padding: 6px 14px;
            font-size: 12px;
        }

        .detail-tech-stack {
            margin-top: 0;
            margin-bottom: 16px;
        }

        .detail-description {
            padding: 18px;
            border-radius: 18px;
            border: 1px solid rgba(96, 165, 250, 0.18);
            background: linear-gradient(180deg, rgba(15, 23, 42, 0.35), rgba(15, 23, 42, 0.18));
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
            margin-bottom: 18px;
        }

        .detail-description p {
            margin: 0;
            text-align: justify;
        }

        .detail-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 18px;
        }

        .detail-gallery-wrap {
            margin-top: 10px;
            padding: 14px;
            border-radius: 20px;
            border: 1px solid rgba(96, 165, 250, 0.18);
            background: linear-gradient(180deg, rgba(8, 15, 31, 0.72), rgba(15, 23, 42, 0.4));
        }

        .detail-gallery::-webkit-scrollbar {
            height: 8px;
        }

        .detail-gallery::-webkit-scrollbar-thumb {
            background: rgba(96, 165, 250, 0.45);
            border-radius: 999px;
        }

        .detail-gallery {
            display: flex;
            gap: 32px;
            overflow-x: auto;
            overflow-y: hidden;
            padding-bottom: 8px;
            scroll-snap-type: x mandatory;
            scrollbar-width: thin;
            scrollbar-color: rgba(96, 165, 250, 0.45) transparent;
            align-items: flex-start;
        }

        .detail-gallery > * {
            flex: 0 0 auto;
            scroll-snap-align: start;
            max-width: 320px;
        }

        .detail-gallery img {
            width: auto;
            height: 260px;
            object-fit: contain;
            border-radius: 18px;
            border: 1px solid rgba(148, 163, 184, 0.26);
            box-shadow: 0 16px 34px rgba(2, 6, 23, 0.3);
            background: #0f172a;
        }

        .gallery-demo-card {
            min-width: 240px;
            height: 260px;
            display: flex;
            align-items: center;
            justify-content: center;
            scroll-snap-align: start;
            border-radius: 18px;
            border: 2px solid rgba(56, 189, 248, 0.5);
            background: linear-gradient(145deg, rgba(8, 47, 73, 0.85), rgba(15, 23, 42, 0.7));
            box-shadow: 0 0 30px rgba(56, 189, 248, 0.12), inset 0 1px 0 rgba(56, 189, 248, 0.1);
            transition: border-color .2s, box-shadow .2s;
        }

        .gallery-demo-card.has-demo:hover {
            border-color: rgba(56, 189, 248, 0.8);
            box-shadow: 0 0 40px rgba(56, 189, 248, 0.2), inset 0 1px 0 rgba(56, 189, 248, 0.15);
        }

        .gallery-demo-card.no-demo {
            border-color: rgba(100, 116, 139, 0.35);
            background: rgba(15, 23, 42, 0.4);
            box-shadow: none;
        }

        .gallery-demo-link {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            text-decoration: none;
            color: #7dd3fc;
            transition: color .2s, transform .2s;
        }

        .gallery-demo-card.has-demo:hover .gallery-demo-link {
            color: #fff;
            transform: scale(1.05);
        }

        .gallery-demo-link.disabled {
            color: #475569;
            cursor: default;
            pointer-events: none;
        }

        .gallery-demo-icon {
            font-size: 44px;
            line-height: 1;
        }

        .gallery-demo-label {
            font-size: 15px;
            font-weight: 700;
            letter-spacing: .3px;
        }



        body.light-mode .detail-modal {
            background:
                radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 26%),
                radial-gradient(circle at top left, rgba(236, 72, 153, 0.1), transparent 20%),
                linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
            border-color: rgba(96, 165, 250, 0.34);
            box-shadow: 0 28px 64px rgba(37, 99, 235, 0.14);
        }

        body.light-mode .detail-modal .modal-head h3,
        body.light-mode .detail-modal p:not(.meta) {
            color: #173250;
        }

        body.light-mode .detail-description {
            background: linear-gradient(180deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.96));
            border-color: rgba(96, 165, 250, 0.22);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
        }

        body.light-mode .detail-gallery-wrap {
            background: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.98));
            border-color: rgba(96, 165, 250, 0.22);
        }

        body.light-mode .detail-gallery img {
            border-color: rgba(96, 165, 250, 0.22);
            box-shadow: 0 14px 28px rgba(30, 64, 175, 0.12);
            background: #f1f5f9;
        }

        body.light-mode .gallery-demo-card {
            border-color: rgba(2, 132, 199, 0.4);
            background: linear-gradient(145deg, rgba(224, 242, 254, 0.95), rgba(255, 255, 255, 0.95));
            box-shadow: 0 0 24px rgba(2, 132, 199, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
        }

        body.light-mode .gallery-demo-card.has-demo:hover {
            border-color: rgba(2, 132, 199, 0.65);
            box-shadow: 0 0 32px rgba(2, 132, 199, 0.18);
        }

        body.light-mode .gallery-demo-card.no-demo {
            border-color: rgba(148, 163, 184, 0.3);
            background: rgba(248, 250, 252, 0.8);
            box-shadow: none;
        }

        body.light-mode .gallery-demo-link {
            color: #0284c7;
        }

        body.light-mode .gallery-demo-card.has-demo:hover .gallery-demo-link {
            color: #0369a1;
        }

        body.light-mode .gallery-demo-link.disabled {
            color: #94a3b8;
        }

        body.light-mode .gallery-demo-link {
            color: #2563eb;
        }

        body.light-mode .gallery-demo-link:hover {
            color: #1d4ed8;
        }

        body.light-mode .gallery-demo-link.disabled {
            color: #94a3b8;
        }

        body.light-mode .pdf-viewer-container {
            background: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.98));
            border-color: rgba(96, 165, 250, 0.22);
        }

        .image-viewer-container {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 400px;
            max-height: 70vh;
        }

        .image-viewer-container img {
            max-width: 100%;
            max-height: 100%;
            width: auto;
            height: auto;
            border-radius: 10px;
            border: 1px solid rgba(154, 168, 209, 0.3);
        }

        .achievements-modal { max-width: 900px; max-height: 85vh; background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 30%), radial-gradient(circle at top left, rgba(14, 165, 233, 0.12), transparent 26%), linear-gradient(180deg, rgba(17, 26, 58, 0.98), rgba(10, 16, 34, 0.98)); }

        .achievements-grid { background: transparent;
            border-radius: 12px;
            border: 1px solid rgba(59, 130, 246, 0.25);
        }

        .achievement-badge {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: stretch;
            text-align: left;
            padding: 16px;
            background: linear-gradient(165deg, rgba(59, 130, 246, 0.16), rgba(15, 23, 42, 0.22));
            border: 1px solid rgba(96, 165, 250, 0.28);
            border-radius: 14px;
            overflow: hidden;
            transition: all 0.3s ease;
            animation: slideInUp 0.6s ease forwards;
            opacity: 0;
            min-height: 180px;
        }

        .achievement-badge[data-achievement="1"] { animation-delay: 0.05s; }
        .achievement-badge[data-achievement="2"] { animation-delay: 0.1s; }
        .achievement-badge[data-achievement="3"] { animation-delay: 0.15s; }
        .achievement-badge[data-achievement="4"] { animation-delay: 0.2s; }
        .achievement-badge[data-achievement="5"] { animation-delay: 0.25s; }
        .achievement-badge[data-achievement="6"] { animation-delay: 0.3s; }
        .achievement-badge[data-achievement="7"] { animation-delay: 0.35s; }
        .achievement-badge[data-achievement="8"] { animation-delay: 0.4s; }
        .achievement-badge[data-achievement="9"] { animation-delay: 0.45s; }
        .achievement-badge[data-achievement="10"] { animation-delay: 0.5s; }

        @keyframes slideInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .badge-shine {
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
            transform: rotate(45deg);
            animation: shine 3s infinite;
        }

        @keyframes shine {
            0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
            100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
        }

        .badge-content {
            position: relative;
            z-index: 1;
            display: flex;
            flex-direction: column;
            gap: 8px;
            height: 100%;
        }

        .badge-filetype {
            align-self: flex-end;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 44px;
            padding: 3px 8px;
            border-radius: 999px;
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.4px;
            color: #fff;
            background: rgba(59, 130, 246, 0.5);
            border: 1px solid rgba(147, 197, 253, 0.5);
        }

        .badge-icon {
            font-size: 40px;
            animation: bounceIcon 2s ease-in-out infinite;
        }

        @keyframes bounceIcon {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-8px); }
        }

        .achievement-badge h4 {
            margin: 0;
            color: #fff;
            font-size: 15px;
            line-height: 1.3;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .badge-entity {
            color: #60a5fa;
            font-size: 12px;
            margin: 0;
            font-weight: 600;
        }

        .badge-date {
            color: var(--muted);
            font-size: 11px;
            margin: 0;
        }

        .badge-desc {
            color: #c7d2fe;
            font-size: 12px;
            margin: 4px 0 0;
            line-height: 1.3;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .badge-preview {
            width: 100%;
            height: 120px;
            border-radius: 10px;
            border: 1px solid rgba(154, 168, 209, 0.3);
            overflow: hidden;
            background: rgba(11, 18, 43, 0.6);
        }

        .badge-preview img,
        .badge-preview iframe {
            width: 100%;
            height: 100%;
            border: 0;
            object-fit: cover;
            background: #fff;
        }

        .badge-preview-file {
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 8px;
            text-align: center;
            color: #e2e8f0;
            background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(30, 41, 59, 0.78));
        }

        .badge-preview-file strong {
            font-size: 16px;
            letter-spacing: 0.4px;
        }

        .badge-preview-file small {
            font-size: 11px;
            color: #cbd5e1;
        }

        .badge-preview-file-icon {
            font-size: 30px;
            line-height: 1;
        }

        .btn-view-badge-image {
            background: rgba(59, 130, 246, 0.2);
            border: 1px solid rgba(59, 130, 246, 0.5);
            color: #60a5fa;
            cursor: pointer;
            font-size: 12px;
            padding: 6px 10px;
            border-radius: 6px;
            margin-top: 8px;
            transition: all 0.2s ease;
        }

        .btn-view-badge-image:hover {
            background: rgba(59, 130, 246, 0.4);
            color: #fff;
        }

        .btn-view-badge-file {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(59, 130, 246, 0.2);
            border: 1px solid rgba(59, 130, 246, 0.5);
            color: #93c5fd;
            text-decoration: none;
            font-size: 12px;
            padding: 6px 10px;
            border-radius: 6px;
            margin-top: 8px;
            transition: all 0.2s ease;
            cursor: pointer;
        }

        .btn-view-badge-file:hover {
            background: rgba(59, 130, 246, 0.4);
            color: #fff;
        }

        .achievement-badge:hover {
            transform: translateY(-4px);
            border-color: rgba(59, 130, 246, 0.8);
            background: linear-gradient(160deg, rgba(59, 130, 246, 0.25), rgba(37, 99, 235, 0.15));
            box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
        }



        .container {
            width: min(1160px, 92vw);
            margin: 0 auto;
        }

        .site-header {
            position: sticky;
            top: 0;
            z-index: 20;
            border-bottom: 1px solid rgba(154, 168, 209, 0.2);
            background: rgba(5, 8, 22, 0.82);
            backdrop-filter: blur(8px);
        }

        .nav-wrap {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 8px 0;
        }

        .nav-tools {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .brand {
            color: #fff;
            text-decoration: none;
            font-size: 18px;
            font-weight: 700;
            letter-spacing: 0.4px;
        }

        .brand span {
            color: var(--primary-2);
        }

        .theme-toggle {
            width: 40px;
            height: 40px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 10px;
            border: 1px solid rgba(154, 168, 209, 0.5);
            background: rgba(17, 26, 58, 0.55);
            color: var(--text);
            cursor: pointer;
            font-size: 18px;
            transition: all 0.2s ease;
        }

        .theme-toggle:hover {
            transform: translateY(-1px);
            border-color: rgba(59, 130, 246, 0.6);
            box-shadow: 0 8px 20px rgba(2, 6, 23, 0.2);
        }

        body.light-mode .theme-toggle {
            background: #fff;
            border-color: #cbd5e1;
            color: #0f172a;
        }

        .lang-switch {
            position: relative;
        }

        .lang-toggle {
            width: 40px;
            height: 40px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 10px;
            border: 1px solid rgba(154, 168, 209, 0.5);
            background: rgba(17, 26, 58, 0.55);
            color: var(--text);
            cursor: pointer;
            font-size: 18px;
            transition: all 0.2s ease;
        }

        .lang-toggle:hover {
            transform: translateY(-1px);
            border-color: rgba(59, 130, 246, 0.6);
            box-shadow: 0 8px 20px rgba(2, 6, 23, 0.2);
        }

        body.light-mode .lang-toggle {
            background: #fff;
            border-color: #cbd5e1;
            color: #0f172a;
        }

        .lang-menu {
            position: absolute;
            right: 0;
            top: calc(100% + 8px);
            min-width: 150px;
            padding: 8px;
            border-radius: 10px;
            border: 1px solid var(--line);
            background: linear-gradient(180deg, var(--surface), var(--surface-2));
            box-shadow: var(--shadow);
            display: none;
            z-index: 40;
        }

        .lang-menu.is-open {
            display: grid;
            gap: 6px;
        }

        .lang-option {
            width: 100%;
            border: 1px solid rgba(154, 168, 209, 0.35);
            background: transparent;
            color: var(--text);
            border-radius: 8px;
            padding: 8px 10px;
            text-align: left;
            cursor: pointer;
            font-size: 13px;
            font-weight: 600;
        }

        .lang-option:hover {
            border-color: rgba(59, 130, 246, 0.6);
            background: rgba(59, 130, 246, 0.12);
        }

        .nav-links {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            align-items: center;
        }

        .nav-links a {
            color: var(--muted);
            text-decoration: none;
            font-size: 14px;
            padding: 7px 10px;
            border-radius: 8px;
            border: 1px solid transparent;
        }

        .nav-links a:hover {
            color: #fff;
            border-color: rgba(59, 130, 246, 0.6);
            background: rgba(59, 130, 246, 0.12);
        }

        .nav-brand-group {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .brand-logo-slot {
            width: 36px;
            height: 36px;
            border: 1px solid rgba(154, 168, 209, 0.45);
            border-radius: 999px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--muted);
            font-size: 12px;
            overflow: hidden;
            flex-shrink: 0;
        }

        .brand-logo-slot img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        main {
            padding: 24px 0 34px;
        }

        section {
            margin-bottom: 22px;
        }

        .hero {
            background: linear-gradient(130deg, #0b122b 0%, #14224a 55%, #0b122b 100%);
            border: 1px solid var(--line);
            border-radius: 16px;
            padding: 28px;
            box-shadow: var(--shadow);
        }

        .hero h1 {
            margin: 4px 0 8px;
            font-size: clamp(24px, 3.0vw, 34px);
        }

        .hero p {
            color: #b7c5ec;
            max-width: 760px;
            margin: 0 0 12px;
            text-align: justify;
        }

        .landing-hero {
            display: grid;
            gap: 22px;
        }

        .hero-layout {
            display: grid;
            grid-template-columns: minmax(0, 1.25fr) minmax(280px, 360px);
            gap: 22px;
            align-items: stretch;
        }

        .hero-copy-block {
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .hero-copy-block .chip {
            align-self: flex-start;
            margin-bottom: 10px;
        }

        .hero-copy-block p {
            font-size: 15px;
            line-height: 1.65;
            max-width: 720px;
        }

        .skills-rotating {
            min-height: 42px;
            align-content: flex-start;
            transition: opacity 0.2s ease;
        }

        .skills-rotating.skills-fade {
            opacity: 0.45;
        }

        .hero-actions-panel {
            display: flex;
            align-items: stretch;
        }

        .hero-actions-grid {
            width: 100%;
            display: grid;
            gap: 12px;
        }

        .hero-cta {
            width: 100%;
            display: grid;
            grid-template-columns: 52px 1fr;
            gap: 12px;
            align-items: center;
            text-align: left;
            border-radius: 16px;
            padding: 16px;
            border: 1px solid rgba(154, 168, 209, 0.18);
            background: linear-gradient(160deg, rgba(17, 26, 58, 0.9), rgba(14, 23, 51, 0.92));
            color: var(--text);
            cursor: pointer;
            box-shadow: 0 10px 24px rgba(2, 6, 23, 0.26);
            transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
            position: relative;
            overflow: hidden;
        }

        .hero-cta::after {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(120deg, transparent 15%, rgba(255, 255, 255, 0.06), transparent 85%);
            transform: translateX(-120%);
            transition: transform 0.45s ease;
        }

        .hero-cta:hover {
            transform: translateY(-3px);
            box-shadow: 0 16px 34px rgba(2, 6, 23, 0.34);
        }

        .hero-cta:hover::after {
            transform: translateX(120%);
        }

        .hero-cta-icon {
            width: 52px;
            height: 52px;
            border-radius: 14px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.1);
            position: relative;
            z-index: 1;
        }

        .hero-cta-copy {
            display: grid;
            gap: 4px;
            position: relative;
            z-index: 1;
        }

        .hero-cta-copy strong {
            font-size: 15px;
            line-height: 1.2;
            color: #fff;
        }

        .hero-cta-copy small {
            color: #b8c4ea;
            font-size: 12px;
            line-height: 1.45;
        }

        .hero-cta-warn {
            border-color: rgba(59, 130, 246, 0.3);
        }

        .hero-cta-warn .hero-cta-icon {
            background: rgba(59, 130, 246, 0.14);
            border-color: rgba(59, 130, 246, 0.3);
        }

        .hero-cta-primary {
            border-color: rgba(59, 130, 246, 0.32);
        }

        .hero-cta-primary .hero-cta-icon {
            background: rgba(59, 130, 246, 0.14);
            border-color: rgba(59, 130, 246, 0.3);
        }

        .hero-cta-accent {
            border-color: rgba(236, 72, 153, 0.32);
        }

        .hero-cta-accent .hero-cta-icon {
            background: rgba(236, 72, 153, 0.14);
            border-color: rgba(236, 72, 153, 0.32);
        }

        .hero-cta-consulting {
            border-color: rgba(16, 185, 129, 0.3);
        }

        .hero-cta-consulting .hero-cta-icon {
            background: rgba(59, 130, 246, 0.2);
            border-color: rgba(59, 130, 246, 0.28);
        }

        .hero-kpis {
            margin-top: 0;
        }

        .btn-achievements {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: linear-gradient(135deg, #f59e0b 0%, #f59e0b 100%);
            color: #fff;
            border: none;
            border-radius: 12px;
            padding: 14px 22px;
            font-weight: 600;
            font-size: 15px;
            margin-bottom: 16px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
            position: relative;
            overflow: hidden;
        }

        .btn-achievements::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: left 0.5s ease;
        }

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

        .btn-achievements:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 30px rgba(245, 158, 11, 0.4);
        }

        .btn-achievements:active {
            transform: translateY(-1px);
        }

        .achievements-icon {
            font-size: 20px;
            animation: pulse-icon 2.5s ease-in-out infinite;
        }

        .btn-services {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: linear-gradient(135deg, #3b82f6 0%, #3b82f6 100%);
            color: #fff;
            border: none;
            border-radius: 12px;
            padding: 14px 22px;
            font-weight: 600;
            font-size: 15px;
            margin-left: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
            position: relative;
            overflow: hidden;
        }

        .btn-services::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: left 0.5s ease;
        }

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

        .btn-services:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4);
        }

        .btn-services:active {
            transform: translateY(-1px);
        }

        .services-icon {
            font-size: 20px;
            animation: pulse-icon 2.5s ease-in-out infinite;
        }

        .btn-contact {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: linear-gradient(135deg, #ec4899 0%, #ec4899 100%);
            color: #fff;
            border: none;
            border-radius: 12px;
            padding: 14px 22px;
            font-weight: 600;
            font-size: 15px;
            margin-left: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 8px 20px rgba(236, 72, 153, 0.25);
            position: relative;
            overflow: hidden;
        }

        .btn-contact::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: left 0.5s ease;
        }

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

        .btn-contact:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 30px rgba(236, 72, 153, 0.4);
        }

        .btn-contact:active {
            transform: translateY(-1px);
        }

        .contact-icon {
            font-size: 20px;
            animation: pulse-icon 2.5s ease-in-out infinite;
        }

        .chip {
            display: inline-block;
            border-radius: 999px;
            border: 1px solid rgba(34, 211, 238, 0.55);
            color: #67e8f9;
            background: rgba(34, 211, 238, 0.09);
            padding: 4px 10px;
            font-size: 12px;
        }

        .skills-container {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 14px;
            margin-bottom: 16px;
        }

        .hero-skill-groups {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 12px;
            margin-top: 10px;
            margin-bottom: 16px;
        }

        .hero-copy-block .hero-skill-groups {
            justify-items: center;
        }

        .skill-group-card {
            padding: 14px;
            border-radius: 14px;
            border: 1px solid rgba(59, 130, 246, 0.22);
            background: linear-gradient(160deg, rgba(17, 26, 58, 0.72), rgba(14, 23, 51, 0.72));
        }

        .hero-copy-block .skill-group-card {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .skill-group-security {
            border-color: rgba(236, 72, 153, 0.24);
            background: linear-gradient(160deg, rgba(26, 17, 40, 0.72), rgba(14, 23, 51, 0.72));
        }

        .skill-group-title {
            display: inline-block;
            margin-bottom: 8px;
            color: #fff;
            font-size: 13px;
            font-weight: 700;
            letter-spacing: 0.4px;
            text-transform: uppercase;
        }

        .grouped-skills {
            margin-top: 0;
            margin-bottom: 0;
            flex-wrap: nowrap;
            overflow: hidden;
            align-items: center;
            min-height: 42px;
        }

        .hero-copy-block .grouped-skills {
            justify-content: center;
        }

        .grouped-skills .skill-tag {
            flex: 0 0 auto;
            white-space: nowrap;
        }

        .skill-tag {
            display: inline-block;
            background: linear-gradient(130deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.1));
            border: 1px solid rgba(59, 130, 246, 0.3);
            color: #93c5fd;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
            transition: all 0.2s ease;
        }

        .skill-tag:hover {
            background: linear-gradient(130deg, rgba(59, 130, 246, 0.25), rgba(37, 99, 235, 0.15));
            border-color: rgba(59, 130, 246, 0.6);
            color: #fff;
        }

        .project-tech-stack {
            margin-top: 6px;
            margin-bottom: 10px;
        }

        .compact-tech-stack {
            gap: 6px;
            margin-top: 6px;
            margin-bottom: 8px;
        }

        .compact-tech-stack .skill-tag,
        .project-tech-stack .skill-tag {
            padding: 4px 10px;
            font-size: 11px;
        }

        .list-cards .compact-tech-stack,
        .collab-grid-3x3 .compact-tech-stack {
            max-height: 56px;
            overflow: hidden;
        }

        .skill-tag-more {
            background: rgba(99, 102, 241, 0.18) !important;
            border-color: rgba(99, 102, 241, 0.35) !important;
            color: #a5b4fc !important;
        }

        body.light-mode .skill-tag-more {
            background: rgba(99, 102, 241, 0.1) !important;
            border-color: rgba(99, 102, 241, 0.25) !important;
            color: #4f46e5 !important;
        }

        .badge-en-proceso {
            display: inline-block;
            margin-top: 8px;
            padding: 4px 12px;
            border-radius: 999px;
            background: rgba(251, 191, 36, 0.15);
            border: 1px solid rgba(251, 191, 36, 0.35);
            color: #fbbf24;
            font-size: 12px;
            font-weight: 600;
        }

        body.light-mode .badge-en-proceso {
            background: rgba(245, 158, 11, 0.1);
            border-color: rgba(245, 158, 11, 0.3);
            color: #d97706;
        }

        .modal .badge-en-proceso {
            padding: 6px 14px;
            background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(245, 158, 11, 0.15));
            border: 1.5px solid rgba(251, 191, 36, 0.6);
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            box-shadow: 0 0 12px rgba(251, 191, 36, 0.15);
        }

        body.light-mode .modal .badge-en-proceso {
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(251, 191, 36, 0.08));
            border-color: rgba(245, 158, 11, 0.5);
            color: #b45309;
            box-shadow: 0 0 12px rgba(245, 158, 11, 0.12);
        }

        .badge-en-produccion {
            display: inline-block;
            margin-top: 8px;
            padding: 4px 12px;
            border-radius: 999px;
            background: rgba(52, 211, 153, 0.15);
            border: 1px solid rgba(52, 211, 153, 0.35);
            color: #34d399;
            font-size: 12px;
            font-weight: 600;
        }

        body.light-mode .badge-en-produccion {
            background: rgba(16, 185, 129, 0.1);
            border-color: rgba(16, 185, 129, 0.3);
            color: #059669;
        }

        .kpis {
            margin-top: 14px;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
            gap: 10px;
        }

        .kpi {
            border: 1px solid rgba(59, 130, 246, 0.35);
            border-radius: 12px;
            background: linear-gradient(160deg, rgba(37, 99, 235, 0.18), rgba(17, 26, 58, 0.72));
            padding: 12px;
            min-height: 92px;
            display: grid;
            grid-template-columns: 34px 1fr;
            gap: 10px;
            align-items: center;
        }

        .kpi-icon {
            width: 34px;
            height: 34px;
            border-radius: 10px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(34, 211, 238, 0.18);
            border: 1px solid rgba(34, 211, 238, 0.35);
            font-size: 16px;
        }

        .kpi-copy { display: grid; gap: 4px; }

        .kpi strong {
            display: block;
            font-size: 28px;
            line-height: 1;
            margin-bottom: 6px;
            color: #fff;
        }

        .kpi span {
            color: #c7d2fe;
            font-size: 12px;
            letter-spacing: 0.2px;
            text-transform: uppercase;
        }

        .section-head {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            gap: 10px;
            margin-bottom: 8px;
        }

        .section-head h2 {
            margin: 0;
            padding-left: 12px;
            border-left: 3px solid var(--primary);
            font-size: clamp(18px, 2vw, 22px);
            line-height: 1.3;
        }
        .section-head p { margin: 0; color: var(--muted); font-size: 14px; }

        .portfolio-layout {
            display: grid;
            grid-template-columns: 1.35fr 0.75fr;
            gap: 16px;
            align-items: start;
        }

        .stack {
            display: grid;
            gap: 14px;
        }

        .final-informacion {
            margin-top: 16px;
            width: 100%;
        }

        .info-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 12px;
        }

        .compact-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
            gap: 12px;
        }

        .list-cards {
            display: grid;
            gap: 10px;
        }

        .auto-pager { display: grid; gap: 10px; }

        .auto-pager-nav {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
        }

        .stat-card {
            border: 1px solid rgba(52, 70, 125, 0.45);
            border-radius: 12px;
            padding: 10px;
            background: rgba(17, 26, 58, 0.45);
        }

        .trophy-grid {
            display: grid;
            gap: 10px;
        }

        .trophy-card {
            border: 1px solid rgba(245, 158, 11, 0.45);
            border-radius: 12px;
            padding: 12px;
            background: linear-gradient(160deg, rgba(120, 53, 15, 0.25), rgba(17, 26, 58, 0.5));
        }

        .trophy-head {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 6px;
        }

        .trophy-icon {
            width: 30px;
            height: 30px;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(59, 130, 246, 0.2);
            border: 1px solid rgba(59, 130, 246, 0.5);
        }

        .btn-view-image {
            background: transparent;
            border: none;
            color: var(--muted);
            cursor: pointer;
            font-size: 18px;
            padding: 4px 8px;
            border-radius: 6px;
            margin-top: 6px;
            transition: all 0.15s ease;
        }

        .btn-view-image:hover {
            color: var(--primary-2);
            background: rgba(34, 211, 238, 0.15);
        }

        .section-panel {
            background: rgba(17, 26, 58, 0.35);
            border: 1px solid rgba(52, 70, 125, 0.45);
            border-radius: 14px;
            padding: 16px;
        }

        .section-soft {
            background: rgba(11, 18, 43, 0.45);
            border: 1px solid rgba(52, 70, 125, 0.35);
            border-radius: 14px;
            padding: 16px;
        }

        .btn {
            display: inline-block;
            text-decoration: none;
            background: linear-gradient(130deg, var(--primary), #2563eb);
            color: #fff;
            border: 0;
            border-radius: 10px;
            padding: 10px 14px;
            font-weight: 600;
            margin-top: 8px;
            margin-right: 8px;
            cursor: pointer;
        }

        .btn:hover { filter: brightness(1.08); }

        .btn-outline {
            background: transparent;
            border: 1px solid rgba(59, 130, 246, 0.65);
            color: #93c5fd;
        }

        .detail-meta-right .btn-outline {
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.12));
            border: 1.5px solid rgba(16, 185, 129, 0.6);
            color: #6ee7b7;
            font-weight: 700;
            padding: 6px 14px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            box-shadow: 0 0 14px rgba(16, 185, 129, 0.2);
        }

        .btn-secondary { background: linear-gradient(130deg, #334155, #1e293b); }

        .grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 16px;
            margin-top: 12px;
        }

        .card {
            background: linear-gradient(180deg, var(--surface), var(--surface-2));
            border: 1px solid var(--line);
            border-radius: var(--radius);
            padding: 16px;
            box-shadow: var(--shadow);
        }

        .card-link {
            text-decoration: none;
            color: inherit;
            display: block;
        }

        .clickable-card {
            cursor: pointer;
            transition: transform 0.15s ease, border-color 0.15s ease;
        }

        .clickable-card:hover {
            transform: translateY(-2px);
            border-color: rgba(59, 130, 246, 0.75);
        }

        .card h3 { margin: 8px 0; }

        .fixed-card {
            min-height: 180px;
            display: flex;
            flex-direction: column;
        }

        .fixed-card .meta,
        .fixed-card p,
        .fixed-card h3 {
            margin-top: 0;
        }

        .fixed-card .badge-en-proceso,
        .fixed-card .badge-en-produccion {
            margin-top: auto;
        }

        .ellipsis-1,
        .ellipsis-2,
        .ellipsis-3 {
            display: -webkit-box;
            overflow: hidden;
            -webkit-box-orient: vertical;
        }

        .ellipsis-1 { -webkit-line-clamp: 1; }
        .ellipsis-2 { -webkit-line-clamp: 2; }
        .ellipsis-3 { -webkit-line-clamp: 3; }

        .card img {
            width: 100%;
            border-radius: 10px;
            max-height: 180px;
            object-fit: cover;
            border: 1px solid rgba(154, 168, 209, 0.25);
            margin-bottom: 8px;
            aspect-ratio: 16 / 9;
        }

        .fixed-card img,
        .fixed-card .media-fallback {
            height: 150px;
            max-height: 150px;
            aspect-ratio: 16 / 9;
        }

        .media-fallback {
            height: 180px;
            border-radius: 10px;
            margin-bottom: 8px;
            border: 1px dashed rgba(154, 168, 209, 0.5);
            background: rgba(17, 26, 58, 0.55);
            color: var(--muted);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            text-align: center;
            padding: 10px;
        }

        .meta { color: var(--muted); font-size: 13px; }

        .empty {
            padding: 14px;
            border-radius: 12px;
            border: 1px dashed rgba(154, 168, 209, 0.45);
            background: rgba(17, 26, 58, 0.55);
            color: var(--muted);
        }

        .card-form {
            background: linear-gradient(180deg, var(--surface), var(--surface-2));
            border: 1px solid var(--line);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            padding: 16px;
        }

        .form-row { margin-bottom: 10px; }
        .form-row label { display: block; color: var(--muted); font-size: 13px; margin-bottom: 4px; }

        input, select, textarea {
            width: 100%;
            border-radius: 10px;
            border: 1px solid #33467d;
            background: #0b122b;
            color: #e2e8f0;
            padding: 10px;
        }

        .site-footer {
            border-top: 1px solid rgba(154, 168, 209, 0.2);
            color: var(--muted);
            padding: 18px 0;
            background: rgba(5, 8, 22, 0.75);
            text-align: center;
        }

        .site-footer .container {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .modal {
            position: fixed;
            inset: 0;
            display: none;
            z-index: 50;
            background: rgba(2, 6, 23, 0.75);
            padding: 24px;
        }

        .modal.is-open { display: block; }

        .modal-content {
            max-width: 980px;
            margin: 0 auto;
            max-height: calc(100vh - 48px);
            overflow: auto;
            background: linear-gradient(180deg, var(--surface), var(--surface-2));
            border: 1px solid var(--line);
            border-radius: 22px;
            box-shadow: 0 28px 70px rgba(2, 6, 23, 0.48);
            padding: 24px;
            position: relative;
        }

        .modal-content::before {
            content: "";
            position: absolute;
            inset: 0 0 auto 0;
            height: 120px;
            background: linear-gradient(180deg, rgba(59, 130, 246, 0.14), transparent);
            pointer-events: none;
        }

        .modal-content > * {
            position: relative;
            z-index: 1;
        }

        .modal-head {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            margin-bottom: 16px;
            padding-bottom: 14px;
            border-bottom: 1px solid rgba(148, 163, 184, 0.18);
        }

        .modal-close {
            border: 1px solid #33467d;
            background: #0b122b;
            color: var(--text);
            border-radius: 8px;
            padding: 7px 10px;
            cursor: pointer;
        }

        .gallery {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
            gap: 10px;
            margin-top: 10px;
        }

        .gallery img {
            width: 100%;
            height: 140px;
            object-fit: cover;
            border-radius: 14px;
            border: 1px solid rgba(96, 165, 250, 0.28);
            box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
        }

        .image-viewer-modal {
            max-width: 800px;
        }

        .pdf-viewer-modal {
            max-width: 980px;
        }

        .pdf-viewer-container {
            min-height: 72vh;
            border-radius: 18px;
            overflow: hidden;
            border: 1px solid rgba(96, 165, 250, 0.22);
            background: linear-gradient(180deg, rgba(8, 15, 31, 0.82), rgba(15, 23, 42, 0.72));
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
        }

        .pdf-viewer-container iframe {
            width: 100%;
            height: 72vh;
            border: 0;
            background: #ffffff;
        }

        .pdf-viewer-actions {
            margin-top: 14px;
            justify-content: flex-end;
        }

        .modal-content p:not(.meta) {
            line-height: 1.7;
            color: #d6e2ff;
        }

        .modal-content .meta {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            margin: 0 8px 10px 0;
            padding: 6px 12px;
            border-radius: 999px;
            border: 1px solid rgba(96, 165, 250, 0.3);
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(99, 102, 241, 0.08));
            color: #93c5fd;
        }

        .modal-content video {
            margin-top: 14px !important;
            border-radius: 16px !important;
            border: 1px solid rgba(96, 165, 250, 0.24) !important;
            box-shadow: 0 18px 34px rgba(2, 6, 23, 0.24);
            background: #020617;
        }

        .detail-modal {
            max-width: 1080px;
            background:
                radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 26%),
                radial-gradient(circle at top left, rgba(96, 165, 250, 0.12), transparent 22%),
                linear-gradient(180deg, rgba(17, 26, 58, 0.98), rgba(10, 16, 34, 0.98));
        }

        .detail-modal .modal-head h3 {
            margin: 0;
            font-size: clamp(22px, 3vw, 30px);
            letter-spacing: 0.2px;
        }

        .detail-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 12px;
            align-items: center;
        }

        .detail-meta-right {
            margin-left: auto;
        }

        .btn-sm {
            padding: 6px 14px;
            font-size: 12px;
        }

        .detail-tech-stack {
            margin-top: 0;
            margin-bottom: 16px;
        }

        .detail-description {
            padding: 18px;
            border-radius: 18px;
            border: 1px solid rgba(96, 165, 250, 0.18);
            background: linear-gradient(180deg, rgba(15, 23, 42, 0.35), rgba(15, 23, 42, 0.18));
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
            margin-bottom: 18px;
        }

        .detail-description p {
            margin: 0;
            text-align: justify;
        }

        .detail-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 18px;
        }

        .detail-gallery-wrap {
            margin-top: 10px;
            padding: 14px;
            border-radius: 20px;
            border: 1px solid rgba(96, 165, 250, 0.18);
            background: linear-gradient(180deg, rgba(8, 15, 31, 0.72), rgba(15, 23, 42, 0.4));
        }

        .detail-gallery::-webkit-scrollbar {
            height: 8px;
        }

        .detail-gallery::-webkit-scrollbar-thumb {
            background: rgba(96, 165, 250, 0.45);
            border-radius: 999px;
        }

        .detail-gallery {
            display: flex;
            gap: 32px;
            overflow-x: auto;
            overflow-y: hidden;
            padding-bottom: 8px;
            scroll-snap-type: x mandatory;
            scrollbar-width: thin;
            scrollbar-color: rgba(96, 165, 250, 0.45) transparent;
            align-items: flex-start;
        }

        .detail-gallery > * {
            flex: 0 0 auto;
            scroll-snap-align: start;
            max-width: 320px;
        }

        .detail-gallery img {
            width: auto;
            height: 260px;
            object-fit: contain;
            border-radius: 18px;
            border: 1px solid rgba(148, 163, 184, 0.26);
            box-shadow: 0 16px 34px rgba(2, 6, 23, 0.3);
            background: #0f172a;
        }

        .gallery-demo-card {
            min-width: 240px;
            height: 260px;
            display: flex;
            align-items: center;
            justify-content: center;
            scroll-snap-align: start;
            border-radius: 18px;
            border: 2px solid rgba(56, 189, 248, 0.5);
            background: linear-gradient(145deg, rgba(8, 47, 73, 0.85), rgba(15, 23, 42, 0.7));
            box-shadow: 0 0 30px rgba(56, 189, 248, 0.12), inset 0 1px 0 rgba(56, 189, 248, 0.1);
            transition: border-color .2s, box-shadow .2s;
        }

        .gallery-demo-card.has-demo:hover {
            border-color: rgba(56, 189, 248, 0.8);
            box-shadow: 0 0 40px rgba(56, 189, 248, 0.2), inset 0 1px 0 rgba(56, 189, 248, 0.15);
        }

        .gallery-demo-card.no-demo {
            border-color: rgba(100, 116, 139, 0.35);
            background: rgba(15, 23, 42, 0.4);
            box-shadow: none;
        }

        .gallery-demo-link {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            text-decoration: none;
            color: #7dd3fc;
            transition: color .2s, transform .2s;
        }

        .gallery-demo-card.has-demo:hover .gallery-demo-link {
            color: #fff;
            transform: scale(1.05);
        }

        .gallery-demo-link.disabled {
            color: #475569;
            cursor: default;
            pointer-events: none;
        }

        .gallery-demo-icon {
            font-size: 44px;
            line-height: 1;
        }

        .gallery-demo-label {
            font-size: 15px;
            font-weight: 700;
            letter-spacing: .3px;
        }



        body.light-mode .detail-modal {
            background:
                radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 26%),
                radial-gradient(circle at top left, rgba(236, 72, 153, 0.1), transparent 20%),
                linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
            border-color: rgba(96, 165, 250, 0.34);
            box-shadow: 0 28px 64px rgba(37, 99, 235, 0.14);
        }

        body.light-mode .detail-modal .modal-head h3,
        body.light-mode .detail-modal p:not(.meta) {
            color: #173250;
        }

        body.light-mode .detail-description {
            background: linear-gradient(180deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.96));
            border-color: rgba(96, 165, 250, 0.22);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
        }

        body.light-mode .detail-gallery-wrap {
            background: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.98));
            border-color: rgba(96, 165, 250, 0.22);
        }

        body.light-mode .detail-gallery img {
            border-color: rgba(96, 165, 250, 0.22);
            box-shadow: 0 14px 28px rgba(30, 64, 175, 0.12);
            background: #f1f5f9;
        }

        body.light-mode .gallery-demo-card {
            border-color: rgba(2, 132, 199, 0.4);
            background: linear-gradient(145deg, rgba(224, 242, 254, 0.95), rgba(255, 255, 255, 0.95));
            box-shadow: 0 0 24px rgba(2, 132, 199, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
        }

        body.light-mode .gallery-demo-card.has-demo:hover {
            border-color: rgba(2, 132, 199, 0.65);
            box-shadow: 0 0 32px rgba(2, 132, 199, 0.18);
        }

        body.light-mode .gallery-demo-card.no-demo {
            border-color: rgba(148, 163, 184, 0.3);
            background: rgba(248, 250, 252, 0.8);
            box-shadow: none;
        }

        body.light-mode .gallery-demo-link {
            color: #0284c7;
        }

        body.light-mode .gallery-demo-card.has-demo:hover .gallery-demo-link {
            color: #0369a1;
        }

        body.light-mode .gallery-demo-link.disabled {
            color: #94a3b8;
        }

        body.light-mode .gallery-demo-link {
            color: #2563eb;
        }

        body.light-mode .gallery-demo-link:hover {
            color: #1d4ed8;
        }

        body.light-mode .gallery-demo-link.disabled {
            color: #94a3b8;
        }

        body.light-mode .pdf-viewer-container {
            background: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.98));
            border-color: rgba(96, 165, 250, 0.22);
        }

        .image-viewer-container {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 400px;
            max-height: 70vh;
        }

        .image-viewer-container img {
            max-width: 100%;
            max-height: 100%;
            width: auto;
            height: auto;
            border-radius: 10px;
            border: 1px solid rgba(154, 168, 209, 0.3);
        }

        .achievements-modal { max-width: 900px; max-height: 85vh; background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 30%), radial-gradient(circle at top left, rgba(14, 165, 233, 0.12), transparent 26%), linear-gradient(180deg, rgba(17, 26, 58, 0.98), rgba(10, 16, 34, 0.98)); }

        .achievements-grid { background: transparent;
            border-radius: 12px;
            border: 1px solid rgba(59, 130, 246, 0.25);
        }

        .achievement-badge {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: stretch;
            text-align: left;
            padding: 16px;
            background: linear-gradient(165deg, rgba(59, 130, 246, 0.16), rgba(15, 23, 42, 0.22));
            border: 1px solid rgba(96, 165, 250, 0.28);
            border-radius: 14px;
            overflow: hidden;
            transition: all 0.3s ease;
            animation: slideInUp 0.6s ease forwards;
            opacity: 0;
            min-height: 180px;
        }

        .achievement-badge[data-achievement="1"] { animation-delay: 0.05s; }
        .achievement-badge[data-achievement="2"] { animation-delay: 0.1s; }
        .achievement-badge[data-achievement="3"] { animation-delay: 0.15s; }
        .achievement-badge[data-achievement="4"] { animation-delay: 0.2s; }
        .achievement-badge[data-achievement="5"] { animation-delay: 0.25s; }
        .achievement-badge[data-achievement="6"] { animation-delay: 0.3s; }
        .achievement-badge[data-achievement="7"] { animation-delay: 0.35s; }
        .achievement-badge[data-achievement="8"] { animation-delay: 0.4s; }
        .achievement-badge[data-achievement="9"] { animation-delay: 0.45s; }
        .achievement-badge[data-achievement="10"] { animation-delay: 0.5s; }

        @keyframes slideInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .badge-shine {
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
            transform: rotate(45deg);
            animation: shine 3s infinite;
        }

        @keyframes shine {
            0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
            100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
        }

        .badge-content {
            position: relative;
            z-index: 1;
            display: flex;
            flex-direction: column;
            gap: 8px;
            height: 100%;
        }

        .badge-filetype {
            align-self: flex-end;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 44px;
            padding: 3px 8px;
            border-radius: 999px;
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.4px;
            color: #fff;
            background: rgba(59, 130, 246, 0.5);
            border: 1px solid rgba(147, 197, 253, 0.5);
        }

        .badge-icon {
            font-size: 40px;
            animation: bounceIcon 2s ease-in-out infinite;
        }

        @keyframes bounceIcon {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-8px); }
        }

        .achievement-badge h4 {
            margin: 0;
            color: #fff;
            font-size: 15px;
            line-height: 1.3;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .badge-entity {
            color: #60a5fa;
            font-size: 12px;
            margin: 0;
            font-weight: 600;
        }

        .badge-date {
            color: var(--muted);
            font-size: 11px;
            margin: 0;
        }

        .badge-desc {
            color: #c7d2fe;
            font-size: 12px;
            margin: 4px 0 0;
            line-height: 1.3;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .badge-preview {
            width: 100%;
            height: 120px;
            border-radius: 10px;
            border: 1px solid rgba(154, 168, 209, 0.3);
            overflow: hidden;
            background: rgba(11, 18, 43, 0.6);
        }

        .badge-preview img,
        .badge-preview iframe {
            width: 100%;
            height: 100%;
            border: 0;
            object-fit: cover;
            background: #fff;
        }

        .badge-preview-file {
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 8px;
            text-align: center;
            color: #e2e8f0;
            background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(30, 41, 59, 0.78));
        }

        .badge-preview-file strong {
            font-size: 16px;
            letter-spacing: 0.4px;
        }

        .badge-preview-file small {
            font-size: 11px;
            color: #cbd5e1;
        }

        .badge-preview-file-icon {
            font-size: 30px;
            line-height: 1;
        }

        .btn-view-badge-image {
            background: rgba(59, 130, 246, 0.2);
            border: 1px solid rgba(59, 130, 246, 0.5);
            color: #60a5fa;
            cursor: pointer;
            font-size: 12px;
            padding: 6px 10px;
            border-radius: 6px;
            margin-top: 8px;
            transition: all 0.2s ease;
        }

        .btn-view-badge-image:hover {
            background: rgba(59, 130, 246, 0.4);
            color: #fff;
        }

        .btn-view-badge-file {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(59, 130, 246, 0.2);
            border: 1px solid rgba(59, 130, 246, 0.5);
            color: #93c5fd;
            text-decoration: none;
            font-size: 12px;
            padding: 6px 10px;
            border-radius: 6px;
            margin-top: 8px;
            transition: all 0.2s ease;
            cursor: pointer;
        }

        .btn-view-badge-file:hover {
            background: rgba(59, 130, 246, 0.4);
            color: #fff;
        }

        .achievement-badge:hover {
            transform: translateY(-4px);
            border-color: rgba(59, 130, 246, 0.8);
            background: linear-gradient(160deg, rgba(59, 130, 246, 0.25), rgba(37, 99, 235, 0.15));
            box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
        }

        .services-modal {
            max-width: 940px;
            max-height: 85vh;
            background:
                radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 30%),
                radial-gradient(circle at top left, rgba(14, 165, 233, 0.12), transparent 26%),
                linear-gradient(180deg, rgba(17, 26, 58, 0.98), rgba(10, 16, 34, 0.98));
        }

        .services-head {
            margin-bottom: 12px;
        }

        .services-title {
            margin: 0;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: clamp(21px, 2.6vw, 28px);
            letter-spacing: 0.2px;
        }

        .services-subtitle {
            margin: 6px 0 0;
            color: var(--muted);
            font-size: 13px;
            line-height: 1.5;
        }

        .services-intro {
            display: grid;
            gap: 8px;
            margin: 4px 0 12px;
            padding: 12px 14px;
            border-radius: 12px;
            border: 1px solid rgba(96, 165, 250, 0.28);
            background: linear-gradient(160deg, rgba(59, 130, 246, 0.16), rgba(15, 23, 42, 0.2));
        }

        .services-intro-chip {
            justify-self: flex-start;
            display: inline-flex;
            align-items: center;
            padding: 4px 10px;
            border-radius: 999px;
            border: 1px solid rgba(96, 165, 250, 0.42);
            background: rgba(59, 130, 246, 0.2);
            color: #bfdbfe;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.35px;
            text-transform: uppercase;
        }

        .services-intro p {
            margin: 0;
            color: #cfe1ff;
            font-size: 13px;
            line-height: 1.6;
        }

        .consulting-modal { max-width: 980px; max-height: 85vh; background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 30%), radial-gradient(circle at top left, rgba(14, 165, 233, 0.12), transparent 26%), linear-gradient(180deg, rgba(17, 26, 58, 0.98), rgba(10, 16, 34, 0.98)); }

        .consulting-intro {
            display: grid;
            gap: 8px;
            margin-top: 4px;
            margin-bottom: 12px;
            padding: 12px 14px;
            border-radius: 12px;
            border: 1px solid rgba(96, 165, 250, 0.28);
            background: linear-gradient(160deg, rgba(59, 130, 246, 0.16), rgba(15, 23, 42, 0.2));
        }

        .consulting-intro p {
            margin: 0;
            color: #cfe1ff;
            font-size: 13px;
            line-height: 1.5;
        }

        .consulting-intro-chip {
            justify-self: flex-start;
            display: inline-flex;
            align-items: center;
            padding: 4px 10px;
            border-radius: 999px;
            border: 1px solid rgba(96, 165, 250, 0.42);
            background: rgba(59, 130, 246, 0.2);
            color: #bfdbfe;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.35px;
            text-transform: uppercase;
        }

        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
            gap: 16px;
            margin-top: 10px;
            padding: 12px;
            background: rgba(5, 8, 22, 0.5);
            border-radius: 14px;
            border: 1px solid rgba(59, 130, 246, 0.2);
        }

        .service-card {
            position: relative;
            display: flex;
            flex-direction: column;
            gap: 10px;
            padding: 16px;
            min-height: 220px;
            border-radius: 14px;
            border: 1px solid rgba(96, 165, 250, 0.28);
            background: linear-gradient(165deg, rgba(59, 130, 246, 0.16), rgba(15, 23, 42, 0.22));
            box-shadow: 0 12px 26px rgba(2, 6, 23, 0.2);
            transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
        }

        .service-card:hover {
            transform: translateY(-3px);
            border-color: rgba(125, 211, 252, 0.55);
            box-shadow: 0 16px 32px rgba(2, 6, 23, 0.28);
        }

        .service-card-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
        }

        .service-chip {
            width: 42px;
            height: 42px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 12px;
            font-size: 22px;
            border: 1px solid rgba(245, 158, 11, 0.35);
            background: rgba(245, 158, 11, 0.15);
        }

        .service-index {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 42px;
            padding: 4px 8px;
            border-radius: 999px;
            border: 1px solid rgba(167, 139, 250, 0.4);
            background: rgba(139, 92, 246, 0.15);
            color: #c4b5fd;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.35px;
        }

        .service-card h4 {
            margin: 0;
            color: #f8fafc;
            font-size: 16px;
            line-height: 1.35;
        }

        .service-desc {
            margin: 0;
            color: #c9dbff;
            font-size: 13px;
            line-height: 1.6;
            display: -webkit-box;
            -webkit-line-clamp: 4;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .service-footer {
            margin-top: auto;
            display: flex;
            justify-content: flex-start;
        }

        .service-pill {
            display: inline-flex;
            align-items: center;
            padding: 5px 10px;
            border-radius: 999px;
            border: 1px solid rgba(16, 185, 129, 0.4);
            background: rgba(16, 185, 129, 0.15);
            color: #6ee7b7;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.35px;
            text-transform: uppercase;
        }

        .consulting-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 16px;
            margin-top: 12px;
            padding: 12px;
            background: rgba(5, 8, 22, 0.5);
            border-radius: 12px;
            border: 1px solid rgba(16, 185, 129, 0.18);
        }

        .consulting-entry {
            position: relative;
            display: flex;
            flex-direction: column;
            gap: 10px;
            padding: 16px 18px 16px 20px;
            border-radius: 14px;
            border: 1px solid rgba(148, 163, 184, 0.15);
            background: rgba(15, 23, 42, 0.35);
            border-left: 3px solid rgba(251, 191, 36, 0.5);
            transition: border-color 0.2s ease, background 0.2s ease;
        }

        .consulting-entry:hover {
            border-left-color: #fbbf24;
            background: rgba(15, 23, 42, 0.5);
        }

        .consulting-entry-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
        }

        .consulting-entry-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            color: #94a3b8;
            font-size: 12px;
            font-weight: 500;
        }

        .consulting-entry-tag {
            display: inline-flex;
            padding: 3px 10px;
            border-radius: 999px;
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: #fbbf24;
            background: rgba(245, 158, 11, 0.12);
            border: 1px solid rgba(245, 158, 11, 0.25);
        }

        .consulting-entry h4 {
            margin: 2px 0 0;
            color: #f1f5f9;
            font-size: 17px;
            font-weight: 600;
            line-height: 1.3;
        }

        .consulting-entry-fields {
            display: flex;
            flex-direction: column;
            gap: 4px;
            margin-top: 2px;
        }

        .consulting-entry-field {
            display: inline-flex;
            align-items: baseline;
            gap: 6px;
        }

        .consulting-entry-label {
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.4px;
            color: #64748b;
        }

        .consulting-entry-value {
            font-size: 13px;
            color: #cbd5e1;
        }

        .consulting-entry-btn {
            align-self: flex-end;
            margin-top: auto;
            padding: 7px 16px;
            border-radius: 8px;
            border: 1px solid rgba(148, 163, 184, 0.25);
            background: transparent;
            color: #94a3b8;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.15s ease;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .consulting-entry-btn:hover {
            border-color: rgba(251, 191, 36, 0.5);
            color: #fbbf24;
            background: rgba(245, 158, 11, 0.08);
        }

        body.light-mode .consulting-entry {
            background: rgba(255, 255, 255, 0.7);
            border-color: rgba(148, 163, 184, 0.2);
            border-left-color: rgba(245, 158, 11, 0.4);
        }

        body.light-mode .consulting-entry:hover {
            background: rgba(255, 255, 255, 0.9);
            border-left-color: #d97706;
        }

        body.light-mode .consulting-entry h4 {
            color: #1e293b;
        }

        body.light-mode .consulting-entry-value {
            color: #475569;
        }

        body.light-mode .consulting-entry-btn {
            color: #64748b;
            border-color: rgba(148, 163, 184, 0.3);
        }

        body.light-mode .consulting-entry-btn:hover {
            color: #d97706;
            border-color: rgba(245, 158, 11, 0.5);
            background: rgba(245, 158, 11, 0.06);
        }

        body.light-mode .consulting-intro {
            background: linear-gradient(180deg, rgba(236, 253, 245, 0.9), rgba(255, 255, 255, 0.94));
            border-color: rgba(16, 185, 129, 0.24);
        }

        body.light-mode .services-modal {
            background:
                radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 30%),
                radial-gradient(circle at top left, rgba(14, 165, 233, 0.14), transparent 26%),
                linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
            border-color: rgba(96, 165, 250, 0.36);
            box-shadow: 0 24px 50px rgba(37, 99, 235, 0.16);
        }

        body.light-mode .services-title,
        body.light-mode .services-subtitle,
        body.light-mode .services-intro p,
        body.light-mode .service-card h4,
        body.light-mode .service-desc,
        body.light-mode .services-modal .modal-close {
            color: #173250;
        }

        body.light-mode .services-intro {
            background: linear-gradient(180deg, rgba(239, 246, 255, 0.95), rgba(255, 255, 255, 0.95));
            border-color: rgba(96, 165, 250, 0.24);
        }

        body.light-mode .services-intro-chip,
        body.light-mode .service-pill {
            color: #1e40af;
            background: rgba(59, 130, 246, 0.12);
            border-color: rgba(59, 130, 246, 0.32);
        }

        body.light-mode .service-card {
            background: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.98));
            border-color: rgba(96, 165, 250, 0.26);
            box-shadow: 0 12px 26px rgba(37, 99, 235, 0.12);
        }

        body.light-mode .service-chip {
            border-color: rgba(59, 130, 246, 0.32);
            background: rgba(59, 130, 246, 0.12);
        }

        body.light-mode .service-index {
            color: #1e3a5f;
            background: rgba(59, 130, 246, 0.1);
            border-color: rgba(59, 130, 246, 0.24);
        }

        body.light-mode .consulting-intro p {
            color: #244062;
        }

        body.light-mode .consulting-intro-chip {
            color: #1e40af;
            background: rgba(59, 130, 246, 0.12);
            border-color: rgba(59, 130, 246, 0.28);
        }

        .btn-submit {
            background: linear-gradient(130deg, #ec4899, #d946ef);
            color: #fff;
            border: none;
            border-radius: 8px;
            padding: 13px 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            margin-top: 8px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-size: 14px;
        }

        .btn-submit:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(236, 72, 153, 0.3);
        }

        /* â”€â”€ MESSAGES â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
        .messages-container {
            position: fixed;
            top: 80px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 10000;
            display: flex;
            flex-direction: column;
            gap: 8px;
            max-width: 480px;
            width: calc(100% - 28px);
            pointer-events: none;
        }
        .message {
            padding: 14px 18px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            box-shadow: 0 4px 16px rgba(0,0,0,0.3);
            pointer-events: auto;
            animation: msgIn 0.3s ease, msgOut 0.3s ease 5s forwards;
            text-align: center;
        }
        .message-success {
            background: #065f46;
            color: #d1fae5;
            border: 1px solid #059669;
        }
        .message-error {
            background: #7f1d1d;
            color: #fecaca;
            border: 1px solid #dc2626;
        }
        .message-warning {
            background: #78350f;
            color: #fef3c7;
            border: 1px solid #d97706;
        }
        @keyframes msgIn {
            from { opacity: 0; transform: translateY(-20px); }
            to   { opacity: 1; transform: translateY(0); }
        }
        @keyframes msgOut {
            from { opacity: 1; }
            to   { opacity: 0; transform: translateY(-20px); }
        }

        /* â”€â”€ CAPTCHA â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
        .captcha-row {
            display: flex;
            align-items: center;
            margin: 12px 0;
        }
        .captcha-label {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            color: var(--muted);
            font-size: 14px;
            user-select: none;
        }
        .captcha-label input[type="checkbox"] {
            width: 18px;
            height: 18px;
            accent-color: #ec4899;
            cursor: pointer;
        }

        .collab-grid-3x3 {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 12px;
        }

        /* â”€â”€ TABLET (â‰¤ 1050px) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
        @media (max-width: 1050px) {
            .hero-layout { grid-template-columns: 1fr; gap: 24px; }
            .collab-grid-3x3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .portfolio-layout { grid-template-columns: 1fr; }
            .services-grid { grid-template-columns: repeat(2, 1fr); }
            .consulting-grid { grid-template-columns: repeat(2, 1fr); }
        }

        /* â”€â”€ MÃ“VIL (â‰¤ 640px) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
        @media (max-width: 640px) {
            html, body { overflow-x: clip; }
            body { max-width: 100vw; }
            .container { padding: 0 14px; }

            .container,
            main,
            section,
            .hero,
            .portfolio-layout,
            .stack,
            .section-soft,
            .section-panel,
            .card,
            .modal,
            .modal-content,
            .detail-gallery-wrap,
            .detail-gallery {
                width: 100%;
                max-width: 100%;
                min-width: 0;
            }

            img,
            video,
            iframe {
                max-width: 100%;
                height: auto;
            }

            /* nav */
            .nav-wrap {
                flex-direction: row !important;
                justify-content: center !important;
                position: relative !important;
            }
            .nav-brand-group {
                position: absolute !important;
                left: 50% !important;
                transform: translateX(-50%) !important;
                white-space: nowrap !important;
                z-index: 1 !important;
                justify-content: center !important;
            }
            .nav-tools {
                justify-content: space-between !important;
                width: 100% !important;
                gap: 0 !important;
            }
            .brand { font-size: 22px; }
            .brand-logo-slot { width: 32px; height: 32px; font-size: 10px; }
            .lang-menu {
                left: 0;
                right: auto;
                top: calc(100% + 8px);
                width: min(220px, calc(100vw - 28px));
                max-width: calc(100vw - 28px);
            }

            /* hero */
            .hero { padding: 20px 16px 24px; }
            .hero-layout,
            .hero-copy-block,
            .hero-actions-panel,
            .hero-actions-grid,
            .hero-cta,
            .hero-cta-copy,
            .kpi,
            .kpi-copy {
                min-width: 0;
            }
            .hero h1 { font-size: clamp(18px, 6vw, 26px); }
            .hero h1,
            .hero p,
            .hero-cta-copy strong,
            .hero-cta-copy small,
            .kpi span {
                overflow-wrap: anywhere;
                word-break: break-word;
            }
            .hero p { font-size: 14px; }
            .hero-skill-groups { grid-template-columns: 1fr; gap: 10px; }
            .hero-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
            .kpi { padding: 10px 8px; }
            .kpi-icon { font-size: 20px; }
            .kpi strong { font-size: 20px; }
            .kpi span { font-size: 11px; }

            /* hero CTAs */
            .hero-actions-grid { grid-template-columns: 1fr; gap: 10px; }
            .hero-cta { padding: 12px 14px; gap: 10px; }
            .hero-cta-icon { width: 42px; height: 42px; font-size: 18px; }

            /* hero description collapsible */
            .hero-copy-block {
                max-height: 45vh;
                overflow: hidden;
                position: relative;
                cursor: pointer;
                transition: max-height 0.4s ease;
                justify-content: flex-start;
            }
            .hero-copy-block::after {
                content: "";
                position: absolute;
                bottom: 0;
                left: 0;
                right: 0;
                height: 60px;
                background: linear-gradient(transparent, #0b122b);
                pointer-events: none;
                transition: opacity 0.4s ease;
            }
            body.light-mode .hero-copy-block::after {
                background: linear-gradient(transparent, #f0f5ff);
            }
            .hero-copy-block.hero-expanded {
                max-height: none;
                overflow: visible;
            }
            .hero-copy-block.hero-expanded::after {
                opacity: 0;
            }

            /* secciones */
            .section-head { flex-direction: column; align-items: flex-start; gap: 4px; }
            .section-head h2 { font-size: 18px; }

            /* skills */
            .hero-skill-groups .grouped-skills {
                flex-wrap: wrap;
                overflow: visible;
                justify-content: center;
            }
            .hero-skill-groups .skill-tag {
                font-size: 11px;
                padding: 4px 10px;
            }
            .skill-group-card {
                padding: 12px;
            }

            /* tarjetas */
            .grid { grid-template-columns: 1fr; }
            .collab-grid-3x3 { grid-template-columns: 1fr; }
            .fixed-card { min-height: 260px; }
            .card img { max-height: 160px; }

            /* modales */
            .modal-content { margin: 8px; padding: 18px 14px; border-radius: 14px; }
            .modal-head { flex-direction: column; align-items: flex-start; gap: 10px; }
            .modal-head h3 { font-size: 16px; }
            .modal-close { align-self: flex-end; }
            .achievements-grid { grid-template-columns: 1fr; }
            .services-grid { grid-template-columns: 1fr; }
            .consulting-grid { grid-template-columns: 1fr; }
            .consulting-entry { padding: 14px; }
            .detail-gallery { flex-direction: column; gap: 18px; align-items: center; }
            .detail-gallery > * { max-width: 100%; }
            .detail-gallery img { width: 100%; height: auto; max-height: 200px; }
            .detail-gallery .gallery-demo-card { width: 100%; min-width: 0; }

            /* paginaciÃ³n */
            .auto-pager-nav { gap: 8px; }

            /* botones */
            .btn { padding: 10px 14px; font-size: 13px; }
            .btn-submit { font-size: 13px; }

            /* info row */
            .info-row { grid-template-columns: 1fr; }

            /* footer */
            .site-footer { padding: 16px 14px; font-size: 13px; }
        }

        /* â”€â”€ MUY PEQUEÃ‘O (â‰¤ 380px) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
        @media (max-width: 380px) {
            .hero-kpis { grid-template-columns: 1fr; }
            .brand { font-size: 18px; }
            .hero h1 { font-size: 17px; }
        }

        /* ── FADE-IN ANIMATIONS ──────────────────────────── */
        .fade-in-section {
            opacity: 0;
            transform: translateY(15px);
            transition: opacity 0.3s ease-out, transform 0.3s ease-out;
        }

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

        /* ── ABOUT SECTION ───────────────────────────────── */
        .about-section {
            display: grid;
            grid-template-columns: auto 1fr;
            gap: 28px;
            align-items: center;
            padding: 28px;
            border-radius: 16px;
            border: 1px solid var(--line);
            background: linear-gradient(130deg, #0b122b 0%, #14224a 55%, #0b122b 100%);
            box-shadow: var(--shadow);
        }

        .about-photo {
            width: 180px;
            height: 180px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid var(--primary);
            box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
        }

        .about-photo-placeholder {
            width: 180px;
            height: 180px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, var(--primary), var(--primary-2));
            color: #fff;
            font-size: 48px;
            font-weight: 700;
            border: 3px solid var(--primary);
            box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
        }

        .about-name-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            flex-wrap: wrap;
        }

        .about-top-stats {
            display: flex;
            gap: 8px;
            flex-shrink: 0;
        }

        .about-stat-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 16px;
            border-radius: 20px;
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.15));
            border: 1px solid rgba(99, 160, 255, 0.45);
            color: #bfdaff;
            font-size: 14px;
            font-weight: 600;
            white-space: nowrap;
            box-shadow: 0 0 16px rgba(59, 130, 246, 0.15);
            transition: all 0.2s ease;
            cursor: pointer;
        }

        .about-stat-badge:hover {
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(139, 92, 246, 0.25));
            border-color: rgba(99, 160, 255, 0.7);
            box-shadow: 0 0 24px rgba(59, 130, 246, 0.35);
            transform: translateY(-2px) scale(1.03);
        }

        .about-stat-badge:active {
            transform: translateY(0) scale(0.97);
        }

        body.light-mode .about-stat-badge {
            background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.07));
            border-color: rgba(37, 99, 235, 0.3);
            color: #1e40af;
            box-shadow: 0 0 12px rgba(37, 99, 235, 0.08);
        }

        body.light-mode .about-stat-badge:hover {
            background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(124, 58, 237, 0.14));
            border-color: rgba(37, 99, 235, 0.5);
            box-shadow: 0 0 20px rgba(37, 99, 235, 0.18);
        }

        .about-content h2 {
            margin: 0;
            font-size: clamp(24px, 3vw, 32px);
        }

        .about-content .about-role {
            color: var(--primary-2);
            font-size: 16px;
            font-weight: 600;
            margin: 0 0 12px;
        }

        .about-content .about-bio {
            color: var(--muted);
            font-size: 15px;
            line-height: 1.7;
            margin: 0 0 16px;
            max-width: 680px;
            text-align: justify;
        }

        .about-highlights {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-top: 16px;
        }

        .about-highlight-item {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 14px;
            border-radius: 20px;
            background: rgba(59, 130, 246, 0.12);
            border: 1px solid rgba(59, 130, 246, 0.3);
            color: #93c5fd;
            font-size: 13px;
            font-weight: 500;
        }

        .about-cv-btn {
            float: right;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-top: 16px;
            padding: 10px 18px;
            border-radius: 10px;
            background: linear-gradient(130deg, var(--primary), #2563eb);
            color: #fff;
            text-decoration: none;
            font-weight: 600;
            font-size: 13px;
            transition: all 0.2s ease;
        }

        .about-cv-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
        }

        body.light-mode .about-section {
            background: linear-gradient(140deg, #ffffff 0%, #f2f8ff 55%, #ffffff 100%);
            border-color: #bcd3fb;
        }

        body.light-mode .about-content .about-bio {
            color: #38506f;
        }

        body.light-mode .about-photo-placeholder {
            background: linear-gradient(135deg, #1d4ed8, #06b6d4);
        }

        @media (max-width: 640px) {
            .about-section {
                grid-template-columns: 1fr;
                text-align: center;
                padding: 20px 16px;
                justify-items: center;
            }
            .about-photo, .about-photo-placeholder {
                width: 120px;
                height: 120px;
                margin: 0 auto;
                font-size: 36px;
            }
            .about-content {
                display: flex;
                flex-direction: column;
                align-items: center;
            }
            .about-name-row {
                flex-direction: column;
                align-items: center;
                justify-content: center;
            }
            .about-content h2 {
                font-size: 22px;
            }
            .about-top-stats {
                flex-wrap: wrap;
                justify-content: center;
            }
            .about-stat-badge {
                font-size: 12px;
                padding: 5px 12px;
                white-space: normal;
            }
            .about-name-row {
                margin-bottom: 16px;
            }
            .about-content .about-role {
                font-size: 14px;
            }
            .about-content .about-bio {
                text-align: justify;
                width: 100%;
                font-size: 14px;
            }
            .about-highlights {
                justify-content: center;
            }
            .about-cv-btn {
                float: none;
                align-self: center;
            }
        }

        /* ── IMPACT METRICS ──────────────────────────────── */
        .impact-metrics {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 16px;
            margin: 24px 0;
        }

        .impact-metric-card {
            text-align: center;
            padding: 24px 16px;
            border-radius: 14px;
            border: 1px solid rgba(59, 130, 246, 0.35);
            background: linear-gradient(160deg, rgba(37, 99, 235, 0.18), rgba(17, 26, 58, 0.72));
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .impact-metric-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 28px rgba(59, 130, 246, 0.2);
        }

        .impact-metric-icon {
            font-size: 32px;
            margin-bottom: 12px;
        }

        .impact-metric-value {
            display: block;
            font-size: 36px;
            font-weight: 700;
            color: #fff;
            line-height: 1;
            margin-bottom: 8px;
        }

        .impact-metric-label {
            color: var(--muted);
            font-size: 13px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        body.light-mode .impact-metric-card {
            background: linear-gradient(180deg, #ffffff, #f3f8ff);
            border-color: #c2d5fb;
        }

        body.light-mode .impact-metric-value {
            color: #0b1b33;
        }

        /* ── SERVICES VISIBLE SECTION ────────────────────── */
        .services-section-visible {
            margin: 24px 0;
        }

        .services-section-visible .services-grid-inline {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 16px;
            margin-top: 16px;
        }

        .services-section-visible .service-card-inline {
            position: relative;
            display: flex;
            flex-direction: column;
            gap: 12px;
            padding: 20px;
            min-height: 200px;
            border-radius: 14px;
            border: 1px solid rgba(96, 165, 250, 0.28);
            background: linear-gradient(165deg, rgba(59, 130, 246, 0.16), rgba(15, 23, 42, 0.22));
            box-shadow: 0 12px 26px rgba(2, 6, 23, 0.2);
            transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
        }

        .services-section-visible .service-card-inline:hover {
            transform: translateY(-3px);
            border-color: rgba(125, 211, 252, 0.55);
            box-shadow: 0 16px 32px rgba(2, 6, 23, 0.28);
        }

        .services-section-visible .service-icon-inline {
            width: 48px;
            height: 48px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 12px;
            font-size: 24px;
            border: 1px solid rgba(125, 211, 252, 0.4);
            background: rgba(30, 64, 175, 0.28);
        }

        .services-section-visible .service-card-inline h4 {
            margin: 0;
            color: #f8fafc;
            font-size: 17px;
            line-height: 1.35;
        }

        .services-section-visible .service-card-inline p {
            margin: 0;
            color: #c9dbff;
            font-size: 14px;
            line-height: 1.6;
        }

        body.light-mode .services-section-visible .service-card-inline {
            background: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.98));
            border-color: rgba(96, 165, 250, 0.26);
        }

        body.light-mode .services-section-visible .service-card-inline h4 {
            color: #0b1b33;
        }

        body.light-mode .services-section-visible .service-card-inline p {
            color: #38506f;
        }

        /* ── CONSULTING VISIBLE SECTION ──────────────────── */
        .consulting-section-visible {
            margin: 24px 0;
        }

        .consulting-section-visible .consulting-grid-inline {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 16px;
            margin-top: 16px;
        }

        .consulting-section-visible .consulting-card-inline {
            display: flex;
            flex-direction: column;
            gap: 12px;
            padding: 20px;
            background: linear-gradient(165deg, rgba(59, 130, 246, 0.16), rgba(15, 23, 42, 0.22));
            border: 1px solid rgba(96, 165, 250, 0.28);
            border-radius: 16px;
            box-shadow: 0 12px 28px rgba(2, 6, 23, 0.18);
            transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
        }

        .consulting-section-visible .consulting-card-inline:hover {
            transform: translateY(-3px);
            border-color: rgba(125, 211, 252, 0.55);
            box-shadow: 0 18px 34px rgba(2, 6, 23, 0.24);
        }

        .consulting-section-visible .consulting-card-inline h4 {
            margin: 0;
            color: #f8fafc;
            font-size: 16px;
            line-height: 1.35;
        }

        .consulting-section-visible .consulting-meta-inline {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .consulting-section-visible .consulting-meta-tag {
            display: inline-flex;
            align-items: center;
            padding: 4px 10px;
            border-radius: 999px;
            border: 1px solid rgba(96, 165, 250, 0.42);
            background: rgba(59, 130, 246, 0.2);
            color: #93c5fd;
            font-size: 12px;
            font-weight: 600;
        }

        .consulting-section-visible .consulting-doc-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 14px;
            border-radius: 8px;
            border: 1px solid rgba(16, 185, 129, 0.45);
            background: rgba(59, 130, 246, 0.12);
            color: #bfdbfe;
            text-decoration: none;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            margin-top: auto;
        }

        .consulting-section-visible .consulting-doc-btn:hover {
            background: linear-gradient(130deg, #3b82f6, #2563eb);
            border-color: rgba(59, 130, 246, 0.65);
            color: #ffffff;
        }

        body.light-mode .consulting-section-visible .consulting-card-inline {
            background: linear-gradient(180deg, rgba(236, 253, 245, 0.98), rgba(255, 255, 255, 0.98));
            border-color: rgba(16, 185, 129, 0.3);
        }

        body.light-mode .consulting-section-visible .consulting-card-inline h4 {
            color: #0b1b33;
        }

        /* ── ENHANCED FOOTER ─────────────────────────────── */
        .site-footer-enhanced {
            border-top: 1px solid rgba(154, 168, 209, 0.2);
            color: var(--muted);
            padding: 40px 0 24px;
            background: rgba(5, 8, 22, 0.85);
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 32px;
            margin-bottom: 32px;
        }

        .footer-section h4 {
            color: #fff;
            font-size: 15px;
            font-weight: 600;
            margin: 0 0 16px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .footer-section p {
            margin: 0 0 8px;
            font-size: 14px;
            line-height: 1.6;
        }

        .footer-nav {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .footer-nav li {
            margin-bottom: 10px;
        }

        .footer-nav a {
            color: var(--muted);
            text-decoration: none;
            font-size: 14px;
            transition: color 0.2s ease;
        }

        .footer-nav a:hover {
            color: var(--primary-2);
        }

        .footer-social {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
        }

        .footer-social-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 10px;
            border: 1px solid rgba(154, 168, 209, 0.3);
            background: rgba(17, 26, 58, 0.5);
            color: var(--muted);
            text-decoration: none;
            font-size: 18px;
            transition: all 0.2s ease;
        }

        .footer-social-link:hover {
            border-color: var(--primary);
            background: rgba(59, 130, 246, 0.15);
            color: var(--primary-2);
            transform: translateY(-2px);
        }

        .footer-bottom {
            padding-top: 24px;
            border-top: 1px solid rgba(154, 168, 209, 0.15);
            text-align: center;
            font-size: 13px;
        }

        body.light-mode .site-footer-enhanced {
            background: rgba(255, 255, 255, 0.95);
            border-top-color: rgba(59, 130, 246, 0.25);
        }

        body.light-mode .footer-section h4 {
            color: #0b1b33;
        }

        body.light-mode .footer-social-link {
            background: #fff;
            border-color: #cbd5e1;
            color: #38506f;
        }

        body.light-mode .footer-social-link:hover {
            background: rgba(59, 130, 246, 0.1);
            border-color: var(--primary);
            color: var(--primary);
        }

        @media (max-width: 640px) {
            .footer-content {
                grid-template-columns: 1fr;
                gap: 24px;
            }
            .services-section-visible .services-grid-inline {
                grid-template-columns: 1fr;
            }
            .consulting-section-visible .consulting-grid-inline {
                grid-template-columns: 1fr;
            }
        }



        /* ── CONTACT MODAL ───────────────────────────────── */
        .contact-modal {
            max-width: 600px;
            max-height: 85vh;
            background:
                radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 30%),
                radial-gradient(circle at top left, rgba(14, 165, 233, 0.12), transparent 26%),
                linear-gradient(180deg, rgba(17, 26, 58, 0.98), rgba(10, 16, 34, 0.98));
        }

        .contact-modal .modal-head h3 {
            color: #f8fafc;
            font-size: clamp(21px, 2.6vw, 28px);
            letter-spacing: 0.2px;
        }

        .contact-modal .modal-head p {
            color: var(--muted);
            font-size: 13px;
        }

        .contact-modal .form-row label {
            color: #cfe1ff;
            font-weight: 500;
        }

        .contact-modal input,
        .contact-modal textarea {
            background: rgba(15, 23, 42, 0.6);
            border: 1px solid rgba(96, 165, 250, 0.3);
            color: #f8fafc;
        }

        .contact-modal input:focus,
        .contact-modal textarea:focus {
            border-color: rgba(96, 165, 250, 0.6);
            outline: none;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
        }

        .contact-modal input::placeholder,
        .contact-modal textarea::placeholder {
            color: #64748b;
        }

        body.light-mode .contact-modal {
            background:
                radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 30%),
                radial-gradient(circle at top left, rgba(14, 165, 233, 0.14), transparent 26%),
                linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
            border-color: rgba(96, 165, 250, 0.36);
            box-shadow: 0 24px 50px rgba(37, 99, 235, 0.16);
        }

        body.light-mode .contact-modal .modal-head h3 {
            color: #0b1b33;
        }

        body.light-mode .contact-modal .modal-head p {
            color: #38506f;
        }

        body.light-mode .contact-modal .form-row label {
            color: #173250;
        }

        body.light-mode .contact-modal input,
        body.light-mode .contact-modal textarea {
            background: #f8fbff;
            border-color: #bfd3fb;
            color: #0b1b33;
        }

        body.light-mode .contact-modal .modal-close {
            color: #173250;
        }









