/* Panaleads · sitio público · hoja de estilos única (index.html y privacy.html).
   Tokens: literales de docs/DESIGN.md §3 (Petróleo cálido) más los del llamado final
   (docs/PUBLIC-SITE-DESIGN.md §4). Contrato: docs/PUBLIC-SITE-DESIGN.md. */
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/hanken-grotesk-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
:root {
  --canvas: #F4F4F2; --surface: #FFFFFF; --surface-muted: #F1F0ED;
  --border: #E6E5E1; --border-strong: #D1CFC9; --border-control: #86847C;
  --text: #1B1C1A; --text-2: #3C3D39; --text-muted: #595A55;
  --accent: #1D5F80; --accent-hover: #164C68; --accent-pressed: #113B51; --accent-soft: #E8F1F5;
  --accent-fill: #1D5F80; --accent-fill-hover: #164C68; --on-accent: #FFFFFF;
  --success: #146C36; --success-soft: #E7F4EC; --warning: #8A5300; --warning-soft: #FDF1DC;
  --danger: #B42318; --danger-soft: #FDECEA; --info: #3A4D84; --info-soft: #EBEEF6;
  --field: #1D5F80; --field-2: #164C68; --on-field: #FFFFFF; --on-field-2: #D6E6EE;
  --sel: #CDE2EC; --pop: 0 4px 12px rgb(27 28 26 / .10);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --canvas: #111514; --surface: #191E1D; --surface-muted: #222827;
  --border: #2B3231; --border-strong: #3C4543; --border-control: #7F8885;
  --text: #ECEEEA; --text-2: #CACDC7; --text-muted: #A3A8A2;
  --accent: #7FC1DE; --accent-hover: #A6D6EB; --accent-pressed: #C3E3F1; --accent-soft: #17323E;
  --accent-fill: #7FC1DE; --accent-fill-hover: #A6D6EB; --on-accent: #0B1D26;
  --success: #74D29B; --success-soft: #15301F; --warning: #E8B766; --warning-soft: #33270F;
  --danger: #F29D93; --danger-soft: #3A1B17; --info: #AEBDEB; --info-soft: #1F2742;
  --field: #0F3344; --field-2: #164559; --on-field: #ECEEEA; --on-field-2: #BFD6E0;
  --sel: #1F4A5C; --pop: 0 4px 12px rgb(0 0 0 / .4);
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --canvas: #111514; --surface: #191E1D; --surface-muted: #222827;
  --border: #2B3231; --border-strong: #3C4543; --border-control: #7F8885;
  --text: #ECEEEA; --text-2: #CACDC7; --text-muted: #A3A8A2;
  --accent: #7FC1DE; --accent-hover: #A6D6EB; --accent-pressed: #C3E3F1; --accent-soft: #17323E;
  --accent-fill: #7FC1DE; --accent-fill-hover: #A6D6EB; --on-accent: #0B1D26;
  --success: #74D29B; --success-soft: #15301F; --warning: #E8B766; --warning-soft: #33270F;
  --danger: #F29D93; --danger-soft: #3A1B17; --info: #AEBDEB; --info-soft: #1F2742;
  --field: #0F3344; --field-2: #164559; --on-field: #ECEEEA; --on-field-2: #BFD6E0;
  --sel: #1F4A5C; --pop: 0 4px 12px rgb(0 0 0 / .4);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; background: var(--canvas); scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
body { margin: 0; font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif; font-size: 17px; line-height: 1.55; color: var(--text); background: var(--canvas); -webkit-font-smoothing: antialiased; overflow-x: clip; accent-color: var(--accent); }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { text-wrap: balance; font-weight: 600; }
p { text-wrap: pretty; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; }
::selection { background: var(--sel); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; border: 3px solid var(--canvas); }
.tnum { font-variant-numeric: tabular-nums; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: 1232px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.sec { padding-block: clamp(56px, 7vw, 104px); }
.h-sec { font-size: clamp(1.625rem, 3.1vw, 2.625rem); line-height: 1.1; letter-spacing: -0.025em; }
.lede { font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.5; color: var(--text-2); max-width: 62ch; }
.muted { color: var(--text-muted); }
.skip { position: absolute; left: 16px; top: -64px; z-index: 100; background: var(--surface); color: var(--text); padding: 10px 14px; border-radius: 8px; border: 1px solid var(--border-control); }
.skip:focus { top: 12px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 8px; border: 1px solid transparent; font-size: 1rem; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: background-color .16s ease-out, border-color .16s ease-out, color .16s ease-out; }
.btn-primary { background: var(--accent-fill); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-fill-hover); color: var(--on-accent); }
.btn-primary:active { background: var(--accent-pressed); }
.btn-ghost { background: var(--surface); color: var(--text-2); border-color: var(--border-control); }
.btn-ghost:hover { background: var(--surface-muted); color: var(--text); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: .9375rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.on-field .btn-primary { background: var(--on-field); color: var(--field); }
.on-field .btn-primary:hover { background: var(--on-field-2); color: var(--field-2); }
.on-field .btn-ghost { background: transparent; color: var(--on-field); border-color: var(--on-field-2); }
.on-field .btn-ghost:hover { background: var(--field-2); color: var(--on-field); }
.on-field :focus-visible { outline-color: var(--on-field); }

/* Cabecera */
.site-h { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--border-strong); }
.site-h__in { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.site-nav { display: flex; gap: 4px; margin-left: 12px; }
.site-nav a { white-space: nowrap; display: inline-flex; align-items: center; height: 40px; padding: 0 12px; border-radius: 8px; font-size: .9375rem; font-weight: 500; color: var(--text-2); text-decoration: none; }
.site-nav a:hover { background: var(--surface-muted); color: var(--text); }
.site-h__act { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--border-control); background: var(--surface); color: var(--text-2); padding: 0; }
.icon-btn:hover { background: var(--surface-muted); color: var(--text); }
.theme-btn { display: none; }
.js .theme-btn { display: inline-grid; }
.theme-btn .i-moon, :root[data-theme="dark"] .theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-moon { display: block; }
.mnav { display: none; position: relative; }
.mnav summary { list-style: none; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav__list { position: absolute; right: 0; top: 48px; min-width: 220px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; box-shadow: var(--pop); padding: 6px; display: grid; }
.mnav__list a { padding: 10px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 500; font-size: 1rem; }
.mnav__list a:hover { background: var(--surface-muted); }
@media (max-width: 1060px) { .site-nav { display: none; } .mnav { display: block; } }
@media (max-width: 520px) { .site-h__in { gap: 8px; } .site-h .btn-sm { padding: 0 12px; } }

/* Estaciones de la línea (§7) */
.st, .st-transfer { --st-c: var(--accent); --st-bg: var(--surface); display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; background: var(--st-c); position: relative; flex: none; }
.st::before, .st::after, .st-transfer::before, .st-transfer::after { content: ""; grid-area: 1 / 1; border-radius: 999px; }
.st::before { width: 14px; height: 14px; background: var(--st-bg); }
.st-sm { width: 14px; height: 14px; }
.st-sm::before { width: 8px; height: 8px; }
.st-fill::before { display: none; }
.st-off { --st-c: var(--border-strong); width: 14px; height: 14px; }
.st-off::before { width: 8px; height: 8px; }
.st-transfer { width: 32px; height: 32px; }
.st-transfer::before { width: 24px; height: 24px; background: var(--st-bg); }
.st-transfer::after { width: 16px; height: 16px; background: var(--st-bg); border: 3px solid var(--st-c); }

/* Extractos del producto: fieles al Workspace (13 px, hairlines, sin sombra) */
.px { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; font-size: 13px; line-height: 18px; color: var(--text); overflow: hidden; text-align: left; }
.px-bar { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--border); background: var(--surface); }
.px-title { font-size: 15px; line-height: 22px; font-weight: 600; }
.ej { margin-left: auto; display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; border: 1px dashed var(--border-control); font-size: 12px; font-weight: 600; color: var(--text-muted); letter-spacing: .02em; white-space: nowrap; }
.px-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--border); }
.px-row:first-child { border-top: 0; }
.px-grow { flex: 1; min-width: 0; }
.px-strong { font-weight: 600; }
.px-meta { font-size: 12px; line-height: 15px; color: var(--text-muted); }
.px-label { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--text-muted); }
.avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; background: var(--surface-muted); font-size: 12px; font-weight: 600; color: var(--text-2); flex: none; }
.chan { display: inline-flex; align-items: center; gap: 5px; color: var(--text-muted); font-size: 12px; line-height: 15px; white-space: nowrap; }
.chan .ic { width: 13px; height: 13px; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px 0 6px; border-radius: 999px; font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap; background: var(--surface-muted); color: var(--text-2); }
.chip .ic { width: 12px; height: 12px; stroke-width: 2.2; }
.chip-info { background: var(--info-soft); color: var(--info); }
.chip-warn { background: var(--warning-soft); color: var(--warning); }
.chip-ok { background: var(--success-soft); color: var(--success); }
.chip-auto { background: var(--accent-soft); color: var(--accent-hover); }
.actor { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; line-height: 15px; color: var(--text-2); }
.actor .ic { width: 13px; height: 13px; }
.actor-auto { color: var(--accent); }
.px-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border-control); background: var(--surface); color: var(--text-2); font-size: 13px; font-weight: 600; }
.px-btn:hover { background: var(--surface-muted); }
.px-btn-primary { background: var(--accent-fill); color: var(--on-accent); border-color: transparent; }
.px-btn-primary:hover { background: var(--accent-fill-hover); }
.px-btn[disabled] { cursor: default; background: var(--surface-muted); color: var(--text-muted); border-color: var(--border); }

