/* ═══════════════════════════════════════════════════════════════════════════
   Odontia · sitio público (odontiaapp.com.ar)
   Móvil primero. Cortes: 640 (dos columnas), 900 (tres columnas), 1024 (menú en
   línea y bloques alternados), 1200 (márgenes de escritorio).
   Nada inline en el HTML: la CSP sólo permite este archivo (style-src 'self').
   Colores sólo desde los tokens de :root (paleta "Turquesa clínico" del panel).
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1 · Tokens ─────────────────────────────────────────────────────────── */
:root {
  --brand-50: #EAF5F6;
  --brand-100: #D2EBEE;
  --brand-500: #158797;   /* íconos y foco: 4,25:1, nunca texto chico */
  --brand-600: #0B6F7D;   /* primario: 5,86:1 con blanco */
  --brand-700: #095A66;   /* hover */
  --brand-900: #12343F;   /* secundario petróleo */
  --ink-900: #10212B;     /* títulos */
  --ink-700: #3E5260;     /* cuerpo */
  --ink-500: #5A6C7B;     /* secundario */
  --ink-300: #A9B6C1;     /* sólo decoración */
  --line: #DCE3E9;
  --sunken: #EEF2F5;
  --page: #F5F7F9;
  --surface: #FFFFFF;
  --on-dark: #FFFFFF;
  --ok-fg: #146C43;   --ok-soft: #E8F5EE;
  --warn-fg: #8A5200; --warn-soft: #FDF2DF;
  --bad-fg: #B42318;  --bad-soft: #FDECEA;
  --info-fg: #1D4ED8; --info-soft: #EAF0FD;

  --radius: 12px;
  --radius-lg: 16px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgb(16 33 43 / 0.06);
  --shadow-raised: 0 1px 2px rgb(16 33 43 / 0.04), 0 8px 24px rgb(16 33 43 / 0.08);
  --shadow-frame: 0 2px 6px rgb(16 33 43 / 0.06), 0 28px 60px -18px rgb(16 33 43 / 0.28);

  --gutter: 16px;
  --header-h: 60px;
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font-sans);
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1200px) { :root { --gutter: 32px; --header-h: 68px; } }

/* ── 2 · Fuentes propias (subconjunto latino de Google Fonts, OFL) ────────── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/inter-v20-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: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url(/fonts/plus-jakarta-sans-v12-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;
}

/* ── 3 · Base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding: calc(var(--header-h) + 12px) 0 96px;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--surface);
  color: var(--ink-700);
  font: 400 1rem/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (min-width: 640px) { body { font-size: 1.0625rem; } }
h1, h2, h3 { margin: 0; color: var(--ink-900); }
h1, h2 { font-family: var(--font-display); font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.125rem, 1.4rem + 3.2vw, 3.5rem); line-height: 1.08; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.625rem, 1.2rem + 1.7vw, 2.375rem); line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.4; }
p { margin: 0; }
a { color: var(--brand-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-700); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; }
main { flex: 1; }
main:focus, main:focus-visible { outline: none; }

.skip-link {
  position: absolute;
  top: -200px;
  left: 16px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--brand-900);
  color: var(--on-dark);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--on-dark); }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  display: inline-block;
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.icon--lg { width: 24px; height: 24px; }

/* ── 4 · Estructura ─────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: calc(1120px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(760px + 2 * var(--gutter)); }
.section { padding-block: clamp(3.5rem, 2.25rem + 4vw, 6.5rem); }
.section--soft { background: var(--page); }
.section__head { max-width: 720px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.eyebrow {
  margin-bottom: 10px;
  color: var(--brand-600);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lead { margin-top: 14px; color: var(--ink-700); font-size: 1.0625rem; line-height: 1.6; text-wrap: pretty; }
@media (min-width: 640px) { .lead { font-size: 1.1875rem; } }
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 640px) {
  .grid--2, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
/* Con dos columnas y cantidad impar, la última tarjeta ocupa la fila entera. */
@media (min-width: 640px) and (max-width: 899.98px) {
  .grid--3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ── 5 · Encabezado y menú ──────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}
.nav__brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-600); }
.brand__mark { width: 28px; height: 28px; flex: none; }
.brand__name {
  color: var(--brand-600);
  font-family: var(--font-display);
  font-size: 1.4375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
}
.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-900);
  cursor: pointer;
}
.nav__toggle:hover { background: var(--sunken); }
.nav__toggle .icon { width: 22px; height: 22px; }
.nav__menu { display: none; }
.nav__links { margin: 0; padding: 0; list-style: none; }
.nav__link {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--ink-900);
  font-weight: 500;
  text-decoration: none;
}
.nav__link:hover { color: var(--brand-700); }
.site-header.is-open .nav__menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: grid;
  gap: 16px;
  padding: 4px var(--gutter) 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-raised);
}
.site-header.is-open .nav__links li + li { border-top: 1px solid var(--line); }
.nav__actions { display: grid; gap: 10px; }
@media (min-width: 640px) and (max-width: 1023.98px) {
  .nav__actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .nav__toggle { display: none; }
  .nav__menu,
  .site-header.is-open .nav__menu {
    position: static;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
  .nav__links { display: flex; gap: 4px; margin-left: 24px; }
  .nav__link {
    min-height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    color: var(--ink-700);
    font-size: 0.9375rem;
  }
  .nav__link:hover { background: var(--brand-50); color: var(--brand-700); }
  .nav__actions { display: flex; align-items: center; gap: 8px; }
  .nav__actions .btn { min-height: 40px; font-size: 0.9375rem; }
}

/* Sin JavaScript el menú del teléfono no se puede abrir: se muestra desplegado. */
@media (scripting: none) and (max-width: 1023.98px) {
  .site-header { position: static; }
  .nav { flex-wrap: wrap; padding-block: 8px 16px; }
  .nav__toggle { display: none; }
  .nav__menu { display: grid; gap: 12px; width: 100%; }
}

/* ── 6 · Botones y chips ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px clamp(14px, 2.5vw, 20px);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: 600 1rem/1.25 var(--font-sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn--primary { background: var(--brand-600); color: var(--on-dark); box-shadow: var(--shadow-card); }
.btn--primary:hover { background: var(--brand-700); color: var(--on-dark); }
.btn--secondary { border-color: var(--line); background: var(--surface); color: var(--ink-900); }
.btn--secondary:hover { background: var(--sunken); color: var(--ink-900); }
.btn--ghost { background: transparent; color: var(--brand-600); }
.btn--ghost:hover { background: var(--brand-50); color: var(--brand-700); }
.btn--lg { min-height: 52px; padding-inline: clamp(18px, 3vw, 28px); font-size: 1.0625rem; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.chip .icon { width: 14px; height: 14px; }
.chip--ok { background: var(--ok-soft); color: var(--ok-fg); }
.chip--warn { background: var(--warn-soft); color: var(--warn-fg); }
.chip--bad { background: var(--bad-soft); color: var(--bad-fg); }
.chip--info { background: var(--info-soft); color: var(--info-fg); }
.chip--brand { background: var(--brand-50); color: var(--brand-700); }

/* ── 7 · Hero ───────────────────────────────────────────────────────────── */
.hero {
  padding-top: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  overflow-x: clip;
  background:
    radial-gradient(58rem 30rem at 50% 0, var(--brand-50), transparent 72%),
    var(--surface);
}
.hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 7px 16px;
  border: 1px solid var(--brand-100);
  border-radius: var(--radius-pill);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  color: var(--brand-700);
  font-size: 0.875rem;
  font-weight: 600;
}
.pill .icon { width: 18px; height: 18px; }
.hero h1 { max-width: 17ch; font-size: clamp(2.5rem, 1.5rem + 4.4vw, 4.5rem); line-height: 1.05; }
.hl { color: var(--brand-600); }
.hero__lead { max-width: 42rem; margin-top: 20px; font-size: clamp(1.0625rem, 0.98rem + 0.5vw, 1.25rem); text-wrap: balance; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: 100%; margin-top: 30px; }
.hero__meta { margin-top: 18px; color: var(--ink-500); font-size: 0.9375rem; text-wrap: balance; }
.hero__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  margin-top: 4px;
  font-weight: 600;
  text-decoration: none;
}
.hero__more:hover { text-decoration: underline; }
.hero__media { margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem); padding-bottom: clamp(3rem, 2rem + 4vw, 5.5rem); }
@media (max-width: 479.98px) { .hero__actions .btn { flex: 1 1 100%; } }

