/* ============================================================
   EntrepreneurSalud — hoja de estilo única
   1. Tokens  2. Base  3. Tipografía  4. Cabecera  5. Componentes
   6. Home  7. Artículo  8. Temas  9. Formularios  10. Pie  11. Utilidades
   ============================================================ */

/* ---------- 0. Tipografías ---------- */
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 300 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-ext.woff2") format("woff2");
  font-weight: 300 600; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic-latin.woff2") format("woff2");
  font-weight: 300 600; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic-latin-ext.woff2") format("woff2");
  font-weight: 300 600; font-style: italic; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/intertight-latin.woff2") format("woff2");
  font-weight: 300 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/intertight-latin-ext.woff2") format("woff2");
  font-weight: 300 600; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- 1. Tokens ---------- */
:root {
  --paper: #ffffff;
  --wash: #f2f6f6;
  --wash-2: #e8eeee;
  --ink: #0f1617;
  --ink-2: #4e5c62;
  --ink-3: #7d8a8f;
  --line: #d9e2e3;
  --line-soft: #e9eeee;
  --teal: #0097b2;
  --teal-ink: #00697c;
  --teal-wash: #e6f4f7;

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-ui: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --w: 1200px;
  --gutter: 24px;
  --sp: 8px;

  --radius: 2px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; }

::selection { background: var(--teal-wash); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--teal-ink);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- 3. Tipografía ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 2.6vw, 2.4rem); line-height: 1.12; }
h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.2; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 54ch;
}

.kicker {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink-2);
}

.meta {
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: .01em;
}

/* ---------- 4. Cabecera ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 72px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 34px; width: auto; }
.brand .brand-txt {
  display: none;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.02em;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }

.nav a {
  font-size: 15px;
  font-weight: 450;
  color: var(--ink);
  padding: 8px 0;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav .btn { padding: 10px 18px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  cursor: pointer;
  border-radius: var(--radius);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- 5. Componentes ---------- */
.wrap {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  background: var(--teal-ink);
  color: #fff;
  border: 1px solid var(--teal-ink);
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.btn:hover { background: #005363; border-color: #005363; }

.btn-line {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 12px 2px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.btn-line:hover { color: var(--teal-ink); border-color: var(--teal-ink); }

.link-arrow {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--teal-ink);
  font-size: 15px;
  font-weight: 500;
}
.link-arrow svg { transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- 6. Home ---------- */
.hero {
  padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 72px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.hero h1 { margin-bottom: 24px; }
.hero .lede { margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }

.hero-media {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 12px;
}
.hero-media figure { margin: 0; position: relative; overflow: hidden; background: var(--wash); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/10; }

/* índice de temas */
.index {
  border-top: 1px solid var(--ink);
  padding-top: 8px;
}
.index-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0 14px;
}
.index-title { font-size: 13px; letter-spacing: .04em; color: var(--ink-2); }
.index-list { list-style: none; margin: 0; padding: 0; }
.index-list li { border-top: 1px solid var(--line); }
.index-list a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 15px 0;
  transition: padding-left .25s var(--ease), color .2s var(--ease);
}
.index-list a:hover { padding-left: 8px; color: var(--teal-ink); }
.index-name {
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: -0.01em;
  flex: 1;
}
.index-n {
  font-size: 13px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

/* secciones */
.section { padding: clamp(48px, 6vw, 88px) 0; }
.section + .section { border-top: 1px solid var(--line-soft); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 36px;
}
.section-head h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); }

/* rejilla de entradas */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}

.entry { display: flex; flex-direction: column; }
.entry-fig {
  position: relative;
  overflow: hidden;
  background: var(--wash);
  margin-bottom: 20px;
  display: block;
}
.entry-fig img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.entry:hover .entry-fig img { transform: scale(1.03); }
.entry-topic {
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 10px;
  letter-spacing: .02em;
}
.entry h3 { font-size: 1.32rem; line-height: 1.16; margin-bottom: 12px; }
.entry:hover h3 { color: var(--teal-ink); }
.entry .meta { margin-top: auto; }
.entry p.sum { color: var(--ink-2); font-size: 15px; line-height: 1.5; margin: 0 0 14px; }

