/* ==========================================================================
   Plexo — sistema visual
   Mood: consultorio al atardecer. La fotografía pone la calidez;
   la interfaz pone precisión (blanco, tinta índigo, un solo violeta).
   ========================================================================== */

:root {
  /* Color */
  --white: #ffffff;
  --ink: #12122b;          /* texto principal, derivado del índigo del logo */
  --ink-2: #474761;        /* texto secundario */
  --ink-3: #75758c;        /* metadatos */
  --line: #e7e7ef;
  --surface: #f4f4f9;      /* lavanda del ícono de app */
  --navy: #1e1e57;         /* logo */
  --violet: #6d4ffd;       /* acento único */
  --violet-soft: #ece8ff;
  --night: #0b0b1d;        /* secciones oscuras */
  --night-2: #15152e;
  --warn: #c2410c;
  --ok: #15803d;

  /* Tipografía */
  --font-sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --text-display: clamp(44px, 6.2vw, 90px);
  --text-h2: clamp(36px, 4.6vw, 64px);
  --text-h3: clamp(26px, 2.4vw, 34px);
  --text-lead: clamp(19px, 1.5vw, 22px);
  --text-body: 17px;
  --text-small: 15px;
  --text-label: 12px;

  /* Espacio */
  --gutter: clamp(20px, 4vw, 48px);
  --container: 1320px;
  --section: clamp(96px, 12vw, 176px);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --logo-ink: var(--navy);
  --logo-accent: var(--violet);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }

::selection { background: var(--violet); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.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;
}

/* ---------- Tipografía utilitaria ---------- */

.label {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.label--violet { color: var(--violet); }

.h2 {
  font-size: var(--text-h2);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-wrap: balance;
}
.h3 {
  font-size: var(--text-h3);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 700;
  text-wrap: balance;
}
.lead {
  font-size: var(--text-lead);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}
.muted { color: var(--ink-3); }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out), transform 0.16s var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease-out); }

.btn--primary { background: var(--ink); color: var(--white); }
.btn--violet { background: var(--violet); color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--ghost-light { color: var(--white); border: 1px solid rgba(255, 255, 255, 0.35); }
.btn--ghost { color: var(--ink); border: 1px solid var(--line); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 15px; }

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--navy); }
  .btn--violet:hover { background: #5b3df0; }
  .btn--light:hover { background: #ececf4; }
  .btn--ghost-light:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }
  .btn--ghost:hover { border-color: var(--ink); }
  .btn:hover svg { transform: translateX(3px); }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.link-arrow svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover svg { transform: translateX(3px); }
}

/* ==========================================================================
   Navegación
   ========================================================================== */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: var(--white);
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out);
  --logo-ink: var(--white);
}
.nav.is-solid,
.nav.nav--light,
.nav.is-open,
.nav.has-dropdown {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  --logo-ink: var(--navy);
}
.nav__inner {
  display: flex;
  align-items: center;
  height: 76px;
  gap: 40px;
}
.nav__logo { flex-shrink: 0; display: flex; align-items: center; }
.nav__logo svg { height: 30px; width: auto; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav__item { position: relative; }
.nav__trigger,
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.2s var(--ease-out);
}
.nav__trigger svg { width: 10px; height: 10px; opacity: 0.7; transition: transform 0.25s var(--ease-out); }
.nav__item.is-open .nav__trigger svg { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) {
  .nav__trigger:hover,
  .nav__link:hover { background: rgba(127, 127, 160, 0.14); }
}
.nav__item.is-open .nav__trigger { background: rgba(127, 127, 160, 0.14); }
.nav__link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--violet); border-radius: 0; }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav__login { font-size: 15px; font-weight: 500; padding: 0 12px; }
.nav.is-solid .btn--nav,
.nav.nav--light .btn--nav,
.nav.is-open .btn--nav,
.nav.has-dropdown .btn--nav { background: var(--ink); color: var(--white); }
.btn--nav { background: var(--white); color: var(--ink); }

/* Selector de idioma */
.lang {
  position: relative;
}
.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 999px;
}
.lang__btn svg { width: 16px; height: 16px; }
.lang__list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  padding: 6px;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px -12px rgba(18, 18, 43, 0.22);
  opacity: 0;
  transform: translateY(-4px) scale(0.98);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 0.18s var(--ease-out), transform 0.18s var(--ease-out);
}
.lang.is-open .lang__list { opacity: 1; transform: none; pointer-events: auto; }
.lang__list button {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 15px;
}
.lang__list button[aria-current="true"] { color: var(--violet); font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .lang__list button:hover { background: var(--surface); }
}

/* Paneles desplegables (mega menú) */
.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: -12px;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -20px rgba(18, 18, 43, 0.28);
  opacity: 0;
  transform: translateY(-6px) scale(0.985);
  transform-origin: top left;
  pointer-events: none;
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.dropdown::before {
  /* puente invisible para no perder el hover */
  content: "";
  position: absolute;
  inset: -16px 0 auto 0;
  height: 16px;
}
.nav__item.is-open .dropdown { opacity: 1; transform: none; pointer-events: auto; }

.dropdown--inst {
  width: 640px;
  display: grid;
  grid-template-columns: 1fr 220px;
  padding: 10px;
  gap: 10px;
}
.dd-inst-list { padding: 8px; display: grid; gap: 2px; }
.dd-inst-list a {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 2px 14px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
}
.dd-inst-list a > span:first-child {
  grid-row: span 2;
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--navy);
}
.dd-inst-list svg { width: 18px; height: 18px; }
.dd-inst-list strong { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.dd-inst-list em { font-style: normal; font-size: 13px; color: var(--ink-3); line-height: 1.35; }
@media (hover: hover) and (pointer: fine) {
  .dd-inst-list a:hover { background: var(--surface); }
}
.dd-inst-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 260px;
  color: var(--white);
  display: flex;
  align-items: flex-end;
  padding: 18px;
}
.dd-inst-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.dd-inst-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11, 11, 29, 0.85), rgba(11, 11, 29, 0) 60%);
}
.dd-inst-card p { position: relative; z-index: 1; font-size: 14px; line-height: 1.4; font-weight: 500; }

.dropdown--simple {
  width: 260px;
  padding: 8px;
}
.dropdown--simple a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 15px;
}
.dropdown--simple a em { display: block; font-style: normal; font-size: 13px; color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) {
  .dropdown--simple a:hover { background: var(--surface); }
}

/* Botón de menú móvil */
.nav__burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 999px;
  align-items: center; justify-content: center;
}
.nav__burger span {
  position: relative;
  width: 18px; height: 1.5px;
  background: currentColor;
  transition: background-color 0.2s;
}
.nav__burger span::before,
.nav__burger span::after {
  content: "";
  position: absolute; left: 0;
  width: 18px; height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out);
}
.nav__burger span::before { transform: translateY(-6px); }
.nav__burger span::after { transform: translateY(6px); }
.nav.is-open .nav__burger span { background: transparent; }
.nav.is-open .nav__burger span::before { transform: rotate(45deg); }
.nav.is-open .nav__burger span::after { transform: rotate(-45deg); }

/* Menú móvil */
.mobile-menu {
  display: none;
}

@media (max-width: 1080px) {
  .nav__menu,
  .nav__login,
  .nav .lang { display: none; }
  .nav__burger { display: inline-flex; }
  .nav__actions { margin-left: auto; }

  .mobile-menu {
    display: block;
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--white);
    color: var(--ink);
    overflow-y: auto;
    padding: 8px var(--gutter) 40px;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
    z-index: 49;
  }
  .nav.is-open + .mobile-menu { opacity: 1; transform: none; pointer-events: auto; }
  .mobile-menu details { border-bottom: 1px solid var(--line); }
  .mobile-menu summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
    cursor: pointer;
  }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary svg { width: 12px; height: 12px; transition: transform 0.25s var(--ease-out); }
  .mobile-menu details[open] summary svg { transform: rotate(180deg); }
  .mobile-menu .mm-group { padding: 0 0 20px; display: grid; gap: 4px; }
  .mobile-menu .mm-group h4 { margin: 12px 0 4px; }
  .mobile-menu .mm-group a { padding: 8px 0; font-size: 16px; color: var(--ink-2); }
  .mobile-menu > a {
    display: block;
    padding: 20px 0;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
    border-bottom: 1px solid var(--line);
  }
  .mobile-menu .mm-foot { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
  .mobile-menu .mm-lang { display: flex; gap: 6px; margin-top: 28px; }
  .mobile-menu .mm-lang button {
    font-family: var(--font-mono);
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
  }
  .mobile-menu .mm-lang button[aria-current="true"] { border-color: var(--ink); }
}

@media (max-width: 560px) {
  .btn--nav { display: none; }
}

/* ==========================================================================
   Foto viva (WebGL con mapa de profundidad) + grano de película
   ========================================================================== */

.living {
  position: relative;
  overflow: hidden;
  background: var(--night);
}
.living > img,
.living > canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.living > canvas { opacity: 0; transition: opacity 0.8s var(--ease-out); }
.living.is-live > canvas { opacity: 1; }
.living > img {
  /* respaldo sin WebGL: mismo encuadre que el canvas y respiración lenta */
  transform: scale(1.075);
  animation: breathe 24s var(--ease-in-out) 3s infinite alternate;
}
.living.is-live > img { animation: none; }
@keyframes breathe {
  from { transform: scale(1.075) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.2%, -0.6%, 0); }
}

.grain::after {
  content: "";
  position: absolute;
  inset: -50%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.09;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 1.4 -0.2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.9s steps(6) infinite;
  mix-blend-mode: overlay;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  color: var(--white);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
@supports (min-height: 100svh) {
  .hero { min-height: max(100svh, 680px); }
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__media .living { position: absolute; inset: 0; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 8, 22, 0.78) 0%, rgba(8, 8, 22, 0.45) 38%, rgba(8, 8, 22, 0) 64%),
    linear-gradient(0deg, rgba(8, 8, 22, 0.7) 0%, rgba(8, 8, 22, 0) 45%),
    linear-gradient(180deg, rgba(8, 8, 22, 0.45) 0%, rgba(8, 8, 22, 0) 22%);
}
.hero__inner {
  padding-top: 140px;
  padding-bottom: clamp(48px, 7vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
}
.hero__title {
  font-size: var(--text-display);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 700;
  max-width: 15ch;
  text-wrap: balance;
}
.hero__lead {
  margin-top: 28px;
  max-width: 34rem;
  font-size: var(--text-lead);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  text-wrap: pretty;
}
.hero__ctas {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero__caption {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero__caption i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ff5a4f;
  box-shadow: 0 0 0 0 rgba(255, 90, 79, 0.6);
  animation: rec 2s var(--ease-out) infinite;
}
@keyframes rec {
  0% { box-shadow: 0 0 0 0 rgba(255, 90, 79, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(255, 90, 79, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 79, 0); }
}

@media (max-width: 760px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__caption { display: none; }
  .hero__media::before {
    background:
      linear-gradient(0deg, rgba(8, 8, 22, 0.92) 0%, rgba(8, 8, 22, 0.55) 50%, rgba(8, 8, 22, 0.15) 100%);
  }
  .hero .living > img,
  .hero .living > canvas { object-position: 62% 50%; }
}

/* ==========================================================================
   Manifiesto
   ========================================================================== */

.manifesto {
  padding: var(--section) 0 calc(var(--section) * 0.7);
}
.manifesto__grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px;
}
.manifesto__text {
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 600;
  text-wrap: balance;
  max-width: 22ch;
}
.manifesto__text span { color: var(--ink-3); }
.manifesto__sub {
  margin-top: 40px;
  max-width: 36rem;
  font-size: var(--text-lead);
  line-height: 1.55;
  color: var(--ink-2);
}
@media (max-width: 860px) {
  .manifesto__grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ==========================================================================
   Agentes
   ========================================================================== */

.agents { padding: 0 0 clamp(56px, 6vw, 80px); }
.agents + .inst { padding-top: clamp(32px, 3.5vw, 48px); }
.section-head {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 40px;
  align-items: end;
  padding-bottom: clamp(48px, 6vw, 88px);
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.section-head .label { align-self: start; }
.section-head .lead { max-width: 30rem; }
.section-head--nohead { align-items: start; }
.section-head--nohead .lead { grid-column: 2 / -1; max-width: 40rem; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.45; color: var(--ink); }
@media (max-width: 980px) {
  .section-head { grid-template-columns: 1fr; gap: 18px; }
}

.agent {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.agent + .agent { margin-top: clamp(96px, 11vw, 160px); }
.agent--flip .agent__media { order: 2; }

.agent__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.agent__media > img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.6s var(--ease-out);
}
.agent__media.is-in > img { transform: scale(1); }
.ask-float {
  position: absolute;
  left: 6%; right: 6%; bottom: 6%;
  border-radius: 18px;
  background: rgba(252, 252, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -24px rgba(8, 8, 22, 0.55);
  color: var(--ink);
  font-size: 14px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease-out) 0.4s, transform 0.6s var(--ease-out) 0.4s;
}
.agent__media.is-in .ask-float { opacity: 1; transform: none; }
.ask-float .pcard-ask__msg--ai { min-height: 0; }
/* La tarjeta aparece y se va sobre la foto, en bucle */
.agent__media.is-in .ask-float--cycle { animation: ask-cycle 12s var(--ease-out) 1.5s infinite both; }
@keyframes ask-cycle {
  0% { opacity: 0; transform: translateY(14px); }
  8%, 62% { opacity: 1; transform: none; }
  70%, 100% { opacity: 0; transform: translateY(14px); }
}
@media (prefers-reduced-motion: reduce) { .agent__media.is-in .ask-float--cycle { animation: none; opacity: 1; transform: none; } }
@media (max-width: 600px) { .ask-float { left: 4%; right: 4%; bottom: 4%; font-size: 13px; } }

.agent__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.agent__tag-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--violet-soft);
  color: var(--violet);
  display: grid; place-items: center;
}
.agent__tag-icon svg { width: 20px; height: 20px; }
.agent__tag strong { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.agent__tag .label { margin-left: 4px; }

.agent__body .h3 { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.04; letter-spacing: -0.035em; max-width: 17ch; }
.agent__body .lead { margin-top: 22px; max-width: 30rem; }

.checklist {
  margin-top: 32px;
  display: grid;
  border-top: 1px solid var(--line);
  max-width: 32rem;
}
.checklist li {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: start;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
}
.checklist svg { width: 16px; height: 16px; margin-top: 3px; color: var(--violet); }
.agent__body .link-arrow { margin-top: 32px; }

/* Tarjetas de interfaz flotantes sobre la foto */
.ui-card {
  position: absolute;
  z-index: 3;
  width: min(340px, 78%);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(18, 18, 43, 0.06), 0 30px 60px -18px rgba(8, 8, 22, 0.45);
  padding: 18px 18px 16px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease-out) 0.35s, transform 0.8s var(--ease-out) 0.35s;
}
.is-in .ui-card { opacity: 1; transform: none; }
.ui-card--br { right: 20px; bottom: 20px; }
.ui-card--bl { left: 20px; bottom: 20px; }

.ui-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.ui-card__title { font-weight: 600; font-size: 14px; letter-spacing: -0.005em; }
.ui-card__meta { white-space: nowrap; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }

.rec-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--violet);
}
.wave { display: inline-flex; align-items: center; gap: 2px; height: 14px; }
.wave i {
  width: 2px; height: 100%;
  background: var(--violet);
  border-radius: 2px;
  animation: wave 1.1s var(--ease-in-out) infinite;
  transform-origin: center;
}
.wave i:nth-child(2) { animation-delay: -0.9s; }
.wave i:nth-child(3) { animation-delay: -0.6s; }
.wave i:nth-child(4) { animation-delay: -0.3s; }
.wave i:nth-child(5) { animation-delay: -0.75s; }
@keyframes wave {
  0%, 100% { transform: scaleY(0.25); }
  50% { transform: scaleY(1); }
}