/* Chat */
.chat { display: grid; gap: 8px; padding: 12px; align-content: start; }
.msg { max-width: 86%; padding: 7px 10px; border-radius: 10px; background: var(--surface-muted); justify-self: start; }
.msg-out { justify-self: end; background: var(--accent-soft); }
.msg-who { display: flex; gap: 6px; align-items: center; margin-bottom: 2px; }
.evt { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 15px; color: var(--text-muted); padding: 2px 0; }
.evt .ic { width: 13px; height: 13px; color: var(--accent); }
.evt b { color: var(--text-2); font-weight: 600; }

/* Línea del período (extracto del Dashboard) */
.dline { display: grid; grid-template-columns: repeat(3, 1fr); position: relative; padding: 14px 12px 12px; }
.dline::before { content: ""; position: absolute; left: 12px; right: 12px; top: 45px; height: 4px; border-radius: 2px; background: var(--accent); }
.dline li { display: grid; gap: 6px; justify-items: start; align-content: start; position: relative; }
.dline .fig { font-size: 26px; line-height: 32px; font-weight: 600; }

/* Pie */
.site-f { background: var(--surface); border-top: 1px solid var(--border-strong); padding-block: 48px 28px; font-size: .9375rem; }
.site-f__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px 40px; }
.site-f h2 { font-size: .8125rem; font-weight: 600; color: var(--text-muted); margin-bottom: 12px; letter-spacing: 0; }
.site-f li + li { margin-top: 8px; }
.site-f a { color: var(--text); text-decoration: none; }
.site-f a:hover { color: var(--accent); text-decoration: underline; }
.site-f__tag { margin-top: 12px; color: var(--text-2); max-width: 34ch; }
.site-f__legal { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; color: var(--text-muted); font-size: .8125rem; }
@media (max-width: 860px) { .site-f__grid { grid-template-columns: 1fr 1fr; } .site-f__grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 420px) { .site-f__grid { grid-template-columns: 1fr; } }

