/* ======================================================
   Alvaro Cardenas Orozco — sitio personal (Propuesta C)
   Fondo claro cálido, bloques en rejilla, un solo acento
   ====================================================== */

:root {
  --ground: #f1f0ec;
  --paper: #ffffff;
  --soft: #e2e1db;
  --ink: #111312;
  --ink-2: #3d4240;
  --muted: #555b58;
  --line: #b9bcb8;
  --on-ink: #f1f0ec;
  --on-ink-2: #c4c7c3;
  --accent: #c6f432;
  --gutter: clamp(16px, 4.4vw, 64px);
  --gap: clamp(12px, 1.2vw, 16px);
  --r-lg: clamp(24px, 2vw, 32px);
  --r-md: clamp(22px, 2vw, 28px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: 'Instrument Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--ink-2); }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.it { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.mono { font-family: 'JetBrains Mono', monospace; font-size: 13px; }
.muted { color: var(--muted); }
.accent-text { color: var(--accent); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 26px; border-radius: 999px; border: 0;
  font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .3s var(--ease), background-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { color: #fff; background: #2a2e2c; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { color: var(--ink); }
.btn-line { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-block { display: flex; width: 100%; height: auto; min-height: 54px; padding: 14px 22px; white-space: normal; text-align: center; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--ground);
}
.brand { font-size: 18px; font-weight: 700; text-decoration: none; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 4px; padding: 6px; border-radius: 999px; background: var(--paper); font-size: 15px; font-weight: 500; }
.nav-links a { padding: 10px 18px; border-radius: 999px; text-decoration: none; transition: background-color .2s; }
.nav-links a:hover { background: var(--ground); }
.nav-cta { height: 48px; padding: 0 22px; font-size: 15px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--paper); color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }

/* ---------- Tiles genéricos ---------- */
.tile { border-radius: var(--r-md); background: var(--paper); padding: clamp(24px, 2.4vw, 36px); }

/* ---------- Portada ---------- */
.hero {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap);
  padding-top: 8px;
}
.hero-main {
  grid-column: span 8; min-height: 640px; padding: clamp(28px, 3.9vw, 56px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
}
.hero h1 { font-size: clamp(46px, 6.7vw, 96px); line-height: 0.96; letter-spacing: -0.045em; font-weight: 600; }
.hero h1 .it { font-size: 1.08em; }
.hero-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero-foot p { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.45; color: var(--ink-2); max-width: 460px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-photo { grid-column: span 4; width: 100%; height: 100%; min-height: 640px; object-fit: cover; object-position: 50% 14%; border-radius: var(--r-md); }

.stat { grid-column: span 4; min-height: 208px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.stat-num { font-size: clamp(52px, 5.6vw, 80px); line-height: 0.9; letter-spacing: -0.05em; font-weight: 600; }
.stat p { font-size: 17px; line-height: 1.4; color: var(--ink-2); max-width: 340px; }
.stat-accent { background: var(--accent); }
.stat-accent p { color: var(--ink); }
.stat-ink { background: var(--ink); color: var(--on-ink); }
.stat-ink p { color: var(--on-ink-2); }

/* ---------- Aliados ---------- */
.allies { margin-top: 96px; display: flex; align-items: baseline; gap: 48px; }
.allies > .mono { flex-shrink: 0; width: 180px; }
.allies ul { display: flex; flex-wrap: wrap; gap: 14px 36px; font-size: clamp(17px, 1.55vw, 22px); font-weight: 500; letter-spacing: -0.01em; color: var(--ink-2); }

/* ---------- Secciones ---------- */
.section { margin-top: clamp(96px, 11vw, 160px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(52px, 6.7vw, 96px); line-height: 0.95; letter-spacing: -0.05em; font-weight: 600; }
.section-head > p, .section-side p { font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.section-head > p { max-width: 380px; }
.section-side { max-width: 420px; display: flex; flex-direction: column; gap: 16px; }
.link-strong { font-size: 17px; font-weight: 600; }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(340px, auto); gap: var(--gap); }
.card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  border-radius: var(--r-md); padding: clamp(24px, 2.5vw, 36px);
  background: var(--paper); color: var(--ink); text-decoration: none;
  transition: transform .4s var(--ease);
}
.card:hover { color: var(--ink); transform: translateY(-4px); }
.card:hover .go { transform: rotate(-45deg); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.card-top .mono { font-size: 14px; color: var(--muted); }
.go { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 999px; background: var(--ground); color: var(--ink); transition: transform .4s var(--ease); }
.go-accent { background: var(--accent); }
.go-white { background: var(--paper); }
.card h3 { font-size: clamp(26px, 2.5vw, 36px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 600; }
.card p { margin-top: 14px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.card-wide { grid-column: span 2; }
.card-title-lg { font-size: clamp(34px, 3.9vw, 56px) !important; line-height: 1 !important; letter-spacing: -0.04em !important; }
.card-ink { background: var(--ink); color: var(--on-ink); }
.card-ink:hover { color: var(--on-ink); }
.card-ink .card-top .mono, .card-ink p { color: var(--on-ink-2); }
.card-ink p { font-size: 18px; max-width: 580px; }
.card-soft { background: var(--soft); }

/* ---------- Resultados ---------- */
.results {
  margin-top: clamp(96px, 11vw, 160px);
  border-radius: var(--r-lg); background: var(--ink); color: var(--on-ink);
  padding: clamp(28px, 4.4vw, 64px);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px;
  min-height: 620px;
}
.results-text { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.results-text .mono, .results .soft { color: var(--on-ink-2); }
.results h2 { font-size: clamp(34px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 600; }
.results-data { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.big-num { font-size: clamp(88px, 10.4vw, 150px); line-height: 0.85; letter-spacing: -0.06em; font-weight: 600; }
.results .soft { margin-top: 14px; font-size: 18px; }
.teams { border-top: 1px solid var(--ink-2); }
.teams li { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--ink-2); font-size: 20px; font-weight: 600; }
.teams li:last-child { border-bottom: 0; padding-bottom: 0; }
.chip { font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--accent); color: var(--ink); }

/* ---------- Testimonios ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.quote { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 280px; }
.quote blockquote { font-size: clamp(26px, 2.1vw, 30px); line-height: 1.15; }
.quote figcaption { color: var(--muted); }
.quote-wide { grid-column: span 2; }
.quote-wide blockquote { font-size: clamp(32px, 3.3vw, 48px); line-height: 1.05; max-width: 820px; }
.quote-ink { background: var(--ink); color: var(--on-ink); }
.quote-ink figcaption { color: var(--on-ink-2); }
.quote-accent { background: var(--accent); }
.quote-accent figcaption { color: var(--ink); }

/* ---------- Libros ---------- */
.books { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); }
.book { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); }
.book:hover { color: var(--ink); }
.book img { width: 100%; aspect-ratio: 7 / 10; height: auto; object-fit: cover; border-radius: 14px; margin-bottom: 8px; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.book:hover img { transform: translateY(-6px); box-shadow: 0 14px 28px rgba(17, 19, 18, .16); }
.book-title { font-size: 15px; font-weight: 600; line-height: 1.3; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color .25s; }
.book:hover .book-title { text-decoration-color: var(--ink); }

/* ---------- Credenciales ---------- */
.creds { margin-top: 140px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px var(--gap); }
.creds > div { border-top: 1px solid var(--ink); padding-top: 22px; }
.creds h3 { font-size: clamp(24px, 2.5vw, 36px); font-weight: 600; letter-spacing: -0.03em; }
.creds p { margin-top: 10px; font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.creds > .creds-cta { grid-column: 1 / -1; border-top: 0; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.creds > .creds-cta { align-items: flex-end; margin-top: 40px; }
.bio { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.bio h2 { font-size: clamp(36px, 3.9vw, 56px); line-height: 1; letter-spacing: -0.04em; font-weight: 600; }
.creds-cta .bio p { margin-top: 0; font-size: 18px; line-height: 1.55; color: var(--ink-2); }

/* ---------- Contacto ---------- */
.contact {
  margin-top: 140px; border-radius: var(--r-lg); background: var(--accent);
  padding: clamp(32px, 4.4vw, 64px);
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px;
}
.contact-text { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.contact h2 { font-size: clamp(72px, 9.7vw, 140px); line-height: 0.88; letter-spacing: -0.06em; font-weight: 600; }
.contact-text p { font-size: clamp(16px, 1.4vw, 20px); line-height: 1.5; max-width: 480px; }
.contact-card { border-radius: 24px; background: var(--paper); padding: clamp(24px, 2.2vw, 32px); display: flex; flex-direction: column; gap: 24px; align-self: end; }
.contact-list li { display: flex; flex-direction: column; gap: 6px; padding: 16px 0; border-top: 1px solid var(--soft); }
.contact-list li:last-child { padding-bottom: 0; }
.contact-list a { font-size: clamp(17px, 1.5vw, 20px); font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Pie ---------- */
.footer { margin-top: 96px; padding: 28px 80px 44px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-2); }
.footer a { color: var(--ink-2); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 30;
  width: 56px; height: 56px; border-radius: 999px; background: var(--ink); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(17, 19, 18, .25);
  transition: transform .3s var(--ease);
}
.wa-float:hover { color: var(--accent); transform: translateY(-3px); }

/* ---------- Aparición al desplazarse ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.visible { opacity: 1; transform: none; }

/* ======================================================
   Tableta
   ====================================================== */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 80px; left: 0; right: 0;
    padding: 10px; border-radius: 24px; box-shadow: 0 12px 32px rgba(17, 19, 18, .12);
  }
  .nav-links.open a { padding: 14px 18px; font-size: 17px; }
}

@media (max-width: 1080px) {

  .hero-main { grid-column: span 12; min-height: 0; }
  .hero-photo { grid-column: span 12; min-height: 0; height: clamp(360px, 60vw, 560px); }

  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .card { min-height: 280px; }
  .results { grid-template-columns: minmax(0, 1fr); gap: 40px; min-height: 0; }
  .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .books { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px var(--gap); }
  .creds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

/* ======================================================
   Móvil
   ====================================================== */
@media (max-width: 680px) {
  .nav { height: 72px; }
  .brand { font-size: 16px; }
  .nav-links.open { top: 66px; }

  .stat { grid-column: span 6; min-height: 0; }
  .stat-accent { grid-column: span 12; }
  .stat p { font-size: 14px; }
  .stat-accent p { font-size: 15px; }
  .stat:not(.stat-accent) .stat-num { font-size: 40px; }
  .actions { width: 100%; flex-direction: column; }
  .actions .btn { width: 100%; }

  .allies { margin-top: 64px; flex-direction: column; gap: 16px; }
  .allies ul { gap: 8px 20px; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 28px; }

  .services { grid-template-columns: 1fr; }
  .card-wide { grid-column: auto; }
  .card { min-height: 0; }
  .card-ink p { font-size: 15px; }
  .card p { font-size: 15px; }
  .go { width: 44px; height: 44px; }

  .teams li { font-size: 18px; padding: 14px 0; }

  .quotes { grid-template-columns: 1fr; }
  .quote, .quote-wide { grid-column: auto; min-height: 0; }

  .books {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px;
  }
  .book { flex: 0 0 150px; scroll-snap-align: start; }
  .book-title { font-size: 14px; }

  .creds { margin-top: 72px; }
  .creds p { font-size: 14px; }
  .contact { margin-top: 72px; }
  .footer { flex-direction: column; margin-top: 64px; padding-right: 0; padding-bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .go, .wa-float, .book img { transition: none; }
}

/* ======================================================
   Soportes
   ====================================================== */
.s-hero { padding-top: clamp(32px, 5vw, 72px); }
.s-hero h1 { margin-top: 20px; font-size: clamp(46px, 6.7vw, 96px); line-height: 0.96; letter-spacing: -0.045em; font-weight: 600; max-width: 980px; }
.s-hero h1 .it { font-size: 1.08em; }
.s-hero > p { margin-top: 24px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--ink-2); max-width: 620px; }

.s-stats { margin-top: 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.s-stats a { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; height: 100%; min-height: 170px; box-sizing: border-box; padding: clamp(20px, 2.2vw, 30px); border-radius: var(--r-md); background: var(--paper); text-decoration: none; color: var(--ink); transition: transform .4s var(--ease); }
.s-stats a:hover { color: var(--ink); transform: translateY(-4px); }
.s-stats span:last-child { font-size: 16px; line-height: 1.35; color: var(--ink-2); max-width: 220px; }
.st-num { font-size: clamp(48px, 5vw, 72px); line-height: 0.9; letter-spacing: -0.05em; font-weight: 600; }
.st-accent a { background: var(--accent); }
.st-accent span:last-child { color: var(--ink); }
.st-ink a, .st-ink a:hover { background: var(--ink); color: var(--on-ink); }
.st-ink span:last-child { color: var(--on-ink-2); }

.s-sec { margin-top: clamp(96px, 11vw, 160px); scroll-margin-top: 96px; }
.s-h2 { font-size: clamp(46px, 6vw, 88px); line-height: 0.95; letter-spacing: -0.05em; font-weight: 600; margin-bottom: 40px; }
.s-h3 { margin: 56px 0 20px; font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 500; color: var(--muted); }

/* Botón genérico que abre el visor */
.doc { display: block; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: zoom-in; text-align: left; }

/* Línea de tiempo de títulos */
.tl { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.tl-step { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 26px 20px 8px 0; }
.tl-step::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 999px; background: var(--ground); border: 1px solid var(--ink); }
.tl-step.is-top::before { background: var(--accent); border-color: var(--ink); }
.tl-year { font-size: clamp(34px, 3.3vw, 48px); line-height: 1; letter-spacing: -0.04em; font-weight: 600; }
.tl-title { font-size: 17px; font-weight: 600; line-height: 1.3; }
.tl-entity { font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.tl-doc { margin-top: 6px; display: inline-flex !important; align-items: center; gap: 6px; min-height: 44px; font-size: 15px; font-weight: 600; cursor: pointer !important; }
.tl-doc span { text-decoration: underline; text-underline-offset: 3px; }
.tl-doc:hover svg { transform: translateX(3px); }
.tl-doc svg { transition: transform .3s var(--ease); }

.doctor { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: center; padding: clamp(28px, 4vw, 56px); border-radius: var(--r-lg); background: var(--ink); color: var(--on-ink); overflow: hidden; }
.doctor .chip { display: inline-block; }
.doctor h3 { margin-top: 20px; font-size: clamp(38px, 4.4vw, 64px); line-height: 1; letter-spacing: -0.04em; font-weight: 600; }
.doctor p { margin-top: 20px; font-size: 18px; line-height: 1.5; color: var(--on-ink-2); max-width: 520px; }
.doctor-img img { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 24px 48px rgba(0, 0, 0, .35); transition: transform .5s var(--ease); }
.doctor-img:hover img { transform: scale(1.02); }

/* Mosaico de reconocimientos */
.rcs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.rc { display: flex; flex-direction: column; border-radius: var(--r-md); background: var(--paper); overflow: hidden; }
.rc-big { grid-column: span 2; flex-direction: row; background: var(--accent); }
.rc-img { width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.rc-big .rc-img { aspect-ratio: auto; width: 52%; flex: none; min-height: 100%; }
.rc-big .rc-text { flex: 1; justify-content: flex-end; padding: 28px 32px 32px; }
.rc-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: transform .6s var(--ease); }
.rc-img:hover img { transform: scale(1.04); }
.rc-text { padding: 20px 24px 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.rc-text h3 { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
.rc-big .rc-text h3 { font-size: clamp(28px, 3vw, 42px); }
.rc-text p { font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.rc-big .rc-text p { color: var(--ink); }
.rc .chip { background: var(--ground); }
.rc-big .chip { background: var(--paper); }

.more { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.more li { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-top: 1px solid var(--line); }
.more strong { font-size: 17px; font-weight: 600; line-height: 1.3; }
.more span { font-size: 15px; line-height: 1.4; color: var(--ink-2); }

/* Ponencias en bloque oscuro */
.pn-wrap { padding: clamp(32px, 5vw, 72px); border-radius: var(--r-lg); background: var(--ink); color: var(--on-ink); }
.pn { list-style: none; padding: 0; }
.pn li { display: grid; grid-template-columns: 140px minmax(0, 1fr) 190px; gap: 32px; align-items: center; padding: 28px 0; border-top: 1px solid var(--ink-2); }
.pn-year { font-size: clamp(40px, 4vw, 56px); line-height: 1; letter-spacing: -0.04em; font-weight: 600; color: var(--accent); }
.pn-text h3 { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.12; }
.pn-text p { margin-top: 10px; font-size: 15px; line-height: 1.45; color: var(--on-ink-2); }
.pn-doc { justify-self: end; display: inline-flex !important; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px !important; border: 1px solid var(--on-ink-2) !important; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--on-ink) !important; cursor: pointer !important; transition: background-color .25s, color .25s; }
.pn-doc:hover { background: var(--accent) !important; color: var(--ink) !important; border-color: var(--accent) !important; }
.pn-doc.is-empty { border: 0 !important; }

/* Formación */
.fos { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.fo { display: flex; flex-direction: column; gap: 18px; padding: 24px; border-radius: var(--r-md); background: var(--paper); }
.fo-accent { grid-column: span 2; background: var(--accent); }
.fo-num { font-size: clamp(48px, 5vw, 72px); line-height: 0.85; letter-spacing: -0.05em; font-weight: 600; }
.fo h3 { font-size: 19px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
.fo p { margin-top: 8px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.fo-accent p { color: var(--ink); }
.fo-ink { background: var(--ink); color: var(--on-ink); }
.fo-ink p, .fo-ink .fo-year { color: var(--on-ink-2); }
.fo-wide { grid-column: span 4; gap: 14px; }
.fo-label { color: var(--muted); }
.fo-more { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 32px; }
.fo-more li { display: flex; flex-direction: column; gap: 4px; }
.fo-more strong { font-size: 17px; font-weight: 600; line-height: 1.3; }
.fo-more span { font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.fo-year { display: block; margin-top: 10px; color: var(--muted); }
.fo-accent .fo-year { color: var(--ink); }

.dps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.dps li { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px; border-radius: var(--r-md); border: 1px solid var(--line); }
.dp-tag { align-self: flex-start; padding: 5px 10px; border-radius: 999px; background: var(--ink); color: var(--on-ink); }
.dps h3 { font-size: 18px; line-height: 1.25; font-weight: 600; }
.dps p { font-size: 15px; line-height: 1.4; color: var(--ink-2); }

.otros { margin-top: 32px; }
.otros summary { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--paper); font-weight: 600; cursor: pointer; list-style: none; }
.otros summary::-webkit-details-marker { display: none; }
.otros summary::after { content: "+"; margin-left: 10px; font-size: 20px; line-height: 1; }
.otros[open] summary::after { content: "−"; }
.otros .more { margin-top: 24px; }

.s-note { margin-top: 72px; padding: 20px 24px; border-radius: var(--r-md); background: var(--soft); font-size: 15px; line-height: 1.5; color: var(--ink-2); }

/* Visor */
.viewer { width: min(1100px, 100vw - 32px); max-height: calc(100vh - 32px); padding: 16px; border: 0; border-radius: var(--r-lg); background: var(--paper); color: var(--ink); }
.viewer::backdrop { background: rgba(17, 19, 18, .72); }
.viewer-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; padding-left: 8px; }
.viewer-fig { display: flex; flex-direction: column; gap: 12px; }
.viewer-fig img { width: 100%; height: min(calc(100vh - 240px), 900px); object-fit: contain; border-radius: 12px; background: var(--ground); }
.viewer-fig figcaption { display: flex; flex-direction: column; gap: 4px; padding: 0 2px; }
.viewer-fig .doc-title { font-size: 18px; font-weight: 600; line-height: 1.3; }
.viewer-fig .doc-entity { font-size: 15px; color: var(--ink-2); }
.viewer-nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.viewer-btn { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: var(--ground); color: var(--ink); cursor: pointer; }
.viewer-btn:hover { background: var(--accent); }
.viewer-btn[hidden] { display: none; }

@media (max-width: 1080px) {
  .s-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 24px; }
  .doctor { grid-template-columns: minmax(0, 1fr); }
  .doctor-img img { transform: none; }
  .rcs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rc-big { flex-direction: column; }
  .rc-big .rc-img { width: 100%; aspect-ratio: 16 / 10; min-height: 0; }
  .fo-wide { grid-column: span 2; }
  .fo-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pn li { grid-template-columns: 110px minmax(0, 1fr); }
  .pn-doc { grid-column: 2; justify-self: start; }
  .pn-doc.is-empty { display: none !important; }
  .fos, .dps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .s-stats a { min-height: 140px; }
  .tl { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 1px solid var(--ink); row-gap: 0; }
  .tl-step { padding: 0 0 28px 24px; }
  .tl-step::before { top: 6px; left: -6px; }
  .rcs { grid-template-columns: minmax(0, 1fr); }
  .rc-big { grid-column: auto; }
  .rc-big .rc-img { aspect-ratio: 16 / 10; }
  .more { grid-template-columns: minmax(0, 1fr); }
  .pn li { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pn-doc { grid-column: auto; }
  .fos, .dps { grid-template-columns: minmax(0, 1fr); }
  .fo-accent, .fo-wide { grid-column: auto; }
  .fo-more { grid-template-columns: minmax(0, 1fr); }
  .viewer { padding: 12px; }
  .viewer-fig img { height: auto; max-height: 62vh; }
}
@media (prefers-reduced-motion: reduce) {
  .s-stats a, .rc-img img, .doctor-img img, .tl-doc svg { transition: none; }
}

/* Botón «Ver certificado» en listas y tarjetas */
.v-btn, .fo-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin-top: 6px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .2s, border-color .2s; }
.v-btn:hover, .fo-btn:hover { background: var(--accent); border-color: var(--accent); }
.fo-accent .fo-btn { border-color: var(--ink); }
.fo-accent .fo-btn:hover { background: var(--paper); border-color: var(--paper); }
.fo-ink .fo-btn { color: var(--on-ink); border-color: var(--ink-2); }
.fo-ink .fo-btn:hover { color: var(--ink); }
.fo { position: relative; }
.fo > .fo-btn { margin-top: auto; }
.tl-doc { background: none; border: 0; padding: 0; color: var(--ink); }
.doc { position: relative; }
.doc-count { position: absolute; top: 12px; right: 12px; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: 12px; }
.dps li .v-btn { margin-top: auto; }

/* ======================================================
   Casos
   ====================================================== */
.results-link { color: var(--accent); }
.results-link:hover { color: var(--on-ink); }
.cs-index { list-style: none; padding: 0; margin-top: 36px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.cs-index a { display: flex; flex-direction: column; gap: 10px; min-height: 96px; box-sizing: border-box; padding: 18px 20px; border-radius: var(--r-md); background: var(--paper); font-size: 17px; font-weight: 600; line-height: 1.2; text-decoration: none; transition: transform .3s var(--ease), background-color .2s; }
.cs-index a:hover { background: var(--accent); color: var(--ink); transform: translateY(-3px); }
.cs-index .mono { color: var(--muted); font-weight: 500; }

.cs { margin-top: clamp(72px, 8vw, 120px); padding: clamp(28px, 4.4vw, 56px); border-radius: var(--r-lg); background: var(--paper); scroll-margin-top: 96px; }
.cs-dark { background: var(--ink); color: var(--on-ink); }
.cs-kick { display: flex; align-items: center; gap: 14px; }
.cs-kick > .mono { color: var(--muted); font-size: 14px; }
.cs-dark .cs-kick > .mono { color: var(--on-ink-2); }
.cs .chip { background: var(--ground); }
.cs-dark .chip { background: var(--accent); }
.cs-head h2 { margin-top: 20px; font-size: clamp(38px, 4.8vw, 68px); line-height: 1; letter-spacing: -0.045em; font-weight: 600; }
.cs-head h2 .it { display: block; font-size: .78em; margin-top: 6px; }
.cs-meta { margin-top: 16px; font-size: 16px; color: var(--ink-2); }
.cs-dark .cs-meta { color: var(--on-ink-2); }
.cs-body { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; align-items: start; }
.cs-stat { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--r-md); background: var(--accent); color: var(--ink); }
.cs-num { font-size: clamp(64px, 7vw, 104px); line-height: .85; letter-spacing: -0.06em; font-weight: 600; }
.cs-stat span:last-child { font-size: 17px; line-height: 1.35; }
.cs-grid { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.cs-grid dt { font-size: 13px; color: var(--muted); padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.cs-dark .cs-grid dt { color: var(--on-ink-2); border-color: var(--ink-2); }
.cs-grid dd { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.cs-dark .cs-grid dd { color: var(--on-ink); }
.cs-foot { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.cs-dark .cs-foot { border-color: var(--ink-2); }
.cs-links { display: flex; flex-wrap: wrap; gap: 8px; }
.cs-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; font-weight: 600; text-decoration: none; transition: background-color .2s, border-color .2s; }
.cs-dark .cs-link { color: var(--on-ink); border-color: var(--ink-2); }
.cs-link:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.cs-note { font-size: 15px; color: var(--muted); }
.cs-dark .cs-note { color: var(--on-ink-2); }
.cs-end { margin-top: clamp(72px, 8vw, 120px); padding: clamp(32px, 4.4vw, 64px); border-radius: var(--r-lg); background: var(--accent); display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.cs-end h2 { font-size: clamp(40px, 5vw, 72px); line-height: .95; letter-spacing: -0.05em; font-weight: 600; }
.cs-end p { font-size: 18px; line-height: 1.5; max-width: 520px; }

@media (max-width: 1080px) {
  .cs-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-body { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .cs-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 680px) {
  .cs-index a { min-height: 0; }
  .cs-foot .btn { width: 100%; white-space: normal; height: auto; min-height: 54px; padding: 14px 22px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .cs-index a { transition: none; } }

/* Filtro de casos y áreas de trabajo */
.cs-filter { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; scroll-margin-top: 110px; }
.cs-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.cs-chip span { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 500; color: var(--muted); }
.cs-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.cs-chip[aria-pressed="true"] span { color: var(--accent); }
.cs-index li[hidden], #casos-lista .cs[hidden] { display: none; }
.cs-kick { flex-wrap: wrap; }

.areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.area { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 2.8vw, 40px); border-radius: var(--r-md); background: var(--paper); }
.area-ink { background: var(--ink); color: var(--on-ink); }
.area-accent { background: var(--accent); }
.area-top { display: flex; justify-content: space-between; align-items: center; }
.area-top .mono { font-size: 14px; color: var(--muted); }
.area-ink .area-top .mono { color: var(--on-ink-2); }
.area-ink .go { background: var(--accent); }
.area-accent .go { background: var(--paper); }
.area .go:hover { transform: rotate(-45deg); }
.area h3 { font-size: clamp(34px, 3.6vw, 52px); line-height: 1; letter-spacing: -0.04em; font-weight: 600; }
.area h3 .it { display: block; font-size: .9em; }
.area-sub { font-size: 16px; color: var(--ink-2); }
.area-ink .area-sub { color: var(--on-ink-2); }
.area-accent .area-sub { color: var(--ink); }
.area-list { list-style: none; padding: 0; margin: 4px 0 0; border-top: 1px solid var(--line); }
.area-ink .area-list { border-color: var(--ink-2); }
.area-accent .area-list { border-color: rgba(17, 19, 18, .25); }
.area-list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.4; }
.area-ink .area-list li { border-color: var(--ink-2); }
.area-accent .area-list li { border-color: rgba(17, 19, 18, .25); }
.area-actions { margin-top: auto; padding-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.area-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; font-weight: 600; text-decoration: none; color: inherit; transition: background-color .2s; }
.area-ink .area-link { color: var(--on-ink); border-color: var(--ink-2); }
.area-accent .area-link { border-color: var(--ink); }
.area-link:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.area-accent .area-link:hover { background: var(--paper); border-color: var(--paper); }
@media (max-width: 1080px) { .areas { grid-template-columns: minmax(0, 1fr); } }

/* ======================================================
   Galería de diseño
   ====================================================== */
.dz-txt { margin-top: 20px; max-width: 760px; font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.cs-dark .dz-txt { color: var(--on-ink-2); }
.dz-strip { margin-top: 32px; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
.dz-page { flex: 0 0 auto; padding: 0; border: 0; background: none; cursor: zoom-in; scroll-snap-align: start; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 24px rgba(17, 19, 18, .16); transition: transform .35s var(--ease); }
.dz-page:hover { transform: translateY(-4px); }
.dz-page img { display: block; height: 380px; width: auto; }
.dz-wide .dz-page img { height: 300px; }
@media (max-width: 680px) {
  .dz-page img { height: 260px; }
  .dz-wide .dz-page img { height: 180px; }
}
@media (prefers-reduced-motion: reduce) { .dz-page { transition: none; } }

/* ======================================================
   Portada: titular largo, perfiles y trabajo destacado
   ====================================================== */
.hero h1.h1-long { font-size: clamp(38px, 4.5vw, 66px); line-height: 1.02; letter-spacing: -0.04em; }
.hero h1.h1-long .it { display: block; margin-top: 10px; font-size: 1.04em; line-height: 1.02; }

.perfiles { margin-top: var(--gap); }
.pf-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.pf { display: flex; flex-direction: column; gap: 8px; padding: clamp(22px, 2.4vw, 32px); border-radius: var(--r-md); background: var(--paper); }
.pf-ink { background: var(--ink); color: var(--on-ink); }
.pf-accent { background: var(--accent); }
.pf-n { color: var(--muted); font-size: 13px; }
.pf-ink .pf-n, .pf-ink .pf-meta, .pf-ink p { color: var(--on-ink-2); }
.pf-role { font-size: clamp(22px, 2vw, 28px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; }
.pf-num { margin-top: 10px; font-size: clamp(54px, 5.4vw, 80px); line-height: .9; letter-spacing: -0.05em; font-weight: 600; }
.pf p { font-size: 16px; line-height: 1.4; color: var(--ink-2); max-width: 340px; }
.pf-accent p, .pf-accent .pf-meta, .pf-accent .pf-n { color: var(--ink); }
.pf-meta { margin-top: auto; padding-top: 10px; color: var(--muted); }

.section-head a.link-strong { white-space: nowrap; }
.wk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 240px; gap: var(--gap); }
.wk { position: relative; display: flex; flex-direction: column; border-radius: var(--r-md); background: var(--paper); overflow: hidden; text-decoration: none; color: var(--ink); grid-row: span 2; transition: transform .4s var(--ease); }
.wk:hover { color: var(--ink); transform: translateY(-4px); }
.wk-wide { grid-column: span 2; }
.wk-tall { grid-row: span 3; }
.wk-img { flex: 1; min-height: 0; overflow: hidden; background: var(--soft); }
.wk-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s var(--ease); }
.wk:hover .wk-img img { transform: scale(1.03); }
.wk-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 70px 22px 22px; }
.wk-type { color: var(--muted); }
.wk-tit { font-size: 24px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; }
.wk-txt { font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.wk-go { position: absolute; right: 18px; bottom: 22px; width: 44px; height: 44px; border-radius: 999px; background: var(--accent); display: flex; align-items: center; justify-content: center; color: var(--ink); transition: transform .4s var(--ease); }
.wk:hover .wk-go { transform: rotate(45deg); }

@media (max-width: 1080px) {
  .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 220px; }
  .wk-wide { grid-column: span 2; }
}
@media (max-width: 680px) {
  .pf-grid { grid-template-columns: minmax(0, 1fr); }
  .wk-grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .wk, .wk-wide, .wk-tall { grid-column: auto; grid-row: auto; }
  .wk-img { flex: none; height: 240px; }
  .wk-tall .wk-img { height: 340px; }
  .section-head a.link-strong { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .wk, .wk-img img, .wk-go { transition: none; } }

/* Resultados por año */
.teams .yr { display: inline-block; min-width: 64px; font-size: 14px; font-weight: 400; color: var(--on-ink-2); }
.teams .chip { white-space: nowrap; }
@media (max-width: 640px) {
  .teams li { gap: 12px; }
  .teams .yr { min-width: 48px; font-size: 12px; }
  .teams .chip { font-size: 11px; }
}
@media (max-width: 640px) {
  .teams li { flex-wrap: wrap; justify-content: flex-start; row-gap: 8px; }
  .teams li > span:first-child { white-space: nowrap; }
  .teams li .chip { margin-left: 48px; }
}

/* ===== Páginas de servicio ===== */
.sv-crumbs a { color: inherit; }
.sv-crumbs span { color: var(--ink); }
.sv-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.sv-kick { margin-top: 20px; font-size: 13px; }
.sv-stats { margin-top: clamp(48px, 6vw, 88px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.sv-stat { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--r-md); background: var(--paper); }
.sv-stat:first-child { background: var(--accent); }
.sv-stat:last-child { background: var(--ink); color: var(--on-ink); }
.sv-num { font-size: clamp(56px, 6vw, 96px); line-height: .85; letter-spacing: -0.06em; font-weight: 600; }
.sv-stat > span:last-child { font-size: 17px; line-height: 1.35; }
.sv-sec { scroll-margin-top: 96px; }
.sv-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.sv-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--r-md); background: var(--paper); }
.sv-card .mono { color: var(--muted); font-size: 13px; }
.sv-card h3 { font-size: 22px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
.sv-card p { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.sv-cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.sv-case { display: flex; flex-direction: column; border-radius: var(--r-md); background: var(--paper); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .3s var(--ease); }
.sv-case:hover { transform: translateY(-3px); }
.sv-case-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--soft); }
.sv-case-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.sv-case-body { display: flex; flex-direction: column; gap: 10px; padding: 24px 28px 28px; }
.sv-case-body .mono { color: var(--muted); font-size: 13px; }
.sv-case-t { font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; }
.sv-case-go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; font-size: 15px; font-weight: 600; }
.sv-case-noimg { background: var(--ink); color: var(--on-ink); }
.sv-case-noimg .mono { color: var(--on-ink-2); }
.sv-case-noimg:hover .sv-case-go { color: var(--accent); }
.sv-links { margin-top: 24px; }
.sv-talks { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.sv-talks li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.sv-talks .mono { color: var(--muted); padding-top: 4px; }
.sv-talks strong { display: block; font-size: 20px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }
.sv-talks div span { display: block; margin-top: 6px; color: var(--ink-2); line-height: 1.45; }
.sv-faq { display: grid; gap: 10px; max-width: 900px; }
.sv-q { border-radius: var(--r-md); background: var(--paper); }
.sv-q summary { cursor: pointer; list-style: none; padding: 22px 60px 22px 28px; position: relative; font-size: 19px; font-weight: 600; line-height: 1.3; }
.sv-q summary::-webkit-details-marker { display: none; }
.sv-q summary::after { content: "+"; position: absolute; right: 26px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; }
.sv-q[open] summary::after { content: "–"; }
.sv-q p { padding: 0 28px 24px; font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 760px; }
.sv-related { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sv-related .mono { margin-right: 8px; font-size: 13px; }
.sv-related a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; font-weight: 600; text-decoration: none; transition: background-color .2s, border-color .2s; }
.sv-related a:hover { background: var(--accent); border-color: var(--accent); }
.svc-strip { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.svc-strip .mono { margin-right: 8px; font-size: 13px; color: var(--muted); }
.svc-strip a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--paper); font-size: 15px; font-weight: 600; text-decoration: none; transition: background-color .2s; }
.svc-strip a:hover { background: var(--accent); }
.cs-side { display: flex; flex-direction: column; gap: 16px; }
.cs-fig { margin: 0; border-radius: var(--r-md); overflow: hidden; background: var(--soft); aspect-ratio: 16 / 10; }
.cs-fig img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.cs-fig-book { aspect-ratio: auto; max-width: 220px; background: none; }
.cs-fig-book img { height: auto; }
.footer-svc { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.nf { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 1080px) {
  .sv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .sv-stats, .sv-grid, .sv-cases { grid-template-columns: minmax(0, 1fr); }
  .sv-talks li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .sv-q summary { font-size: 17px; padding: 18px 52px 18px 20px; }
  .sv-q p { padding: 0 20px 20px; }
  .cs-fig-book { max-width: 160px; }
}
.footer { flex-wrap: wrap; }
.footer-svc { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px 20px; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.footer-svc a { font-weight: 600; color: var(--ink); }
.area-list a { color: inherit; }
.s-hero > p.sv-kick { font-size: 13px; line-height: 1.5; color: var(--muted); }

/* Aviso de cookies */
.cookie-bar { position: fixed; left: 16px; right: 88px; bottom: 16px; z-index: 40; max-width: 640px; display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; padding: 18px 20px; border-radius: 20px; background: var(--paper); box-shadow: 0 12px 36px rgba(17, 19, 18, .18); }
.cookie-bar p { flex: 1 1 280px; margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.cookie-actions { display: flex; gap: 8px; }
.cookie-actions .btn { height: 44px; padding: 0 18px; font-size: 15px; }
@media (max-width: 680px) { .cookie-bar { right: 16px; bottom: 84px; } }
@media print { .cookie-bar { display: none !important; } }

/* ===== Artículos ===== */
.ar { max-width: 1080px; }
.ar-head { padding-top: clamp(32px, 5vw, 72px); max-width: 860px; }
.ar-tag { display: inline-block; margin-top: 20px; text-decoration: none; }
.ar-head h1 { margin-top: 20px; font-size: clamp(38px, 5.4vw, 72px); line-height: 1; letter-spacing: -0.045em; font-weight: 600; }
.ar-lead { margin-top: 22px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--ink-2); }
.ar-meta { margin-top: 20px; line-height: 1.6; }
.ar-meta a { color: inherit; }
.ar-fig { margin: clamp(32px, 4vw, 56px) 0 0; border-radius: var(--r-lg); overflow: hidden; background: var(--soft); }
.ar-fig img { display: block; width: 100%; height: auto; max-height: 620px; object-fit: cover; }
.ar-layout { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.ar-layout:has(.ar-toc) { grid-template-columns: 220px minmax(0, 1fr); }
.ar-toc { position: sticky; top: 96px; align-self: start; font-size: 14px; }
.ar-toc ol { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; border-left: 1px solid var(--line); }
.ar-toc a { display: block; padding-left: 14px; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.ar-toc a:hover { color: var(--ink); }
.ar-body { max-width: 720px; font-size: 19px; line-height: 1.7; color: var(--ink); }
.ar-body > * + * { margin-top: 1.1em; }
.ar-body h2 { margin-top: 1.8em; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.15; letter-spacing: -0.03em; font-weight: 600; scroll-margin-top: 96px; }
.ar-body h3 { margin-top: 1.5em; font-size: 23px; line-height: 1.25; letter-spacing: -0.015em; font-weight: 600; scroll-margin-top: 96px; }
.ar-body ul, .ar-body ol { padding-left: 1.3em; }
.ar-body li + li { margin-top: .45em; }
.ar-body a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ar-body blockquote { margin-left: 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent); font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: 1.3em; line-height: 1.4; color: var(--ink-2); }
.ar-body img { display: block; max-width: 100%; height: auto; border-radius: var(--r-md); }
.ar-body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.ar-share { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; max-width: 980px; }
.ar-share .mono { margin-right: 6px; }
.ar-share a, .ar-share button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s; }
.ar-share a:hover, .ar-share button:hover { background: var(--accent); border-color: var(--accent); }
.ar-talk { margin-top: 40px; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-lg); background: var(--accent); }
.ar-talk h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1; letter-spacing: -0.045em; font-weight: 600; }
.ar-talk p { margin-top: 14px; max-width: 560px; font-size: 18px; line-height: 1.5; }
.ar-talk > .btn, .ar-talk .sv-cta { margin-top: 24px; }
.ar-author { margin-top: 24px; padding: 28px; border-radius: var(--r-md); background: var(--paper); display: flex; gap: 22px; align-items: flex-start; }
.ar-author img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex: none; }
.ar-author strong { font-size: 19px; }
.ar-author p { margin: 6px 0 12px; line-height: 1.5; color: var(--ink-2); }
.ar-list { margin-top: clamp(40px, 5vw, 72px); display: grid; gap: var(--gap); }
.ar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.ar-card { display: flex; flex-direction: column; border-radius: var(--r-md); background: var(--paper); overflow: hidden; color: var(--ink); text-decoration: none; transition: transform .3s var(--ease); }
.ar-card:hover { transform: translateY(-3px); }
.ar-card-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--soft); }
.ar-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ar-card-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 26px; flex: 1; }
.ar-card-t { font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; }
.ar-card-d { color: var(--ink-2); line-height: 1.5; }
.ar-card-body > .mono:last-child { margin-top: auto; padding-top: 6px; }
.ar-card-first { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.ar-card-first .ar-card-img { aspect-ratio: auto; min-height: 320px; }
.ar-card-first .ar-card-body { justify-content: center; padding: clamp(24px, 3.4vw, 48px); }
.ar-card-first .ar-card-t { font-size: clamp(28px, 3vw, 40px); }
.ar-empty { margin-top: 48px; padding: 40px; border-radius: var(--r-md); background: var(--paper); font-size: 18px; color: var(--ink-2); }
@media (max-width: 1080px) {
  .ar-layout:has(.ar-toc) { grid-template-columns: minmax(0, 1fr); }
  .ar-toc { position: static; }
  .ar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ar-card-first { grid-template-columns: minmax(0, 1fr); }
  .ar-card-first .ar-card-img { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 680px) {
  .ar-grid { grid-template-columns: minmax(0, 1fr); }
  .ar-body { font-size: 18px; }
  .ar-author { flex-direction: column; }
}
.ar-body ul { list-style: disc; } .ar-body ol { list-style: decimal; } .ar-body li::marker { color: var(--muted); }
@media (max-width: 680px) { .ar-head h1 { font-size: 31px; line-height: 1.06; letter-spacing: -0.035em; } .ar-lead { font-size: 18px; } }
.ar-basis { margin-top: 24px; display: inline-flex; flex-direction: column; gap: 4px; padding: 16px 22px; border-radius: var(--r-md); background: var(--paper); border-left: 4px solid var(--accent); text-decoration: none; color: var(--ink); transition: background-color .2s; }
.ar-basis:hover { background: var(--accent); }
.ar-basis .mono { color: var(--muted); }
.ar-basis strong { font-size: 19px; }
.ar-basis span:last-child { font-size: 15px; font-weight: 600; }
.ar-book { margin-top: 48px; padding: clamp(24px, 3.4vw, 44px); border-radius: var(--r-lg); background: var(--ink); color: var(--on-ink); display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: clamp(24px, 3vw, 44px); align-items: center; }
.ar-book img { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.ar-book .mono { color: var(--accent); }
.ar-book h2 { margin-top: 10px; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 600; }
.ar-book p { margin-top: 12px; color: var(--on-ink-2); line-height: 1.5; }
.ar-book .ar-book-sub { color: var(--on-ink); font-size: 18px; }
.ar-book .btn-line { color: var(--on-ink); border-color: var(--ink-2); }
.ar-book .btn-ink { background: var(--accent); color: var(--ink); }
@media (max-width: 680px) { .ar-book { grid-template-columns: minmax(0, 1fr); } .ar-book img { max-width: 150px; } }
.quote-long blockquote { font-size: clamp(21px, 1.7vw, 26px); line-height: 1.3; }
.quote-wide.quote-long blockquote { font-size: clamp(22px, 1.9vw, 28px); line-height: 1.28; }
.quotes { grid-auto-flow: dense; }

/* Tabla de precios */
.price-wrap { border-radius: var(--r-md); background: var(--paper); overflow: hidden; }
.price-table { width: 100%; border-collapse: collapse; font-size: 17px; }
.price-table th, .price-table td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--soft); vertical-align: middle; }
.price-table thead th { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 500; color: var(--muted); background: var(--ground); }
.price-table tbody tr:last-child th, .price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody th strong { display: block; font-size: 18px; font-weight: 600; }
.price-table tbody th span { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; color: var(--muted); }
.price-table td { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.price-table td:nth-child(2) { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.price-extra { margin-top: var(--gap); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.price-extra > div { display: flex; flex-direction: column; gap: 8px; padding: 24px 28px; border-radius: var(--r-md); background: var(--paper); }
.price-extra .mono { color: var(--muted); font-size: 13px; }
.price-extra strong { font-size: 24px; letter-spacing: -0.02em; }
.price-extra span:last-child { color: var(--ink-2); line-height: 1.5; }
#precios .sv-cta { margin-top: 24px; }
@media (max-width: 760px) {
  .price-table thead { display: none; }
  .price-table, .price-table tbody, .price-table tr, .price-table th, .price-table td { display: block; width: 100%; box-sizing: border-box; }
  .price-table tr { padding: 18px 20px; border-bottom: 1px solid var(--soft); }
  .price-table tbody tr:last-child { border-bottom: 0; }
  .price-table tbody th, .price-table td { padding: 0; border: 0; }
  .price-table td { display: flex; justify-content: space-between; margin-top: 10px; font-size: 18px; background: none !important; }
  .price-table td::before { content: attr(data-l); font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 400; color: var(--muted); }
  .price-extra { grid-template-columns: minmax(0, 1fr); }
}
.ar-rss { margin-top: 16px; font-size: 13px; line-height: 1.5; max-width: 560px; } .sv-cta button.btn { font: inherit; font-weight: 600; cursor: pointer; }
.price-2 td { width: 1%; white-space: nowrap; text-align: right; }
.price-2 thead th:last-child { text-align: right; }

/* Verificación de constancias */
.vf-form { margin-top: 32px; max-width: 560px; }
.vf-row { margin-top: 8px; display: flex; gap: 10px; flex-wrap: wrap; }
.vf-row input { flex: 1 1 220px; min-height: 54px; padding: 0 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font: 500 18px 'JetBrains Mono', monospace; text-transform: uppercase; color: var(--ink); }
.vf-row input:focus { outline: 2px solid var(--accent); border-color: var(--ink); }
.vf-row button { font: inherit; font-weight: 600; cursor: pointer; border: 0; }
.vf-out { margin-top: 24px; max-width: 640px; display: flex; flex-direction: column; gap: 8px; }
.vf-out:empty { display: none; }
.vf-ok, .vf-bad { padding: 24px 28px; border-radius: var(--r-md); }
.vf-ok { background: var(--accent); }
.vf-ok strong { font-size: 28px; letter-spacing: -0.02em; }
.vf-bad { background: var(--paper); border-left: 4px solid #c0392b; }
.vf-bad strong { font-size: 20px; }
.vf-out span { line-height: 1.5; }

/* Tarjetas de formato */
.fm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.fm-card { display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: var(--r-md); background: var(--paper); }
.fm-card header .mono { color: var(--muted); font-size: 13px; }
.fm-card h3 { margin-top: 8px; font-size: 24px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
.fm-price { margin-top: 12px; display: inline-block; padding: 8px 14px; border-radius: 12px; background: var(--accent); font-size: 17px; font-weight: 600; line-height: 1.35; }
.fm-card dl { margin: 0; display: grid; gap: 10px; }
.fm-card dt { font-size: 12px; color: var(--muted); }
.fm-card dd { margin: 2px 0 0; line-height: 1.5; color: var(--ink-2); }
.fm-lbl { font-size: 12px; color: var(--muted); }
.fm-card ul { margin: -8px 0 0; padding-left: 1.2em; list-style: disc; display: grid; gap: 6px; line-height: 1.45; color: var(--ink-2); }
.fm-res { line-height: 1.5; }
.fm-basis { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--soft); font-size: 12px; line-height: 1.5; color: var(--muted); }
@media (max-width: 860px) { .fm-grid { grid-template-columns: minmax(0, 1fr); } }

/* Página de servicios */
.svx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.svx { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--r-md); background: var(--paper); }
.svx > .mono { color: var(--muted); font-size: 13px; }
.svx h3 { font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
.svx h3 a { color: inherit; text-decoration: none; }
.svx h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.svx p { line-height: 1.5; color: var(--ink-2); }
.svx-price { align-self: flex-start; padding: 8px 14px; border-radius: 12px; background: var(--accent); color: var(--ink) !important; font-size: 18px; font-weight: 600; }
.svx-act { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
@media (max-width: 760px) { .svx-grid { grid-template-columns: minmax(0, 1fr); } }
.svc-all { margin-top: 28px; }

.svx-jump { margin-top: clamp(32px, 4vw, 56px); display: flex; flex-wrap: wrap; gap: 10px; }
.svx-jump a { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 999px; background: var(--paper); font-weight: 600; text-decoration: none; color: var(--ink); transition: background-color .2s; }
.svx-jump a:hover { background: var(--accent); }
.svx-jump .mono { color: var(--muted); font-size: 12px; font-weight: 400; }
.svx-cat { margin-top: clamp(56px, 7vw, 96px); scroll-margin-top: 96px; }
.svx-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-bottom: 28px; }
.svx-head .mono { color: var(--muted); font-size: 13px; }
.svx-head h2 { font-size: clamp(40px, 5vw, 68px); line-height: .98; letter-spacing: -0.045em; font-weight: 600; }
.svx-head p { font-size: 18px; color: var(--ink-2); max-width: 620px; }

/* Categorías desplegables de servicios */
.svx-cat { margin-top: var(--gap); border-radius: var(--r-lg); background: var(--paper); scroll-margin-top: 96px; }
.svx-cat:first-of-type { margin-top: clamp(40px, 5vw, 64px); }
.svx-cat > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-lg); }
.svx-cat > summary::-webkit-details-marker { display: none; }
.svx-cat > summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.cat-n { color: var(--muted); font-size: 14px; align-self: start; padding-top: 10px; }
.cat-main h2 { font-size: clamp(36px, 4.4vw, 60px); line-height: .98; letter-spacing: -0.045em; font-weight: 600; }
.cat-desc { display: block; margin-top: 10px; font-size: 17px; line-height: 1.5; color: var(--ink-2); max-width: 560px; }
.cat-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.cat-meta .mono { color: var(--muted); font-size: 13px; }
.cat-meta strong { font-size: 20px; letter-spacing: -0.01em; }
.cat-open { margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; }
.cat-open::after { content: "+"; font-size: 20px; line-height: 1; }
.svx-cat[open] .cat-open::after { content: "–"; }
.svx-cat[open] .cat-open { background: var(--accent); color: var(--ink); }
.cat-body { padding: 0 clamp(16px, 2.4vw, 32px) clamp(16px, 2.4vw, 32px); }
.cat-body .svx { background: var(--ground); }
.cat-ink { background: var(--ink); color: var(--on-ink); }
.cat-ink .cat-desc, .cat-ink .cat-n, .cat-ink .cat-meta .mono { color: var(--on-ink-2); }
.cat-ink .cat-open { background: var(--accent); color: var(--ink); }
.cat-ink[open] .cat-open { background: #fff; }
.cat-ink .svx { background: #1d201f; color: var(--on-ink); }
.cat-ink .svx p, .cat-ink .svx > .mono { color: var(--on-ink-2); }
.cat-ink .svx-price { color: var(--ink) !important; }
.cat-ink .svx .btn-ink { background: var(--accent); color: var(--ink); }
.cat-ink .svx .area-link { color: var(--on-ink); }
.cat-accent { background: var(--accent); }
.cat-accent .cat-desc, .cat-accent .cat-n, .cat-accent .cat-meta .mono { color: var(--ink-2); }
.cat-accent .svx { background: var(--paper); }
@media (max-width: 760px) {
  .svx-cat > summary { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .cat-n { padding-top: 0; }
  .cat-meta { align-items: flex-start; text-align: left; }
}
.cat-soft { background: var(--soft); }
.cat-soft .cat-desc, .cat-soft .cat-n, .cat-soft .cat-meta .mono { color: var(--ink-2); }
.cat-soft .svx { background: var(--paper); }

/* ===== Fase 1 de mejoras (octubre de 2026) ===== */
/* Problemas que resuelvo */
.prob-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.prob { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 2.4vw, 34px); border-radius: var(--r-md); background: var(--paper); }
.prob .mono { color: var(--muted); }
.prob h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 600; }
.prob p { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.prob a { margin-top: auto; font-weight: 600; }
/* Cuatro cifras */
.pf-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* Aliados con su relación */
.allies li { display: flex; flex-direction: column; gap: 4px; }
.allies li small { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 400; letter-spacing: .02em; color: var(--muted); }
/* Casos: ¿puede replicarse? y aviso de prototipo */
.cs-grid .cs-repl { grid-column: 1 / -1; }
.cs-grid .cs-repl dd { max-width: 900px; }
.cs-warn { display: inline-block; margin-top: 12px; padding: 6px 14px; border-radius: 999px; background: var(--accent); color: var(--ink); font-family: 'JetBrains Mono', monospace; font-size: 13px; }
.cs-body > .cs-voice { grid-column: 2; }
@media (max-width: 1080px) { .cs-body > .cs-voice { grid-column: 1; } }
.cs-voice { margin: 0; padding: 20px 24px; border-radius: 18px; background: var(--ground); }
.cs-voice blockquote { margin: 0; font-size: 20px; line-height: 1.35; }
.cs-voice figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
/* Contacto: tres opciones */
.contact-opts { display: flex; flex-direction: column; gap: 10px; }
.contact-opts .mono { color: var(--muted); }
.contact-opts a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); font-weight: 600; text-decoration: none; transition: background-color .2s; }
.contact-opts a:hover { background: var(--accent); }
/* Página MILC */
.milc-cycle { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); counter-reset: f; }
.milc-cycle li { padding: 22px; border-radius: var(--r-md); background: var(--paper); display: flex; flex-direction: column; gap: 10px; }
.milc-cycle li strong { font-size: 20px; letter-spacing: -0.01em; }
.milc-cycle li span { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.milc-tomos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.milc-tomos li { padding: 22px; border-radius: var(--r-md); background: var(--paper); display: flex; flex-direction: column; gap: 8px; }
.milc-tomos .t { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.milc-tomos .q { font-size: 15px; color: var(--ink-2); }
.milc-cite { padding: 22px 24px; border-radius: var(--r-md); background: var(--paper); font-size: 16px; line-height: 1.55; }
.milc-cite + .milc-cite { margin-top: var(--gap); }
@media (max-width: 1000px) {
  .prob-grid { grid-template-columns: minmax(0, 1fr); }
  .pf-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .milc-cycle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .milc-tomos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .milc-cycle, .milc-tomos { grid-template-columns: minmax(0, 1fr); }
}
.prob-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .prob-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .prob-grid-4 { grid-template-columns: minmax(0, 1fr); } }
/* Artículos: caso relacionado */
.ar-rel { margin: clamp(32px, 4vw, 48px) 0 0; padding: 22px 26px; border-radius: var(--r-md); background: var(--paper); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ar-rel .mono { color: var(--muted); }
.ar-rel a { font-weight: 600; font-size: 18px; }
.pf.pf-ink p { color: var(--on-ink-2); }
/* Tres casos insignia: en dos columnas, el primero a todo el ancho */
@media (max-width: 1080px) and (min-width: 681px) {
  .wk-grid-3 > .wk:first-child { grid-column: span 2; }
}
/* Servicios en tres niveles */
.fm-quote { margin-top: auto; align-self: flex-start; }
.fm-sub { margin-top: 4px; font-family: 'Instrument Serif', serif; font-style: italic; font-size: 18px; color: var(--muted); }
#instituciones .area-sub strong { color: inherit; }
#instituciones .area .svx-price { margin-top: 4px; }
#profesionales .svx-cat + .svx-cat { margin-top: var(--gap); }
#instituciones .area-ink .area-sub a { color: var(--on-ink); }
#instituciones .area-accent .svx-price { background: var(--ink); color: var(--accent) !important; }
/* Página de programa */
.prog-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .prog-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .prog-steps { grid-template-columns: minmax(0, 1fr); } }
.prog-pilot { margin-top: 0; }
.prog-pilot { background: var(--paper); }
/* Recursos abiertos */
.rx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.rx { display: flex; flex-direction: column; border-radius: var(--r-md); background: var(--paper); overflow: hidden; }
.rx > img { width: 100%; aspect-ratio: 7 / 10; max-height: 340px; object-fit: cover; object-position: top; display: block; }
.rx-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; flex: 1; }
.rx-body h3 { font-size: 22px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
.rx-sub { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.rx-inc { margin: 0; padding-left: 1.1em; list-style: disc; display: grid; gap: 4px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.rx-lic { font-size: 12px; color: var(--muted); }
.rx-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.rx-act .btn { height: 42px; padding: 0 16px; font-size: 14px; }
.rx-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 10px; border-top: 1px solid var(--soft); }
.rx-chips .mono { font-size: 12px; margin-right: 4px; }
.rx-chip { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--ground); color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; }
.rx-chip:hover { background: var(--accent); }
@media (max-width: 1000px) { .rx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .rx-grid { grid-template-columns: minmax(0, 1fr); } }
.rx > img[src*="trabajo/"] { aspect-ratio: 16 / 10; object-position: top left; }