.note-field { margin-top: 10px; }
.note-field:first-of-type { margin-top: 0; }
.note-field dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 2px;
}
.note-field dd { margin: 0; color: var(--ink); }
.note-field dd .typing::after {
  content: "";
  display: inline-block;
  width: 1.5px; height: 1em;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--violet);
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.code-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  margin-right: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-2);
}

.claim-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: start;
  padding: 7px 0;
}
.claim-row svg { width: 16px; height: 16px; margin-top: 2px; }
.claim-row.ok svg { color: var(--ok); }
.claim-row.warn svg { color: var(--warn); }
.claim-row.warn span strong { color: var(--warn); font-weight: 600; }
.ui-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.ui-card__foot .mini-btn {
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
}

@media (max-width: 900px) {
  .agent { grid-template-columns: 1fr; }
  .agent--flip .agent__media { order: 0; }
  .agent__media { aspect-ratio: 4 / 4.4; }
}

/* ==========================================================================
   La capa (sección oscura)
   ========================================================================== */

.layer {
  position: relative;
  background: var(--night);
  color: var(--white);
  padding: var(--section) 0;
  overflow: hidden;
}
.layer .label { color: rgba(255, 255, 255, 0.55); }
.layer__head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: end;
}
.layer__head .h2 { max-width: 14ch; margin-top: 20px; }
.layer__head p:not(.label) {
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--text-lead);
  line-height: 1.55;
  max-width: 30rem;
}

.flow {
  position: relative;
  margin-top: clamp(64px, 8vw, 112px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.flow__line {
  position: absolute;
  left: 0; right: 0;
  top: 27px;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.flow__line::after {
  content: "";
  position: absolute;
  top: 0; left: -30%;
  width: 30%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet), #b8a8ff, transparent);
  animation: pulse-line 4.5s var(--ease-in-out) infinite;
}
@keyframes pulse-line {
  from { left: -30%; }
  to { left: 100%; }
}
.flow__step { position: relative; padding-right: 24px; }
.flow__node {
  position: relative;
  width: 55px; height: 55px;
  border-radius: 50%;
  background: var(--night);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid; place-items: center;
  color: rgba(255, 255, 255, 0.9);
}
.flow__node svg { width: 22px; height: 22px; }
.flow__step--agent .flow__node {
  border-color: var(--violet);
  background: #1a1440;
  color: #c9bdff;
  box-shadow: 0 0 0 6px rgba(109, 79, 253, 0.12);
}
.flow__step h4 {
  margin-top: 26px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.flow__step p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
  max-width: 15rem;
}
.flow__by {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b8a8ff;
}
.flow__by--human { color: rgba(255, 255, 255, 0.45); }

@media (max-width: 980px) {
  .layer__head { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; gap: 36px; }
  .flow__line { left: 27px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .flow__line::after { left: 0; top: -30%; width: 1px; height: 30%; background: linear-gradient(180deg, transparent, var(--violet), transparent); animation-name: pulse-line-v; }
  .flow__step { display: grid; grid-template-columns: 55px 1fr; column-gap: 22px; }
  .flow__step h4 { margin-top: 4px; }
  .flow__step > :not(.flow__node) { grid-column: 2; }
  .flow__node { grid-row: span 3; }
}
@keyframes pulse-line-v {
  from { top: -30%; }
  to { top: 100%; }
}

/* ==========================================================================
   Instituciones
   ========================================================================== */

.inst { padding: var(--section) 0; }
.inst__tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.inst__tab {
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  transition: all 0.2s var(--ease-out);
}
.inst__tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
@media (hover: hover) and (pointer: fine) {
  .inst__tab:not([aria-selected="true"]):hover { border-color: var(--ink-3); color: var(--ink); }
}

.inst__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  min-height: 540px;
}
.inst__panel[hidden] { display: none; }
.inst__img { position: relative; overflow: hidden; }
.inst__img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  animation: inst-in 0.9s var(--ease-out);
}
@keyframes inst-in {
  from { opacity: 0; transform: scale(1.04); }
  to { opacity: 1; transform: none; }
}
.inst__body {
  padding: clamp(32px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  animation: fade-up 0.6s var(--ease-out);
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.inst__body .h3 { margin-top: 16px; max-width: 16ch; }
.inst__body > p:not(.label) { margin-top: 18px; color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.inst__points { margin-top: auto; padding-top: 32px; display: grid; gap: 0; }
.inst__points li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(18, 18, 43, 0.1);
  font-size: 15px;
  line-height: 1.45;
}
.inst__points li { grid-template-columns: 172px 1fr; }
.inst__prod { display: inline-flex; align-items: center; gap: 8px; align-self: start; }
.inst__prod img { width: 22px; height: 22px; padding: 4px; border-radius: 7px; background: var(--white); box-shadow: 0 0 0 1px var(--line); flex: none; }
.inst__prod b { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; }
@media (max-width: 900px) {
  .inst__panel { grid-template-columns: 1fr; }
  .inst__img { aspect-ratio: 16 / 10; }
  .inst__points li { grid-template-columns: 1fr; gap: 4px; }
}

/* ==========================================================================
   Voces (testimonios en video)
   ========================================================================== */

.voices[hidden] { display: none; }
.voices {
  background: var(--night);
  color: var(--white);
  padding: var(--section) 0;
}
.voices .label { color: rgba(255, 255, 255, 0.55); }
.voices__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.voices__head .h2 { margin-top: 20px; max-width: 13ch; }
.voices__head p:not(.label) { color: rgba(255, 255, 255, 0.65); max-width: 26rem; font-size: 17px; }

.voices__grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 16px;
}
.voice {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  isolation: isolate;
}
.voice:first-child { aspect-ratio: auto; }
.voice .living { position: absolute; inset: 0; }
.voice::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 3;
  background: linear-gradient(0deg, rgba(8, 8, 22, 0.9) 0%, rgba(8, 8, 22, 0.25) 45%, rgba(8, 8, 22, 0) 70%);
  pointer-events: none;
}
.voice__play {
  position: absolute;
  top: 18px; left: 18px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 16px 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  transition: background-color 0.2s var(--ease-out);
}
.voice__play span:first-child {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  display: grid; place-items: center;
}
.voice__play svg { width: 10px; height: 10px; margin-left: 1px; }
@media (hover: hover) and (pointer: fine) {
  .voice__play:hover { background: rgba(255, 255, 255, 0.24); }
}
.voice__body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 4;
  padding: 24px;
}
.voice__quote {
  font-size: 19px;
  line-height: 1.38;
  font-weight: 500;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}
.voice:first-child .voice__quote { font-size: clamp(21px, 1.8vw, 25px); letter-spacing: -0.02em; max-width: 26ch; }
.voice__who {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.66);
}
.voice__who strong { color: var(--white); font-weight: 600; display: block; }
.voice video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 5;
}

@media (max-width: 980px) {
  .voices__head { flex-direction: column; align-items: start; }
  .voices__grid { grid-template-columns: 1fr 1fr; }
  .voice:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 11; }
}
@media (max-width: 620px) {
  .voices__grid { grid-template-columns: 1fr; }
  .voice:first-child { aspect-ratio: 4 / 5; }
}

/* ==========================================================================
   Confianza
   ========================================================================== */

.trust { padding: var(--section) 0; }
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.trust__item {
  padding: 32px 28px 8px 0;
}
.trust__item + .trust__item { padding-left: 28px; border-left: 1px solid var(--line); }
.trust__item svg { width: 24px; height: 24px; color: var(--navy); }
.trust__item h4 { margin-top: 28px; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.trust__item p { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 980px) {
  .trust__grid { grid-template-columns: 1fr 1fr; }
  .trust__item:nth-child(3) { padding-left: 0; border-left: 0; }
  .trust__item:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .trust__grid { grid-template-columns: 1fr; }
  .trust__item + .trust__item { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

.integrations {
  margin-top: clamp(64px, 8vw, 104px);
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.integrations p:not(.label) { font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 40rem; }
.integrations p strong { color: var(--ink); font-weight: 600; }
.int-modes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.int-modes span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-2);
}
@media (max-width: 860px) {
  .integrations { grid-template-columns: 1fr; gap: 12px; padding: 24px; }
}

/* ==========================================================================
   CTA final
   ========================================================================== */

.cta {
  position: relative;
  color: var(--white);
  isolation: isolate;
  min-height: 640px;
  display: flex;
  align-items: center;
}
.cta .living { position: absolute; inset: 0; z-index: -1; }
.cta .living::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(8, 8, 22, 0.82), rgba(8, 8, 22, 0.35) 70%), linear-gradient(0deg, rgba(8, 8, 22, 0.4), transparent 40%);
}
.cta__inner { padding-top: 120px; padding-bottom: 120px; }
.cta .h2 { max-width: 13ch; font-size: clamp(44px, 6vw, 88px); line-height: 0.98; letter-spacing: -0.045em; }
.cta p { margin-top: 24px; max-width: 30rem; font-size: var(--text-lead); color: rgba(255, 255, 255, 0.78); }
.cta .hero__ctas { margin-top: 36px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--white);
  padding: 88px 0 40px;
  font-size: 15px;
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.footer__brand svg { height: 34px; width: auto; }
.footer__brand p { margin-top: 20px; color: var(--ink-2); max-width: 18rem; line-height: 1.55; }
.footer h5 {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.footer__col a { display: block; padding: 5px 0; color: var(--ink-2); transition: color 0.2s; }
@media (hover: hover) and (pointer: fine) {
  .footer__col a:hover { color: var(--ink); }
}
.footer__bottom {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink-3);
  font-size: 14px;
  flex-wrap: wrap;
}
.footer__bottom .mm-lang { display: flex; gap: 14px; }
.footer__bottom .mm-lang button { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); }
.footer__bottom .mm-lang button[aria-current="true"] { color: var(--ink); }
@media (max-width: 980px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ==========================================================================
   Aparición al hacer scroll
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }

.hero [data-rise],
.sec-hero [data-rise] {
  opacity: 0;
  transform: translateY(24px);
  animation: rise 1.1s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal], .hero [data-rise], .sec-hero [data-rise], .audit__row { opacity: 1; transform: none; }
  .grain::after { display: none; }
}

@media (max-width: 560px) {
  .ui-card { width: auto; left: 14px; right: 14px; bottom: 14px; padding: 14px; font-size: 13px; }
  .ui-card .note-field:nth-child(2) { display: none; }
  .ui-card .claim-row:nth-of-type(3) { display: none; }
}

/* ==========================================================================
   On-premise (tarjeta en el home y sección en /seguridad)
   ========================================================================== */

.onprem-card {
  margin-top: clamp(56px, 7vw, 88px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--night);
  color: var(--white);
  min-height: 420px;
}
.onprem-card__body {
  padding: clamp(32px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.onprem-card .label { color: #b8a8ff; }
.onprem-card .h3 { margin-top: 16px; max-width: 16ch; }
.onprem-card__body > p:not(.label) {
  margin-top: 18px;
  max-width: 30rem;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.74);
}
.onprem-card .hero__ctas { margin-top: 32px; }
.onprem-card__img { position: relative; overflow: hidden; }
.onprem-card__img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 75% 45%;
}
.onprem-card__img::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, var(--night) 0%, rgba(11, 11, 29, 0) 35%);
}
@media (max-width: 900px) {
  .onprem-card { grid-template-columns: 1fr; }
  .onprem-card__img { aspect-ratio: 16 / 10; order: -1; }
  .onprem-card__img::before { background: linear-gradient(0deg, var(--night) 0%, rgba(11, 11, 29, 0) 40%); }
}

/* ==========================================================================
   Página de seguridad
   ========================================================================== */

.sec-page .s-sec { padding-top: clamp(72px, 8vw, 112px); scroll-margin-top: 140px; }
.sec-page .s-sec:last-child { padding-bottom: clamp(72px, 8vw, 112px); }

.s-h2 {
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
  max-width: 20ch;
}
.label + .s-h2 { margin-top: 14px; }