/* Llamado final */
.cta-band { background: var(--field); color: var(--on-field); }
.cta-band .lede { color: var(--on-field-2); }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ===== Ronda 2: piezas nuevas ===== */
.px { container-type: inline-size; }
.tb { width: 100%; border-collapse: collapse; }
.tb th { background: var(--surface-muted); font-size: 12px; line-height: 16px; font-weight: 600; color: var(--text-muted); text-align: left; padding: 6px 12px; white-space: nowrap; }
.tb td { padding: 6px 12px; border-top: 1px solid var(--border); vertical-align: top; }
.tb .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tb .id { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.px-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 9px 12px; border-top: 1px solid var(--border); }
.px-sum { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-top: 1px solid var(--border); font-weight: 600; }
.paylink { display: grid; gap: 2px; margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border-strong); }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--surface-muted); border: 1px solid var(--border); max-width: 100%; flex-wrap: wrap; }
.seg button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 8px; background: none; font-size: .9375rem; font-weight: 600; color: var(--text-2); display: inline-flex; align-items: center; gap: 8px; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--surface); color: var(--accent-hover); box-shadow: 0 0 0 1px var(--border-strong); }
.px .seg button { min-height: 28px; padding: 0 10px; font-size: 12px; }
.sec-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px 56px; align-items: end; margin-bottom: clamp(24px, 3vw, 40px); }
.sec-head .lede { justify-self: start; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } }
.site-f__note { max-width: 62ch; }
.cta-band .h-sec { max-width: 20ch; }
.cta-band__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px 56px; align-items: end; }
@media (max-width: 860px) { .cta-band__in { grid-template-columns: 1fr; } }

