/* ---------------------------------------------------------------
   Web personal. Bandas alternas claras y oscuras.
   Paleta: azul marino / fondo frío / ámbar / cobalto.
   Tipografía: Bricolage Grotesque (variable) con reserva de sistema.
   --------------------------------------------------------------- */

:root {
  --navy: #0e1b33;
  --navy-2: #16294d;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --ink: #101828;
  --ink-2: #3d4a63;
  --muted: #667085;
  --line: #d9e0ec;
  --amber: #f2a93b;
  --amber-ink: #8a5300;
  --cobalt: #2456d4;
  --cobalt-dark: #183f9f;
  --on-dark: #eef2fa;
  --on-dark-2: #aab6cf;
  --font: "Bricolage Grotesque", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --gutter: 20px;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.9rem, 1.3rem + 2vw, 2.75rem);
  margin-bottom: 18px;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.25;
}

p { margin: 0; }
a { color: var(--cobalt); text-decoration: none; }
a:hover { color: var(--cobalt-dark); text-decoration: underline; text-underline-offset: 3px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { display: block; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap {
  width: min(100% - var(--gutter) * 2, var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 16px;
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
  z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- Cabecera ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 27, 51, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--on-dark);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand:hover { color: #fff; text-decoration: none; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--amber);
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: var(--r-sm);
  color: var(--on-dark-2);
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); text-decoration: none; }

.site-nav .nav-cta {
  margin-left: 10px;
  color: var(--navy);
  background: var(--amber);
}
.site-nav .nav-cta:hover { background: #ffbf5c; color: var(--navy); }

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--on-dark);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Portada ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--on-dark);
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(36, 86, 212, 0.35), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, #0b1529 100%);
  padding: clamp(72px, 10vw, 128px) 0 clamp(56px, 8vw, 96px);
}

.hero-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.11);
  pointer-events: none;
}

.hero-trace { stroke: var(--amber); }
.hero-nodes { fill: var(--amber); }

.hero-trace path {
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  animation: trace 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}
.hero-nodes circle {
  opacity: 0;
  animation: pop 0.4s ease 1.5s forwards;
}
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; } }

.hero-inner { position: relative; }

.hero-affil {
  max-width: 48ch;
  color: var(--on-dark-2);
  font-weight: 500;
  font-size: 0.95rem;
}

.hero-name {
  margin-top: 20px;
  font-size: clamp(2.9rem, 1.2rem + 7.2vw, 6.4rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 96;
  color: #fff;
}

.hero-role {
  margin-top: 22px;
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem);
  font-weight: 600;
  color: var(--amber);
}

.hero-lead {
  margin-top: 14px;
  max-width: 58ch;
  font-size: 1.125rem;
  color: var(--on-dark-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.hero-tags a {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: var(--on-dark);
  font-size: 0.9rem;
  font-weight: 500;
}
.hero-tags a:hover { border-color: var(--amber); color: #fff; text-decoration: none; }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { text-decoration: none; }

.btn-amber { background: var(--amber); color: var(--navy); }
.btn-amber:hover { background: #ffbf5c; color: var(--navy); }

.btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.06); }

.ico {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Bandas ---------- */

.band { padding: clamp(64px, 8vw, 104px) 0; }
.band-light { background: var(--surface); }
.band-soft { background: var(--bg); }
.band-dark { background: var(--navy); color: var(--on-dark); }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark a { color: #fff; }
.band-dark a:hover { color: var(--amber); }

.section-head {
  max-width: 64ch;
  margin-bottom: 40px;
}
.section-head p { color: var(--ink-2); font-size: 1.1rem; }

.lead {
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.lead + p { margin-top: 18px; }
.band-dark .lead { color: var(--on-dark-2); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.split-main { max-width: 60ch; }

/* ---------- Perfil: ficha ---------- */

.card-facts {
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 5px solid var(--amber);
  border-radius: var(--r-md);
  padding: 8px 24px;
}
.card-facts dl { margin: 0; }
.card-facts dl > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.card-facts dl > div:last-child { border-bottom: 0; }
.card-facts dt { color: var(--muted); font-size: 0.9rem; font-weight: 600; padding-top: 2px; }
.card-facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

/* ---------- Investigación: mosaico ---------- */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: grid;
  gap: 12px;
  align-content: start;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.tile:hover { border-color: var(--amber); }
.tile p { color: var(--ink-2); }

.tile-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--navy);
  color: var(--amber);
  margin-bottom: 6px;
}
.tile-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Seminario Permanente ---------- */

#seminario {
  background:
    radial-gradient(700px 400px at 10% 0%, rgba(242, 169, 59, 0.14), transparent 70%),
    var(--navy);
}

.seminar-head {
  max-width: 72ch;
  margin-bottom: 44px;
}

.seminar-kicker {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(242, 169, 59, 0.14);
  color: var(--amber);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.seminar-title {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 72;
  margin-bottom: 18px;
}

.seminar-lead {
  color: var(--on-dark-2);
  font-size: 1.125rem;
  margin-bottom: 28px;
}

.seminar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.seminar-link {
  display: block;
  padding: 22px 22px 24px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--on-dark);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.seminar-link:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--amber);
  color: var(--on-dark);
  text-decoration: none;
}
.seminar-link h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.seminar-link h3::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--amber);
  border-top: 2px solid var(--amber);
  transform: rotate(45deg);
  flex: none;
}
.seminar-link p { color: var(--on-dark-2); font-size: 0.98rem; }