/* Marco de navegador con la pantalla Hoy */
.frame {
  position: relative;
  max-width: 1010px;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-frame);
}
.frame__bar {
  display: flex;
  gap: 14px;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 15px 15px 0 0;
  background: var(--brand-900);
}
.frame__dots { display: inline-flex; gap: 6px; }
.frame__dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--brand-500); }
.frame__url {
  flex: 1;
  max-width: 320px;
  margin: 0 auto;
  padding: 2px 12px;
  border-radius: 6px;
  background: var(--ink-900);
  color: var(--brand-100);
  font-size: 0.75rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app { display: grid; grid-template-columns: minmax(0, 1fr); color: var(--ink-900); font-size: 0.8125rem; line-height: 1.4; text-align: left; }
.app__side { display: none; }
.app__main { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 16px; }
.app__head { display: flex; flex-direction: column; }
.app__title { font: 700 1.1875rem/1.3 var(--font-display); letter-spacing: -0.01em; }
.app__sub { color: var(--ink-500); font-size: 0.75rem; }
.app__kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kpi { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.kpi__n { font: 700 1.5rem/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.kpi__l { color: var(--ink-500); font-size: 0.75rem; }
.kpi--ok .kpi__n { color: var(--ok-fg); }
.kpi--warn .kpi__n { color: var(--warn-fg); }
.kpi--info .kpi__n { color: var(--info-fg); }
.app__cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.app__panel { display: flex; flex-direction: column; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.app__panel--chats { display: none; }
.app__label, .mock-label {
  display: block;
  color: var(--ink-500);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.app__label { margin-bottom: 4px; }
.app__label--sep { margin-top: 14px; }
.app-row { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.app__label + .app-row, .app__label + .app-chat { border-top: 0; }
.app-row__h { color: var(--ink-700); font-weight: 600; font-variant-numeric: tabular-nums; }
.app-row__p, .app-chat__t { display: flex; flex-direction: column; min-width: 0; }
.app-row__n, .app-chat__n { font-weight: 600; }
.app-row__n, .app-row__d, .app-chat__n, .app-chat__m { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-row__d, .app-chat__m, .app-chat__h { color: var(--ink-500); font-size: 0.75rem; }
.app-row .chip { font-size: 0.75rem; }
.app-chat { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.app-chat__av {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 0.75rem;
  font-weight: 700;
}
.app-chat__h { white-space: nowrap; }
.app-aviso { display: flex; gap: 8px; align-items: flex-start; padding: 9px 10px; border-radius: 8px; background: var(--info-soft); color: var(--info-fg); font-size: 0.75rem; font-weight: 600; }
.app-aviso .icon { width: 16px; height: 16px; }
@media (max-width: 639.98px) { .app__main .app-row:nth-of-type(n + 6) { display: none; } }
@media (min-width: 640px) {
  .app__main { padding: 22px 24px 24px; }
  .app__kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .app__panel--chats { display: flex; }
}
@media (min-width: 768px) { .app__cols { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }
@media (min-width: 900px) {
  .app { grid-template-columns: 172px minmax(0, 1fr); }
  .app__side { display: flex; flex-direction: column; gap: 2px; padding: 18px 12px; border-right: 1px solid var(--line); border-radius: 0 0 0 15px; background: var(--page); }
}
.app__brand { display: flex; align-items: center; gap: 7px; padding: 0 8px 14px; color: var(--brand-600); font: 600 1.0625rem/1 var(--font-display); }
.app__mark { width: 18px; height: 18px; }
.app__nav { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 8px; color: var(--ink-700); font-weight: 500; }
.app__nav .icon { width: 17px; height: 17px; }
.app__nav.is-on { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }

/* Avisos flotantes alrededor del marco */
.toasts { display: grid; gap: 8px; margin: 14px 0 0; padding: 0 12px 12px; list-style: none; }
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px 11px 12px;
  border-radius: var(--radius);
  background: var(--brand-900);
  box-shadow: var(--shadow-raised);
  color: var(--brand-100);
  font-size: 0.75rem;
  line-height: 1.35;
  text-align: left;
}
.toast .icon { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--brand-700); color: var(--on-dark); }
.toast b { display: block; color: var(--on-dark); font-size: 0.8125rem; font-weight: 600; }
@media (max-width: 1023.98px) { .toasts { padding-top: 2px; } }
@media (min-width: 560px) and (max-width: 1023.98px) { .toasts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559.98px) { .toast:nth-child(n + 4) { display: none; } }
@media (min-width: 1024px) {
  .toasts { position: static; display: block; margin: 0; padding: 0; }
  .toast { position: absolute; max-width: 270px; }
  .toast:nth-child(1) { top: 46px; right: -16px; }
  .toast:nth-child(2) { top: 284px; left: -24px; }
  .toast:nth-child(3) { bottom: 34px; right: -20px; }
  .toast:nth-child(4) { bottom: -26px; left: 22%; }
}
@media (min-width: 1200px) {
  .toast:nth-child(1) { right: -54px; }
  .toast:nth-child(2) { left: -84px; }
  .toast:nth-child(3) { right: -58px; }
}

/* ── 8 · Números, pérdidas, día y calculadora ───────────────────────────── */
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .lead { text-wrap: balance; }
.numeros { padding-block: clamp(2.5rem, 2rem + 2.5vw, 4.5rem); background: var(--brand-900); color: var(--brand-100); }
.numeros__titulo { margin-bottom: clamp(1.75rem, 1.25rem + 2vw, 2.75rem); color: var(--on-dark); font-size: clamp(1.375rem, 1.1rem + 1.1vw, 1.875rem); text-align: center; }
.numeros__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
@media (min-width: 1024px) { .numeros__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; } }
.numero { padding-inline: 4px; text-align: center; }
@media (min-width: 1024px) {
  .numero { padding-inline: 14px; }
  .numero + .numero { border-left: 1px solid var(--brand-700); }
}
.numero__valor { color: var(--on-dark); font: 700 clamp(2.25rem, 1.75rem + 1.9vw, 3.125rem)/1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; white-space: nowrap; }
.numero__pre { font-size: 0.45em; letter-spacing: 0; }
.numero__valor [data-contar] { display: inline-block; text-align: right; }
.numero__texto { max-width: 26ch; margin: 12px auto 0; font-size: 0.9375rem; line-height: 1.5; }
.ref {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: var(--radius-pill);
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  vertical-align: 1px;
}
.nb { white-space: nowrap; }
.ref:hover { background: var(--brand-100); color: var(--brand-900); }
.numeros :focus-visible { outline-color: var(--on-dark); }

.perdida { display: flex; flex-direction: column; padding: 16px 16px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-card); }
.perdida__media { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; min-height: 148px; margin-bottom: 20px; padding: 18px; border-radius: 10px; background: var(--page); }
.perdida .card__title, .perdida .card__text { padding-inline: 8px; }
.perdida .card__title { font-size: 1.1875rem; }
.burbuja { position: relative; max-width: 100%; padding: 9px 14px 22px; border: 1px solid var(--line); border-radius: 12px; border-top-left-radius: 4px; background: var(--surface); color: var(--ink-900); font-size: 0.875rem; line-height: 1.4; }
.burbuja__h { position: absolute; right: 12px; bottom: 4px; color: var(--ink-500); font-size: 0.75rem; }
.perdida__nada { display: inline-flex; align-items: center; gap: 6px; color: var(--bad-fg); font-size: 0.8125rem; font-weight: 600; }
.perdida__nada .icon { width: 17px; height: 17px; }
.perdida__sillon { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1px dashed var(--ink-300); border-radius: 10px; background: var(--surface); color: var(--ink-700); font-size: 0.8125rem; }
.perdida__sillon .icon { width: 26px; height: 26px; color: var(--ink-500); }
.perdida__sillon b { display: block; color: var(--ink-900); font-size: 0.875rem; }

.dia { margin-top: clamp(2rem, 1.5rem + 2vw, 3.5rem); padding: clamp(18px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-raised); }
.dia__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 18px; }
.dia__titulo { font: 700 clamp(1.1875rem, 1.05rem + 0.6vw, 1.4375rem)/1.3 var(--font-display); letter-spacing: -0.01em; }
.dia__switch { display: inline-flex; align-items: center; gap: 12px; font-size: 0.9375rem; font-weight: 600; }
.dia__opcion { color: var(--ink-500); cursor: pointer; }
.dia[data-modo="sin"] .dia__opcion--sin { color: var(--bad-fg); }
.dia[data-modo="con"] .dia__opcion--con { color: var(--ok-fg); }
.switch { position: relative; flex: none; width: 60px; height: 34px; padding: 0; border: 0; border-radius: var(--radius-pill); background: var(--bad-fg); cursor: pointer; transition: background-color 0.25s ease; }
.switch::after { content: ""; position: absolute; inset: -6px; }
.switch[aria-checked="true"] { background: var(--ok-fg); }
.switch__bola { position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-card); transition: transform 0.25s ease; }
.switch[aria-checked="true"] .switch__bola { transform: translateX(26px); }
.dia__cols { display: none; }
.dia__lista { margin: 0; padding: 0; list-style: none; }
.dia__item { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: 8px 12px; align-items: center; padding: 7px 0; }
.dia__hora { color: var(--ink-900); font: 700 0.9375rem/1.4 var(--font-display); font-variant-numeric: tabular-nums; }
.dia__sin, .dia__con { grid-column: 2; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; color: var(--ink-900); font-size: 0.9375rem; line-height: 1.45; }
.dia__sin { background: var(--bad-soft); }
.dia__con { background: var(--ok-soft); }
.dia__sin .icon { margin-top: 1px; color: var(--bad-fg); }
.dia__con .icon { margin-top: 1px; color: var(--ok-fg); }
/* Con JavaScript los dos estados comparten la celda: alternar no cambia el alto de la página. */
.js .dia__sin, .js .dia__con { grid-row: 1; align-items: center; min-height: 100%; transition: opacity 0.3s ease, visibility 0.3s; }
.js .dia[data-modo="sin"] .dia__con, .js .dia[data-modo="con"] .dia__sin { visibility: hidden; opacity: 0; }
.dia__resumen { margin-top: 16px; padding: 16px 18px; border-radius: 10px; font-weight: 600; }
.dia__resumen--sin { background: var(--bad-soft); color: var(--bad-fg); }
.dia__resumen--con { background: var(--ok-soft); color: var(--ok-fg); }
.dia__resumenes { display: grid; gap: 0 12px; }
.js .dia__resumen { grid-area: 1 / 1; transition: opacity 0.3s ease, visibility 0.3s; }
.js .dia[data-modo="sin"] .dia__resumen--con, .js .dia[data-modo="con"] .dia__resumen--sin { visibility: hidden; opacity: 0; }
@media (scripting: none) {
  .dia__switch { display: none; }
  @media (min-width: 768px) {
    .dia__cols, .dia__item { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr) minmax(0, 1fr); gap: 8px 12px; }
    .dia__cols { padding-bottom: 6px; font-weight: 600; }
    .dia__cols span:first-child { grid-column: 2; }
    .dia__con { grid-column: 3; }
    .dia__resumenes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
}

.calc { display: grid; gap: 28px; padding: clamp(18px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-raised); }
@media (min-width: 900px) { .calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }
.calc__form { display: grid; gap: 22px; align-content: center; }
.campo__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.campo label { color: var(--ink-900); font-weight: 600; line-height: 1.35; }
.campo output { color: var(--brand-700); font: 700 1.1875rem/1.2 var(--font-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.campo__ayuda { margin-top: 4px; color: var(--ink-500); font-size: 0.875rem; }
.campo input[type="range"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; }
.campo input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: var(--radius-pill); background: linear-gradient(to right, var(--brand-600) calc(var(--pct, 40) * 1%), var(--line) calc(var(--pct, 40) * 1%)); }
.campo input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border: 3px solid var(--brand-600); border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-card); }
.campo input[type="range"]::-moz-range-track { height: 8px; border-radius: var(--radius-pill); background: var(--line); }
.campo input[type="range"]::-moz-range-progress { height: 8px; border-radius: var(--radius-pill); background: var(--brand-600); }
.campo input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border: 3px solid var(--brand-600); border-radius: 50%; background: var(--surface); }
.calc__res { display: grid; gap: 14px; align-content: start; min-width: 0; }
.res { padding: 18px 20px; border-radius: var(--radius); }
.res__l { display: flex; gap: 8px; align-items: center; color: var(--ink-900); font-size: 0.9375rem; font-weight: 600; line-height: 1.35; }
.res__n { display: block; margin-top: 6px; font: 700 clamp(1.875rem, 1.5rem + 1.7vw, 2.75rem)/1.1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -0.025em; }
.res__d { display: block; margin-top: 4px; color: var(--ink-700); font-size: 0.875rem; }
.res--perdida { background: var(--bad-soft); }
.res--perdida .icon, .res--perdida .res__n { color: var(--bad-fg); }
.res--recupero { background: var(--ok-soft); }
.res--recupero .res__l .icon, .res--recupero .res__n { color: var(--ok-fg); }
.res--horas { background: var(--brand-50); }
.res--horas .icon, .res--horas .res__n { color: var(--brand-700); }
.barras { display: grid; gap: 8px; padding-block: 2px; }
.barra { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 10px; align-items: center; }
.barra__l { color: var(--ink-700); font-size: 0.8125rem; font-weight: 600; }
.barra__track { display: block; height: 14px; border-radius: 4px; background: var(--sunken); overflow: hidden; }
.barra__fill { display: block; width: 100%; height: 100%; border-radius: 0 4px 4px 0; transform-origin: left; }
.barra--perdida .barra__fill { background: var(--bad-fg); }
.barra--recupero .barra__fill { background: var(--ok-fg); transform: scaleX(var(--recupero, 0.289)); }
.calc__nota { max-width: 80ch; margin: 20px auto 0; color: var(--ink-500); font-size: 0.875rem; text-align: center; }

/* ── 8b · Tarjetas, bloques y pasos ─────────────────────────────────────── */
.card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-card); }
.card__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: var(--radius); background: var(--brand-50); color: var(--brand-600); }
.card__icon .icon { width: 24px; height: 24px; }
.card__title { margin-bottom: 8px; }
.card__text { color: var(--ink-700); }
.card--centro { text-align: center; }
.card--fila { display: flex; gap: 18px; align-items: flex-start; }
.card--fila .card__icon { flex: none; margin-bottom: 0; }
.mas { margin-top: clamp(1.5rem, 1rem + 2vw, 3rem); }
.bloque { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; padding-block: clamp(1.75rem, 1rem + 3vw, 4rem); }
.bloque--plano { padding-block: 0; }
.bloque[hidden], .tabs[hidden] { display: none; }
.tabs { position: relative; display: flex; gap: 8px; margin: 0 calc(-1 * var(--gutter)) 8px; padding: 4px var(--gutter) 10px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; flex: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink-700); font: 600 0.9375rem/1.2 var(--font-sans); cursor: pointer; }
.tab:hover { background: var(--brand-50); }
.tab[aria-selected="true"] { border-color: var(--brand-600); background: var(--brand-600); color: var(--on-dark); }
@media (min-width: 640px) and (max-width: 1023.98px) { .tabs { flex-wrap: wrap; justify-content: center; } }
.bloque__titulo { font: 700 clamp(1.5rem, 1.2rem + 1.3vw, 2.125rem)/1.18 var(--font-display); letter-spacing: -0.02em; text-wrap: balance; }
.bloque__p { margin-top: 14px; font-size: 1.0625rem; }
.bloque__lista { display: grid; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.bloque__lista li { display: flex; gap: 12px; align-items: flex-start; }
.bloque__lista .icon { width: 24px; height: 24px; margin-top: 1px; padding: 4px; border-radius: 50%; background: var(--brand-50); color: var(--brand-600); stroke-width: 2.5; }
.bloque__lista b { color: var(--ink-900); font-weight: 600; }
.bloque__media { display: flex; justify-content: center; min-width: 0; }
.bloque__media .mock-wrap { width: 100%; margin: 0; }
@media (min-width: 1024px) {
  .bloque { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr); gap: 64px; }
  .bloque--inv { grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr); }
  .bloque--inv .bloque__texto { order: 2; }
}
.coex { display: flex; flex-direction: column; width: 100%; max-width: 440px; padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-raised); }
.coex__nodo { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 0 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.9375rem; line-height: 1.4; }
.coex__nodo .icon { grid-row: 1 / 3; width: 48px; height: 48px; padding: 12px; border-radius: var(--radius); background: var(--brand-50); color: var(--brand-600); }
.coex__nodo b { align-self: end; color: var(--ink-900); font-weight: 600; }
.coex__nodo > :last-child { align-self: start; }
.coex__nodo--centro { border: 2px solid var(--brand-600); background: var(--brand-50); }
.coex__nodo--centro .icon { background: var(--brand-600); color: var(--on-dark); }
.coex__linea { align-self: center; height: 28px; border-left: 2px dashed var(--brand-500); }
.coex__pie { margin-top: 16px; color: var(--ink-500); font-size: 0.875rem; text-align: center; }
.pasos { position: relative; display: grid; gap: 36px; margin: 0; padding: 0; list-style: none; }
.paso { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.paso__icono { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 84px; height: 84px; margin-bottom: 20px; border: 2px solid var(--brand-100); border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-raised); color: var(--brand-600); }
.paso__icono .icon { width: 34px; height: 34px; }
.paso__num { position: absolute; top: -4px; right: -4px; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-600); color: var(--on-dark); font: 700 0.9375rem/30px var(--font-display); }
.paso h3 { max-width: 26ch; margin-bottom: 8px; font-size: 1.125rem; text-wrap: balance; }
.paso p { max-width: 36ch; }
@media (min-width: 900px) {
  .pasos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .pasos::before { content: ""; position: absolute; top: 42px; right: 16.66%; left: 16.66%; border-top: 2px dashed var(--brand-100); }
}