/* Documento de seguridad */
.lg-hero { padding: calc(76px + clamp(48px, 6vw, 88px)) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.lg-hero h1 { margin-top: 18px; font-size: clamp(36px, 4vw, 56px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; max-width: 18ch; text-wrap: balance; }
.lg-hero__lead { margin-top: 20px; max-width: 36rem; font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.lg-hero__meta { margin-top: 24px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-3); }
.lg { padding: clamp(48px, 6vw, 80px) 0 clamp(72px, 8vw, 112px); }
.lg__grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.lg__toc { position: sticky; top: 108px; }
.lg__toc ol { list-style: none; margin: 14px 0 0; padding: 0; counter-reset: toc; border-left: 1px solid var(--line); }
.lg__toc li { counter-increment: toc; }
.lg__toc a { display: block; margin-left: -1px; padding: 7px 0 7px 16px; border-left: 1px solid transparent; font-size: 14px; line-height: 1.4; color: var(--ink-3); }
.lg__toc a::before { content: counter(toc, decimal-leading-zero); margin-right: 10px; font-family: var(--font-mono); font-size: 11px; }
.lg__toc a[aria-current="true"] { color: var(--ink); border-left-color: var(--violet); }
@media (hover: hover) and (pointer: fine) { .lg__toc a:hover { color: var(--ink); } }
.lg__doc { max-width: 46rem; }
.lg-sec { padding: 36px 0; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.lg-sec:first-child { padding-top: 0; border-top: 0; }
.lg-sec h2 { display: flex; align-items: baseline; gap: 14px; font-size: 22px; line-height: 1.3; letter-spacing: -0.02em; font-weight: 600; }
.lg-sec__n { font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.04em; color: var(--violet); }
.lg-sec p, .lg-sec li, .lg-dl dd { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.lg-sec > p { margin-top: 14px; }
.lg-sec ul { margin: 14px 0 0; padding-left: 20px; list-style: disc; display: grid; gap: 8px; }
.lg-sec li::marker { color: var(--ink-3); }
.lg-dl { margin: 14px 0 0; display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px 24px; }
.lg-dl dt { font-size: 15px; font-weight: 600; line-height: 1.7; color: var(--ink); }
.lg-dl dd { margin: 0; }
.lg-table-wrap { margin-top: 18px; overflow-x: auto; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.lg-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.lg-table th { padding: 12px 16px; text-align: left; background: var(--surface); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.lg-table td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.5; color: var(--ink-2); }
.lg-table td:nth-child(2) { white-space: nowrap; font-weight: 600; color: var(--ink); }
.lg-ctas { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.lg-callout { margin-top: 24px; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.lg-callout > div { flex: 1 1 22rem; }
.lg-sec .lg-callout p { font-size: 15px; line-height: 1.55; }
.lg-sec .lg-callout .lg-callout__title { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.lg-callout__title + p { margin-top: 4px; }
/* On-premise: contacto + esquema */
.lg-op { padding-bottom: clamp(72px, 8vw, 112px); }
.lg-op__box {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(32px, 5vw, 64px);
  border-radius: 28px;
  background: var(--night);
  color: var(--white);
}
.lg-op .label { color: #b8a8ff; }
.lg-op__h { margin-top: 14px; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; max-width: 16ch; text-wrap: balance; }
.lg-op__copy > p:not(.label) { margin-top: 16px; max-width: 28rem; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, 0.72); }
.lg-op__copy .btn { margin-top: 28px; }
.opd {
  position: relative;
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 28px;
  padding: clamp(64px, 7vw, 96px) 28px clamp(36px, 4vw, 52px);
  border-radius: 22px;
  border: 1.5px dashed rgba(255, 255, 255, 0.28);
}
.opd__net { position: absolute; top: 18px; left: 22px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.opd__flow { display: flex; align-items: center; }
.opd__node {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  font-size: 16px;
  white-space: nowrap;
}
.opd__node b { font-weight: 600; }
.opd__node svg { width: 20px; height: 20px; color: #c9bdff; }
.opd__node--plexo { background: var(--violet); box-shadow: 0 18px 40px -16px rgba(109, 79, 253, 0.7); }
.opd__node--plexo img { width: 32px; height: 32px; padding: 5px; border-radius: 8px; background: var(--white); }
.opd__link { width: 56px; height: 1.5px; background: rgba(201, 189, 255, 0.6); }
.opd__note { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.opd__note svg { width: 14px; height: 14px; color: #7cffb2; }
@media (max-width: 900px) { .lg-op__box { grid-template-columns: 1fr; } }
@media (max-width: 420px) {
  .opd__flow { flex-direction: column; }
  .opd__link { width: 1.5px; height: 24px; }
}
@media (max-width: 900px) {
  .lg__grid { grid-template-columns: 1fr; }
  .lg__toc { position: static; }
  .lg-dl { grid-template-columns: 1fr; gap: 2px; }
  .lg-dl dd + dt { margin-top: 12px; }
}

/* Hero */

.sec-page [data-rise] {
  opacity: 0;
  transform: translateY(20px);
  animation: rise 1s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}

.audit {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(18, 18, 43, 0.25);
  padding: 20px 22px 8px;
}
.audit__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.audit__head strong { font-size: 15px; font-weight: 600; }
.audit__lock {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ok);
}
.audit__lock svg { width: 13px; height: 13px; }
.audit__row {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(6px);
  animation: audit-in 0.6s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}
.audit__row:last-child { border-bottom: 0; }
.audit__row time { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); padding-top: 2px; }
.audit__row strong { font-weight: 600; }
.audit__row span { color: var(--ink-2); }
.audit__row em { font-style: normal; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-3); }
.audit__row--agent strong { color: var(--violet); }
@keyframes audit-in { to { opacity: 1; transform: none; } }

/* Encabezado de sección */
.s-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 36px;
}
.s-head > p { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 30rem; }
.s-head--solo { grid-template-columns: minmax(0, 1fr); }
.s-head--solo .s-h2 { max-width: 22em; }
@media (max-width: 860px) { .s-head { grid-template-columns: 1fr; gap: 14px; } }

/* Tarjetas de protección */
.pcards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.pcard {
  padding: 28px;
  border-radius: 20px;
  background: var(--surface);
}
.pcard__icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 0 0 1px var(--line);
}
.pcard__icon svg { width: 20px; height: 20px; }
.pcard h3 { margin-top: 22px; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.pcard p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
@media (max-width: 980px) { .pcards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pcards { grid-template-columns: 1fr; } }

/* Preguntas */
.s-faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: clamp(32px, 5vw, 72px);
}
.s-faq__note { margin-top: 14px; font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.s-faq__note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.faq__list { border-top: 1px solid var(--line); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary svg { width: 12px; height: 12px; flex-shrink: 0; transition: transform 0.25s var(--ease-out); }
.faq__list details[open] summary svg { transform: rotate(180deg); }
.faq__list details p { padding: 0 0 20px; max-width: 40rem; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
@media (max-width: 860px) { .s-faq { grid-template-columns: 1fr; gap: 20px; } }

/* CTA */
.s-cta {
  padding: clamp(48px, 6vw, 80px) clamp(24px, 4vw, 48px);
  border-radius: 28px;
  background: var(--night);
  color: var(--white);
  text-align: center;
}
.s-cta .s-h2 { margin: 0 auto; }
.s-cta p { margin: 16px auto 0; max-width: 34rem; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, 0.72); }
.s-cta .hero__ctas { justify-content: center; margin-top: 30px; }

/* Seguir leyendo */
.s-more .label { margin-bottom: 16px; }
.more-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.more-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}
.more-card strong { display: block; font-size: 16px; font-weight: 600; }
.more-card em { display: block; margin-top: 4px; font-style: normal; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.more-card svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform 0.25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .more-card:hover { box-shadow: inset 0 0 0 1px var(--ink); }
  .more-card:hover svg { transform: translateX(3px); }
}
@media (max-width: 860px) { .more-cards { grid-template-columns: 1fr; } }

/* Separación con el footer en páginas internas */
.sec-page + .footer { border-top: 1px solid var(--line); padding-top: 72px; }

@media (prefers-reduced-motion: reduce) {
  .sec-page [data-rise], .audit__row { opacity: 1; transform: none; }
}

/* ==========================================================================
   Menú "Casos de uso"
   ========================================================================== */

.dropdown--cases {
  width: 680px;
  display: grid;
  grid-template-columns: 1.15fr 0.9fr;
  gap: 8px;
  padding: 10px;
}
.dd-cases-col { padding: 14px 8px 8px; display: grid; align-content: start; gap: 2px; }
.dd-cases-col > .label { padding: 0 12px 8px; }
.dd-case {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 12px;
  align-items: center;
  padding: 9px 12px;
  border-radius: 12px;
}
.dd-case > span:first-child {
  grid-row: span 2;
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--navy);
}
.dd-case svg { width: 17px; height: 17px; }
.dd-case strong { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.dd-case em { font-style: normal; font-size: 13px; color: var(--ink-3); line-height: 1.35; }
.dd-case--featured > span:first-child { background: var(--violet-soft); border-color: transparent; color: var(--violet); }
@media (hover: hover) and (pointer: fine) {
  .dd-case:hover { background: var(--surface); }
}

.inst__more { margin-top: 24px; align-self: flex-start; }

/* ==========================================================================
   Landing de caso de uso
   ========================================================================== */

.hero--case { min-height: max(86vh, 640px); }
.hero__crumb {
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.hero__crumb a { color: var(--white); border-bottom: 1px solid rgba(255, 255, 255, 0.4); }
.hero__crumb span { margin: 0 6px; opacity: 0.5; }

.case-page .case-sec { padding-top: clamp(80px, 9vw, 128px); scroll-margin-top: 90px; }
.case-page .case-sec:last-child { padding-bottom: clamp(72px, 8vw, 112px); }
.case-page + .footer { border-top: 1px solid var(--line); padding-top: 72px; }

.modalities { border-bottom: 1px solid var(--line); }
.modalities__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 84px;
  flex-wrap: wrap;
  padding-top: 16px;
  padding-bottom: 16px;
}
.modalities ul { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.modalities li { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.modalities li + li::before { content: "·"; margin-right: 28px; color: var(--ink-3); font-weight: 400; }
@media (max-width: 700px) {
  .modalities li + li::before { margin-right: 10px; }
  .modalities ul { gap: 6px 10px; }
}

/* Stepper del informe */
.pipe {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.pipe__steps { display: grid; gap: 8px; }
.pipe__step {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  text-align: left;
  padding: 20px 20px 22px;
  border-radius: 16px;
  overflow: hidden;
  transition: background-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.pipe__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-3);
  padding-top: 2px;
}
.pipe__txt strong { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink-3); transition: color 0.3s; }
.pipe__txt em {
  display: block;
  font-style: normal;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), opacity 0.3s var(--ease-out), margin 0.3s;
}
.pipe__step[aria-selected="true"] { background: var(--surface); }
.pipe__step[aria-selected="true"] .pipe__num { color: var(--violet); }
.pipe__step[aria-selected="true"] strong { color: var(--ink); }
.pipe__step[aria-selected="true"] em { max-height: 80px; opacity: 1; margin-top: 6px; }
.pipe__bar {
  position: absolute;
  left: 20px; right: 20px; bottom: 10px;
  height: 2px;
  border-radius: 2px;
  background: rgba(18, 18, 43, 0.08);
  overflow: hidden;
  opacity: 0;
}
.pipe__bar::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--violet);
  transform: scaleX(0);
  transform-origin: left;
}
.pipe.is-playing .pipe__step[aria-selected="true"] .pipe__bar { opacity: 1; }
.pipe.is-playing .pipe__step[aria-selected="true"] .pipe__bar::after { animation: pipe-progress var(--pipe-dur, 6.5s) linear forwards; }
@keyframes pipe-progress { to { transform: scaleX(1); } }
@media (hover: hover) and (pointer: fine) {
  .pipe__step:not([aria-selected="true"]):hover strong { color: var(--ink); }
}

.pipe__stage {
  position: relative;
  border-radius: 24px;
  padding: clamp(16px, 3vw, 36px);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(109, 79, 253, 0.16), transparent 55%),
    var(--night);
}
.rdoc {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.5);
  padding: 22px 24px 24px;
  min-height: 430px;
  display: grid;
  grid-template-rows: auto 1fr;
}
.rdoc__head {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.rdoc__title { display: block; font-weight: 600; font-size: 15px; }
.rdoc__meta { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-3); }
.rdoc__status {
  display: none;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--violet);
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--violet-soft);
}
.rdoc__status--ok { color: var(--ok); background: #e7f6ec; }
.pipe[data-active="0"] [data-status-0],
.pipe[data-active="1"] [data-status-1],
.pipe[data-active="2"] [data-status-2],
.pipe[data-active="3"] [data-status-3] { display: inline-block; }

.rdoc__panel { grid-area: 2 / 1; opacity: 0; transform: translateY(8px); visibility: hidden; transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out), visibility 0s 0.45s; }
.rdoc__panel.is-active { opacity: 1; transform: none; visibility: visible; transition: opacity 0.45s var(--ease-out) 0.1s, transform 0.45s var(--ease-out) 0.1s, visibility 0s; }

/* 01 dictado */
.dict {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
}
.dict__rec { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: #e5484d; }
.dict__rec i { width: 7px; height: 7px; border-radius: 50%; background: #e5484d; animation: rec 1.6s var(--ease-out) infinite; }
.dict__wave { flex: 1; display: flex; align-items: center; gap: 3px; height: 28px; }
.dict__wave i { flex: 1; height: 100%; max-width: 4px; border-radius: 2px; background: var(--violet); transform-origin: center; animation: wave 1.2s var(--ease-in-out) infinite; }
.dict__wave i:nth-child(3n) { animation-delay: -0.3s; }
.dict__wave i:nth-child(3n+1) { animation-delay: -0.7s; }
.dict__wave i:nth-child(4n) { animation-delay: -0.95s; }
.dict__wave i:nth-child(5n) { animation-delay: -0.5s; }
.dict__time { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.dict__text {
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
}
.dict__text .filler { color: var(--ink-3); font-style: italic; }
.dict__text .w { opacity: 0.12; transition: opacity 0.25s var(--ease-out); }
.dict__text .w.on { opacity: 1; }

/* 02 limpieza */
.clean__text { font-size: 18px; line-height: 1.7; color: var(--ink); }
.clean__text del { color: #c0392b; text-decoration-thickness: 1.5px; opacity: 0.55; }
.clean__text ins { text-decoration: none; background: var(--violet-soft); color: var(--violet); padding: 1px 4px; border-radius: 4px; font-weight: 600; }
.clean__chips { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.clean__chips span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  color: var(--ink-2);
}
.clean__chips svg { width: 12px; height: 12px; color: var(--ok); }

/* 03 validación */
.val { display: grid; gap: 8px; }
.val__row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.5;
  background: var(--surface);
}
.val__row svg { width: 18px; height: 18px; margin-top: 2px; }
.val__row.ok svg { color: var(--ok); }
.val__row.warn { background: #fff4ec; box-shadow: inset 0 0 0 1px #fbd5bd; }
.val__row.warn svg { color: var(--warn); }
.val__actions { display: flex; gap: 8px; margin-top: 10px; }
.val__actions b {
  font-size: 13px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
  background: var(--ink); color: var(--white);
}
.val__actions b.ghost { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.val__note { margin-top: 16px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-3); }

/* 04 informe */
.rep { display: grid; gap: 0; }
.rep > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.rep > div:last-child { border-bottom: 0; }
.rep dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.rep dd { margin: 0; font-size: 15px; line-height: 1.55; }
.rep dd strong { font-weight: 600; }
.rep__foot {
  display: flex; justify-content: flex-end; align-items: center;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-3);
}

@media (max-width: 960px) {
  .pipe { grid-template-columns: 1fr; }
  .pipe__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .pipe__step { grid-template-columns: 1fr; gap: 4px; padding: 14px 12px 18px; }
  .pipe__txt em { display: none; }
  .pipe__txt strong { font-size: 14px; }
  .pipe__bar { left: 12px; right: 12px; bottom: 8px; }
  .rdoc { min-height: 460px; }
}
@media (max-width: 560px) {
  .pipe__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rep > div { grid-template-columns: 1fr; gap: 2px; }
  .dict__text, .clean__text { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .dict__text .w { opacity: 1; }
}
.rep { margin: 0; }
.rep__foot .mini-btn {
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
}
.agent__body > .label { margin-bottom: 16px; }
@media (max-width: 700px) {
  .modalities li + li::before { display: none; }
  .modalities ul { gap: 6px 18px; }
}

/* ==========================================================================
   Preguntas frecuentes (componente compartido)
   ========================================================================== */

:root { interpolate-size: allow-keywords; }

.qa__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.5fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.qa__side { position: sticky; top: 150px; }
.case-page .qa__side { top: 110px; }
.qa__help {
  margin-top: 32px;
  padding: 24px;
  border-radius: 20px;
  background: var(--night);
  color: var(--white);
}
.qa__help strong { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.qa__help p { margin-top: 6px; font-size: 15px; color: rgba(255, 255, 255, 0.7); }
.qa__help .btn { margin-top: 18px; }

.qa__list { display: grid; gap: 10px; }
.qa__item {
  border-radius: 18px;
  background: var(--surface);
  transition: background-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.qa__item[open] {
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px -24px rgba(18, 18, 43, 0.25);
}
.qa__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px 20px 24px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.4;
  border-radius: 18px;
}
.qa__item summary::-webkit-details-marker { display: none; }
.qa__item summary::marker { content: ""; }
.qa__icon {
  position: relative;
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color 0.25s var(--ease-out), transform 0.3s var(--ease-out);
}
.qa__icon::before,
.qa__icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 1.6px;
  margin: -0.8px 0 0 -6px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out), background-color 0.25s;
}
.qa__icon::after { transform: rotate(90deg); }
.qa__item[open] .qa__icon { background: var(--ink); transform: rotate(180deg); }
.qa__item[open] .qa__icon::before,
.qa__item[open] .qa__icon::after { background: var(--white); }
.qa__item[open] .qa__icon::after { transform: rotate(0deg); }
.qa__item::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 0.35s var(--ease-out), content-visibility 0.35s allow-discrete;
}
.qa__item[open]::details-content { block-size: auto; }
.qa__a { padding: 0 72px 22px 24px; }
.qa__a p { font-size: 16px; line-height: 1.65; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) {
  .qa__item:not([open]) summary:hover .qa__icon { background: var(--white); box-shadow: inset 0 0 0 1px var(--ink); }
}
@media (max-width: 860px) {
  .qa__grid { grid-template-columns: 1fr; gap: 24px; }
  .qa__side { position: static; }
  .qa__help { display: none; }
  .qa__a { padding-right: 24px; }
}

/* ==========================================================================
   Partners
   ========================================================================== */

.p-hero { padding: calc(76px + clamp(56px, 7vw, 96px)) 0 clamp(40px, 5vw, 64px); }
.p-hero h1 {
  margin-top: 18px;
  font-size: clamp(40px, 4.8vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 700;
  max-width: 16ch;
  text-wrap: balance;
}
.p-hero__lead { margin-top: 18px; font-size: 19px; color: var(--ink-2); }

.paths {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.path {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 28px 28px 24px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px transparent;
  transition: background-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), transform 0.16s var(--ease-out);
}
.path:active { transform: scale(0.99); }
.path__icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 0 0 1px var(--line);
}
.path__icon svg { width: 22px; height: 22px; }
.path__kicker {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.path strong {
  margin-top: 8px;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
  max-width: 18ch;
}
.path__desc { margin-top: 12px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); max-width: 34rem; }
.path__go {
  margin-top: 24px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600;
}
.path__go svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease-out); }
.path[aria-selected="true"] {
  background: var(--night);
  color: var(--white);
}
.path[aria-selected="true"] .path__icon { background: var(--violet); color: var(--white); box-shadow: none; }
.path[aria-selected="true"] .path__kicker { color: #b8a8ff; }
.path[aria-selected="true"] .path__desc { color: rgba(255, 255, 255, 0.72); }
.path[aria-selected="true"] .path__go svg { transform: rotate(90deg); }
@media (hover: hover) and (pointer: fine) {
  .path:not([aria-selected="true"]):hover { box-shadow: inset 0 0 0 1px var(--ink); }
  .path:not([aria-selected="true"]):hover .path__go svg { transform: translateX(3px); }
}
@media (max-width: 760px) { .paths { grid-template-columns: 1fr; } }

.p-panel { padding-top: clamp(48px, 6vw, 80px); scroll-margin-top: 90px; animation: fade-up 0.5s var(--ease-out); }
.p-panel[hidden] { display: none; }
.p-split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.p-lead { margin-top: 18px; font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 32rem; }
.p-lead + .btn { margin-top: 28px; }
.p-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.p-feat { padding: 24px; border-radius: 20px; background: var(--surface); }
.p-feat__ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--white); color: var(--violet); box-shadow: 0 0 0 1px var(--line); }
.p-feat__ico svg { width: 20px; height: 20px; }
.p-feat p { margin-top: 20px; font-size: 16px; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; color: var(--ink); }
@media (max-width: 560px) { .p-feats { grid-template-columns: 1fr; } }
.p-who-label { margin-top: 24px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.p-who { margin: 12px 0 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.p-who li { padding: 8px 14px; border-radius: 999px; background: var(--surface); font-size: 14.5px; }
.p-photo { border-radius: 24px; overflow: hidden; aspect-ratio: 5 / 4; }
.p-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.p-steps-title { margin-top: clamp(56px, 7vw, 88px); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -0.025em; font-weight: 700; }
.p-steps-title + .esteps { margin-top: 24px; }
@media (max-width: 900px) { .p-split { grid-template-columns: 1fr; } }

/* Ventana "tu sistema" con Plexo integrado */
.ehr {
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px -36px rgba(18, 18, 43, 0.35);
  overflow: hidden;
}
.ehr__bar {
  display: flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.ehr__bar i { width: 9px; height: 9px; border-radius: 50%; background: #d6d6e2; }
.ehr__bar span { margin-left: 10px; font-size: 12.5px; color: var(--ink-3); }
.ehr__body { display: grid; grid-template-columns: 110px 1fr 210px; min-height: 300px; }
.ehr__side { padding: 16px 10px; border-right: 1px solid var(--line); display: grid; align-content: start; gap: 4px; }
.ehr__side span { font-size: 12.5px; padding: 7px 10px; border-radius: 8px; color: var(--ink-3); }
.ehr__side span.on { background: var(--surface); color: var(--ink); font-weight: 600; }
.ehr__main { padding: 20px; }
.ehr__patient { display: flex; gap: 12px; align-items: center; }
.ehr__patient b { width: 36px; height: 36px; border-radius: 50%; background: #e3e3ee; }
.ehr__patient strong { display: block; font-size: 13.5px; }
.ehr__patient em { font-style: normal; font-size: 12px; color: var(--ink-3); }
.ehr__lines { margin-top: 20px; display: grid; gap: 10px; }
.ehr__lines i { display: block; height: 8px; border-radius: 4px; background: #ececf3; }
.ehr__plexo {
  margin: 12px 12px 12px 0;
  padding: 16px;
  border-radius: 14px;
  background: var(--night);
  color: var(--white);
  display: flex; flex-direction: column;
}
.ehr__plexo-head { display: flex; align-items: center; justify-content: space-between; }
.ehr__plexo-head img { width: 26px; height: auto; filter: brightness(0) invert(1); }
.ehr__plexo .rec-pill { color: #c9bdff; }
.ehr__plexo .wave i { background: #c9bdff; }
.ehr__label { margin-top: 18px; font-size: 13px; font-weight: 600; }
.ehr__lines--dark i { background: rgba(255, 255, 255, 0.14); height: 7px; }
.ehr__btn {
  margin-top: auto;
  padding: 9px 10px;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}
@media (max-width: 560px) {
  .ehr__body { grid-template-columns: 1fr 170px; }
  .ehr__side { display: none; }
}

/* Pasos */
.p-steps {
  margin: clamp(48px, 6vw, 80px) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  counter-reset: none;
}
.p-steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.p-steps--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.p-steps li {
  position: relative;
  padding: 22px 20px 24px;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.p-steps li > span { font-family: var(--font-mono); font-size: 12px; color: var(--violet); }
.p-steps strong { display: block; margin-top: 18px; font-size: 16.5px; font-weight: 600; letter-spacing: -0.012em; line-height: 1.3; }
.p-steps p { margin-top: 6px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.p-steps li:last-child { background: var(--violet-soft); box-shadow: none; }
@media (max-width: 1080px) { .p-steps--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .p-steps--4, .p-steps--5 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .p-steps--4, .p-steps--5 { grid-template-columns: 1fr; } }

/* Funciones (caso de uso) */
.feat { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px; }
.feat__big {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(28px, 3.5vw, 44px);
  border-radius: 24px;
  background: radial-gradient(120% 80% at 100% 0%, rgba(109, 79, 253, 0.22), transparent 55%), var(--night);
  color: var(--white);
}
.feat__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c9bdff;
}
.feat__big h3 { margin-top: 14px; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 700; max-width: 18ch; }
.feat__big p { margin-top: 14px; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, 0.72); max-width: 30rem; }

.vt { display: grid; gap: 12px; }
.vt__cmd {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: start;
  justify-self: start;
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  font-size: 15px;
  font-weight: 500;
}
.vt__mic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--violet); }
.vt__mic svg { width: 16px; height: 16px; color: var(--white); }
.vt__doc { background: var(--white); color: var(--ink); border-radius: 14px; padding: 16px 18px; }
.vt__doc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.vt__doc-head strong { font-size: 14px; font-weight: 600; }
.vt__doc-head em { font-style: normal; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--violet); white-space: nowrap; }
.vt__f { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.vt__f:last-child { border-bottom: 0; }
.vt__f span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); padding-top: 2px; }
/* animación al entrar: el comando aparece y los campos se completan */
.feat__big .vt__cmd { opacity: 0; transform: translateY(8px); transition: opacity 0.5s var(--ease-out) 0.3s, transform 0.5s var(--ease-out) 0.3s; }
.feat__big .vt__f p { opacity: 0; transform: translateX(-6px); transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out); }
.feat__big.is-in .vt__cmd { opacity: 1; transform: none; }
.feat__big.is-in .vt__f p { opacity: 1; transform: none; }
.feat__big.is-in .vt__f:nth-child(2) p { transition-delay: 0.9s; }
.feat__big.is-in .vt__f:nth-child(3) p { transition-delay: 1.15s; }
.feat__big.is-in .vt__f:nth-child(4) p { transition-delay: 1.4s; }
.feat__big.is-in .vt__f:nth-child(5) p { transition-delay: 1.65s; }

.feat__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feat__card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: 20px;
  background: var(--surface);
}
.feat__card h3 { margin-top: 20px; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.feat__card p { margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.feat__say {
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--violet);
}
@media (max-width: 980px) { .feat { grid-template-columns: minmax(0, 1fr); } .feat > * { min-width: 0; } }
@media (max-width: 560px) { .feat__grid { grid-template-columns: minmax(0, 1fr); } .vt__f { grid-template-columns: 1fr; gap: 2px; } }
@media (prefers-reduced-motion: reduce) {
  .feat__big .vt__cmd, .feat__big .vt__f p { opacity: 1; transform: none; }
}
.feat__big .vt__f p { margin: 0; max-width: none; font-size: 14px; line-height: 1.5; color: var(--ink); }

/* Stepper de columna: segmentos, alerta y corrección */
.segs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.seg {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  background: var(--surface);
}
.seg svg { width: 16px; height: 16px; }
.seg--ok svg { color: var(--ok); }
.seg--miss { background: #fff4ec; color: var(--warn); box-shadow: inset 0 0 0 1px #fbd5bd; }
.seg--miss svg { color: var(--warn); }
.dict__text b, .fix__text b { font-weight: 600; }
.dict-alert {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  background: #fff4ec;
  box-shadow: inset 0 0 0 1px #fbd5bd;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.rdoc__panel.is-done .dict-alert { opacity: 1; transform: none; }
.dict-alert svg { width: 20px; height: 20px; color: var(--warn); margin-top: 1px; }
.dict-alert strong { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.dict-alert p { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.dict-alert .val__actions { margin-top: 12px; }
.fix__text { font-size: 18px; line-height: 1.7; margin-bottom: 18px; }
.fix__text del { color: #c0392b; text-decoration-thickness: 1.5px; opacity: 0.6; }
.fix__text ins { text-decoration: none; background: var(--violet-soft); color: var(--violet); padding: 1px 6px; border-radius: 5px; font-weight: 600; }
.val__row.fix { background: var(--violet-soft); box-shadow: inset 0 0 0 1px #d9d0ff; }
.val__row.fix svg { color: var(--violet); }
.rep dt { white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .dict-alert { opacity: 1; transform: none; } }
.fix__text ins, .fix__text del { white-space: nowrap; }
/* Corrección en dos tiempos: primero el error, después el cambio aceptado */
.fix__text[data-fix] del { color: var(--ink); opacity: 1; text-decoration: underline wavy var(--warn); text-decoration-thickness: 1.5px; text-underline-offset: 5px; transition: color 0.3s, opacity 0.3s; }
.fix__text[data-fix] ins { display: none; }
.is-fixed .fix__text[data-fix] del { color: #c0392b; opacity: 0.6; text-decoration: line-through; text-decoration-thickness: 1.5px; }
.is-fixed .fix__text[data-fix] ins { display: inline; animation: fade-up 0.4s var(--ease-out); }
.val__row.fix .val__actions b { transition: background-color 0.25s, opacity 0.25s, transform 0.15s; }
.is-fixed .val__row.fix .val__actions b:first-child { background: var(--ok); transform: scale(0.97); }
.is-fixed .val__row.fix .val__actions b.ghost { opacity: 0.4; }
/* Consulta por integración */
.int-ask { margin-top: clamp(28px, 3vw, 40px); padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.int-ask > div { flex: 1 1 24rem; }
.int-ask__title { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.int-ask__title + p { margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }

/* ==========================================================================
   Home: casos de uso en dos partes
   ========================================================================== */

.part-head {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 32px;
  scroll-margin-top: 110px;
}
.part-head--second { margin-top: clamp(96px, 11vw, 150px); }
.part-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--violet);
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px #d9d0ff;
  background: var(--violet-soft);
}
.part-head h3 {
  margin-top: 8px;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 24ch;
  text-wrap: balance;
}
#casos { scroll-margin-top: 90px; }

.uc {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
}
.uc__tabs { display: grid; gap: 8px; align-content: start; }
.uc__tab {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  text-align: left;
  padding: 18px 20px;
  border-radius: 18px;
  transition: background-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.uc__ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--line);
  background: var(--white);
  transition: background-color 0.25s, color 0.25s;
}
.uc__ico svg { width: 20px; height: 20px; }
.uc__tab strong { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink-3); padding-top: 9px; transition: color 0.25s; }
.uc__tab em {
  display: block;
  font-style: normal;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), opacity 0.3s var(--ease-out), margin 0.3s;
}
.uc__tab[aria-selected="true"] { background: var(--surface); }
.uc__tab[aria-selected="true"] .uc__ico { background: var(--violet); color: var(--white); box-shadow: none; }
.uc__tab[aria-selected="true"] strong { color: var(--ink); }
.uc__tab[aria-selected="true"] em { max-height: 90px; opacity: 1; margin-top: 6px; }
@media (hover: hover) and (pointer: fine) {
  .uc__tab:not([aria-selected="true"]):hover strong { color: var(--ink); }
}

.uc__stage {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 560px;
  background: var(--night);
}
.uc__panel {
  position: absolute; inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-out), visibility 0s 0.5s;
}
.uc__panel.is-active { opacity: 1; visibility: visible; transition: opacity 0.5s var(--ease-out), visibility 0s; }
.uc__panel > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.4s var(--ease-out);
}
.uc__panel.is-active > img { transform: none; }
.uc__panel .ui-card { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease-out) 0.2s, transform 0.6s var(--ease-out) 0.2s; }
.uc__panel.is-active .ui-card { opacity: 1; transform: none; }
.ui-card__link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px;
  font-size: 13.5px; font-weight: 600;
  color: var(--violet);
}
.ui-card__link svg { width: 12px; height: 12px; }

@media (max-width: 960px) {
  .uc { grid-template-columns: 1fr; }
  .uc__tabs { grid-template-columns: 1fr 1fr; }
  .uc__tab { grid-template-columns: 36px 1fr; gap: 10px; padding: 12px 14px; }
  .uc__ico { width: 36px; height: 36px; }
  .uc__tab strong { font-size: 15px; padding-top: 7px; }
  .uc__tab em { display: none; }
  .uc__stage { min-height: 0; aspect-ratio: 4 / 4.6; }
}
@media (max-width: 560px) {
  .part-head { grid-template-columns: 44px 1fr; gap: 14px; }
  .part-num { width: 40px; height: 40px; }
}

/* ==========================================================================
   Home: cómo funciona (producto)
   ========================================================================== */

.prod { padding: var(--section) 0; scroll-margin-top: 40px; }
.prod__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.prod__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  background: var(--night);
}
.prod__pane { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.55s var(--ease-out), visibility 0s 0.55s; }
.prod__pane.is-active { opacity: 1; visibility: visible; transition: opacity 0.55s var(--ease-out), visibility 0s; }
.prod__pane > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.6s var(--ease-out); }
.prod__pane.is-active > img { transform: none; }
.prod__pane > div {
  position: absolute;
  left: 7%; right: 7%; bottom: 8%;
  border-radius: 18px;
  background: rgba(252, 252, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -24px rgba(8, 8, 22, 0.55);
  color: var(--ink);
  font-size: 14px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease-out) 0.25s, transform 0.6s var(--ease-out) 0.25s;
}
.prod__pane.is-active > div { opacity: 1; transform: none; }

/* tarjeta: transcripción en vivo */
.pcard-live { padding: 18px 18px 14px; }
.pcard-live__state {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--violet); font-weight: 500;
}
.pcard-live__state i { width: 7px; height: 7px; border-radius: 50%; background: #e5484d; animation: rec 1.6s var(--ease-out) infinite; }
.pcard-live__lines { margin: 12px 0 14px; display: grid; gap: 8px; min-height: 132px; align-content: start; }
.pcard-live__lines li { display: grid; grid-template-columns: 70px 1fr; gap: 8px; line-height: 1.45; opacity: 0; transform: translateY(6px); transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out); }
.pcard-live__lines li.on { opacity: 1; transform: none; }
.pcard-live__lines b { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; color: var(--violet); padding-top: 2px; }
.pcard-live__lines b.pt { color: var(--ink-3); }
.pcard-live__bar { display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.pcard-live__btn { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); color: var(--ink); }
.pcard-live__btn svg { width: 12px; height: 12px; }
.pcard-live__time { font-family: var(--font-mono); font-size: 14px; font-weight: 500; margin-left: 4px; }
.pcard-live__end { margin-left: auto; padding: 9px 14px; border-radius: 10px; background: var(--ink); color: var(--white); font-weight: 600; font-size: 13px; }

/* tarjeta: contexto del paciente */
.pcard-ctx { padding: 18px; }
.pcard-ctx__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.pcard-ctx__head b { display: block; font-weight: 600; font-size: 14.5px; }
.pcard-ctx__head em { display: block; font-style: normal; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.pcard-ctx__tag { white-space: nowrap; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--violet); background: var(--violet-soft); padding: 4px 9px; border-radius: 999px; }
.pcard-ctx dl { margin: 6px 0 0; }
.pcard-ctx dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.pcard-ctx dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); padding-top: 2px; }
.pcard-ctx dd { margin: 0; }
.pcard-ctx__foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.pcard-ctx__foot svg { width: 16px; height: 16px; color: var(--ok); flex-shrink: 0; }
.pcard-ctx dl > div { opacity: 0; transform: translateX(-6px); transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out); }
.prod__pane.is-active .pcard-ctx dl > div { opacity: 1; transform: none; }
.prod__pane.is-active .pcard-ctx dl > div:nth-child(1) { transition-delay: 0.45s; }
.prod__pane.is-active .pcard-ctx dl > div:nth-child(2) { transition-delay: 0.65s; }
.prod__pane.is-active .pcard-ctx dl > div:nth-child(3) { transition-delay: 0.85s; }
.prod__pane.is-active .pcard-ctx dl > div:nth-child(4) { transition-delay: 1.05s; }

