
    /* =========================================================
       1. VARIABLES Y DESIGN TOKENS (WCAG AA VERIFICADOS)
       ========================================================= */
    :root {
      --bg-canvas: #090b10;
      --bg-surface: rgba(16, 20, 29, 0.84);
      --bg-surface-elevated: rgba(22, 28, 40, 0.94);
      --border-subtle: rgba(255, 255, 255, 0.12);
      --border-accent: rgba(0, 229, 255, 0.55);

      --text-main: #f1f5f9;   
      --text-muted: #94a3b8;  
      --text-dim: #8b9bb4;    

      --accent-cyan: #00e5ff; 
      --accent-mint: #10b981; 

      --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
      --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

      --container-max: 1100px;
      --radius-sm: 8px;
      --radius-md: 14px;
      --radius-lg: 20px;
      --radius-pill: 9999px;

      --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* =========================================================
       2. RESET, FOCO ACCESIBLE Y BASES
       ========================================================= */
    *, *::before, *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      scroll-behavior: smooth;
      color-scheme: dark;
    }

    body {
      background-color: var(--bg-canvas);
      color: var(--text-main);
      font-family: var(--font-body);
      font-size: 1rem;
      line-height: 1.65;
      overflow-x: hidden;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      position: relative;
    }

    body.menu-locked {
      overflow: hidden;
    }

    a:focus-visible,
    button:focus-visible {
      outline: 2px solid var(--accent-cyan);
      outline-offset: 3px;
    }

    .skip-link {
      position: absolute;
      top: -120px;
      left: 1rem;
      background: var(--accent-cyan);
      color: #090b10;
      padding: 0.75rem 1.25rem;
      font-weight: 700;
      border-radius: var(--radius-sm);
      z-index: 9999;
      text-decoration: none;
      transition: top 0.2s ease;
    }
    .skip-link:focus-visible {
      top: 1rem;
      outline: 2px solid #ffffff;
    }

    .bg-grid {
      position: fixed;
      inset: 0;
      background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
      background-size: 60px 60px;
      pointer-events: none;
      z-index: 0;
    }

    /* =========================================================
       3. ESTRUCTURA Y LAYOUT
       ========================================================= */
    .container {
      width: 100%;
      max-width: var(--container-max);
      margin-inline: auto;
      padding-inline: clamp(1rem, 4vw, 2rem);
      position: relative;
      z-index: 2;
    }

    section {
      padding-block: clamp(3.5rem, 8vw, 6rem);
      scroll-margin-top: 76px;
    }

    .section-title {
      font-family: var(--font-display);
      font-size: clamp(1.75rem, 4.5vw, 2.75rem);
      font-weight: 700;
      letter-spacing: -0.03em;
      margin-bottom: 0.75rem;
    }

    .section-intro {
      color: var(--text-muted);
      font-size: clamp(0.95rem, 1.8vw, 1.125rem);
      margin-bottom: clamp(2rem, 5vw, 3.5rem);
      max-width: 620px;
    }

    /* =========================================================
       4. CABECERA DINÁMICA (EXPANDIDA AL INICIO -> COMPACTA AL SCROLL)
       ========================================================= */
    .site-header {
      position: sticky;
      top: 0;
      z-index: 100;
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      background: rgba(9, 11, 16, 0.88);
      border-bottom: 1px solid var(--border-subtle);
      transition: background 0.3s ease, box-shadow 0.3s ease;
    }

    .site-header.is-scrolled {
      background: rgba(9, 11, 16, 0.95);
      box-shadow: 0 8px 30px -10px rgba(0, 0, 0, 0.65);
    }

    .site-header .container {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 88px;
      transition: height 0.35s var(--ease-out-expo);
    }

    .site-header.is-scrolled .container {
      height: 64px;
    }

    .site-logo {
      font-family: var(--font-display);
      font-weight: 800;
      font-size: clamp(1.35rem, 2.8vw, 1.85rem);
      letter-spacing: -0.03em;
      text-decoration: none;
      color: var(--text-main);
      display: inline-flex;
      align-items: center;
      gap: 0.65rem;
      flex-shrink: 0;
      position: relative;
      z-index: 120;
      border-radius: 4px;
      transition: font-size 0.35s var(--ease-out-expo), gap 0.35s var(--ease-out-expo), color 0.25s ease;
    }

    .site-header.is-scrolled .site-logo {
      font-size: 1.15rem;
      gap: 0.5rem;
    }

    .site-logo:hover {
      color: var(--accent-cyan);
    }

    .logo-dot {
      width: 10px;
      height: 10px;
      background: var(--accent-cyan);
      border-radius: 50%;
      box-shadow: 0 0 12px var(--accent-cyan);
      flex-shrink: 0;
      transition: width 0.35s var(--ease-out-expo), height 0.35s var(--ease-out-expo);
    }

    .site-header.is-scrolled .logo-dot {
      width: 8px;
      height: 8px;
    }

    .menu-toggle {
      display: none;
      background: transparent;
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-sm);
      width: 44px;
      height: 44px;
      padding: 0;
      cursor: pointer;
      position: relative;
      align-items: center;
      justify-content: center;
      color: var(--text-main);
      z-index: 120;
      transition: border-color 0.25s ease;
    }

    .menu-toggle:hover {
      border-color: var(--accent-cyan);
    }

    .burger-icon {
      position: relative;
      width: 20px;
      height: 14px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .burger-icon span {
      display: block;
      width: 100%;
      height: 2px;
      background-color: var(--text-main);
      border-radius: 2px;
      transition: transform 0.3s var(--ease-out-expo), opacity 0.2s ease;
      transform-origin: center;
    }

    .menu-toggle[aria-expanded="true"] .burger-icon span:nth-child(1) {
      transform: translateY(6px) rotate(45deg);
    }
    .menu-toggle[aria-expanded="true"] .burger-icon span:nth-child(2) {
      opacity: 0;
    }
    .menu-toggle[aria-expanded="true"] .burger-icon span:nth-child(3) {
      transform: translateY(-6px) rotate(-45deg);
    }

    .main-nav ul {
      display: flex;
      list-style: none;
      gap: 2rem;
    }

    .nav-link {
      position: relative;
      text-decoration: none;
      color: var(--text-muted);
      font-size: 0.95rem;
      font-weight: 500;
      transition: color 0.25s ease;
      padding: 0.45rem 0.15rem;
      border-radius: 4px;
    }

    .nav-link::after {
      content: '';
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 2px;
      background: var(--accent-cyan);
      box-shadow: 0 0 8px rgba(0, 229, 255, 0.7);
      border-radius: 2px;
      transform: scaleX(0);
      transform-origin: center;
      transition: transform 0.3s var(--ease-out-expo);
    }

    .nav-link:hover,
    .nav-link:focus-visible,
    .nav-link.is-active {
      color: var(--accent-cyan);
    }

    .nav-link.is-active {
      font-weight: 600;
    }

    .nav-link.is-active::after {
      transform: scaleX(1);
    }

    @media (max-width: 768px) {
      .menu-toggle {
        display: inline-flex;
      }

      .main-nav {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        background: rgba(9, 11, 16, 0.97);
        backdrop-filter: blur(28px);
        -webkit-backdrop-filter: blur(28px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 5rem 2rem 3rem;
        opacity: 0;
        visibility: hidden;
        transform: scale(0.96);
        transition: opacity 0.3s ease, transform 0.35s var(--ease-out-expo), visibility 0.3s ease;
        z-index: 110;
      }

      .main-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
      }

      .main-nav ul {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        width: 100%;
        max-width: 380px;
        text-align: center;
      }

      .nav-link {
        display: inline-block;
        font-family: var(--font-display);
        font-size: clamp(2rem, 8vw, 3rem);
        font-weight: 700;
        letter-spacing: -0.03em;
        color: var(--text-main);
        padding: 0.5rem 1.5rem;
        border-radius: var(--radius-md);
        transition: color 0.25s ease, transform 0.25s var(--ease-out-expo);
      }

      .nav-link::after {
        bottom: 0.25rem;
        left: 1.5rem;
        right: 1.5rem;
        height: 3px;
      }

      .nav-link:hover,
      .nav-link:focus-visible,
      .nav-link.is-active {
        color: var(--accent-cyan);
        transform: translateY(-2px);
      }
    }

    /* =========================================================
       5. HERO SECTION & GLOBO COMPACTO SUPERIOR
       ========================================================= */
    .hero {
      position: relative;
      overflow: hidden;
      padding-top: clamp(2.5rem, 6vw, 4.75rem);
      padding-bottom: clamp(3rem, 7vw, 5rem);
    }

    .hero-layout {
      display: grid;
      grid-template-columns: 1fr auto;
      align-items: center;
      gap: clamp(1.5rem, 4vw, 3rem);
    }

    .hero-text {
      max-width: 660px;
      position: relative;
      z-index: 3;
    }

    .hero-globe-wrapper {
      position: relative;
      width: clamp(260px, 32vw, 380px);
      height: clamp(260px, 32vw, 380px);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      pointer-events: none;
    }

    #globe-hero-canvas {
      width: 100%;
      height: 100%;
      display: block;
      filter: drop-shadow(0 0 25px rgba(0, 229, 255, 0.25));
    }

    .badge-status {
      display: inline-flex;
      align-items: center;
      gap: 0.55rem;
      padding: 0.35rem 0.85rem;
      background: rgba(16, 185, 129, 0.12);
      border: 1px solid rgba(16, 185, 129, 0.32);
      border-radius: var(--radius-pill);
      color: var(--accent-mint);
      font-size: clamp(0.75rem, 1.3vw, 0.85rem);
      font-weight: 600;
      margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
    }

    .status-pulse {
      width: 7px;
      height: 7px;
      flex-shrink: 0;
      background: var(--accent-mint);
      border-radius: 50%;
      animation: pulseGlow 2s infinite ease-in-out;
    }

    .hero-title {
      font-family: var(--font-display);
      font-size: clamp(2rem, 5vw, 3.85rem);
      font-weight: 700;
      line-height: 1.15;
      letter-spacing: -0.03em;
      margin-bottom: clamp(1rem, 2vw, 1.4rem);
      word-break: break-word;
    }

    .hero-title span {
      background: linear-gradient(135deg, #ffffff 30%, var(--accent-cyan) 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .hero-lead {
      font-size: clamp(1rem, 1.8vw, 1.2rem);
      color: var(--text-muted);
      line-height: 1.6;
      margin-bottom: clamp(1.75rem, 3.5vw, 2.25rem);
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 0.85rem;
      align-items: center;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      padding: 0.8rem 1.6rem;
      border-radius: var(--radius-pill);
      font-family: var(--font-body);
      font-weight: 600;
      text-decoration: none;
      cursor: pointer;
      transition: all 0.3s var(--ease-out-expo);
      font-size: clamp(0.85rem, 1.4vw, 0.95rem);
      white-space: nowrap;
      border: 1px solid transparent;
    }

    .btn-primary {
      background: var(--text-main);
      color: var(--bg-canvas);
    }
    .btn-primary:hover {
      background: var(--accent-cyan);
      box-shadow: 0 0 25px rgba(0, 229, 255, 0.35);
      transform: translateY(-2px);
    }

    .btn-secondary {
      background: var(--bg-surface-elevated);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      color: var(--text-main);
      border-color: var(--border-subtle);
    }
    .btn-secondary:hover {
      border-color: var(--border-accent);
      color: var(--accent-cyan);
      transform: translateY(-2px);
    }

    @media (max-width: 900px) {
      .hero-layout {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
      }
      .badge-status {
        margin-inline: auto;
      }
      .hero-actions {
        justify-content: center;
      }
      .hero-globe-wrapper {
        order: -1;
        width: 240px;
        height: 240px;
        margin-bottom: 0.5rem;
      }
    }

    @media (max-width: 480px) {
      .hero-actions {
        flex-direction: column;
        align-items: stretch;
      }
      .btn {
        width: 100%;
      }
    }

    /* =========================================================
       6. TRAYECTORIA: TIMELINE VERTICAL CON HITOS EN AZUL ELÉCTRICO
       ========================================================= */
    .timeline-list {
      list-style: none;
      position: relative;
      max-width: 780px;
      padding-left: clamp(2rem, 4.5vw, 3.25rem);
      display: flex;
      flex-direction: column;
      gap: clamp(2.25rem, 4.5vw, 3.25rem);
    }

    /* Eje vertical continuo luminoso */
    .timeline-list::before {
      content: '';
      position: absolute;
      left: 7px;
      top: 0.55rem;
      bottom: 0.75rem;
      width: 2px;
      background: linear-gradient(
        180deg,
        var(--accent-cyan) 0%,
        rgba(0, 229, 255, 0.45) 60%,
        rgba(0, 229, 255, 0.08) 100%
      );
      border-radius: 2px;
    }

    .timeline-item {
      position: relative;
    }

    /* Nodo / Hito circular en la línea */
    .timeline-item::before {
      content: '';
      position: absolute;
      left: calc(-1 * clamp(2rem, 4.5vw, 3.25rem));
      top: 0.4rem;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: var(--bg-canvas);
      border: 3px solid var(--accent-cyan);
      box-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
      transition: transform 0.3s var(--ease-out-expo), background 0.3s ease, box-shadow 0.3s ease;
      z-index: 2;
    }

    /* Hito actual destacado con núcleo relleno */
    .timeline-item--current::before {
      background: var(--accent-cyan);
      box-shadow: 0 0 18px rgba(0, 229, 255, 0.85);
    }

    .timeline-item:hover::before {
      transform: scale(1.25);
      background: var(--accent-cyan);
      box-shadow: 0 0 20px var(--accent-cyan);
    }

    .timeline-header {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.65rem 1rem;
      margin-bottom: 0.85rem;
    }

    .company-title {
      font-family: var(--font-display);
      font-size: clamp(1.25rem, 2.8vw, 1.55rem);
      font-weight: 700;
      letter-spacing: -0.02em;
      color: var(--text-main);
      transition: color 0.25s ease;
    }

    .timeline-item:hover .company-title {
      color: #ffffff;
    }

    .company-link {
      color: var(--text-main);
      text-decoration: none;
      border-radius: 3px;
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      transition: color 0.2s ease, text-shadow 0.2s ease;
    }
    .company-link:hover {
      color: var(--accent-cyan);
      text-shadow: 0 0 8px rgba(0, 229, 255, 0.45);
    }

    .company-ext-icon {
      font-size: 0.9em;
      color: var(--accent-cyan);
    }

    .time-badge {
      font-size: 0.82rem;
      font-weight: 600;
      font-variant-numeric: tabular-nums;
      color: var(--accent-cyan);
      background: rgba(0, 229, 255, 0.08);
      border: 1px solid rgba(0, 229, 255, 0.25);
      padding: 0.2rem 0.75rem;
      border-radius: var(--radius-pill);
      white-space: nowrap;
      transition: background 0.3s ease, border-color 0.3s ease;
    }

    .timeline-item:hover .time-badge {
      background: rgba(0, 229, 255, 0.16);
      border-color: rgba(0, 229, 255, 0.5);
    }

    .tech-stack {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
    }

    .tech-tag {
      font-size: clamp(0.75rem, 1.2vw, 0.82rem);
      font-weight: 600;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid var(--border-subtle);
      padding: 0.28rem 0.75rem;
      border-radius: var(--radius-sm);
      color: #e2e8f0;
      transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
    }

    .tech-tag:hover {
      border-color: rgba(0, 229, 255, 0.45);
      background: rgba(0, 229, 255, 0.1);
      color: var(--accent-cyan);
    }

    /* =========================================================
       7. TARJETAS INTERACTIVAS (ENLACES INTERESANTES): 3D TILT
       ========================================================= */
    .interactive-card {
      position: relative;
      background: var(--bg-surface);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-lg);
      overflow: hidden;
      transform-style: preserve-3d;
      transform: perspective(1000px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg)) translateY(var(--translate-y, 0px));
      transition: transform 0.18s cubic-bezier(0.2, 0, 0.38, 0.9), border-color 0.3s ease, box-shadow 0.3s ease;
      will-change: transform;
    }

    .interactive-card::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(
        550px circle at var(--spot-x, 50%) var(--spot-y, 50%),
        rgba(0, 229, 255, 0.14),
        transparent 65%
      );
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.35s ease;
      z-index: 1;
    }

    .interactive-card::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.6), transparent);
      opacity: 0;
      transition: opacity 0.35s ease;
      z-index: 2;
    }

    .interactive-card:hover {
      border-color: var(--border-accent);
      box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.6), 0 0 24px -6px rgba(0, 229, 255, 0.2);
    }

    .interactive-card:hover::before,
    .interactive-card:hover::after {
      opacity: 1;
    }

    .card-content-3d {
      position: relative;
      z-index: 3;
      transform: translateZ(24px);
    }

    .links-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
      gap: clamp(1rem, 2vw, 1.5rem);
    }

    .link-card {
      padding: clamp(1.25rem, 2.5vw, 1.75rem);
      text-decoration: none;
      color: inherit;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      min-height: 170px;
    }

    .link-card-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 0.6rem;
      gap: 0.5rem;
    }

    .link-title {
      font-family: var(--font-display);
      font-size: 1.1rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      color: var(--text-main);
      transition: color 0.25s ease;
    }

    .link-card:hover .link-title {
      color: var(--accent-cyan);
    }

    .link-icon {
      color: var(--accent-cyan);
      font-size: 1.2rem;
      line-height: 1;
      display: inline-block;
      transition: transform 0.3s var(--ease-out-expo), filter 0.3s ease;
    }

    .link-card:hover .link-icon {
      transform: translate(4px, -4px) scale(1.15);
      filter: drop-shadow(0 0 6px var(--accent-cyan));
    }

    .link-summary {
      color: var(--text-muted);
      font-size: 0.9rem;
      line-height: 1.5;
    }

    /* =========================================================
       8. CONTACTO (LINKEDIN + CORREO ELECTRÓNICO) & FOOTER
       ========================================================= */
    .contact-box {
      background: linear-gradient(180deg, rgba(16, 20, 29, 0.9) 0%, rgba(9, 11, 16, 0.98) 100%);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-lg);
      padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem);
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .contact-box h2 {
      font-family: var(--font-display);
      font-size: clamp(1.75rem, 4vw, 3rem);
      font-weight: 700;
      letter-spacing: -0.03em;
      margin-bottom: 0.85rem;
    }

    .contact-box p {
      color: var(--text-muted);
      max-width: 500px;
      margin-bottom: 2rem;
      font-size: clamp(0.95rem, 2vw, 1.1rem);
    }

    .contact-actions {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.85rem;
      width: 100%;
    }

    .copy-feedback {
      margin-top: 1rem;
      font-size: 0.875rem;
      font-weight: 600;
      color: var(--accent-mint);
      min-height: 1.4em;
      opacity: 0;
      transition: opacity 0.25s ease;
    }

    .copy-feedback.is-shown {
      opacity: 1;
    }

    @media (max-width: 520px) {
      .contact-actions {
        flex-direction: column;
        align-items: stretch;
      }
      .contact-actions .btn {
        width: 100%;
      }
    }

    .site-footer {
      margin-top: auto;
      border-top: 1px solid var(--border-subtle);
      padding-block: 1.75rem;
      color: var(--text-dim);
      font-size: clamp(0.75rem, 1.5vw, 0.875rem);
      text-align: center;
      position: relative;
      z-index: 2;
    }

    /* =========================================================
       9. ANIMACIONES CSS Y ACCESIBILIDAD
       ========================================================= */
    @keyframes pulseGlow {
      0%, 100% { transform: scale(1); opacity: 1; }
      50% { transform: scale(1.3); opacity: 0.5; }
    }

    .reveal-item {
      opacity: 0;
      transform: translateY(24px);
      transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
      will-change: opacity, transform;
    }

    .reveal-item.is-visible {
      opacity: 1;
      transform: translateY(0);
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
      }
      .reveal-item {
        opacity: 1 !important;
        transform: none !important;
      }
      .main-nav {
        transition: none !important;
      }
      .hero-globe-wrapper {
        display: none;
      }
      .interactive-card {
        transform: none !important;
      }
      .interactive-card::before,
      .interactive-card::after {
        display: none !important;
      }
    }
