/*
 * Sitio público de PediaLoop (pedialoop.com.ar). Parte de la propuesta de José del 09/11/2026 con sus colores
 * (marfil, verdes salvia y lima, que viven solo en el sitio) y la tipografía de Hilo: Figtree en textos y títulos,
 * Fraunces itálica en el acento. El teal y el ámbar de lo pendiente son los de la app (docs/design-system/tokens.css).
 * Sin recursos de terceros: fuentes, imágenes y scripts salen de este mismo sitio.
 */

/* ---- Fuentes autoalojadas (OFL-1.1, @fontsource 5.3.0; licencias en fuentes/) ---- */
@font-face { font-family: 'Figtree'; font-style: normal; font-display: swap; font-weight: 400; src: url(fuentes/figtree-latin-400-normal.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: 'Figtree'; font-style: normal; font-display: swap; font-weight: 400; src: url(fuentes/figtree-latin-ext-400-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Figtree'; font-style: normal; font-display: swap; font-weight: 500; src: url(fuentes/figtree-latin-500-normal.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: 'Figtree'; font-style: normal; font-display: swap; font-weight: 500; src: url(fuentes/figtree-latin-ext-500-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Figtree'; font-style: normal; font-display: swap; font-weight: 600; src: url(fuentes/figtree-latin-600-normal.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: 'Figtree'; font-style: normal; font-display: swap; font-weight: 600; src: url(fuentes/figtree-latin-ext-600-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Figtree'; font-style: normal; font-display: swap; font-weight: 700; src: url(fuentes/figtree-latin-700-normal.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: 'Figtree'; font-style: normal; font-display: swap; font-weight: 700; src: url(fuentes/figtree-latin-ext-700-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: italic; font-display: swap; font-weight: 100 900; src: url(fuentes/fraunces-latin-opsz-italic.woff2) format('woff2-variations'); 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: 'Fraunces'; font-style: italic; font-display: swap; font-weight: 100 900; src: url(fuentes/fraunces-latin-ext-opsz-italic.woff2) format('woff2-variations'); 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---- Paleta del sitio ---- */
:root {
  --tinta: #193b36;          /* textos y títulos */
  --teal: #0e6b66;           /* acción: el mismo --hilo-accent de la app */
  --teal-oscuro: #07544f;
  --profundo: #123e38;       /* banda de confianza */
  --menta: #edf5ee;
  --lima: #dbef9c;           /* acento solo del sitio, nunca en la app */
  --marfil: #faf9f5;         /* fondo */
  --cuerpo: #566560;         /* párrafos */
  --apagado: #5f6c65;        /* rótulos y notas: 4,6:1 o más sobre todos los fondos del sitio */
  --linea: #dce5df;
  --salvia: #eff4ed;
  --salvia-linea: #e4ebdf;
  --panel: #f9faf7;
  --ambar-fondo: #f8ead3;    /* lo pendiente: fondo de chip */
  --ambar-texto: #8a5209;    /* lo pendiente: texto, el --hilo-pending-text de la app */
  --ambar-trazo: #b86e12;    /* lo pendiente: anillo, el --hilo-pending de la app */
  --verde-fondo: #e1eee9;
  --verde-texto: #35644a;
  --foco: #bc7436;
  --fuente: Figtree, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fuente-acento: Fraunces, Georgia, 'Times New Roman', serif;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--marfil); color: var(--tinta); font: 16px/1.6 var(--fuente); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--foco); outline-offset: 5px; }
img { max-width: 100%; display: block; }
p, h1, h2, h3, h4 { margin: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.03em; }
p { color: var(--cuerpo); }
.wrap { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.serif { font-family: var(--fuente-acento); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
.icon { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.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; }
.saltar { position: absolute; left: 16px; top: -100px; z-index: 50; }
.saltar:focus { top: 16px; }

.eyebrow { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--teal); display: flex; align-items: center; gap: 9px; margin-bottom: 22px; }
.dot { width: 7px; height: 7px; border-radius: 100%; background: var(--teal); display: inline-block; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 44px; padding: 15px 23px; border-radius: 8px; background: var(--teal); border: 1px solid var(--teal); color: #fff; font-weight: 600; font-size: 14px; line-height: 1.4; transition: background 0.2s, transform 0.2s; }
.btn:hover { background: var(--teal-oscuro); transform: translateY(-2px); }
.textlink { font-size: 14px; font-weight: 600; border-bottom: 1px solid #a7b5ab; padding-bottom: 4px; display: inline-flex; align-items: center; gap: 13px; min-height: 44px; }
.section { padding: 100px 0; }
.section-title { font-size: clamp(34px, 4vw, 49px); font-weight: 500; max-width: 670px; }
.lede { font-size: 17px; max-width: 520px; margin-top: 22px; line-height: 1.75; }

/* ---- Cabecera ---- */
header { height: 92px; position: sticky; top: 0; z-index: 30; background: rgba(250, 249, 245, 0.96); border-bottom: 1px solid rgba(220, 229, 223, 0.6); backdrop-filter: blur(12px); }
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { display: flex; align-items: center; min-height: 44px; }
.logo { width: 177px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 500; }
.nav-links > a:not(.btn) { padding: 10px 0; }
.nav-links > a:not(.btn):hover, .nav-links > a[aria-current='page'] { color: var(--teal); text-decoration: underline; text-underline-offset: 6px; }
.nav-links .btn { font-size: 13px; padding: 12px 18px; gap: 10px; }
.mobile-toggle { display: none; border: 1px solid var(--linea); border-radius: 7px; background: none; width: 44px; height: 44px; }

/* ---- Hero ---- */
.hero { padding: 40px 0 45px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(46px, 5.15vw, 68px); font-weight: 500; max-width: 590px; line-height: 1.04; letter-spacing: -0.035em; }
.hero h1 .serif { color: var(--teal); display: block; margin-top: 8px; }
.hero-desc { font-size: 17px; line-height: 1.75; max-width: 470px; margin-top: 26px; }
.hero-actions { display: flex; gap: 25px; align-items: center; margin: 30px 0 15px; flex-wrap: wrap; }
.micro { font-size: 12px; color: var(--apagado); }
.hero-visual { position: relative; padding-bottom: 77px; }
.photo-frame { height: 438px; border-radius: 90px 22px 22px 22px; overflow: hidden; background: #e3e9db; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 57% 50%; }
.photo-caption { position: absolute; top: 15px; right: 15px; border: 1px solid #ffffff99; color: #234d3c; background: #ffffffe6; border-radius: 100px; padding: 5px 10px; font-size: 11px; }
.floating-note { position: absolute; bottom: 18px; left: -28px; width: 380px; max-width: 95%; background: #fff; border: 1px solid #e2e8dd; border-radius: 15px; box-shadow: 0 16px 35px #183d2e12; padding: 22px; }
.note-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; margin-bottom: 12px; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--teal); }
.live-dot i { width: 6px; height: 6px; background: #639f66; border-radius: 50%; }
.note-body { display: flex; align-items: center; gap: 13px; }
.initial { height: 40px; width: 40px; border-radius: 50%; display: grid; place-items: center; background: #f5eadc; color: #6f4b2a; font-size: 13px; flex-shrink: 0; }
.note-body strong { display: block; font-size: 14px; font-weight: 500; }
.note-body small { font-size: 12px; color: var(--apagado); }
.pending { margin-left: auto; font-size: 11px; padding: 4px 8px; border-radius: 5px; background: #fff3df; color: var(--ambar-texto); white-space: nowrap; }
.note-foot { margin-top: 12px; border-top: 1px solid #f0f2ed; padding-top: 10px; font-size: 12px; color: var(--apagado); }
.hero-seal { position: absolute; bottom: 31px; right: 9px; width: 91px; height: 91px; border-radius: 50%; display: grid; place-items: center; background: var(--lima); transform: rotate(10deg); }
.hero-seal svg { width: 52px; height: 52px; stroke: var(--profundo); stroke-width: 1.2; fill: none; }
.benefit-bar { display: flex; align-items: center; justify-content: space-between; padding: 28px 0 4px; margin-top: 30px; border-top: 1px solid var(--linea); font-size: 13px; color: #4a6256; gap: 15px; }
.benefit-bar span { display: flex; gap: 10px; align-items: center; }
.benefit-bar .icon { width: 19px; height: 19px; }
.benefit-bar .signature { color: var(--apagado); font-size: 11px; letter-spacing: 0.1em; }

/* ---- El loop: cuatro pasos y la demo del Hilo de Sofía ---- */
.loop-section { background: var(--salvia); border-top: 1px solid var(--salvia-linea); border-bottom: 1px solid var(--salvia-linea); }
.section-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 60px; margin-bottom: 48px; }
.section-top .lede { max-width: 345px; font-size: 15px; margin: 0 0 4px; }
.loop-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 75px; align-items: center; }
.step-list { display: flex; flex-direction: column; gap: 4px; }
.step { display: grid; grid-template-columns: 36px 1fr; gap: 16px; width: 100%; padding: 18px 15px; text-align: left; background: none; border: 1px solid transparent; border-radius: 11px; transition: background 0.2s; }
.step.active { background: #fff; border-color: #dce4d5; box-shadow: 0 6px 20px #20412404; }
.step:hover { background: #ffffffa0; }
.step-num { font-size: 11px; border: 1px solid #a8b9a6; border-radius: 50%; width: 30px; height: 30px; display: grid; place-items: center; color: var(--apagado); }
.step.active .step-num { background: var(--teal); color: #fff; border-color: var(--teal); }
.step strong { display: block; font-size: 18px; font-weight: 500; letter-spacing: -0.02em; margin: 3px 0 7px; }
.step span > span { display: block; font-size: 14px; line-height: 1.65; max-width: 335px; color: var(--cuerpo); }
.mini-label { font-size: 12px; color: var(--apagado); margin: 18px 0 0 15px; }

.demo { background: #fff; border: 1px solid #d8e1d3; border-radius: 15px; box-shadow: 0 20px 35px #2147310b; overflow: hidden; }
.demo-toolbar { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid #ecf0e8; padding: 13px 17px; background: var(--panel); }
.window-dot { width: 6px; height: 6px; border-radius: 50%; background: #d4ded0; }
.demo-toolbar small { font-size: 11px; color: var(--apagado); margin-left: 10px; }
.demo-toolbar .demo-label { margin-left: auto; letter-spacing: 0.03em; }
.demo-shell { display: grid; grid-template-columns: 61px 1fr; min-height: 405px; }
.demo-side { background: var(--panel); border-right: 1px solid #edf0e8; display: flex; align-items: center; flex-direction: column; padding-top: 25px; gap: 21px; color: #6f8573; }
.demo-side .icon { width: 19px; height: 19px; }
.demo-side .selected { color: var(--teal); background: #e5eee2; padding: 8px; border-radius: 8px; box-sizing: content-box; }
.demo-main { padding: 25px 26px 24px; }
.demo-patient { display: flex; gap: 12px; align-items: center; margin-bottom: 25px; }
.demo-patient .initial { width: 43px; height: 43px; }
.demo-patient h3 { font-size: 18px; font-weight: 500; }
.demo-patient p { font-size: 12px; margin-top: 5px; }
.demo-tab { font-size: 12px; border-bottom: 1px solid #e5ebdf; margin-bottom: 24px; padding-bottom: 10px; display: flex; gap: 20px; color: var(--cuerpo); }
.demo-tab span:first-child { color: var(--teal); font-weight: 600; position: relative; }
.demo-tab span:first-child::after { content: ''; height: 2px; background: var(--teal); position: absolute; bottom: -11px; left: 0; right: 0; }
.timeline-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--apagado); margin-bottom: 12px; }
.count { font-size: 11px; letter-spacing: 0; padding: 2px 7px; background: #edf2e7; color: #4b6440; border-radius: 4px; text-transform: none; }
.demo-card { border: 1px solid #d9e3d1; border-radius: 9px; padding: 17px; transition: background 0.3s; }
.demo-card[data-estado='3'] { background: #f4f8ee; }
.demo-card-head { display: flex; align-items: center; gap: 12px; }
.demo-card h4 { font-size: 14px; font-weight: 500; }
.demo-card .meta { font-size: 12px; color: var(--apagado); margin-top: 3px; }
.status-chip { margin-left: auto; white-space: nowrap; padding: 3px 7px; font-size: 11px; border-radius: 4px; }
.status-chip[data-estado='0'], .status-chip[data-estado='1'] { background: var(--ambar-fondo); color: var(--ambar-texto); }
.status-chip[data-estado='2'] { background: var(--verde-fondo); color: var(--verde-texto); }
.status-chip[data-estado='3'] { background: #dfeeda; color: var(--verde-texto); }
.demo-status { margin: 14px 0 0 38px; font-size: 12px; color: var(--cuerpo); }
.today { display: flex; align-items: center; gap: 10px; color: var(--teal); font-size: 11px; letter-spacing: 0.15em; margin: 22px 0 18px; font-weight: 700; }
.today::before, .today::after { content: ''; height: 1px; background: #dce6d4; flex: 1; }
.past { display: flex; gap: 12px; font-size: 13px; color: #4b6440; padding: 0 4px; }
.past .done { width: 23px; height: 23px; border-radius: 50%; background: #edf3e5; display: grid; place-items: center; font-size: 12px; flex-shrink: 0; }
.past small { font-size: 12px; color: var(--apagado); display: block; margin-top: 3px; }
.demo-card + .past { margin-top: 18px; }
.demo-message { padding: 14px 18px; border-top: 1px solid #e4ebdd; background: #f6f9f0; display: flex; gap: 10px; align-items: center; font-size: 13px; color: #4b6440; min-height: 54px; }
.demo-message .icon { width: 17px; height: 17px; }
.demo-note { font-size: 12px; text-align: center; margin-top: 15px; color: var(--apagado); }
.demo-next { border: 0; border-bottom: 1px solid #77936f; background: none; font-size: 12px; padding: 3px 0; min-height: 36px; color: #4b6440; margin-left: 7px; }

/* Anillo del loop, como hl-loop-ring de la app: ámbar abierto, teal avanzado, tilde cerrado; el arco es el progreso. */
.ring { width: 24px; height: 24px; flex-shrink: 0; }
.ring .track { fill: none; stroke: #dce5df; stroke-width: 3; }
.ring .arc { fill: none; stroke-width: 3; stroke-linecap: round; transition: stroke-dasharray 0.3s; }
.ring .check { fill: none; stroke: var(--teal); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ring[data-estado='0'] .arc, .ring[data-estado='1'] .arc { stroke: var(--ambar-trazo); }
.ring[data-estado='2'] .arc, .ring[data-estado='3'] .arc { stroke: var(--teal); }
.ring:not([data-estado='3']) .check { display: none; }

/* ---- Tu consultorio ---- */
.features { background: #fff; }
.features-head { margin-bottom: 46px; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.feature { border: 1px solid var(--linea); border-radius: 18px; padding: 32px; display: grid; grid-template-columns: 1fr 140px; gap: 25px; min-height: 250px; background: #fcfdf9; }
.feature .icon { margin-bottom: 25px; color: var(--teal); width: 25px; height: 25px; }
.feature h3 { font-size: 23px; font-weight: 500; letter-spacing: -0.03em; margin-bottom: 14px; }
.feature p { font-size: 14px; line-height: 1.75; }
.feature-art { align-self: center; pointer-events: none; }
.agenda-art { background: #fff; border: 1px solid #e0e7db; border-radius: 10px; overflow: hidden; transform: rotate(4deg); box-shadow: 0 8px 14px #29492c07; }
.agenda-art .month { font-size: 11px; padding: 11px; border-bottom: 1px solid #edf1e9; display: flex; justify-content: space-between; }
.days { display: grid; grid-template-columns: repeat(5, 1fr); text-align: center; font-size: 11px; padding: 10px 8px; gap: 4px; }
.days b { background: var(--teal); color: #fff; border-radius: 4px; font-weight: 400; }
.appointment { background: #edf4e5; border-radius: 4px; margin: 0 9px 7px; padding: 6px 7px; font-size: 11px; color: #4b6440; }
.appointment:last-child { background: #fbf1df; margin-bottom: 12px; color: var(--ambar-texto); }
.record-art { background: #fff; border: 1px solid #e0e7db; border-radius: 10px; box-shadow: 0 8px 14px #29492c07; padding: 17px 12px; transform: rotate(-3deg); }
.record-art .icon { width: 20px; height: 20px; margin: 0; color: var(--teal); }
.record-art .line { height: 4px; border-radius: 3px; background: #e7ece2; margin: 8px 0; width: 100%; }
.record-art .line.short { width: 70%; }
.record-art .art-title { font-size: 11px; margin: 9px 0; color: #4b6440; }
.record-art .art-badge { background: #eaf3e0; color: #4b6440; display: inline-block; font-size: 11px; padding: 3px 6px; border-radius: 3px; margin-top: 10px; }
.feature-small-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 35px; margin-top: 40px; }
.feature-small { border-top: 1px solid var(--linea); padding-top: 25px; }
.feature-small .icon { margin-bottom: 17px; color: var(--teal); }
.feature-small h3 { font-size: 17px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 12px; }
.feature-small p { font-size: 14px; line-height: 1.75; }
.product-note { font-size: 13px; margin-top: 28px; color: var(--apagado); }

/* ---- Confianza (banda oscura) ---- */
.trust { background: var(--profundo); color: #f8faed; position: relative; overflow: hidden; }
.trust .wrap { position: relative; z-index: 1; }
.trust .eyebrow { color: #d6e7a7; }
.trust .dot { background: var(--lima); }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 95px; align-items: start; }
.trust h2 { font-size: 47px; font-weight: 400; }
.trust p { color: #c2d1c5; }
.trust .lede { font-size: 15px; }
.trust-list { display: flex; flex-direction: column; }
.trust-item { padding: 20px 0; border-bottom: 1px solid #426254; display: grid; grid-template-columns: 29px 1fr; gap: 17px; }
.trust-item:first-child { padding-top: 0; }
.trust-item .icon { color: #d7e9a4; }
.trust-item h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 9px; }
.trust-item p { font-size: 14px; line-height: 1.7; }
.trust-ornament { font-size: 330px; position: absolute; bottom: -170px; left: -40px; color: #ffffff05; font-family: var(--fuente-acento); line-height: 1; pointer-events: none; }
.trust-link { font-size: 13px; border-bottom: 1px solid #829b83; color: #e2ebd7; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 18px; }
.trust a:focus-visible { outline-color: var(--lima); }

/* ---- Preguntas frecuentes ---- */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 110px; }
.faq-grid .section-title { font-size: 42px; }
.faq details { border-bottom: 1px solid var(--linea); padding: 22px 0; }
.faq details:first-child { padding-top: 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 16px; line-height: 1.4; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 23px; font-weight: 400; color: var(--teal); }
.faq details[open] summary::after { content: '−'; }
.faq details p { font-size: 14px; line-height: 1.8; padding-top: 15px; max-width: 470px; }
.faq details p a { color: var(--teal); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* ---- Piloto ---- */
.pilot { padding: 0 0 85px; }
.pilot-panel { background: #e5eedc; border-radius: 25px; padding: 58px 65px; display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 65px; position: relative; overflow: hidden; }
.pilot-panel::after { content: ''; position: absolute; right: -90px; bottom: -150px; width: 300px; height: 300px; border: 1px solid #c7d7b3; border-radius: 50%; pointer-events: none; }
.pilot-panel .eyebrow { margin-bottom: 17px; }
.pilot-panel h2 { font-size: 43px; font-weight: 500; }
.pilot-panel p { font-size: 15px; line-height: 1.8; margin-top: 20px; }
.pilot-right { position: relative; z-index: 1; }
.pilot-right .btn { width: 100%; padding: 18px 20px; justify-content: space-between; }
.pilot-right .pilot-note { font-size: 13px; margin-top: 14px; color: #4f6346; line-height: 1.6; }
.email-copy { background: transparent; border: 0; border-bottom: 1px solid #a4b994; padding: 3px 0; min-height: 44px; font-size: 14px; margin-top: 20px; display: flex; align-items: center; gap: 12px; }
.email-copy .icon { width: 14px; height: 14px; }

/* ---- Pie ---- */
footer { border-top: 1px solid var(--linea); padding: 35px 0 76px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 25px; }
.footer-top .logo { width: 145px; }
.footer-copy { font-size: 13px; margin-top: 12px; max-width: 260px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 14px; }
.footer-links a { padding: 10px 0; }
.footer-links a:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 5px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; border-top: 1px solid var(--linea); margin-top: 28px; padding-top: 18px; font-size: 12px; color: var(--apagado); }
.toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); z-index: 80; padding: 12px 20px; border-radius: 8px; background: var(--profundo); color: #fff; font-size: 14px; box-shadow: 0 10px 25px #0002; max-width: 90%; text-align: center; }
.toast[hidden] { display: none; }

/* ---- Páginas interiores: Familias, Privacidad y la de no encontrada ---- */
.pagina-cabeza { padding: 64px 0 40px; }
.pagina-cabeza h1 { font-size: clamp(38px, 4.6vw, 58px); font-weight: 500; line-height: 1.06; letter-spacing: -0.035em; max-width: 760px; text-wrap: balance; }
.pagina-cabeza h1 .serif { color: var(--teal); }
.pagina-cabeza .lede { max-width: 600px; }
.familias-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.mensaje-ejemplo { margin: 0; display: flex; flex-direction: column; gap: 10px; max-width: 440px; justify-self: end; width: 100%; }
.mensaje-tarjeta { background: #fff; border: 1px solid var(--linea); border-radius: 18px; padding: 18px; box-shadow: 0 16px 35px #183d2e10; }
.mensaje-cuenta { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #f0f2ed; }
.mensaje-cuenta img { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--linea); }
.mensaje-cuenta strong { display: block; font-size: 15px; font-weight: 600; }
.mensaje-cuenta small { font-size: 12px; color: var(--apagado); }
.mensaje-burbuja { margin-top: 14px; background: var(--menta); border: 1px solid #cfe1d3; border-radius: 12px 12px 12px 4px; padding: 12px 14px; font-size: 15px; line-height: 1.5; }
.mensaje-burbuja p { color: var(--tinta); }
.mensaje-burbuja p + p { margin-top: 8px; }
.mensaje-burbuja .hora { margin-top: 6px; font-size: 12px; color: var(--apagado); text-align: right; font-variant-numeric: tabular-nums; }
.mensaje-ejemplo figcaption { font-size: 12px; color: var(--apagado); padding: 0 4px; }
.respuestas { padding: 8px 0 90px; }
.respuestas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.respuesta { background: #fff; border: 1px solid var(--linea); border-radius: 18px; padding: 28px; }
.respuesta .icon { color: var(--teal); margin-bottom: 16px; }
.respuesta h2 { font-size: 21px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 10px; }
.respuesta p { font-size: 15px; line-height: 1.7; }
.respuesta strong { color: var(--tinta); font-weight: 600; }
.nota-pie { margin-top: 28px; font-size: 15px; }
.nota-pie a, .legal a { color: var(--teal); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

.legal { padding: 0 0 90px; }
.legal-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; align-items: start; }
.legal-indice { position: sticky; top: 116px; background: #fff; border: 1px solid var(--linea); border-radius: 14px; padding: 18px 20px; }
.legal-indice p { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--apagado); margin-bottom: 8px; }
.legal-indice ol { margin: 0; padding-left: 20px; font-size: 14px; }
.legal-indice li { padding: 3px 0; }
.legal-indice a { color: var(--tinta); font-weight: 500; text-decoration: none; }
.legal-indice a:hover { color: var(--teal); text-decoration: underline; }
.legal-cuerpo { max-width: 720px; display: flex; flex-direction: column; gap: 40px; }
.legal-cuerpo section { display: flex; flex-direction: column; gap: 12px; }
.legal-cuerpo h2 { font-size: 26px; font-weight: 500; letter-spacing: -0.025em; }
.legal-cuerpo p, .legal-cuerpo li { font-size: 16px; line-height: 1.75; color: var(--cuerpo); }
.legal-cuerpo strong { color: var(--tinta); font-weight: 600; }
.legal-cuerpo ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.leyenda-aaip { background: #fff; border: 1px solid var(--linea); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.leyenda-aaip p { font-size: 14px; }
.borrador { display: flex; gap: 12px; align-items: flex-start; background: #fffdf8; border: 1px solid #ebd9b5; border-radius: 12px; padding: 14px 18px; margin-top: 26px; max-width: 760px; }
.borrador span { flex: none; background: var(--ambar-fondo); color: var(--ambar-texto); font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.borrador p { font-size: 15px; }

/* ---- Pantallas grandes ---- */
@media (min-width: 1450px) {
  .hero { padding-top: 48px; padding-bottom: 50px; }
}

/* ---- Notebook y tableta ---- */
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 56px); }
  .hero-grid { gap: 35px; }
  .hero h1 { font-size: 55px; }
  .photo-frame { height: 405px; }
  .floating-note { left: -12px; width: 335px; padding: 18px; }
  .hero-seal { right: -9px; bottom: 12px; width: 73px; height: 73px; }
  .hero-seal svg { width: 41px; height: 41px; }
  .loop-grid { gap: 40px; }
  .demo-main { padding: 23px 18px; }
  .feature { grid-template-columns: 1fr 100px; padding: 27px; gap: 15px; }
  .trust-grid { gap: 60px; }
  .faq-grid { gap: 60px; }
  .pilot-panel { padding: 46px; gap: 45px; }
  .nav-links { gap: 22px; }
  .benefit-bar .signature { display: none; }
  .legal-grid { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
}

/* ---- Tableta angosta ---- */
@media (max-width: 860px) {
  .section { padding: 75px 0; }
  .wrap { width: calc(100% - 44px); }
  header { height: 77px; }
  .nav { gap: 15px; }
  .mobile-toggle { display: grid; place-items: center; }
  .nav-links { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--marfil); padding: 16px 22px 22px; border-bottom: 1px solid var(--linea); flex-direction: column; align-items: stretch; gap: 6px; }
  .nav-links.open { display: flex; }
  .nav-links .btn { margin-top: 8px; }
  .hero { padding-top: 32px; }
  .hero-grid { gap: 35px; grid-template-columns: 1fr; }
  .hero h1 { font-size: 58px; max-width: 620px; }
  .hero-desc { max-width: 550px; }
  .hero-visual { max-width: 590px; width: 100%; margin: 15px auto 0; padding-bottom: 60px; }
  .photo-frame { height: 410px; }
  .floating-note { left: -7px; bottom: 10px; width: 370px; }
  .hero-seal { right: 15px; bottom: 18px; }
  .benefit-bar { margin-top: 20px; padding-top: 23px; font-size: 12px; }
  .benefit-bar span { gap: 7px; }
  .section-top { display: block; margin-bottom: 36px; }
  .section-top .lede { margin-top: 22px; max-width: 540px; }
  .loop-grid { grid-template-columns: 1fr; gap: 28px; }
  .step-list { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
  .step { padding: 16px 12px; grid-template-columns: 29px 1fr; gap: 12px; }
  .step strong { font-size: 16px; }
  .step span > span { font-size: 13px; }
  .demo-shell { min-height: 385px; }
  .demo-main { padding: 27px 30px; }
  .feature { grid-template-columns: 1fr; gap: 20px; }
  .feature-art { display: none; }
  .feature-small-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .trust-grid { grid-template-columns: 1fr; gap: 40px; }
  .trust h2 { max-width: 500px; }
  .trust .lede { max-width: 540px; }
  .faq-grid { grid-template-columns: 1fr; gap: 38px; }
  .faq-grid .lede { font-size: 15px; max-width: 500px; }
  .pilot-panel { grid-template-columns: 1fr; gap: 30px; padding: 40px; }
  .pilot-right .btn { width: auto; min-width: 285px; }
  .pilot-panel h2 { max-width: 500px; }
  .pilot { padding-bottom: 65px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .pagina-cabeza { padding: 44px 0 32px; }
  .familias-grid { grid-template-columns: 1fr; gap: 32px; }
  .mensaje-ejemplo { justify-self: start; }
  .respuestas-grid { grid-template-columns: 1fr; }
  .legal-grid { grid-template-columns: 1fr; gap: 32px; }
  .legal-indice { position: static; }
}

/* ---- Celular ---- */
@media (max-width: 500px) {
  .wrap { width: calc(100% - 36px); }
  header { height: 70px; }
  .logo { width: 151px; }
  .nav-links { top: 69px; }
  .hero { padding-top: 24px; padding-bottom: 30px; }
  .hero .eyebrow { margin-bottom: 20px; }
  .hero h1 { font-size: 44px; letter-spacing: -0.04em; }
  .hero-desc { font-size: 15px; margin-top: 22px; }
  .hero-actions { gap: 14px 18px; margin-top: 24px; }
  .hero-actions .btn { font-size: 14px; padding: 14px 17px; gap: 10px; }
  .hero-actions .textlink { font-size: 14px; gap: 8px; }
  .hero-grid { gap: 24px; }
  .photo-frame { height: 315px; border-top-left-radius: 62px; }
  .hero-visual { padding-bottom: 96px; margin-top: 6px; }
  .floating-note { left: 10px; bottom: 8px; width: calc(100% - 20px); max-width: none; padding: 16px; }
  .hero-seal { display: none; }
  .benefit-bar { gap: 12px; align-items: flex-start; line-height: 1.4; }
  .benefit-bar span { flex: 1; flex-direction: column; align-items: flex-start; gap: 8px; }
  .benefit-bar .icon { width: 18px; height: 18px; }
  .section { padding: 57px 0; }
  .section-title { font-size: 34px; }
  .eyebrow { margin-bottom: 17px; }
  .section-top .lede { font-size: 15px; margin-top: 20px; }
  .step-list { gap: 8px; }
  .step { display: flex; flex-direction: column; gap: 9px; padding: 13px 12px; }
  .step strong { font-size: 15px; }
  .step span > span { font-size: 13px; line-height: 1.6; }
  .step-num { width: 26px; height: 26px; }
  .demo-shell { grid-template-columns: 1fr; min-height: 0; }
  .demo-side { display: none; }
  .demo-main { padding: 20px 14px; }
  .demo-patient { gap: 9px; margin-bottom: 21px; }
  .demo-patient h3 { font-size: 16px; }
  .demo-patient .initial { width: 36px; height: 36px; font-size: 12px; }
  .demo-tab { gap: 14px; flex-wrap: wrap; }
  .demo-toolbar { padding: 10px 12px; flex-wrap: wrap; }
  .demo-card { padding: 12px 10px; }
  .demo-card-head { gap: 9px; flex-wrap: wrap; }
  .demo-status { margin-left: 33px; }
  .demo-message { padding: 12px; }
  .mini-label { margin-left: 3px; }
  .feature-grid { grid-template-columns: 1fr; gap: 14px; }
  .feature { padding: 25px; min-height: 0; }
  .feature h3 { font-size: 21px; }
  .feature .icon { margin-bottom: 18px; }
  .feature-small-grid { grid-template-columns: 1fr; gap: 24px; margin-top: 30px; }
  .feature-small h3 { font-size: 16px; }
  .feature-small .icon { width: 21px; height: 21px; }
  .trust h2 { font-size: 36px; }
  .trust .lede { font-size: 15px; }
  .trust-item h3 { font-size: 16px; }
  .faq-grid .section-title { font-size: 34px; }
  .faq summary { font-size: 15px; }
  .pilot { padding-bottom: 50px; }
  .pilot-panel { padding: 32px 22px; border-radius: 18px; gap: 26px; }
  .pilot-panel h2 { font-size: 32px; }
  .pilot-panel p { font-size: 14px; }
  .pilot-right .btn { width: 100%; min-width: 0; font-size: 14px; padding: 16px; }
  .footer-links { flex-direction: column; gap: 0; }
  .pagina-cabeza h1 { font-size: 38px; }
  .respuesta { padding: 22px; }
  .respuesta h2 { font-size: 19px; }
  .legal-cuerpo h2 { font-size: 22px; }
  .legal-cuerpo p, .legal-cuerpo li { font-size: 15px; }
}

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

@media print {
  header, .toast, .saltar { display: none; }
  body { background: #fff; }
  .section { break-inside: avoid; }
  .legal-indice { position: static; }
}
