/* DC Health Connect — sistema visual caliza y granate */
@font-face { font-family: "Newsreader"; font-weight: 300; font-style: normal; font-display: swap; src: url(fonts/newsreader-300.woff2) format("woff2"); }
@font-face { font-family: "Newsreader"; font-weight: 300; font-style: italic; font-display: swap; src: url(fonts/newsreader-300-italic.woff2) format("woff2"); }
@font-face { font-family: "Newsreader"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/newsreader-400.woff2) format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 100 900; font-style: normal; font-display: swap;
  src: url(fonts/hanken-grotesk-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hanken Grotesk"; font-weight: 100 900; font-style: normal; font-display: swap;
  src: url(fonts/hanken-grotesk-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bone: #E8E9E6;
  --paper: #F7F7F3;
  --ink: #232D2D;
  --ink-2: #4A5A58;
  --line: #CDD2CD;
  --brass: #713D4D;
  --brass-text: #713D4D;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gut: clamp(22px, 5vw, 72px);
  --max: 1280px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bone); color: var(--ink); font-family: var(--sans); font-size: 20px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--brass-text); outline-offset: 3px; }
.on-ink :focus-visible { outline-color: var(--brass); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bone); padding: 10px 16px; z-index: 50; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gut); }

@media (min-width: 900px) { body { font-size: 22px; } }

/* Tipografía */
.d1, .d2, .d3 { font-family: var(--serif); font-weight: 300; letter-spacing: -.022em; line-height: 1.05; text-wrap: balance; }
.d1 { font-size: clamp(46px, 11.5vw, 124px); }
.d2 { font-size: clamp(38px, 8.2vw, 80px); max-width: 17ch; }
.d3 { font-size: clamp(30px, 5vw, 46px); line-height: 1.12; }
.d1 em, .d2 em, .d3 em { font-style: italic; }
.label { font-family: var(--sans); font-size: 16px; font-weight: 500; letter-spacing: .06em; color: var(--brass-text); }
.on-ink .label { color: #D6ACB6; }
.sub { font-size: clamp(20px, 2.4vw, 25px); line-height: 1.5; color: var(--ink-2); max-width: 36ch; text-wrap: pretty; }
.on-ink .sub { color: rgba(232, 233, 230, .88); }
.note { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); max-width: 70ch; }
.on-ink .note { color: rgba(232, 233, 230, .72); }
p.body { font-size: 1em; line-height: 1.6; max-width: 40ch; }

/* Botón */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; background: var(--brass); color: #fff; font-family: var(--sans); font-size: 17px; font-weight: 500; letter-spacing: .02em; text-decoration: none; padding: 20px 32px; min-height: 60px; border: 1px solid var(--brass); transition: background .25s var(--ease), color .25s var(--ease); }
.btn:hover { background: transparent; color: var(--brass); }
.btn .ar { transition: transform .35s var(--ease); }
.btn:hover .ar { transform: translateX(4px); }
.on-ink .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.on-ink .btn:hover { background: transparent; color: var(--paper); }
.lnk { font-size: 17px; font-weight: 500; text-decoration: none; color: var(--ink); padding: 8px 0; border-bottom: 1px solid var(--brass); }
.lnk:hover { color: var(--brass-text); }
.on-ink .lnk { color: var(--bone); }
@media (max-width: 520px) { .btn.block { display: flex; width: 100%; } }