/* rutas */
.routes { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; border-top: 1px solid var(--line); }
.route {
  padding: 28px 32px 28px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.route + .route { padding-left: 32px; border-left: 1px solid var(--line); }
.route-sit { font-size: 12px; color: var(--ink-3); }
.route h3 { font-size: 1.3rem; }
.route p { color: var(--ink-2); font-size: 15px; margin: 0; }
.route .link-arrow { margin-top: 4px; }

/* dos públicos */
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.audience article { border-top: 1px solid var(--ink); padding-top: 20px; }
.audience h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); margin-bottom: 14px; }
.audience p { color: var(--ink-2); max-width: 46ch; }
.audience ul { list-style: none; padding: 0; margin: 20px 0 0; }
.audience li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
  color: var(--ink-2);
  display: flex; gap: 10px;
}
.audience li::before { content: "—"; color: var(--teal); flex: none; }

/* banda CTA */
.band { background: var(--wash); }
.band-inner {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 48px;
  align-items: end;
  padding: clamp(48px, 6vw, 80px) 0;
}
.band h2 { max-width: 20ch; }
.band p { color: var(--ink-2); margin-top: 18px; max-width: 46ch; }

/* ---------- 7. Artículo ---------- */
.crumbs { padding: 20px 0 0; font-size: 13px; color: var(--ink-3); }
.crumbs-in { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs a:hover { color: var(--teal-ink); }
.crumbs span.sep { color: var(--line); }

.article-head { padding: 28px 0 0; }
.article-head h1 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.07;
  max-width: 24ch;
  margin-bottom: 24px;
}
.byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--ink-2);
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.byline .dot { width: 3px; height: 3px; background: var(--ink-3); border-radius: 50%; }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 66ch) 246px;
  gap: clamp(48px, 6vw, 88px);
  justify-content: start;
  max-width: 1040px;
  padding: clamp(32px, 4vw, 48px) 0 clamp(56px, 7vw, 96px);
}

.article-main { position: relative; min-width: 0; }

.rail {
  position: absolute;
  left: -32px; top: 0; bottom: 0;
  width: 1px;
  background: var(--line-soft);
}
.rail-fill {
  position: absolute; top: 0; left: 0; width: 1px;
  background: var(--teal);
  height: calc(var(--progress, 0) * 1%);
  transition: height .12s linear;
}

.hero-fig {
  margin: 0 0 40px;
  background: var(--wash);
  overflow: hidden;
}
.hero-fig img { width: 100%; aspect-ratio: 16/9; object-fit: cover; object-position: center 35%; }
.hero-fig figcaption { font-size: 12.5px; color: var(--ink-3); padding: 10px 0 0; }

.prose {
  font-family: var(--font-display);
  font-size: 1.22rem;
  line-height: 1.62;
  color: #1a2224;
  max-width: 66ch;
}
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0 0 1.05em; }

.prose h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.05rem);
  margin-top: 2.5em;
  margin-bottom: .6em;
  line-height: 1.15;
  font-weight: 500;
  scroll-margin-top: 100px;
}
.prose h3 {
  font-size: 1.28rem;
  margin-top: 1.9em;
  margin-bottom: .5em;
  font-weight: 500;
  scroll-margin-top: 100px;
}
.prose h4 {
  font-size: 1.1rem;
  margin-top: 1.7em;
  margin-bottom: .4em;
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0;
  scroll-margin-top: 100px;
}
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--ink-3); }
.prose strong { font-weight: 600; }
.prose em { font-style: italic; }
.prose a {
  color: var(--teal-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
}
.prose a:hover { text-decoration-color: var(--teal-ink); }
.prose blockquote {
  margin: 2em 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--teal);
  font-size: 1.28rem;
  line-height: 1.45;
  color: var(--ink);
  font-style: normal;
}
.prose blockquote p { margin: 0; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .84em;
  background: var(--wash);
  padding: .12em .38em;
  border-radius: 2px;
  border: 1px solid var(--line-soft);
}
.prose pre {
  background: var(--ink);
  color: #e8eeee;
  padding: 20px;
  overflow-x: auto;
  font-size: .82rem;
  line-height: 1.55;
  border-radius: var(--radius);
}
.prose pre code { background: none; border: 0; color: inherit; padding: 0; }

