/* ==========================================================================
   Omnia · Sitio público (portada, /demo/ y textos legales)
   Sin dependencias externas (CSP estricta): fuente, íconos e imágenes propios.
   Mobile first. Los tokens de :root los comparten las páginas públicas.
   ========================================================================== */

/* --- Manrope (variable 200-800, autoalojada; licencia en static/fonts/) --- */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../../fonts/manrope-latin-ext-wght-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: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../../fonts/manrope-latin-wght-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;
}

:root {
  /* Paleta de marca. Los nombres --praxia-* se conservan (los usan demo.css y las plantillas);
     los valores son la paleta índigo de Omnia. Contrastes en scripts/marca/contraste.py. */
  --praxia-deep: #282A6E;       /* índigo profundo: títulos, botones y secciones oscuras */
  --praxia-deep-900: #1D1F58;   /* hover */
  --praxia-green: #5049B0;      /* índigo violeta (antes verde): íconos, subtítulos y números */
  --praxia-green-50: #EDECFA;   /* lavanda suave: fondos de íconos y elementos activos */
  --praxia-sand: #D8B56A;
  --praxia-sand-50: #FBF5E7;
  --praxia-cream: #F3F3F9;      /* fondo frío de secciones (antes crema) */
  --praxia-ink: #1E2236;        /* tinta azul grisácea: 15,7:1 sobre blanco */
  --white: #FFFFFF;

  /* Derivados (contraste verificado: texto ≥ 4,5:1) */
  --praxia-muted: #50556D;          /* texto secundario sobre blanco y el fondo frío */
  --praxia-muted-on-dark: #CBCDEB;  /* texto secundario sobre índigo profundo */
  --praxia-line: #E0E0EC;
  --praxia-line-soft: #EBEBF4;
  --praxia-surface: #FAFAFD;
  --praxia-field-line: #8A8CA3;    /* borde de campos: 3,3:1 sobre blanco (WCAG 1.4.11) */

  /* Estados (siempre acompañados de texto, nunca solo color) */
  --tone-danger: #B42318;  --tone-danger-bg: #FDECEA;  --tone-danger-line: #F4C7C2;
  --tone-warning: #8A5A00; --tone-warning-bg: #FFF5DD; --tone-warning-line: #F1DCA6;
  --tone-success: #1E7A4C; --tone-success-bg: #E7F5ED; --tone-success-line: #BFE2CD;
  --tone-info: #0A6290;    --tone-info-bg: #E4F2F9;    --tone-info-line: #BEDDEE;
  --tone-neutral: #545867; --tone-neutral-bg: #EFF0F3; --tone-neutral-line: #DCDDE5;

  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-card: 18px;
  --radius-btn: 11px;
  --radius-pill: 999px;
  --shadow-soft: 0 1px 2px rgba(40, 42, 110, .06), 0 8px 24px rgba(40, 42, 110, .06);
  --shadow-lift: 0 2px 4px rgba(40, 42, 110, .06), 0 18px 44px rgba(40, 42, 110, .10);
  --shadow-window: 0 1px 2px rgba(40, 42, 110, .06), 0 24px 64px rgba(40, 42, 110, .14);

  --header-h: 68px;
  --gutter: 16px;
  --section-y: 64px;

  color-scheme: light;
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 960px) { :root { --header-h: 76px; --section-y: 96px; } }
@media (min-width: 1280px) { :root { --gutter: 32px; } }

/* --- Base ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.6; font-weight: 400;
  color: var(--praxia-ink); background: var(--white);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--praxia-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--praxia-green); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; color: var(--praxia-deep); }
h3 { font-weight: 600; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
strong { font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(216, 181, 106, .35); }

:focus-visible { outline: 3px solid var(--praxia-deep); outline-offset: 3px; border-radius: 6px; }
.section-dark :focus-visible, .on-dark :focus-visible { outline-color: var(--praxia-sand); }
main:focus { outline: none; }

.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;
}
.skip-link {
  position: absolute; left: 16px; top: -120px; z-index: 100; padding: 12px 18px; border-radius: 10px;
  background: var(--praxia-deep); color: var(--white); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); outline-color: var(--praxia-sand); }

.icon {
  width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round; vertical-align: middle;
}

/* --- Estructura ------------------------------------------------------- */
.container { width: 100%; max-width: calc(1200px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: calc(860px + 2 * var(--gutter)); }
.section { padding-block: var(--section-y); position: relative; }
/* Anclas (/#demo, /#contacto…): la sección empieza justo bajo el menú fijo y su propio relleno
   deja el título a la vista. Sin scroll-padding en html: sumado al margen dejaba ver una franja
   de la sección anterior sobre las secciones oscuras. */
main > section[id] { scroll-margin-top: var(--header-h); }
/* Al recorrer con Tab hacia arriba, el elemento con foco (y su etiqueta) no queda bajo el menú. */
:where(a, button, input, select, textarea, summary, [tabindex]) { scroll-margin-top: calc(var(--header-h) + 40px); scroll-margin-bottom: 24px; }
.section-white { background: var(--white); }
.section-cream { background: var(--praxia-cream); }
.section-dark { background: var(--praxia-deep); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem; margin: 0 0 1rem;
  font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--praxia-deep);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--praxia-sand); }
.section-dark .eyebrow { color: var(--praxia-sand); }

.section-header { max-width: 46rem; margin-bottom: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem); }
.section-header.is-center { margin-inline: auto; text-align: center; }
.section-header.is-split { max-width: none; }
.title-line { display: block; }
.section-subtitle { margin: 1.1rem 0 0; font-size: clamp(1.15rem, 1.05rem + .45vw, 1.375rem); font-weight: 700; color: var(--praxia-green); letter-spacing: -.01em; }
.section-subtitle + .section-lead { margin-top: .6rem; }
@media (min-width: 1024px) {
  .section-header.is-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 4rem; align-items: end; }
  .section-header.is-split .eyebrow { grid-column: 1 / -1; justify-self: start; }
  .section-header.is-split .section-lead { margin: 0; padding-bottom: .35rem; }
}
.section-title {
  font-size: clamp(1.75rem, 1.15rem + 2.3vw, 2.75rem); font-weight: 700; line-height: 1.14; letter-spacing: -.025em;
  text-wrap: balance;
}
.section-lead {
  margin: 1.1rem 0 0; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); color: var(--praxia-muted); line-height: 1.65;
  text-wrap: pretty;
}
.section-header.is-center .section-lead { margin-inline: auto; max-width: 40rem; }
.section-dark .section-lead { color: var(--praxia-muted-on-dark); }

