:root {
  --navy: #071f3d;
  --navy-soft: #0d315d;
  --blue: #176b87;
  --teal: #0a8f86;
  --aqua: #69d3c5;
  --gold: #d7a74c;
  --ivory: #f8f5ef;
  --paper: #ffffff;
  --ink: #152238;
  --muted: #5d697b;
  --line: rgba(7, 31, 61, 0.12);
  --shadow: 0 22px 60px rgba(7, 31, 61, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--navy);
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 8px 28px rgba(7,31,61,.06); }
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  border-radius: 13px;
  color: white;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  box-shadow: 0 8px 24px rgba(10,143,134,.22);
  font-family: "Playfair Display", serif;
}
.brand-text { color: var(--navy); font-size: 1.05rem; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: .94rem; font-weight: 600; color: #34445b; }
.site-nav a { transition: color .2s ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--teal); }
.nav-cta { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; }
.menu-button { display: none; border: 0; background: transparent; padding: 8px; }
.menu-button span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px; transition: transform .2s ease; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 86px;
  background:
    radial-gradient(circle at 8% 8%, rgba(105,211,197,.22), transparent 30%),
    radial-gradient(circle at 88% 22%, rgba(215,167,76,.15), transparent 26%),
    linear-gradient(180deg, #fbfdfd 0%, #f7faf9 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: auto auto -220px -180px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(10,143,134,.18);
  border-radius: 50%;
  box-shadow: 0 0 0 46px rgba(10,143,134,.035), 0 0 0 92px rgba(10,143,134,.025);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 76px; align-items: center; }