/* tarjeta: nota lista */
.pcard-note { padding: 18px; }
.pcard-note__head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.pcard-note__head b { font-weight: 600; font-size: 14.5px; }
.pcard-note__head span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.pcard-note__f { display: grid; grid-template-columns: 100px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.pcard-note__f span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); padding-top: 2px; }
.pcard-note__f p { line-height: 1.45; }
.from-hce { display: inline-block; margin-top: 4px; font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--violet); background: var(--violet-soft); padding: 2px 8px; border-radius: 999px; }
.pcard-note__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pcard-note__foot .code-chip { margin: 0; }
.pcard-note__foot .mini-btn { font-size: 13px; font-weight: 600; padding: 9px 14px; border-radius: 10px; background: var(--ink); color: var(--white); }

/* lado derecho */
.prod__tabs {
  margin-top: 20px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: var(--surface);
}
.prod__tabs button {
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-3);
  transition: background-color 0.25s var(--ease-out), color 0.25s, box-shadow 0.25s;
}
.prod__tabs button[aria-selected="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(18, 18, 43, 0.08), 0 0 0 1px var(--line); }
@media (hover: hover) and (pointer: fine) {
  .prod__tabs button:not([aria-selected="true"]):hover { color: var(--ink); }
}
.prod__texts { display: grid; }
.prod__text { display: none; margin-top: 32px; }
.prod__text.is-active { display: block; animation: fade-up 0.5s var(--ease-out); }
.prod__text h2 {
  font-size: clamp(34px, 3.8vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
  max-width: 15ch;
  text-wrap: balance;
}
.prod__text p { margin-top: 20px; font-size: var(--text-lead); line-height: 1.55; color: var(--ink-2); max-width: 30rem; }
.prod__copy > .btn { margin-top: 32px; }

@media (max-width: 900px) {
  .prod__grid { grid-template-columns: 1fr; }
  .prod__copy { order: -1; }
  .prod__tabs button { padding: 0 12px; font-size: 14px; height: 38px; }
}
@media (max-width: 520px) {
  .prod__pane > div { left: 4%; right: 4%; bottom: 4%; font-size: 13px; }
  .pcard-ctx dl > div, .pcard-note__f { grid-template-columns: 1fr; gap: 2px; }
  .pcard-live__lines li { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pcard-live__lines li, .pcard-ctx dl > div { opacity: 1; transform: none; }
}
.prod__pane > div { top: 6%; bottom: auto; }
@media (min-width: 621px) { .prod__pane.prod__pane--card-low > div { top: auto; bottom: 6%; } }
@media (max-width: 620px) {
  .prod__tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .prod__tabs::-webkit-scrollbar { display: none; }
  .prod__tabs button { flex-shrink: 0; }
  .prod__media { aspect-ratio: 4 / 6.4; }
  .prod__pane > img { object-position: 50% 100%; }
}
@media (max-width: 620px) {
  .prod__pane > div { top: auto; bottom: 4%; }
  .prod__pane > img { object-position: 50% 30%; }
}
@media (max-width: 620px) {
  .prod__media { aspect-ratio: auto; background: transparent; border-radius: 0; overflow: visible; }
  .prod__pane { position: relative; display: none; }
  .prod__pane.is-active { display: block; }
  .prod__pane > img { position: relative; height: auto; aspect-ratio: 4 / 4.2; border-radius: 24px; object-position: 50% 75%; }
  .prod__pane > div { position: relative; left: auto; right: auto; top: auto; bottom: auto; margin: -64px 12px 0; }
}

/* tarjeta: asistente clínico */
.pcard-ask { padding: 18px; }
.pcard-ask__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.pcard-ask__brand { display: inline-flex; align-items: center; gap: 8px; }
.pcard-ask__brand img { width: 20px; height: auto; }
.pcard-ask__brand b { font-weight: 600; font-size: 14px; }
.pcard-ask__head em { font-style: normal; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.pcard-ask__q { margin: 14px 0 0 auto; max-width: 86%; padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: var(--surface); line-height: 1.45; }
.pcard-ask__a { margin-top: 12px; min-height: 120px; }
.pcard-ask__typing { display: inline-flex; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--violet-soft); }
.pcard-ask__typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--violet); animation: typing 1s var(--ease-in-out) infinite; }
.pcard-ask__typing i:nth-child(2) { animation-delay: 0.15s; }
.pcard-ask__typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 100% { opacity: 0.3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-2px); } }
.pcard-ask__ans { display: none; line-height: 1.5; }
.pcard-ask__a.is-done .pcard-ask__typing { display: none; }
.pcard-ask__a.is-done .pcard-ask__ans { display: block; animation: fade-up 0.4s var(--ease-out); }
.pcard-ask__ans b { font-weight: 600; }
.pcard-ask__ctx { margin-top: 10px; font-size: 12.5px; color: var(--ink-2); padding-left: 10px; border-left: 2px solid var(--violet); }
.pcard-ask__src { display: inline-block; margin-top: 10px; font-size: 11.5px; font-weight: 600; color: var(--violet); background: var(--violet-soft); padding: 3px 9px; border-radius: 999px; }