/* Línea horizontal de estaciones a escala de sitio (vertical en teléfono) */
.hl { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); }
.hl > li { position: relative; padding-right: 20px; }
.hl > li::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 4px; background: var(--accent); }
.hl > li:first-child::before { border-radius: 2px 0 0 2px; }
.hl > li:last-child::before { display: none; }
.hl .st { margin-bottom: 14px; }
.hl h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; }
.hl p { margin-top: 6px; font-size: .9375rem; line-height: 1.5; color: var(--text-2); }
@media (max-width: 760px) {
  .hl { grid-template-columns: 1fr; }
  .hl > li { padding: 0 0 22px 38px; }
  .hl > li::before { left: 9px; right: auto; top: 0; bottom: 0; width: 4px; height: auto; }
  .hl > li:last-child { padding-bottom: 0; }
  .hl .st { position: absolute; left: 0; top: 0; margin: 0; }
}
/* Línea del día con cinco estaciones (extracto del Dashboard) */
.dline5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.dline5::before { right: calc((100% - 24px) / 5 - 10px); }
.dline5 .px-meta { min-height: 15px; }
@container (max-width: 520px) {
  .dline5 { grid-template-columns: 1fr; gap: 10px; padding-left: 46px; }
  .dline5::before { left: 21px; right: auto; top: 18px; bottom: 18px; width: 4px; height: auto; }
  .dline5 li { grid-template-columns: 1fr auto; align-items: center; gap: 0 12px; }
  .dline5 li .st { position: absolute; left: -34px; top: 4px; }
  .dline5 li .px-meta { grid-column: 1 / -1; }
  .dline5 .fig { font-size: 21px; line-height: 26px; grid-column: 2; grid-row: 1; }
}
.xfer { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-top: 1px solid var(--border); }

.px-btn { white-space: nowrap; }
.g75 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr) !important; }
@media (max-width: 900px) { .g75 { grid-template-columns: minmax(0, 1fr) !important; } }


.js [data-tog="pending"] .tog-on, .js [data-tog="done"] .tog-off { display: none !important; }
html:not(.js) .tog-off { display: none !important; }