/* ---------- Trayectoria ---------- */

.track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}
.track-item {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}
.track-item:last-child { border-right: 0; }
.track-item h3 { font-size: 1.05rem; margin: 10px 0 8px; }
.track-item p:last-child { color: var(--ink-2); font-size: 0.98rem; }

.track-figure {
  font-size: clamp(2.4rem, 2rem + 1.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 96;
  color: var(--navy);
}
.track-figure::after {
  content: "";
  display: block;
  width: 36px;
  height: 4px;
  margin-top: 12px;
  border-radius: 2px;
  background: var(--amber);
}

/* ---------- Docencia ---------- */

.teach { counter-reset: teach; }
.teach li {
  counter-increment: teach;
  position: relative;
  padding: 22px 0 22px 64px;
  border-top: 1px solid var(--line);
}
.teach li:last-child { border-bottom: 1px solid var(--line); }
.teach li::before {
  content: counter(teach, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 22px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--amber);
  font-weight: 700;
  font-size: 0.95rem;
}
.teach h3 { margin-bottom: 8px; }
.teach p { color: var(--ink-2); }

/* ---------- Cita ---------- */

.band-quote {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: clamp(56px, 7vw, 88px) 0;
}
.band-quote blockquote {
  margin: 0 auto;
  max-width: 44ch;
  text-align: center;
}
.band-quote p {
  font-size: clamp(1.35rem, 1.05rem + 1.3vw, 2rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--navy);
}
.band-quote p::before {
  content: "";
  display: block;
  width: 56px;
  height: 5px;
  margin: 0 auto 28px;
  border-radius: 3px;
  background: var(--amber);
}

/* ---------- Contacto ---------- */

.band-dark .contact-mail {
  display: inline-block;
  margin-top: 28px;
  font-size: clamp(1.4rem, 1rem + 2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--amber);
  border-bottom: 3px solid rgba(242, 169, 59, 0.4);
  overflow-wrap: anywhere;
}
.band-dark .contact-mail:hover { color: #ffbf5c; border-bottom-color: #ffbf5c; text-decoration: none; }

.contact-list li {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.contact-list li:first-child { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.contact-list span { color: var(--on-dark-2); font-size: 0.95rem; font-weight: 600; }
.contact-list a { font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Pie ---------- */

.site-footer {
  background: #0b1529;
  color: var(--on-dark-2);
  padding: 28px 0;
  font-size: 0.95rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-inner a { color: var(--on-dark); font-weight: 600; }
.footer-inner a:hover { color: var(--amber); }

/* ---------- 404 ---------- */

.error-page {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 64px 0;
}
.error-page h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem); margin-bottom: 14px; }
.error-page .lead { margin-bottom: 28px; }
.error-code { color: var(--amber-ink); font-weight: 700; margin-bottom: 10px; }

/* ---------- Responsivo ---------- */

@media (max-width: 1000px) {
  .seminar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .track-item:nth-child(2) { border-right: 0; }
  .track-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }

  .menu-button { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px var(--gutter) 16px;
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 14px; font-size: 1.05rem; }
  .site-nav .nav-cta { margin: 8px 0 0; text-align: center; }

  .hero-trace, .hero-nodes { display: none; }
  .hero-grid { color: rgba(255, 255, 255, 0.07); }
}

@media (max-width: 560px) {
  .seminar-grid { grid-template-columns: 1fr; }
  .track { grid-template-columns: 1fr; }
  .track-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .track-item:last-child { border-bottom: 0; }
  .card-facts dl > div { grid-template-columns: 1fr; gap: 2px; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
  .teach li { padding-left: 56px; }
  .brand-text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-trace path { animation: none; stroke-dashoffset: 0; }
  .hero-nodes circle { animation: none; opacity: 1; }
  .menu-button span, .btn, .tile, .seminar-link { transition: none; }
}

/* ---------- Botón oscuro ---------- */

.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }

/* ---------- Cabecera de sección con acción ---------- */

.section-head-row {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.section-head-row > div { max-width: 64ch; }
.section-head-row .btn { flex: none; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* ---------- Trayectoria: destacados ---------- */

.highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.highlight {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
}
.highlight h3 { margin-bottom: 14px; }
.highlight p { color: var(--ink-2); }
.highlight-amber { border-left: 5px solid var(--amber); }

.plain-list li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-2);
}
.plain-list li + li { margin-top: 10px; }
.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}

/* ---------- Listas de enlaces con icono ---------- */

.press-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.press-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
}
.press-links a:hover { border-color: var(--amber); text-decoration: none; color: var(--navy); }
.press-links .ico { width: 16px; height: 16px; flex: none; color: var(--amber-ink); }
.tile .press-links { margin-top: 4px; }

/* ---------- Prensa: lista reciente en portada ---------- */

.press-recent li {
  display: grid;
  grid-template-columns: 170px 1fr 260px;
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.press-recent li:last-child { border-bottom: 1px solid var(--line); }
.press-recent a { color: var(--ink); font-weight: 600; font-size: 1.05rem; }
.press-recent a:hover { color: var(--cobalt); }
.press-date { color: var(--amber-ink); font-weight: 600; font-size: 0.95rem; }
.press-src { color: var(--muted); font-size: 0.92rem; text-align: right; }

/* ---------- Blog ---------- */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  color: var(--ink);
}
.blog-card:hover { border-color: var(--amber); text-decoration: none; color: var(--ink); }
.blog-card time { color: var(--amber-ink); font-weight: 600; font-size: 0.92rem; }
.blog-card h3 { font-size: 1.12rem; }
.blog-card p { color: var(--ink-2); font-size: 0.98rem; }
.blog-card .blog-tags { margin-top: auto; padding-top: 6px; color: var(--muted); font-size: 0.88rem; }
.blog-fallback { grid-column: 1 / -1; color: var(--ink-2); }

/* ---------- Página interior ---------- */

.page-head {
  background:
    radial-gradient(700px 400px at 90% 0%, rgba(36, 86, 212, 0.35), transparent 70%),
    var(--navy);
  color: var(--on-dark);
  padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 5vw, 56px);
}
.page-head h1 {
  font-size: clamp(2.4rem, 1.4rem + 4vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 96;
  color: #fff;
  margin-bottom: 16px;
}
.page-head .lead { max-width: 64ch; color: var(--on-dark-2); }
.page-crumb { color: var(--on-dark-2); font-size: 0.95rem; margin-bottom: 14px; }
.page-crumb a { color: var(--amber); }

.page-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.page-toc a {
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}
.page-toc a:hover { border-color: var(--amber); text-decoration: none; }

/* ---------- Prensa: archivo completo ---------- */

.press-wrap { padding: clamp(40px, 6vw, 72px) 0; }

.press-group + .press-group { margin-top: clamp(40px, 6vw, 72px); }
.press-group h2 {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.press-group h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.press-list {
  display: grid;
  gap: 16px;
}
.press-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 28px;
  scroll-margin-top: 84px;
}
.press-item:target { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(242, 169, 59, 0.25); }
.press-item h3 { font-size: 1.25rem; margin-bottom: 6px; }
.press-item p { color: var(--ink-2); }
.press-item p + p { margin-top: 10px; }
.press-meta { color: var(--amber-ink) !important; font-weight: 600; font-size: 0.95rem; margin-bottom: 10px; }

.press-talks {
  counter-reset: talk;
  margin: 10px 0 4px;
  display: grid;
  gap: 6px;
}
.press-talks li {
  counter-increment: talk;
  position: relative;
  padding-left: 36px;
}
.press-talks li::before {
  content: counter(talk);
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 700;
}
.press-talks a { color: var(--ink); font-weight: 500; }
.press-talks a:hover { color: var(--cobalt); }

.press-videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.yt {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--navy);
}
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.yt-play img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60px;
  height: 42px;
  transform: translate(-50%, -50%);
  border-radius: 10px;
  background: var(--amber);
  transition: background-color 0.2s ease;
}
.yt-btn::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 12px;
  border-left: 16px solid var(--navy);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}
