/* SPDX-License-Identifier: AGPL-3.0-or-later · Trenalia */
/* Trenalia · web de presentación (/web). Claro por defecto; oscuro con el mismo botón que la aplicación. */
:root {
  --paper: #f5f7fa; --paper-2: #eaeef4; --card: #ffffff; --ink: #142033; --ink-2: #48566b; --rule: #d5dce6;
  --blue: #1f6fd1; --blue-ink: #ffffff; --green: #12935c; --amber: #b57600; --red: #d93a32;
  --board: #0d1626; --board-2: #15233a; --led: #ffb21a; --led-dim: #9c7a3a; --led-red: #ff6a5f; --led-green: #4fd99a;
  --shadow: 0 1px 2px rgba(20,32,51,.06), 0 12px 32px -12px rgba(20,32,51,.22);
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #0b111c; --paper-2: #111a29; --card: #131d2e; --ink: #e6ecf5; --ink-2: #a3b0c4; --rule: #24324b;
  --blue: #5aa9ff; --blue-ink: #06101f; --green: #3ecf8e; --amber: #f2b33d; --red: #ff5a52;
  --board: #060b14; --board-2: #0f1828; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(36px, 5.4vw, 64px); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(26px, 3.3vw, 40px); font-weight: 780; }
h3 { font-size: 21px; font-weight: 720; letter-spacing: -0.01em; }
p { margin: 0 0 14px; max-width: 68ch; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 10px; background: var(--blue); color: var(--blue-ink); font-weight: 700; text-decoration: none; border: 2px solid var(--blue); }
.btn:hover { filter: brightness(1.07); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--ink-2); filter: none; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 18px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }

/* Cabecera */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand svg { width: 26px; height: 26px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 550; white-space: nowrap; }
.nav a:not(.btn):hover { color: var(--ink); }
.menu-btn { display: none; background: none; border: 1px solid var(--rule); color: var(--ink); border-radius: 8px; padding: 7px 12px; font: inherit; font-size: 15px; }