/* Encabezado fijo */
.hd { position: sticky; top: 0; z-index: 10; background: rgba(247, 247, 243, .96); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hd .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: 14px; gap: 18px; }
.logo { font-family: var(--serif); font-size: 24px; font-weight: 400; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.logo em { font-style: italic; font-weight: 300; color: var(--brass-text); }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { font-size: 16px; font-weight: 500; text-decoration: none; padding: 10px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-bottom-color: var(--brass); }
.nav .hide-s { display: none; }
@media (min-width: 700px) { .nav .hide-s { display: inline; } .nav { gap: 30px; } }

/* Secciones */
.sec { padding-block: clamp(64px, 11vw, 140px); }
.sec.on-ink { background: var(--ink); color: var(--bone); }
.sec.tone { background: var(--paper); }
.sec > .wrap > .label { display: block; margin-bottom: 18px; }
.sec h2 { margin-bottom: clamp(20px, 3vw, 32px); }
.sec .lead { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.5; color: var(--ink-2); max-width: 38ch; margin-bottom: clamp(28px, 5vw, 56px); }
.on-ink .lead { color: rgba(232, 233, 230, .88); }

/* Portada */
.hero { padding-block: clamp(48px, 9vw, 120px) clamp(56px, 9vw, 120px); }
.hero .d1 { max-width: 13ch; margin: 18px 0 clamp(24px, 4vw, 40px); }
.hero .sub { margin-bottom: 36px; max-width: 34ch; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; }

/* Dos realidades */
.duo { display: grid; grid-template-columns: 1fr; gap: 18px; margin-bottom: clamp(32px, 5vw, 56px); }
.duo > div { background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--brass); padding: clamp(24px, 3.4vw, 40px); }
.duo h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3.2vw, 34px); line-height: 1.15; margin-bottom: 14px; }
.duo p { font-size: 1em; color: var(--ink-2); }
.stat { display: grid; grid-template-columns: 1fr; gap: 10px; border-top: 1px solid var(--line); padding-top: 28px; align-items: baseline; }
.stat b { font-family: var(--serif); font-weight: 300; font-size: clamp(56px, 11vw, 112px); line-height: .95; letter-spacing: -.03em; color: var(--ink); }
.stat p { font-size: 1em; max-width: 36ch; }
.stat small { display: block; font-size: 14.5px; color: var(--ink-2); margin-top: 8px; }
.on-ink .stat { border-top-color: rgba(232, 233, 230, .28); }
.on-ink .stat b { color: var(--bone); }
.on-ink .stat small { color: rgba(232, 233, 230, .72); }
@media (min-width: 820px) { .duo { grid-template-columns: 1fr 1fr; gap: 28px; } .stat { grid-template-columns: auto 1fr; gap: 40px; } }

/* Recorrido */
.journey { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
.tl li { display: grid; grid-template-columns: 64px 1fr; gap: 4px 8px; padding: 26px 0; border-top: 1px solid var(--line); }
.tl li:last-child { border-bottom: 1px solid var(--line); }
.tl b.n { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 38px; line-height: 1; color: var(--brass-text); }
.tl h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 32px); line-height: 1.15; margin-bottom: 6px; }
.tl p { grid-column: 2; font-size: 1em; color: var(--ink-2); }
.stage { position: relative; }
.frame { background: var(--ink); padding: 10px; border: 1px solid rgba(138, 107, 51, .55); }
.frame video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #1d2a25; }
.frame .vctl { display: flex; justify-content: flex-start; padding-top: 8px; }
.vbtn { background: none; border: 0; cursor: pointer; font: 500 15px var(--sans); color: rgba(232, 233, 230, .9); padding: 8px 2px; border-bottom: 1px solid var(--brass); }
.chat { position: relative; margin-top: 14px; background: #F7F7F3; border: 1px solid var(--line); padding: 20px; }
.chat .label { display: block; margin-bottom: 14px; font-size: 14.5px; letter-spacing: .03em; }
.msg { font-size: 17px; line-height: 1.45; padding: 12px 15px; max-width: 92%; }
.msg.p { background: #E3E6DC; margin-bottom: 10px; }
.msg.l { background: var(--ink); color: var(--bone); margin-left: auto; }
@media (min-width: 960px) {
  .journey { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 6vw, 96px); }
  .tl { grid-column: 1; grid-row: 1; }
  .stage { grid-column: 2; grid-row: 1; position: sticky; top: 100px; }
}


/* Emilio */
.ask { background: rgba(232, 233, 230, .06); border: 1px solid rgba(232, 233, 230, .24); padding: clamp(22px, 3vw, 34px); }
.ask .q { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(24px, 3.2vw, 32px); line-height: 1.25; margin-bottom: 20px; }
.ask table { width: 100%; border-collapse: collapse; font-size: 17px; }
.ask th, .ask td { text-align: left; padding: 12px 0; border-top: 1px solid rgba(232, 233, 230, .2); font-weight: 400; }
.ask th { color: rgba(232, 233, 230, .72); font-size: 15px; font-weight: 500; }
.ask td:last-child, .ask th:last-child { text-align: right; }
.ask tr.top td { color: #D6ACB6; font-weight: 500; }
.split { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chips span { font-size: 17px; border: 1px solid rgba(232, 233, 230, .42); padding: 10px 18px; }
.chips span.on { border-color: #D6ACB6; color: #D6ACB6; }

/* Tres columnas */
.trio { display: grid; grid-template-columns: 1fr; gap: 28px; margin-bottom: 8px; }
.trio > div { border-top: 1px solid var(--brass); padding-top: 22px; }
.trio h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 3.6vw, 42px); letter-spacing: -.015em; line-height: 1.1; margin-bottom: 12px; }
.trio p { font-size: 1em; line-height: 1.55; color: rgba(232, 233, 230, .88); max-width: 30ch; }
.trio.light p { color: var(--ink-2); }
.trio.light > div { border-top-color: var(--line); }
.trio .num { display: block; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(52px, 7vw, 72px); line-height: 1; color: var(--brass-text); margin-bottom: 14px; }
.quiet { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(26px, 3.4vw, 36px); color: #D6ACB6; margin-top: 36px; }
@media (min-width: 820px) { .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); } }

/* Pasos */
.steps { display: grid; grid-template-columns: 1fr; gap: 26px; counter-reset: s; margin-bottom: 40px; }
.steps li { border-top: 1px solid rgba(232, 233, 230, .3); padding-top: 18px; counter-increment: s; }
.steps li::before { content: "0" counter(s); display: block; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 36px; color: #D6ACB6; margin-bottom: 8px; }
.steps b { display: block; font-family: var(--serif); font-weight: 400; font-size: 28px; margin-bottom: 6px; }
.steps span { font-size: 1em; color: rgba(232, 233, 230, .86); }
.steps.light li { border-top-color: var(--line); }
.steps.light span { color: var(--ink-2); }
.steps.light li::before { color: var(--brass-text); }
.steps.light b { color: var(--ink); }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); } }

