@font-face {
  font-family: Figtree;
  src: url("/assets/figtree-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

/* Second read. Evolución de quiet-hours: misma identidad oscura de MedSensei,
   con más ritmo entre secciones, el producto real explicado y solo contenido
   que medsensei.io ya afirma. Sin sombras decorativas, sin degradados de fondo,
   sin tarjetas iguales en fila. */
:root {
  color-scheme: dark;
  --bg: #08080b;
  --bg-2: #0f0f13;
  --bg-3: #15151b;
  --bg-warm: #17121a;
  --paper: #f3f1ec;
  --paper-2: #e9e6de;
  --paper-ink: #1c1c22;
  --paper-muted: #5d5d66;
  --paper-line: #d9d5cc;
  --ink: #e8eaed;
  --ink-2: #9aa0a6;
  --ink-3: #7c818a; /* 5:1 sobre --bg; el anterior no llegaba a 4,5:1 */
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --accent: #c9a3e8;
  --coral: #f0a0ab;
  --ok: #8fdcb0; /* verde de estado sin llegar a neón */
  --skeleton: #16161c;
  --skeleton-2: #1f1f27;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
/* Las apariciones laterales no deben crear scroll horizontal. `clip` no crea un
   contenedor de scroll, así que los elementos sticky de dentro siguen funcionando. */
main,
.site-footer {
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Figtree, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, figure, dl, dd, ol, ul {
  margin: 0;
}
ol, ul {
  padding: 0;
  list-style: none;
}
p, dd, li {
  text-wrap: pretty;
}
button, input {
  font: inherit;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--accent);
}
p a, dd a, li a {
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
p a:hover, dd a:hover, li a:hover {
  text-decoration-color: currentColor;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
::selection {
  background: var(--accent);
  color: var(--bg);
}
[hidden] {
  display: none !important;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
b, strong {
  font-weight: 600;
}

.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--pad);
}
.section {
  padding-block: clamp(64px, 8vw, 116px);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--bg);
  z-index: 30;
  border-radius: 999px;
}
.skip-link:focus {
  top: 12px;
}

/* Tipografía */
.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
h1 {
  font-size: clamp(42px, 7.2vw, 92px);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}
h2 {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}
h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.lede {
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 44ch;
}
.section-head {
  max-width: 720px;
  display: grid;
  gap: 18px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head p:not(.eyebrow) {
  color: var(--ink-2);
  font-size: 18px;
}

/* Controles */
.button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease), box-shadow 0.25s ease;
}
/* Destello diagonal que recorre el botón una vez al entrar el cursor, como la
   línea de adquisición del fondo. Tinte lavanda y azul de la marca, muy leve. */
.button::after {
  content: "";
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: -45%;
  width: 45%;
  background: linear-gradient(100deg, transparent 0%, rgba(145, 104, 192, 0.22) 40%, rgba(66, 133, 244, 0.18) 60%, transparent 100%);
  transform: skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}
.button:hover,
.button:focus-visible {
  background: #fff;
  border-color: #fff;
  color: var(--bg);
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px rgba(201, 163, 232, 0.16);
}
.button:hover::after,
.button:focus-visible::after {
  animation: button-sheen 0.75s cubic-bezier(0.3, 0.6, 0.2, 1) forwards;
}
.button:active {
  transform: translateY(0);
  transition-duration: 0.08s;
}
@keyframes button-sheen {
  0% {
    left: -45%;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    left: 110%;
    opacity: 0;
  }
}
.button-small {
  min-height: 38px;
  padding: 0 18px;
  font-size: 14px;
}
.text-link {
  font-weight: 500;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
}
.text-link:hover {
  border-color: currentColor;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}
.status.is-ok {
  color: var(--ok);
}
.status.is-beta {
  color: var(--accent);
}
.status.is-soon {
  color: var(--ink-3);
}

/* Cabecera */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.brand:hover {
  color: inherit;
}
.brand span {
  font-weight: 400;
  color: var(--ink-3);
  margin-left: -10px;
}
.header-inner nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.header-inner nav a {
  font-size: 15px;
  color: var(--ink-2);
  white-space: nowrap;
}
.header-inner nav a:hover {
  color: var(--ink);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
.header-actions .text-link {
  font-size: 15px;
  border: 0;
  color: var(--ink-2);
  white-space: nowrap;
}
.header-actions .text-link:hover {
  color: var(--ink);
}
.menu-toggle {
  display: none;
  border: 1px solid var(--line-2);
  background: transparent;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
}

/* Portada */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 5.5vw, 84px) clamp(56px, 7vw, 96px);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 72% 78% at 50% 50%, #000 50%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 78% at 50% 50%, #000 50%, transparent 100%);
}
.hero-inner {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 26px;
}
.hero h1 {
  max-width: 16ch;
}
.hero .lede {
  text-wrap: balance;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 28px;
  margin-top: 6px;
}
.dictation {
  --beam-radius: 14px;
  --beam-duration: 8s;
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 760px;
  margin-top: clamp(24px, 4vw, 48px);
  text-align: left;
  border: 1px solid var(--line-2);
  border-radius: var(--beam-radius);
  background: var(--bg-2);
}
/* Border beam: una luz que recorre el borde del cuadro de dictado. Dos capas
   que viajan juntas por el mismo camino (CSS Motion Path, sin librerías):
   la línea, recortada al anillo de 1 px del borde, y un halo difuso desplazado
   hacia fuera. Colores del logotipo. Solo si el navegador soporta rect(). */
.dictation-glow,
.dictation-beam {
  display: none;
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
}
.dictation-glow {
  inset: 0;
  overflow: hidden;
  z-index: -1;
}
.dictation-beam {
  inset: -1px;
  padding: 1px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.dictation-glow::before,
.dictation-beam::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  offset-path: rect(0 auto auto 0 round var(--beam-radius));
  animation: beam-travel var(--beam-duration) linear infinite;
}
.dictation-beam::before {
  width: 280px;
  height: 280px;
  background: linear-gradient(to left, transparent 0%, rgba(240, 160, 171, 0.75) 18%, rgba(201, 163, 232, 0.7) 44%, rgba(66, 133, 244, 0.45) 72%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 38%, #000 62%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 38%, #000 62%, transparent);
}
.dictation-glow::before {
  width: 260px;
  height: 260px;
  offset-anchor: 50% 84%;
  background: radial-gradient(closest-side, rgba(201, 163, 232, 0.38), rgba(66, 133, 244, 0.12) 55%, transparent 100%);
  filter: blur(26px);
  opacity: 0.4;
}
@supports (offset-path: rect(0 auto auto 0)) {
  .dictation-glow,
  .dictation-beam {
    display: block;
  }
}
@keyframes beam-travel {
  to {
    offset-distance: 100%;
  }
}
.dictation-input {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 26px 28px 22px;
}
.mic {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  color: var(--coral);
}
.mic svg {
  width: 16px;
  height: 16px;
}
.dictation-text {
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.55;
  color: var(--ink);
  padding-top: 5px;
  transition: opacity 0.35s ease;
  /* Cuatro líneas reservadas: la caja no cambia de alto mientras se escribe */
  min-height: calc(4 * 1.55em);
}
.dictation-text.is-clearing {
  opacity: 0;
}
.dictation-text::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin-left: 3px;
  vertical-align: text-bottom;
  background: var(--coral);
}
.dictation:not(.is-listening) .dictation-text::after {
  animation: blink 1.1s steps(2, start) infinite;
}
.dictation.is-listening .mic::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 999px;
  border: 1px solid rgba(240, 160, 171, 0.55);
  animation: mic-ring 2.4s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}