/* ── 9 · Planes ─────────────────────────────────────────────────────────── */
.plans {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  max-width: 480px;
  margin-inline: auto;
  align-items: stretch;
}
@media (min-width: 900px) {
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: none; }
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 32px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.plan--featured { border: 2px solid var(--brand-600); box-shadow: var(--shadow-raised); }
.plan__badge {
  position: absolute;
  top: 0;
  left: 24px;
  transform: translateY(-50%);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--brand-600);
  color: var(--on-dark);
  font-size: 0.8125rem;
  font-weight: 600;
}
.plan__name { font: 700 1.375rem/1.3 var(--font-display); }
.plan__for { color: var(--ink-500); font-size: 0.9375rem; }
.plan__price { display: flex; align-items: baseline; gap: 4px; margin: 10px 0 2px; }
.plan__amount { color: var(--ink-900); font: 700 1.625rem/1.2 var(--font-display); letter-spacing: -0.02em; }
.plan__period { color: var(--ink-500); }
.plan__list { display: grid; flex: 1; align-content: start; gap: 10px; margin: 12px 0 20px; padding: 0; list-style: none; }
.plan__list li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-700); }
.plan__list .icon { margin-top: 3px; color: var(--brand-600); }
.plan .btn { width: 100%; }
.plans__foot { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 36px; text-align: center; }
.plan__note { color: var(--ink-900); font-weight: 600; }
.plan__fine { max-width: 68ch; color: var(--ink-500); font-size: 0.9375rem; text-wrap: balance; }
.plans__foot .btn { margin-top: 4px; }