/* tablas */
.tabla {
  margin: 2em 0;
  border: 1px solid var(--line);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tabla table {
  border-collapse: collapse;
  width: 100%;
  font-family: var(--font-ui);
  font-size: 14.5px;
  line-height: 1.45;
  min-width: 560px;
}
.tabla thead th, .tabla thead td {
  background: var(--wash);
  font-weight: 600;
  color: var(--ink);
  text-align: left;
}
.tabla th, .tabla td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.tabla tr:last-child td { border-bottom: 0; }
.tabla td strong { font-weight: 600; }
.tabla-hint { font-size: 12.5px; color: var(--ink-3); margin: -1.4em 0 1.6em; }

/* aside */
.aside { font-size: 14px; }
.aside-block { border-top: 1px solid var(--ink); padding-top: 12px; margin-bottom: 32px; }
.aside-block h2, .aside-block h3 {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: .05em;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 14px;
}
.toc { list-style: none; margin: 0; padding: 0; }
.toc li { border-bottom: 1px solid var(--line-soft); }
.toc a {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink-2);
  transition: color .2s var(--ease);
}
.toc a:hover { color: var(--teal-ink); }
.toc a.active { color: var(--ink); font-weight: 500; }

.toc-movil { display: none; }
.toc-movil summary {
  cursor: pointer; list-style: none; padding: 14px 0;
  font-family: var(--font-ui); font-size: 13px; font-weight: 500;
  color: var(--ink-2); letter-spacing: .03em;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.toc-movil summary::-webkit-details-marker { display: none; }
.toc-movil .toc { margin: 4px 0 16px; }

.aside-cta { background: var(--wash); padding: 20px; border: 0; }
.aside-cta p { font-size: 14px; color: var(--ink-2); margin-bottom: 14px; }
.aside-cta .btn { width: 100%; }

.aside-tema { font-size: 13px; color: var(--ink-2); }
.aside-tema a { color: var(--teal-ink); }

/* relacionados */
.related { border-top: 1px solid var(--line); padding-top: 40px; margin-top: 16px; }
.related h2 { font-size: 1.4rem; margin-bottom: 28px; }

/* compartir */
.share { display: flex; gap: 14px; flex-wrap: wrap; }
.share a, .share button {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-size: 13.5px; color: var(--ink-2); text-decoration: underline;
  text-underline-offset: 3px; text-decoration-color: var(--line);
  min-height: 44px; display: inline-flex; align-items: center;
}
.share a:hover { color: var(--teal-ink); text-decoration-color: currentColor; }

/* ---------- 8. Temas y archivo ---------- */
.page-head { padding: clamp(40px, 6vw, 80px) 0 clamp(28px, 4vw, 48px); }
.page-head h1 { max-width: 24ch; margin-bottom: 20px; }
.page-head .lede { max-width: 58ch; }

.hub-list { border-top: 1px solid var(--ink); }
.hub-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 32px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.hub-item h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); margin-bottom: 8px; }
.servicio h2 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); }
.hub-item h2 a:hover { color: var(--teal-ink); }
.hub-item p { color: var(--ink-2); font-size: 15.5px; margin: 0; max-width: 56ch; }
.hub-item .n { font-size: 13px; color: var(--ink-3); text-align: right; }