.dictation .meta-listening {
  display: none;
  color: var(--coral);
}
.dictation.is-listening .meta-listening {
  display: inline;
}
.dictation.is-listening .meta-done {
  display: none;
}
.dictation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding: 14px 28px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-2);
}
.dictation-meta b {
  color: var(--ink);
  font-weight: 500;
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 32px;
  font-size: 14px;
  color: var(--ink-2);
}
.hero-facts li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-facts li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--ink-3);
}

/* Cifras */
.stats {
  padding-bottom: clamp(16px, 3vw, 40px);
}
.stats dl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats dl > div {
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
  padding: 28px 24px;
}
.stats dl > div + div {
  border-left: 1px solid var(--line);
}
.stats dd {
  font-size: clamp(34px, 3.6vw, 48px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stats dt {
  font-size: 14px;
  color: var(--ink-2);
}

/* Imágenes con esqueleto de carga */
.image-shell {
  position: relative;
  overflow: hidden;
}
.image-shell img {
  transition: opacity 0.25s ease;
}
.image-skeleton {
  position: absolute;
  inset: 0;
  display: none;
}
.js .image-shell:not(.is-ready) .image-skeleton {
  display: block;
}
.js .image-shell:not(.is-ready) img {
  opacity: 0;
}
.image-error {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 24px;
  color: var(--ink-2);
  font-size: 15px;
}

/* Cómo funciona */
.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.how-steps {
  display: grid;
  gap: 18px;
}
.how-steps ol {
  margin-top: 30px;
  display: grid;
}
.how-steps li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px 20px;
  padding-block: 26px;
  border-top: 1px solid var(--line);
}
.how-steps li:last-child {
  border-bottom: 1px solid var(--line);
}
.how-steps .n {
  grid-row: 1 / span 2;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  padding-top: 6px;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.how-steps li p {
  color: var(--ink-2);
}
/* El informe en papel: arriba lo que se dictó, abajo lo que Sensei redacta.
   Todo lo del informe sale del dictado; nada se agrega. */
.report {
  position: sticky;
  top: 104px;
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: 4px;
  overflow: hidden;
  font-size: 15.5px;
  line-height: 1.6;
}
.report-dictation {
  background: var(--paper-2);
  padding: 22px 38px 20px;
  border-bottom: 1px solid var(--paper-line);
}
.report-label {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-muted);
}
.report-said {
  font-size: 14.5px;
  line-height: 1.65;
  color: #45454d;
}
.report-body {
  padding: 26px 38px 28px;
}
.report header,
.report footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper-muted);
}
.report header {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--paper-line);
}
.report header b {
  color: var(--paper-ink);
  font-weight: 600;
}
.report h4 {
  margin-top: 22px;
  margin-bottom: 6px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.report-impression {
  list-style: decimal;
  padding-left: 20px;
}
.report mark {
  background: transparent;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #b98cc4;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.report footer {
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid var(--paper-line);
}

/* Biblioteca: la captura real de la app con tres marcas y su leyenda */
.library-frame {
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #0b0b0e;
  aspect-ratio: 1016 / 668;
}
.library-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.library-skeleton {
  display: none;
  grid-template-columns: 25% 1fr;
}
.js .image-shell:not(.is-ready) .library-skeleton {
  display: grid;
}
.library-skeleton .side,
.library-skeleton .main {
  padding: 5% 3%;
  display: grid;
  align-content: start;
  gap: 16px;
}
.library-skeleton .side {
  border-right: 1px solid var(--line);
}
.library-skeleton i {
  display: block;
  height: 14px;
  border-radius: 4px;
  background: var(--skeleton-2);
}
.library-skeleton .main i {
  height: 38px;
}
.library-skeleton .main i:first-child {
  width: 40%;
  height: 18px;
}
.pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  translate: -50% -50%;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--bg);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 0 0 5px rgba(201, 163, 232, 0.18);
  transition: opacity 0.4s ease 0.2s;
}
.js .image-shell:not(.is-ready) .pin {
  opacity: 0;
}
.library-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px clamp(24px, 4vw, 56px);
  margin-top: 28px;
}
.library-legend li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.pin-key {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}
.library-legend p {
  color: var(--ink-2);
  font-size: 15.5px;
}
.library-legend b {
  color: var(--ink);
}

