    /* ── LIGHT MODE ── */
body.light {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface2: #eaecf0;
  --border: #d1d5db;
  --accent: #00a36e;
  --accent2: #c0430e;
  --text: #111827;
  --muted: #6b7280;
}
body.light .card-desc { color: #374151; }
body.light footer { background: #e5e7eb; color: #6b7280; }

.card-link {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.card-link:hover { opacity: 0.7; }

/* ── BOTÓN TOGGLE ── */
#theme-toggle {
  position: fixed;
  top: 1.2rem;
  right: 1.4rem;
  z-index: 1000;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.45rem 1rem;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
#theme-toggle:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 16px rgba(0,229,160,0.2);
}
#theme-toggle .toggle-icon { font-size: 1rem; transition: transform 0.4s; }
#theme-toggle:hover .toggle-icon { transform: rotate(20deg); }

/* Transición suave global */
*, *::before, *::after {
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.2s ease;
}

    :root {
      --bg: #0d0f14;
      --surface: #13161d;
      --surface2: #1a1e28;
      --border: #252a38;
      --accent: #00e5a0;
      --accent2: #e05a2b;
      --text: #e8eaf0;
      --muted: #6b7280;
      --heading-font: 'Playfair Display', Georgia, serif;
      --mono: 'IBM Plex Mono', monospace;
      --body-font: 'IBM Plex Sans', sans-serif;
    }

    * { box-sizing: border-box; }

    body {
      background-color: var(--bg);
      color: var(--text);
      font-family: var(--body-font);
      font-weight: 300;
      line-height: 1.75;
      min-height: 100vh;
    }

    /* ── HEADER ─────────────────────────────────────────── */
    .cv-header {
      border-bottom: 1px solid var(--border);
      padding: 4rem 0 3rem;
      position: relative;
      overflow: hidden;
    }
    .cv-header::before {
      content: '';
      position: absolute;
      top: -80px; right: -120px;
      width: 480px; height: 480px;
      background: radial-gradient(circle, rgba(0,229,160,0.08) 0%, transparent 70%);
      pointer-events: none;
    }
    .cv-header::after {
      content: '';
      position: absolute;
      bottom: -60px; left: -80px;
      width: 320px; height: 320px;
      background: radial-gradient(circle, rgba(224,90,43,0.07) 0%, transparent 70%);
      pointer-events: none;
    }

    .name-tag {
      font-family: var(--heading-font);
      font-size: clamp(2.8rem, 6vw, 5rem);
      font-weight: 900;
      letter-spacing: -0.02em;
      line-height: 1;
      color: var(--text);
    }
    .name-tag span { color: var(--accent); }

    .role-tag {
      font-family: var(--mono);
      font-size: 0.85rem;
      letter-spacing: 0.12em;
      color: var(--accent);
      text-transform: uppercase;
      margin-top: 0.75rem;
    }

    .contact-row {
      font-family: var(--mono);
      font-size: 0.78rem;
      color: var(--muted);
      margin-top: 1.5rem;
      display: flex;
      flex-wrap: wrap;
      gap: 1.5rem;
    }
    .contact-row a {
      color: var(--muted);
      text-decoration: none;
      transition: color 0.2s;
    }
    .contact-row a:hover { color: var(--accent); }
    .contact-row .dot { color: var(--border); }

    /* ── VISITOR COUNTER ─────────────────────────────────── */
    .counter-bar {
      background: var(--surface2);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 1.2rem 1.8rem;
      display: flex;
      align-items: center;
      gap: 1.25rem;
      margin-top: 2rem;
      max-width: 340px;
      position: relative;
    }
    .counter-bar .pulse {
      width: 10px; height: 10px;
      background: var(--accent);
      border-radius: 50%;
      flex-shrink: 0;
      animation: pulse 2s infinite;
    }
    @keyframes pulse {
      0%, 100% { box-shadow: 0 0 0 0 rgba(0,229,160,0.5); }
      50%       { box-shadow: 0 0 0 6px rgba(0,229,160,0); }
    }
    .counter-label {
      font-family: var(--mono);
      font-size: 0.75rem;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      line-height: 1.3;
    }
    .counter-value {
      font-family: var(--mono);
      font-size: 1.6rem;
      font-weight: 600;
      color: var(--accent);
      line-height: 1;
    }
    .counter-note {
      font-size: 0.68rem;
      color: var(--muted);
      margin-top: 0.25rem;
    }

    /* ── LAYOUT ──────────────────────────────────────────── */
    .cv-body {
      padding: 3rem 0 5rem;
    }

    /* ── SECTION TITLES ──────────────────────────────────── */
    .section-label {
      font-family: var(--mono);
      font-size: 0.72rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 1.5rem;
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }
    .section-label::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--border);
    }

    /* ── CARDS ───────────────────────────────────────────── */
    .cv-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 1.6rem 1.8rem;
      margin-bottom: 1.2rem;
      position: relative;
      transition: border-color 0.25s, transform 0.25s;
    }
    .cv-card:hover {
      border-color: rgba(0,229,160,0.3);
      transform: translateX(4px);
    }
    .cv-card::before {
      content: '';
      position: absolute;
      left: 0; top: 20%; bottom: 20%;
      width: 3px;
      background: var(--accent);
      border-radius: 0 3px 3px 0;
      opacity: 0;
      transition: opacity 0.25s;
    }
    .cv-card:hover::before { opacity: 1; }

    .card-title {
      font-family: var(--heading-font);
      font-size: 1.15rem;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 0.15rem;
    }
    .card-company {
      font-family: var(--mono);
      font-size: 0.82rem;
      color: #00b37a;
      font-weight: 600;
    }
    .card-period {
      font-family: var(--mono);
      font-size: 0.72rem;
      color: var(--muted);
      margin-bottom: 0.9rem;
    }
    .card-desc {
      font-size: 0.9rem;
      color: #b0b8c8;
      margin-bottom: 0.9rem;
    }

    /* Tags */
    .tag-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
    .tag {
      font-family: var(--mono);
      font-size: 0.68rem;
      background: var(--surface2);
      border: 1px solid var(--border);
      color: var(--accent);
      padding: 0.2rem 0.6rem;
      border-radius: 4px;
      letter-spacing: 0.05em;
    }

    /* ── SKILLS SIDEBAR ──────────────────────────────────── */
    .skills-block {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 1.6rem 1.8rem;
      margin-bottom: 1.2rem;
    }
    .skill-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 0.9rem;
    }
    .skill-name {
      font-family: var(--mono);
      font-size: 0.78rem;
      color: var(--text);
    }
    .skill-bar {
      width: 55%;
      height: 4px;
      background: var(--border);
      border-radius: 99px;
      overflow: hidden;
    }
    .skill-fill {
      height: 100%;
      background: linear-gradient(90deg, var(--accent), #00bfff);
      border-radius: 99px;
      animation: growBar 1.2s ease forwards;
      transform-origin: left;
      transform: scaleX(0);
    }
    @keyframes growBar {
      to { transform: scaleX(1); }
    }

    /* ── EDUCATION ICON ──────────────────────────────────── */
    .edu-icon {
      width: 40px; height: 40px;
      background: var(--surface2);
      border: 1px solid var(--border);
      border-radius: 8px;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.1rem;
      flex-shrink: 0;
    }

    /* ── FADE IN ─────────────────────────────────────────── */
    .fade-up {
      opacity: 0;
      transform: translateY(20px);
      animation: fadeUp 0.6s ease forwards;
    }
    @keyframes fadeUp {
      to { opacity: 1; transform: translateY(0); }
    }
    .delay-1 { animation-delay: 0.1s; }
    .delay-2 { animation-delay: 0.22s; }
    .delay-3 { animation-delay: 0.34s; }
    .delay-4 { animation-delay: 0.46s; }
    .delay-5 { animation-delay: 0.58s; }

    /* ── FOOTER ──────────────────────────────────────────── */
    footer {
      border-top: 1px solid var(--border);
      padding: 1.5rem 0;
      font-family: var(--mono);
      font-size: 0.72rem;
      color: var(--muted);
      text-align: center;
    }

    @media (max-width: 768px) {
      .counter-bar { max-width: 100%; }
    }


    /* ── TYPEWRITER ──────────────────────────────────────── */
    .tw-cursor {
      color: var(--accent);
    }
    .tw-cursor.done {
      opacity: 0;
    }