/* Portada */
.hero { padding: 64px 0 72px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.lead { font-size: 20px; color: var(--ink-2); margin-top: 22px; }
.warn { margin-top: 22px; font-size: 14.5px; color: var(--ink-2); padding-left: 12px; border-left: 3px solid var(--amber); }

/* Panel de salidas: lo memorable de la página */
.board { margin: 0; background: var(--board); color: var(--led); border-radius: 14px; padding: 18px 18px 14px; box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.04); font-family: var(--mono); position: relative; overflow: hidden; }
.board::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(255,255,255,.025) 0 1px, transparent 1px 3px); }
.board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0 4px 12px; border-bottom: 1px solid rgba(255,178,26,.22); }
.board-head h2 { font-family: var(--sans); font-size: 16px; font-weight: 700; letter-spacing: 0; color: #dfe7f3; }
.board-clock { font-size: 22px; font-weight: 700; letter-spacing: .04em; text-shadow: 0 0 10px rgba(255,178,26,.45); }
.board-t { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-top: 4px; }
.board-t th { text-align: left; font: 500 11.5px var(--sans); color: var(--led-dim); padding: 9px 6px 5px; }
.board-t td { padding: 8px 6px; border-bottom: 1px solid rgba(255,255,255,.06); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; text-shadow: 0 0 8px rgba(255,178,26,.28); }
.board-t tr:last-child td { border-bottom: 0; }
.b-id { font-weight: 700; } .b-id span { color: #dfe7f3; font-weight: 500; text-shadow: none; }
.board-t .b-dl { text-align: right; font-weight: 800; }
.b-dl.r { color: var(--led-red); text-shadow: 0 0 8px rgba(255,106,95,.4); } .b-dl.a { color: var(--led); } .b-dl.g { color: var(--led-green); }
.b-wait { color: #9fb0c8 !important; font-family: var(--sans); white-space: normal !important; text-shadow: none !important; padding: 18px 6px !important; }
.board-foot { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 12px 4px 0; margin-top: 6px; border-top: 1px solid rgba(255,178,26,.22); font: 13.5px var(--sans); color: #b8c4d6; }
.board-foot b { font-family: var(--mono); color: var(--led); font-size: 15px; }
.board-note { font: 12.5px var(--sans); color: #8494ad; margin: 10px 4px 0; }

/* Secciones */
section { padding: 72px 0; }
.sec-h { margin-bottom: 14px; max-width: 22ch; }
.sec-sub { color: var(--ink-2); font-size: 18px; margin-bottom: 28px; }
.intro { background: var(--paper-2); border-block: 1px solid var(--rule); }
.intro h2 { margin-bottom: 20px; }
.intro p { font-size: 18.5px; color: var(--ink-2); }
.note { font-size: 14.5px; color: var(--ink-2); }

/* Funciones con capturas */
.features .sec-h { margin-bottom: 40px; }
.feat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; padding: 40px 0; border-top: 1px solid var(--rule); }
.feat.rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feat.rev .feat-txt { order: 2; }
.feat-txt h3 { font-size: clamp(22px, 2.3vw, 28px); margin-bottom: 14px; }
.feat-txt p { color: var(--ink-2); }
.ticks { margin: 4px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 16px; }
.ticks li { position: relative; padding-left: 22px; margin: 7px 0; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--blue); }
.shot { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--rule); box-shadow: var(--shadow); background: var(--card); }
.shot:hover { border-color: var(--ink-2); }
.shot-phone { max-width: 300px; justify-self: center; border-radius: 28px; border: 8px solid #1b2433; }
.feat-duo { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.duo { position: relative; padding-bottom: 40px; padding-right: 60px; }
.duo .shot-phone { position: absolute; right: 0; bottom: 0; width: 34%; max-width: 210px; border-width: 6px; border-radius: 22px; }

/* Para quién */
.who { background: var(--paper-2); border-block: 1px solid var(--rule); }
.who-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 28px; border-top: 2px solid var(--ink); }
.who-grid > div { padding: 22px 28px 8px 0; }
.who-grid > div + div { padding-left: 28px; border-left: 1px solid var(--rule); }
.who-grid h3 { margin-bottom: 10px; }
.who-grid p { color: var(--ink-2); font-size: 16.5px; }
.drivers { margin-top: 36px; background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--red); border-radius: 0 12px 12px 0; padding: 22px 26px; }
.drivers h3 { margin-bottom: 8px; }
.drivers p { margin: 0; color: var(--ink-2); max-width: 82ch; }
.drivers b { color: var(--ink); }

/* Datos */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.cmp { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 24px 26px; }
.cmp.next { background: transparent; border-style: dashed; }
.cmp h3 { margin-bottom: 14px; }
.cmp ul { margin: 0 0 8px; padding-left: 20px; color: var(--ink-2); font-size: 16px; }
.cmp li { margin: 8px 0; } .cmp b { color: var(--ink); }
.limits { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 12px 48px; }
.limits h3 { font-size: clamp(22px, 2.3vw, 28px); grid-row: span 2; }
.limits ul { margin: 0; padding: 0; list-style: none; }
.limits li { padding: 11px 0 11px 30px; border-bottom: 1px solid var(--rule); position: relative; font-weight: 550; }
.limits li::before { content: ''; position: absolute; left: 4px; top: 50%; width: 14px; height: 2px; background: var(--amber); }
.limits p { color: var(--ink-2); margin-top: 16px; }

/* Colabora: tres pasos en orden */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.steps li { counter-increment: s; position: relative; padding: 18px 0 0; border-top: 2px solid var(--blue); }
.steps li::before { content: counter(s); position: absolute; top: -15px; left: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: var(--blue-ink); font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--ink-2); font-size: 16px; }
.collab .note { margin-top: 12px; }

.close { text-align: left; background: var(--board); color: #e6ecf5; }
.close h2 { color: #fff; margin-bottom: 12px; }
.close p { color: #b8c4d6; font-size: 19px; }
.close .btn { margin-top: 14px; }
/* En la franja oscura del final, el botón secundario va en claro (antes: texto oscuro sobre fondo oscuro) */
.close .btn-ghost { color: #e6ecf5; border-color: rgba(230, 236, 245, .45); }
.close .btn-ghost:hover { border-color: #e6ecf5; color: #fff; }

/* Pie */
.foot { padding: 40px 0 48px; border-top: 1px solid var(--rule); font-size: 14.5px; color: var(--ink-2); }
.foot-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.foot-brand { font-weight: 800; font-size: 18px; color: var(--ink); margin-bottom: 6px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-links a { color: var(--ink-2); }

/* Tableta */
@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; gap: 40px; }
  .feat, .feat.rev, .feat-duo { grid-template-columns: 1fr; gap: 24px; }
  .feat.rev .feat-txt { order: 0; }
  .who-grid { grid-template-columns: 1fr; border-top: 0; }
  .who-grid > div, .who-grid > div + div { padding: 18px 0; border-left: 0; border-top: 1px solid var(--rule); }
  .limits { grid-template-columns: 1fr; }
  .limits h3 { grid-row: auto; }
}
/* Móvil */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section { padding: 52px 0; }
  .hero { padding: 36px 0 52px; }
  .lead { font-size: 18px; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; background: var(--paper); border-bottom: 1px solid var(--rule); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 17px; }
  .nav .btn { margin-top: 12px; min-height: 48px; }
  .ctas .btn { flex: 1 1 100%; }
  .board { padding: 14px 12px 12px; }
  .board-t { font-size: 13.5px; }
  .board-t .b-next { display: none; }
  .board-t td { max-width: 120px; }
  .compare { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .foot-in { grid-template-columns: 1fr; gap: 8px; }
  .shot-phone { max-width: 250px; }
  .duo { padding-right: 40px; padding-bottom: 30px; }
}

/* Qué hace: resumen en seis piezas */
.features .sec-sub { margin-bottom: 32px; }
.overview { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 40px; align-items: center; }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.pillars li { padding: 16px 0 6px; border-top: 1px solid var(--rule); }
.pillars h3 { font-size: 18px; margin-bottom: 6px; }
.pillars h3 a { color: var(--ink); text-decoration: none; }
.pillars h3 a::after { content: ' →'; color: var(--blue); }
.pillars h3 a:hover { color: var(--blue); }
.pillars p { color: var(--ink-2); font-size: 15.5px; margin: 0 0 8px; }
.overview-note { margin-top: 22px; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin: 0 0 8px; }

/* Bloque de la app instalable */
.app-block { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 40px; align-items: center; background: var(--card); border: 1px solid var(--rule); border-top: 4px solid var(--blue); border-radius: 16px; padding: 34px 36px; box-shadow: var(--shadow); }
.app-txt h2 { margin-bottom: 14px; }
.app-txt > p { color: var(--ink-2); }
.app-steps { list-style: none; margin: 18px 0 14px; padding: 0; display: grid; gap: 10px; }
.app-steps li { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 4px 16px; padding: 12px 14px; background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; font-size: 16px; }
.app-steps b { color: var(--ink); }
.app-steps span { color: var(--ink-2); }
.app-block .shot-phone { max-width: 240px; }
.app-block .ctas { margin-top: 18px; }

/* Para quién: perfiles */
.prof-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.prof-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 999px; background: var(--card); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; }
.prof-nav a:hover { border-color: var(--blue); color: var(--blue); }
.prof { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 20px 44px; padding: 44px 0 36px; border-top: 2px solid var(--ink); margin-top: 32px; }
.prof-head > p { color: var(--ink-2); font-size: 16.5px; }
.prof-head h3 { font-size: clamp(24px, 2.5vw, 30px); margin-bottom: 12px; }
.prof-num { font-family: var(--mono); font-weight: 700; color: var(--blue); font-size: 15px; margin: 0 0 6px; }
.prof-head .shot { margin-top: 22px; }
.prof-head .shot-phone { max-width: 220px; justify-self: start; }
.prof-head .duo { margin-top: 22px; padding-right: 40px; padding-bottom: 112px; }
.prof-head .duo .shot { margin-top: 0; }
.prof-head .duo .shot-phone { width: 30%; max-width: 110px; border-width: 5px; border-radius: 16px; }
.pcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-content: start; }
.pcard { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 18px 20px 16px; display: flex; flex-direction: column; }
.pcard h4 { font-size: 17.5px; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 8px; }
.pcard p { color: var(--ink-2); font-size: 15.5px; margin: 0 0 10px; }
.pcard .note { font-size: 14px; }
.pcard-link { margin-top: auto; font-weight: 700; font-size: 15px; text-decoration: none; align-self: flex-start; }
.pcard-link::after { content: ' →'; }
.pcard-link:hover { text-decoration: underline; }
.pcard-wide { grid-column: 1 / -1; }
/* Foto de la función (sprint 079): arriba de la tarjeta, a sangre */
.pcard-img { display: block; max-width: none; width: calc(100% + 40px); margin: -18px -20px 14px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px 12px 0 0; background: var(--paper-2); }
.pcard:has(.pcard-img) { overflow: hidden; }
.pcard-img-wide { aspect-ratio: 21 / 8; object-position: 50% 6%; }
.pcard-tl { flex-direction: row; gap: 18px; align-items: flex-start; border-color: color-mix(in srgb, var(--blue) 45%, var(--rule)); }
.pcard-tl > div { display: flex; flex-direction: column; min-width: 0; }
.pcard-ico { width: 56px; height: 56px; flex: 0 0 56px; }
.prof-note { grid-column: 2; margin: 0; }
.codebox { margin: 22px 0 0; background: var(--board); color: #dfe7f3; border-radius: 12px; padding: 14px 16px; font: 13.5px/1.6 var(--mono); overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.codebox .cb-c { color: var(--led-dim); }
.who .drivers { margin-top: 44px; }

@media (max-width: 980px) {
  .overview, .app-block, .prof { grid-template-columns: 1fr; }
  .prof-note { grid-column: auto; }
  .prof-head { display: grid; grid-template-columns: minmax(0, 1fr); }
  .app-block .shot-phone { justify-self: center; }
}
@media (max-width: 720px) {
  .pillars, .pcards { grid-template-columns: 1fr; }
  .app-block { padding: 24px 18px; margin-top: 44px; }
  .app-steps li { grid-template-columns: 1fr; }
  .prof { padding-top: 32px; margin-top: 24px; }
  .pcard-tl { flex-direction: column; gap: 10px; }
  .prof-nav a { font-size: 14.5px; }
}
/* Cabecera algo más compacta en pantallas medianas-grandes para que quepan todas las secciones (también «Hipótesis») */
.nav .btn { white-space: nowrap; }
@media (min-width: 1441px) {
  .nav { gap: 14px; }
  .nav a:not(.btn) { font-size: 14.5px; }
  .nav .langs a { padding: 4px 6px; }
  .top-in { gap: 24px; max-width: 1320px; }
}
/* Menú plegable también en pantallas medianas, para que quepan todas las secciones */
@media (max-width: 1440px) and (min-width: 721px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 16px; background: var(--paper); border-bottom: 1px solid var(--rule); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 17px; }
  .nav .btn { margin-top: 12px; min-height: 48px; }
  .nav .langs { margin-top: 12px; justify-content: space-between; }
  .nav .langs a { flex: 1; text-align: center; padding: 8px 0; border-bottom: 0 !important; }
}

/* Selector de idioma */
.langs { display: inline-flex; gap: 2px; border: 1px solid var(--rule); border-radius: 8px; padding: 2px; }
.langs a { padding: 4px 7px; border-radius: 6px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); text-decoration: none; }
.langs a[aria-current="page"] { background: var(--ink); color: var(--paper); }
@media (max-width: 720px) { .nav .langs { margin-top: 12px; justify-content: space-between; } .nav .langs a { flex: 1; text-align: center; padding: 8px 0; border-bottom: 0 !important; } }

/* Simulación: escenarios «¿qué pasaría si…?» (acceso bajo solicitud) */
.sim { border-bottom: 1px solid var(--rule); }
.sim-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.sim .sec-h { margin-bottom: 16px; }
.sim-badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 5px 12px; border: 1px solid color-mix(in srgb, var(--amber) 55%, var(--rule)); background: color-mix(in srgb, var(--amber) 12%, var(--card)); border-radius: 999px; color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.35; }
.sim-badge::before { content: ''; flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.sim .ctas { margin-top: 4px; }
.sim-access { margin: 14px 0 0; }
.sim-fig { margin: 0; background: var(--board); color: #dfe7f3; border-radius: 14px; padding: 16px 18px 14px; box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.04); font-family: var(--mono); min-width: 0; }
.sim-fig-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0 2px 12px; margin-bottom: 6px; border-bottom: 1px solid rgba(255,178,26,.22); }
.sim-fig-head p { margin: 0; font: 700 15.5px/1.3 var(--sans); color: #dfe7f3; }
.sim-fig-head span { flex: none; font: 600 11px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--led-dim); border: 1px solid rgba(255,178,26,.3); border-radius: 999px; padding: 2px 8px; }
.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree ul { margin-left: 14px; }
.tree li { position: relative; padding: 8px 0 0 22px; }
.tree > li { padding: 6px 0 0; }
.tree ul > li::before { content: ''; position: absolute; left: 0; top: 0; width: 16px; height: 24px; border-left: 1px solid rgba(255,178,26,.45); border-bottom: 1px solid rgba(255,178,26,.45); border-bottom-left-radius: 6px; }
.tree ul > li:not(:last-child)::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; border-left: 1px solid rgba(255,178,26,.45); }
.t-n { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; background: var(--board-2); border: 1px solid rgba(255,255,255,.12); border-radius: 7px; font-size: 14px; line-height: 1.5; white-space: nowrap; }
.t-n b { font-weight: 800; }
.t-n b.r { color: var(--led-red); } .t-n b.a { color: var(--led); } .t-n b.g { color: var(--led-green); }
.t-cause { white-space: normal; border-color: color-mix(in srgb, var(--led-red) 70%, transparent); color: #fff; font: 700 14px/1.4 var(--sans); }
.t-ln { display: inline-block; padding: 0 5px; border-radius: 4px; background: rgba(255,178,26,.14); color: var(--led); font: 800 11px/1.6 var(--mono); }
.sim-lines { list-style: none; margin: 14px 0 0; padding: 12px 2px 0; border-top: 1px solid rgba(255,178,26,.22); display: grid; gap: 6px; font: 14px var(--sans); color: #b8c4d6; }
.sim-lines li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sim-lines b { font-family: var(--mono); color: var(--led); }
.sim-fig figcaption { font: 12.5px var(--sans); color: #8494ad; margin: 10px 2px 0; }
.sim-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 44px; }
.sim-cards .ticks { margin: 0; font-size: 15px; }
.sim-cards .ticks li { margin: 5px 0; }
.sim-limits { margin-top: 28px; background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--amber); border-radius: 0 12px 12px 0; padding: 22px 26px; }
.sim-limits h3 { margin-bottom: 8px; }
.sim-limits p { margin: 0; color: var(--ink-2); max-width: 82ch; }
.sim-limits b { color: var(--ink); }
.pcard-sim { border-color: color-mix(in srgb, var(--blue) 45%, var(--rule)); }
.sim-badge-sm { align-self: flex-start; margin: 0 0 10px; padding: 2px 10px; font-size: 12.5px; }
/* Hipótesis de incidencia (sprints 066–067): cuatro tarjetas en 2 × 2; en la simulación, la última tarjeta suelta ocupa la fila */
.hyp .sim-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 980px; }
@media (min-width: 981px) { .sim:not(.hyp) .sim-cards .pcard:last-child:nth-child(3n+1) { grid-column: 1 / -1; } }
@media (max-width: 980px) {
  .sim-top { grid-template-columns: 1fr; gap: 36px; }
  .sim-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .sim-cards, .hyp .sim-cards { grid-template-columns: 1fr; margin-top: 32px; }
  .sim-limits { padding: 18px 18px; }
  .sim-fig { padding: 14px 12px 12px; }
}

/* En breve: elevator pitch (sprint 071) */
.pitch { padding: 40px 0 44px; background: var(--card); border-top: 1px solid var(--rule); }
.pitch .eyebrow { margin-bottom: 12px; }
.pitch-txt { font-size: 19.5px; line-height: 1.6; color: var(--ink); margin: 0 0 20px; padding-left: 18px; border-left: 4px solid var(--blue); }
.pitch-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pitch-facts li { font-size: 14.5px; font-weight: 700; color: var(--ink-2); background: var(--paper-2); border: 1px solid var(--rule); border-radius: 999px; padding: 5px 12px; }
@media (max-width: 720px) {
  .pitch { padding: 30px 0 32px; }
  .pitch-txt { font-size: 17.5px; padding-left: 14px; }
}

/* Personas usando Trenalia (sprint 078) */
.people { padding: 48px 0 56px; }
.people-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.person { margin: 0; background: var(--card); border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(11,17,28,.06), 0 12px 32px -18px rgba(11,17,28,.35); transition: transform .25s ease, box-shadow .25s ease; }
.person:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(11,17,28,.08), 0 22px 44px -20px rgba(11,17,28,.45); }
.person img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--paper-2); transition: transform .6s ease; }
.person:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .person, .person img { transition: none; } .person:hover, .person:hover img { transform: none; } }
.person figcaption { padding: 12px 14px 14px; font-size: 15.5px; color: var(--ink-2); }
.people.empty { display: none; }
@media (max-width: 980px) { .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .people-grid { grid-template-columns: 1fr; } }
/* Novedades por correo */
.newsband { padding: 44px 0; background: #0b111c; color: #fff; }
.newsband h2 { color: #fff; margin: 0 0 8px; }
.newsband p { color: #c8d2e2; font-size: 17.5px; margin: 0 0 18px; }
.newsband .btn { background: #1f6fd1; color: #fff; border-color: #1f6fd1; }
/* Banda de novedades con foto suavizada a la derecha (sprint 079) */
.newsband-photo { position: relative; overflow: hidden; padding: 84px 0; background: #0b111c; }
.newsband-photo::after { content: ''; position: absolute; z-index: 0; inset: 0; background: url('/web/img/boletin-banda.jpg') 80% 40% / cover no-repeat; }
.newsband-photo::before { content: ''; position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgba(11,17,28,.92) 0%, rgba(11,17,28,.75) 34%, rgba(11,17,28,.15) 62%, rgba(11,17,28,0) 100%); }
.newsband-photo > .wrap { position: relative; z-index: 2; max-width: 1180px; }
.newsband-photo > .wrap > * { max-width: 520px; }
@media (max-width: 760px) { .newsband-photo::after { background-position: 75% 40%; opacity: .55; } .newsband-photo::before { background: linear-gradient(180deg, rgba(11,17,28,.6), rgba(11,17,28,.9)); } }
.newsband .btn-ghost { background: transparent; color: #e6ecf5; border-color: rgba(230, 236, 245, .45); margin-left: 8px; }
.newsband .btn-ghost:hover { border-color: #fff; }

/* Valoración de Trenalia (sprint 092) */
.rateband { padding: 40px 0; background: var(--paper-2); border-top: 1px solid var(--rule); }
.rate-in { display: grid; grid-template-columns: 1fr auto; gap: 14px 28px; align-items: center; }
.rate-in h2 { margin: 0 0 6px; }
.rate-in p { margin: 0; color: var(--ink-2); }
.rate-box { grid-row: span 2; text-align: center; background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 16px 22px; box-shadow: var(--shadow); min-width: 180px; }
.rate-box b { display: block; font-size: 40px; line-height: 1.05; }
.rate-box .rate-st { color: #f5b301; font-size: 24px; letter-spacing: 2px; }
.rate-box small { display: block; color: var(--ink-2); font-size: 14px; }
.rate-in .btn { justify-self: start; }
@media (max-width: 640px) { .rate-in { grid-template-columns: 1fr; } .rate-box { grid-row: auto; } }
.rate-ov { position: fixed; inset: 0; z-index: 10050; background: rgba(10,16,28,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.rate-dlg { width: min(440px, 100%); background: var(--card); color: var(--ink); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
.rate-dlg h3 { margin: 0 28px 6px 0; font-size: 19px; }
.rate-dlg .rate-x { float: right; background: none; border: 0; font-size: 24px; line-height: 1; color: inherit; opacity: .6; cursor: pointer; }
.rate-stars { display: flex; gap: 4px; margin: 8px 0; }
.rate-stars button { background: none; border: 0; padding: 0 2px; font-size: 38px; line-height: 1; color: #c3cad6; cursor: pointer; }
.rate-stars button.on { color: #f5b301; }
.rate-dlg label { display: block; font-weight: 600; font-size: 14px; margin: 8px 0 4px; }
.rate-dlg textarea { width: 100%; box-sizing: border-box; min-height: 70px; font: inherit; font-size: 15px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--rule); background: var(--paper); color: inherit; resize: vertical; }
.rate-dlg .rate-p { font-size: 13px; color: var(--ink-2); margin: 8px 0 0; }
.rate-dlg .rate-msg { min-height: 1em; color: var(--red); font-size: 13px; margin-top: 6px; }
.rate-dlg .rate-act { display: flex; gap: 8px; margin-top: 12px; }
.rate-dlg .rate-act .btn { flex: 1; min-height: 44px; }
.rate-dlg .btn:disabled { opacity: .5; cursor: default; }

/* Difundir entre estudiantes: cartel A4 para imprimir */
.collab .spread { margin-top: 28px; padding: 20px 22px; border: 1px solid var(--rule); border-radius: 14px; background: var(--card); }
.collab .spread h3 { margin: 0 0 6px; font-size: 18px; }
.collab .spread p { margin: 0 0 14px; color: var(--ink-2); }

/* Sprint 114: página de llegada de una recomendación (#recomendado) */
.rec { padding: 56px 0 40px; background: var(--paper-2); border-bottom: 1px solid var(--rule); }
.rec h2 { margin: 4px 0 10px; font-size: clamp(34px, 6vw, 56px); line-height: 1.02; letter-spacing: -1px; }
.rec .rec-lead { max-width: 640px; font-size: 18px; color: var(--ink-2); margin: 0 0 22px; }
.rec .rec-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.rec .rec-list li { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 16px; }
.rec .rec-list svg { flex: none; width: 28px; height: 28px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rec .rec-list h3 { margin: 0 0 4px; font-size: 16.5px; }
.rec .rec-list p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.rec .rec-note { margin: 18px 0 0; font-size: 13px; color: var(--ink-2); }
/* Sprint 142: llamada a sumarse al sensor a bordo */
.sensorband { position: relative; overflow: hidden; padding: 72px 0 64px; background: radial-gradient(120% 140% at 85% 10%, #123a2c 0%, #0b111c 55%); color: #fff; }
.sensorband .wrap { position: relative; z-index: 1; max-width: 1180px; }
.sensorband .wrap > * { max-width: 640px; }
.sensorband .eyebrow { color: #3ecf8e; }
.sensorband h2 { color: #fff; margin: 0 0 12px; font-size: clamp(28px, 4vw, 42px); line-height: 1.12; letter-spacing: -0.01em; }
.sensorband .sb-lead { color: #c8d2e2; font-size: 18px; line-height: 1.55; margin: 0 0 18px; }
.sensorband .sb-calm { color: #c8d2e2; font-size: 15px; line-height: 1.5; margin: -6px 0 18px; padding: 10px 14px; border-left: 3px solid #4cc38a; background: rgba(76, 195, 138, .08); border-radius: 0 10px 10px 0; }
.sensorband .sb-calm b { color: #e8eef7; }
.sensorband .sb-pts { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.sensorband .sb-pts li { position: relative; padding-left: 28px; color: #e6ecf5; font-size: 16px; }
.sensorband .sb-pts li::before { content: ''; position: absolute; left: 0; top: 0.45em; width: 14px; height: 14px; border-radius: 50%; background: #3ecf8e; box-shadow: 0 0 0 4px rgba(62, 207, 142, .18); }
.sensorband .btn { background: #3ecf8e; color: #062016; border-color: #3ecf8e; font-weight: 700; }
.sensorband .btn:hover { background: #5fe0a5; border-color: #5fe0a5; }
.sensorband .btn-ghost { background: transparent; color: #e6ecf5; border-color: rgba(230, 236, 245, .45); margin-left: 8px; font-weight: 600; }
.sensorband .btn-ghost:hover { border-color: #fff; }
.sensorband .sb-note { color: #8fa0b8; font-size: 13.5px; margin: 18px 0 0; }
.sensorband .sb-wave { position: absolute; z-index: 0; right: -4%; top: 50%; width: 58%; height: 160px; transform: translateY(-50%); fill: none; stroke: #3ecf8e; stroke-width: 2.4; stroke-linejoin: round; opacity: .35; }
@media (max-width: 860px) { .sensorband .sb-wave { width: 120%; right: -10%; top: auto; bottom: 8px; transform: none; height: 90px; opacity: .2; } .sensorband .btn-ghost { margin: 10px 0 0; } }

/* Portada (sprint 144): titular de propósito, el mapa casi en tiempo real como subtítulo y los símiles del sensor */
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); }
.hero-sub { margin: 16px 0 0; font-size: clamp(19px, 2vw, 24px); font-weight: 700; line-height: 1.3; color: var(--blue); letter-spacing: -0.01em; }
.hero .lead { margin-top: 18px; }
.hero .lead-2 { margin-top: 12px; font-size: 18px; }
.sensorband .wrap > .sb-sims { max-width: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 28px; }
.sb-sim { padding: 18px 20px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(2px); }
.sb-sim h3 { color: #fff; font-size: 18px; margin: 0 0 8px; letter-spacing: -0.01em; }
.sb-sim p { color: #c8d2e2; font-size: 15.5px; line-height: 1.55; margin: 0; }
@media (max-width: 860px) { .sensorband .wrap > .sb-sims { grid-template-columns: 1fr; } .hero .lead-2 { font-size: 16.5px; } }

/* Sprint 164 · Sala de juegos «Jefe de estación»: banda arcade con pantallas simuladas */
.arcadeband { position: relative; overflow: hidden; padding: 72px 0 64px; color: #fff; background: radial-gradient(120% 120% at 20% 0%, #2a1660 0%, #07060f 62%);
  background-image: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .03) 0 1px, transparent 1px 3px), radial-gradient(120% 120% at 20% 0%, #2a1660 0%, #07060f 62%); }
.arcadeband .wrap { max-width: 1180px; }
.arcadeband .eyebrow { color: #ff3ea5; font-family: ui-monospace, Menlo, Consolas, monospace; text-transform: uppercase; letter-spacing: .08em; }
.arcadeband h2 { color: #ffe04a; margin: 0 0 12px; font-size: clamp(28px, 4vw, 42px); line-height: 1.12; text-shadow: 3px 3px 0 #b8126c; max-width: 820px; }
.arcadeband .ab-lead { color: #dcd7ff; font-size: 17px; line-height: 1.6; max-width: 760px; margin: 0 0 26px; }
.ab-screens { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 24px; }
.ab-scr { margin: 0; border: 3px solid #2ff3ff; border-radius: 14px; overflow: hidden; background: #0f0c24; box-shadow: 0 0 22px rgba(47, 243, 255, .2); }
.ab-scr:nth-child(2) { border-color: #ff3ea5; box-shadow: 0 0 22px rgba(255, 62, 165, .2); }
.ab-scr:nth-child(3) { border-color: #ffe04a; box-shadow: 0 0 22px rgba(255, 224, 74, .2); }
.ab-scr svg { display: block; width: 100%; height: auto; }
.ab-scr figcaption { padding: 12px 14px 14px; color: #d7d2ff; font-size: 15px; line-height: 1.5; }
.ab-scr figcaption b { color: #fff; }
.ab-why { border: 2px solid #4dff8a; border-radius: 14px; padding: 16px 18px; background: rgba(77, 255, 138, .06); margin: 0 0 24px; max-width: 900px; }
.ab-why h3 { color: #4dff8a; margin: 0 0 8px; font-size: 18px; }
.ab-why ul { margin: 0; padding-left: 20px; color: #e9e4ff; } .ab-why li { margin: 4px 0; }
.arcadeband .btn { background: #ffe04a; color: #160a2e; box-shadow: 0 4px 0 #b08d00; }
.arcadeband .btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .35); box-shadow: none; }
.arcadeband .sb-note { color: #a49fcf; }
@media (max-width: 1100px) { .ab-screens { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ab-screens { grid-template-columns: 1fr; } }
.ab-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 24px; }
.ab-card { padding: 18px 20px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); }
.ab-card h3 { color: #fff; margin: 0 0 8px; font-size: 18px; }
.ab-card p { color: #d7d2ff; margin: 0; line-height: 1.55; }
.ab-card .ab-safe { margin-top: 10px; color: #4dff8a; font-size: 14.5px; }
@media (max-width: 860px) { .ab-cards { grid-template-columns: 1fr; } }

/* Sprint 165: simulaciones con la red de móviles voluntarios */
.sim-crowd { margin: 24px 0; padding: 18px 20px; border-radius: 14px; border: 2px solid #1fa35a; background: rgba(31, 163, 90, .07); max-width: 900px; }
.sim-crowd h3 { margin: 0 0 8px; }
.sim-crowd p { margin: 0 0 8px; line-height: 1.55; }
.sim-crowd .sim-crowd-safe { font-size: 14.5px; color: #1a8a4c; }
.foot-soc { margin-top: 14px; } /* sprint 170 */
/* Sprint 203: la marca en el titular (para que los buscadores distingan «Trenalia» de «Trenitalia») */
.hero h1 .h1-brand { display: block; font-size: .5em; letter-spacing: -0.01em; color: var(--accent, #2f7bff); margin-bottom: .2em; }
/* Sprint 220: filas que abren el tren y cancelados de las últimas 4 horas */
.board-t tr.b-go { cursor: pointer; }
.board-t tr.b-go:hover td, .board-t tr.b-go:focus-visible td { background: rgba(255,178,26,.08); }
.board-t tr.b-go:focus-visible { outline: 2px solid var(--led); outline-offset: -2px; }
.board-cx { margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255,178,26,.22); position: relative; z-index: 1; }
.board-cx .cx-head { border-bottom: 0; padding-bottom: 4px; }
.board-cx .cx-head h2 { font-size: 15px; }
.board-cx .cx-n { color: var(--led-red); text-shadow: 0 0 10px rgba(255,106,95,.45); }
.board-cx td.cx-dep { color: var(--led-red); }
.board-cx .cx-up { font: 600 10.5px var(--sans); color: var(--led-dim); text-transform: uppercase; letter-spacing: .04em; }
.board-cx td.cx-rt { max-width: 260px; }
/* Sprint 225 · SOS automático */
.sosband { padding: 56px 0 48px; background: linear-gradient(135deg, #3a0d0b 0%, #0b111c 70%); color: #fff; }
.sosband .wrap > * { max-width: 680px; }
.sosband .eyebrow { color: #ff8a80; font-weight: 700; }
.sosband h2 { color: #fff; margin: 0 0 12px; font-size: clamp(26px, 3.6vw, 38px); line-height: 1.15; }
.sosband .sos-lead { font-size: 17px; line-height: 1.55; color: #e9edf4; }
.sosband .sos-pts { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; }
.sosband .sos-pts li { padding-left: 26px; position: relative; color: #e9edf4; }
.sosband .sos-pts li::before { content: "✓"; position: absolute; left: 0; color: #ff8a80; font-weight: 700; }
.sosband .sos-btn { background: #b3261e; border-color: #b3261e; color: #fff; }
.sosband .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.sosband .sos-note { margin-top: 14px; font-size: 13px; color: #c3cad6; }

/* Sprint 229 · Apps nativas en beta: franja con formulario de inscripción */
.appsband { padding: 60px 0 56px; background: linear-gradient(135deg, #0d2a5c 0%, #0b111c 75%); color: #fff; }
.apps-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.appsband .eyebrow { color: #8fb8ff; font-weight: 700; }
.appsband h2 { color: #fff; margin: 0 0 12px; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.12; }
.apps-lead { font-size: 17px; line-height: 1.55; color: #e9edf4; margin: 0 0 14px; }
.apps-pts { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.apps-pts li { position: relative; padding-left: 28px; line-height: 1.45; color: #dfe6f1; }
.apps-pts li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: #2563eb; color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.apps-form { background: #fff; color: #16202f; border-radius: 18px; padding: 22px 22px 18px; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.apps-form h3 { margin: 0 0 6px; font-size: 22px; }
.apps-fs { margin: 0 0 14px; color: #4a5568; font-size: 15px; line-height: 1.45; }
.apps-l { display: block; font-weight: 700; font-size: 14px; margin: 0 0 6px; }
.apps-form input[type=email] { width: 100%; box-sizing: border-box; height: 48px; padding: 0 14px; border: 1.5px solid #c9d2df; border-radius: 12px; font: inherit; font-size: 16px; }
.apps-form input[type=email]:focus { outline: 3px solid rgba(37, 99, 235, .3); border-color: #2563eb; }
.apps-pl { border: 0; margin: 14px 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.apps-pl legend { font-weight: 700; font-size: 14px; margin-bottom: 6px; padding: 0; }
.apps-pl label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.5px solid #c9d2df; border-radius: 999px; cursor: pointer; font-weight: 600; }
.apps-pl label:has(input:checked) { border-color: #2563eb; background: #eaf1ff; color: #123a8a; }
.apps-c { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: #4a5568; line-height: 1.4; margin: 4px 0 14px; }
.apps-c input { margin-top: 3px; flex: none; width: 18px; height: 18px; }
.apps-go { width: 100%; justify-content: center; }
.apps-go[disabled] { opacity: .6; cursor: progress; }
.apps-msg { margin: 10px 0 0; font-weight: 600; font-size: 14.5px; min-height: 1em; }
.apps-msg.ok { color: #0a7a3d; }
.apps-msg.err { color: #b3261e; }
.apps-note { margin: 10px 0 0; font-size: 12.5px; color: #6b7686; line-height: 1.4; }
@media (max-width: 860px) { .apps-in { grid-template-columns: 1fr; gap: 26px; } .appsband { padding: 44px 0 40px; } }

/* Sprint 236 · Mapa de calor público de los sensores a bordo (sección «Únete a la red de sensores») */
.sensorband .wrap > .sb-heat { max-width: 920px; margin: 8px 0 26px; }
.sb-heat h3 { color: #fff; font-size: 22px; margin: 0 0 8px; }
.sb-heat > p { color: #c8d2e2; font-size: 16px; line-height: 1.55; margin: 0 0 14px; }
.sb-heat .sb-calm { margin: 0 0 16px; }
.sb-map { position: relative; height: 440px; border-radius: 14px; overflow: hidden; background: #0b111c; border: 1px solid rgba(255,255,255,.12); }
.sb-map-empty { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; max-width: 80%; padding: 12px 16px; border-radius: 10px; background: rgba(11,17,28,.85); color: #e6ecf5; font-size: 15px; text-align: center; pointer-events: none; }
.sb-map.sb-map-off { height: auto; padding: 18px; color: #c8d2e2; font-size: 14px; }
.sb-leg { display: flex; align-items: center; gap: 8px; margin: 10px 0 4px; color: #c8d2e2; font-size: 13px; flex-wrap: wrap; }
.sb-leg-bar { display: inline-block; width: 140px; height: 10px; border-radius: 6px; background: linear-gradient(90deg, rgba(62,207,142,.25), rgba(62,207,142,.75), rgba(160,236,120,.9), rgba(236,255,190,1)); }
.sb-cnt { color: #e6ecf5; font-size: 15px; font-weight: 600; margin: 6px 0 4px; min-height: 1.2em; }
@media (max-width: 600px) { .sb-map { height: 340px; } }
/* Sprint 237: con el mapa la sección es mucho más alta; la onda va arriba, junto al título, y no cruza el texto ni el mapa */
.sensorband .sb-wave { top: 110px; transform: none; }
.sensorband .wrap > .sb-heat { position: relative; z-index: 1; }
@media (max-width: 860px) { .sensorband .sb-wave { top: auto; bottom: 8px; } }

/* Sprint 241 · Trenalia en Telegram (canal y bot a la carta) */
.tgband { padding: 52px 0; background: linear-gradient(135deg, #e8f5fd 0%, #f6fbff 70%); }
[data-theme="dark"] .tgband { background: linear-gradient(135deg, #0f2537 0%, #0b111c 75%); }
.tgband .eyebrow { color: #1a8ac4; font-weight: 700; }
.tgband h2 { margin: 0 0 10px; font-size: clamp(24px, 3.2vw, 36px); line-height: 1.15; }
.tg-lead { font-size: 17px; line-height: 1.55; max-width: 820px; margin: 0 0 18px; }
.tg-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 900px; }
.tg-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 16px; background: #fff; border: 1.5px solid #bfe3f6; color: inherit; text-decoration: none; box-shadow: 0 6px 20px rgba(34, 158, 217, .12); }
[data-theme="dark"] .tg-card { background: #12202e; border-color: #1f4d6b; }
.tg-card:hover, .tg-card:focus-visible { border-color: #229ED9; }
.tg-card b { font-size: 17px; } .tg-card span { line-height: 1.45; opacity: .85; } .tg-card em { font-style: normal; font-weight: 700; color: #1a8ac4; margin-top: auto; }
.tg-how { margin: 14px 0 0; } .tg-how a { font-weight: 700; } .tg-how small { opacity: .75; }
@media (max-width: 700px) { .tg-cards { grid-template-columns: 1fr; } .tgband { padding: 40px 0; } }

/* Sprint 243 · Metro y tranvía en el mapa */
.metroband { padding: 52px 0; background: linear-gradient(135deg, #fdecee 0%, #fff8f3 70%); }
[data-theme="dark"] .metroband { background: linear-gradient(135deg, #2a1418 0%, #0b111c 75%); }
.metroband .eyebrow { color: #c8102e; font-weight: 700; }
[data-theme="dark"] .metroband .eyebrow { color: #ff7a8a; }
.metroband h2 { margin: 0 0 10px; font-size: clamp(24px, 3.2vw, 36px); line-height: 1.15; }
.mt-lead { font-size: 17px; line-height: 1.55; max-width: 820px; margin: 0 0 18px; }
.mt-cities { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; max-width: 900px; }
.mt-city { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1.5px solid #f3c2c9; color: inherit; text-decoration: none; font-weight: 700; }
.mt-city::before { content: "🚇"; margin-right: 7px; font-size: 15px; }   /* genérico: ningún logotipo de operador */
[data-theme="dark"] .mt-city { background: #1b1416; border-color: #5a2630; }
.mt-city:hover, .mt-city:focus-visible { border-color: #c8102e; }
.mt-note { margin: 14px 0 0; font-size: 14px; opacity: .75; max-width: 820px; }
@media (max-width: 700px) { .metroband { padding: 40px 0; } .mt-city { padding: 7px 12px; } }

/* Sprint 245 · Revista EN VÍA */
.magband { padding: 56px 0; background: #14171c; color: #f3ede4; }
.mg-in { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: center; }
.mg-cover { position: relative; display: block; aspect-ratio: 210 / 297; background: linear-gradient(160deg, #2a3442, #14171c); background-size: cover; background-position: center; box-shadow: 0 18px 40px rgba(0, 0, 0, .5); text-decoration: none; color: #fff; overflow: hidden; }
.mg-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .35)); }
.mg-mast { position: absolute; z-index: 1; top: 7%; left: 0; right: 0; text-align: center; font: 600 34px/1 Georgia, "Times New Roman", serif; letter-spacing: .05em; }
.mg-n { position: absolute; z-index: 1; bottom: 10px; left: 12px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.magband .eyebrow { color: #c9a45c; font-weight: 700; }
.magband h2 { margin: 0 0 10px; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.12; font-family: Georgia, "Times New Roman", serif; }
.mg-lead { font-size: 17px; line-height: 1.55; max-width: 720px; margin: 0 0 12px; color: #ddd4c6; }
.mg-lead small { opacity: .7; }
.mg-latest { margin: 0 0 16px; font: italic 18px/1.4 Georgia, serif; color: #f3ede4; }
.magband .btn-ghost { color: #f3ede4; border-color: rgba(243, 237, 228, .5); }
@media (max-width: 700px) { .magband { padding: 40px 0; } .mg-in { grid-template-columns: 110px 1fr; gap: 18px; align-items: start; } .mg-mast { font-size: 17px; } .mg-lead { font-size: 15.5px; } }
.mg-ideas { margin: 0 0 18px; font-size: 15px; line-height: 1.5; color: #d9d2c6; } .mg-ideas a { color: #e8c77f; font-weight: 600; }   /* sprint 246 */