/* Bienestar */
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.photo {
  aspect-ratio: 3 / 2;
  border-radius: 8px;
  background: var(--skeleton);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-skeleton {
  background: var(--skeleton);
}
.why-copy {
  display: grid;
  gap: 18px;
}
.reasons {
  margin-top: 18px;
  display: grid;
}
.reasons > div {
  padding-block: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
}
.reasons dt {
  font-weight: 600;
  font-size: 17px;
}
.reasons dd {
  color: var(--ink-2);
  font-size: 16px;
}

/* Especialidades */
.spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 5vw, 72px);
  border-top: 1px solid var(--line);
}
.spec-list > div {
  display: grid;
  grid-template-columns: minmax(150px, 34%) 1fr;
  gap: 8px 24px;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}
.spec-list dt {
  font-weight: 600;
}
.spec-list dd {
  color: var(--ink-2);
  font-size: 16px;
}
.spec-more {
  margin-top: 28px;
  color: var(--ink-2);
}

/* Integraciones: la extensión como protagonista, el resto en una tabla sobria */
.int-feature {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.int-copy {
  display: grid;
  gap: 18px;
}
.int-copy p:not(.eyebrow) {
  color: var(--ink-2);
  font-size: 18px;
  max-width: 46ch;
}
.int-ext {
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--bg-2);
}
.int-ext-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.int-ext-head b {
  font-size: 17px;
}
.int-ext dl {
  padding: 6px 24px;
}
.int-ext dl > div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  padding-block: 14px;
}
.int-ext dl > div + div {
  border-top: 1px solid var(--line);
}
.int-ext dt {
  font-size: 13px;
  color: var(--ink-3);
  padding-top: 2px;
}
.int-ext dd {
  font-size: 15.5px;
}
.int-more {
  margin-top: clamp(56px, 7vw, 96px);
}
.int-more h3 {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.int-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
}
.int-table th,
.int-table td {
  text-align: left;
  vertical-align: top;
  padding: 16px 24px 16px 0;
  border-bottom: 1px solid var(--line);
}
.int-table tbody th {
  width: 22%;
  font-weight: 600;
  white-space: nowrap;
}
.int-table td {
  color: var(--ink-2);
}
.int-table td:last-child {
  width: 1%;
  padding-right: 0;
  text-align: right;
}
.int-custom {
  margin-top: 28px;
  color: var(--ink-2);
  max-width: 72ch;
}