/* ── 10 · Preguntas frecuentes ──────────────────────────────────────────── */
.faq { display: grid; gap: 12px; }
.faq__item { padding-inline: clamp(16px, 2.5vw, 24px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.faq__item:has([aria-expanded="true"]) { border-color: var(--brand-500); box-shadow: var(--shadow-card); }
.faq__q { margin: 0; font-size: 1.0625rem; }
.faq__q button { display: flex; width: 100%; min-height: 60px; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border: 0; background: none; color: var(--ink-900); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.faq__q button:hover { color: var(--brand-700); }
.faq__q .icon { color: var(--brand-600); transition: transform 0.2s ease; }
.faq__q button[aria-expanded="true"] .icon { transform: rotate(180deg); }
.faq__a { max-width: 65ch; padding-bottom: 20px; color: var(--ink-700); }
.faq__a p + p { margin-top: 12px; }

/* ── 11 · Cierre y fuentes ──────────────────────────────────────────────── */
.cta-box { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: clamp(36px, 6vw, 72px) clamp(20px, 4vw, 48px); border-radius: var(--radius-lg); background: var(--brand-900); color: var(--brand-100); text-align: center; }
.cta-box h2 { color: var(--on-dark); }
.cta-box .lead { margin-top: 0; color: var(--brand-100); }
.cta-box__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: 100%; margin-top: 8px; }
.cta-box .btn--primary { background: var(--surface); color: var(--brand-700); }
.cta-box .btn--primary:hover { background: var(--brand-50); color: var(--brand-900); }
.cta-box .btn--secondary { border-color: var(--brand-100); background: transparent; color: var(--on-dark); }
.cta-box .btn--secondary:hover { background: var(--brand-700); color: var(--on-dark); }
.cta-box a:not(.btn) { color: var(--on-dark); font-weight: 600; }
.cta-box a:not(.btn):hover { color: var(--brand-100); }
.cta-box :focus-visible { outline-color: var(--on-dark); }
@media (max-width: 479.98px) { .cta-box__actions .btn { flex: 1 1 100%; } }
.fuentes { padding-block: 0 clamp(3rem, 2rem + 3vw, 5rem); }
.fuentes__titulo { margin-bottom: 14px; font-size: 1.0625rem; letter-spacing: 0; }
.fuentes__lista { display: grid; gap: 10px; margin: 0; padding-left: 1.5rem; color: var(--ink-500); font-size: 0.875rem; line-height: 1.55; }
.fuentes__lista li { padding: 4px 8px; border-radius: 8px; }
.fuentes__lista li:target { background: var(--brand-50); }

/* ── 12 · Pie y botón flotante ──────────────────────────────────────────── */
.site-footer { padding-block: 52px 32px; border-top: 1px solid var(--line); background: var(--page); color: var(--ink-700); font-size: 0.9375rem; }
.footer__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.footer__tagline { max-width: 30ch; margin-top: 8px; color: var(--ink-500); }
.footer__t { margin-bottom: 8px; color: var(--ink-900); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.footer__col ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.footer__col a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink-700); text-decoration: none; overflow-wrap: anywhere; }
.footer__col a:hover { color: var(--brand-700); text-decoration: underline; }
.footer__dir { font-style: normal; line-height: 1.7; }
.footer__dir a { color: inherit; }
.footer__legal { display: grid; gap: 6px; margin-top: 36px; color: var(--ink-500); font-size: 0.875rem; }
.footer__legal::before { content: ""; border-top: 1px solid var(--line); margin-bottom: 14px; }
@media (pointer: coarse) { .footer__col a { min-height: 44px; } }
@media (min-width: 640px) {
  .footer__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .footer__inner { grid-template-columns: 1.5fr 1fr 1.2fr 1.1fr; }
  .footer__brand { grid-column: auto; }
}
@media (max-width: 1023.98px) { .site-footer { padding-bottom: 104px; } }
.flotante {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 22px 0 18px;
  border-radius: var(--radius-pill);
  background: var(--brand-600);
  box-shadow: var(--shadow-frame);
  color: var(--on-dark);
  font-weight: 600;
  text-decoration: none;
}
.flotante:hover { background: var(--brand-700); color: var(--on-dark); }
.flotante .icon { width: 24px; height: 24px; }
@media (max-width: 1023.98px) {
  .flotante { width: 56px; height: 56px; justify-content: center; padding: 0; }
  .flotante__txt { display: none; }
}

/* ── 13 · Páginas legales y 404 ─────────────────────────────────────────── */
.prose { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.prose h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); }

