
  @font-face {
    font-family: "Latin Modern Sans";
    src: url("../fonts/LatinModernSans-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: "Latin Modern Sans";
    src: url("../fonts/LatinModernSans-Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
  }

  :root {
    --paper: #f3f6f5;
    --paper-raised: #ffffff;
    --ink: #1c2530;
    --muted: #5b6672;
    --faint: #6c7d78;
    --line: #dbe3e1;
    --teal: #355f5f;
    --teal-dark: #1f3a3a;
    --teal-soft: #e9f1f0;
    --gold: #9c7209;
    --gold-soft: #f5ecd6;
    --blue: #1f61a8;
    --red: #c0392b;
    --green: #12805c;
    --purple: #6c4fa1;
    --rose: #b23a6b;
    --blue-soft: #e3ecf6;
    --red-soft: #f7e6e3;
    --green-soft: #e0f1ea;
    --purple-soft: #ece5f6;
    --rose-soft: #f9e5ee;
    --shadow: 0 1px 2px rgba(28,37,48,.04), 0 8px 24px rgba(28,37,48,.06);

    --font-display: ui-serif, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    --font-body: "Ancizar sans", "Segoe UI", ui-sans-serif, system-ui, -apple-system, sans-serif;
    --font-mono: ui-monospace, "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;
    --font-name: "Latin Modern Sans", "Avenir Next", "Century Gothic", ui-sans-serif, var(--font-body);
  }

  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --paper: #10181a;
      --paper-raised: #182223;
      --ink: #edf1ef;
      --muted: #9fada9;
      --faint: #8b9a95;
      --line: #263030;
      --teal: #74a49c;
      --teal-dark: #0c1817;
      --teal-soft: #1a2726;
      --gold: #dcaf52;
      --gold-soft: #2a2313;
      --blue: #6ea3d9;
      --red: #e0897c;
      --green: #4fbf94;
      --purple: #b39ddb;
      --blue-soft: #1b2a3a;
      --red-soft: #34211d;
      --green-soft: #15302a;
      --purple-soft: #2a2338;
      --rose: #d97fa8;
      --rose-soft: #35202a;
      --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px rgba(0,0,0,.35);
    }
  }
  :root[data-theme="dark"] {
    --paper: #10181a;
    --paper-raised: #182223;
    --ink: #edf1ef;
    --muted: #9fada9;
    --faint: #8b9a95;
    --line: #263030;
    --teal: #74a49c;
    --teal-dark: #0c1817;
    --teal-soft: #1a2726;
    --gold: #dcaf52;
    --gold-soft: #2a2313;
    --blue: #6ea3d9;
    --red: #e0897c;
    --green: #4fbf94;
    --purple: #b39ddb;
    --blue-soft: #1b2a3a;
    --red-soft: #34211d;
    --green-soft: #15302a;
    --purple-soft: #2a2338;
    --rose: #d97fa8;
    --rose-soft: #35202a;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px rgba(0,0,0,.35);
  }

  * { box-sizing: border-box; }
  body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
  }
  #unalTop { -webkit-font-smoothing: auto; }
  img { max-width: 100%; display: block; }
  a { color: inherit; }

  .wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

  /* ---------- note banner ---------- */

  /* ---------- identity band ---------- */
  .band {
    position: relative;
    background:
      radial-gradient(640px 420px at 88% -10%, rgba(255,255,255,.08), transparent 60%),
      linear-gradient(128deg, var(--teal-dark) 0%, var(--teal) 62%, #4d7d76 100%);
    color: #fff;
    padding: 56px 0 40px;
    overflow: hidden;
  }
  .band::after {
    content: "";
    position: absolute;
    pointer-events: none;
    right: -120px; top: -160px;
    width: 460px; height: 460px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.08);
  }
  .crumb {
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255,255,255,.6);
    font-family: var(--font-mono);
    margin-bottom: 22px;
  }
  .crumb a { color: rgba(255,255,255,.85); text-decoration: none; }
  .crumb a:hover { text-decoration: underline; }

  .id-row {
    position: relative;
    display: grid;
    grid-template-columns: 148px 1fr;
    gap: 30px;
    align-items: center;
  }
  .id-photo {
    width: 148px; height: 148px;
    border-radius: 6px;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,.85);
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
  }
  .id-name {
    font-family: var(--font-name);
    font-weight: 700;
    letter-spacing: -.01em;
    font-size: 33px;
    line-height: 1.15;
    margin: 0 0 6px;
    text-wrap: balance;
  }
  .id-role {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .01em;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    padding: 6px 13px 6px 10px;
    border-radius: 3px;
  }
  .id-role .dot { width: 6px; height: 6px; border-radius: 50%; background: #b7e6c9; box-shadow: 0 0 0 3px rgba(183,230,201,.22); }

  .id-lede {
    max-width: 640px;
    margin: 20px 0 0;
    font-size: 15.5px;
    line-height: 1.65;
    color: rgba(255,255,255,.88);
  }
  .id-lede a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 3px; }
  .id-lede a:hover { text-decoration-color: #fff; }

  /* quick nav pills */
  .quicknav {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
  }
  .quicknav a {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .01em;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,.28);
    color: #fff;
  }
  .quicknav a.current { background: #fff; color: var(--teal-dark); border-color: #fff; }
  @media (hover: hover) {
    .quicknav a:not(.current):hover { background: rgba(255,255,255,.12); }
  }

  /* ---------- body layout ---------- */
  .layout {
    padding-top: 56px;
    padding-bottom: 90px;
  }
  .content { max-width: 760px; margin: 0 auto; min-width: 0; }
  section.block { margin-bottom: 64px; }
  section.block:last-child { margin-bottom: 0; }

  .block-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 28px; }
  .block-head h2 {
    font-family: var(--font-name);
    font-weight: 700;
    letter-spacing: -.005em;
    font-size: 23px;
    margin: 0;
  }
  .block-head .rule { flex: 1; height: 1px; background: var(--line); }
  .block-head .count { font-family: var(--font-mono); font-size: 12px; color: var(--faint); }

  /* timeline */
  .tl { position: relative; padding-left: 26px; border-left: 1px solid var(--line); }
  .tl-entry { position: relative; padding-bottom: 30px; }
  .tl-entry:last-child { padding-bottom: 0; }
  .tl-entry::before {
    content: "";
    position: absolute;
    left: -30px; top: 5px;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--paper);
    border: 2px solid var(--teal);
  }
  .tl-entry::after, .tl-sub::after { content: ""; display: block; clear: both; }
  .tl-when {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: 12px;
    color: var(--teal);
    letter-spacing: .02em;
    margin-bottom: 6px;
  }
  .tl-deg, .chip, .course-level, .pub-type {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .005em;
    background: var(--teal-soft);
    color: var(--teal);
    padding: 2px 9px;
    border-radius: 3px;
    margin-right: 8px;
  }
  .chip-blue   { background: var(--blue-soft);   color: var(--blue); }
  .chip-red    { background: var(--red-soft);    color: var(--red); }
  .chip-green  { background: var(--green-soft);  color: var(--green); }
  .chip-purple { background: var(--purple-soft); color: var(--purple); }
  .chip-rose   { background: var(--rose-soft);   color: var(--rose); }
  .chip-gold   { background: var(--gold-soft);   color: var(--gold); }
  .chip-teal   { background: var(--teal-soft);   color: var(--teal); }
  .tl-title { font-size: 15.5px; font-weight: 600; margin: 0 0 4px; }
  .tl-where { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
  .tl-where a { color: var(--teal); text-decoration: none; border-bottom: 1px solid transparent; }
  .tl-where a:hover { border-bottom-color: var(--teal); }
  .tl-role-tag { font-style: italic; font-size: 12px; color: var(--faint); font-family: var(--font-body); letter-spacing: 0; margin-left: 2px; }
  .tl-codirector-note { font-style: italic; font-size: 12px; color: var(--faint); }
  .tl-codirector-note .plabel { font-size: inherit; font-style: normal; color: inherit; }
  .tl-codirector-note a { color: inherit; }
  .tl-sub { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
  .tl-sub:first-of-type { margin-top: 12px; padding-top: 12px; }

  /* trayectoria two tracks */
  .tracks { display: grid; grid-template-columns: .85fr 1.15fr; gap: 88px; }
  .track-label {
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: var(--font-name);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.003em;
    color: var(--ink);
    margin: 0 0 18px;
  }
  .track-label::before {
    content: "";
    width: 20px;
    height: 3px;
    flex: none;
    background: var(--teal);
    border-radius: 2px;
  }
  .post { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
  .post:last-child { border-bottom: none; }
  .post-title { font-size: 14px; font-weight: 600; }
  .post-when { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 12px; color: var(--muted); white-space: nowrap; }
  .track-foot { margin-top: 16px; font-size: 13px; color: var(--muted); line-height: 1.75; }
  .track-foot a { color: var(--gold); text-decoration: none; border-bottom: 1px solid transparent; }
  .track-foot a:hover { border-bottom-color: var(--gold); }

  .visit { margin-bottom: 20px; line-height: 1.7; }
  .visit:last-child { margin-bottom: 0; }
  .visit-inst { font-size: 14px; font-weight: 600; }
  .visit-where { font-size: 13.5px; color: var(--muted); }
  .visit-where a { color: var(--gold); text-decoration: none; border-bottom: 1px solid transparent; }
  .visit-where a:hover { border-bottom-color: var(--gold); }
  .visit-when { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 12px; color: var(--teal); }

  /* reconocimientos - gold ledger */
  .tl.gold { border-left-color: var(--line); }
  .tl.gold .tl-entry::before { border-color: var(--gold); }
  .tl.gold .tl-when { color: var(--gold); }
  .award-subject { font-size: 15.5px; font-weight: 600; margin: 0 0 4px; }
  .award-detail { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
  .award-detail a { color: var(--gold); text-decoration: none; border-bottom: 1px solid transparent; }
  .award-detail a:hover { border-bottom-color: var(--gold); }
  .award-place {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font-mono); font-size: 11px; color: var(--faint);
    margin-top: 6px;
  }

  footer.foot-note {
    border-top: 1px solid var(--line);
    padding: 22px 0 60px;
    font-size: 12px;
    color: var(--faint);
    font-family: var(--font-mono);
    text-align: center;
  }

  @media (max-width: 760px) {
    .id-row { grid-template-columns: 1fr; text-align: left; }
    .tracks { grid-template-columns: 1fr; gap: 32px; }
  }

  @media (prefers-reduced-motion: no-preference) {
    .id-photo, .quicknav a { transition: box-shadow .2s ease, background .2s ease, border-color .2s ease; }
  }


  .band-compact { padding: 40px 0 30px; }
  .band-compact .id-row { grid-template-columns: 92px 1fr; gap: 22px; }
  .band-compact .id-photo { width: 92px; height: 92px; border-radius: 5px; }
  .band-compact .id-name { font-size: 25px; margin-bottom: 8px; }
  .page-title {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
    color: #cfe3e0; margin: 0 0 8px;
  }

  /* course ledger (Docencia) */
  .course-list { display: flex; flex-direction: column; gap: 7px; }
  .course-list-card {
    background: var(--paper-raised);
    border: 1px solid var(--teal);
    border-radius: 6px;
    padding: 16px 18px;
    box-shadow: var(--shadow);
  }
  .course-item { display: flex; align-items: baseline; gap: 10px; font-size: 13.5px; line-height: 1.5; flex-wrap: wrap; row-gap: 4px; }
  .course-code { font-family: var(--font-mono); font-size: 11px; color: var(--faint); flex: none; width: 60px; }
  .course-name { flex: none; color: var(--ink); }
  .course-level {
    flex: none;
    font-size: 10.5px;
    padding: 1px 8px;
    white-space: nowrap;
  }
  .course-abroad { display: block; font-size: 12px; color: var(--muted); margin: -3px 0 2px 70px; }
  .course-abroad a { color: var(--teal); text-decoration: none; border-bottom: 1px solid transparent; }
  .course-abroad a:hover { border-bottom-color: var(--teal); }

  /* research info card */
  .info-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 4px; padding: 20px 22px; margin-bottom: 22px; font-size: 13.5px; line-height: 1.7; color: var(--muted); }
  .info-card strong { color: var(--ink); }
  .info-card a { color: var(--teal); text-decoration: none; border-bottom: 1px solid transparent; }
  .info-card a:hover { border-bottom-color: var(--teal); }
  .subsection { padding-top: 30px; margin-top: 30px; border-top: 1px solid var(--line); }
  .info-card-logo { display: flex; align-items: center; gap: 20px; }
  .info-card-logo-img { flex: none; width: 76px; height: auto; }
  @media (max-width: 480px) { .info-card-logo { flex-direction: column; align-items: flex-start; } }
  .bullets { list-style: none; margin: 0; padding: 0; }
  .bullets li { position: relative; padding-left: 16px; font-size: 14px; margin-bottom: 6px; color: var(--ink); }
  .bullets li::before { content: "\2013"; position: absolute; left: 0; color: var(--teal); }

  /* project cards */
  .proj-card { margin-bottom: 4px; }
  .proj-when { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 12px; color: var(--muted); flex: none; }
  .proj-people { font-size: 13px; color: var(--muted); line-height: 1.85; }
  .proj-people strong { color: var(--ink); font-weight: 600; }
  .proj-people a { color: var(--teal); text-decoration: none; border-bottom: 1px solid transparent; }
  .proj-people a:hover { border-bottom-color: var(--teal); }
  .plabel { font-family: var(--font-body); font-size: 12.5px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink); }
  .proj-people .plabel { display: block; margin: 12px 0 4px; }

  /* disclosure (click-to-expand) */
  .disclosure > summary {
    list-style: none; cursor: pointer;
    display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px;
    font-size: 15px; font-weight: 600; color: var(--ink);
    padding: 6px 0;
  }
  .disclosure > summary::-webkit-details-marker { display: none; }
  .disclosure > summary:hover { color: var(--teal); }
  .disclosure > summary:hover .tl-when { color: var(--teal); }
  .disclosure-title { flex: 1; min-width: 200px; line-height: 1.4; }
  .disclosure-title em { font-weight: 400; color: var(--muted); font-style: italic; }
  .disclosure-chev { margin-left: auto; flex: none; color: var(--faint); font-size: 17px; transition: transform .18s ease; }
  .disclosure[open] .disclosure-chev { transform: rotate(90deg); color: var(--teal); }
  .disclosure-body { padding: 2px 0 14px; animation: disclosure-in .15s ease; }
  @keyframes disclosure-in { from { opacity: 0; } to { opacity: 1; } }
  .proj-card .disclosure { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 22px; }
  .tl-entry .disclosure { border-bottom: 1px dashed var(--line); padding-bottom: 16px; }
  .tl-entry:last-child .disclosure { border-bottom: none; padding-bottom: 0; }
  .proj-card:last-child .disclosure { border-bottom: none; margin-bottom: 0; }
  @media (prefers-reduced-motion: reduce) {
    .disclosure-chev { transition: none; }
    .disclosure-body { animation: none; }
  }

  /* publications */
  .pub-list { display: flex; flex-direction: column; gap: 14px; }
  .pub-head { display: flex; justify-content: flex-start; gap: 10px; align-items: baseline; }
  .pub-head .pub-year { margin-left: auto; }
  .pub-status {
    font-family: var(--font-body); font-size: 11px; font-weight: 600;
    background: var(--rose-soft); color: var(--rose);
    padding: 2px 9px; border-radius: 3px;
  }
  .pub-speaker {
    font-family: var(--font-body); font-size: 11px; font-weight: 600;
    background: var(--teal-soft); color: var(--teal);
    padding: 2px 9px; border-radius: 3px;
  }
  .pub-title-pending { color: var(--muted); cursor: default; font-style: italic; }
  .pub-type { font-size: 11px; white-space: nowrap; }
  .pub-item {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-left: 3px solid var(--line);
    border-radius: 6px;
    padding: 18px 20px;
    box-shadow: var(--shadow);
    transition: border-color .15s ease;
  }
  .pub-item[data-type="cpaper"] { border-left-color: var(--blue); }
  .pub-item[data-type="jpaper"] { border-left-color: var(--green); }
  .pub-item[data-type="bookchapter"] { border-left-color: var(--purple); }
  .pub-item[data-type="book"] { border-left-color: var(--red); }
  .pub-item[data-type="thesis"] { border-left-color: var(--gold); }

  .pub-toolbar { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
  .pub-filters { display: flex; flex-wrap: wrap; gap: 8px; }
  .filter-pill {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--font-body); font-size: 12.5px; font-weight: 600;
    background: var(--paper-raised); border: 1px solid var(--line); color: var(--muted);
    padding: 6px 12px; border-radius: 999px; cursor: pointer;
  }
  .filter-pill:hover { border-color: var(--teal); color: var(--ink); }
  .filter-pill.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
  .filter-pill.active .pill-dot { outline: 1px solid rgba(255,255,255,.6); }
  .pill-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
  .pill-dot.chip-blue   { background: var(--blue); }
  .pill-dot.chip-red    { background: var(--red); }
  .pill-dot.chip-green  { background: var(--green); }
  .pill-dot.chip-purple { background: var(--purple); }
  .pill-dot.chip-gold   { background: var(--gold); }
  .pub-toolbar-right { display: flex; align-items: center; gap: 18px; }
  .pub-sort { display: flex; align-items: center; gap: 6px; }
  .pub-sort-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-right: 2px; }
  .pub-sort-btn {
    font-family: var(--font-mono); font-size: 13px; width: 26px; height: 26px; line-height: 1;
    background: var(--paper-raised); border: 1px solid var(--line); color: var(--muted); border-radius: 3px; cursor: pointer;
  }
  .pub-sort-btn.active { background: var(--teal); border-color: var(--teal); color: #fff; }
  .pub-empty { font-size: 13.5px; color: var(--faint); font-style: italic; padding: 24px 0; }
  .pub-year { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 12px; color: var(--faint); }
  .pub-title { font-size: 15px; font-weight: 600; line-height: 1.45; margin: 6px 0; color: var(--ink); text-decoration: none; display: block; }
  .pub-title:hover { color: var(--teal); }
  .pub-title .arrow { font-size: 12px; opacity: .5; margin-left: 4px; }
  .pub-authors { font-size: 13.5px; color: var(--muted); margin-bottom: 5px; }
  .pub-authors strong { color: var(--ink); font-weight: 700; }
  .pub-cite { font-size: 13px; color: var(--muted); font-style: italic; line-height: 1.5; }
  .pub-place {
    display: inline-block;
    font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase;
    color: var(--teal); margin-top: 7px;
  }
  .pub-directors { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
  .pub-directors .plabel { font-size: inherit; margin-right: 5px; }
  .pub-scholar { font-size: 13px; }
  .pub-scholar a { color: var(--teal); text-decoration: none; font-weight: 600; }
  .pub-scholar a:hover { text-decoration: underline; }

  /* contact page */
  .contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; }
  .contact-block dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 18px 0 4px; }
  .contact-block dt:first-child { margin-top: 0; }
  .contact-block dd { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink); }
  .contact-block a { color: var(--teal); text-decoration: none; border-bottom: 1px solid transparent; }
  .contact-block a:hover { border-bottom-color: var(--teal); }
  .profile-list { list-style: none; margin: 0; padding: 0; }
  .profile-list li { border-bottom: 1px solid var(--line); }
  .profile-list li:last-child { border-bottom: none; }
  .profile-list a { display: flex; justify-content: space-between; align-items: center; padding: 12px 2px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink); }
  .profile-list a:hover { color: var(--teal); }
  .profile-list .arrow { font-family: var(--font-mono); opacity: .4; font-size: 13px; }

  @media (max-width: 620px) {
    .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  }