/* Seguridad: banda propia para cambiar el ritmo de la página */
.security {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
  padding-block: clamp(72px, 9vw, 120px);
}
.sec-head {
  max-width: 760px;
  margin: 0 auto clamp(40px, 5vw, 64px);
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
}
.sec-head p:not(.eyebrow) {
  color: var(--ink-2);
  max-width: 60ch;
}
.sec-grid {
  max-width: 960px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.sec-grid > div {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 28px 36px;
  border-bottom: 1px solid var(--line);
}
.sec-grid > div:nth-child(odd) {
  padding-left: 0;
  border-right: 1px solid var(--line);
}
.sec-grid > div:nth-child(even) {
  padding-right: 0;
}
.sec-grid dt {
  font-weight: 600;
  font-size: 18px;
}
.sec-grid dd {
  color: var(--ink-2);
}
.sec-link {
  margin-top: 36px;
  text-align: center;
}

/* Preguntas */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.faq-head {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 18px;
}
.faq-head p:not(.eyebrow) {
  color: var(--ink-2);
}
.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;
  padding: 22px 44px 22px 0;
  font-size: 19px;
  font-weight: 500;
  position: relative;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 14px;
  height: 14px;
  translate: 0 -50%;
  background:
    linear-gradient(var(--ink-2), var(--ink-2)) center / 14px 1px no-repeat,
    linear-gradient(var(--ink-2), var(--ink-2)) center / 1px 14px no-repeat;
}
.faq-list details[open] summary::after {
  background: linear-gradient(var(--ink-2), var(--ink-2)) center / 14px 1px no-repeat;
}
.faq-list details p {
  padding: 0 0 24px;
  color: var(--ink-2);
  max-width: 64ch;
}