.prose h2 { margin: 48px 0 12px; font-size: clamp(1.3125rem, 1.15rem + 0.6vw, 1.5625rem); line-height: 1.25; }
.prose h3 { margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol, .prose table, .prose blockquote { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: 6px; }
.prose .prose__meta { margin: 12px 0 28px; color: var(--ink-500); font-size: 0.9375rem; }
.prose .lead { margin-top: 16px; }
.prose a { overflow-wrap: anywhere; }
.prose strong { color: var(--ink-900); }
.prose blockquote {
  padding: 16px 20px;
  border-left: 4px solid var(--brand-600);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--brand-50);
  color: var(--ink-900);
}
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.prose th, .prose td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.prose th { background: var(--page); color: var(--ink-900); font-weight: 600; }
.toc {
  margin: 28px 0 8px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--page);
}
.toc__title { margin-bottom: 8px; color: var(--ink-900); font-weight: 600; }
.toc ol { margin: 0; padding-left: 1.25rem; }
.toc li { margin: 0; break-inside: avoid; }
.toc li + li { margin-top: 0; }
.toc a { display: inline-block; padding: 4px 0; }
@media (pointer: coarse) { .toc a { display: inline-flex; align-items: center; min-height: 44px; } }
@media (min-width: 640px) { .toc ol { columns: 2; column-gap: 40px; } }
.prose .btn { text-decoration: none; }
.prose__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }

/* ── 14 · Mockups de la app (decorativos: role="img" con aria-label) ─────── */
.mock-wrap { margin: clamp(2.5rem, 2rem + 2vw, 3.75rem) 0 0; }
.mock-wrap figcaption { margin-top: 14px; color: var(--ink-500); font-size: 0.875rem; text-align: center; }
.mock-wrap--chat { width: 100%; max-width: 420px; margin: 0; }
.mock {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-raised);
  color: var(--ink-900);
  font-size: 0.8125rem;
  line-height: 1.4;
}

/* Chat de WhatsApp con el recordatorio */
.mock-chat { overflow: hidden; }
.mock-chat__head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--brand-900); color: var(--on-dark); }
.mock-chat__avatar {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 700;
}
.mock-chat__who { display: flex; flex-direction: column; min-width: 0; }
.mock-chat__name { font-size: 0.9375rem; font-weight: 600; }
.mock-chat__sub { color: var(--brand-100); font-size: 0.75rem; }
.mock-chat__body { display: flex; flex-direction: column; gap: 8px; padding: 16px; background: var(--page); }
.mock-chat__day {
  align-self: center;
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-500);
  font-size: 0.75rem;
}
.mock-chat__msg { max-width: 88%; padding: 8px 12px 6px; border-radius: var(--radius); font-size: 0.875rem; line-height: 1.45; }
.mock-chat__msg p { margin-bottom: 2px; }
.mock-chat__msg--in { align-self: flex-start; border: 1px solid var(--line); border-top-left-radius: 4px; background: var(--surface); }
.mock-chat__msg--out { align-self: flex-end; border: 1px solid var(--brand-100); border-top-right-radius: 4px; background: var(--brand-50); }
.mock-chat__time { display: block; color: var(--ink-500); font-size: 0.75rem; text-align: right; }
.mock-chat__replies { display: grid; align-self: flex-start; gap: 4px; width: 88%; margin-top: -4px; }
.mock-chat__reply {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--brand-600);
  font-size: 0.875rem;
  font-weight: 600;
}
.mock-chat__reply .icon { width: 15px; height: 15px; }
.mock-chat__status { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; color: var(--ink-700); }