.eyebrow { margin: 0 0 16px; color: var(--teal); font-size: .79rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; color: var(--navy); line-height: 1.16; }
h1, h2 { font-family: "Playfair Display", Georgia, serif; }
h1 { margin-bottom: 24px; font-size: clamp(3.2rem, 7vw, 6rem); letter-spacing: -.045em; }
h1 span { color: var(--teal); }
h2 { margin-bottom: 20px; font-size: clamp(2.25rem, 4.2vw, 4rem); letter-spacing: -.035em; }
h3 { margin-bottom: 12px; font-size: 1.22rem; }
.hero-lead { max-width: 680px; margin: 0; color: #405066; font-size: clamp(1.08rem, 2vw, 1.28rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: linear-gradient(135deg, var(--navy), var(--navy-soft)); box-shadow: 0 14px 30px rgba(7,31,61,.18); }
.button-primary:hover { box-shadow: 0 18px 34px rgba(7,31,61,.24); }
.button-secondary { color: var(--navy); border: 1px solid rgba(7,31,61,.2); background: rgba(255,255,255,.55); }
.button-light { color: var(--navy); background: white; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-tags span, .project-tags span, .project-tags a {
  padding: 7px 11px;
  border: 1px solid rgba(7,31,61,.11);
  border-radius: 999px;
  color: #4b5b6d;
  background: rgba(255,255,255,.62);
  font-size: .82rem;
}
.hero-visual { position: relative; min-height: 530px; display: grid; place-items: center; }
.visual-card {
  width: min(100%, 470px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 36px;
  background: rgba(255,255,255,.74);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}
.visual-card img { width: 100%; aspect-ratio: 1 / .94; object-fit: cover; }
.visual-caption { display: flex; justify-content: space-between; gap: 20px; padding: 20px 22px; border-top: 1px solid var(--line); }
.visual-caption strong { color: var(--navy); }
.visual-caption span { color: var(--muted); font-size: .88rem; }
.floating-note {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 17px;
  border-radius: 16px;
  color: var(--navy);
  background: white;
  box-shadow: 0 16px 44px rgba(7,31,61,.16);
  font-size: .9rem;
  font-weight: 600;
}
.floating-note span { color: var(--teal); font-size: 1.15rem; font-weight: 800; }
.note-one { top: 46px; left: -14px; }
.note-two { right: -8px; bottom: 70px; }

.metrics { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.metrics article { padding: 26px 24px; border-right: 1px solid var(--line); }
.metrics article:first-child { padding-left: 0; }
.metrics article:last-child { border-right: 0; }
.metrics strong { display: block; color: var(--navy); font-size: 1.13rem; }
.metrics span { color: var(--muted); font-size: .88rem; }

.section { padding: 112px 0; }
.section-tinted { background: var(--ivory); }
.section-heading { max-width: 680px; }
.section-heading.centered { margin: 0 auto 54px; text-align: center; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.03rem; }
.split-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 100px; align-items: start; }
.profile-copy { max-width: 720px; }
.large-text { margin-top: 0; color: var(--navy); font-family: "Playfair Display", serif; font-size: clamp(1.45rem, 2.6vw, 2.05rem); line-height: 1.45; }
.profile-copy > p:not(.large-text) { color: var(--muted); }
.profile-list { margin-top: 38px; border-top: 1px solid var(--line); }
.profile-list > div { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.profile-list span { color: var(--teal); font-weight: 800; }
.profile-list p { margin: 0; }
.inline-external { color: var(--teal-dark); font-weight: 750; text-decoration: underline; text-decoration-color: rgba(20, 131, 128, .35); text-underline-offset: 4px; }
.inline-external:hover, .inline-external:focus-visible { color: var(--navy); text-decoration-color: currentColor; }
.inline-external span { color: inherit; font-weight: inherit; }

.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { min-height: 260px; padding: 30px; border: 1px solid rgba(7,31,61,.09); border-radius: var(--radius-md); background: rgba(255,255,255,.78); box-shadow: 0 12px 34px rgba(7,31,61,.05); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(7,31,61,.09); }
.card-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 36px; border-radius: 13px; color: var(--teal); background: rgba(105,211,197,.18); font-size: .84rem; font-weight: 800; }
.card p { margin: 0; color: var(--muted); }

.projects-list { margin-top: 54px; border-top: 1px solid var(--line); }
.project { display: grid; grid-template-columns: 90px 1fr; gap: 30px; padding: 38px 0; border-bottom: 1px solid var(--line); }
.project-number { color: var(--teal); font-size: 1rem; font-weight: 800; }
.project-content { display: grid; grid-template-columns: 1.25fr 1.5fr; column-gap: 44px; align-items: start; }
.project-label { grid-column: 1; margin: 0 0 8px; color: var(--teal); font-size: .77rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.project h3 { grid-column: 1; margin-bottom: 0; font-family: "Playfair Display", serif; font-size: clamp(1.6rem, 2.5vw, 2.25rem); }
.project h3 a { color: var(--navy); text-decoration: none; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.project h3 a:hover, .project h3 a:focus-visible { color: var(--teal); text-decoration: underline; }
.project-tags a { transition: color .2s ease, border-color .2s ease, background .2s ease; }
.project-tags a:hover, .project-tags a:focus-visible { color: white; border-color: var(--teal); background: var(--teal); outline: 0; }
.project-more { grid-column: 2; display: inline-flex; align-items: center; gap: 8px; width: max-content; margin-top: 18px; color: var(--teal); font-size: .88rem; font-weight: 800; }
.project-more span { transition: transform .2s ease; }
.project-more:hover span, .project-more:focus-visible span { transform: translateX(5px); }
.project-content > p:not(.project-label) { grid-column: 2; grid-row: 1 / span 2; margin: 0; color: var(--muted); }
.project-tags { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.project-featured { margin-top: 12px; }

.publications-section { color: white; background: var(--navy); }
.section-heading.light h2, .section-heading.light p { color: white; }
.section-heading.light .eyebrow { color: var(--aqua); }
.section-heading.light > p:last-child { color: rgba(255,255,255,.68); }
.publication-list { margin-top: 52px; border-top: 1px solid rgba(255,255,255,.15); }
.publication { display: grid; grid-template-columns: 90px 1fr; gap: 34px; padding: 30px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.publication-year { color: var(--aqua); font-weight: 800; }
.publication h3 { margin-bottom: 8px; color: white; font-family: "Playfair Display", serif; font-size: clamp(1.35rem, 2.2vw, 1.85rem); }
.publication-title { color: white; text-decoration: none; text-decoration-thickness: 1px; text-underline-offset: 5px; transition: color .2s ease, text-decoration-color .2s ease; }
.publication-title:hover, .publication-title:focus-visible { color: var(--aqua); text-decoration: underline; text-decoration-color: rgba(105,211,197,.7); }
.publication p { max-width: 820px; margin: 0 0 12px; color: rgba(255,255,255,.67); }
.publication-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.journal { color: rgba(255,255,255,.9); font-size: .86rem; font-weight: 700; }
.doi-link { display: inline-flex; align-items: center; gap: 5px; color: var(--aqua); font-size: .82rem; font-weight: 700; overflow-wrap: anywhere; }
.doi-link:hover, .doi-link:focus-visible { color: white; text-decoration: underline; text-underline-offset: 4px; }
.profile-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.profile-links a { padding: 11px 16px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: white; font-size: .9rem; }
.profile-links a:hover { background: rgba(255,255,255,.08); }

.teaching-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; align-items: start; }
.teaching-topics { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.teaching-topic {
  position: relative;
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.teaching-topic:hover, .teaching-topic:focus-visible {
  z-index: 1;
  background: #f7fbfa;
  box-shadow: 0 16px 34px rgba(7,31,61,.08);
  transform: translateY(-3px);
  outline: 0;
}
.teaching-topic .topic-number { color: var(--teal); font-weight: 800; }
.teaching-topic h3 { margin-top: 34px; }
.teaching-topic p { margin-bottom: 22px; color: var(--muted); }
.topic-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; color: var(--teal); font-size: .88rem; }
.topic-link span { transition: transform .2s ease; }
.teaching-topic:hover .topic-link span, .teaching-topic:focus-visible .topic-link span { transform: translateX(5px); }

.contact-section { padding: 0 0 92px; }
.contact-card { display: flex; align-items: center; justify-content: space-between; gap: 60px; padding: 58px; border-radius: var(--radius-lg); color: white; background: linear-gradient(135deg, var(--teal), #08706a 60%, var(--navy)); box-shadow: 0 24px 60px rgba(7,31,61,.18); }
.contact-card .eyebrow { color: rgba(255,255,255,.72); }
.contact-card h2 { color: white; }
.contact-card p { max-width: 700px; margin-bottom: 0; color: rgba(255,255,255,.78); }
.contact-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; flex-shrink: 0; }
.text-link { color: white; font-weight: 700; }

.site-footer { padding: 54px 0; color: rgba(255,255,255,.68); background: #04152b; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .8fr; gap: 50px; align-items: start; }
.footer-brand .brand-text { color: white; }
.footer-grid p { max-width: 420px; font-size: .9rem; }
.footer-links { display: grid; gap: 10px; }
.footer-links a:hover { color: white; }
.footer-meta { text-align: right; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .site-nav {
    position: absolute;
    top: 78px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: white;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 14px; }
  .menu-button { display: block; }
  .hero-grid, .split-grid, .teaching-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero { padding-top: 70px; }
  .hero-visual { min-height: 480px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .project-content { grid-template-columns: 1fr; }
  .project-content > p:not(.project-label), .project-tags, .project-more { grid-column: 1; grid-row: auto; }
  .project-content > p:not(.project-label) { margin-top: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-meta { text-align: left; }
}

@media (max-width: 700px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .hero { padding: 58px 0 68px; }
  h1 { font-size: clamp(2.9rem, 14vw, 4.5rem); }
  .hero-visual { min-height: 390px; }
  .floating-note { font-size: .8rem; padding: 10px 12px; }
  .note-one { top: 22px; left: -4px; }
  .note-two { right: -2px; bottom: 35px; }
  .visual-caption { flex-direction: column; gap: 3px; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .metrics article { padding: 20px 12px; border-bottom: 1px solid var(--line); }
  .metrics article:nth-child(2) { border-right: 0; }
  .metrics article:nth-last-child(-n+2) { border-bottom: 0; }
  .section { padding: 80px 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .card { min-height: 220px; }
  .project, .publication { grid-template-columns: 52px 1fr; gap: 12px; }
  .project { padding: 28px 0; }
  .teaching-topics { grid-template-columns: 1fr; }
  .contact-card { align-items: flex-start; flex-direction: column; padding: 38px 28px; }
  .contact-actions { align-items: stretch; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}


/* Páginas temáticas */
.topic-page { background: #fbfcfc; }
.topic-page .site-header { background: rgba(255,255,255,.94); }
.topic-hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 74px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 14% 20%, rgba(105,211,197,.22), transparent 30%),
    radial-gradient(circle at 88% 22%, rgba(215,167,76,.13), transparent 24%),
    linear-gradient(180deg, #fbfdfd 0%, #f4f9f8 100%);
}
.topic-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -210px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(10,143,134,.17);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(10,143,134,.028), 0 0 0 84px rgba(10,143,134,.02);
}
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; color: var(--muted); font-size: .88rem; }
.breadcrumb a { color: var(--teal); font-weight: 700; }
.topic-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: 70px; align-items: end; }
.topic-kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--teal); font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.topic-kicker::before { content: ""; width: 36px; height: 2px; background: var(--teal); }
.topic-hero h1 { max-width: 860px; margin-bottom: 22px; font-size: clamp(3rem, 6vw, 5.4rem); }
.topic-hero h1 span { color: var(--teal); }
.topic-intro { max-width: 790px; margin: 0; color: #405066; font-size: clamp(1.08rem, 2vw, 1.28rem); }
.topic-summary {
  padding: 28px;
  border: 1px solid rgba(7,31,61,.1);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.78);
  box-shadow: 0 18px 44px rgba(7,31,61,.08);
}
.topic-summary strong { display: block; margin-bottom: 10px; color: var(--navy); font-family: "Playfair Display", serif; font-size: 1.35rem; }
.topic-summary p { margin: 0; color: var(--muted); }
.topic-section { padding: 92px 0; }
.topic-section.alt { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ivory); }
.definition-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 86px; align-items: start; }
.sticky-label { position: sticky; top: 112px; }
.sticky-label h2 { font-size: clamp(2rem, 3.5vw, 3.35rem); }
.definition-card {
  padding: 38px;
  border: 1px solid rgba(7,31,61,.1);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: 0 18px 46px rgba(7,31,61,.07);
}
.definition-card > p:first-child { margin-top: 0; color: var(--navy); font-family: "Playfair Display", serif; font-size: clamp(1.45rem, 2.5vw, 2.05rem); line-height: 1.45; }
.definition-card p { color: var(--muted); }
.source-note { display: flex; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.source-note span { color: var(--teal); font-weight: 800; }
.source-note a { color: var(--teal); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.concept-grid, .example-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 42px; }
.concept-card, .example-card {
  padding: 26px;
  border: 1px solid rgba(7,31,61,.09);
  border-radius: var(--radius-md);
  background: white;
  box-shadow: 0 10px 30px rgba(7,31,61,.045);
}
.concept-card span, .example-card span { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 24px; border-radius: 12px; color: var(--teal); background: rgba(105,211,197,.18); font-size: .82rem; font-weight: 800; }
.concept-card h3, .example-card h3 { margin-bottom: 10px; }
.concept-card p, .example-card p { margin: 0; color: var(--muted); }
.section-intro { max-width: 760px; color: var(--muted); font-size: 1.04rem; }
.case-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 30px;
  margin-top: 42px;
  padding: 36px;
  border-radius: var(--radius-lg);
  color: white;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft) 65%, var(--teal));
  box-shadow: var(--shadow);
}
.case-number { color: var(--aqua); font-size: 1.8rem; font-weight: 800; }
.case-card h3 { color: white; font-family: "Playfair Display", serif; font-size: clamp(1.5rem, 2.5vw, 2.15rem); }
.case-card p { margin-bottom: 0; color: rgba(255,255,255,.75); }
.checklist { display: grid; gap: 14px; margin-top: 34px; padding: 0; list-style: none; }
.checklist li { position: relative; padding: 18px 20px 18px 54px; border: 1px solid var(--line); border-radius: 14px; background: white; color: var(--muted); }
.checklist li::before { content: "✓"; position: absolute; left: 20px; top: 17px; display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; color: white; background: var(--teal); font-size: .75rem; font-weight: 800; }
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 38px; }
.resource-card { display: flex; min-height: 190px; flex-direction: column; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; transition: transform .2s ease, box-shadow .2s ease; }
.resource-card:hover, .resource-card:focus-visible { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(7,31,61,.08); outline: 0; }
.resource-card small { color: var(--teal); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.resource-card strong { margin: 18px 0 8px; color: var(--navy); font-size: 1.12rem; }
.resource-card p { margin: 0 0 20px; color: var(--muted); font-size: .9rem; }
.resource-card .resource-link { margin-top: auto; color: var(--teal); font-weight: 800; }
.topic-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 36px; }
.topic-nav a { padding: 18px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); background: white; font-size: .9rem; transition: border-color .2s ease, color .2s ease, transform .2s ease; }
.topic-nav a:hover, .topic-nav a:focus-visible, .topic-nav a[aria-current="page"] { color: var(--navy); border-color: rgba(10,143,134,.45); transform: translateY(-2px); outline: 0; }
.topic-nav a[aria-current="page"] { background: rgba(105,211,197,.12); }
.notice-box { margin-top: 34px; padding: 22px 24px; border-left: 4px solid var(--gold); border-radius: 0 14px 14px 0; background: #fffaf0; color: #655631; }
.notice-box strong { color: var(--navy); }

@media (max-width: 980px) {
  .topic-hero-grid, .definition-grid { grid-template-columns: 1fr; gap: 44px; }
  .sticky-label { position: static; }
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
  .topic-nav { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .topic-hero { padding: 58px 0; }
  .topic-hero h1 { font-size: clamp(2.7rem, 13vw, 4rem); }
  .topic-section { padding: 72px 0; }
  .definition-card { padding: 28px 22px; }
  .concept-grid, .example-grid, .resource-grid, .topic-nav { grid-template-columns: 1fr; }
  .case-card { grid-template-columns: 1fr; padding: 28px 22px; }
  .case-number { font-size: 1.25rem; }
}


/* Trabajos seleccionados en páginas de proyectos */
.work-list { display: grid; gap: 16px; margin-top: 38px; }
.work-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 24px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: white;
  box-shadow: 0 10px 28px rgba(7,31,61,.045);
}
.work-year { color: var(--teal); font-weight: 800; }
.work-body h3 { margin-bottom: 9px; font-family: "Playfair Display", serif; font-size: clamp(1.25rem, 2vw, 1.65rem); }
.work-body p { margin: 0; color: var(--muted); }
.work-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 14px; color: #627086; font-size: .82rem; }
.work-type { font-weight: 800; color: var(--teal-dark); }
.work-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; color: var(--teal); font-size: .86rem; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.work-note { margin-top: 26px; color: var(--muted); font-size: .9rem; }
.project-page-nav-label { margin: 52px 0 14px; color: var(--teal); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

@media (max-width: 700px) {
  .work-card { grid-template-columns: 1fr; gap: 8px; padding: 22px; }
}


.profile-visual-card img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}
.profile-caption {
  align-items: flex-start;
}
.collaboration-list .work-card {
  background: rgba(255,255,255,.92);
}
.work-inline-link {
  color: var(--teal);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.work-inline-link:hover,
.work-inline-link:focus-visible {
  color: var(--navy);
}