/* --- Botones ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px;
  padding: .6rem 1.25rem; border-radius: var(--radius-btn); border: 1.5px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.btn .icon { width: 18px; height: 18px; stroke-width: 2; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--praxia-deep); color: var(--white); box-shadow: 0 1px 2px rgba(40, 42, 110, .18); }
.btn-primary:hover { background: var(--praxia-deep-900); color: var(--white); box-shadow: 0 8px 20px rgba(40, 42, 110, .18); transform: translateY(-1px); }
.btn-secondary { background: var(--white); color: var(--praxia-deep); border-color: rgba(40, 42, 110, .24); }
.btn-secondary:hover { border-color: var(--praxia-deep); color: var(--praxia-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--praxia-deep); }
.btn-ghost:hover { background: rgba(40, 42, 110, .06); color: var(--praxia-deep); }
.btn-lg { min-height: 56px; padding: .75rem 1.6rem; font-size: 1.0625rem; }
/* Sobre fondo índigo profundo: arena con texto índigo (6,5:1) o contorno blanco. */
.btn-on-dark, .btn-on-dark.btn-primary { background: var(--praxia-sand); color: var(--praxia-deep); border-color: var(--praxia-sand); box-shadow: none; }
.btn-on-dark:hover, .btn-on-dark.btn-primary:hover { background: #E3C584; border-color: #E3C584; color: var(--praxia-deep-900); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.btn-on-dark.btn-secondary { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .55); }
.btn-on-dark.btn-secondary:hover { background: rgba(255, 255, 255, .08); border-color: var(--white); color: var(--white); }
.btn-on-dark.btn-ghost { background: transparent; color: var(--white); border-color: transparent; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479.98px) { .cta-row .btn { width: 100%; } }

/* --- Menú superior ---------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent; transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--praxia-line-soft); box-shadow: 0 6px 24px rgba(40, 42, 110, .07); }
.nav-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-height: var(--header-h); }
.nav-brand { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; border-radius: 8px; }
.nav-brand img { width: 108px; height: auto; }
.nav-primary { order: 3; width: 100%; }
.nav-links { list-style: none; display: flex; flex-wrap: wrap; gap: 2px; padding-bottom: 10px; }
.nav-links a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px;
  color: var(--praxia-ink); font-size: .9375rem; font-weight: 600; text-decoration: none;
}
.nav-links a:hover { background: var(--praxia-cream); color: var(--praxia-deep); }
.nav-links a[aria-current] { color: var(--praxia-deep); }
.nav-links a[aria-current]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 7px; height: 2px; border-radius: 2px; background: var(--praxia-sand);
}
.nav-actions { display: flex; align-items: center; gap: 8px; }
.btn-nav { min-height: 44px; padding: .5rem 1rem; font-size: .9375rem; }
.nav-toggle {
  display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border-radius: 10px; border: 1px solid var(--praxia-line); background: var(--white); color: var(--praxia-deep); cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close, .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 959.98px) {
  /* Con JavaScript el menú se pliega bajo el botón; sin él, los enlaces quedan visibles. */
  .js .nav-toggle { display: inline-flex; }
  .js .nav-primary {
    display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 8px var(--gutter) 18px;
    background: var(--white); border-bottom: 1px solid var(--praxia-line-soft); box-shadow: 0 18px 32px rgba(40, 42, 110, .10);
  }
  .js .nav-primary.is-open { display: block; }
  .js .nav-links { flex-direction: column; padding: 0; }
  .js .nav-links a { width: 100%; min-height: 50px; font-size: 1.0625rem; }
  .js .nav-links a[aria-current]::after { left: 0; right: auto; top: 14px; bottom: 14px; width: 3px; height: auto; }
}
@media (min-width: 960px) {
  .nav-bar { flex-wrap: nowrap; gap: 20px; }
  .nav-brand img { width: 124px; }
  .nav-primary { order: 0; width: auto; }
  .nav-links { flex-wrap: nowrap; padding: 0; }
  .nav-links a { padding: 0 13px; }
}
@media (max-width: 359.98px) { .btn-nav { padding-inline: .7rem; font-size: .875rem; } }

.notice-bar { background: var(--praxia-green-50); border-bottom: 1px solid var(--tone-info-line); color: var(--praxia-deep); font-weight: 600; font-size: .95rem; }
.notice-bar .container { padding-block: 12px; }

/* --- Hero ------------------------------------------------------------- */
.hero { background: var(--praxia-cream); padding-block: 40px 64px; overflow: clip; }
.hero-grid { display: grid; gap: 44px; align-items: center; }
.hero-title {
  font-size: clamp(2.4rem, 1.55rem + 3.4vw, 4rem); font-weight: 800; line-height: 1.04; letter-spacing: -.035em;
  color: var(--praxia-deep); text-wrap: balance;
}
.hero-title .text-accent {
  text-decoration: underline; text-decoration-color: var(--praxia-sand); text-decoration-thickness: .085em;
  text-underline-offset: .14em; text-decoration-skip-ink: none;
}
.hero-subtitle { text-wrap: balance; margin: 1.1rem 0 0; font-size: clamp(1.2rem, 1.05rem + .6vw, 1.45rem); font-weight: 700; line-height: 1.35; color: var(--praxia-green); letter-spacing: -.01em; }
.hero-text { margin: 1rem 0 0; max-width: 34rem; font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem); color: var(--praxia-muted); }
.hero-actions { margin-top: 2rem; }
.hero-micro { text-wrap: pretty; display: flex; align-items: flex-start; gap: .55rem; margin: 1.5rem 0 0; font-size: .9375rem; font-weight: 500; color: var(--praxia-muted); }
.hero-micro .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--praxia-green); }
@media (min-width: 1024px) {
  .hero { padding-block: 72px 104px; }
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6.4fr); gap: 56px; }
}

/* --- Paneles de ejemplo (mockups construidos con HTML y CSS) ---------- */
.mockup { container-type: inline-size; width: 100%; }
.mk-window {
  background: var(--white); border: 1px solid rgba(40, 42, 110, .10); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-window); font-size: 12px; line-height: 1.35; color: var(--praxia-ink);
}
.mk-chrome { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; background: #F4F4F9; border-bottom: 1px solid var(--praxia-line-soft); }
.mk-dots { display: flex; gap: 6px; flex: none; }
.mk-dots span { width: 9px; height: 9px; border-radius: 50%; background: #D6D6E3; }
.mk-address {
  display: flex; align-items: center; justify-content: center; gap: 6px; flex: 1; max-width: 300px; height: 22px; margin-inline: auto;
  padding: 0 10px; border-radius: 6px; background: var(--white); border: 1px solid var(--praxia-line-soft);
  color: var(--praxia-muted); font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden;
}
.mk-address .icon { width: 11px; height: 11px; stroke-width: 2; color: var(--praxia-green); }
.mk-address-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* En pantallas muy angostas (320 px) la barra muestra solo "Omnia" en vez de cortar el texto. */
@container (max-width: 319.98px) { .mk-address-page { display: none; } }
.mk-chrome-spacer { width: 39px; flex: none; }
.mk-app { display: grid; grid-template-columns: minmax(0, 1fr); }
.mk-side { display: none; padding: 14px 8px; background: var(--praxia-surface); border-right: 1px solid var(--praxia-line-soft); }
.mk-logo { width: 28px; height: 28px; margin: 0 0 14px 6px; }
.mk-nav { list-style: none; display: grid; gap: 2px; }
.mk-nav li {
  display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px;
  color: var(--praxia-muted); font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.mk-nav li span { display: none; }
.mk-nav li.is-active { background: var(--praxia-green-50); color: var(--praxia-deep); box-shadow: inset 2px 0 0 var(--praxia-sand); }
.mk-nav .icon { width: 15px; height: 15px; }
.mk-main { min-width: 0; padding: 14px; }
.mk-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.mk-inst { display: block; font-size: 10.5px; font-weight: 600; color: var(--praxia-muted); }
.mk-title { display: block; margin-top: 1px; font-size: 17px; font-weight: 800; letter-spacing: -.01em; color: var(--praxia-deep); }
.mk-title small { font-size: 11px; font-weight: 600; color: var(--praxia-muted); letter-spacing: 0; margin-left: 6px; }
.demo-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--praxia-sand); background: var(--praxia-sand-50); color: var(--praxia-deep);
  font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.demo-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--praxia-sand); }