/* Agenda por profesional y sillón */
.mock-agenda { padding: 16px; }
.mock-agenda__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.mock-agenda__title { font-size: 0.9375rem; font-weight: 600; }
.mock-agenda__week { display: inline-flex; gap: 2px; padding: 2px; border-radius: var(--radius-sm); background: var(--sunken); }
.mock-agenda__week span { padding: 4px 8px; border-radius: 6px; color: var(--ink-700); font-size: 0.75rem; white-space: nowrap; }
.mock-agenda__week .is-on { background: var(--surface); box-shadow: var(--shadow-card); color: var(--brand-700); font-weight: 600; }
@media (max-width: 479.98px) { .mock-agenda__week span:nth-child(-n + 2) { display: none; } }
.mock-agenda__grid {
  display: grid;
  grid-template-columns: 2.75rem repeat(2, minmax(0, 1fr));
  grid-template-rows: auto repeat(16, 1.375rem);
  column-gap: 6px;
}
.mock-agenda__col { display: flex; flex-direction: column; grid-row: 1; padding: 0 4px 8px; font-weight: 600; min-width: 0; }
.mock-agenda__col span { color: var(--ink-500); font-size: 0.75rem; font-weight: 400; }
.mock-agenda__hora { grid-column: 1; grid-row-end: span 2; align-self: start; padding-right: 2px; color: var(--ink-500); font-size: 0.75rem; text-align: right; }
.mock-agenda__cell { grid-row-end: span 2; border-top: 1px solid var(--line); }
.mock-agenda [data-c="1"] { grid-column: 2; }
.mock-agenda [data-c="2"] { grid-column: 3; }
.mock-agenda [data-c="3"] { grid-column: 4; }
.mock-agenda [data-r="1"] { grid-row-start: 2; }
.mock-agenda [data-r="2"] { grid-row-start: 3; }
.mock-agenda [data-r="3"] { grid-row-start: 4; }
.mock-agenda [data-r="4"] { grid-row-start: 5; }
.mock-agenda [data-r="5"] { grid-row-start: 6; }
.mock-agenda [data-r="6"] { grid-row-start: 7; }
.mock-agenda [data-r="7"] { grid-row-start: 8; }
.mock-agenda [data-r="8"] { grid-row-start: 9; }
.mock-agenda [data-r="9"] { grid-row-start: 10; }
.mock-agenda [data-r="10"] { grid-row-start: 11; }
.mock-agenda [data-r="11"] { grid-row-start: 12; }
.mock-agenda [data-r="12"] { grid-row-start: 13; }
.mock-agenda [data-r="13"] { grid-row-start: 14; }
.mock-agenda [data-r="14"] { grid-row-start: 15; }
.mock-agenda [data-r="15"] { grid-row-start: 16; }
.mock-agenda [data-r="16"] { grid-row-start: 17; }
.mock-agenda [data-h="2"] { grid-row-end: span 2; }
.mock-agenda [data-h="3"] { grid-row-end: span 3; }
.mock-agenda [data-h="4"] { grid-row-end: span 4; }
.mock-agenda [data-h="6"] { grid-row-end: span 6; }
@media (max-width: 639.98px) { .mock-agenda [data-c="3"] { display: none; } }
@media (min-width: 640px) {
  .mock-agenda { padding: 20px; }
  .mock-agenda__grid { grid-template-columns: 3.25rem repeat(3, minmax(0, 1fr)); column-gap: 8px; }
}
.mock-ev {
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  margin: 2px 0;
  padding: 4px 8px;
  overflow: hidden;
  border-left: 3px solid var(--line);
  border-radius: 6px;
  font-size: 0.75rem;
  line-height: 1.3;
}
.mock-ev__p, .mock-ev__t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-ev__p { color: var(--ink-900); font-weight: 600; }
.mock-ev__t { color: var(--ink-700); }
.mock-ev:not([data-h="2"]) .mock-ev__t { white-space: normal; }
@media (max-width: 479.98px) { .mock-ev[data-h="2"] .mock-ev__d { display: none; } }
.mock-ev--ok { border-left-color: var(--ok-fg); background: var(--ok-soft); }
.mock-ev--warn { border-left-color: var(--warn-fg); background: var(--warn-soft); }
.mock-ev--brand { border-left-color: var(--brand-600); background: var(--brand-50); }
.mock-ev--gap { border: 1px dashed var(--info-fg); border-left-width: 3px; border-left-style: solid; background: var(--info-soft); }
.mock-ev--gap .mock-ev__p { color: var(--info-fg); }
.mock-legend { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 14px; }

/* Ficha clínica con odontograma */
.mock-ficha { display: grid; gap: 16px; padding: 16px; }
@media (min-width: 640px) { .mock-ficha { padding: 22px; } }
.mock-ficha__main, .mock-ficha__side { min-width: 0; }
.mock-ficha__head { display: flex; align-items: center; gap: 12px; }
.mock-ficha__avatar {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 700;
}
.mock-ficha__who { display: flex; flex-direction: column; min-width: 0; }
.mock-ficha__name { font-size: 1rem; font-weight: 600; }
.mock-ficha__sub { color: var(--ink-500); }
.mock-ficha__alerts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.mock-ficha__odo-wrap { margin-top: 16px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.mock-ficha__label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-500);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mock-odo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.mock-ficha__odo { display: block; width: 100%; height: auto; }
@media (min-width: 640px) {
  .mock-odo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
  .mock-ficha__odo { padding: 6px; }
  .mock-ficha__odo[data-q="1"], .mock-ficha__odo[data-q="4"] { border-right: 1px solid var(--line); }
  .mock-ficha__odo[data-q="1"], .mock-ficha__odo[data-q="2"] { border-bottom: 1px solid var(--line); }
}
.mock-ficha__key { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; color: var(--ink-700); font-size: 0.75rem; }
.mock-ficha__key > span { display: inline-flex; align-items: center; gap: 6px; }
.mock-key { display: inline-block; width: 12px; height: 12px; border: 1px solid var(--ink-300); border-radius: 3px; }
.mock-key--hecho { border-color: var(--brand-600); background: var(--brand-600); }
.mock-key--pendiente { border-color: var(--bad-fg); background: var(--bad-soft); }
.mock-key--corona { border: 1.5px solid var(--brand-600); border-radius: 50%; }
.mock-key--x { border-style: dashed; border-color: var(--ink-500); }
.mock-ficha__side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; justify-items: start; }
@media (min-width: 640px) { .mock-ficha__side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; } .mock-ficha__side .chip { grid-column: 1 / -1; } }
.mock-ficha__box { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--page); }
.mock-ficha__row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.mock-ficha__label + .mock-ficha__row { border-top: 0; padding-top: 0; }
.mock-ficha__row .icon { width: 16px; height: 16px; color: var(--bad-fg); }
.mock-ficha__text { display: block; }
.od-cara { fill: var(--surface); stroke: var(--ink-300); stroke-width: 0.8; }
.od-cara--hecho { fill: var(--brand-600); stroke: var(--brand-700); }
.od-cara--pendiente { fill: var(--bad-soft); stroke: var(--bad-fg); }
.od-corona { fill: none; stroke: var(--brand-600); stroke-width: 1.4; }
.od-x { stroke: var(--ink-500); stroke-width: 1.6; stroke-linecap: round; }
.od-num { fill: var(--ink-500); font: 600 7px var(--font-sans); text-anchor: middle; }

