        :root {
            --dark: #0d0f14;
            --dark2: #161a23;
            --card: #1c2130;
            --accent: #4ade80;
            --accent2: #22c55e;
            --gold: #f59e0b;
            --text: #e8eaf0;
            --muted: #8892a4;
            --border: rgba(255,255,255,0.07);
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }

        html { scroll-behavior: smooth; }

        body {
            font-family: 'DM Sans', sans-serif;
            background-color: var(--dark);
            color: var(--text);
            overflow-x: hidden;
        }

        /* ── NOISE OVERLAY ── */
        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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
            pointer-events: none;
            z-index: 0;
            opacity: 0.4;
        }

        /* ── HERO ── */
        .hero {
            position: relative;
            min-height: 100vh;
            display: grid;
            grid-template-columns: 1fr 1fr;
            align-items: center;
            padding: 0 8vw;
            gap: 4rem;
            overflow: hidden;
        }

        .hero::after {
            content: '';
            position: absolute;
            width: 600px;
            height: 600px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(74,222,128,0.12) 0%, transparent 70%);
            top: -100px;
            right: -100px;
            pointer-events: none;
        }

        .hero-left {
            position: relative;
            z-index: 1;
            animation: fadeUp 0.8s ease both;
        }

        .hero-tag {
            display: inline-block;
            font-size: 0.72rem;
            font-weight: 600;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            color: var(--accent);
            border: 1px solid rgba(74,222,128,0.3);
            padding: 6px 14px;
            border-radius: 100px;
            margin-bottom: 2rem;
        }

        .hero h1 {
            font-family: 'Playfair Display', serif;
            font-size: clamp(2.8rem, 5vw, 4.5rem);
            font-weight: 900;
            line-height: 1.05;
            letter-spacing: -0.02em;
            margin-bottom: 1.5rem;
        }

        .hero h1 span {
            color: var(--accent);
        }

        .hero-meta {
            display: flex;
            flex-direction: column;
            gap: 0.6rem;
            margin-bottom: 2.5rem;
        }

        .hero-meta-item {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            font-size: 0.95rem;
            color: var(--muted);
        }

        .hero-meta-item strong {
            color: var(--text);
            font-weight: 500;
        }

        .hero-meta-item a {
            color: var(--muted);
            text-decoration: none;
            transition: color 0.2s;
        }

        .hero-meta-item a:hover { color: var(--accent); }

        .dot {
            width: 6px; height: 6px;
            background: var(--accent);
            border-radius: 50%;
            flex-shrink: 0;
        }

        .hero-actions {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .btn-primary {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: var(--accent);
            color: #0d0f14;
            font-weight: 700;
            font-size: 0.9rem;
            padding: 14px 28px;
            border-radius: 100px;
            text-decoration: none;
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 30px rgba(74,222,128,0.35);
        }

        .btn-ghost {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: transparent;
            color: var(--text);
            font-weight: 500;
            font-size: 0.9rem;
            padding: 13px 28px;
            border-radius: 100px;
            text-decoration: none;
            border: 1px solid var(--border);
            transition: border-color 0.2s, background 0.2s;
        }

        .btn-ghost:hover {
            border-color: rgba(255,255,255,0.2);
            background: rgba(255,255,255,0.04);
        }

        /* ── HERO RIGHT (photo + projects) ── */
        .hero-right {
            position: relative;
            z-index: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2rem;
            animation: fadeUp 0.8s 0.15s ease both;
        }

        .photo-frame {
            width: 220px;
            height: 220px;
            border-radius: 24px;
            overflow: hidden;
            border: 2px solid rgba(74,222,128,0.25);
            box-shadow: 0 0 60px rgba(74,222,128,0.1);
        }

        .photo-frame img {
            width: 100%; height: 100%;
            object-fit: cover;
        }

        .photo-placeholder {
            width: 100%; height: 100%;
            background: var(--card);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 4rem;
            color: var(--muted);
        }

        .projects-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.75rem;
            width: 100%;
        }

        .proj-btn {
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: 14px;
            padding: 16px;
            text-align: center;
            cursor: pointer;
            font-family: 'DM Sans', sans-serif;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text);
            transition: all 0.2s ease;
            letter-spacing: 0.01em;
        }

        .proj-btn:hover {
            background: rgba(74,222,128,0.1);
            border-color: rgba(74,222,128,0.4);
            color: var(--accent);
            transform: translateY(-2px);
        }

        .proj-icon { font-size: 1.4rem; display: block; margin-bottom: 6px; }

        /* ── DIVIDER ── */
        .section-divider {
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--border), transparent);
            margin: 0 8vw;
        }

        /* ── SECTIONS ── */
        section {
            padding: 6rem 8vw;
            position: relative;
        }

        .section-label {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 3rem;
        }

        .section-label::after {
            content: '';
            flex: 1;
            height: 1px;
            background: var(--border);
        }

        .section-label h2 {
            font-family: 'Playfair Display', serif;
            font-size: 1.8rem;
            font-weight: 700;
            white-space: nowrap;
        }

        .section-num {
            font-size: 0.75rem;
            font-weight: 700;
            color: var(--accent);
            letter-spacing: 0.15em;
        }

        /* ── EDUCATION ── */
        .edu-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1.5rem;
        }

        .edu-card {
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: 20px;
            padding: 2rem;
            transition: border-color 0.2s, transform 0.2s;
        }

        .edu-card:hover {
            border-color: rgba(74,222,128,0.3);
            transform: translateY(-3px);
        }

        .edu-badge {
            display: inline-block;
            font-size: 0.7rem;
            font-weight: 700;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            padding: 4px 12px;
            border-radius: 100px;
            margin-bottom: 1rem;
        }

        .badge-grad { background: rgba(74,222,128,0.15); color: var(--accent); }
        .badge-pos { background: rgba(245,158,11,0.15); color: var(--gold); }

        .edu-card h3 {
            font-size: 1rem;
            font-weight: 700;
            margin-bottom: 0.4rem;
            line-height: 1.3;
        }

        .edu-card p {
            font-size: 0.88rem;
            color: var(--muted);
        }

        /* ── EXPERIENCE ── */
        .timeline {
            position: relative;
            padding-left: 2rem;
        }

        .timeline::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0; bottom: 0;
            width: 2px;
            background: linear-gradient(to bottom, var(--accent), transparent);
        }

        .timeline-item {
            position: relative;
            margin-bottom: 3rem;
            padding-left: 2rem;
        }

        .timeline-dot {
            position: absolute;
            left: -2.5rem;
            top: 0.5rem;
            width: 12px; height: 12px;
            border-radius: 50%;
            background: var(--accent);
            box-shadow: 0 0 12px rgba(74,222,128,0.5);
        }

        .company-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 1rem;
            margin-bottom: 1rem;
        }

        .company-name {
            font-family: 'Playfair Display', serif;
            font-size: 1.2rem;
            font-weight: 700;
        }

        .company-name a {
            color: var(--text);
            text-decoration: none;
            transition: color 0.2s;
        }

        .company-name a:hover { color: var(--accent); }

        .role-entry {
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 1.25rem 1.5rem;
            margin-bottom: 0.75rem;
        }

        .role-title {
            font-size: 0.92rem;
            font-weight: 700;
            color: var(--accent);
            margin-bottom: 0.25rem;
        }

        .role-period {
            font-size: 0.8rem;
            color: var(--muted);
            margin-bottom: 0.75rem;
        }

        .role-desc {
            font-size: 0.88rem;
            color: var(--muted);
            line-height: 1.7;
        }

        /* ── COURSES ── */
        .courses-list {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .course-item {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: 14px;
            padding: 1.25rem 1.5rem;
        }

        .course-year {
            font-size: 0.78rem;
            font-weight: 700;
            color: var(--accent);
            letter-spacing: 0.08em;
            white-space: nowrap;
            min-width: 60px;
        }

        .course-name {
            font-size: 0.95rem;
            font-weight: 600;
        }

        .course-place {
            font-size: 0.82rem;
            color: var(--muted);
        }

        /* ── CONTACT ── */
        .contact-section {
            background: var(--dark2);
            border-top: 1px solid var(--border);
            border-bottom: 1px solid var(--border);
        }

        .contact-inner {
            max-width: 640px;
            margin: 0 auto;
            text-align: center;
        }

        .contact-inner h2 {
            font-family: 'Playfair Display', serif;
            font-size: 2.5rem;
            margin-bottom: 0.75rem;
        }

        .contact-inner p {
            color: var(--muted);
            margin-bottom: 2.5rem;
        }

        .contact-form {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            text-align: left;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
        }

        .contact-form input,
        .contact-form textarea {
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 14px 18px;
            font-family: 'DM Sans', sans-serif;
            font-size: 0.92rem;
            color: var(--text);
            width: 100%;
            transition: border-color 0.2s;
            outline: none;
        }

        .contact-form input::placeholder,
        .contact-form textarea::placeholder { color: var(--muted); }

        .contact-form input:focus,
        .contact-form textarea:focus {
            border-color: rgba(74,222,128,0.5);
        }

        .contact-form textarea {
            resize: vertical;
            min-height: 140px;
        }

        .btn-submit {
            background: var(--accent);
            color: #0d0f14;
            font-family: 'DM Sans', sans-serif;
            font-weight: 700;
            font-size: 0.95rem;
            padding: 16px 32px;
            border: none;
            border-radius: 100px;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .btn-submit:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 30px rgba(74,222,128,0.35);
        }

        /* ── FOOTER ── */
        footer {
            padding: 3rem 8vw;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 2rem;
            flex-wrap: wrap;
        }

        .footer-links {
            display: flex;
            gap: 1.5rem;
        }

        .footer-link {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.4rem;
            text-decoration: none;
            color: var(--muted);
            font-size: 0.82rem;
            transition: color 0.2s;
        }

        .footer-link:hover { color: var(--accent); }

        .footer-link svg { width: 28px; height: 28px; }

        .footer-copy {
            font-size: 0.82rem;
            color: var(--muted);
        }

        /* ── POPUPS ── */
        .popup {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 9999;
            background: rgba(0,0,0,0.7);
            backdrop-filter: blur(8px);
            align-items: center;
            justify-content: center;
        }

        .popup.active { display: flex; }

        .popup-box {
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: 24px;
            padding: 2.5rem;
            width: 90%;
            max-width: 420px;
            text-align: center;
            animation: popIn 0.3s ease;
        }

        .popup-box h2 {
            font-family: 'Playfair Display', serif;
            font-size: 1.5rem;
            margin-bottom: 1.5rem;
        }

        .popup-input-row {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 1.25rem;
        }

        .popup-input-row input {
            flex: 1;
            background: var(--dark);
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 12px 16px;
            font-family: 'DM Sans', sans-serif;
            font-size: 0.95rem;
            color: var(--text);
            outline: none;
        }

        .popup-input-row input:focus { border-color: rgba(74,222,128,0.5); }

        .popup-search-btn {
            background: var(--accent);
            border: none;
            border-radius: 10px;
            width: 46px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .popup-search-btn svg { width: 22px; color: #0d0f14; }

        .popup-result {
            background: var(--dark);
            border-radius: 12px;
            padding: 1rem;
            text-align: left;
            font-size: 0.88rem;
            line-height: 1.8;
            min-height: 60px;
            color: var(--muted);
            margin-bottom: 1.25rem;
            white-space: pre-line;
        }

        .popup-close {
            background: transparent;
            border: 1px solid var(--border);
            color: var(--text);
            font-family: 'DM Sans', sans-serif;
            font-size: 0.88rem;
            padding: 10px 24px;
            border-radius: 100px;
            cursor: pointer;
            transition: border-color 0.2s;
        }

        .popup-close:hover { border-color: var(--accent); color: var(--accent); }

        /* ── CALCULATOR ── */
        .calc-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 0.5rem;
            margin-bottom: 1rem;
        }

        .calc-display {
            background: var(--dark);
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 12px 16px;
            text-align: right;
            font-size: 1.5rem;
            color: var(--text);
            margin-bottom: 1rem;
            min-height: 54px;
            word-break: break-all;
        }

        .calc-btn {
            background: var(--dark2);
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 14px;
            font-family: 'DM Sans', sans-serif;
            font-size: 1rem;
            font-weight: 600;
            color: var(--text);
            cursor: pointer;
            transition: background 0.15s;
        }

        .calc-btn:hover { background: rgba(74,222,128,0.15); color: var(--accent); }
        .calc-btn.op { color: var(--accent); }
        .calc-btn.eq { background: var(--accent); color: #0d0f14; grid-row: span 2; }
        .calc-btn.eq:hover { background: var(--accent2); }
        .calc-btn.zero { grid-column: span 2; }

        /* ── STUDENTS ── */
        #usuarios {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 9999;
            background: rgba(0,0,0,0.7);
            backdrop-filter: blur(8px);
            align-items: center;
            justify-content: center;
        }

        #usuarios.active { display: flex; }

        /* ── ANIMATIONS ── */
        @keyframes fadeUp {
            from { opacity: 0; transform: translateY(24px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes popIn {
            from { opacity: 0; transform: scale(0.95); }
            to { opacity: 1; transform: scale(1); }
        }

        /* ── RESPONSIVE ── */
        @media (max-width: 768px) {
            .hero {
                grid-template-columns: 1fr;
                padding: 6rem 6vw 4rem;
                gap: 3rem;
            }

            .hero-right { align-items: flex-start; }

            section { padding: 4rem 6vw; }

            footer { flex-direction: column; align-items: flex-start; }

            .form-row { grid-template-columns: 1fr; }

            .projects-grid { grid-template-columns: repeat(2, 1fr); }
        }