.mk-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.mk-kpi { position: relative; padding: 9px 10px 9px 12px; border: 1px solid var(--praxia-line-soft); border-radius: 10px; background: var(--white); overflow: hidden; }
.mk-kpi::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--praxia-line); }
.mk-kpi strong { display: block; font-size: 20px; font-weight: 800; line-height: 1.1; color: var(--praxia-deep); letter-spacing: -.01em; }
.mk-kpi span { display: block; margin-top: 2px; font-size: 10.5px; font-weight: 600; color: var(--praxia-muted); }
.mk-kpi.tone-danger::before { background: var(--tone-danger); }
.mk-kpi.tone-danger strong { color: var(--tone-danger); }
.mk-kpi.tone-warning::before { background: var(--praxia-sand); }
.mk-kpi.tone-warning strong { color: var(--tone-warning); }
.mk-card { min-width: 0; padding: 10px 11px 11px; border: 1px solid var(--praxia-line-soft); border-radius: 12px; background: var(--white); }
.mk-card-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 11.5px; font-weight: 800; color: var(--praxia-deep); }
.mk-card-head .icon { width: 14px; height: 14px; stroke-width: 2; color: var(--praxia-green); }
.mk-card-head em { margin-left: auto; font-style: normal; font-weight: 700; font-size: 10px; color: var(--praxia-muted); }
.mk-list { list-style: none; display: grid; gap: 7px; }
.mk-list li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mk-unit + .mk-unit { margin-top: 10px; }
.mk-unit-name { display: block; margin-bottom: 6px; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--praxia-muted); }
.mk-avatar {
  display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--praxia-cream); color: var(--praxia-deep); font-size: 9px; font-weight: 800; letter-spacing: .02em;
}
.mk-item { flex: 1; min-width: 0; }
.mk-item strong { display: block; font-weight: 700; color: var(--praxia-ink); }
.mk-item small { display: block; font-size: 10.5px; font-weight: 500; color: var(--praxia-muted); }
.mk-chip {
  flex: none; padding: 2px 7px; border-radius: var(--radius-pill); border: 1px solid transparent;
  font-size: 10px; font-weight: 700; white-space: nowrap;
}
.tone-danger.mk-chip { background: var(--tone-danger-bg); color: var(--tone-danger); border-color: var(--tone-danger-line); }
.tone-warning.mk-chip { background: var(--tone-warning-bg); color: var(--tone-warning); border-color: var(--tone-warning-line); }
.tone-success.mk-chip { background: var(--tone-success-bg); color: var(--tone-success); border-color: var(--tone-success-line); }
.tone-info.mk-chip { background: var(--tone-info-bg); color: var(--tone-info); border-color: var(--tone-info-line); }
.tone-neutral.mk-chip { background: var(--tone-neutral-bg); color: var(--tone-neutral); border-color: var(--tone-neutral-line); }
.mk-alert-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--praxia-sand); box-shadow: 0 0 0 3px var(--praxia-sand-50); }
.mk-time { flex: none; width: 34px; font-size: 10px; font-weight: 700; color: var(--praxia-muted); font-variant-numeric: tabular-nums; }
.mk-timeline li { position: relative; }