/* Charla del asistente: los mensajes ya ocupan su lugar y aparecen de a uno, sin mover la página. */
.mock-chat__opts { display: grid; gap: 4px; margin: 8px 0 4px; }
.mock-chat__opts span { padding: 6px 10px; border: 1px solid var(--brand-100); border-radius: var(--radius-sm); background: var(--brand-50); color: var(--brand-700); font-size: 0.8125rem; font-weight: 600; }
.es-demo [data-paso] { transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s; }
.es-demo [data-paso]:not(.is-on) { visibility: hidden; opacity: 0; transform: translateY(8px); }
.link-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 2px 8px; border: 0; border-radius: 6px; background: none; color: var(--brand-600); font: inherit; font-weight: 600; cursor: pointer; }
.link-btn:hover { background: var(--brand-50); color: var(--brand-700); }
.link-btn .icon { width: 16px; height: 16px; }
@media (pointer: coarse) { .link-btn { min-height: 44px; } }
@media (scripting: none) { .link-btn { display: none; } }

/* Lista de espera y recall */
.mock-espera { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
@media (min-width: 640px) { .mock-espera, .mock-reportes { padding: 22px; } }
.mock-espera .mock-label { margin-top: 10px; }
.espera-hueco { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; align-items: center; padding: 14px; border-radius: 10px; background: var(--info-soft); color: var(--ink-700); }
.espera-hueco__icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--surface); color: var(--info-fg); }
.espera-hueco__t b { display: block; color: var(--ink-900); font-size: 0.9375rem; }
.espera-hueco .chip { grid-column: 2; justify-self: start; background: var(--surface); }
.espera-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; }
.espera-row__p { display: flex; flex-direction: column; min-width: 0; }
.espera-row__n { font-size: 0.875rem; font-weight: 600; }
.espera-row__d { color: var(--ink-500); font-size: 0.75rem; }
.espera-row__a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: var(--radius-sm); font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.espera-row__a .icon { width: 16px; height: 16px; }
.espera-row__a--brand { background: var(--brand-600); color: var(--on-dark); }
.espera-row__a--ok { background: var(--ok-soft); color: var(--ok-fg); }
@media (max-width: 419.98px) { .espera-row { grid-template-columns: minmax(0, 1fr); } .espera-row__a { justify-self: start; } }

/* Reportes (datos de ejemplo): una serie por gráfico, una sola tinta, etiqueta en el primero y el último */
.mock-reportes { display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.mock-reportes__top { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; justify-content: space-between; }
.mock-reportes__t { font: 700 1.0625rem/1.3 var(--font-display); }
.rep-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rep-kpi { display: flex; flex-direction: column; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.rep-kpi__n { font: 700 1.5rem/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.rep-kpi__l { color: var(--ink-500); font-size: 0.75rem; }
.rep-kpi__d { display: inline-flex; gap: 4px; align-items: center; font-size: 0.75rem; font-weight: 600; }
.rep-kpi__d .icon { width: 13px; height: 13px; stroke-width: 2.5; }
.rep-kpi__d--ok { color: var(--ok-fg); }
.rep-charts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 560px) { .rep-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 419.98px) { .rep-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rep-kpi:first-child { grid-column: 1 / -1; } }
.rep-chart { display: flex; flex-direction: column; gap: 10px; justify-content: space-between; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.rep-chart__t { font-size: 0.8125rem; font-weight: 600; }
.cols { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: end; }
.col { display: flex; flex-direction: column; align-items: center; }
.col__v { margin-bottom: 4px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.col__b { width: 56%; max-width: 24px; border-radius: 4px 4px 0 0; background: var(--brand-600); }
.col__m { width: 100%; padding-top: 5px; border-top: 1px solid var(--ink-300); color: var(--ink-500); font-size: 0.75rem; text-align: center; }
.col[data-v="15"] .col__b { height: 90px; }
.col[data-v="14"] .col__b { height: 84px; }
.col[data-v="12"] .col__b { height: 72px; }
.col[data-v="11"] .col__b { height: 66px; }
.col[data-v="9"] .col__b { height: 54px; }
.col[data-v="8"] .col__b { height: 48px; }
.hbar { display: grid; grid-template-columns: 5.25rem minmax(0, 1fr) 3.25rem; gap: 8px; align-items: center; font-size: 0.75rem; }
.hbar__l { color: var(--ink-700); white-space: nowrap; }
.hbar__b { height: 14px; border-radius: 0 4px 4px 0; background: var(--brand-600); }
.hbar__v { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.hbar[data-v="76"] .hbar__b { width: 76%; }
.hbar[data-v="52"] .hbar__b { width: 52%; }
.rep-pres { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 10px; background: var(--page); color: var(--ink-700); }
.rep-pres .icon { color: var(--brand-600); }
.rep-pres b { display: block; color: var(--ink-900); }

/* ── 14b · Aparición al bajar y avisos del hero ─────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .anima [data-aparecer] { transition: opacity 0.6s ease, transform 0.6s ease; }
  .anima [data-aparecer]:not(.is-visible) { opacity: 0; transform: translateY(20px); }
  .toast { animation: aviso 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .toast:nth-child(1) { animation-delay: 0.7s; }
  .toast:nth-child(2) { animation-delay: 1.3s; }
  .toast:nth-child(3) { animation-delay: 1.9s; }
  .toast:nth-child(4) { animation-delay: 2.5s; }
}
@keyframes aviso { from { opacity: 0; transform: translateY(12px) scale(0.97); } to { opacity: 1; transform: none; } }

/* ── 14c · Teléfono: menos alto, mismo contenido ────────────────────────── */
@media (max-width: 639.98px) {
  .section { padding-block: 3rem; }
  .numero__texto { font-size: 0.875rem; }
  .perdida { padding-bottom: 20px; }
  .perdida__media { min-height: 0; margin-bottom: 16px; padding: 16px; }
  .seguridad .card { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 2px 14px; padding: 18px; text-align: left; }
  .seguridad .card__icon { grid-row: 1 / 3; width: 44px; height: 44px; margin: 0; }
  .pasos { gap: 28px; }
  .bloque { gap: 24px; padding-block: 1.5rem; }
  .bloque .mock-wrap > figcaption:not(:has(button)) { display: none; }
  .bloque .mock-legend, .bloque .rep-pres, .bloque .rep-chart:last-child { display: none; }
  .bloque .mock-espera > .mock-label:nth-of-type(n + 2) { margin-top: 6px; }
  .bloque .mock-ficha__side > :not(.chip):nth-child(2) { display: none; }
}

/* ── 15 · Movimiento reducido ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
