/* LabMagistral · landing
   Dirección: "The product performs" (tasteskill v2, seed 1534830368). Tokens primero; todo lo demás usa tokens. */

:root {
  --bg: #ffffff;
  --surface: #f4f4f4;
  --ink: #111111;
  --muted: #6b6b6b;
  --accent: #1a4be0;
  --accent-ink: #ffffff;
  --field-1: #111111; --field-1-ink: #ffffff;
  /* tintes del azul, para las bandas y el producto */
  --tint-1: #eef2fd;
  --tint-2: #dbe4fb;
  --tint-3: #c3d2f8;
  --tint-ink: #10308f;
  /* campo profundo: el mismo azul, oscuro, para las secciones de color pleno */
  --deep: #0c1f5e; --deep-2: #132a75; --deep-ink: #ffffff; --deep-mut: #b9c6ef;

  --font-display: "League Spartan", system-ui, sans-serif;
  --font-text: "Figtree", system-ui, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-statement: clamp(1.5rem, 1rem + 1.6vw, 2.25rem);
  --step-head: clamp(2rem, 1.2rem + 3vw, 3.75rem);
  --step-display: clamp(3.25rem, 1rem + 5.6vw, 6rem);

  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(7.5rem, 12vw, 13rem);
  --radius: 0px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[role="list"], ul[class] { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; background: var(--surface); }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: 5rem; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
p { max-width: 62ch; text-wrap: pretty; }
p + p { margin-top: 0.9em; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.04em; line-height: 0.92; text-wrap: balance; }
.head { font-size: var(--step-head); }
.lead { font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; }
.small { font-size: var(--step-small); line-height: 1.45; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }

/* ---------- controles ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 1.4rem; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); text-decoration: none; font-weight: 600; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
.button-small { min-height: 2.5rem; padding: 0 1rem; font-size: var(--step-small); }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; transition: text-decoration-color var(--t-hover) ease; }
.link-plain { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 0.07em; transition: color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: #123bb8; }
  .link:hover { text-decoration-color: currentColor; }
  .link-plain:hover { color: var(--accent); }
}

/* ---------- barra ---------- */
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 2rem; min-height: 4.25rem; background: var(--bg); transition: background-color var(--t-ui) ease; }
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: var(--step-lead); letter-spacing: -0.04em; text-decoration: none; margin-right: auto; padding-top: 0.2em; }
.bar-nav { display: flex; gap: 1.75rem; font-size: var(--step-small); }
.bar-nav a { text-decoration-color: transparent; }

/* ---------- hero ---------- */
.hero { background: var(--tint-1); padding-top: clamp(2.5rem, 6vh, 5rem); padding-bottom: clamp(3rem, 7vw, 6rem); align-items: center; row-gap: 3rem; }
.hero-copy { grid-column: 1 / span 6; padding-top: 0; }
.hero-title { font-size: clamp(2.25rem, 1rem + 3.1vw, 4rem); line-height: 0.9; }
.hero-copy .lead { margin-top: 2rem; }
.actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 2.25rem; }
.hero-note { margin-top: 1.5rem; max-width: 40ch; }
.hero-stage { grid-column: 7 / span 6; position: relative; min-height: clamp(320px, 38vw, 560px); overflow: hidden; background: var(--deep); }
.hero-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 35% 70%; }