/* Pie */
.ft { border-top: 1px solid rgba(232, 233, 230, .22); padding-block: 26px 34px; display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: space-between; align-items: baseline; margin-top: clamp(48px, 8vw, 96px); }
.ft nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.ft a { font-size: 16px; text-decoration: none; padding: 8px 0; }
.ft a:hover { color: #D6ACB6; }
.site-ft { border-top: 1px solid var(--line); margin-top: clamp(56px, 9vw, 120px); }
.site-ft .ft { border-top: 0; margin-top: 0; }
.site-ft a:hover { color: var(--brass-text); }

/* Páginas internas */
.pg { padding-block: clamp(36px, 7vw, 96px) 0; }
.pg h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(42px, 9vw, 96px); line-height: 1.03; letter-spacing: -.024em; max-width: 15ch; text-wrap: balance; margin: 18px 0 24px; }
.pg h1 em { font-style: italic; }
.pg .lead { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.5; color: var(--ink-2); max-width: 40ch; margin-bottom: 32px; }
.pg section { margin-top: clamp(56px, 9vw, 110px); }
.pg h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 5.4vw, 56px); line-height: 1.08; letter-spacing: -.02em; max-width: 20ch; margin: 14px 0 28px; text-wrap: balance; }
.four { display: grid; grid-template-columns: 1fr; gap: 0 clamp(28px, 5vw, 80px); }
.four > div { border-top: 1px solid var(--line); padding: 24px 0 30px; }
.four h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin-bottom: 8px; line-height: 1.2; }
.four p { color: var(--ink-2); max-width: 44ch; font-size: 1em; }
@media (min-width: 820px) { .four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.band { background: var(--ink); color: var(--bone); padding-block: clamp(56px, 9vw, 100px); margin-top: clamp(56px, 9vw, 120px); }
.band h2 { color: var(--bone); margin-top: 0; }
.prose { max-width: 62ch; }
.prose p { margin-bottom: 1.15em; font-size: 1em; line-height: 1.7; }
.prose h2 { margin-top: 2em; font-size: clamp(28px, 3.6vw, 40px); }
.prose ul { margin: 0 0 1.2em; }
.prose li { padding: 7px 0 7px 24px; position: relative; }
.prose li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 12px; height: 1px; background: var(--brass); }
.series li { border-top: 1px solid var(--line); padding: 24px 0; display: grid; grid-template-columns: 64px 1fr; gap: 6px 16px; align-items: baseline; }
.series li:last-child { border-bottom: 1px solid var(--line); }
.series .n { grid-row: 1 / span 3; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 30px; color: var(--brass-text); }
.series h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.2; }
.series h3, .series p { grid-column: 2; }
.series p { color: var(--ink-2); font-size: 1em; }
.series .st { font-size: 16px; }
.pend { border-left: 2px solid var(--brass); padding: 4px 0 4px 18px; color: var(--ink-2); max-width: 56ch; }
.crumbs { font-size: 15px; color: var(--ink-2); }
.crumbs a { text-decoration: none; border-bottom: 1px solid var(--line); }