/* Variante portada */
.mk-grid { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.mk-alerts, .mk-evals, .mk-activity { display: none; }
/* Variante panel */
.mockup--panel .mk-window { font-size: 12.5px; }
.mk-blocks { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.mk-blocks .mk-list { gap: 9px; }
.mk-blocks .mk-list li { align-items: flex-start; }

@container (min-width: 420px) {
  .mk-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mk-alerts { display: block; }
}
@container (min-width: 520px) {
  .mk-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    grid-template-areas: "res pend" "res alert" "evals act";
  }
  .mk-residents { grid-area: res; }
  .mk-pending { grid-area: pend; }
  .mk-alerts { grid-area: alert; }
  .mk-evals { grid-area: evals; display: block; }
  .mk-activity { grid-area: act; display: block; }
  .mk-blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (min-width: 600px) {
  .mk-app { grid-template-columns: 52px minmax(0, 1fr); }
  .mk-side { display: block; }
  .mk-logo { margin-left: 4px; }
}
@container (min-width: 820px) {
  .mk-app { grid-template-columns: 150px minmax(0, 1fr); }
  .mk-nav li span { display: inline; }
  .mk-logo { margin-left: 8px; }
  .mk-main { padding: 18px 20px; }
  .mockup--panel .mk-kpi strong { font-size: 24px; }
}
@container (min-width: 1000px) {
  .mk-blocks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* --- Problema --------------------------------------------------------- */
.problem-grid { list-style: none; display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.problem-card { position: relative; padding-top: 22px; border-top: 1px solid var(--praxia-line); }
.problem-card::before { content: ""; position: absolute; top: -1px; left: 0; width: 44px; height: 2px; background: var(--praxia-sand); }
.card-number { display: block; font-size: .875rem; font-weight: 800; letter-spacing: .1em; color: var(--praxia-green); font-variant-numeric: tabular-nums; }
.problem-card h3 { margin: .7rem 0 .5rem; font-size: 1.25rem; letter-spacing: -.01em; }
.problem-card p { color: var(--praxia-muted); }
@media (min-width: 640px) { .problem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; } }
@media (min-width: 1024px) { .problem-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* --- Propuesta de valor: el residente al centro ------------------------ */
.value-grid { display: grid; gap: 44px; align-items: center; }
.value-chain { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px; margin-top: 1.75rem; }
.value-chain li {
  display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--praxia-deep);
}
/* El "+" va al final de cada término: al cortar la línea queda al final y nunca dentro de la píldora. */
.value-chain li:not(:last-child)::after { content: "+"; content: "+" / ""; color: var(--praxia-green); font-weight: 700; margin-left: 2px; }
.value-chain li:last-child { padding: 3px 10px; border-radius: var(--radius-pill); background: var(--praxia-deep); color: var(--white); }
.check-list { list-style: none; display: grid; gap: .8rem; margin-top: 1.75rem; }
.check-list li { display: flex; align-items: flex-start; gap: .7rem; color: var(--praxia-ink); font-weight: 500; }
.check-list .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--praxia-green); }
.section-dark .check-list li, .check-list.on-dark li { color: var(--white); }
.section-dark .check-list .icon { color: var(--praxia-sand); }

.layers {
  position: relative; list-style: none; padding: clamp(22px, 2vw + 12px, 36px); border-radius: 22px; background: var(--white);
  border: 1px solid var(--praxia-line-soft); box-shadow: var(--shadow-soft); overflow: hidden;
}
.layers::before {
  /* Anillos muy tenues alrededor del residente: todo gira en torno a la persona. */
  content: ""; position: absolute; width: 560px; height: 560px; left: -230px; top: -230px; border-radius: 50%; pointer-events: none;
  background: repeating-radial-gradient(circle, transparent 0 52px, rgba(216, 181, 106, .16) 52px 53px);
}
.layer { position: relative; display: flex; align-items: flex-start; gap: 16px; padding-bottom: 22px; }
.layer:last-child { padding-bottom: 0; }
.layer:not(:last-child)::after {
  content: ""; position: absolute; left: 21px; top: 48px; bottom: 4px; width: 2px; border-radius: 2px; background: var(--praxia-line);
}
.layer-icon {
  position: relative; z-index: 1; display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); border: 1.5px solid var(--praxia-line); color: var(--praxia-deep);
}
.layer-icon .icon { width: 20px; height: 20px; }
.layer-body { position: relative; z-index: 1; padding-top: 2px; }
.layer-body strong { display: block; font-size: 1.0625rem; font-weight: 700; color: var(--praxia-deep); line-height: 1.3; }
.layer-body span { display: block; margin-top: 2px; font-size: .9375rem; color: var(--praxia-muted); line-height: 1.5; }
.layer-core .layer-icon {
  width: 56px; height: 56px; margin-left: -6px; background: var(--praxia-deep); border-color: var(--praxia-deep); color: var(--white);
  box-shadow: 0 0 0 6px rgba(216, 181, 106, .35), 0 0 0 13px rgba(216, 181, 106, .14);
}
.layer-core .layer-icon .icon { width: 24px; height: 24px; }
.layer-core:not(:last-child)::after { top: 64px; }
.layer-core .layer-body { padding-top: 6px; }
.layer-core .layer-body strong { font-size: .8125rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.layer-final .layer-icon { background: var(--praxia-green-50); border-color: rgba(80, 73, 176, .45); color: var(--praxia-green); }
@media (min-width: 1024px) {
  .value-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
}

/* --- Cómo funciona ---------------------------------------------------- */
.steps { --steps-gap: 16px; list-style: none; display: grid; gap: var(--steps-gap); counter-reset: paso; }
.step {
  position: relative; padding: 28px 24px 26px; border-radius: var(--radius-card); background: var(--praxia-surface);
  border: 1px solid var(--praxia-line-soft);
}
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.step-number {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--praxia-deep);
  color: var(--white); font-weight: 800; font-size: 1rem;
}
.step-top .icon { width: 26px; height: 26px; color: var(--praxia-green); }
.step h3 { font-size: 1.25rem; margin-bottom: .45rem; }
.step p { color: var(--praxia-muted); }
.steps-note { margin-top: 1.25rem; font-size: .9375rem; color: var(--praxia-muted); text-align: center; }
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step { padding: 24px 20px 22px; }
  .step:not(:last-child)::after {
    /* Conector suave entre pasos. */
    content: ""; position: absolute; top: 42px; right: calc(-1 * var(--steps-gap)); width: var(--steps-gap); height: 2px; background: var(--praxia-sand);
  }
}
@media (min-width: 900px) {
  .steps { --steps-gap: 24px; }
  .step { padding: 28px 24px 26px; }
  .step:not(:last-child)::after { top: 46px; }
}

/* --- Funcionalidades -------------------------------------------------- */
.feature-grid { list-style: none; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.feature-card {
  display: flex; flex-direction: column; height: 100%; padding: 26px 24px 24px; border-radius: var(--radius-card);
  background: var(--white); border: 1px solid var(--praxia-line-soft); box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.feature-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.feature-icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--praxia-green-50); color: var(--praxia-deep);
}
.feature-icon .icon { width: 22px; height: 22px; }
.feature-number { font-size: .875rem; font-weight: 800; letter-spacing: .1em; color: var(--praxia-green); font-variant-numeric: tabular-nums; }
.feature-number::after { content: ""; display: block; width: 100%; height: 2px; margin-top: 4px; border-radius: 2px; background: var(--praxia-sand); }
.feature-card h3 { margin: 1.15rem 0 .9rem; font-size: 1.25rem; letter-spacing: -.01em; }
.feature-items { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.feature-items li {
  padding: 5px 11px; border-radius: var(--radius-pill); background: var(--praxia-surface); border: 1px solid var(--praxia-line-soft);
  font-size: .875rem; font-weight: 500; color: var(--praxia-ink); line-height: 1.35;
}
.feature-summary { margin-top: 2rem; text-align: center; font-size: .9375rem; font-weight: 600; color: var(--praxia-muted); }
.feature-summary + .feature-summary { max-width: 46rem; margin: .5rem auto 0; font-weight: 500; }
/* Siete áreas (v0.12): la tarjeta que queda sola en la última fila se centra. */
@media (min-width: 700px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .feature-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 10px); }
}
@media (min-width: 1100px) {
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .feature-grid > :last-child:nth-child(odd) { grid-column: auto; width: auto; }
  .feature-grid > :last-child:nth-child(3n+1) { grid-column: 2; }
}

