        :root {
            --red: #e63030;
            --red-dim: rgba(230, 48, 48, 0.12);
            --red-glow: rgba(230, 48, 48, 0.35);
            --bg: #060608;
            --surface: #0e0e12;
            --surface2: #14141a;
            --border: rgba(255,255,255,0.07);
            --text: #e8e8ee;
            --muted: #7a7a8c;
            --font-display: 'Syne', sans-serif;
            --font-mono: 'Space Mono', monospace;
        }

        *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
        html { scroll-behavior: smooth; }

        body {
            font-family: var(--font-display);
            background: var(--bg);
            color: var(--text);
            overflow-x: hidden;
        }

        body::before {
            content: '';
            position: fixed;
            inset: 0;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
            opacity: 0.025;
            pointer-events: none;
            z-index: 9999;
        }

        /* NAV */
        nav {
            position: fixed;
            top: 0; left: 0; right: 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 22px 8%;
            background: rgba(6,6,8,0.75);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border);
            z-index: 1000;
        }

        .logo {
            font-family: var(--font-mono);
            font-size: 1.1rem;
            color: var(--red);
            letter-spacing: 2px;
            font-weight: 700;
        }

        nav ul { display: flex; list-style: none; gap: 36px; }

        nav a {
            color: var(--muted);
            text-decoration: none;
            font-size: 0.85rem;
            font-family: var(--font-mono);
            letter-spacing: 1px;
            text-transform: uppercase;
            transition: color 0.25s;
            position: relative;
        }

        nav a::after {
            content: '';
            position: absolute;
            bottom: -4px; left: 0;
            width: 0; height: 1px;
            background: var(--red);
            transition: width 0.3s;
        }

        nav a:hover { color: var(--text); }
        nav a:hover::after { width: 100%; }

        /* HERO */
        .hero {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: flex-start;
            padding: 0 8%;
            position: relative;
            overflow: hidden;
        }

        .hero-bg {
            position: absolute;
            inset: 0;
            background:
                radial-gradient(ellipse 60% 60% at 80% 50%, rgba(230,48,48,0.07) 0%, transparent 70%),
                radial-gradient(ellipse 40% 40% at 10% 80%, rgba(230,48,48,0.04) 0%, transparent 60%);
        }

        .hero-bg::before {
            content: '';
            position: absolute;
            inset: 0;
            background-image:
                linear-gradient(var(--border) 1px, transparent 1px),
                linear-gradient(90deg, var(--border) 1px, transparent 1px);
            background-size: 60px 60px;
            mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.4) 0%, transparent 75%);
        }

        .hero-label {
            font-family: var(--font-mono);
            font-size: 0.75rem;
            color: var(--red);
            letter-spacing: 3px;
            text-transform: uppercase;
            margin-bottom: 24px;
            opacity: 0;
            animation: fadeUp 0.6s 0.2s forwards;
        }

        .hero h1 {
            font-size: clamp(3rem, 8vw, 6.5rem);
            font-weight: 800;
            line-height: 1;
            letter-spacing: -2px;
            margin-bottom: 20px;
            opacity: 0;
            animation: fadeUp 0.7s 0.4s forwards;
        }

        .hero h1 span { color: var(--red); }

        .hero-subtitle {
            font-family: var(--font-mono);
            font-size: clamp(0.9rem, 2vw, 1.1rem);
            color: var(--muted);
            margin-bottom: 16px;
            min-height: 1.6em;
            opacity: 0;
            animation: fadeUp 0.7s 0.6s forwards;
        }

        .typing-cursor::after {
            content: '|';
            color: var(--red);
            animation: blink 0.8s infinite;
        }

        .hero-desc {
            font-size: 1.05rem;
            color: var(--muted);
            max-width: 520px;
            line-height: 1.7;
            margin-bottom: 40px;
            opacity: 0;
            animation: fadeUp 0.7s 0.8s forwards;
        }

        .hero-actions {
            display: flex;
            gap: 16px;
            flex-wrap: wrap;
            opacity: 0;
            animation: fadeUp 0.7s 1s forwards;
        }

        .btn {
            display: inline-block;
            padding: 14px 32px;
            font-family: var(--font-mono);
            font-size: 0.85rem;
            letter-spacing: 1px;
            text-transform: uppercase;
            text-decoration: none;
            border: none;
            cursor: pointer;
            transition: all 0.25s;
        }

        .btn-primary { background: var(--red); color: white; }
        .btn-primary:hover {
            background: #c42020;
            transform: translateY(-2px);
            box-shadow: 0 8px 24px var(--red-glow);
        }

        .btn-outline {
            background: transparent;
            color: var(--text);
            border: 1px solid var(--border);
        }
        .btn-outline:hover {
            border-color: var(--red);
            color: var(--red);
            transform: translateY(-2px);
        }

        .social-icons {
            display: flex;
            gap: 14px;
            margin-top: 60px;
            opacity: 0;
            animation: fadeUp 0.7s 1.2s forwards;
        }

        .social-icons a {
            color: var(--muted);
            font-size: 1rem;
            transition: all 0.25s;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px; height: 40px;
            border: 1px solid var(--border);
        }

        .social-icons a:hover {
            color: var(--red);
            border-color: var(--red);
            transform: translateY(-3px);
        }

        /* SECTIONS */
        .section {
            padding: 110px 8%;
            border-top: 1px solid var(--border);
        }

        .section-label {
            font-family: var(--font-mono);
            font-size: 0.72rem;
            letter-spacing: 3px;
            text-transform: uppercase;
            color: var(--red);
            margin-bottom: 12px;
        }

        .section h2 {
            font-size: clamp(1.8rem, 4vw, 2.8rem);
            font-weight: 800;
            letter-spacing: -1px;
            margin-bottom: 48px;
        }

        /* ABOUT */
        .about-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 80px;
            align-items: start;
        }

        .about-text p {
            color: var(--muted);
            line-height: 1.8;
            font-size: 1rem;
            margin-bottom: 20px;
        }

        .about-text strong { color: var(--text); }

        .about-stats { display: flex; flex-direction: column; gap: 16px; }

        .stat-item {
            background: var(--surface);
            border: 1px solid var(--border);
            padding: 20px 24px;
            display: flex;
            align-items: center;
            gap: 18px;
            transition: border-color 0.3s;
        }

        .stat-item:hover { border-color: var(--red); }

        .stat-icon {
            width: 40px; height: 40px;
            background: var(--red-dim);
            color: var(--red);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.9rem;
            flex-shrink: 0;
        }

        .stat-label {
            font-family: var(--font-mono);
            font-size: 0.68rem;
            color: var(--muted);
            letter-spacing: 1px;
            text-transform: uppercase;
            margin-bottom: 4px;
        }

        .stat-value { font-size: 0.9rem; font-weight: 600; }

        /* SKILLS */
        .skills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 14px;
        }

        .skill-card {
            background: var(--surface);
            border: 1px solid var(--border);
            padding: 24px 16px;
            text-align: center;
            transition: all 0.3s;
            cursor: default;
            position: relative;
            overflow: hidden;
        }

        .skill-card::before {
            content: '';
            position: absolute;
            bottom: 0; left: 0; right: 0;
            height: 2px;
            background: var(--red);
            transform: scaleX(0);
            transition: transform 0.3s;
        }

        .skill-card:hover {
            transform: translateY(-6px);
            border-color: rgba(230,48,48,0.3);
        }

        .skill-card:hover::before { transform: scaleX(1); }

        .skill-icon { font-size: 1.7rem; margin-bottom: 10px; display: block; }

        .skill-name {
            font-family: var(--font-mono);
            font-size: 0.72rem;
            color: var(--muted);
            letter-spacing: 1px;
        }

        /* PROJECTS */
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
        }

        .project {
            background: var(--surface);
            border: 1px solid var(--border);
            padding: 28px;
            transition: all 0.3s;
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .project::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 2px;
            background: linear-gradient(90deg, var(--red), transparent);
        }

        .project:hover {
            transform: translateY(-6px);
            border-color: rgba(230,48,48,0.3);
            box-shadow: 0 20px 40px rgba(0,0,0,0.4);
        }

        .project-tag {
            display: inline-block;
            font-family: var(--font-mono);
            font-size: 0.62rem;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: var(--red);
            background: var(--red-dim);
            padding: 4px 8px;
            margin-bottom: 14px;
            border: 1px solid rgba(230,48,48,0.2);
            width: fit-content;
        }

        .project h3 {
            font-size: 1.15rem;
            font-weight: 700;
            margin-bottom: 10px;
        }

        .project p {
            color: var(--muted);
            font-size: 0.875rem;
            line-height: 1.7;
            flex: 1;
            margin-bottom: 20px;
        }

        .project-tech {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 18px;
        }

        .project-tech span {
            font-family: var(--font-mono);
            font-size: 0.62rem;
            color: var(--muted);
            border: 1px solid var(--border);
            padding: 2px 8px;
        }

        .project-link {
            font-family: var(--font-mono);
            font-size: 0.72rem;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: var(--red);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: gap 0.2s;
            width: fit-content;
        }

        .project-link:hover { gap: 14px; }

        /* WHY */
        .why-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 80px;
            align-items: center;
        }

        .why-list { list-style: none; }

        .why-item {
            display: flex;
            align-items: flex-start;
            gap: 16px;
            padding: 18px 0;
            border-bottom: 1px solid var(--border);
            transition: padding-left 0.3s;
        }

        .why-item:first-child { border-top: 1px solid var(--border); }
        .why-item:hover { padding-left: 8px; }

        .why-icon { color: var(--red); font-size: 0.75rem; margin-top: 4px; flex-shrink: 0; }

        .why-text strong { display: block; font-size: 0.95rem; margin-bottom: 4px; }

        .why-text span {
            font-size: 0.8rem;
            color: var(--muted);
            font-family: var(--font-mono);
            line-height: 1.5;
        }

        /* PROFILE CARD */
        .profile-card {
            background: var(--surface);
            border: 1px solid var(--border);
            padding: 36px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .profile-card::after {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(ellipse at top, var(--red-dim) 0%, transparent 60%);
            pointer-events: none;
        }

        .profile-avatar {
            width: 72px; height: 72px;
            border: 2px solid var(--red);
            border-radius: 50%;
            margin: 0 auto 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: var(--font-mono);
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--red);
            background: var(--red-dim);
        }

        .profile-card h3 { font-size: 1.2rem; margin-bottom: 6px; }

        .profile-role {
            font-family: var(--font-mono);
            font-size: 0.7rem;
            color: var(--muted);
            letter-spacing: 1px;
            text-transform: uppercase;
            margin-bottom: 24px;
        }

        .profile-details { text-align: left; margin-bottom: 24px; }

        .profile-detail {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 0;
            border-bottom: 1px solid var(--border);
            font-size: 0.85rem;
        }

        .profile-detail:last-child { border-bottom: none; }

        .profile-detail span:first-child {
            color: var(--muted);
            font-family: var(--font-mono);
            font-size: 0.68rem;
            letter-spacing: 1px;
            text-transform: uppercase;
        }

        /* CONTACT */
        #contacto { background: var(--surface); }

        .contact-wrapper {
            display: grid;
            grid-template-columns: 1fr 1.4fr;
            gap: 80px;
            align-items: start;
        }

        .contact-info p {
            color: var(--muted);
            font-size: 0.95rem;
            line-height: 1.7;
            margin-bottom: 32px;
        }

        .contact-links { display: flex; flex-direction: column; gap: 14px; }

        .contact-link {
            display: flex;
            align-items: center;
            gap: 14px;
            color: var(--muted);
            text-decoration: none;
            font-size: 0.82rem;
            font-family: var(--font-mono);
            transition: color 0.25s;
        }

        .contact-link i {
            width: 36px; height: 36px;
            background: var(--red-dim);
            color: var(--red);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.85rem;
            flex-shrink: 0;
        }

        .contact-link:hover { color: var(--text); }

        form { display: flex; flex-direction: column; gap: 14px; }

        .form-group label {
            display: block;
            font-family: var(--font-mono);
            font-size: 0.66rem;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: var(--muted);
            margin-bottom: 7px;
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 13px 15px;
            background: var(--bg);
            border: 1px solid var(--border);
            color: var(--text);
            font-family: var(--font-display);
            font-size: 0.9rem;
            outline: none;
            transition: border-color 0.25s;
        }

        .form-group input:focus,
        .form-group textarea:focus { border-color: var(--red); }

        textarea { resize: vertical; min-height: 130px; }

        #formMessage {
            font-family: var(--font-mono);
            font-size: 0.78rem;
            margin-top: 6px;
        }

        /* FOOTER */
        footer {
            padding: 28px 8%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-top: 1px solid var(--border);
        }

        footer p {
            font-family: var(--font-mono);
            font-size: 0.72rem;
            color: var(--muted);
        }

        footer a {
            color: var(--muted);
            text-decoration: none;
            font-family: var(--font-mono);
            font-size: 0.72rem;
            transition: color 0.25s;
        }

        footer a:hover { color: var(--red); }

        /* FADE */
        .fade {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.7s ease, transform 0.7s ease;
        }

        .fade.show { opacity: 1; transform: translateY(0); }

        @keyframes fadeUp {
            from { opacity: 0; transform: translateY(20px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        @keyframes blink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0; }
        }

        /* RESPONSIVE */
        @media (max-width: 900px) {
            .about-grid, .why-container, .contact-wrapper { grid-template-columns: 1fr; gap: 48px; }
            nav ul { gap: 20px; }
        }

        @media (max-width: 600px) {
            nav ul { display: none; }
            .section { padding: 80px 6%; }
        }