.list { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.list-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 180px;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.list-row time { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.list-row h3 { font-size: 1.12rem; line-height: 1.25; font-weight: 400; }
.list-row a:hover h3 { color: var(--teal-ink); }
.list-row .tema { font-size: 13px; color: var(--ink-3); text-align: right; }

.filters {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 36px;
}
.filters a, .filters button {
  border: 1px solid var(--line);
  background: none;
  padding: 8px 14px;
  font-size: 13.5px;
  border-radius: 999px;
  color: var(--ink-2);
  cursor: pointer;
  min-height: 38px;
  transition: all .2s var(--ease);
}
.filters a:hover, .filters button:hover { border-color: var(--ink-3); color: var(--ink); }
.filters .on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- 9. Formularios ---------- */
.form { max-width: 560px; }
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 7px;
  color: var(--ink);
}
.field .hint { font-size: 12.5px; color: var(--ink-3); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%;
  font-family: var(--font-ui);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  min-height: 46px;
  transition: border-color .2s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--teal-ink);
  outline: 2px solid rgba(0,105,124,.15);
  outline-offset: 0;
}
.field .error { color: #a02a1f; font-size: 13px; margin-top: 6px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #a02a1f; }
.hp { position: absolute; left: -9999px; }

/* ---------- 10. Pie ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
  margin-top: 0;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.foot-brand img { height: 30px; width: auto; margin-bottom: 16px; }
.foot-brand p { font-size: 14px; color: var(--ink-2); max-width: 30ch; line-height: 1.5; }
.foot-col h3 {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--ink-3);
  margin-bottom: 14px;
  font-weight: 500;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 9px; }
.foot-col a { font-size: 14px; color: var(--ink-2); }
.foot-col a:hover { color: var(--teal-ink); }
.foot-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink-3);
}

/* ---------- 11. Utilidades ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack-8 > * + * { margin-top: 8px; }
.stack-16 > * + * { margin-top: 16px; }
.stack-24 > * + * { margin-top: 24px; }
.stack-40 > * + * { margin-top: 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 220px; gap: 48px; }
  .rail { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .band-inner { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .grid-3 { grid-template-columns: 1fr 1fr; gap: 28px; }
  .grid-3 > :first-child { grid-column: 1 / -1; }
  .grid-3 > :first-child .entry-fig img { aspect-ratio: 16/9; }
  .routes { grid-template-columns: 1fr; }
  .route + .route { border-left: 0; padding-left: 0; }
  .audience { grid-template-columns: 1fr; gap: 40px; }
  .hub-item { grid-template-columns: 1fr; gap: 10px; }
  .hub-item .n { text-align: left; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .aside { display: none; }
  .toc-movil { display: block; margin-bottom: 28px; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .nav {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    margin: 0;
  }
  .site-header.nav-open .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
  .site-header.nav-open .nav .btn { margin-top: 16px; border-bottom: 0; }
  .site-header { position: relative; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-3 > :first-child { grid-column: auto; }
  .list-row { grid-template-columns: 1fr; gap: 6px; }
  .list-row .tema { display: none; }
  .list-row time { order: -1; }
  .hero-media { grid-template-columns: 1fr 1fr; margin-top: 36px; }
  .hero-media figure:last-child { display: none; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .article-head h1 { max-width: none; }
  .prose { font-size: 1.14rem; }
  .prose .tabla { font-size: 14px; }
  .filters { gap: 6px; }
  .section-head { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  .site-header, .site-footer, .aside, .related, .share, .rail { display: none !important; }
  .article-layout { display: block; }
  .prose { font-size: 11pt; }
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  position: relative;
  font-family: var(--font-display);
  font-size: 1.22rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 12px; top: 30px;
  width: 12px; height: 12px;
  background:
    linear-gradient(var(--ink), var(--ink)) center/12px 1.2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center/1.2px 12px no-repeat;
  transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 44px 24px 0; }
.faq-a p { color: var(--ink-2); font-size: 16px; line-height: 1.6; margin: 0; max-width: 68ch; }

/* ---------- Contacto ---------- */
.contacto-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  padding-bottom: 64px;
}
.contacto-datos .aside-block p { font-size: 15px; color: var(--ink-2); margin: 0; }

/* ---------- Lista (fallback sin JS) ---------- */
.list-row[hidden] { display: none; }

@media (max-width: 900px) {
  .contacto-grid { grid-template-columns: 1fr; gap: 40px; }
  .faq-a { padding-right: 0; }
}