/* --- Equipo interdisciplinario (diagrama radial) ---------------------- */
.team-grid { display: grid; gap: 40px; align-items: center; }
.orbit { position: relative; width: 100%; max-width: 420px; margin-inline: auto; }
.orbit-lines { display: none; }
.orbit-center {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: max-content; max-width: 100%; margin: 0 auto 20px;
  padding: 12px 22px; border-radius: var(--radius-pill); background: var(--praxia-deep); color: var(--white);
  font-size: .875rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  box-shadow: 0 0 0 6px rgba(216, 181, 106, .28);
}
.orbit-center img { width: 22px; height: 22px; padding: 2px; border-radius: 50%; background: var(--praxia-cream); }
.orbit-nodes { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.orbit-node {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px 8px 8px; border-radius: 14px;
  background: var(--white); border: 1px solid var(--praxia-line); color: var(--praxia-deep);
  font-size: .75rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; line-height: 1.25;
}
.orbit-node .icon { flex: none; width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: var(--praxia-cream); color: var(--praxia-green); stroke-width: 2; }
.orbit-node:last-child:nth-child(odd) { grid-column: 1 / -1; justify-content: center; }
@media (min-width: 640px) {
  /* Radial: el residente al centro y siete disciplinas en una órbita. */
  /* Las píldoras de los extremos sobresalen del círculo (hasta ~36 px): se reserva ese margen
     para que nunca generen desplazamiento horizontal (a 1024 px se salían de la pantalla). */
  .orbit { width: calc(100% - 72px); max-width: 560px; aspect-ratio: 1 / 1; }
  .orbit-lines { display: block; position: absolute; inset: 0; width: 100%; height: 100%; color: var(--praxia-green); }
  .orbit-center {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; flex-direction: column; gap: 8px;
    width: 30%; aspect-ratio: 1 / 1; padding: 0; border-radius: 50%; font-size: .8125rem;
    box-shadow: 0 0 0 10px rgba(216, 181, 106, .22), 0 0 0 22px rgba(216, 181, 106, .10), var(--shadow-lift);
  }
  .orbit-center img { width: 34px; height: 34px; padding: 4px; }
  .orbit-nodes { display: block; }
  .orbit-node {
    position: absolute; transform: translate(-50%, -50%); min-height: 0; padding: 7px 14px 7px 7px; border-radius: var(--radius-pill);
    white-space: nowrap; box-shadow: var(--shadow-soft); font-size: .6875rem;
  }
  .orbit-node:last-child:nth-child(odd) { justify-content: flex-start; }
  .orbit-node .icon { width: 30px; height: 30px; padding: 6px; }
  /* Posiciones en la órbita (radio 39 %, desde arriba en sentido horario). */
  .orbit-node:nth-child(1) { left: 50%; top: 11%; }
  .orbit-node:nth-child(2) { left: 80.49%; top: 25.68%; }
  .orbit-node:nth-child(3) { left: 88.02%; top: 58.68%; }
  .orbit-node:nth-child(4) { left: 66.92%; top: 85.14%; }
  .orbit-node:nth-child(5) { left: 33.08%; top: 85.14%; }
  .orbit-node:nth-child(6) { left: 11.98%; top: 58.68%; }
  .orbit-node:nth-child(7) { left: 19.51%; top: 25.68%; }
}
@media (min-width: 1024px) {
  .team-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
}
@media (min-width: 1280px) {
  .orbit-node { font-size: .75rem; }
}

/* --- Evaluaciones ----------------------------------------------------- */
.eval-grid { list-style: none; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.eval-card {
  height: 100%; padding: 26px 24px; border-radius: var(--radius-card); background: var(--white);
  border: 1px solid var(--praxia-line-soft); box-shadow: var(--shadow-soft);
}
.eval-card .feature-icon { margin-bottom: 1.1rem; }
.eval-card h3 { font-size: 1.1875rem; margin-bottom: .5rem; }
.eval-card p { color: var(--praxia-muted); font-size: 1rem; }
.connected {
  display: flex; flex-direction: column; align-items: center; gap: .35rem; margin-top: 2.25rem; text-align: center;
}
.connected-pill {
  display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1.2rem; border-radius: var(--radius-pill);
  background: var(--white); border: 1.5px solid var(--praxia-sand); color: var(--praxia-deep); font-weight: 700;
}
.connected-pill .icon { color: var(--praxia-green); }
@media (max-width: 479.98px) { .connected-pill { border-radius: 16px; text-wrap: balance; text-align: left; } }
.connected p { font-size: .9375rem; color: var(--praxia-muted); max-width: 36rem; }
@media (min-width: 640px) { .eval-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1100px) { .eval-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }

/* --- Del registro al seguimiento -------------------------------------- */
.flow-panel {
  padding: clamp(24px, 3vw + 8px, 48px); border-radius: 24px; background: var(--praxia-cream);
  border: 1px solid var(--praxia-line-soft);
}
.flow { list-style: none; display: grid; gap: 0; }
.flow-step { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; padding-bottom: 22px; }
.flow-step:last-child { padding-bottom: 0; }
.flow-step:not(:last-child)::after {
  content: ""; position: absolute; left: 21px; top: 46px; bottom: 2px; width: 2px; border-radius: 2px;
  background: linear-gradient(var(--praxia-green), rgba(80, 73, 176, .25));
}
.flow-index {
  grid-row: 1 / span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); border: 1.5px solid rgba(40, 42, 110, .3); color: var(--praxia-deep); font-weight: 800; font-size: .9375rem;
}
.flow-step:first-child .flow-index, .flow-step:last-child .flow-index { background: var(--praxia-deep); border-color: var(--praxia-deep); color: var(--white); }
.flow-label { padding-top: 2px; font-size: .875rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--praxia-deep); }
.flow-text { font-size: .9375rem; color: var(--praxia-muted); line-height: 1.5; }
.flow-highlight { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); text-align: center; }
.flow-highlight p {
  margin: 0; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); font-weight: 800; line-height: 1.15; letter-spacing: -.025em; color: var(--praxia-deep);
}
.flow-highlight p span { display: block; color: var(--praxia-green); }
.flow-highlight p span::after {
  content: ""; display: block; width: 64px; height: 3px; margin: .6rem auto 0; border-radius: 3px; background: var(--praxia-sand);
}
@media (min-width: 1024px) {
  .flow { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
  .flow-step { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0; }
  .flow-step:not(:last-child)::after {
    left: calc(50% + 30px); right: calc(-50% + 24px); top: 21px; bottom: auto; width: auto; height: 2px;
    background: linear-gradient(90deg, var(--praxia-green), rgba(80, 73, 176, .35));
  }
  .flow-step:not(:last-child)::before {
    /* Punta de flecha del conector. */
    content: ""; position: absolute; top: 17px; right: calc(-50% + 20px); width: 8px; height: 8px;
    border-top: 2px solid rgba(80, 73, 176, .6); border-right: 2px solid rgba(80, 73, 176, .6); transform: rotate(45deg);
  }
  .flow-index { width: 44px; height: 44px; margin-bottom: 14px; }
  .flow-label { padding: 0; font-size: .8125rem; letter-spacing: .1em; }
  .flow-text { margin-top: 6px; font-size: .875rem; }
}

/* --- Panel de seguimiento --------------------------------------------- */
.panel-preview { max-width: 1120px; margin-inline: auto; }
.panel-points { list-style: none; display: grid; gap: 20px; margin-top: 2.5rem; }
.panel-points li { display: flex; gap: 14px; align-items: flex-start; }
.panel-points .feature-icon { flex: none; width: 42px; height: 42px; border-radius: 12px; }
.panel-points strong { display: block; color: var(--praxia-deep); font-weight: 700; }
.panel-points div span { display: block; color: var(--praxia-muted); font-size: .9375rem; }
.panel-note { margin-top: 1.25rem; text-align: center; font-size: .875rem; color: var(--praxia-muted); }
@media (min-width: 900px) { .panel-points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }

/* --- Seguridad -------------------------------------------------------- */
.security-grid { display: grid; gap: 40px; }
.trace-card {
  margin-top: 2rem; padding: 26px 24px; border-radius: 20px; background: var(--praxia-deep); color: var(--white);
  position: relative; overflow: hidden;
}
.trace-card::after {
  content: ""; position: absolute; right: -110px; top: -110px; width: 240px; height: 240px; border-radius: 50%; pointer-events: none;
  background: repeating-radial-gradient(circle, transparent 0 26px, rgba(216, 181, 106, .14) 26px 27px);
}
.trace-title { position: relative; z-index: 1; margin: 0; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 800; letter-spacing: -.02em; color: var(--white); }
.trace-text { position: relative; z-index: 1; margin: .6rem 0 0; color: var(--praxia-muted-on-dark); font-size: 1.0625rem; }
.trace-log { position: relative; z-index: 1; list-style: none; display: grid; gap: 10px; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .14); }
.trace-log li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; font-size: .875rem; color: var(--praxia-muted-on-dark); }
.trace-log b { grid-row: 1 / span 2; align-self: start; min-width: 32px; text-align: center; padding: 2px 6px; border-radius: 6px; border: 1px solid rgba(216, 181, 106, .5); color: var(--praxia-sand); font-size: .75rem; font-weight: 800; letter-spacing: .04em; }
.trace-log strong { color: var(--white); font-weight: 600; }
.trace-caption { position: relative; z-index: 1; margin-top: 1rem; font-size: .8125rem; color: var(--praxia-muted-on-dark); }
.security-items { list-style: none; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); align-content: start; }
.security-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 16px; background: var(--praxia-surface); border: 1px solid var(--praxia-line-soft); }
.security-item .feature-icon { flex: none; width: 42px; height: 42px; border-radius: 12px; }
.security-item h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: .2rem; }
.security-item p { font-size: .9375rem; color: var(--praxia-muted); line-height: 1.5; }
.norm-card {
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); padding: clamp(24px, 2vw + 14px, 40px); border-radius: 22px;
  background: var(--praxia-cream); border: 1px solid var(--praxia-line-soft);
}
.norm-head { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.norm-head .feature-icon { flex: none; background: var(--white); }
.norm-head h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); font-weight: 700; letter-spacing: -.01em; }
.norm-head p { margin-top: .45rem; color: var(--praxia-muted); }
.law-list { list-style: none; display: grid; gap: 10px; margin-top: 1.5rem; grid-template-columns: minmax(0, 1fr); }
.law-list li { padding: 14px 16px; border-radius: 14px; background: var(--white); border: 1px solid var(--praxia-line-soft); }
.law-list strong { display: block; color: var(--praxia-deep); font-weight: 800; }
.law-list span { display: block; font-size: .875rem; color: var(--praxia-muted); line-height: 1.45; }
.norm-disclaimer { margin-top: 1.1rem; font-size: .875rem; color: var(--praxia-muted); }
@media (min-width: 640px) {
  .security-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .law-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .law-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .norm-head { flex-direction: row; }
}
@media (min-width: 1024px) {
  .security-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
  .law-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .law-list li:last-child:nth-child(odd) { grid-column: auto; }
}