/* tarjeta: seguridad del tratamiento */
.pcard-safe { padding: 16px; }
.pcard-safe__alert { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px; border-radius: 14px; background: #fff4ec; box-shadow: inset 0 0 0 1px #fbd5bd; }
.pcard-safe__ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--white); color: var(--warn); }
.pcard-safe__ico svg { width: 18px; height: 18px; }
.pcard-safe__alert b { font-weight: 600; font-size: 14.5px; }
.pcard-safe__alert p { margin-top: 4px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.pcard-safe__swap { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); }
.pcard-safe__lbl { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.pcard-safe__old, .pcard-safe__new { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; }
.pcard-safe__old { color: #b42318; text-decoration: line-through; text-decoration-thickness: 1.5px; opacity: 0.75; }
.pcard-safe__old::before { content: "−"; font-weight: 700; text-decoration: none; display: inline-block; }
.pcard-safe__new { color: var(--ok); font-weight: 600; }
.pcard-safe__new::before { content: "+"; font-weight: 700; }
.pcard-safe__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); }
.pcard-safe__btns { display: flex; gap: 6px; }
.pcard-safe__btns b { font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: 999px; background: var(--ink); color: var(--white); }
.pcard-safe__btns b.ghost { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.prod__pane .pcard-safe__swap { opacity: 0; transform: translateY(8px); transition: opacity 0.45s var(--ease-out) 0.9s, transform 0.45s var(--ease-out) 0.9s; }
.prod__pane.is-active .pcard-safe__swap { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .prod__pane .pcard-safe__swap { opacity: 1; transform: none; } }
.prod__tabs { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.prod__tabs::-webkit-scrollbar { display: none; }
.prod__tabs button { flex-shrink: 0; padding: 0 16px; }

/* Asistente: la pregunta se escribe, puntos, respuesta progresiva, fuente */
.pcard-ask__q { min-height: 44px; }
.pcard-ask__q span:empty { display: none; }
.pcard-ask[data-step="typing"] .pcard-ask__q span::after { content: ""; display: inline-block; width: 1.5px; height: 1em; margin-left: 1px; vertical-align: -2px; background: var(--ink); animation: caret 1s steps(1) infinite; }
.pcard-ask__a { min-height: 150px; }
.pcard-ask__a > * { display: none; }
.pcard-ask[data-step="thinking"] .pcard-ask__typing { display: inline-flex; }
.pcard-ask[data-step="answer"] .pcard-ask__ans,
.pcard-ask[data-step="done"] .pcard-ask__ans { display: block; padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: var(--surface); line-height: 1.5; }
.pcard-ask[data-step="done"] .pcard-ask__ctx { display: block; animation: fade-up 0.4s var(--ease-out); }
.pcard-ask[data-step="done"] .pcard-ask__src { display: inline-block; animation: fade-up 0.4s var(--ease-out) 0.15s both; }
.pcard-ask__ans .w { opacity: 0; transition: opacity 0.2s; }
.pcard-ask__ans .w.on { opacity: 1; }
@media (max-width: 620px) {
  .prod__pane > div { margin-top: -64px; }
}
.prod__grid > * { min-width: 0; }
/* Pestañas que avanzan con el scroll (escritorio) */
.prod.prod--scroll { padding: 0; margin-top: clamp(40px, 5vw, 72px); height: calc(100vh + var(--prod-steps, 3) * 75vh); }
.prod--scroll .prod__grid { position: sticky; top: 76px; height: calc(100vh - 76px); align-content: center; }
.prod--scroll .prod__media { aspect-ratio: auto; height: min(calc(100vh - 140px), 46vw); }
html, body { overflow-x: clip; }

/* ==========================================================================
   Home: qué hace Plexo (3 pasos) + integración
   ========================================================================== */

.what { padding: clamp(56px, 7vw, 96px) 0 0; }
.what__label { margin-bottom: 20px; }
.what__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.what__item {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 28px 24px;
  border-radius: 24px;
  background: var(--surface);
  transition: box-shadow 0.25s var(--ease-out), transform 0.2s var(--ease-out);
}
.what__num { position: absolute; top: 26px; right: 28px; font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); }
.what__ico {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--white);
  color: var(--violet);
  box-shadow: 0 0 0 1px var(--line);
}
.what__ico svg { width: 22px; height: 22px; }
.what__item strong { margin-top: 28px; font-size: clamp(21px, 1.9vw, 26px); line-height: 1.15; letter-spacing: -0.025em; font-weight: 700; }
.what__item p { margin-top: 10px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); max-width: 30ch; }
.what__tag {
  margin-top: auto;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--violet);
}
.what__item--dark { background: var(--night); color: var(--white); }
.what__item--dark .what__ico { background: var(--violet); color: var(--white); box-shadow: none; }
.what__item--dark p { color: rgba(255, 255, 255, 0.72); }
.what__item--dark .what__num { color: rgba(255, 255, 255, 0.45); }
.what__item--dark .what__tag { color: #c9bdff; }
@media (hover: hover) and (pointer: fine) {
  .what__item:hover { box-shadow: inset 0 0 0 1px var(--ink); }
  .what__item--dark:hover { box-shadow: 0 0 0 4px rgba(109, 79, 253, 0.25); }
}
@media (max-width: 900px) { .what__grid { grid-template-columns: 1fr; } }

.integ { padding: 0 0 var(--section); scroll-margin-top: 40px; }
.integ__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.integ__lead { font-size: var(--text-lead); line-height: 1.55; color: var(--ink-2); max-width: 32rem; }
.integ__list { margin-top: 28px; display: grid; gap: 18px; }
.integ__list li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; }
.integ__ico { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); }
.integ__ico svg { width: 15px; height: 15px; }
.integ__list strong { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.012em; padding-top: 4px; }
.integ__list p { margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.integ .int-modes { margin-top: 28px; }
@media (max-width: 900px) { .integ__grid { grid-template-columns: 1fr; } }

/* Landings de casos de uso: bloque informativo y lista de prestaciones */
.dict-alert--info { background: var(--violet-soft); box-shadow: inset 0 0 0 1px #d9d0ff; }
.dict-alert--info svg { color: var(--violet); }
.rep dd .code-chip { margin: 6px 0 0; display: inline-flex; }
.rep dd .from-hce { margin-left: 4px; }
.bill-list { display: grid; gap: 8px; }
.bill-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.rdoc__panel.is-active .bill-list li { opacity: 1; transform: none; }
.rdoc__panel.is-active .bill-list li:nth-child(2) { transition-delay: 0.25s; }
.rdoc__panel.is-active .bill-list li:nth-child(3) { transition-delay: 0.5s; }
.rdoc__panel.is-active .bill-list li:nth-child(4) { transition-delay: 0.75s; }
.bill-list b { display: block; font-weight: 600; font-size: 15px; }
.bill-list em { display: block; font-style: normal; font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.bill-list .from-hce { white-space: nowrap; margin: 0; }
@media (max-width: 560px) { .bill-list li { flex-direction: column; align-items: flex-start; } }
@media (prefers-reduced-motion: reduce) { .bill-list li { opacity: 1; transform: none; } }
.val--tight { margin-top: 12px; gap: 6px; }
.val--tight .val__row { font-size: 14px; padding: 10px 12px; }
.case-page .what { padding-top: clamp(40px, 5vw, 64px); }

.hero__title--long { font-size: clamp(40px, 5vw, 72px); max-width: 19ch; }

/* Internación: paso final "historia clínica completa" */
.hc { display: grid; gap: 10px; }
.hc__row { display: grid; grid-template-columns: 38px 1fr; gap: 14px; padding: 14px; border-radius: 14px; background: var(--surface); opacity: 0; transform: translateY(6px); transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out); }
.rdoc__panel.is-active .hc__row { opacity: 1; transform: none; }
.rdoc__panel.is-active .hc__row:nth-child(2) { transition-delay: 0.25s; }
.rdoc__panel.is-active .hc__row:nth-child(3) { transition-delay: 0.5s; }
.hc__ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--white); color: var(--violet); box-shadow: 0 0 0 1px var(--line); }
.hc__ico svg { width: 18px; height: 18px; }
.hc__ico img { width: 20px; height: auto; }
.hc__row strong { display: block; font-size: 15px; font-weight: 600; }
.hc__row p { margin-top: 3px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.hc__q { display: inline-block; margin-top: 8px; padding: 6px 10px; border-radius: 10px; background: var(--violet-soft); color: var(--violet); font-size: 13px; font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .hc__row { opacity: 1; transform: none; } }
.hero__stat {
  display: inline-flex; align-items: baseline; gap: 10px;
  margin-top: 24px;
  padding: 10px 18px 10px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero__stat strong { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.hero__stat span { font-size: 16px; color: rgba(255, 255, 255, 0.82); }
.hero__stat + .hero__ctas { margin-top: 28px; }

/* ==========================================================================
   Facturación: documentos → Plexo → carpeta del paciente
   ========================================================================== */

.fd {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) 180px minmax(0, 1.5fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding: clamp(24px, 3vw, 40px);
  border-radius: 28px;
  background: var(--surface);
  isolation: isolate;
}
.fd-wires { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; overflow: visible; }
.fd-wires path { fill: none; stroke: #cfc6ff; stroke-width: 1.6; }
.fd-wires path.flow { stroke: var(--violet); stroke-dasharray: 6 10; animation: fd-dash 0.9s linear infinite; }
@keyframes fd-dash { to { stroke-dashoffset: -16; } }
.fd-cap { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.fd-docs { display: grid; gap: 10px; }
.fd-doc {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line), 0 6px 16px -10px rgba(18, 18, 43, 0.2);
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.fd-pdf { width: 26px; height: 32px; flex-shrink: 0; }
.fd-check {
  margin-left: auto;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: #e7f6ec; color: var(--ok);
  opacity: 0; transform: scale(0.6);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.fd-check svg { width: 12px; height: 12px; }
.fd-doc.is-read { box-shadow: 0 0 0 1.5px var(--violet), 0 10px 24px -14px rgba(109, 79, 253, 0.6); transform: translateX(4px); }
.fd-doc.is-done .fd-check, .fd-doc.is-read .fd-check { opacity: 1; transform: none; }

.fd-brain { position: relative; display: grid; justify-items: center; gap: 14px; }
.fd-core {
  position: relative; z-index: 1;
  width: 96px; height: 96px; border-radius: 28px;
  display: grid; place-items: center;
  background: var(--night);
  box-shadow: 0 20px 40px -18px rgba(11, 11, 29, 0.7);
}
.fd-core img { width: 48px; height: auto; filter: brightness(0) invert(1); }
.fd-ring {
  position: absolute; top: 0; left: 50%;
  width: 96px; height: 96px; margin-left: -48px;
  border-radius: 28px;
  box-shadow: 0 0 0 2px var(--violet);
  opacity: 0;
}
.fd.is-thinking .fd-ring { animation: fd-ring 1.6s var(--ease-out) infinite; }
.fd.is-thinking .fd-ring--2 { animation-delay: 0.8s; }
@keyframes fd-ring { 0% { opacity: 0.7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.55); } }
.fd-brain__lbl { text-align: center; }
.fd-brain__lbl b { display: block; font-size: 16px; font-weight: 700; }
.fd-brain__lbl span { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--violet); min-height: 1.4em; }

.fd-folder {
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(18, 18, 43, 0.35);
  padding: 16px 18px;
}
.fd-folder__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.fd-folder__head b { display: block; font-size: 15.5px; font-weight: 600; }
.fd-folder__head em { display: block; margin-top: 2px; font-style: normal; font-size: 12.5px; color: var(--ink-3); }
.fd-folder__tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--violet-soft); color: var(--violet); font-size: 12px; font-weight: 600; }
.fd-folder__tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.fd-grp { margin-top: 10px; }
.fd-grp__t {
  display: inline-block;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--violet); padding: 3px 8px; border-radius: 6px; box-shadow: inset 0 0 0 1px #d9d0ff;
  opacity: 0.25; transition: opacity 0.3s;
}
.fd-grp.is-on .fd-grp__t { opacity: 1; }
.fd-grp ul { display: grid; gap: 2px; margin-top: 6px; }
.fd-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 7px 8px;
  border-radius: 10px;
  font-size: 13px;
  opacity: 0; transform: translateX(-8px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out), background-color 0.6s;
}
.fd-row.is-on { opacity: 1; transform: none; }
.fd-row.is-new { background: var(--violet-soft); }
.fd-code { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--ink); }
.fd-desc b { display: block; font-weight: 600; font-size: 13px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-desc em { display: block; font-style: normal; font-size: 11.5px; color: var(--ink-3); }
.fd-who { font-size: 11.5px; padding: 3px 8px; border-radius: 999px; background: var(--surface); color: var(--ink-2); white-space: nowrap; }
.fd-st { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: #e7f6ec; color: var(--ok); white-space: nowrap; }
.fd-st--warn { background: #fff4ec; color: var(--warn); box-shadow: inset 0 0 0 1px #fbd5bd; }
.fd-folder__foot {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 13.5px; font-weight: 600; color: var(--ok);
  opacity: 0; transition: opacity 0.4s var(--ease-out);
}
.fd-folder__foot span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.fd-folder__foot svg { width: 16px; height: 16px; }
.fd-folder__obs { font-size: 12px; color: var(--warn); background: #fff4ec; padding: 3px 9px; border-radius: 999px; }
.fd.is-done .fd-folder__foot { opacity: 1; }

@media (max-width: 1080px) {
  .fd { grid-template-columns: 1fr; justify-items: stretch; }
  .fd-wires { display: none; }
  .fd-docs { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .fd-brain { padding: 6px 0; }
  .fd-brain::before, .fd-brain::after { content: ""; width: 2px; height: 22px; background: linear-gradient(var(--line), var(--violet)); }
  .fd-brain::before { order: -1; }
}
@media (max-width: 620px) {
  .fd-row { grid-template-columns: 52px minmax(0, 1fr); }
  .fd-who, .fd-st { grid-column: 2; justify-self: start; }
  .fd-desc b { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .fd-row, .fd-folder__foot { opacity: 1; transform: none; }
  .fd-grp__t { opacity: 1; }
}
@media (max-width: 620px) {
  .fd-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
  .fd-code { width: 52px; flex-shrink: 0; }
  .fd-desc { flex: 1 1 calc(100% - 64px); min-width: 0; }
  .fd-who { margin-left: 60px; }
}

/* Carpeta: observación con chip "Solicitar prórroga" */
.fd-folder__foot { color: var(--ink); font-weight: 500; flex-wrap: wrap; }
.fd-obs { display: inline-flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.45; color: var(--ink-2); flex: 1 1 260px; }
.fd-obs svg { width: 16px; height: 16px; color: var(--warn); flex-shrink: 0; margin-top: 1px; }
.fd-obs b { color: var(--warn); font-weight: 600; }
.fd-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: var(--ink); color: var(--white);
  font-size: 13px; font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 6px 16px -8px rgba(18, 18, 43, 0.5);
  transition: background-color 0.3s var(--ease-out), transform 0.15s var(--ease-out);
}
.fd-chip__ico { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--white); }
.fd-chip__ico img { width: 13px; height: auto; }
.fd-chip.is-press { transform: scale(0.95); }
.fd-chip.is-sent { background: var(--ok); }
.fd-st--warn.is-fixed { background: #e7f6ec; color: var(--ok); box-shadow: none; }

/* ==========================================================================
   Facturación: ciclo completo
   ========================================================================== */
.cy { position: relative; }
.cy__track { position: absolute; left: 6%; right: 6%; top: 27px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.cy__fill { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--cy-p, 0)); background: linear-gradient(90deg, var(--violet), #9b87ff); transition: transform 0.7s var(--ease-out); }
.cy__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; position: relative; }
.cy__step { display: flex; flex-direction: column; align-items: center; text-align: center; cursor: pointer; }
.cy__node {
  width: 56px; height: 56px; border-radius: 18px;
  display: grid; place-items: center;
  background: var(--white); color: var(--ink-3);
  box-shadow: 0 0 0 1px var(--line);
  transition: background-color 0.35s var(--ease-out), color 0.35s, box-shadow 0.35s, transform 0.35s var(--ease-out);
}
.cy__node svg { width: 22px; height: 22px; }
.cy__n { margin-top: 14px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.cy__step strong { margin-top: 4px; font-size: 15px; font-weight: 600; letter-spacing: -0.012em; line-height: 1.25; color: var(--ink-3); transition: color 0.3s; }
.cy__step p { margin-top: 6px; font-size: 13px; line-height: 1.45; color: var(--ink-3); opacity: 0.85; }
.cy__out {
  margin-top: 12px; padding: 5px 10px; border-radius: 999px;
  font-size: 12px; line-height: 1.3; background: var(--surface); color: var(--ink-2);
  opacity: 0; transform: translateY(6px); transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.cy__out b { font-weight: 600; color: var(--ink); }
.cy__out--warn { background: #fff4ec; }
.cy__out--warn b { color: var(--warn); }
.cy__out--ok { background: #e7f6ec; }
.cy__out--ok b { color: var(--ok); }
.cy__step.is-done .cy__node { background: var(--violet-soft); color: var(--violet); box-shadow: none; }
.cy__step.is-done strong { color: var(--ink); }
.cy__step.is-done .cy__out { opacity: 1; transform: none; }
.cy__step.is-active .cy__node { background: var(--violet); color: var(--white); box-shadow: 0 0 0 6px rgba(109, 79, 253, 0.16); transform: translateY(-2px); }
.cy__step.is-active strong { color: var(--ink); }
.cy__step.is-active p { color: var(--ink-2); }
.cy__step.is-active .cy__out { opacity: 1; transform: none; }

.cy__panel {
  position: relative;
  margin-top: 32px;
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--night);
  color: var(--white);
  min-height: 132px;
}
.cy__pane { display: none; }
.cy__pane.is-active { display: block; animation: fade-up 0.45s var(--ease-out); }
.cy__pane-t { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #b8a8ff; margin-bottom: 14px; }
.cy__chips, .cy__auth, .cy__codes, .cy__pros { display: flex; flex-wrap: wrap; gap: 8px; }
.cy__chips span, .cy__auth span, .cy__codes span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  font-size: 14px;
}
.cy__auth .ok::before, .cy__auth .warn::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; }
.cy__auth .warn::before { background: #fb923c; }
.cy__auth .act { background: var(--violet); box-shadow: none; font-weight: 600; }
.cy__auth .act img { width: 16px; height: auto; filter: brightness(0) invert(1); }
.cy__codes b { font-family: var(--font-mono); font-weight: 500; color: #c9bdff; font-size: 13px; }
.cy__pros span { display: grid; gap: 2px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); min-width: 180px; }
.cy__pros b { font-family: var(--font-mono); font-weight: 500; font-size: 13px; color: #c9bdff; }
.cy__pros em { font-style: normal; font-size: 14px; font-weight: 600; }
.cy__pros i { font-style: normal; font-size: 13px; color: rgba(255, 255, 255, 0.65); }
.cy__dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.cy__dl dt { font-size: 12px; color: rgba(255, 255, 255, 0.55); }
.cy__dl dd { margin: 4px 0 0; font-size: 15px; font-weight: 500; }

@media (max-width: 1080px) {
  .cy__track { left: 27px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .cy__fill { transform-origin: top; transform: scaleY(var(--cy-p, 0)); }
  .cy__steps { grid-template-columns: 1fr; gap: 18px; }
  .cy__step { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; text-align: left; align-items: start; }
  .cy__node { grid-row: span 4; }
  .cy__n { margin-top: 2px; }
  .cy__out { justify-self: start; }
  .cy__dl { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .cy__out { opacity: 1; transform: none; }
}
.fd-desc b { white-space: normal; }
.cy__steps { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cy__track { left: 8%; right: 8%; }
.cy__rules { display: grid; gap: 8px; }
.cy__rule { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,0.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1); }
.cy__rule b { font-weight: 600; font-size: 14.5px; line-height: 1.4; }
.cy__rule p { margin-top: 4px; font-size: 13.5px; color: rgba(255,255,255,0.7); line-height: 1.45; }
.cy__rule--warn { background: rgba(251,146,60,0.12); box-shadow: inset 0 0 0 1px rgba(251,146,60,0.35); }
.cy__rule-ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(251,146,60,0.2); color: #fdba74; }
.cy__rule-ico--ok { background: rgba(74,222,128,0.15); color: #86efac; }
.cy__rule-ico svg { width: 16px; height: 16px; }
.cy__rule-act { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--violet); font-size: 13px; font-weight: 600; white-space: nowrap; }
.cy__rule-act img { width: 14px; height: auto; filter: brightness(0) invert(1); }
.cy__rule-st { font-size: 12px; font-weight: 600; color: #86efac; }
.cy__track2 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.cy__t { padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,0.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1); }
.cy__t b { display: block; margin-top: 8px; font-size: 14.5px; font-weight: 600; }
.cy__t p { margin-top: 4px; font-size: 13px; line-height: 1.45; color: rgba(255,255,255,0.68); }
.cy__t-dot { display: block; width: 10px; height: 10px; border-radius: 50%; background: #4ade80; }
.cy__t-dot.warn { background: #fb923c; }
.cy__t-dot.act { background: #a78bfa; box-shadow: 0 0 0 4px rgba(167,139,250,0.25); }
@media (max-width: 1080px) {
  .cy__steps { grid-template-columns: 1fr; }
  .cy__track2 { grid-template-columns: 1fr 1fr; }
  .cy__rule { grid-template-columns: 28px 1fr; }
  .cy__rule-act, .cy__rule-st { grid-column: 2; justify-self: start; }
}

/* Asistente: quién pregunta y quién responde */
.pcard-ask__msg { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; }
.pcard-ask__msg--doc { justify-content: flex-end; }
.pcard-ask__body { min-width: 0; max-width: 86%; display: flex; flex-direction: column; }
.pcard-ask__msg--doc .pcard-ask__body { align-items: flex-end; }
.pcard-ask__msg--ai .pcard-ask__body { flex: 1; max-width: none; }
.pcard-ask__who { font-size: 11.5px; font-weight: 600; color: var(--ink-3); margin-bottom: 4px; }
.pcard-ask__msg--ai .pcard-ask__who { color: var(--violet); }
.pcard-ask__av { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; margin-top: 18px; }
.pcard-ask__av--doc { background: var(--surface); color: var(--ink-2); box-shadow: 0 0 0 1px var(--line); }
.pcard-ask__av--doc svg { width: 15px; height: 15px; }
.pcard-ask__av--ai { background: var(--night); }
.pcard-ask__av--ai img { width: 17px; height: auto; filter: brightness(0) invert(1); }
.pcard-ask .pcard-ask__q { margin: 0; max-width: none; }
.pcard-ask .pcard-ask__a { margin-top: 0; min-height: 0; }
.pcard-ask__a > .pcard-ask__who { display: block; }
.pcard-ask .pcard-ask__a > *:not(.pcard-ask__who) { display: none; }
.pcard-ask[data-step="thinking"] .pcard-ask__a .pcard-ask__typing { display: inline-flex; align-self: flex-start; }
.pcard-ask[data-step="answer"] .pcard-ask__a .pcard-ask__ans,
.pcard-ask[data-step="done"] .pcard-ask__a .pcard-ask__ans { display: block; }
.pcard-ask[data-step="done"] .pcard-ask__a .pcard-ask__ctx { display: block; }
.pcard-ask[data-step="done"] .pcard-ask__a .pcard-ask__src { display: inline-block; align-self: flex-start; }
.pcard-ask__msg--ai { min-height: 168px; }
.pcard-ask:not([data-step]) .pcard-ask__a .pcard-ask__ans,
.pcard-ask:not([data-step]) .pcard-ask__a .pcard-ask__ctx { display: block; }
.pcard-ask:not([data-step]) .pcard-ask__a .pcard-ask__src { display: inline-block; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero__stats .hero__stat { margin-top: 0; }
.hero__stats + .hero__ctas { margin-top: 28px; }
.fd-folder__head { justify-content: flex-start; }

.part-head:not(:has(.part-num)) { grid-template-columns: 1fr; }

/* ==========================================================================
   Home: departamentos
   ========================================================================== */
.dept { padding: 0 0 var(--section); }
.dept__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dept__card { display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: var(--surface); transition: box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out); }
.dept__img { aspect-ratio: 16 / 11; overflow: hidden; }
.dept__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.dept__body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 22px; }
.dept__body h3 { margin-top: 12px; font-size: 21px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }
.dept__body > p:not(.label) { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.dept__go { margin-top: auto; padding-top: 20px; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.dept__go svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .dept__card:hover { box-shadow: inset 0 0 0 1px var(--ink); }
  .dept__card:hover .dept__img img { transform: scale(1.04); }
  .dept__card:hover .dept__go svg { transform: translateX(3px); }
}
@media (max-width: 900px) { .dept__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Home: integración (formato tarjetas con foto)
   ========================================================================== */
.integ2 { padding: 0 0 var(--section); scroll-margin-top: 60px; }
.integ2__head { text-align: center; max-width: 46rem; margin: 0 auto clamp(40px, 5vw, 64px); }
.integ2__head .h2 { margin-top: 14px; }
.integ2__head .lead { margin: 18px auto 0; max-width: 36rem; }
.integ2__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.integ2__item { padding: 10px 10px 18px; border-radius: 24px; background: var(--surface); }
.integ2__media { position: relative; aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden; display: grid; place-items: center; padding: 22px; }
.integ2__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.integ2__media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(11, 11, 29, 0.28); }
.integ2__card { position: relative; z-index: 2; width: 100%; max-width: 300px; padding: 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.97); box-shadow: 0 24px 48px -20px rgba(8, 8, 22, 0.55); color: var(--ink); }
.integ2__logo { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--night); }
.integ2__logo img { width: 20px; height: auto; filter: brightness(0) invert(1); }
.integ2__card strong { display: block; margin-top: 14px; font-size: 19px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }
.integ2__card strong em { font-style: italic; color: var(--violet); }
.integ2__card > p:not(.integ2__t) { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.integ2__ex { display: block; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }
.integ2__t { font-size: 12px; color: var(--ink-3); margin-bottom: 10px; }
.integ2__card ul { display: grid; gap: 8px; }
.integ2__card li { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.integ2__card li svg { width: 16px; height: 16px; color: var(--ok); }
.integ2__chip { display: inline-block; margin-top: 14px; padding: 5px 10px; border-radius: 999px; background: var(--violet-soft); color: var(--violet); font-size: 12px; font-weight: 600; }
.integ2__ehr { display: grid; grid-template-columns: 1fr 104px; gap: 8px; height: 92px; }
.integ2__ehr-l { display: grid; align-content: start; gap: 8px; padding: 10px; border-radius: 10px; background: var(--surface); }
.integ2__ehr-l i { display: block; height: 7px; border-radius: 4px; background: #e2e2ec; }
.integ2__ehr-l i:nth-child(2) { width: 80%; } .integ2__ehr-l i:nth-child(3) { width: 60%; }
.integ2__ehr-p { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 10px; border-radius: 10px; background: var(--night); color: var(--white); font-size: 12px; font-weight: 600; }
.integ2__ehr-p img { width: 18px; height: auto; filter: brightness(0) invert(1); }
.integ2__cap { margin: 16px 8px 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 900px) { .integ2__grid { grid-template-columns: 1fr; } .integ2__media { aspect-ratio: 4 / 3.2; } }
.dept .section-head { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr); }
.dept .section-head .label { grid-column: 1 / -1; }
.dept .h2 { font-size: clamp(32px, 3.6vw, 52px); max-width: 22ch; }
@media (max-width: 980px) { .dept .section-head { grid-template-columns: 1fr; } }

/* Informe listo para entregar (texto libre) */
.rpt { font-size: 14px; line-height: 1.55; color: var(--ink); }
.rpt__title { margin: 0; text-align: center; font-size: 15px; font-weight: 700; letter-spacing: 0.04em; }
.rpt__meta { margin-top: 4px; text-align: center; font-size: 12px; color: var(--ink-3); }
.rpt__tech { margin-top: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 13px; }
.rpt__h { margin-top: 10px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.rpt__h + p { margin-top: 2px; }
.rpt strong { font-weight: 700; }
.rpt__sign { margin: 14px 0 0 auto; width: 260px; text-align: center; display: grid; justify-items: center; }
.rpt__sig { font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 24px; color: #2b2b7a; line-height: 1; transform: rotate(-4deg); }
.rpt__line { width: 100%; height: 1px; background: var(--ink-3); margin: 4px 0 6px; }
.rpt__sign b { font-size: 13px; font-weight: 600; }
.rpt__sign em { font-style: normal; font-size: 11.5px; color: var(--ink-3); line-height: 1.4; }
.pipe .rdoc { min-height: 560px; }
@media (max-width: 560px) { .rpt__sign { width: 100%; } }

/* Dictado: Plexo tacha las muletillas a medida que aparecen */
.dict__text .filler { font-style: italic; color: var(--ink-3); }
.dict__text .filler .w {
  text-decoration-line: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: transparent;
}
.dict__text .filler .w.on { animation: filler-strike 0.45s var(--ease-out) 0.55s forwards; }
@keyframes filler-strike {
  to { text-decoration-color: #d64545; color: #d64545; opacity: 0.55; }
}
@media (prefers-reduced-motion: reduce) {
  .dict__text .filler .w { text-decoration-color: #d64545; color: #d64545; opacity: 0.55; }
}

.rpt__sig { width: 170px; height: auto; transform: rotate(-3deg); margin-bottom: -4px; }
.segs { align-items: center; }
.segs__lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-right: 4px; }

/* Hero: tarjeta que alterna Scribe / Billing */
.hcard {
  position: relative;
  width: 330px;
  padding: 16px 18px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -24px rgba(8, 8, 22, 0.6);
  color: var(--ink);
  display: grid;
}
.hcard__slide { grid-area: 1 / 1; opacity: 0; transform: translateY(6px); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
.hcard__slide.is-on { opacity: 1; transform: none; }
.hcard__top { display: flex; justify-content: space-between; align-items: center; }
.hcard__tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; background: var(--violet-soft); color: var(--violet); font-size: 12px; font-weight: 600; }
.hcard__tag svg { width: 14px; height: 14px; }
.hcard__meta { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.hcard strong { display: block; margin-top: 12px; font-size: 17px; font-weight: 700; letter-spacing: -0.015em; }
.hcard__rows { margin-top: 10px; display: grid; gap: 6px; }
.hcard__rows span { display: grid; grid-template-columns: 96px 1fr; gap: 8px; font-size: 13px; line-height: 1.4; color: var(--ink); }
.hcard__rows b { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; padding-top: 2px; }
.hcard__ok { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ok); }
.hcard__ok svg { width: 15px; height: 15px; }
.hcard__dots { grid-area: 2 / 1; display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.hcard__dots i { width: 18px; height: 3px; border-radius: 3px; background: var(--line); transition: background-color 0.3s; }
.hcard__dots i.on { background: var(--violet); }
.hero__inner > .hcard { align-self: end; }
@media (max-width: 1080px) { .hcard { display: none; } }
.rep__foot .mini-btn--ok { display: inline-flex; align-items: center; gap: 6px; background: var(--violet); padding: 9px 16px; font-size: 13.5px; }
.rep__foot .mini-btn--ok svg { width: 13px; height: 13px; }

/* ==========================================================================
   Casos de uso: 4 tarjetas clicables
   ========================================================================== */
.ucard__img { position: relative; }
.lbox { --lpad: clamp(20px, 4vw, 56px); padding: clamp(32px, 5vw, 64px) var(--lpad) 0; border-radius: 32px; background: var(--night); color: var(--white); overflow: hidden; }
.lbox .label { color: #b8a8ff; }
.lbox .ucard { color: var(--ink); }
.lbox .ucard .label { color: var(--violet); }
.lbox__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 72px); align-items: center; margin-bottom: clamp(32px, 4vw, 52px); }
.lbox__head .h2 { max-width: 13em; }
.lbox__head .lead { margin-top: 18px; max-width: 30rem; color: rgba(255, 255, 255, 0.7); }
.lstack { display: grid; gap: 10px; }
.lstack > div { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center; padding: 20px 22px; border-radius: 18px; }
.lstack img, .lstack svg { grid-row: span 2; width: 40px; height: 40px; }
.lstack b { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.lstack span { font-size: 13.5px; color: rgba(255, 255, 255, 0.7); }
.lstack__plexo { position: relative; z-index: 1; margin: 0 28px -22px 0; background: var(--violet); box-shadow: 0 28px 48px -18px rgba(109, 79, 253, 0.8); }
.lstack__plexo img { padding: 7px; border-radius: 11px; background: var(--white); }
.lstack__sys { padding-top: 38px !important; margin-left: 28px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.lstack__sys svg { padding: 9px; border-radius: 11px; background: rgba(255, 255, 255, 0.08); color: #c9bdff; }
.lbox__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: clamp(32px, 4vw, 52px) calc(var(--lpad) * -1) 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.lbox__stat { display: flex; flex-direction: column; gap: 10px; padding: clamp(24px, 3vw, 36px) var(--lpad); }
.lbox__stat + .lbox__stat { border-left: 1px solid rgba(255, 255, 255, 0.12); }
.lbox__stat b { font-size: clamp(40px, 4.6vw, 64px); font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
.lbox__stat > span { font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, 0.62); }
.lbox__stat--cta { justify-content: center; align-items: flex-start; gap: 16px; background: var(--violet); border-left: 0 !important; }
.lbox__stat--cta > span { color: rgba(255, 255, 255, 0.88); max-width: 22rem; }
@media (max-width: 900px) { .lbox__head { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .lbox__stats { grid-template-columns: 1fr 1fr; }
  .lbox__stat--cta { grid-column: 1 / -1; }
}
.uc-n {
  position: absolute; top: 16px; left: 16px; z-index: 4;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white);
  color: var(--violet);
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  box-shadow: 0 6px 16px -6px rgba(18, 18, 43, 0.35);
}
.ucards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.ucard {
  display: flex; flex-direction: column;
  border-radius: 24px; overflow: hidden; background: var(--surface);
  transform-origin: center;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.ucard__img { aspect-ratio: 4 / 3.4; overflow: hidden; }
.ucard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.ucard__body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 20px; }
.ucard__body h3 { margin-top: 10px; font-size: 21px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }
.ucard__body > p:not(.label) { margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.ucard__go { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; }
.ucard__go svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .ucard:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 0 0 1px var(--ink), 0 24px 48px -24px rgba(18, 18, 43, 0.35); }
  .ucard:hover .ucard__img img { transform: scale(1.06); }
  .ucard:hover .ucard__go svg { transform: translateX(3px); }
}
.ucard.is-going { transform: scale(1.06); box-shadow: 0 0 0 2px var(--violet), 0 30px 60px -24px rgba(18, 18, 43, 0.45); z-index: 2; position: relative; }
.ucard:active { transform: scale(0.99); }
@media (max-width: 900px) { .ucards { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ucards { grid-template-columns: 1fr; } }

/* ==========================================================================
   Integración: roadmap simple
   ========================================================================== */

/* Home: seguridad y cumplimiento (bloque compacto) */
.sc { padding: var(--section) 0; }
.sc__box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(32px, 5vw, 64px); border-radius: 28px; background: var(--night); color: var(--white); }
.sc__copy .label { color: #b8a8ff; }
.sc__copy h2 { margin-top: 14px; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; max-width: 14ch; }
.sc__copy > p:not(.label) { margin-top: 16px; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,0.72); max-width: 30rem; }
.sc__ctas { margin-top: 28px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.sc__link { font-size: 15px; font-weight: 500; color: rgba(255,255,255,0.85); border-bottom: 1px solid rgba(255,255,255,0.4); padding-bottom: 2px; }
.sc__rows { display: grid; gap: 12px; }
.sc__row { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 16px; background: rgba(255,255,255,0.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1); }
.sc__ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(109,79,253,0.22); color: #c9bdff; }
.sc__ico svg { width: 20px; height: 20px; }
.sc__row b { font-size: 16px; font-weight: 600; }
.sc__row p { margin-top: 4px; font-size: 14.5px; line-height: 1.5; color: rgba(255,255,255,0.68); }
@media (hover: hover) and (pointer: fine) { .sc__link:hover { color: var(--white); border-color: var(--white); } }
@media (max-width: 900px) { .sc__box { grid-template-columns: 1fr; } }

/* ==========================================================================
   Partners: pasos del programa de referidos (estilo Darwin)
   ========================================================================== */
.rsteps__head { margin-top: clamp(56px, 7vw, 96px); text-align: center; }
.rsteps__head h3 { font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -0.025em; font-weight: 700; }
.rsteps__head p { margin-top: 10px; font-size: 17px; color: var(--ink-2); }
.rsteps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rstep { padding: 28px 28px 30px; border-radius: 22px; background: var(--surface); }
.rstep__top { display: flex; justify-content: space-between; align-items: flex-start; }
.rstep__n { font-size: clamp(48px, 5vw, 72px); line-height: 1; font-weight: 700; letter-spacing: -0.04em; color: var(--violet); }
.rstep__ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--white); color: var(--violet); box-shadow: 0 0 0 1px var(--line); }
.rstep__ico svg { width: 24px; height: 24px; }
.rstep strong { display: block; margin-top: 28px; padding-bottom: 14px; border-bottom: 1px solid #dcdce6; font-size: 19px; font-weight: 700; letter-spacing: -0.015em; }
.rstep p { margin-top: 14px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.rsteps__cta { margin-top: 32px; text-align: center; }
@media (max-width: 900px) { .rsteps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .rsteps { grid-template-columns: 1fr; } }

/* ==========================================================================
   Partners: integración paso a paso animada
   ========================================================================== */

.esteps { list-style: none; margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.estep { position: relative; padding: 22px 20px 26px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; overflow: hidden; transition: background-color 0.3s var(--ease-out), box-shadow 0.3s; }
.estep > span { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.estep strong { display: block; margin-top: 14px; font-size: 16.5px; font-weight: 600; letter-spacing: -0.012em; color: var(--ink-3); transition: color 0.3s; }
.estep p { margin-top: 6px; font-size: 14.5px; line-height: 1.55; color: var(--ink-3); }
.estep.is-on { background: var(--surface); box-shadow: none; }
.estep.is-on > span { color: var(--violet); }
.estep.is-on strong { color: var(--ink); }
.estep.is-on p { color: var(--ink-2); }
.estep__bar { position: absolute; left: 20px; right: 20px; bottom: 12px; height: 2px; border-radius: 2px; background: rgba(18,18,43,0.08); overflow: hidden; opacity: 0; }
.estep__bar::after { content: ""; position: absolute; inset: 0; background: var(--violet); transform: scaleX(0); transform-origin: left; }
.esteps.is-playing .estep.is-on .estep__bar { opacity: 1; }
.esteps.is-playing .estep.is-on .estep__bar::after { animation: pipe-progress 3.2s linear forwards; }
@media (max-width: 860px) { .esteps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .esteps { grid-template-columns: 1fr; } }

/* ==========================================================================
   Facturación: tablero del circuito de cobro
   ========================================================================== */
.agent__media--dash {
  aspect-ratio: auto;
  display: flex; align-items: center;
  padding: clamp(18px, 3vw, 40px);
  background: radial-gradient(120% 90% at 85% 0%, #e6e0ff 0%, var(--surface) 55%);
}
.dash {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(18,18,43,.04), 0 24px 60px -24px rgba(30,30,87,.22);
  padding: clamp(16px, 2vw, 24px);
  display: grid; gap: clamp(14px, 1.6vw, 20px);
  font-size: 13px; color: var(--ink);
  transform: translateY(18px); opacity: 0;
  transition: transform 1s var(--ease-out), opacity .8s var(--ease-out);
}
.agent__media.is-in .dash { transform: none; opacity: 1; }

.dash__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.dash__head strong { display: block; font-size: 16px; letter-spacing: -0.01em; }
.dash__head span { display: block; margin-top: 2px; color: var(--ink-3); font-size: 12px; }

.dash__filters { display: flex; flex-wrap: wrap; gap: 8px; }
.dash__seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 10px; background: var(--surface); }
.dash__seg button { padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: 12px; font-weight: 600; color: var(--ink-3); cursor: pointer; transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.dash__seg button.is-on { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(18, 18, 43, 0.08), 0 0 0 1px var(--line); }
@media (hover: hover) and (pointer: fine) { .dash__seg button:not(.is-on):hover { color: var(--ink); } }
.dash__seg button:focus-visible { outline: 2px solid var(--violet); outline-offset: 1px; }
.dash__kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dash__kpi { background: var(--surface); border-radius: 12px; padding: 12px; min-width: 0; }
.dash__kpi > span { display: block; font-size: 11px; color: var(--ink-3); line-height: 1.25; min-height: 2.5em; }
.dash__kpi strong { display: block; margin-top: 6px; font-size: clamp(17px, 1.6vw, 22px); letter-spacing: -0.03em; font-weight: 700; white-space: nowrap; }
.dash__kpi strong b { font-weight: inherit; }
.dash__kpi strong small { font-size: 0.58em; font-weight: 600; letter-spacing: 0; color: var(--ink-3); }
.dash__kpi em { display: block; margin-top: 4px; font-style: normal; font-size: 11px; color: var(--ink-3); line-height: 1.3; }
.dash__kpi em.ok { color: var(--ok); }
.dash__kpi em.warn { color: var(--warn); }

.dash__sub { margin: 0 0 8px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.dash__stack { display: flex; gap: 3px; height: 12px; }
.dash__stack i {
  display: block; height: 100%; border-radius: 3px;
  width: calc(var(--w) - 3px); flex: none;
  transform-origin: left; transform: scaleX(0);
  transition: transform 1s var(--ease-out), width 0.55s var(--ease-out);
}
.dash__stack i:nth-child(2) { transition-delay: .12s; }
.dash__stack i:nth-child(3) { transition-delay: .24s; }
.dash__stack i:nth-child(4) { transition-delay: .36s; }
.agent__media.is-in .dash__stack i { transform: scaleX(1); }
.dash .c1 { background: var(--violet); }
.dash .c2 { background: #c4b8ff; }
.dash .c3 { background: #f2a65a; }
.dash .c4 { background: var(--warn); }
.dash__legend { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11px; color: var(--ink-2); }
.dash__legend li { display: inline-flex; align-items: center; gap: 6px; }
.dash__legend i { width: 8px; height: 8px; border-radius: 2px; }

.dash__table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.dash__row {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr .7fr; gap: 10px; align-items: center;
  padding: 9px 12px; border-top: 1px solid var(--line);
}
.dash__row:first-child { border-top: 0; }
.dash__row > span { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; }
.dash__row > span:first-child { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.dash__row > span:last-child { justify-content: flex-end; }
.dash__row--h { background: var(--surface); padding-block: 8px; font-size: 11px; color: var(--ink-3); }
.dash__row--h > span:first-child { font-weight: 500; }
.dash__row .warn { color: var(--warn); font-weight: 600; }
.dash__row.is-alert { background: #fff7f2; }
.dash__row { transition: opacity 0.3s, background-color 0.3s; }
.dash__row.is-sel { background: var(--violet-soft); }
.dash__row.is-sel.is-alert { background: #fff7f2; }
.dash__row.is-dim { opacity: 0.35; }
.dash__bar {
  display: block; flex: 0 0 auto; width: calc(var(--w) * 0.44); max-width: 44px; height: 6px; border-radius: 3px;
  background: var(--violet);
  transform-origin: left; transform: scaleX(0);
  transition: transform .9s var(--ease-out) .3s, width .55s var(--ease-out);
}
.dash__bar--warn { background: #f2a65a; }
.dash__row.is-alert .dash__bar--warn { background: var(--warn); }
.agent__media.is-in .dash__bar { transform: scaleX(1); }

.dash__alert {
  display: flex; align-items: center; gap: 12px;
  background: var(--night); color: var(--white);
  border-radius: 12px; padding: 12px 14px;
  transform: translateY(8px); opacity: 0;
  transition: transform .8s var(--ease-out) 1.1s, opacity .6s var(--ease-out) 1.1s;
}
.agent__media.is-in .dash__alert { transform: none; opacity: 1; }
.dash__alert-ico { width: 30px; height: 30px; flex: none; border-radius: 9px; background: var(--white); display: grid; place-items: center; }
.dash__alert-ico img { width: 18px; height: 18px; }
.dash__alert p { margin: 0; flex: 1; min-width: 0; line-height: 1.35; }
.dash__alert strong { display: block; font-size: 12.5px; }
.dash__alert span { display: block; font-size: 11.5px; color: rgba(255,255,255,.65); }
.dash__btn { flex: none; background: var(--violet); color: var(--white); font-size: 12px; font-weight: 600; border-radius: 8px; padding: 8px 12px; }

@media (max-width: 600px) {
  .dash__head span { font-size: 11px; }
  .dash__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash__kpi > span { min-height: 0; }
  .dash__row { grid-template-columns: 1.3fr 1fr 1fr; gap: 6px; padding-inline: 10px; font-size: 12px; }
  .dash__row > span:last-child { display: none; }
  .dash__row > span:nth-child(3) { justify-content: flex-end; }
  .dash__bar { display: none; }
  .dash__alert { flex-wrap: wrap; }
  .dash__alert p { flex-basis: calc(100% - 42px); }
  .dash__btn { margin-left: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .dash, .dash__stack i, .dash__bar, .dash__alert { transition: none; }
}
.dash__row b { font-weight: inherit; }

/* Consulta de integración dentro de las preguntas frecuentes */
.his-lead { margin-top: 18px; padding: 18px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.his-lead__title { font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.his-lead__row { margin-top: 12px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.his-lead__field { display: grid; gap: 6px; }
.his-lead__field span { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.his-lead__field input { width: 100%; height: 44px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font: inherit; font-size: 15px; color: var(--ink); }
.his-lead__field input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--violet); }
.his-lead .btn { height: 44px; }
.his-lead .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.his-lead__msg { margin-top: 10px; font-size: 13.5px; color: var(--ink-2); }
.his-lead__msg:empty { display: none; }
.his-lead__msg.ok { color: var(--ok); }
.his-lead__msg.err { color: var(--warn); }
@media (max-width: 720px) { .his-lead__row { grid-template-columns: 1fr; } }

/* ---------- Formulario de contacto (modal): "Probar ahora" y demás CTAs ---------- */
.cform { width: min(600px, calc(100vw - 32px)); max-height: calc(100vh - 32px); margin: auto; padding: 0; border: 0; border-radius: 24px; background: var(--white); color: var(--ink); box-shadow: 0 30px 80px rgba(11, 11, 29, 0.35); overflow: auto; }
.cform::backdrop { background: rgba(11, 11, 29, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cform[open] { animation: lead-in 0.32s var(--ease-out); }
@keyframes lead-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.cform__form { position: relative; padding: 36px 36px 32px; }
.cform__close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 999px; background: var(--surface); color: var(--ink-2); transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out); }
.cform__close svg { width: 14px; height: 14px; }
.cform__close:hover { background: var(--line); color: var(--ink); }
.cform__title { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; padding-right: 44px; }
.cform__sub { margin-top: 8px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.cform__grid { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cform.is-light .cform__grid { grid-template-columns: 1fr; }
.cform__field { display: grid; gap: 6px; min-width: 0; }
.cform__field[hidden] { display: none; }
.cform__field span { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.cform__field input, .cform__field select { width: 100%; height: 46px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font: inherit; font-size: 15px; color: var(--ink); }
.cform__field select { appearance: none; -webkit-appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5l3.5 3.5 3.5-3.5' fill='none' stroke='%23474761' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.cform__field input:focus, .cform__field select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--violet); background-color: var(--white); }
.cform__field input::placeholder { color: var(--ink-3); }
.cform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform__submit { margin-top: 20px; width: 100%; justify-content: center; }
.cform__msg { margin-top: 12px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.cform__msg:empty { display: none; }
.cform__msg.ok { color: var(--ok); }
.cform__msg.err { color: var(--warn); }
.cform__form.is-done .cform__grid, .cform__form.is-done .cform__submit { display: none; }
.cform__form.is-done .cform__msg { margin-top: 20px; font-size: 16px; }
.cform-open { overflow: hidden; }
@media (max-width: 560px) {
  .cform { border-radius: 20px; }
  .cform__form { padding: 28px 22px 24px; }
  .cform__grid { grid-template-columns: 1fr; }
  .cform__title { font-size: 23px; }
}