/* Entrada suave */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in, .js.rv-all .rv { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .btn, .btn .ar { transition: none; }
}
.sec, .hero { scroll-margin-top: 64px; }
.ask th, .ask td { padding-right: 10px; }
.ask th:nth-child(2), .ask td:nth-child(2) { text-align: center; }
.ask th:last-child, .ask td:last-child { padding-right: 0; }
@media (max-width: 480px) { .ask table { font-size: 16px; } .ask th { font-size: 13.5px; } }

/* Utilidades y enlaces dentro de notas */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.stat small a { color: inherit; text-decoration-color: var(--brass); text-underline-offset: 3px; }

/* Demo interactiva */
.demo { display: grid; grid-template-columns: 1fr; gap: 22px; background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--brass); padding: clamp(22px, 4vw, 48px); }
.demo-head .d3 { margin-bottom: 10px; }
.demo-head .sub { max-width: 40ch; }
.demo-form { display: grid; grid-template-columns: 1fr; gap: 18px; }
.demo-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.demo-form legend { font-size: 16px; font-weight: 500; color: var(--brass-text); padding: 0; margin-bottom: 8px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; flex: 1 1 auto; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 10px 16px; font-size: 17px; line-height: 1.25; border: 1px solid var(--line); background: var(--bone); color: var(--ink); transition: background .25s, color .25s, border-color .25s; }
.seg input:checked + span { background: var(--brass); color: #fff; border-color: var(--brass); }
.seg input:checked + span::before { content: "✓"; margin-right: 8px; color: #D6ACB6; }
.seg input:focus-visible + span { outline: 2px solid var(--brass-text); outline-offset: 3px; }
.seg label:hover span { border-color: var(--brass-text); }
.demo-chat { background: #F7F7F3; border: 1px solid var(--line); padding: 20px; align-self: start; }
.demo-chat .label { display: block; margin-bottom: 14px; font-size: 14.5px; letter-spacing: .03em; }
.demo-chat .msg.l span { background-color: transparent; transition: background-color 1.4s ease; }
.demo-chat .msg.l span.hl { background-color: rgba(211, 176, 109, .38); transition: none; }
.demo-note { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .demo { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 20px clamp(32px, 5vw, 72px); }
  .demo-head { grid-column: 1 / -1; }
  .demo-form { grid-column: 1; grid-row: 2; }
  .demo-chat { grid-column: 2; grid-row: 2; position: sticky; top: 100px; }
  .demo-note { grid-column: 1 / -1; grid-row: 3; }
}
@media (prefers-reduced-motion: reduce) { .demo-chat .msg.l span, .seg span { transition: none; } }
@media (forced-colors: active) { .seg input:checked + span { outline: 2px solid Highlight; } }

/* Demo en móvil: la respuesta queda visible mientras se cambian los controles */
@media (max-width: 899px) {
  .demo-chat { order: 2; position: sticky; top: 66px; z-index: 3; max-height: 42svh; overflow-y: auto; padding: 12px 14px; box-shadow: 0 6px 18px rgba(22, 36, 31, .12); }
  .demo-chat .msg { font-size: 15px; line-height: 1.4; padding: 8px 11px; }
  .demo-chat .msg.p { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .demo-chat .label { margin-bottom: 8px; }
  .demo-form { order: 3; }
  .demo-head { order: 1; }
  .demo-note { order: 4; }
}

/* Selector de idioma del sitio */
.lang { display: flex; align-items: center; margin-left: 4px; border: 1px solid var(--line); }
.lang a, .lang span { display: block; min-width: 44px; padding: 8px 10px; text-align: center; font-size: 15px; font-weight: 500; line-height: 1.2; text-decoration: none; border: 0; }
.lang a:hover { background: var(--paper); }
.lang span[aria-current] { background: var(--ink); color: var(--bone); }
.nav .lang a { border-bottom: 0; padding: 8px 10px; }
@media (max-width: 420px) { .hd .wrap { gap: 10px; } .nav { gap: 12px; } .logo { font-size: 19px; } .lang a, .lang span { min-width: 38px; padding: 8px; } }