/* Demo */
.demo-card {
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(32px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}
.demo-copy {
  display: grid;
  gap: 18px;
}
.demo-copy p:not(.eyebrow) {
  color: var(--ink-2);
}
.demo-copy .demo-note {
  font-size: 14px;
  color: var(--ink-3);
}
.demo-form {
  display: grid;
  gap: 18px;
}
.demo-form label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}
.demo-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  color: var(--ink);
}
.demo-form input::placeholder {
  color: var(--ink-3);
}
.demo-form input:focus {
  outline: none;
  border-color: var(--accent);
}
.demo-form input[aria-invalid="true"] {
  border-color: var(--coral);
}
.demo-form .help {
  font-size: 13.5px;
  color: var(--ink-3);
}
.demo-form .error {
  font-size: 13.5px;
  color: var(--coral);
}
.demo-form .button {
  justify-self: start;
}
.demo-form .feedback a {
  color: var(--ink);
}

/* Pie */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 56px 36px;
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px 64px;
}
.footer-brand p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-2);
}
.footer-nav {
  display: flex;
  gap: clamp(32px, 6vw, 88px);
}
.footer-nav div {
  display: grid;
  gap: 10px;
  align-content: start;
}
.footer-nav p {
  margin-bottom: 4px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.footer-nav a {
  font-size: 14.5px;
  color: var(--ink-2);
}
.footer-nav a:hover {
  color: var(--ink);
}
.footer-legal {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-3);
}