/* --- Perfiles --------------------------------------------------------- */
.profile-grid { list-style: none; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.profile-card {
  height: 100%; padding: 22px 22px 24px; border-radius: var(--radius-card); background: var(--white);
  border: 1px solid var(--praxia-line-soft); box-shadow: var(--shadow-soft);
}
.profile-head { display: flex; align-items: center; gap: 12px; margin-bottom: .8rem; }
.profile-head .feature-icon { width: 40px; height: 40px; border-radius: 12px; }
.profile-head .icon { width: 20px; height: 20px; }
.profile-card h3 { font-size: 1.0625rem; font-weight: 700; }
.profile-card p { font-size: .9375rem; color: var(--praxia-muted); line-height: 1.55; }
.profile-card.is-pending { background: transparent; box-shadow: none; border: 1.5px dashed rgba(40, 42, 110, .28); }
.profile-card.is-common { background: var(--praxia-deep); border-color: var(--praxia-deep); box-shadow: none; }
.profile-card.is-common h3 { color: var(--white); }
.profile-card.is-common p { color: var(--praxia-muted-on-dark); }
.profile-card.is-common .feature-icon { background: rgba(255, 255, 255, .1); color: var(--praxia-sand); }
.tag-pending {
  display: inline-flex; align-items: center; margin-top: .35rem; padding: 2px 9px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--praxia-sand); background: var(--praxia-sand-50); color: var(--praxia-deep);
  font-size: .75rem; font-weight: 800; letter-spacing: .04em;
}
@media (min-width: 640px) {
  .profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  /* Ocho perfiles (v0.12): «Para todos los perfiles» ocupa la fila completa. */
  .profile-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .profile-grid > :last-child:nth-child(odd) .is-common { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
  .profile-grid > :last-child:nth-child(odd) .is-common .profile-head { margin-bottom: 0; }
}
@media (min-width: 1100px) { .profile-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }

/* --- Para quién ------------------------------------------------------- */
.audience-grid { display: grid; gap: 36px; align-items: start; }
.audience-closing { margin-top: 1.5rem; padding-left: 16px; border-left: 3px solid var(--praxia-sand); font-weight: 600; color: var(--praxia-deep); }
.audience-main {
  position: relative; padding: clamp(26px, 2vw + 16px, 40px); border-radius: 22px; background: var(--praxia-cream);
  border: 1px solid var(--praxia-line-soft); overflow: hidden;
}
.audience-main::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; pointer-events: none;
  background: repeating-radial-gradient(circle, transparent 0 24px, rgba(216, 181, 106, .3) 24px 25px);
}
.audience-tag {
  display: inline-flex; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--praxia-deep); color: var(--white);
  font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.audience-main h3 { position: relative; margin-top: 1rem; font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.audience-detail { position: relative; margin-top: .6rem; font-weight: 600; color: var(--praxia-deep); }
.audience-main p.audience-text { position: relative; margin-top: .4rem; color: var(--praxia-muted); max-width: 30rem; }
.audience-sub-title { margin: 1.75rem 0 .9rem; font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--praxia-muted); }
.audience-list { list-style: none; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.audience-list li {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--white);
  border: 1px solid var(--praxia-line-soft); font-weight: 600; color: var(--praxia-ink); line-height: 1.35;
}
.audience-list .icon { flex: none; color: var(--praxia-green); }
@media (min-width: 640px) { .audience-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .audience-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; } }

/* --- Demo ------------------------------------------------------------- */
.demo { overflow: clip; }
.demo::before {
  content: ""; position: absolute; left: -180px; bottom: -220px; width: 520px; height: 520px; border-radius: 50%; pointer-events: none;
  background: repeating-radial-gradient(circle, transparent 0 40px, rgba(216, 181, 106, .10) 40px 41px);
}
.demo-grid { position: relative; display: grid; gap: 44px; align-items: center; }
.demo .section-title { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.25rem); font-weight: 800; letter-spacing: -.03em; }
.demo .cta-row { margin-top: 2rem; }
@media (min-width: 1024px) { .demo-grid { grid-template-columns: minmax(0, 5.6fr) minmax(0, 6.4fr); gap: 56px; } }