/* Dirección 1 · El expediente */
.hero { padding-block: clamp(24px, 3.2vw, 44px) clamp(40px, 5vw, 72px); }
.hero__top { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 16px 48px; align-items: end; }
.hero__top .btn-row { grid-column: 1; grid-row: 2; }
.hero__top .lede { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
.hero h1 { font-size: clamp(2.125rem, 4.7vw, 3.875rem); line-height: 1.04; letter-spacing: -0.034em; }
.hero h1 > span { display: block; }
.h1-b { color: var(--text); }
.rot { color: var(--accent); }
.js .rot.is-on .rot__all { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rot__w { display: none; }
.js .rot.is-on .rot__w { display: inline-block; white-space: nowrap; }
.rot__w.swap { animation: swap .5s cubic-bezier(.16, 1, .3, 1); }
@keyframes swap { from { opacity: 0; transform: translateY(.35em); clip-path: inset(0 0 60% 0); } to { opacity: 1; transform: none; clip-path: inset(0); } }
.hero .lede { font-size: 1.0625rem; }
.hero h1:has(.rot:not(.is-on)) { font-size: clamp(2rem, 3.6vw, 3.25rem); }
.hero__top:has(.rot:not(.is-on)) .lede { align-self: start; }
@media (max-width: 640px) { .js .rot.is-on { display: block; } }
@media (max-width: 980px) { .hero__top { grid-template-columns: 1fr; } .hero__top .lede { grid-column: 1; grid-row: 2; } .hero__top .btn-row { grid-row: 3; } }

.exp { margin-top: clamp(16px, 1.6vw, 20px); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; overflow: hidden; }
.exp__bar { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding: 8px 14px; border-bottom: 1px solid var(--border); font-size: .9375rem; }
.exp__bar strong { font-weight: 600; }
.exp__bar .ej { margin-left: 0; }
.exp__ctl { margin-left: auto; display: none; align-items: center; gap: 10px; font-size: .875rem; color: var(--text-muted); }
.js .exp__ctl { display: flex; }
.exp__ctl .icon-btn { width: 36px; height: 36px; }
.exp__play .i-b, .exp.is-playing .exp__play .i-a { display: none; }
.exp.is-playing .exp__play .i-b { display: block; }
.exp__body { display: grid; grid-template-columns: minmax(0, 19fr) minmax(0, 31fr); }
.exp__chat { border-right: 1px solid var(--border); background: var(--canvas); font-size: 13px; line-height: 18px; display: flex; flex-direction: column; min-width: 0; }
.exp__chat-h { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: var(--surface); border-bottom: 1px solid var(--border); }
.exp__chat .chat { flex: 1; }
.exp__chat .msg { background: var(--surface); border: 1px solid var(--border); }
.exp__chat .msg-out { background: var(--accent-soft); border-color: transparent; }
.exp__chat { position: relative; }
.exp__chat-h { height: 47px; }
.js .exp__chat { min-height: 380px; }
.js .exp__chat .chat { display: flex; flex-direction: column; justify-content: flex-start; gap: 8px; position: absolute; left: 0; right: 0; top: 47px; bottom: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.js .exp__chat .chat > * { flex: none; }
.js .exp__chat .msg { align-self: flex-start; }
.js .exp__chat .msg-out { align-self: flex-end; }
.js [data-s].is-future { display: none; }
.js .exp__chat [data-s]:not(.is-future) { animation: rise .4s cubic-bezier(.16, 1, .3, 1) both; }

.log { padding: 14px 16px 14px 14px; font-size: 13px; line-height: 18px; }
.entry { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 0 12px; padding-bottom: 2px; min-height: 40px; }
.entry:last-child { padding-bottom: 0; min-height: 0; }
.entry::before { content: ""; position: absolute; left: 13px; top: 15px; bottom: -15px; width: 4px; background: var(--accent); transition: background-color .3s ease-out; }
.entry:last-child::before { display: none; }
.ring { position: relative; z-index: 1; width: 30px; height: 30px; display: grid; place-items: center; }
.ring i { display: block; width: 22px; height: 22px; border-radius: 999px; background: var(--accent); border: 4px solid var(--accent); transition: background-color .25s ease-out, border-color .25s ease-out; position: relative; }
.entry.is-now .ring i { width: 30px; height: 30px; background: var(--surface); }
.entry.is-now .ring i::after { content: ""; position: absolute; inset: 6px; border-radius: 999px; background: var(--accent); }
.entry.is-future .ring i { width: 14px; height: 14px; border-width: 3px; border-color: var(--border-strong); background: var(--surface); }
.entry.is-now::before, .entry.is-future::before { background: var(--border-strong); }
.entry__h { display: flex; align-items: baseline; gap: 8px; min-height: 30px; padding-top: 5px; }
.entry__h button, .entry__h .nm { font-size: 15px; line-height: 20px; font-weight: 600; color: var(--text); background: none; border: 0; padding: 0; text-align: left; }
.entry__h button:hover { color: var(--accent); }
.entry.is-future .entry__h button { color: var(--text-muted); font-weight: 500; }
.entry__h time { font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.entry__b { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--text-2); }
.entry__b > span:first-child { flex: 1 1 260px; min-width: 0; }
.js .entry.is-future .entry__b { color: var(--text-muted); }
.js .entry.is-future .chip { background: var(--surface-muted); color: var(--text-muted); }
.js .entry.is-now .entry__b { animation: rise .45s cubic-bezier(.16, 1, .3, 1) both; }
.entry--x { grid-template-columns: 30px 30px minmax(0, 1fr); }
.entry--x .ring { grid-column: 2; }
.entry--x .entry__h, .entry--x .entry__b { grid-column: 3; }
.entry--x::after { content: ""; position: absolute; left: 13px; top: -4px; width: 30px; height: 21px; border: solid var(--accent); border-width: 0 0 4px 4px; border-bottom-left-radius: 16px; transition: border-color .3s ease-out; }
.entry--x.is-future::after { border-color: var(--border-strong); }
.entry--x .ring i, .entry--x.is-now .ring i, .entry--x.is-future .ring i { width: 30px; height: 30px; border-width: 4px; background: var(--surface); }
.entry--x .ring i::after, .entry--x.is-now .ring i::after { content: ""; position: absolute; inset: 3px; border-radius: 999px; border: 3px solid var(--accent); background: none; }
.entry--x.is-future .ring i::after { border-color: var(--border-strong); }
@media (max-width: 860px) {
  .exp__body { grid-template-columns: 1fr; }
  .exp__chat { border-right: 0; border-bottom: 1px solid var(--border); }
  .js .exp__chat { min-height: 0; }
  .js .exp__chat .chat { position: static; height: 300px; }
}

/* Estación por estación */
.st-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; display: table; font-size: 1rem; }
.st-table th, .st-table td { text-align: left; vertical-align: top; padding: 14px 18px; border-top: 1px solid var(--border); }
.st-table thead th { border-top: 0; background: var(--surface-muted); font-size: .8125rem; font-weight: 600; color: var(--text-muted); padding-block: 9px; }
.st-table tbody th { font-weight: 600; white-space: nowrap; width: 1%; }
.st-table tbody th > span { display: inline-flex; align-items: center; gap: 10px; }
.st-table td { color: var(--text-2); line-height: 1.5; }
.st-table td:last-child { width: 32%; }
.st-table .is-x th, .st-table .is-x td { background: var(--accent-soft); }
@media (max-width: 760px) {
  .st-table, .st-table tbody, .st-table tr, .st-table th, .st-table td { display: block; width: auto !important; }
  .st-table thead { display: none; }
  .st-table tr { border-top: 1px solid var(--border); padding: 14px 16px; }
  .st-table tr:first-child { border-top: 0; }
  .st-table th, .st-table td { padding: 0; border: 0; }
  .st-table td { margin-top: 6px; }
  .st-table .is-x { background: var(--accent-soft); }
  .st-table .is-x th, .st-table .is-x td { background: none; }
  .st-table td::before { content: attr(data-l) ": "; font-weight: 600; color: var(--text); }
}

/* En el local */
.two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px 56px; align-items: start; }
.two > div > .h-sec + .lede { margin-top: 14px; }
.plain { margin-top: 20px; display: grid; gap: 10px; }
.plain li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; color: var(--text-2); }
.plain li .ic { margin-top: 4px; color: var(--accent); }
.plain b { color: var(--text); font-weight: 600; }
.hist { padding: 12px 12px 12px 12px; }
.hist li { position: relative; padding: 0 0 14px 26px; }
.hist li:last-child { padding-bottom: 0; }
.hist li::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: -6px; width: 4px; background: var(--accent); }
.hist li:last-child::before, .hist li.tog-off::before, .hist li.tog-on::before { display: none; }
.js [data-tog="pending"] .hist li:first-child::before { background: var(--border-strong); }
.hist li > .st { position: absolute; left: 0; top: 2px; }
.hist .row { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.reg .seg { justify-self: start; }
.reg { display: grid; gap: 10px; padding: 12px; border-top: 1px solid var(--border); background: var(--surface-muted); }
.stack { display: grid; gap: 14px; }
.sec--white { background: var(--surface); border-block: 1px solid var(--border); }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } }

/* Para quién */
.biz { width: 100%; border-collapse: collapse; }
.biz th, .biz td { text-align: left; vertical-align: top; padding: 14px 20px 14px 0; border-top: 1px solid var(--border-strong); line-height: 1.45; }
.biz thead th { border-top: 0; font-size: .8125rem; color: var(--text-muted); font-weight: 600; padding-block: 0 8px; }
.biz tbody th { font-size: 1.125rem; font-weight: 600; width: 24%; }
.biz td { color: var(--text-2); font-size: .9375rem; }
@media (max-width: 760px) {
  .biz, .biz tbody, .biz tr, .biz th, .biz td { display: block; width: auto !important; }
  .biz thead { display: none; }
  .biz tr { border-top: 1px solid var(--border-strong); padding: 14px 0; }
  .biz th, .biz td { border: 0; padding: 0; }
  .biz td { margin-top: 4px; }
  .biz td::before { content: attr(data-l) ": "; font-weight: 600; color: var(--text); }
}

/* Piezas de esta versión */
.two--tight { gap: 14px; }
.fig-sm { font-size: 20px; line-height: 26px; font-weight: 600; }
.reg__act { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cta-row { margin-top: 20px; }
.px-row .px-meta { margin-top: 1px; }
.tb-kv th[scope="row"] { background: none; padding: 6px 12px; border-top: 1px solid var(--border); text-align: left; font-weight: 400; }
.tb-kv thead th.num { text-align: right; }
.tb-kv tr.grp th { background: var(--surface-muted); border-top: 1px solid var(--border); font-size: 12px; line-height: 16px; font-weight: 600; color: var(--text-muted); }
.tb-kv td { border-top: 1px solid var(--border); font-weight: 600; }
.dline5 .fig { font-size: 22px; line-height: 28px; }
.px-row { flex-wrap: wrap; }

/* Política de Privacidad: prosa larga, legible sin JavaScript */
.legal { max-width: 68ch; margin-inline: auto; font-size: 17px; line-height: 1.6; color: var(--text); }
.legal h1 { font-size: clamp(1.875rem, 4vw, 2.625rem); line-height: 1.1; letter-spacing: -0.03em; }
.legal__updated { margin-top: 8px; color: var(--text-muted); font-size: .9375rem; }
.legal__lead { margin-top: 20px; color: var(--text-2); font-size: 1.125rem; line-height: 1.55; }
.legal section { margin-top: clamp(28px, 4vw, 44px); }
.legal h2 { font-size: clamp(1.375rem, 2.3vw, 1.75rem); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 12px; }
.legal h3 { font-size: 1.125rem; line-height: 1.3; letter-spacing: -0.01em; margin: 20px 0 8px; }
.legal p, .legal ul, .legal ol { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 1.25em; }
.legal ol { list-style: decimal; padding-left: 1.25em; }
.legal li + li { margin-top: 6px; }
.legal table { border-collapse: collapse; width: 100%; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 8px 10px; border: 1px solid var(--border-strong); }
.legal strong { font-weight: 600; }
.legal__back { margin-top: clamp(28px, 4vw, 44px); }
.legal-wrap { padding-block: clamp(32px, 5vw, 72px); }
.legal a { overflow-wrap: anywhere; }
@media (max-width: 420px) {
  .site-h__in { gap: 6px; }
  .site-h__act { gap: 6px; }
  .site-h .brand { font-size: 1rem; gap: 8px; }
  .site-h .btn-sm { padding: 0 10px; font-size: .875rem; }
}
.quote { display: grid; gap: 2px; margin-top: 4px; }