/* Páginas legales */
.legal-header {
  padding-top: clamp(56px, 8vw, 110px);
  max-width: 760px;
  display: grid;
  gap: 18px;
}
.legal-header h1 {
  font-size: clamp(34px, 4.6vw, 60px);
}
.legal-header p {
  color: var(--ink-2);
  font-size: 18px;
}
.legal-content {
  max-width: 760px;
  padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 110px);
  display: grid;
  gap: 40px;
}
.legal-content section {
  display: grid;
  gap: 14px;
}
.legal-content h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.legal-content h2 .n {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.legal-content p,
.legal-content li {
  color: var(--ink-2);
}
.legal-content ul {
  display: grid;
  gap: 12px;
  padding-left: 18px;
  list-style: disc;
}
.legal-content .contact {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 16px;
  justify-items: start;
}
.legal-content .contact p {
  color: var(--ink);
}
.legal-content .btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.legal-content .btn:hover {
  background: var(--bg-3);
  color: var(--ink);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 14px;
  color: var(--ink-2);
}
.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

/* Responsive */
@media (max-width: 1160px) {
  .header-inner {
    gap: 16px;
  }
  .menu-toggle {
    display: inline-block;
  }
  .header-inner nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 12px var(--pad) 22px;
    flex-direction: column;
    gap: 4px;
  }
  .header-inner nav.is-open {
    display: flex;
  }
  .header-inner nav a {
    padding: 12px 0;
    font-size: 17px;
    border-top: 1px solid var(--line);
  }
  .header-actions {
    margin-left: auto;
    gap: 12px;
  }
}
@media (max-width: 1000px) {
  .how-grid,
  .why-grid,
  .int-feature,
  .faq-grid,
  .demo-card {
    grid-template-columns: 1fr;
  }
  .report,
  .faq-head {
    position: static;
  }
  .stats dl {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats dl > div:nth-child(3) {
    border-left: 0;
  }
  .stats dl > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .spec-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }
  .hero-inner {
    text-align: left;
    justify-items: start;
  }
  .hero-actions,
  .hero-facts {
    justify-content: flex-start;
  }
  .dictation-input {
    padding: 20px;
    gap: 14px;
  }
  .dictation-meta {
    padding: 12px 20px;
  }
  .report-dictation {
    padding: 18px 22px 16px;
  }
  .report-body {
    padding: 22px 22px 24px;
  }
  .report header,
  .report footer {
    flex-direction: column;
    gap: 2px;
  }
  .pin {
    width: 20px;
    height: 20px;
    font-size: 11px;
    box-shadow: 0 0 0 3px rgba(201, 163, 232, 0.18);
  }
  .library-legend {
    grid-template-columns: 1fr;
  }
  .spec-list > div {
    grid-template-columns: 1fr;
  }
  .int-ext dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .int-table tr {
    display: grid;
    gap: 4px;
    padding-block: 16px;
    border-bottom: 1px solid var(--line);
  }
  .int-table th,
  .int-table td,
  .int-table td:last-child {
    width: auto;
    padding: 0;
    border: 0;
    text-align: left;
  }
  .int-table td:last-child {
    order: -1;
  }
  .sec-head {
    justify-items: start;
    text-align: left;
  }
  .sec-grid {
    grid-template-columns: 1fr;
  }
  .sec-grid > div,
  .sec-grid > div:nth-child(odd),
  .sec-grid > div:nth-child(even) {
    padding: 22px 0;
    border-right: 0;
  }
  .sec-link {
    text-align: left;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-nav {
    flex-wrap: wrap;
    gap: 28px 48px;
  }
}
@media (max-width: 480px) {
  .header-actions .button {
    display: none;
  }
  .brand {
    font-size: 19px;
  }
  .stats dl {
    grid-template-columns: 1fr;
  }
  .stats dl > div,
  .stats dl > div + div {
    border-left: 0;
    padding: 20px 0;
  }
  .stats dl > div + div {
    border-top: 1px solid var(--line);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .js .image-shell:not(.is-ready) .library-skeleton i,
  .js .image-shell:not(.is-ready) .photo-skeleton {
    background-image: linear-gradient(90deg, transparent 0, rgba(255, 255, 255, 0.04) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 1.4s linear infinite;
  }
}

/* Apariciones. El hero entra escalonado hacia arriba; las secciones de abajo
   entran desde los lados con un giro leve, la biblioteca y la demo con una
   inclinación en perspectiva. Una sola curva y una sola duración. */
.js [data-reveal] {
  opacity: 0;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(min(var(--i, 0), 6) * 85ms);
}
.js [data-reveal="up"] {
  transform: translateY(36px);
}
.js [data-reveal="left"] {
  transform: translateX(-72px) rotate(-2.5deg);
}
.js [data-reveal="right"] {
  transform: translateX(72px) rotate(2.5deg);
}
.js [data-reveal="slide"] {
  transform: translateX(48px);
}
.js [data-reveal="tilt"] {
  transform: perspective(1400px) rotateX(9deg) translateY(48px) scale(0.97);
  transform-origin: 50% 100%;
}
.js [data-reveal="sheet"] {
  transform: translate(64px, 24px) rotate(4deg);
  transform-origin: 0 100%;
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
.js .hero-inner [data-reveal] {
  transition-duration: 0.8s;
}
@media (max-width: 768px) {
  .js [data-reveal="left"] {
    transform: translateX(-40px) rotate(-2deg);
  }
  .js [data-reveal="right"] {
    transform: translateX(40px) rotate(2deg);
  }
  .js [data-reveal="slide"] {
    transform: translateX(28px);
  }
  .js [data-reveal="sheet"] {
    transform: translate(32px, 20px) rotate(3deg);
  }
}
@keyframes blink {
  to {
    visibility: hidden;
  }
}
@keyframes mic-ring {
  from {
    transform: scale(1);
    opacity: 0.4;
  }
  to {
    transform: scale(1.5);
    opacity: 0;
  }
}
@keyframes shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .image-shell img,
  .button,
  .dictation-text,
  .pin {
    transition: none;
  }
  .dictation-text::after,
  .button:hover::after,
  .button:focus-visible::after,
  .dictation.is-listening .mic::before {
    animation: none;
  }
  .dictation-glow,
  .dictation-beam {
    display: none;
  }
  .button:hover,
  .button:focus-visible {
    transform: none;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