.screen-frame { margin: 0; }
.screen-window {
  border-radius: 16px; overflow: hidden; background: var(--white); border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .28);
}
.screen-chrome { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; background: #F4F4F9; border-bottom: 1px solid var(--praxia-line-soft); }
.screen-body img { width: 100%; height: auto; }
.screen-frame figcaption { margin-top: .9rem; font-size: .875rem; color: var(--praxia-muted-on-dark); text-align: center; }
.screen-placeholder { position: relative; aspect-ratio: 16 / 10; background: var(--praxia-surface); overflow: hidden; }
.ph-skeleton { position: absolute; inset: 0; display: grid; grid-template-columns: 18% minmax(0, 1fr); }
.ph-side { background: #F1F1F8; border-right: 1px solid var(--praxia-line-soft); padding: 8% 10%; display: grid; align-content: start; gap: 9%; }
.ph-side span, .ph-main span { display: block; border-radius: 6px; background: #E5E5F0; }
.ph-side span { height: 8px; }
.ph-side span:first-child { width: 36%; height: 0; padding-bottom: 36%; border-radius: 50%; background: #DCDCEB; }
.ph-main { padding: 5% 5%; display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 5%; }
.ph-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3%; }
.ph-main .ph-line { width: 34%; height: 12px; }
.ph-row span { height: 0; padding-bottom: 36%; border-radius: 10px; background: var(--white); border: 1px solid var(--praxia-line-soft); }
.ph-cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 3%; }
.ph-cols span { background: var(--white); border: 1px solid var(--praxia-line-soft); border-radius: 10px; }
.ph-label {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(86%, 360px);
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 20px; text-align: center;
  border-radius: 16px; background: rgba(255, 255, 255, .94); border: 1px solid var(--praxia-line); box-shadow: var(--shadow-lift);
  color: var(--praxia-ink);
}
.ph-label strong { color: var(--praxia-deep); font-size: 1rem; }
.ph-label span:last-child { font-size: .8125rem; color: var(--praxia-muted); line-height: 1.45; }
.ph-badge { font-size: .6875rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: var(--radius-pill); border: 1.5px solid var(--praxia-sand); background: var(--praxia-sand-50); color: var(--praxia-deep); }
@media (max-width: 479.98px) {
  .ph-label { padding: 12px 14px; gap: 4px; }
  .ph-label span:last-child { display: none; }
}

/* --- Beneficios ------------------------------------------------------- */
.benefit-grid { list-style: none; display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.benefit { padding-top: 6px; }
.benefit-number {
  display: inline-block; font-size: clamp(2.6rem, 2rem + 2vw, 3.4rem); font-weight: 800; line-height: 1; letter-spacing: -.04em;
  color: var(--praxia-deep); font-variant-numeric: tabular-nums;
}
.benefit-number::after { content: ""; display: block; width: 36px; height: 3px; margin-top: 12px; border-radius: 3px; background: var(--praxia-sand); }
.benefit h3 { margin: 1.1rem 0 .4rem; font-size: 1.375rem; letter-spacing: -.01em; }
.benefit p { color: var(--praxia-muted); }
.benefit-closing {
  margin: clamp(2.5rem, 2rem + 2vw, 4rem) auto 0; max-width: 46rem; text-align: center;
  font-size: clamp(1.35rem, 1.05rem + 1.3vw, 2rem); font-weight: 700; line-height: 1.3; letter-spacing: -.02em; color: var(--praxia-deep); text-wrap: balance;
}
@media (min-width: 640px) { .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; } }
@media (min-width: 1024px) { .benefit-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* --- CTA final -------------------------------------------------------- */
.cta-final { overflow: clip; text-align: center; }
.cta-final::before, .cta-final::after {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; pointer-events: none;
  background: repeating-radial-gradient(circle, transparent 0 34px, rgba(216, 181, 106, .10) 34px 35px);
}
.cta-final::before { left: -210px; top: -210px; }
.cta-final::after { right: -210px; bottom: -210px; }
.cta-final .container { position: relative; z-index: 1; }
.cta-final h2 { font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.1rem); font-weight: 800; line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }
.cta-final h2 span { display: block; }
.cta-final h2 span + span { color: var(--praxia-sand); }
.cta-final p { text-wrap: balance; margin: 1.25rem auto 0; max-width: 36rem; font-size: 1.1875rem; color: var(--praxia-muted-on-dark); }
.cta-final .cta-row { justify-content: center; margin-top: 2.25rem; }

/* --- Contacto --------------------------------------------------------- */
.contact-grid { display: grid; gap: 36px; align-items: start; }
.contact-copy .check-list { margin-top: 1.5rem; }
.contact-card {
  padding: clamp(22px, 2vw + 14px, 40px); border-radius: 22px; background: var(--white);
  border: 1px solid var(--praxia-line-soft); box-shadow: var(--shadow-soft);
}
.form-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field-label { font-size: .9375rem; font-weight: 600; color: var(--praxia-ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem; border-radius: 10px; border: 1.5px solid var(--praxia-field-line);
  background: var(--white); color: var(--praxia-ink); font-size: 1rem; line-height: 1.4;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 132px; resize: vertical; }
.field select {
  appearance: none; padding-right: 2.6rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--praxia-deep) 50%), linear-gradient(135deg, var(--praxia-deep) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #686B84; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  /* Mismo anillo que el resto de los controles (el halo translúcido anterior daba menos de 3:1). */
  outline: 3px solid var(--praxia-deep); outline-offset: 2px; border-color: var(--praxia-deep); border-radius: 10px;
}
.field [aria-invalid="true"] { border-color: var(--tone-danger); background: #FFFBFA; }
.field-help { font-size: .875rem; color: var(--praxia-muted); }
.field-error { display: flex; align-items: flex-start; gap: 6px; font-size: .875rem; font-weight: 600; color: var(--tone-danger); }
.field-error .icon { width: 16px; height: 16px; margin-top: 2px; stroke-width: 2; }
.field-error ul { list-style: none; }
.field-consent { flex-direction: row; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--praxia-surface); border: 1px solid var(--praxia-line-soft); }
.field-consent input { flex: none; width: 22px; height: 22px; min-height: 0; margin: 2px 0 0; padding: 0; accent-color: var(--praxia-deep); }
.field-consent label { font-weight: 500; font-size: .9375rem; line-height: 1.5; }
.field-consent .consent-body { display: flex; flex-direction: column; gap: 6px; }
.form-errors {
  display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; padding: 14px 16px; border-radius: 12px;
  background: var(--tone-danger-bg); border: 1px solid var(--tone-danger-line); color: var(--tone-danger); font-weight: 600; font-size: .9375rem;
}
.form-errors .icon { margin-top: 2px; }
.form-errors:focus { outline: none; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 6px; }
.form-note { font-size: .875rem; color: var(--praxia-muted); }
@media (max-width: 479.98px) { .form-actions .btn { width: 100%; } }
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-success { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 8px 0; }
.form-success:focus { outline: none; }
.form-success .feature-icon { background: var(--tone-success-bg); color: var(--tone-success); }
.form-success h3 { font-size: 1.375rem; }
.form-success p { color: var(--praxia-muted); }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-wide { grid-column: 1 / -1; }
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } }

/* --- Pie de página ---------------------------------------------------- */
.site-footer { background: var(--white); border-top: 1px solid var(--praxia-line-soft); padding-top: 56px; }
.footer-grid { display: grid; gap: 40px; }
.footer-logo { display: inline-block; border-radius: 8px; }
.footer-logo img { width: 200px; height: auto; }
.footer-brand p { margin-top: 1rem; max-width: 22rem; color: var(--praxia-muted); font-size: .9375rem; }
.footer-meaning { font-size: .875rem; }
.footer-meaning em { font-style: italic; font-weight: 700; color: var(--praxia-deep); }
.footer-login { font-size: .9375rem; }
.footer-login a { font-weight: 700; }
.footer-nav { display: grid; gap: 28px 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-title { margin-bottom: .8rem; font-size: .8125rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--praxia-deep); }
.footer-col ul { list-style: none; display: grid; gap: 2px; }
.footer-col a { display: inline-flex; align-items: center; min-height: 36px; color: var(--praxia-muted); font-size: .9375rem; text-decoration: none; }
.footer-col a:hover { color: var(--praxia-deep); text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  margin-top: 48px; padding-block: 22px 28px; border-top: 1px solid var(--praxia-line-soft); font-size: .875rem; color: var(--praxia-muted);
}
.footer-bottom p { margin: 0; }
.footer-legal { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 36px; color: var(--praxia-muted); }
.footer-legal a:hover { color: var(--praxia-deep); }
@media (min-width: 760px) { .footer-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; } }

/* --- Páginas legales (marcadores) ------------------------------------- */
.legal-hero { background: var(--praxia-cream); padding-block: 56px 48px; }
.legal-hero h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); font-weight: 800; letter-spacing: -.03em; }
.legal-status {
  display: flex; gap: 14px; align-items: flex-start; margin-top: 1.5rem; padding: 18px 20px; border-radius: 16px;
  background: var(--white); border: 1.5px dashed rgba(40, 42, 110, .3);
}
.legal-status .icon { flex: none; margin-top: 2px; color: var(--praxia-green); }
.legal-status strong { display: block; color: var(--praxia-deep); }
.legal-status p { margin: .2rem 0 0; color: var(--praxia-muted); }
.legal-body { padding-block: 48px 72px; }
.legal-body h2 { font-size: 1.375rem; font-weight: 700; margin-bottom: .8rem; }
.legal-body p { color: var(--praxia-muted); }
.legal-list { list-style: none; display: grid; gap: 12px; margin: 1.25rem 0 1.5rem; }
.legal-list li { display: flex; gap: 12px; align-items: flex-start; }
.legal-list .icon { margin-top: 3px; color: var(--praxia-green); }
.legal-list strong { color: var(--praxia-deep); }
.legal-actions { margin-top: 1.75rem; }

/* --- Aparición progresiva (solo con JS y sin "reducir movimiento") ---- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .2, 1); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .reveal-stagger > .reveal:nth-child(2) { transition-delay: .06s; }
  .js .reveal-stagger > .reveal:nth-child(3) { transition-delay: .12s; }
  .js .reveal-stagger > .reveal:nth-child(4) { transition-delay: .18s; }
  .js .reveal-stagger > .reveal:nth-child(5) { transition-delay: .24s; }
  .js .reveal-stagger > .reveal:nth-child(6) { transition-delay: .30s; }
  .js .reveal-stagger > .reveal:nth-child(7) { transition-delay: .36s; }
  .js .reveal-stagger > .reveal:nth-child(8) { transition-delay: .42s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  .site-header, .nav-toggle, .skip-link { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* --- Demo: capturas reales de la plataforma ---------------------------
   Imágenes en static/public/img/capturas/ (scripts/capturas/capturar.py). Captura principal junto al
   texto y dos secundarias debajo: apiladas en el teléfono, en dos columnas desde 640 px. */
.screen-body picture { display: block; }
.screen-frame .mk-address { max-width: 340px; }
.demo-shots { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 48px; }
.demo-shots .screen-window { box-shadow: 0 22px 54px rgba(0, 0, 0, .24); }
.demo .screen-frame figcaption { text-wrap: balance; }
.demo-shots-note {
  position: relative; margin: 36px 0 0; font-size: .875rem; font-weight: 600; line-height: 1.5;
  color: var(--praxia-muted-on-dark); text-align: center; text-wrap: balance;
}
.demo-shots-note .icon { width: 18px; height: 18px; margin-right: 6px; vertical-align: -4px; color: var(--praxia-sand); }
@media (min-width: 640px) { .demo-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 1024px) { .demo-shots { gap: 32px; margin-top: 64px; } }

/* --- Formulario para profesionales de la salud (/formulario/) ----------
   Bloques numerados, opciones en píldoras y escala del 1 al 5 por función. */
.formulario-intro { margin-top: 1rem; font-size: 1.125rem; color: var(--praxia-muted); max-width: 40rem; }
.page-formulario fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.bloque { padding-block: 8px 28px; }
.bloque + .bloque { border-top: 1px solid var(--praxia-line-soft); padding-top: 32px; margin-top: 8px; }
.bloque > legend + * { clear: both; }
/* La leyenda flota para no montarse sobre el borde superior del bloque. */
.bloque > legend { float: left; width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 1.25rem; font-weight: 700; color: var(--praxia-deep); }
.bloque-n {
  display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--praxia-deep); color: var(--white); font-size: .9375rem;
}
.opcional { font-size: .8125rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--praxia-cream); color: var(--praxia-muted); }
.field-opciones legend { margin-bottom: 4px; }
.opciones, .escala-opciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.opcion {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 999px;
  border: 1.5px solid var(--praxia-field-line); background: var(--white); font-size: .9375rem; font-weight: 500;
  color: var(--praxia-ink); cursor: pointer;
}
.field .opcion input { width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; accent-color: var(--praxia-deep); }
.opcion:has(input:checked) { border-color: var(--praxia-deep); background: var(--praxia-surface); }
.opcion:has(input:focus-visible) { outline: 3px solid var(--praxia-green); outline-offset: 2px; }
.escala { display: grid; gap: 14px; margin-top: 6px; }
.escala-fila { padding: 12px 14px; border-radius: 12px; background: var(--praxia-surface); }
.escala-fila legend { float: left; width: 100%; margin-bottom: 6px; font-size: .9375rem; font-weight: 600; color: var(--praxia-ink); }
.escala-opciones { clear: both; }
.escala-opciones .opcion { padding: 8px 12px; }
.consentimiento-texto {
  max-height: 22rem; overflow-y: auto; margin: 14px 0 22px; padding: 18px 20px; border-radius: 12px;
  border: 1px solid var(--praxia-line-soft); background: var(--praxia-surface); font-size: .9375rem;
}
.consentimiento-texto h3 { font-size: 1.0625rem; margin-bottom: .6rem; }
.consentimiento-texto h4 { font-size: .9375rem; margin: 1rem 0 .3rem; color: var(--praxia-deep); }
.consentimiento-texto p { margin: 0 0 .5rem; }
.consentimiento-responsable { margin-top: 1rem !important; padding-top: .8rem; border-top: 1px solid var(--praxia-line-soft); }
.casillas-titulo { font-size: 1rem; color: var(--praxia-deep); }
.page-formulario .form-success h2 { font-size: 1.375rem; }
