    /* ==========================================================================
       Cangreja Dev — Design System v1.0
       Extracted from Alejandra Zerdá "notebook" portfolio
       ========================================================================== */
 
    :root {
      --paper: #fcf8fa;
      --rule: rgba(99, 14, 83, 0.065);
      --surface: #ffffff;
      --surface-2: #f8eef3;
      --ink: #33093E;
      --border: #33093E;
      --shadow: #33093E;
      --text: #333333;
      --text-strong: #33093E;
      --muted: #7a6573;
      --faint: #b9a6b2;
      --line: rgba(77, 19, 63, 0.14);
 
      --brand: #3caac1;
      --brand-hover: #2f8a9e;
      --brand-ink: #ffffff;
      --brand-soft: #ddf1f5;
      --brand-soft-line: #3cabc1cc;
      --brand-tint: #3caac1;
 
      --plum: #7D5392;
      --plum-2: #7d539266;
      --plum-soft: #f2e3ee;
      --plum-ink: #7D5392;
      --on-plum: #33093E;
      --on-plum-muted: #33093E;
 
      --green: #84ba40;
      --green-soft: #83ba403a;
      --green-ink: #4b6b25;
      --teal: #3caac1;
      --teal-soft: #3cabc180;
      --teal-ink: #225d69;
 
      --soft-shadow: 0 12px 28px rgba(77, 19, 63, 0.12);
 
      --f-head: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
      --f-body: "Fira Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
      --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      --f-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
 
      --page-w: 1120px;
      --gutter: 40px;
      color-scheme: light;
    }
 
    :root[data-theme="dark"] {
      --paper: #1a1118;
      --rule: rgba(255, 255, 255, 0.035);
      --surface: #241820;
      --surface-2: #6b4a61;
      --ink: #f3e6ee;
      --border: #6b4a61;
      --shadow: #000000;
      --text: #e6d6df;
      --text-strong: #fbf1f6;
      --muted: #e9c4dd;
      --faint: #6f5a67;
      --line: rgba(255, 255, 255, 0.1);
      --brand: #5ec5db;
      --brand-hover: #78d1e4;
      --brand-ink: #0e2b31;
      --brand-soft: #153842;
      --brand-soft-line: #2a5a68;
      --brand-tint: #8cd9e8;
      --plum: #2f0e28;
      --plum-soft: #3a2033;
      --plum-ink: #e9c4dd;
      --plum-2: #6b4a61;
      --on-plum: #e9c4dd;
      --green-soft: #22331a;
      --green-ink: #b6e38a;
      --teal-soft: #15313a;
      --teal-ink: #9adbea;
      --soft-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
      color-scheme: dark;
    }
 
    /* ---------- Language switching ----------
       Hides the opposite-language spans based on the html[data-ui-lang] attr.
       Markup pattern:
         <span data-lang="en">Hello</span><span data-lang="es">Hola</span>
       Set html[data-ui-lang="es"] to show Spanish, "en" (or absent) for English.
    */
    html:not([data-ui-lang="es"]) [data-lang="es"],
    html[data-ui-lang="es"] [data-lang="en"] {
      display: none !important;
    }
 
    /* ---------- Base ---------- */
    *, *::before, *::after { box-sizing: border-box; }
    html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
 
    body {
      margin: 0;
      background-color: var(--paper);
      background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 39px, var(--rule) 39px, var(--rule) 40px);
      color: var(--text);
      font-family: var(--f-body);
      font-size: 16.5px;
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
    }
 
    img { max-width: 100%; display: block; }
    a { color: inherit; }
    h1, h2, h3 { font-family: var(--f-head); color: var(--text-strong); line-height: 1.15; margin: 0; }
    p { margin: 0; }
    ::selection { background: var(--brand-soft-line); color: var(--ink); }
    :focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
 
    .page {
      width: 100%;
      max-width: calc(var(--page-w) + var(--gutter) * 2);
      margin: 0 auto;
      padding: 0 var(--gutter);
    }
 
    /* ---------- Top bar ---------- */
    .topbar {
      position: sticky; top: 0; z-index: 50;
      height: 80px;
      display: flex; align-items: center; gap: 20px;
      padding: 0 max(var(--gutter), calc((100vw - var(--page-w) - 160px) / 2));
      background: var(--paper);
      border-bottom: 2px solid var(--border);
    }
    .brand {
      flex-shrink: 0; display: flex; align-items: center; gap: 10px;
      font-family: var(--f-head); font-weight: 700; font-size: 1.3rem;
      color: var(--text-strong); text-decoration: none;
    }
    .brand-icon { font-size: 1.6rem; }
    .mainnav { flex: 1; display: flex; justify-content: center; min-width: 0; }
    .mainnav ul {
      list-style: none; margin: 0; padding: 0;
      display: flex; flex-wrap: wrap; justify-content: center;
      gap: 4px 18px;
    }
    .mainnav a {
      font-family: var(--f-mono); font-size: 13px; font-weight: 500;
      color: var(--text); text-decoration: none; white-space: nowrap;
      padding: 4px 0; transition: color 0.15s;
    }
    .mainnav a:hover, .mainnav a.active { color: var(--brand); }
    .topbar-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: auto; }
    .lang-switch {
      display: inline-flex;
      border: 2px solid var(--border);
      border-radius: 8px;
      overflow: hidden;
    }
    .lang-switch button {
      font-family: var(--f-mono); font-size: 12px; font-weight: 700;
      border: 0; background: var(--surface); color: var(--muted);
      padding: 5px 9px; cursor: pointer;
    }
    .lang-switch button + button { border-left: 2px solid var(--border); }
    .lang-switch button[aria-pressed="true"] { background: var(--plum); color: var(--plum-soft); }
    :root[data-theme="dark"] .lang-switch button[aria-pressed="true"] { color: var(--plum-ink); }
    .icon-btn {
      width: 36px; height: 36px; display: inline-grid; place-items: center;
      border: 2px solid transparent; border-radius: 8px;
      background: transparent; color: var(--text); cursor: pointer;
    }
    .icon-btn:hover { border-color: var(--border); background: var(--surface); }
    .icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
    .menu-btn { display: none; }
    .i-sun { display: none; }
    :root[data-theme="dark"] .i-sun { display: block; }
    :root[data-theme="dark"] .i-moon { display: none; }
 
    /* ---------- Buttons ---------- */
    .btn {
      display: inline-flex; align-items: center; justify-content: center; gap: 8px;
      min-height: 50px; padding: 10px 22px;
      border-radius: 12px; border: 2px solid var(--border);
      background: #7D5392; color: #ffffff;
      font-family: var(--f-body); font-size: 15.5px; font-weight: 600;
      text-decoration: none; box-shadow: 4px 4px 0 var(--shadow);
      cursor: pointer; transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
    }
    .btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--shadow); background: #6a4580; }
    .btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--shadow); }
    .btn-primary { background: var(--plum); color: #ffffff; }
    .btn-primary:hover { background: var(--plum-ink); }
    .btn-dashed { border-style: dashed; background: transparent; color: #333333; box-shadow: none; font-family: var(--f-mono); font-size: 14px; font-weight: 500; }
    :root[data-theme="dark"] .btn-dashed { color: #fff; }
    .btn-dashed:hover { background: rgba(255, 255, 255, 0.55); box-shadow: none; transform: translate(0, -1px); }
    .btn-sm { min-height: 40px; padding: 6px 16px; font-size: 14.5px; border-radius: 10px; box-shadow: 3px 3px 0 var(--shadow); }
    .btn-sm:hover { box-shadow: 5px 5px 0 var(--shadow); }
    .btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; }
    .link, .text-link, .card-link {
      color: var(--text-strong); text-decoration: underline;
      text-decoration-color: var(--brand-soft-line);
      text-decoration-thickness: 2px; text-underline-offset: 3px;
      transition: text-decoration-color 0.15s, color 0.15s;
    }
    .link:hover, .text-link:hover, .card-link:hover { color: var(--brand); text-decoration-color: currentColor; }
    .text-link { display: inline-block; margin-top: 16px; font-family: var(--f-mono); font-size: 13.5px; }
    .text-btn {
      font-family: var(--f-mono); font-size: 12.5px;
      color: var(--text); background: var(--surface);
      border: 1.5px solid var(--border); padding: 4px 10px;
      border-radius: 8px; cursor: pointer;
    }
    .text-btn:hover { color: var(--brand); }
 
    /* ---------- Tags ---------- */
    .tag, .chips span {
      display: inline-flex; align-items: center;
      min-height: 24px; padding: 2px 8px;
      border-radius: 4px;
      font-family: var(--f-mono); font-size: 11.5px; font-weight: 700;
      letter-spacing: 0.03em; text-transform: uppercase; line-height: 1.2;
      background: var(--surface-2); color: var(--text);
    }
    .tag-pink, .tag-orange { background: var(--brand-soft); color: var(--brand); }
    .tag-purple, .tag-yellow { background: var(--plum-soft); color: var(--plum-ink); }
    .tag-blue { background: var(--teal-soft); color: var(--teal-ink); }
    .tag-green { background: var(--green-soft); color: var(--green-ink); }
 
    /* ---------- Sections ---------- */
    main { counter-reset: cell 0; }
    .block-section { padding-top: 88px; counter-increment: cell; }
    .block-section > h2 {
      font-size: clamp(2rem, 4.2vw, 2.75rem);
      font-weight: 700; letter-spacing: -0.03em;
      margin-bottom: 22px;
    }
    .block-section > h2::before {
      content: "<?php // section " counter(cell) " ?>";
      display: block; margin-bottom: 10px;
      font-family: var(--f-mono); font-size: 13.5px; font-weight: 400;
      letter-spacing: 0; color: var(--brand);
    }
    .sub-h {
      margin: 44px 0 14px;
      font-size: 1.3rem; font-weight: 700;
      font-family: var(--f-head); color: var(--text-strong);
    }
    .lead { max-width: 44em; margin-bottom: 26px; font-size: 1.08rem; }
    .muted { color: var(--muted); font-family: var(--f-mono); font-size: 12.5px; margin: -8px 0 20px; }
    .muted::before { content: "# "; color: var(--faint); }
 
    /* ---------- Hero ---------- */
    .hero-section { padding-top: 56px; padding-bottom: 20px; }
    .hero-title {
      font-family: var(--f-head);
      font-size: clamp(2.6rem, 6.2vw, 4.6rem);
      font-weight: 700; line-height: 1.16; letter-spacing: -0.035em;
      color: var(--text-strong); margin: 0;
    }
    .hl {
      display: inline; background: var(--plum-2); color: var(--on-plum);
      padding: 0 0.14em 0.04em; border-radius: 6px; line-height: 1.22;
    }
    :root[data-theme="dark"] .hl { background: var(--brand-soft); color: var(--text-strong); }
    .hero-script {
      margin: 10px 0 0;
      font-family: var(--f-hand); font-weight: 700;
      font-size: clamp(2.3rem, 5vw, 3.5rem); line-height: 1.1;
      color: var(--brand);
      transform: rotate(-2deg); transform-origin: left center;
      display: inline-block;
    }
    .hero-tagline { margin-top: 22px; font-size: 1.16rem; line-height: 1.55; color: var(--text); max-width: 44em; }
 
    .roles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
 
    /* Term / Stats */
    .term {
      background: var(--plum-2); color: var(--on-plum);
      border-radius: 14px; font-family: var(--f-mono);
    }
    :root[data-theme="dark"] .term { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
    .stats { margin-top: 24px; padding: 22px 26px 20px; max-width: 470px; }
    .term-line { font-size: 13px; color: #33093E; margin: 0; }
    :root[data-theme="dark"] .term-line { color: var(--text-strong); }
    .stats dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 14px 0 0; }
    @media (max-width: 520px) { .stats dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
    .stats dt {
      font-size: clamp(1.5rem, 3vw, 1.85rem); font-weight: 700;
      color: var(--brand-ink); line-height: 1.1;
    }
    :root[data-theme="dark"] .stats dt { color: #fff; }
    .stats dd { margin: 6px 0 0; font-size: 11.5px; line-height: 1.35; color: var(--on-plum-muted); }
    :root[data-theme="dark"] .stats dd { color: var(--ink); }
    .note-kicker-blue { color: var(--brand-tint); font-weight: 700; }
 
    /* Polaroid */
    .polaroid {
      margin: 0; width: 200px;
      padding: 10px 10px 4px;
      background: var(--surface);
      border: 1px solid var(--line);
      box-shadow: var(--soft-shadow);
      transform: rotate(4deg);
    }
    .polaroid-img {
      width: 100%; aspect-ratio: 1;
      background: linear-gradient(135deg, var(--plum) 0%, var(--teal) 100%);
      display: flex; align-items: center; justify-content: center;
      font-size: 3rem; color: #fff;
    }
    .polaroid figcaption {
      font-family: var(--f-hand); font-size: 1.55rem; font-weight: 700;
      text-align: center; color: var(--text-strong); line-height: 1.5;
    }
 
    /* Notes */
    .note { margin: 0; padding: 22px 26px; box-shadow: var(--soft-shadow); }
    .note blockquote {
      margin: 0;
      font-family: var(--f-hand); font-size: 1.6rem; font-weight: 500;
      line-height: 1.28; color: var(--text-strong);
    }
    .note figcaption, .note-by {
      margin-top: 12px; font-family: var(--f-mono);
      font-size: 11.5px; color: var(--brand);
    }
    .note-pink {
      width: 88%;
      background: var(--brand-soft);
      border: 1px solid var(--brand-soft-line);
      transform: rotate(-2.5deg); padding-top: 30px;
    }
    .note-dark {
      width: 86%; margin-left: 8%;
      background: var(--on-plum); color: var(--plum-soft);
      transform: rotate(-1deg);
    }
    .note-kicker {
      font-family: var(--f-mono); font-size: 10.5px;
      letter-spacing: 0.08em; text-transform: uppercase;
      color: var(--plum-soft); margin: 0;
    }
    .note-old {
      margin-top: 6px; font-family: var(--f-hand); font-size: 1.35rem;
      color: var(--plum-soft);
      text-decoration: line-through; text-decoration-color: var(--brand-tint);
    }
    .note-arrow { margin: 6px 0 4px; color: var(--brand-tint); font-family: var(--f-mono); }
    .note-new {
      margin-top: 4px; font-family: var(--f-hand);
      font-size: 1.85rem; font-weight: 700; line-height: 1.2;
      color: #ffffff;
    }
    .note-dark .note-by { color: var(--plum-soft); }
    .note-chips {
      width: 62%; padding: 10px 14px 12px;
      background: var(--surface); border: 1px solid var(--line);
      transform: rotate(-1.5deg);
    }
    .note-code { font-family: var(--f-mono); font-size: 12.5px; color: var(--on-plum); margin: 0; }
    .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
    .chips span:nth-child(3n + 1) { background: var(--brand-soft); color: var(--brand); }
    .chips span:nth-child(3n + 2) { background: var(--teal-soft); color: var(--teal-ink); }
    .chips span:nth-child(3n) { background: var(--green-soft); color: var(--green-ink); }
 
    /* Callouts */
    .callout {
      display: flex; gap: 14px;
      padding: 18px 22px 18px 18px;
      border-radius: 12px;
      background: var(--surface);
      border: 2px dashed var(--brand-soft-line);
    }
    .callout-icon { font-size: 1.35rem; line-height: 1.45; flex-shrink: 0; }
    .callout-pink {
      background: var(--brand-soft);
      border: 1px solid var(--brand-soft-line);
      box-shadow: var(--soft-shadow); transform: rotate(1deg);
    }
    .callout-pink p { font-family: var(--f-hand); font-size: 1.5rem; line-height: 1.3; color: var(--text-strong); margin: 0; }
    .quote {
      margin: 0; padding: 0 0 0 18px;
      border-left: 4px solid var(--brand);
      font-family: var(--f-hand); font-weight: 700;
      font-size: clamp(1.8rem, 3.6vw, 2.3rem);
      line-height: 1.15; color: var(--on-plum);
    }
    :root[data-theme="dark"] .quote { color: var(--text-strong); }
 
    .callout-contact {
      background: var(--plum-2); border: 0; color: var(--on-plum);
      padding: 28px 30px; border-radius: 16px;
    }
    .callout-contact p { font-size: 1.12rem; max-width: 40em; margin: 0; }
    .callout-contact .btn:not(.btn-primary) { background: var(--surface); color: var(--text-strong); }
    .callout-contact .btn { box-shadow: 4px 4px 0 #000; border-color: #000; }
 
    /* Mini-db / Props */
    .mini-db {
      background: var(--surface);
      border: 2px solid var(--border);
      border-radius: 14px;
      box-shadow: 4px 4px 0 var(--shadow);
      padding: 6px 20px 10px;
    }
    .mini-db h3 {
      font-family: var(--f-mono); font-size: 12.5px; font-weight: 500;
      color: var(--brand); padding: 12px 0 10px;
      border-bottom: 1px dashed var(--line);
    }
    .mini-db h3::before { content: ">>> "; color: var(--faint); }
    .props { margin: 0; padding: 0; }
    .prop {
      display: grid; grid-template-columns: 140px minmax(0, 1fr);
      gap: 12px; align-items: baseline;
      padding: 9px 0; font-size: 15px;
    }
    .mini-db .prop + .prop { border-top: 1px dashed var(--line); }
    .prop dt { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
    .prop dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
 
    /* Gallery / Cards */
    .gallery { display: grid; gap: 24px; }
    .gallery-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    @media (max-width: 980px) { .gallery-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
    @media (max-width: 600px) { .gallery-3 { grid-template-columns: minmax(0, 1fr); } }
 
    .service-card, .portfolio-item {
      display: flex; flex-direction: column;
      border-radius: 14px; overflow: hidden;
      background: var(--surface);
      border: 2px solid var(--border);
      box-shadow: 4px 4px 0 var(--shadow);
      transition: transform 0.15s, box-shadow 0.15s;
    }
    .service-card:hover, .portfolio-item:hover {
      transform: translate(-2px, -2px);
      box-shadow: 7px 7px 0 var(--shadow);
    }
    .card-cover {
      height: 104px; display: grid; place-items: center;
      border-bottom: 2px solid var(--border);
      background: var(--brand-soft);
    }
    .cover-pink, .cover-orange { background: var(--brand-soft); }
    .cover-purple, .cover-yellow { background: var(--plum-soft); }
    .cover-blue { background: var(--teal-soft); }
    .cover-green { background: var(--green-soft); }
    .svc-icon { font-size: 2.8rem; line-height: 1; }
    .card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 18px 20px 20px; }
    .card-body h3 { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.01em; font-family: var(--f-head); color: var(--text-strong); margin: 0; }
    .card-body p { font-size: 15px; color: var(--text); margin: 0; }
    .card-body .tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-top: 6px; }
    .card-link { margin-top: auto; padding-top: 6px; font-family: var(--f-mono); font-size: 13px; font-weight: 500; }
 
    /* WD cards */
    .wd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
    .wd-card {
      display: flex; flex-direction: column;
      border-radius: 14px; overflow: hidden;
      background: var(--surface);
      border: 2px solid var(--border);
      box-shadow: 4px 4px 0 var(--shadow);
      text-decoration: none; color: var(--text-strong);
      transition: transform 0.15s, box-shadow 0.15s;
    }
    .wd-card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--shadow); }
    .wd-thumb {
      display: block; aspect-ratio: 16 / 10; overflow: hidden;
      border-bottom: 2px solid var(--border);
      background: var(--surface-2);
      display: flex; align-items: center; justify-content: center;
      font-size: 2.5rem;
    }
    .wd-thumb.g1 { background: linear-gradient(135deg, var(--plum) 0%, var(--teal) 100%); color: #fff; }
    .wd-thumb.g2 { background: linear-gradient(135deg, var(--teal) 0%, var(--green) 100%); color: #fff; }
    .wd-thumb.g3 { background: linear-gradient(135deg, var(--green) 0%, var(--plum) 100%); color: #fff; }
    .wd-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
    .wd-title { font-family: var(--f-head); font-weight: 700; font-size: 1.05rem; color: var(--text-strong); }
    .wd-cat { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand); }
 
    /* Steps */
    .steps {
      list-style: none; margin: 0; padding: 0;
      display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
    }
    .steps li {
      display: flex; flex-direction: column; gap: 14px;
      padding: 20px; border-radius: 14px;
      background: var(--surface);
      border: 2px solid var(--border);
      box-shadow: 4px 4px 0 var(--shadow);
    }
    .steps li:nth-child(even) { transform: translateY(14px); }
    .step-num {
      align-self: flex-start;
      font-family: var(--f-mono); font-size: 12px; font-weight: 700;
      padding: 3px 9px; border-radius: 6px;
      background: var(--brand-hover); color: var(--brand-soft);
    }
    .step-num::before { content: "$step_"; }
    .step-num::after { content: ";"; }
    .steps h3 { font-size: 1.25rem; font-weight: 700; margin: 0 0 6px; font-family: var(--f-head); color: var(--text-strong); }
    .steps p { font-size: 14.5px; color: var(--muted); margin: 0; }
    @media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
    @media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } .steps li:nth-child(even) { transform: none; } }
 
    /* Timeline */
    .db-table {
      background: var(--surface);
      border: 2px solid var(--border);
      border-radius: 14px;
      box-shadow: 4px 4px 0 var(--shadow);
      overflow: hidden;
    }
    .db-head {
      display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 160px;
      gap: 14px;
      padding: 10px 18px 10px 44px;
      font-family: var(--f-mono); font-size: 11px;
      letter-spacing: 0.06em; text-transform: uppercase;
      color: var(--muted);
      background: var(--surface-2);
      border-bottom: 2px solid var(--border);
    }
    .timeline-item + .timeline-item { border-top: 1px dashed var(--line); }
    .timeline-item > summary {
      display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 160px;
      gap: 14px; align-items: start;
      position: relative;
      list-style: none;
      padding: 13px 18px 13px 44px;
      cursor: pointer;
      font-size: 15px;
    }
    .timeline-item > summary::-webkit-details-marker { display: none; }
    .timeline-item > summary:hover { background: var(--surface-2); }
    .timeline-item > summary::before {
      content: ""; position: absolute;
      left: 20px; top: 19px;
      border-style: solid; border-width: 6px 0 6px 8px;
      border-color: transparent transparent transparent var(--brand);
      transition: transform 0.15s;
    }
    .timeline-item[open] > summary::before { transform: rotate(90deg); }
    .timeline-title { font-weight: 600; color: var(--text-strong); font-family: var(--f-head); }
    .timeline-org { color: var(--text); }
    .timeline-year { font-family: var(--f-mono); font-size: 12.5px; color: var(--muted); white-space: nowrap; padding-top: 2px; }
    .timeline-content { padding: 0 24px 18px 44px; font-size: 15px; max-width: 54em; }
    .timeline-content ul { margin: 0; padding-left: 1.1em; }
    .timeline-content li::marker { color: var(--brand); }
    .timeline-content li + li { margin-top: 6px; }
 
    /* Skills */
    .skills {
      background: var(--surface);
      border: 2px solid var(--border);
      border-radius: 14px;
      box-shadow: 4px 4px 0 var(--shadow);
      padding: 4px 20px;
    }
    .skill-group {
      display: grid; grid-template-columns: 190px minmax(0, 1fr);
      gap: 14px; padding: 13px 0; align-items: baseline;
    }
    .skill-group + .skill-group { border-top: 1px dashed var(--line); }
    .skill-label { font-family: var(--f-mono); font-size: 12px; color: var(--muted); margin: 0; }
    .skill-tags { font-family: var(--f-body); font-size: 14px; color: var(--text); margin: 0; }
 
    /* Testimonials */
    .testimonials {
      display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 30px; align-items: start; padding: 6px 4px;
    }
    .testimonial-item {
      margin: 0; display: flex; flex-direction: column; gap: 18px;
      padding: 26px 26px 22px;
      box-shadow: var(--soft-shadow);
      background: var(--brand-soft);
      border: 1px solid var(--brand-soft-line);
      transform: rotate(-1.5deg);
    }
    .testimonial-item:nth-child(3n + 2) { background: var(--surface); transform: rotate(1.2deg); margin-top: 18px; }
    .testimonial-item:nth-child(3n) { background: var(--plum); border-color: var(--plum); transform: rotate(-0.6deg); }
    .testimonial-item blockquote { margin: 0; font-family: var(--f-hand); font-size: 1.5rem; font-weight: 500; line-height: 1.28; color: var(--text-strong); }
    .testimonial-item:nth-child(3n) blockquote { color: #ffffff; }
    .testimonial-item blockquote p { margin: 0; }
    .testimonial-item blockquote p::before { content: "“"; }
    .testimonial-item blockquote p::after { content: "”"; }
    .testimonial-item figcaption { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 10px; align-items: center; }
    .t-avatar {
      grid-row: span 2;
      width: 34px; height: 34px; border-radius: 50%;
      display: grid; place-items: center;
      font-family: var(--f-mono); font-size: 12px; font-weight: 700;
      background: var(--brand); color: #ffffff;
    }
    .t-name { font-family: var(--f-mono); font-size: 12.5px; font-weight: 700; color: var(--brand); }
    .t-role { font-family: var(--f-mono); font-size: 11px; color: var(--muted); line-height: 1.4; }
    .testimonial-item:nth-child(3n) .t-name { color: var(--brand-tint); }
    .testimonial-item:nth-child(3n) .t-role { color: var(--on-plum-muted); }
    @media (max-width: 980px) { .testimonials { grid-template-columns: minmax(0, 1fr); max-width: 560px; } }
 
    /* Blog */
    .blog-list {
      background: var(--surface);
      border: 2px solid var(--border);
      border-radius: 14px;
      box-shadow: 4px 4px 0 var(--shadow);
      overflow: hidden;
    }
    .blog-item {
      display: grid; grid-template-columns: 26px minmax(0, 1fr) auto;
      gap: 12px; align-items: start;
      padding: 16px 20px;
      text-decoration: none; transition: background 0.12s;
      color: inherit;
    }
    .blog-item + .blog-item { border-top: 1px dashed var(--line); }
    .blog-item:hover { background: var(--surface-2); }
    .b-icon { line-height: 1.5; }
    .b-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
    .b-title { font-family: var(--f-head); font-weight: 700; font-size: 1.08rem; color: var(--text-strong); }
    .blog-item:hover .b-title { color: var(--brand); }
    .b-excerpt { font-size: 14.5px; color: var(--muted); }
    .b-date { font-family: var(--f-mono); font-size: 12px; color: var(--muted); white-space: nowrap; padding-top: 4px; }
 
    /* Filter pills */
    .db-views { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 24px; }
    .db-view {
      font-family: var(--f-mono); font-size: 12.5px; white-space: nowrap;
      color: var(--text); background: var(--surface);
      border: 1.5px solid var(--border); border-radius: 999px;
      padding: 5px 13px; cursor: pointer;
      transition: background 0.12s, color 0.12s;
    }
    .db-view:hover { color: var(--brand); }
    .db-view.active { background: var(--plum-2); border-color: var(--plum); color: var(--on-plum); }
 
    .db-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
    .db-name { font-family: var(--f-mono); font-size: 13px; font-weight: 500; }
 
    /* Footer */
    .footer {
      margin-top: 100px;
      padding: 44px 0 52px;
      border-top: 2px solid var(--border);
      background: var(--plum-2);
      color: var(--on-plum);
    }
    .footer-quote { font-family: var(--f-hand); font-weight: 700; font-size: clamp(1.7rem, 3.4vw, 2.3rem); line-height: 1.2; margin: 0; max-width: 28em; }
    .footer-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; font-family: var(--f-mono); font-size: 12.5px; color: var(--on-plum-muted); }
 
    /* Responsive */
    /* Menú móvil: el botón ☰ (site.js) agrega .open a .mainnav y lo despliega bajo la barra. */
    @media (max-width: 1180px) {
      .menu-btn { display: inline-grid; }
      .mainnav {
        position: absolute; top: calc(100% + 2px); left: 0; right: 0;
        display: none;
        max-height: calc(100vh - 100%); overflow-y: auto;
        background: var(--paper);
        border-bottom: 2px solid var(--border);
        padding: 14px var(--gutter) 20px;
      }
      .mainnav.open { display: block; }
      .mainnav ul { flex-direction: column; align-items: flex-start; gap: 2px; }
      .mainnav a { display: block; font-size: 15px; padding: 8px 0; }
    }
    @media (max-width: 980px) { :root { --gutter: 28px; } }
    @media (max-width: 720px) { :root { --gutter: 16px; } body { font-size: 16px; } .topbar { height: 68px; gap: 10px; } .block-section { padding-top: 68px; } .footer-row { flex-direction: column; align-items: flex-start; } }
    @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }