/* =====================================================================
   GASOLINEIRAS GALICIA · estilos
   Móbil primeiro: o mapa enche a pantalla; os controis flotan enriba.
   ===================================================================== */
:root {
  --ink: #14171c; --ink-2: #3a404a; --muted: #5b626c;
  --surface: #ffffff; --surface-2: #f3f5f3; --line: #dde0da; --line-2: #cdd1ca;
  --pri: #0d7a6f; --pri-2: #0a5f57; --pri-soft: #e1f3ef; --pri-fg: #ffffff;
  --barata: #15803d; --barata-bg: #e3f5e8; --media: #a86100; --media-bg: #fdf1dc; --cara: #c2410c; --cara-bg: #fde9df;
  --ok: #15803d; --warn: #b07a00; --danger: #c0392b; --info: #2563eb;
  --shadow: 0 1px 2px rgba(20, 23, 28, .08), 0 10px 30px -12px rgba(20, 23, 28, .35);
  --r: 16px;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --inv-bg: #14171c; --inv-fg: #ffffff; --mapbg: #e9ece6;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --top-combs: calc(10px + var(--safe-t) + 66px);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body { font: 400 15px/1.45 Geist, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--mapbg); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--pri); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--pri-soft); }
a { color: var(--pri); }

#mapa { position: fixed; inset: 0; z-index: 0; background: var(--mapbg); }
.leaflet-container { font: inherit; background: var(--mapbg); }
.leaflet-control-attribution { font-size: 10.5px; background: rgba(255,255,255,.85) !important; }
.leaflet-bottom.leaflet-right { margin-bottom: calc(76px + var(--safe-b)); }
.leaflet-control-zoom { border: 0 !important; box-shadow: var(--shadow) !important; border-radius: 12px !important; overflow: hidden; }
.leaflet-control-zoom a { width: 42px !important; height: 42px !important; line-height: 42px !important; font-size: 20px !important; color: var(--ink) !important; }
.ctl-tema { width: 42px; height: 42px; border-radius: 12px; border: 0; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); display: grid; place-items: center; }
.ctl-tema svg { width: 20px; height: 20px; }
.ctl-tema .sol { display: none; }
:root[data-tema="escuro"] .ctl-tema .sol { display: block; }
:root[data-tema="escuro"] .ctl-tema .lua { display: none; }
.ctl-gal svg { display: block !important; }

/* ---------- Barra superior ---------- */
.barra {
  position: fixed; z-index: 700; top: calc(10px + var(--safe-t)); left: 10px; right: 10px;
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; min-height: 58px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border: 1px solid rgba(20,23,28,.06); border-radius: var(--r); box-shadow: var(--shadow);
}
.marca { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo-img { width: 40px; height: 40px; border-radius: 11px; flex: none; }
.marca-t { min-width: 0; }
.marca-t h1 { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; white-space: nowrap; }
.marca-t p { font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.estado { display: flex; align-items: center; gap: 8px; margin-left: auto; min-width: 0; padding: 6px 10px; border-radius: 12px; background: var(--surface-2); }
.estado .punto { width: 10px; height: 10px; border-radius: 99px; background: #8a9099; flex: none; }
.estado.ok .punto { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }
.estado.vello .punto { background: var(--warn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 22%, transparent); }
.estado.erro .punto { background: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 22%, transparent); }
.estado-t { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.estado-t b { font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.estado-t small { font: 500 11.5px/1.2 var(--mono); color: var(--muted); white-space: nowrap; }
.estado-t .curto { display: none; }
.barra-acts { display: flex; align-items: center; gap: 6px; }
.idioma { display: inline-flex; padding: 3px; border-radius: 99px; background: var(--surface-2); }
.idioma button { border: 0; background: transparent; height: 28px; min-width: 32px; padding: 0 8px; border-radius: 99px; font: 600 12px/1 var(--mono); color: var(--muted); }
.idioma button[aria-pressed="true"] { background: var(--inv-bg); color: var(--inv-fg); }
.ibtn { width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-2); flex: none; }
.ibtn svg { width: 20px; height: 20px; }

/* ---------- Carburantes ---------- */
.combs {
  position: fixed; z-index: 640; top: var(--top-combs); left: 0; right: 0; padding: 2px 10px 6px;
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-padding: 0 10px;
}
.combs::-webkit-scrollbar { display: none; }
.comb {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--surface); box-shadow: 0 1px 2px rgba(20,23,28,.08), 0 4px 12px -6px rgba(20,23,28,.25);
  font-weight: 600; font-size: 13.5px; white-space: nowrap; color: var(--ink-2);
}
.comb em { font: 600 11px/1 var(--mono); font-style: normal; color: var(--muted); }
.comb.on { background: var(--pri); border-color: var(--pri); color: var(--pri-fg); }
.comb.on em { color: color-mix(in srgb, var(--pri-fg) 75%, transparent); }
.comb.mais { color: var(--pri); border-style: dashed; }
.comb.chk { cursor: pointer; position: relative; padding-left: 10px; }
.comb.chk input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.comb .caixa { width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--line-2); display: grid; place-items: center; flex: none; }
.comb.chk input:checked + .caixa { background: var(--ok); border-color: var(--ok); }
.comb.chk input:checked + .caixa::after { content: ""; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 2.2px 2.2px; transform: translateY(-1px) rotate(-45deg); }
.comb.chk input:focus-visible + .caixa { outline: 2px solid var(--pri); outline-offset: 2px; }
.comb.chk.on2 { border-color: var(--ok); color: var(--ok); background: var(--barata-bg); }
.combs .sep { flex: none; width: 1px; margin: 6px 2px; background: var(--line-2); }

/* ---------- Lenda ---------- */
.lenda {
  position: fixed; z-index: 630; top: calc(var(--top-combs) + 46px); left: 10px; max-width: calc(100% - 20px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 7px 12px; border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow);
  font-size: 12px; color: var(--ink-2);
}
.lenda:empty { display: none; }
.lg-t { width: 100%; font-weight: 600; color: var(--muted); font-size: 11.5px; }
.lg-i { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.lg-i b, .lg-m b { font: 600 11.5px/1 var(--mono); }
.lg-i i { width: 10px; height: 10px; border-radius: 99px; display: inline-block; }
.lg-i i.barata { background: var(--barata); } .lg-i i.media { background: var(--media); } .lg-i i.cara { background: var(--cara); }
.lg-m { white-space: nowrap; }

/* ---------- Accións de abaixo ---------- */
.accions { position: fixed; z-index: 650; left: 10px; right: 64px; bottom: calc(14px + var(--safe-b)); display: flex; gap: 8px; flex-wrap: wrap; pointer-events: none; }
.accion {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px 0 12px; border-radius: 99px; border: 0;
  background: var(--surface); box-shadow: var(--shadow); font-weight: 600; font-size: 14px; white-space: nowrap; user-select: none; position: relative; color: var(--ink);
}
.accion svg { width: 20px; height: 20px; flex: none; }
.accion em { font: 600 12px/1 var(--mono); font-style: normal; padding: 3px 6px; border-radius: 99px; background: color-mix(in srgb, currentColor 15%, transparent); }
.accion.primaria { background: var(--inv-bg); color: var(--inv-fg); }
.accion[aria-pressed="true"] { background: var(--info); color: #fff; }
.accion.buscando svg { animation: xiro 1.2s linear infinite; }
@keyframes xiro { to { transform: rotate(360deg); } }
.accion.chk { cursor: pointer; }
.accion.chk input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.accion .caixa { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--line-2); display: grid; place-items: center; flex: none; }
.accion.chk input:checked + .caixa { background: var(--ok); border-color: var(--ok); }
.accion.chk input:checked + .caixa::after { content: ""; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2.4px 2.4px; transform: translateY(-1px) rotate(-45deg); }
.accion.chk input:focus-visible + .caixa { outline: 2px solid var(--pri); outline-offset: 2px; }

/* ---------- Marcadores ---------- */
.etq { background: none; border: 0; }
.etq .pr {
  position: absolute; left: 0; bottom: 9px; transform: translateX(-50%); display: inline-flex; flex-direction: column; align-items: center;
  padding: 3px 7px 3px; border-radius: 9px; background: var(--surface); border: 2px solid var(--c, #888); color: var(--ink); white-space: nowrap;
  box-shadow: 0 2px 6px rgba(20,23,28,.25); cursor: pointer; line-height: 1.1; transition: transform .12s;
}
.etq .pr::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 10px; height: 10px; background: var(--surface); border: solid var(--c, #888); border-width: 0 2px 2px 0; transform: translateX(-50%) rotate(45deg); border-radius: 0 0 2px 0; }
.etq .pr b { font: 700 13px/1.1 var(--mono); letter-spacing: -0.02em; }
.etq .pr small { font-size: 10px; font-weight: 600; color: var(--muted); max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
.etq .pr i { font-style: normal; font-size: 10px; color: var(--c); position: absolute; top: -9px; right: -7px; background: var(--surface); border-radius: 99px; width: 16px; height: 16px; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.etq .pr.barata { --c: var(--barata); } .etq .pr.media { --c: var(--media); } .etq .pr.cara { --c: var(--cara); }
.etq .pr.top { background: var(--c); color: #fff; } .etq .pr.top::after { background: var(--c); } .etq .pr.top small { color: rgba(255,255,255,.85); }
.etq .pr.pech { opacity: .6; }
.etq .pr.sel { outline: 3px solid var(--pri); outline-offset: 2px; }
.etq .pr:hover { transform: translateX(-50%) translateY(-2px); }
.gas-tt { font-weight: 600; font-size: 12.5px; }
.sel-anel { animation: anel 1.6s ease-out infinite; }
@keyframes anel { 0% { stroke-opacity: 1; } 100% { stroke-opacity: .25; } }

/* ---------- Avisos ---------- */
.avisos { position: fixed; z-index: 900; top: calc(var(--top-combs) + 50px); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; width: min(92vw, 420px); pointer-events: none; }
.nota { background: var(--inv-bg); color: var(--inv-fg); padding: 10px 14px; border-radius: 12px; box-shadow: var(--shadow); font-size: 14px; font-weight: 500; animation: entra .25s ease-out; }
.nota.ok { background: var(--ok); color: #fff; } .nota.erro { background: var(--danger); color: #fff; }
.nota.vai { opacity: 0; transform: translateY(-6px); transition: .3s; }
@keyframes entra { from { opacity: 0; transform: translateY(-6px); } }
.aviso { position: fixed; z-index: 800; left: 50%; top: 45%; transform: translate(-50%, -50%); width: min(90vw, 420px); padding: 16px 18px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); text-align: center; font-weight: 500; }

/* ---------- Botóns ---------- */
.bt { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.bt.primario { background: var(--pri); border-color: var(--pri); color: var(--pri-fg); }
.bt.sutil { border-style: dashed; color: var(--muted); }
.bt:disabled { opacity: .6; }
.ligazon { border: 0; background: none; padding: 0; color: var(--pri); text-decoration: underline; font: inherit; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--pri); flex: none; }

/* ---------- Lista ---------- */
.panel-lista {
  position: fixed; z-index: 760; left: 0; right: 0; bottom: 0; top: calc(var(--safe-t) + 78px);
  display: flex; flex-direction: column; background: var(--surface); border-radius: 20px 20px 0 0; box-shadow: 0 -10px 40px -10px rgba(20,23,28,.35); overflow: hidden;
}
.l-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 16px 16px 8px; }
.l-cab h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.l-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.l-resumo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0 16px 10px; }
.r-t { display: flex; flex-direction: column; align-items: flex-start; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); min-width: 0; }
.r-t b { font: 700 16px/1.2 var(--mono); letter-spacing: -0.02em; }
.r-t span { font-size: 11.5px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.r-t small { font-size: 11.5px; color: var(--muted); }
.r-t.barata b { color: var(--barata); } .r-t.cara b { color: var(--cara); }
.l-ferr { display: flex; gap: 8px; padding: 0 16px 8px; }
.l-ferr input[type="search"] { flex: 1; min-width: 0; }
.l-ferr input, .l-ferr select, .campo input, .campo select, .campo textarea { height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); font-size: 14px; }
.l-ferr select { max-width: 50%; }
.l-3 label { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.l-3 select { width: 100%; max-width: none; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink); }
.l-chk { padding: 0 16px 8px; }
.l-nota { padding: 0 16px 6px; font-size: 12px; color: var(--muted); }
.l-gas { list-style: none; margin: 0; padding: 4px 10px 16px; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.l-gas li + li { margin-top: 6px; }
.l-fila { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; text-align: left; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.l-fila:hover { border-color: var(--line-2); background: var(--surface-2); }
.l-fila.activa { border-color: var(--pri); box-shadow: 0 0 0 2px var(--pri-soft); }
.l-pr { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 74px; padding: 8px 6px; border-radius: 12px; background: var(--surface-2); }
.l-pr b { font: 700 18px/1.1 var(--mono); letter-spacing: -0.03em; }
.l-pr small { font-size: 10.5px; color: var(--muted); font-weight: 600; }
.l-pr.barata { background: var(--barata-bg); } .l-pr.barata b { color: var(--barata); }
.l-pr.media { background: var(--media-bg); } .l-pr.media b { color: var(--media); }
.l-pr.cara { background: var(--cara-bg); } .l-pr.cara b { color: var(--cara); }
.l-info { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.l-marca { font-weight: 700; font-size: 15px; }
.l-dir { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l-mun { font-size: 12.5px; color: var(--muted); }
.l-mun b { color: var(--info); font-weight: 600; }
.l-est { font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.l-est i, .t-estado i { width: 8px; height: 8px; border-radius: 99px; background: #8a9099; flex: none; }
.l-est.a { color: var(--ok); } .l-est.a i, .t-estado.a i { background: var(--ok); }
.l-est.p { color: var(--danger); } .l-est.p i, .t-estado.p i { background: var(--danger); }
.chip24 { font: 600 10.5px/1 var(--mono); padding: 2px 5px; border-radius: 6px; background: var(--pri-soft); color: var(--pri); vertical-align: 2px; }
.l-dif { display: flex; flex-direction: column; align-items: flex-end; font: 600 13px/1.2 var(--mono); gap: 2px; }
.l-dif small { font: 500 10.5px/1 Geist, sans-serif; color: var(--muted); }
.men { color: var(--barata); } .mai { color: var(--cara); }
.tend { font: 600 11px/1 var(--mono); padding: 2px 5px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.tend.sube { color: var(--cara); background: var(--cara-bg); } .tend.baixa { color: var(--barata); background: var(--barata-bg); }
.l-baleira { padding: 24px 10px; text-align: center; color: var(--muted); }
.l-mais { margin: 0 16px 16px; }

/* ---------- Tarxeta ---------- */
.tarxeta {
  position: fixed; z-index: 780; left: 0; right: 0; bottom: 0; max-height: 64vh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border-radius: 20px 20px 0 0; box-shadow: 0 -10px 40px -10px rgba(20,23,28,.4); padding: 8px 16px calc(18px + var(--safe-b));
}
.asa { width: 40px; height: 5px; border-radius: 99px; background: var(--line-2); margin: 2px auto 8px; }
.tarxeta .pechar { position: absolute; top: 12px; right: 12px; }
.t-marca { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--pri); padding-right: 48px; }
.t-dist { text-transform: none; letter-spacing: 0; color: var(--info); font-weight: 600; }
.t-tit { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; margin-top: 2px; padding-right: 48px; }
.t-sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.t-estado { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 6px 12px; border-radius: 99px; background: var(--surface-2); font-size: 13.5px; }
.t-estado.a { background: var(--barata-bg); color: var(--ok); }
.t-estado.p { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.t-hero { display: flex; gap: 14px; align-items: center; margin-top: 12px; padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.t-hero.barata { background: var(--barata-bg); border-color: color-mix(in srgb, var(--barata) 30%, transparent); }
.t-hero.media { background: var(--media-bg); border-color: color-mix(in srgb, var(--media) 30%, transparent); }
.t-hero.cara { background: var(--cara-bg); border-color: color-mix(in srgb, var(--cara) 30%, transparent); }
.h-pr { display: flex; flex-direction: column; align-items: flex-start; flex: none; }
.h-c { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.h-pr b { font: 700 34px/1.05 var(--mono); letter-spacing: -0.04em; }
.t-hero.barata .h-pr b { color: var(--barata); } .t-hero.media .h-pr b { color: var(--media); } .t-hero.cara .h-pr b { color: var(--cara); }
.h-u { font-size: 12px; color: var(--muted); font-weight: 600; }
.h-info { list-style: none; margin: 0; padding: 0; font-size: 13.5px; display: flex; flex-direction: column; gap: 3px; font-weight: 500; }
.h-info .sub { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.t-accions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.t-sec { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.t-sec h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 10px; }
.t-calc .c-l { display: flex; align-items: center; gap: 8px; }
.c-b { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); font-size: 20px; font-weight: 600; }
.c-l label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--muted); }
.c-l input { width: 76px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); text-align: center; font: 700 17px/1 var(--mono); }
.c-r { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.c-r div { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); display: flex; flex-direction: column; }
.c-r span { font-size: 12px; color: var(--muted); font-weight: 600; }
.c-r b { font-size: 19px; }
.c-dif { margin-top: 8px; font-weight: 600; font-size: 14px; }
.c-ok { margin-top: 10px; font-weight: 600; color: var(--ok); font-size: 14px; }
.c-preto { width: 100%; margin-top: 10px; text-align: left; display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--barata) 40%, transparent); background: var(--barata-bg); position: relative; }
.cp-t { font-size: 12px; font-weight: 700; color: var(--barata); text-transform: uppercase; letter-spacing: .04em; }
.cp-g { font-size: 14.5px; }
.cp-p { font-size: 13.5px; color: var(--ink-2); }
.cp-p b { color: var(--barata); }
.cp-v { position: absolute; right: 14px; top: 12px; font-weight: 700; color: var(--barata); font-size: 13px; }
.t-prezos { width: 100%; border-collapse: collapse; font-size: 14px; }
.t-prezos th, .t-prezos td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.t-prezos thead th { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.t-prezos tbody th { font-weight: 500; }
.t-prezos td { white-space: nowrap; text-align: right; }
.t-prezos thead th:not(:first-child) { text-align: right; }
.t-prezos td small { color: var(--muted); font-size: 11px; }
.t-prezos tr[data-comb] { cursor: pointer; }
.t-prezos tr.on { background: var(--pri-soft); }
.t-prezos tr.on th { font-weight: 700; }
.pt { display: inline-block; width: 8px; height: 8px; border-radius: 99px; margin-right: 6px; vertical-align: 1px; background: #8a9099; }
.pt.barata { background: var(--barata); } .pt.media { background: var(--media); } .pt.cara { background: var(--cara); }
.t-hor { list-style: none; margin: 0; padding: 0; }
.t-hor li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.t-hor li.hoxe { font-weight: 700; }
.t-hor em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--pri); background: var(--pri-soft); padding: 1px 6px; border-radius: 6px; margin-left: 4px; }
.t-hor-cru { font-size: 14px; }
.t-nota { font-size: 13px; color: var(--warn); margin-top: 6px; }
.t-dl { margin: 0; display: grid; gap: 8px; }
.t-dl div { display: grid; grid-template-columns: 150px 1fr; gap: 10px; font-size: 14px; }
.t-dl dt { color: var(--muted); font-weight: 500; }
.t-dl dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- Diálogos ---------- */
dialog { border: 0; padding: 0; border-radius: 20px; background: var(--surface); color: var(--ink); width: min(94vw, 620px); max-height: 88vh; box-shadow: var(--shadow); }
dialog.dlg-ancho { width: min(96vw, 760px); }
dialog[open] { display: flex; flex-direction: column; }
dialog::backdrop { background: rgba(10, 13, 18, .5); backdrop-filter: blur(3px); }
.dlg-h { display: flex; align-items: center; gap: 10px; padding: 16px 16px 10px 20px; border-bottom: 1px solid var(--line); }
.dlg-h h2 { font-size: 18px; font-weight: 700; flex: 1; letter-spacing: -0.01em; }
.dlg-b { padding: 16px 20px 22px; overflow-y: auto; }
.dlg-b h3 { font-size: 15px; font-weight: 700; margin: 18px 0 8px; }
.dlg-b p, .dlg-b li { font-size: 14.5px; line-height: 1.55; }
.dlg-b p + p { margin-top: 8px; }
.dlg-b ul { padding-left: 20px; margin: 0; }
.dlg-b li + li { margin-top: 5px; }
.dlg-b .lead { font-size: 15.5px; }
.dlg-b .sub { color: var(--muted); font-size: 13px; margin-top: 14px; }
.priv-data { font-size: 13px !important; color: var(--muted); margin-bottom: 10px; }
.volver { border: 0; background: var(--surface-2); border-radius: 10px; padding: 6px 10px; font-size: 13px; font-weight: 600; }
.res-combs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.res-combs .comb { box-shadow: none; }
.res-n { font-size: 13px !important; color: var(--muted); }
.res-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.res-tiles .r-t b { font-size: 20px; }
.res-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.res-t th, .res-t td { padding: 7px 6px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.res-t th:first-child { text-align: left; font-weight: 600; }
.res-t thead th { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.res-t .bar-c { width: 30%; }
.bar { display: block; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--barata), var(--media) 60%, var(--cara)); }
.res-top { margin: 0; padding: 0; list-style: none; counter-reset: top; }
.res-top li { counter-increment: top; }
.res-top button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 6px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font-size: 14px; }
.res-top button::before { content: counter(top); font: 600 12px/1 var(--mono); color: var(--muted); width: 18px; }
.res-top b { color: var(--barata); font-size: 15px; }
.res-top small { color: var(--muted); }
.res-top button:hover { background: var(--surface-2); }

/* ---------- Suxestións ---------- */
.sux-intro { color: var(--ink-2); margin-bottom: 12px; }
.campo { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.campo textarea { height: auto; padding: 10px; resize: vertical; }
.campos2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.c-erro { color: var(--danger); font-style: normal; font-size: 12.5px; font-weight: 500; }
.c-erro:empty { display: none; }
.sux-web { position: absolute; left: -9999px; }
#fSux .check { margin: 4px 0 8px; }
#suxEnviar { margin-top: 12px; width: 100%; }
.sux-alt { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.sux-ok { text-align: center; padding: 24px 0; display: flex; flex-direction: column; gap: 14px; align-items: center; font-size: 16px; font-weight: 600; }

/* ---------- Pantallas anchas ---------- */
@media (min-width: 760px) {
  :root { --top-combs: calc(12px + var(--safe-t) + 70px); }
  .barra { left: 12px; right: auto; top: calc(12px + var(--safe-t)); padding-right: 10px; gap: 14px; }
  .marca-t h1 { font-size: 17px; }
  .combs { padding-left: 12px; }
  .lenda { left: 12px; max-width: calc(100vw - 90px); }
  body.con-lista .lenda { max-width: calc(100vw - 454px - 70px); }
  body.con-tarxeta .lenda { max-width: calc(100vw - 24px - 424px); }
  body.con-lista.con-tarxeta .lenda { max-width: calc(100vw - 454px - 424px); }
  .lg-t { width: auto; }
  .accions { left: 12px; bottom: calc(16px + var(--safe-b)); }
  .panel-lista { left: 12px; right: auto; top: calc(var(--top-combs) + 94px); bottom: calc(76px + var(--safe-b)); width: 430px; border-radius: 20px; box-shadow: var(--shadow); }
  body.con-lista .lenda { left: 454px; }
  .tarxeta { left: auto; right: 12px; top: calc(var(--top-combs) + 50px); bottom: calc(16px + var(--safe-b)); width: 400px; max-height: none; border-radius: 20px; box-shadow: var(--shadow); }
  .tarxeta .asa { display: none; }
  body.con-tarxeta .leaflet-right { right: 412px; }
  .leaflet-bottom.leaflet-right { margin-bottom: 16px; }
}
@media (max-width: 759px) {
  .estado { padding: 6px 8px; }
  .estado-t .longo { display: none; } .estado-t .curto { display: inline; }
  body.con-tarxeta .accions, body.con-lista .accions { display: none; }
  .accions { right: 10px; flex-wrap: nowrap; bottom: calc(26px + var(--safe-b)); }
  .leaflet-bottom.leaflet-right { margin-bottom: calc(86px + var(--safe-b)); }
  .leaflet-bottom.leaflet-left .leaflet-control-attribution { margin-bottom: 0; }
  body.con-tarxeta .leaflet-bottom.leaflet-right { display: none; }
  .lenda .lg-t, .lenda .lg-m { display: none; }
  .t-dl div { grid-template-columns: 120px 1fr; }
  .res-tiles { grid-template-columns: 1fr 1fr; }
  .res-t .bar-c { display: none; }
  .campos2 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .estado-t small { display: none; }
  .accion { height: 44px; padding: 0 12px 0 10px; font-size: 13.5px; }
  .accion.chk span[data-t] { font-size: 13px; }
  #btnResumo span { display: none; }
  #btnResumo { padding: 0 12px; }
  .l-resumo { grid-template-columns: repeat(2, 1fr); }
}
/* Móbil: como en Radar Trens. O idioma e as suxestións cámbianse en «Sobre os datos» */
@media (max-width: 759px) {
  .barra .idioma { display: none; }
}
@media (max-width: 420px) {
  #btnSux { display: none; }
  .marca-t h1 { font-size: 15px; line-height: 1.1; }
  .h1-gal { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
  #conta { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .barra { gap: 8px; }
  .barra-acts { gap: 6px; }
  .estado { padding: 6px 8px; gap: 6px; }
}
@media (max-width: 370px) {
  .logo-img { width: 32px; height: 32px; }
  .barra { gap: 6px; padding-left: 8px; }
  .marca { gap: 7px; }
  .marca-t h1 { font-size: 14px; }
  .btn-apoiar, .ibtn { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }


/* ---------- v2: apoio, marcas, ficha ampliada, gráficas, clasificación ---------- */
.btn-apoiar { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px 0 11px; border-radius: 12px; background: #ff5e5b; color: #fff; font-weight: 650; font-size: 14px; text-decoration: none; flex: none; box-shadow: 0 4px 12px -4px rgba(255,94,91,.6); }
.btn-apoiar:hover { background: #ec4d4a; }
.btn-apoiar svg { width: 19px; height: 19px; }
:root[data-tema="escuro"] .btn-apoiar { color: #1b0b0b; }
.mb { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 7px; background: var(--mb, #555); color: #fff; font: 700 9.5px/1 var(--mono); letter-spacing: -0.02em; margin-right: 7px; vertical-align: -5px; }
.mb.grande { width: 46px; height: 46px; border-radius: 13px; font-size: 15px; margin: 0; }
.mb.mini { width: 16px; height: 16px; border-radius: 5px; font-size: 7.5px; margin-right: 4px; vertical-align: -3px; }
.mb.rec { background: #6d28d9; font-size: 22px; }
.pr-f { display: inline-flex; align-items: center; }
.t-cab { display: flex; gap: 12px; align-items: flex-start; padding-right: 48px; }
.t-cab .t-marca, .t-cab .t-tit { padding-right: 0; }
.t-fila { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.t-fila .t-estado { margin-top: 0; }
.t-fav { margin-left: auto; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 22px; line-height: 1; color: var(--muted); }
.t-fav.on { color: #e6a700; border-color: #e6a700; background: color-mix(in srgb, #e6a700 12%, transparent); }
.t-act { margin-top: 8px; font-size: 13px; color: var(--muted); }
.t-act b { color: var(--ink); }
.t-serv { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.t-serv li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 99px; font-size: 13.5px; font-weight: 500; background: var(--surface-2); }
.t-serv li.si { background: var(--pri-soft); color: var(--ink); }
.t-serv li.non { opacity: .55; text-decoration: line-through; }
.t-desc { font-size: 14.5px; line-height: 1.55; }
.t-nota-g { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.t-val { font-size: 14px; margin-bottom: 10px; }
.estrelas { color: #e6a700; letter-spacing: 1px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.graf { width: 100%; height: auto; display: block; margin-top: 4px; }
.g-lin { stroke: var(--line); stroke-width: 1; }
.g-eix { fill: var(--muted); font: 500 11px var(--mono); }
.g-lenda { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.g-lenda i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: 3px; }
.t-hist-res { font-size: 14px; font-weight: 600; margin-top: 8px; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); margin-bottom: 12px; }
.tab { flex: 1; border: 0; background: none; height: 38px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--muted); }
.tab.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.clas-f { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; margin: 4px 0 8px; }
.clas-f label:first-child { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.clas-f select { height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--ink); }
.clas { list-style: none; margin: 8px 0 0; padding: 0; }
.clas button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 6px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; }
.clas button:hover { background: var(--surface-2); }
.clas .mb { margin: 0; width: 30px; height: 30px; border-radius: 9px; font-size: 11px; }
.cl-p { width: 28px; height: 28px; flex: none; border-radius: 99px; display: grid; place-items: center; font: 700 12.5px/1 var(--mono); color: var(--muted); background: var(--surface-2); }
.cl-p.m1 { background: #e6a700; color: #1b1300; } .cl-p.m2 { background: #a8b1bd; color: #11151a; } .cl-p.m3 { background: #c47a3a; color: #1b0d00; }
.cl-i { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cl-i b { font-size: 14.5px; }
.cl-i small { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-i .l-est { font-weight: 600; }
.cl-pr { display: flex; flex-direction: column; align-items: flex-end; }
.cl-pr b { font-size: 17px; color: var(--barata); }
.cl-pr small { font: 600 11.5px/1.2 var(--mono); }
.comb.rec { color: #6d28d9; }
.comb.rec.on3 { background: #6d28d9; border-color: #6d28d9; color: #fff; }
.comb.rec.on3 em { color: rgba(255,255,255,.8); }
:root[data-tema="escuro"] .comb.rec.on3 em { color: rgba(22,11,46,.75); }
:root[data-tema="escuro"] .comb.rec { color: #a78bfa; }
:root[data-tema="escuro"] .comb.rec.on3 { background: #a78bfa; border-color: #a78bfa; color: #160b2e; }
.l-fav { color: #e6a700; }
.l-chk { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.l-marca { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.l-marca .mb { margin-right: 3px; }
@media (max-width: 759px) {
  .btn-apoiar { width: 40px; padding: 0; justify-content: center; }
  .btn-apoiar span { display: none; }
}

/* ---------- Tema escuro ---------- */
:root[data-tema="escuro"] {
  color-scheme: dark;
  --ink: #e8ebef; --ink-2: #c3c8d0; --muted: #98a0ab;
  --surface: #171b21; --surface-2: #222831; --line: #2e353f; --line-2: #3b4350;
  --pri: #33c2a8; --pri-2: #4fd1b5; --pri-soft: #11332e; --pri-fg: #06201c;
  --barata: #34d399; --barata-bg: #10301f; --media: #fbbf24; --media-bg: #33270d; --cara: #fb7a55; --cara-bg: #3a1c12;
  --ok: #34d399; --warn: #e0a52e; --danger: #ff7b6b; --info: #60a5fa;
  --inv-bg: #e8ebef; --inv-fg: #14171c; --mapbg: #11151a;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px -12px rgba(0,0,0,.8);
}
:root[data-tema="escuro"] .barra { border-color: rgba(255,255,255,.06); }
:root[data-tema="escuro"] .leaflet-control-attribution { background: rgba(23,27,33,.85) !important; color: var(--muted); }
:root[data-tema="escuro"] .leaflet-control-attribution a { color: var(--pri); }
:root[data-tema="escuro"] .leaflet-control-zoom a, :root[data-tema="escuro"] .leaflet-bar a { background: var(--surface) !important; color: var(--ink) !important; border-color: var(--line) !important; }
:root[data-tema="escuro"] .leaflet-tooltip { background: var(--surface); color: var(--ink); border-color: var(--line); }
:root[data-tema="escuro"] .etq .pr.top { color: #0d1117; } :root[data-tema="escuro"] .etq .pr.top small { color: rgba(13,17,23,.75); }
:root[data-tema="escuro"] .accion[aria-pressed="true"] { color: #0d1117; }

/* ---------- Sobre os datos (como Radar Trens) ---------- */
.info-cab { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.info-ico { border-radius: 14px; flex: none; }
.info-nome { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.info-lema { color: var(--muted); font-size: 14px; }
.info-apoio { display: flex; gap: 12px; margin-top: 18px; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.ia-ico { width: 40px; height: 40px; border-radius: 12px; background: #ff5e5b; display: grid; place-items: center; font-size: 20px; flex: none; }
.info-apoio p { font-size: 13.5px; color: var(--ink-2); margin: 3px 0 10px; }
.info-apoio p.ia-nota { font-size: 12px; color: var(--muted); margin: 8px 0 0; line-height: 1.45; }
.info-apoio .ia-nota a { color: var(--pri); }
.bt.kofi { background: #ff5e5b; border-color: #ff5e5b; color: #fff; }
.bt.kofi:hover { background: #e84f4c; }
:root[data-tema="escuro"] .bt.kofi { color: #1b0b0b; }
.info-botons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.ib { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 72px; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-weight: 650; font-size: 13.5px; line-height: 1.2; text-align: center; }
.ib:hover { background: var(--surface-2); }
.ib-ico { font-size: 20px; line-height: 1; }
.ib span:last-child { white-space: nowrap; }
@media (max-width: 420px) { .info-botons { gap: 6px; } .ib { font-size: 12px; padding: 10px 2px; letter-spacing: -.01em; } }
.info-pe { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.info-pe .xd { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; font-size: 15px; }
.info-pe .xd svg { width: 26px; height: 26px; color: #2447c7; }
:root[data-tema="escuro"] .info-pe .xd svg { color: #7d95f0; }
.info-pe .xd b { margin-right: 1px; }
.dlg-b .idioma { margin-bottom: 14px; }
a.bt { text-decoration: none; }

/* ---------- Titorial (como Radar Trens) ---------- */
.dlg-tut { width: min(420px, calc(100% - 24px)); padding: 0; border: 0; border-radius: 24px; }
.dlg-tut .dlg-b { padding: 22px 22px 18px; text-align: center; min-height: min(500px, 80dvh); display: flex; flex-direction: column; position: relative; }
.dlg-tut h2 { font-size: 21px; letter-spacing: -.02em; color: var(--ink); margin: 2px 0 8px; }
.dlg-tut :focus-visible { outline-offset: 3px; }
.tut-ilus { min-height: 132px; display: grid; place-items: center; gap: 10px; margin-bottom: 12px; padding: 14px; border-radius: 18px; background: linear-gradient(160deg, var(--pri-soft), var(--surface-2)); }
.tut-icona { border-radius: 20px; box-shadow: 0 10px 24px -10px rgba(6,61,55,.55); }
.tut-fila { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.tut-par { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.tut-punto { width: 16px; height: 16px; border-radius: 99px; border: 2.5px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.tut-punto.barata { background: var(--barata); } .tut-punto.media { background: var(--media); } .tut-punto.cara { background: var(--cara); }
.tut-chip { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 99px; background: var(--surface); box-shadow: var(--shadow); font-weight: 650; font-size: 13.5px; color: var(--ink); }
.tut-chip.on { background: var(--pri); color: var(--pri-fg); }
.tut-chip.azul { background: var(--info); color: #fff; }
.tut-chip.negro { background: var(--inv-bg); color: var(--inv-fg); }
.tut-ficha { background: var(--surface); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); min-width: 220px; text-align: left; display: flex; align-items: center; gap: 12px; }
.tut-ficha .tf-p { font: 700 26px/1 var(--mono); color: var(--barata); }
.tut-ficha .tf-l { font-size: 12.5px; color: var(--muted); margin-top: 4px; font-weight: 600; }
.tut-paso { font: 600 11.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0; }
.tut-txt { font-size: 15px; line-height: 1.5; color: var(--ink-2); margin: 0 auto; max-width: 340px; flex: 1; }
.tut-puntos { display: flex; justify-content: center; gap: 6px; margin: 16px 0 14px; }
.tut-puntos i { width: 7px; height: 7px; border-radius: 99px; background: var(--line-2); transition: width .2s, background-color .2s; }
.tut-puntos i.on { width: 20px; background: var(--pri); }
.tut-accions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.tut-accions .bt { justify-content: center; height: 46px; margin: 0; }
.tut-saltar { color: var(--muted); }
.tut-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; z-index: 1; background: var(--surface); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.tut-x svg { width: 18px; height: 18px; }
.tut-volver { position: absolute; top: 16px; left: 18px; padding: 4px 0; z-index: 1; }
.dlg-tut .dlg-b:has(.tut-volver:not([hidden])) .tut-ilus { margin-top: 30px; }
.tut-instalar { display: flex; align-items: center; gap: 16px; }
.tut-instalar > img { border-radius: 14px; box-shadow: 0 8px 18px -8px rgba(6,61,55,.55); }
.ti-frecha { font-size: 22px; color: var(--muted); }
.ti-mobil { width: 74px; height: 112px; border-radius: 14px; border: 3px solid var(--ink); background: var(--surface); display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 12px 9px; align-content: start; }
.ti-mobil i { width: 100%; aspect-ratio: 1; border-radius: 6px; background: var(--line-2); }
.ti-mobil img { width: 100%; height: auto; border-radius: 6px; outline: 2px solid var(--pri); outline-offset: 1px; }
.tut-inst { margin: 10px auto 0; max-width: 340px; text-align: left; background: var(--surface-2); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.tut-inst p { margin: 0; }
.ti-nav { font-weight: 700; color: var(--ink); margin-bottom: 3px !important; font-size: 13px; }
.ti-bt { margin-top: 10px !important; height: 40px !important; }
.dlg-h { flex-wrap: wrap; }
.volver { flex-basis: 100%; order: -1; align-self: flex-start; border: 0; background: none; color: var(--pri); font-weight: 650; font-size: 14px; padding: 2px 0 6px; text-align: left; }