.yt-play:hover .yt-btn { background: #ffbf5c; }
.yt-play:focus-visible { outline: 3px solid var(--amber); outline-offset: -3px; }

/* ---------- Responsivo (añadidos) ---------- */

@media (max-width: 1080px) {
  .menu-button { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px var(--gutter) 16px;
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 14px; font-size: 1.05rem; }
  .site-nav .nav-cta { margin: 8px 0 0; text-align: center; }
}

@media (max-width: 1000px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .grid-3, .highlights, .blog-grid { grid-template-columns: 1fr; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .press-recent li { grid-template-columns: 1fr; gap: 4px; }
  .press-src { text-align: left; }
  .press-item { padding: 22px 20px; }
}

/* ---------- Docencia: libros ---------- */

.books-wrap { margin-top: clamp(40px, 5vw, 64px); }
.books-title { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); margin-bottom: 14px; }
.books-wrap .section-head { margin-bottom: 28px; }

.books {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.book {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 28px 26px 34px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.book::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 22px;
  bottom: 22px;
  width: 6px;
  border-radius: 3px;
  background: var(--navy);
}
.book-year {
  color: var(--amber-ink);
  font-weight: 700;
  font-size: 0.92rem;
}
.book h4 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.book-meta { color: var(--muted) !important; font-size: 0.95rem; }
.book p { color: var(--ink-2); }
.book .press-links { margin-top: 4px; }

@media (max-width: 820px) {
  .books { grid-template-columns: 1fr; }
}

.tile-meta { color: var(--muted) !important; font-size: 0.92rem; margin-top: -4px; }