/* ---------- Servicios ---------- */
.servicio {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.servicio:first-of-type { border-top: 1px solid var(--ink); }
.servicio h2 { font-size: clamp(1.3rem, 1.7vw, 1.55rem); line-height: 1.15; }
.servicio p { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; max-width: 62ch; margin: 0 0 10px; }
.servicio .meta { color: var(--ink-3); font-size: 13px; }

@media (max-width: 820px) {
  .servicio { grid-template-columns: 1fr; gap: 12px; padding: 26px 0; }
}

.hero-note {
  margin: 40px 0 0;
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: .01em;
}
.list-row { grid-template-columns: 112px minmax(0, 1fr) 170px; }
.list-row.sin-tema { grid-template-columns: 112px minmax(0, 1fr); }

@media (max-width: 640px) {
  .byline { flex-direction: column; align-items: flex-start; gap: 3px; }
  .byline .dot { display: none; }
}

.toc-movil summary { position: relative; padding-right: 36px; }
.toc-movil summary::after {
  content: "";
  position: absolute; right: 10px; top: 50%;
  width: 11px; height: 11px; margin-top: -5px;
  background:
    linear-gradient(var(--ink-2), var(--ink-2)) center/11px 1.2px no-repeat,
    linear-gradient(var(--ink-2), var(--ink-2)) center/1.2px 11px no-repeat;
  transition: transform .25s var(--ease);
}
.toc-movil[open] summary::after { transform: rotate(45deg); }

/* ---------- Vertical Odontología ---------- */
.v-hero {
  background: var(--ink);
  color: #fff;
  padding: clamp(56px, 7vw, 104px) 0 clamp(48px, 6vw, 88px);
}
.v-kicker {
  font-size: 12.5px;
  letter-spacing: .06em;
  color: rgba(255,255,255,.55);
  margin: 0 0 20px;
}
.v-hero h1 {
  color: #fff;
  max-width: 20ch;
  margin-bottom: 24px;
}
.v-lede {
  color: rgba(255,255,255,.72);
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
  line-height: 1.55;
  max-width: 56ch;
  margin: 0 0 36px;
}
.btn-claro { background: #fff; color: var(--ink); border-color: #fff; }
.btn-claro:hover { background: var(--wash); border-color: var(--wash); }
.btn-line-claro { color: #fff; border-bottom-color: rgba(255,255,255,.3); }
.btn-line-claro:hover { color: #fff; border-bottom-color: #fff; }

.v-razones { gap: clamp(24px, 3vw, 48px); }
.v-razones h3 { font-size: 1.22rem; margin-bottom: 10px; }
.v-razones p { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; margin: 0; max-width: 42ch; }

.proximo {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.proximo h3 { font-size: 1.15rem; margin-bottom: 16px; }
.proximo-lista {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  max-width: 70ch;
  columns: 2;
  column-gap: 40px;
}
.proximo-lista li {
  font-size: 15px;
  color: var(--ink-2);
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  break-inside: avoid;
}

@media (max-width: 760px) {
  .proximo-lista { columns: 1; }
}

/* ---------- Franja de odontología en la home ---------- */
.v-strip { background: var(--ink); color: #fff; padding: clamp(40px, 5vw, 64px) 0; }
.v-strip-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; margin-bottom: 28px;
}
.v-strip-head h2 { color: #fff; font-size: clamp(1.4rem, 2vw, 1.8rem); }
.v-strip .v-kicker { margin-bottom: 8px; }
.v-strip .link-arrow { color: #fff; }
.v-strip-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.16); }
.v-strip-list li { border-bottom: 1px solid rgba(255,255,255,.16); }
.v-strip-list a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 15px 0; color: rgba(255,255,255,.88);
  font-family: var(--font-display); font-size: 1.16rem; line-height: 1.3;
  transition: color .2s var(--ease), padding-left .25s var(--ease);
}
.v-strip-list a:hover { color: #fff; padding-left: 8px; }
.v-n { font-family: var(--font-ui); font-size: 12.5px; color: rgba(255,255,255,.45); flex: none; }

/* párrafo de cierre dentro de un artículo */
.prose .siguiente {
  margin-top: 2em;
  padding-top: 1.4em;
  border-top: 1px solid var(--line);
  font-size: 1.06rem;
  color: var(--ink-2);
}

@media (max-width: 640px) {
  .v-strip-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .v-strip-list a { font-size: 1.05rem; gap: 12px; }
  .v-n { display: none; }
}

/* ---------- Lista de serie (vertical dental) ---------- */
.list-row.serie { grid-template-columns: 56px minmax(0, 1fr); align-items: center; }
.list-row.serie .orden {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--teal-ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

/* ---------- Puente hacia la serie de odontología ---------- */
.puente {
  margin: 48px 0 8px;
  padding: 22px 24px;
  background: var(--wash);
  border-left: 2px solid var(--teal);
}
.puente-label {
  margin: 0 0 8px;
  font-family: var(--font-ui);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--ink-3);
}
.puente-texto {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.14rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.puente a {
  color: var(--teal-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
}
.puente a:hover { text-decoration-color: var(--teal-ink); }

/* ---------- Banner de consentimiento ---------- */
.consent {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 70;
  width: min(400px, calc(100vw - 48px));
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 22px 24px 18px;
  box-shadow: 0 12px 32px rgba(15, 22, 23, .10);
}
.consent[hidden] { display: none; }
.consent-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--ink-3);
}
.consent h2 {
  font-size: 1.34rem;
  line-height: 1.15;
  margin: 0 0 10px;
}
.consent-texto {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}
.consent-acciones { display: flex; gap: 12px; align-items: center; }
.consent-acciones .btn { flex: 1; min-height: 44px; padding: 10px 16px; }
.consent-acciones .btn-line { flex: 1; justify-content: center; min-height: 44px; border: 1px solid var(--line); padding: 10px 16px; }
.consent-acciones .btn-line:hover { border-color: var(--ink); }
.consent-legal {
  margin: 14px 0 0;
  font-size: 12.5px;
}
.consent-legal a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.consent-legal a:hover { color: var(--teal-ink); }
.consent:focus { outline: none; }

@media (max-width: 640px) {
  .consent { left: 16px; right: 16px; bottom: 16px; width: auto; padding: 18px 18px 14px; }
  .consent h2 { font-size: 1.2rem; }
}