/* ---------- fragmentos del producto (reglas propias de interfaz) ---------- */
.ui { --ui-line: #e2e4e8; --ui-mut: #646a73; font-family: var(--font-text); font-size: 14px; line-height: 1.4; color: var(--ink); background: #fff; border: 1px solid var(--ui-line); border-radius: 8px; } /* taste-skill-ignore: dentro de fragmentos data-ui */
.ui p { max-width: none; }
.ui p + p { margin-top: 0; }
.ui-head { display: flex; align-items: center; justify-content: space-between; }
.ui-title { font-weight: 600; font-size: 16px; }
.ui-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--tint-2); color: var(--tint-ink); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.ui-badge-quiet { background: #eef0f2; color: #3c424a; }
.ui-badge.is-ok { background: var(--accent); color: #fff; }
.ui-fields { display: grid; grid-template-columns: minmax(0, 1.6fr) auto; gap: 14px 16px; align-items: end; }
.ui-field { display: grid; gap: 6px; }
.ui-label { font-size: 13px; color: var(--ui-mut); }
.ui-select, .ui-input-field { height: 36px; padding: 0 10px; border: 1px solid #cfd3d9; border-radius: 6px; background: #fff; font-size: 14px; width: 100%; } /* taste-skill-ignore: dentro de fragmentos data-ui */
.ui-select:focus, .ui-input-field:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.ui-seg { display: inline-flex; padding: 3px; gap: 2px; background: #eef0f2; border-radius: 8px; }
.ui-seg button { min-width: 36px; height: 30px; padding: 0 10px; border-radius: 6px; font-size: 14px; color: #3c424a; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.ui-seg button[aria-checked="true"] { background: #fff; color: var(--ink); font-weight: 600; } 
.ui-seg button:active { transform: scale(0.95); }
.ui-seg-wide { display: flex; }
.ui-seg-wide button { flex: 1; }
.ui-check { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.ui-check input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
.ui-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ui-table th { text-align: left; font-weight: 400; font-size: 13px; color: var(--ui-mut); padding: 0 8px 8px; }
.ui-table td { padding: 9px 8px; border-top: 1px solid var(--ui-line); white-space: nowrap; }
.ui-table td:first-child, .ui-table th:first-child { padding-left: 0; }
.ui-table td:last-child, .ui-table th:last-child { padding-right: 0; }
.ui-table .num { text-align: right; }
.ui-table tr { transition: background-color var(--t-ui) ease; }
.ui-table tr.is-new td { background: var(--tint-1); }
.ui-table tr.is-new td:first-child { font-weight: 600; }
.ui-totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #f6f7f9; border-radius: 6px; padding: 12px 14px; gap: 12px; font-variant-numeric: tabular-nums; }
.ui-totals dt { font-size: 13px; color: var(--ui-mut); }
.ui-totals dd { font-size: 16px; font-weight: 600; margin-top: 2px; }
.ui-total dd { font-size: 20px; color: var(--accent); }
.ui-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ui-hint { font-size: 13px; color: var(--ui-mut); max-width: 40ch; }
.ui-btn { flex: none; height: 38px; padding: 0 16px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.ui-btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .ui-btn:hover { background: #2b2b2b; } .ui-btn-quiet:hover { background: #e3e6ea; } .ui-seg button:hover { color: var(--ink); } }
.ui-btn-quiet { background: #eef0f2; color: var(--ink); }
.ui-btn-inline { display: inline-flex; align-items: center; }
.ui-btn-big { height: 52px; width: 100%; font-size: 16px; background: var(--ink); }
.ui-result { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 14px 18px; align-items: start; padding-top: 4px; }
.ui-result[hidden] { display: none; }
.ui-ticket { background: var(--tint-1); border: 1px dashed #9fb3ef; border-radius: 6px; padding: 12px 14px; display: grid; gap: 2px; }
.ui-ticket-title { font-weight: 600; color: var(--tint-ink); }
.ui-log { display: grid; gap: 6px; padding-left: 18px; color: #3c424a; list-style: disc; }
.ui-result .ui-btn { grid-column: 1 / -1; justify-self: start; }

/* ---------- problemas: oraciones con interruptor ---------- */
.problems { padding-top: 0; }
.problems-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; padding-top: clamp(5rem, 9vw, 9rem); padding-bottom: clamp(3rem, 5vw, 5rem); background: var(--deep); color: var(--deep-ink); }
.problems-head .lead { color: var(--deep-mut); }
.problems-head h2 { grid-column: 1 / span 6; }
.problems-intro { grid-column: 8 / span 5; }
.band { --band-bg: var(--bg); --band-ink: var(--ink); background: var(--band-bg); color: var(--band-ink); transition: background-color 420ms var(--ease-out), color 420ms var(--ease-out); }
.band-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; min-height: 20vh; padding-block: 2rem; }
.band-text { grid-column: 1 / span 10; }
.band-sentence { font-size: var(--step-statement); line-height: 1.12; letter-spacing: -0.015em; max-width: 34ch; color: var(--muted); transition: color 420ms var(--ease-out); }
.band-sentence .after { display: none; }
.band-more { display: none; margin-top: 0.75rem; max-width: 60ch; }
.band.is-on .band-sentence { color: var(--band-ink); }
.band.is-on .before { display: none; }
.band.is-on .after { display: inline; }
.band.is-on .band-more { display: block; animation: more-in 420ms var(--ease-out); }
@keyframes more-in { from { opacity: 0; transform: translateY(8px); } }
.band[data-field="1"].is-on { --band-bg: var(--tint-1); }
.band[data-field="2"].is-on { --band-bg: var(--field-1); --band-ink: var(--field-1-ink); }
.band[data-field="3"].is-on { --band-bg: var(--tint-2); }
.band[data-field="4"].is-on { --band-bg: var(--accent); --band-ink: var(--accent-ink); }
.band[data-field="5"].is-on { --band-bg: var(--surface); }
.band[data-field="6"].is-on { --band-bg: var(--tint-3); }
.band[data-field="7"].is-on { --band-bg: var(--field-1); --band-ink: var(--field-1-ink); }
.band[data-field="8"].is-on { --band-bg: var(--tint-1); }
.band[data-field="9"].is-on { --band-bg: var(--tint-2); }
.band:nth-child(even):not(.is-on) { --band-bg: #fafafa; }
.switch { grid-column: 11 / span 2; justify-self: end; position: relative; width: 2.6em; height: 1.4em; font-size: var(--step-statement); border-radius: 999px; background: #d4d6da; transition: background-color var(--t-ui) ease; }
.switch span { position: absolute; top: 0.15em; left: 0.15em; width: 1.1em; height: 1.1em; border-radius: 50%; background: #fff; transition: transform var(--t-ui) var(--ease-out); }
.switch[aria-checked="true"] { background: var(--accent); }
.band[data-field="4"] .switch[aria-checked="true"] { background: var(--field-1); }
.switch[aria-checked="true"] span { transform: translateX(1.2em); }
.switch:active span { width: 1.3em; }
@media (hover: hover) and (pointer: fine) { .switch:hover { background: #c3c6cb; } .switch[aria-checked="true"]:hover { background: #123bb8; } }

/* ---------- recorrido: simulación + video ---------- */
.journey { margin-top: var(--section); background: var(--deep); color: var(--deep-ink); padding-block: clamp(5rem, 9vw, 9rem); }
.journey-in { align-items: start; row-gap: 3rem; }
.journey-text { grid-column: 1 / span 5; display: grid; gap: 1.5rem; }
.journey-text .lead { color: var(--deep-mut); }
.journey-video { width: min(100%, 260px); margin-top: 1rem; }
.journey-video video { display: block; width: 100%; aspect-ratio: 9 / 16; height: auto; object-fit: cover; background: #000; }
.journey-video figcaption { margin-top: 0.75rem; color: var(--deep-mut); }
.sim { grid-column: 7 / span 6; padding: 20px; display: grid; gap: 16px; align-content: start; }
.sim-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sim-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 0; margin: 0; list-style: none; font-size: 12.5px; }
.sim-steps li { padding: 8px 6px; text-align: center; background: #eef0f2; color: #646a73; border-radius: 6px; transition: background-color var(--t-ui) ease, color var(--t-ui) ease; }
.sim-steps li.is-done { background: var(--tint-2); color: var(--tint-ink); }
.sim-steps li.is-on { background: var(--accent); color: #fff; font-weight: 600; }
.sim-body { min-height: 230px; display: grid; gap: 12px; align-content: start; animation: more-in 360ms var(--ease-out); }
.sim-lead { font-weight: 600; }
.sim-card { background: #f6f7f9; border-radius: 6px; padding: 12px 14px; display: grid; gap: 4px; }
.sim-card dt { font-size: 13px; color: var(--ui-mut); }
.sim-label { justify-self: start; width: min(100%, 300px); background: #fff; border: 1px solid #cfd3d9; border-radius: 4px; padding: 12px 14px; display: grid; gap: 2px; font-size: 13px; } /* taste-skill-ignore: rótulo dentro del fragmento data-ui */
.sim-label strong { font-size: 15px; }
.sim-ticket { background: var(--tint-1); border: 1px dashed #9fb3ef; border-radius: 6px; padding: 12px 14px; display: grid; gap: 2px; }
.sim-token { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.sim-token label { display: grid; gap: 6px; }
.sim-token input { width: 9em; letter-spacing: 0.15em; }
.sim-error { color: #b42318; font-size: 13px; }
.sim-foot { display: flex; justify-content: flex-end; }
.sim-log { background: #f6f7f9; border-radius: 6px; padding: 12px 14px; display: grid; gap: 6px; }
.sim-log ul { list-style: disc; padding-left: 18px; display: grid; gap: 4px; color: #3c424a; }
.sim-log li { animation: more-in 360ms var(--ease-out); }
@media (max-width: 63.99em) { .journey-text, .sim { grid-column: 1 / -1; } }
@media (max-width: 40em) { .sim { padding: 14px; } .sim-steps { font-size: 11px; } .sim-steps li { padding: 6px 2px; } .sim .ui-table th:nth-child(2), .sim .ui-table td:nth-child(2) { display: none; } }

/* ---------- pacientes: seguimiento por WhatsApp Web ---------- */
.patients { padding-top: var(--section); align-items: center; row-gap: 3rem; }
.patients-text { grid-column: 1 / span 6; display: grid; gap: 1.5rem; }
.patients-list { display: grid; gap: 1rem; margin-top: 0.5rem; max-width: 56ch; }
.wa { grid-column: 8 / span 5; padding: 0; overflow: hidden; background: var(--tint-1); border: 0; }
.wa-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--deep); color: #fff; }
.wa-head p { display: grid; line-height: 1.25; }
.wa-head span:not(.wa-avatar) { font-size: 12.5px; color: var(--deep-mut); }
.wa-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); font-weight: 600; }
.wa-thread { list-style: none; margin: 0; padding: 16px; display: grid; gap: 10px; }
.wa-msg { max-width: 86%; padding: 9px 12px 6px; border-radius: 10px; background: #fff; display: grid; gap: 4px; }
.wa-farm { justify-self: end; background: var(--tint-2); }
.wa-pac { justify-self: start; }
.wa-state { justify-self: start; font-size: 11.5px; font-weight: 600; color: #fff; background: var(--accent); border-radius: 999px; padding: 1px 8px; }
.wa-time { justify-self: end; font-size: 11.5px; color: #4a4f57; }
.wa-note { padding: 0 16px 16px; font-size: 12.5px; color: #4a4f57; }
.sim-wa { font-size: 13px; background: var(--tint-1); color: var(--tint-ink); border-radius: 6px; padding: 10px 12px; }
@media (max-width: 63.99em) { .patients-text, .wa { grid-column: 1 / -1; } }

/* ---------- comparativa ---------- */
.compare { padding-top: var(--section); }
.compare-top { align-items: end; }
.compare-head { grid-column: 1 / span 7; display: grid; gap: 1.5rem; }
.compare-head .lead { max-width: 44ch; }
.compare-pic { grid-column: 9 / span 4; }
.compare-pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.compare-scroll { margin-top: 3.5rem; overflow-x: auto; }
.compare-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: var(--step-body); }
.compare-table th, .compare-table td { text-align: left; vertical-align: top; padding: 14px 16px; font-weight: 400; }
.compare-table thead th { font-weight: 600; padding-bottom: 16px; }
.compare-table tbody th { width: 40%; }
.compare-table .cmp-lm { background: var(--tint-1); }
.compare-table thead .cmp-lm { background: var(--accent); color: var(--accent-ink); }
.compare-table tr.cmp-group th { padding-top: 2rem; font-family: var(--font-display); font-weight: 700; font-size: var(--step-lead); letter-spacing: -0.02em; background: none; }
.compare-table tbody tr:not(.cmp-group):nth-child(even) th, .compare-table tbody tr:not(.cmp-group):nth-child(even) td:not(.cmp-lm) { background: var(--surface); }
.cmp { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: var(--step-small); font-weight: 600; margin-right: 0.35em; }
.cmp-si { background: var(--accent); color: var(--accent-ink); }
.cmp-pa { background: var(--tint-2); color: var(--tint-ink); }
.cmp-no { background: #e6e7ea; color: #4a4f57; }
.compare-note { margin-top: 1.5rem; max-width: 80ch; }
@media (max-width: 63.99em) { .compare-head { grid-column: 1 / -1; } .compare-pic { grid-column: 1 / -1; margin-top: 2.5rem; } }
@media (max-width: 40em) {
  .compare-table { min-width: 0; }
  .compare-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .compare-table tbody, .compare-table tr { display: block; }
  .compare-table tbody tr:not(.cmp-group) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 12px 0; }
  .compare-table tbody tr:not(.cmp-group) th { grid-column: 1 / -1; width: auto; padding: 0 0 6px; background: none !important; font-weight: 600; }
  .compare-table tbody td { padding: 8px; font-size: 14px; background: var(--surface) !important; }
  .compare-table tbody td.cmp-lm { background: var(--tint-1) !important; }
  .compare-table tbody td::before { content: attr(data-label); display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
  .compare-table tr.cmp-group th { display: block; padding: 1.5rem 0 0.25rem; }
}

/* ---------- pausa: fundido lento ---------- */
.rest { padding-top: var(--section); }
.fade { position: relative; height: min(82vh, 56vw); overflow: hidden; background: #2b2b2b; }
.fade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1600ms ease; }
.fade img.is-on { opacity: 1; }
.fade figcaption { position: absolute; left: var(--margin); bottom: var(--margin); max-width: 44ch; padding: 0.6rem 0.9rem; background: rgb(17 17 17 / 0.72); color: #fff; font-size: var(--step-body); }

/* ---------- sin sistemas ---------- */
.nosys { padding-top: var(--section); align-items: center; }
.nosys-pics { grid-column: 1 / span 6; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: start; }
.nosys-pics figure:first-child img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.nosys-pics figure:last-child { margin-top: 30%; }
.nosys-pics figure:last-child img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.nosys-text { grid-column: 8 / span 5; }
.nosys-text .lead { margin-top: 1.5rem; }
.nosys-list { margin-top: 2.5rem; display: grid; gap: 1.5rem; }
.nosys-list dt { font-weight: 600; }
.nosys-list dd { margin-top: 0.25rem; max-width: 52ch; }

/* ---------- origen: carta con cupón ---------- */
.origin { margin-top: var(--section); background: var(--tint-2); color: var(--ink); padding: clamp(5rem, 10vw, 10rem) var(--margin); }
.letter { max-width: 640px; margin-inline: auto; background: #fff; padding: 60px 60px 0; }
.letter-title { font-size: var(--step-statement); line-height: 1; margin-bottom: 2rem; }
.letter p:not(.small) { line-height: 1.55; }
.letter mark { background: var(--tint-2); color: inherit; padding: 0 0.15em; }
.letter-sign { margin-top: 2rem !important; font-size: var(--step-lead) !important; font-style: italic; }
.stub { margin: 2.5rem -60px 0; }
.stub-dots { display: block; height: 5px; margin: 0 14px; background: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2714%27 height=%275%27%3E%3Ccircle cx=%277%27 cy=%272.5%27 r=%272.5%27 fill=%27%23111%27/%3E%3C/svg%3E") 0 0 / 14px 5px repeat-x; }
.stub-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; padding: 1.25rem 60px; background: var(--tint-1); }
.stub-in p { font-weight: 600; }

/* ---------- la voz del equipo ---------- */
.voices { margin-top: var(--section); background: var(--deep); color: var(--deep-ink); padding-block: clamp(5rem, 9vw, 9rem); }
.voices-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; padding-bottom: 3.5rem; }
.voices-head h2 { grid-column: 1 / span 6; }
.voices-head .lead { grid-column: 8 / span 5; color: var(--deep-mut); }
.voices-list { display: grid; gap: 6px; }
.voice { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2vw, 2rem); background: var(--deep-2); }
.voice:nth-child(even) { background: transparent; }
.voice-who { grid-column: 1 / span 3; display: flex; align-items: center; gap: 1rem; }
.voice-sil { flex: none; width: 56px; height: 56px; }
.voice-sil .sil-bg { fill: var(--accent); }
.voice-sil .sil-fg { fill: var(--tint-2); }
.voice-who p { display: grid; line-height: 1.3; }
.voice-who span { color: var(--deep-mut); font-size: var(--step-small); }
.voice blockquote { grid-column: 4 / span 9; }
.voice blockquote p { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); line-height: 1.4; color: var(--deep-mut); max-width: 62ch; }
.voice blockquote strong { color: var(--deep-ink); font-weight: 600; }
.t-address { font-size: var(--step-body); overflow-wrap: anywhere; }

/* ---------- preguntas ---------- */
.faq { padding-top: var(--section); padding-bottom: var(--section); align-items: start; }
.faq-list { grid-column: 1 / span 5; }
.faq-title { font-family: var(--font-text); font-weight: 600; letter-spacing: 0; font-size: var(--step-body); line-height: 1.3; color: var(--muted); margin-bottom: 1.25rem; }
.faq-list li + li { margin-top: 0.5rem; }
.q { display: flex; gap: 0.9rem; align-items: baseline; text-align: left; font-size: var(--step-body); line-height: 1.35; padding: 0.35rem 0; color: var(--muted); transition: color var(--t-hover) ease; }
.q::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; transform: translateY(-0.12em); transition: background-color var(--t-hover) ease; }
.q[aria-expanded="true"] { color: var(--ink); }
.q[aria-expanded="true"]::before { background: var(--accent); }
@media (hover: hover) and (pointer: fine) { .q:hover { color: var(--ink); } }
.a { padding: 0.25rem 0 0.75rem 1.4rem; }
.faq-pane { display: none; }
@media (min-width: 64em) {
  .js .faq-pane { display: block; grid-column: 7 / span 6; position: sticky; top: 120px; min-height: 16rem; }
  .js .faq-pane p { font-size: var(--step-lead); line-height: 1.3; max-width: 30ch; transition: opacity 150ms ease; }
  .js .faq-pane p.is-swapping { opacity: 0; }
  .js .faq .a { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .faq { min-height: 70vh; }
}
@media (max-width: 63.99em) {
  .js .faq li:not(.is-open) .a { display: none; }
}

/* ---------- demo ---------- */
.cta { background: var(--accent); color: var(--accent-ink); }
.cta-in { min-height: 90svh; padding-block: 5rem; align-items: center; }
.cta-copy { grid-column: 1 / span 6; align-self: end; }
.cta-title { font-size: var(--step-display); line-height: 0.92; margin-bottom: 1.5rem; }
.cta-copy p { max-width: 40ch; }
.ui-dialog { grid-column: 8 / span 5; justify-self: center; width: min(440px, 100%); display: grid; gap: 16px; padding: 24px; border: 0; box-shadow: 0 24px 60px rgb(0 0 20 / 0.28); } /* taste-skill-ignore: dentro de fragmentos data-ui */
.ui-dialog .ui-title { font-size: 18px; }

/* ---------- pie de baldosas ---------- */
.foot { padding: 8px; }
.tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; }
.tile { background: var(--surface); padding: 24px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; text-decoration: none; }
.t-state { grid-column: 1 / span 4; }
.t-state > p:first-child { font-size: var(--step-lead); line-height: 1.25; max-width: 26ch; }
.credits { color: var(--muted); max-width: 60ch; }
.t-nav { grid-column: 5 / span 3; justify-content: flex-start; gap: 0.4rem; }
.t-nav a { text-decoration-color: transparent; }
.t-place { grid-column: 8 / span 2; }
.t-mail { grid-column: 10 / span 3; }
.t-big { font-size: var(--step-lead); font-weight: 600; line-height: 1.25; }
.t-word { grid-column: 1 / span 8; min-height: 320px; background: var(--field-1); color: var(--field-1-ink); justify-content: center; align-items: center; overflow: hidden; }
.t-word p { font-family: var(--font-display); font-weight: 700; font-size: var(--step-display); letter-spacing: -0.05em; line-height: 0.9; max-width: none; }
.t-go { grid-column: 9 / span 4; min-height: 320px; background: var(--accent); color: var(--accent-ink); }
.t-go span { font-family: var(--font-display); font-weight: 700; font-size: var(--step-lead); letter-spacing: -0.03em; }
.t-go svg { align-self: flex-end; transition: transform var(--t-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .t-go:hover svg { transform: translate(6px, -6px); } .t-go:hover { background: #123bb8; } }

/* ---------- tablet ---------- */
@media (max-width: 63.99em) {
  .bar-nav { display: none; }
  .hero-copy { grid-column: 1 / -1; }
  .hero-stage { grid-column: 1 / -1; }
  .problems-head h2, .problems-intro { grid-column: 1 / -1; }
  .problems-intro { margin-top: 1.5rem; }

  .nosys-pics { grid-column: 1 / span 5; }
  .nosys-text { grid-column: 7 / span 6; }
  .faq-list { grid-column: 1 / -1; }
  .voices-head h2, .voices-head .lead { grid-column: 1 / -1; }
  .voices-head .lead { margin-top: 1.25rem; }
  .voice-who, .voice blockquote { grid-column: 1 / -1; }
  .voice blockquote { margin-top: 1rem; }
  .cta-copy { grid-column: 1 / -1; align-self: start; }
  .ui-dialog { grid-column: 1 / -1; justify-self: start; margin-top: 3rem; }
  .t-state { grid-column: 1 / span 6; } .t-nav { grid-column: 7 / span 6; }
  .t-place { grid-column: 1 / span 6; } .t-mail { grid-column: 7 / span 6; }
  .t-word { grid-column: 1 / -1; } .t-go { grid-column: 1 / -1; min-height: 200px; }
}

/* ---------- teléfono ---------- */
@media (max-width: 40em) {
  .bar { gap: 1rem; }

  .hero { padding-top: 2rem; row-gap: 2.5rem; min-height: 0; }
  .hero-title { font-size: clamp(2rem, 8.6vw, 2.25rem); }
  .hero-stage { margin-inline: calc(var(--margin) * -1); padding: 16px; }
  .ui-fields { grid-template-columns: 1fr; }
  .ui-totals { grid-template-columns: 1fr 1fr; }
  .ui-foot { flex-direction: column; align-items: stretch; }
  .ui-foot .ui-btn { height: 44px; }
  .ui-result { grid-template-columns: 1fr; }
  .band-in { min-height: 132px; grid-template-columns: 1fr auto; column-gap: 1rem; }
  .band-text { grid-column: 1; }

  .band-more { font-size: 15px; }
  .switch { grid-column: 2; }
  .switch::after { content: ""; position: absolute; inset: -10px; }
  .ui-mini .ui-table td { white-space: nowrap; }
  .fade { height: 62vh; }
  .fade figcaption { right: var(--margin); font-size: 15px; }
  .nosys-pics, .nosys-text { grid-column: 1 / -1; }
  .nosys-text { margin-top: 3rem; }
  .letter { padding: 32px 24px 0; }
  .stub { margin-inline: -24px; }
  .stub-in { flex-direction: column; align-items: stretch; padding: 1.25rem 24px; }
  .origin { padding-inline: 0; }
  .cta-in { min-height: 84svh; }
  .cta-title { font-size: 12vw; }
  .ui-dialog { width: 100%; }
  .ui-seg-wide button { padding: 0 6px; font-size: 13px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 6px; }
  .tile { padding: 20px; min-height: 0; }
  .t-word { grid-column: 1 / -1; order: -2; min-height: 160px; }
  .t-word p { font-size: 12vw; }
  .t-go { grid-column: 1 / -1; order: -1; min-height: 140px; }
  .t-nav { grid-column: 1; } .t-mail { grid-column: 2; }
  .t-place { grid-column: 1; } .t-state { grid-column: 1 / -1; }
}

/* ---------- movimiento (el contenido queda visible sin script) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(18px); animation: rise var(--t-reveal) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--d, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .shutter[data-reveal] { opacity: 1; transform: none; overflow: hidden; clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease-in-out); }
  .js .shutter[data-reveal] img { transform: scale(1.12); transition: transform 1500ms var(--ease-soft); }
  .js .shutter[data-reveal].is-in { clip-path: inset(0); }
  .js .shutter[data-reveal].is-in img { transform: none; }
  .fade img.is-on { animation: drift 9s var(--ease-soft) forwards; }
  .ui-result:not([hidden]) > * { animation: rise 520ms var(--ease-out) both; }
  .ui-result:not([hidden]) > :nth-child(2) { animation-delay: 90ms; }
  .ui-result:not([hidden]) > :nth-child(3) { animation-delay: 180ms; }
}
@media (prefers-reduced-motion: reduce) {
  .caret { animation: none; }
  .band, .band-sentence, .fade img { transition: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1); } }

/* sin script: se ve directamente cómo queda con LabMagistral */
html:not(.js) .band .before { display: none; }
html:not(.js) .band .after { display: inline; }
html:not(.js) .band .band-sentence { color: var(--ink); }
html:not(.js) .band-more { display: block; }
html:not(.js) .switch { visibility: hidden; }
