/* ParkGO — azul de señal de parqueo + amarillo de acento. Pensado para tableta
   o teléfono en la caseta: botones grandes, contraste alto, poco texto. */

:root {
  --azul-900: #0b1f3a;
  --azul-800: #11294d;
  --azul-600: #1f5eff;
  --azul-500: #3d74ff;
  --azul-100: #e6edff;
  --amarillo: #ffc21a;
  --amarillo-osc: #8a6100;

  --fondo: #f3f5f9;
  --superficie: #ffffff;
  --superficie-2: #f7f8fb;
  --borde: #dde2ec;
  --texto: #121826;
  --texto-2: #5a6478;
  --acento: var(--azul-600);
  --acento-suave: var(--azul-100);
  --ok: #138a4b;
  --ok-suave: #e3f6ec;
  --peligro: #c62828;
  --peligro-suave: #fdecec;
  --aviso-suave: #fff6dc;

  --radio: 14px;
  --radio-s: 10px;
  --sombra: 0 1px 2px rgb(16 24 40 / .06), 0 4px 16px rgb(16 24 40 / .06);
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #08142a;
    --superficie: #0f1f3b;
    --superficie-2: #132748;
    --borde: #22385e;
    --texto: #eef2fa;
    --texto-2: #9fb0cc;
    --acento: #5b8bff;
    --acento-suave: #172f5c;
    --ok: #3ccf82;
    --ok-suave: #0f3326;
    --peligro: #ff6b6b;
    --peligro-suave: #3a1820;
    --aviso-suave: #3a2f0c;
    --sombra: 0 1px 2px rgb(0 0 0 / .3), 0 6px 20px rgb(0 0 0 / .25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--fondo);
  color: var(--texto);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h1 { font-size: 1.35rem; }
h2 { font-size: 1.1rem; }
h3 { font-size: 1rem; }
p { margin: 0; }

.ico { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- carga y login ---------- */
.cargando-app { min-height: 100vh; display: grid; place-items: center; background: var(--azul-900); }
.sello {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 11px;
  background: var(--azul-600); color: #fff; font-weight: 800; font-size: 26px; position: relative;
  box-shadow: inset 0 0 0 3px rgb(255 255 255 / .12);
}
.sello::after {
  content: ""; position: absolute; right: -4px; bottom: -4px; width: 13px; height: 13px;
  border-radius: 50%; background: var(--amarillo); box-shadow: 0 0 0 3px var(--azul-900);
}
.marca-carga .sello { width: 64px; height: 64px; font-size: 38px; animation: latido 1.2s ease-in-out infinite; }
@keyframes latido { 50% { transform: scale(.92); opacity: .7; } }

.login {
  min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(1200px 600px at 10% -10%, #1f5eff55, transparent 60%), var(--azul-900);
}
.login-caja {
  width: 100%; max-width: 380px; background: var(--superficie); border-radius: 20px;
  padding: 28px 24px; box-shadow: 0 20px 60px rgb(0 0 0 / .35);
}
.login-marca { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.login-marca b { font-size: 1.6rem; letter-spacing: -.02em; }
.login-marca small { display: block; color: var(--texto-2); font-size: .85rem; }

/* ---------- armazón ---------- */
.armazon { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr); }
.armazon > .contenido { grid-row: 2; min-width: 0; }
.armazon > .navegacion { grid-row: 3; }
.barra {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: var(--azul-900); color: #fff;
}
.barra .sello { width: 34px; height: 34px; font-size: 20px; border-radius: 9px; }
.barra .sello::after { width: 10px; height: 10px; right: -3px; bottom: -3px; }
.barra-titulo { min-width: 0; flex: 1; }
.barra-titulo b { display: block; font-size: 1.05rem; }
.barra-titulo small { display: block; color: #a9b8d6; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reloj-barra { font-variant-numeric: tabular-nums; color: #dfe7f7; font-weight: 600; font-size: .95rem; }
.btn-barra {
  display: inline-flex; align-items: center; gap: 6px; border: 0; background: rgb(255 255 255 / .1);
  color: #fff; border-radius: 10px; padding: 8px 10px; cursor: pointer;
}
.btn-barra:hover { background: rgb(255 255 255 / .18); }

.navegacion {
  position: sticky; bottom: 0; z-index: 20; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: var(--superficie); border-top: 1px solid var(--borde);
  padding-bottom: env(safe-area-inset-bottom);
}
.navegacion a {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px 8px;
  color: var(--texto-2); text-decoration: none; font-size: .75rem; font-weight: 600;
}
.navegacion a .ico { width: 24px; height: 24px; }
.navegacion a.activa { color: var(--acento); }
.navegacion a.activa .ico { stroke-width: 2.4; }

.contenido { width: 100%; max-width: 1080px; margin: 0 auto; padding: 18px 16px 28px; }

@media (min-width: 900px) {
  .armazon { grid-template-columns: 220px minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .barra { grid-column: 1 / -1; }
  .armazon > .navegacion { grid-row: 2; grid-column: 1; }
  .armazon > .contenido { grid-row: 2; grid-column: 2; }
  .navegacion {
    position: sticky; top: 54px; align-self: start; height: calc(100vh - 54px);
    grid-auto-flow: row; grid-auto-rows: max-content; gap: 4px; padding: 16px 12px;
    border-top: 0; border-right: 1px solid var(--borde);
  }
  .navegacion a { flex-direction: row; gap: 10px; padding: 11px 12px; border-radius: 10px; font-size: .95rem; }
  .navegacion a.activa { background: var(--acento-suave); }
  .contenido { padding: 24px 28px 40px; }
}

/* ---------- piezas ---------- */
.tarjeta { background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); padding: 16px; box-shadow: var(--sombra); }
.tarjeta + .tarjeta { margin-top: 14px; }
.columnas > .tarjeta + .tarjeta, .rejilla-2 > .tarjeta + .tarjeta { margin-top: 0; }
.encabezado { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.sub { color: var(--texto-2); font-size: .9rem; }
.pila > * + * { margin-top: 12px; }
.fila { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.columnas { display: grid; gap: 16px; }
@media (min-width: 820px) { .columnas { grid-template-columns: 1.1fr 1fr; align-items: start; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
  padding: 10px 16px; border-radius: var(--radio-s); border: 1px solid var(--borde);
  background: var(--superficie); color: var(--texto); font-weight: 600; cursor: pointer; text-decoration: none;
  transition: transform .06s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { border-color: var(--acento); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primario { background: var(--acento); border-color: var(--acento); color: #fff; }
.btn-primario:hover { background: var(--azul-500); }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-peligro { color: var(--peligro); }
.btn-grande { min-height: 58px; font-size: 1.1rem; padding: 14px 20px; border-radius: 12px; }
.btn-ancho { width: 100%; }
.btn-chico { min-height: 36px; padding: 6px 12px; font-size: .9rem; }
.btn-icono { min-height: 40px; width: 40px; padding: 0; }

label.campo { display: block; }
label.campo > span { display: block; font-size: .85rem; font-weight: 600; color: var(--texto-2); margin-bottom: 5px; }
.entrada, select.entrada, textarea.entrada {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: var(--radio-s);
  border: 1px solid var(--borde); background: var(--superficie-2); outline: none;
}
.entrada:focus { border-color: var(--acento); box-shadow: 0 0 0 3px var(--acento-suave); background: var(--superficie); }
.rejilla-2 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.casilla { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; }
.casilla input { width: 20px; height: 20px; accent-color: var(--acento); }
.ayuda { font-size: .82rem; color: var(--texto-2); margin-top: 4px; }

.entrada-placa {
  width: 100%; text-align: center; font: 800 2.2rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  padding: 14px 12px; border-radius: 12px; border: 3px solid var(--texto); background: #fff; color: #111;
  outline: none;
}
.entrada-placa:focus { border-color: var(--acento); box-shadow: 0 0 0 4px var(--acento-suave); }
.entrada-placa::placeholder { color: #c3c9d4; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 16px; border-radius: 999px;
  border: 2px solid var(--borde); background: var(--superficie); font-weight: 700; cursor: pointer;
}
.chip .ico { width: 24px; height: 24px; }
.chip[aria-pressed="true"] { border-color: var(--acento); background: var(--acento-suave); color: var(--acento); }

/* cámara */
.visor {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radio); overflow: hidden;
  background: #0a1426; display: grid; place-items: center; color: #b9c6df;
}
.visor video, .visor img { width: 100%; height: 100%; object-fit: cover; }
.visor-vacio { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 20px; }
.visor-vacio > .ico { width: 54px; height: 54px; opacity: .7; }
.visor-marco { position: absolute; inset: 22% 12%; border: 3px solid var(--amarillo); border-radius: 12px; box-shadow: 0 0 0 9999px rgb(0 0 0 / .25); pointer-events: none; }
.visor-qr .visor-marco { inset: 15% 22%; }
.visor-acciones { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 10px; }
.disparador {
  width: 68px; height: 68px; border-radius: 50%; border: 5px solid #fff; background: rgb(255 255 255 / .25);
  cursor: pointer; box-shadow: 0 4px 16px rgb(0 0 0 / .4);
}
.disparador:active { transform: scale(.94); background: #fff; }
.visor-sello {
  position: absolute; left: 10px; top: 10px; background: rgb(0 0 0 / .6); color: #fff; padding: 4px 10px;
  border-radius: 8px; font: 600 .85rem/1.4 var(--mono);
}

.hora-grande { font: 800 2rem/1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

/* salida */
.total-grande { font-size: 2.6rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.placa-sello {
  display: inline-block; font: 800 1.5rem/1 var(--mono); letter-spacing: .08em; padding: 8px 14px;
  border: 3px solid #111; border-radius: 8px; background: #fff; color: #111;
}
.datos { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.datos dt { color: var(--texto-2); font-size: .9rem; }
.datos dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.desglose { list-style: none; margin: 0; padding: 0; }
.desglose li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--borde); }
.desglose li:last-child { border-bottom: 0; }
.vuelto { font-size: 1.4rem; font-weight: 800; color: var(--ok); }
.banda { padding: 12px 14px; border-radius: var(--radio-s); font-weight: 600; display: flex; gap: 10px; align-items: flex-start; }
.banda-aviso { background: var(--aviso-suave); color: var(--texto); }
.banda-peligro { background: var(--peligro-suave); color: var(--peligro); }
.banda-ok { background: var(--ok-suave); color: var(--ok); }
.separador-o { display: flex; align-items: center; gap: 10px; color: var(--texto-2); font-size: .85rem; }
.separador-o::before, .separador-o::after { content: ""; flex: 1; height: 1px; background: var(--borde); }

/* listas */
.lista-vehiculos { display: grid; gap: 10px; }
.vehiculo {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px;
  background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); cursor: pointer; text-align: left; width: 100%;
}
.vehiculo:hover { border-color: var(--acento); }
.miniatura { width: 64px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--superficie-2); display: grid; place-items: center; color: var(--texto-2); }
.vehiculo b { font-family: var(--mono); font-size: 1.1rem; letter-spacing: .05em; }
.vehiculo .monto { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.etiqueta { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--superficie-2); color: var(--texto-2); }
.etiqueta.dentro { background: var(--acento-suave); color: var(--acento); }
.etiqueta.pagado { background: var(--ok-suave); color: var(--ok); }
.etiqueta.anulado { background: var(--peligro-suave); color: var(--peligro); }

.segmentos { display: inline-flex; background: var(--superficie-2); border: 1px solid var(--borde); border-radius: 12px; padding: 3px; }
.segmentos button { border: 0; background: none; padding: 8px 14px; border-radius: 9px; font-weight: 600; color: var(--texto-2); cursor: pointer; }
.segmentos button[aria-pressed="true"] { background: var(--superficie); color: var(--texto); box-shadow: var(--sombra); }

.cifras { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.cifra { background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); padding: 14px 16px; }
.cifra small { display: block; color: var(--texto-2); font-weight: 600; font-size: .8rem; }
.cifra b { display: block; font-size: 1.5rem; font-variant-numeric: tabular-nums; margin-top: 2px; }
.cifra.destacada { background: var(--azul-900); border-color: var(--azul-900); color: #fff; }
.cifra.destacada small { color: #a9b8d6; }

.tabla-envoltura { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
table.tabla { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tabla th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--texto-2); padding: 8px 10px; border-bottom: 1px solid var(--borde); white-space: nowrap; }
.tabla td { padding: 10px; border-bottom: 1px solid var(--borde); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tabla td.num, .tabla th.num { text-align: right; }
.tabla tr:last-child td { border-bottom: 0; }
.mono { font-family: var(--mono); letter-spacing: .03em; }
.vacio { text-align: center; color: var(--texto-2); padding: 30px 10px; }

/* modal */
.capa { position: fixed; inset: 0; z-index: 50; background: rgb(6 12 24 / .55); display: grid; place-items: end center; padding: 0; animation: aparecer .15s ease; }
@media (min-width: 640px) { .capa { place-items: center; padding: 20px; } }
.modal {
  width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; background: var(--superficie);
  border-radius: 20px 20px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgb(0 0 0 / .3);
}
@media (min-width: 640px) { .modal { border-radius: 20px; } }
.modal-cabeza { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
@keyframes aparecer { from { opacity: 0; } }

/* vista previa del ticket en pantalla */
.papel {
  background: #fff; color: #111; margin: 0 auto; padding: 14px 12px; border-radius: 4px;
  box-shadow: 0 2px 12px rgb(0 0 0 / .15); font: 13px/1.35 var(--mono);
  background-image: linear-gradient(135deg, transparent 6px, #fff 0), linear-gradient(225deg, transparent 6px, #fff 0);
}
.papel-80 { width: 300px; }
.papel-58 { width: 220px; font-size: 11.5px; }

/* avisos flotantes */
#avisos { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 70; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.aviso { background: var(--azul-900); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: 0 8px 30px rgb(0 0 0 / .3); font-weight: 600; animation: subir .2s ease; }
.aviso.error { background: var(--peligro); }
.aviso.ok { background: var(--ok); }
@keyframes subir { from { transform: translateY(10px); opacity: 0; } }

/* ---------- ticket impreso ---------- */
.ticket { color: #000; background: #fff; font: 12px/1.3 "Courier New", Courier, monospace; }
.ticket .t-titulo { text-align: center; font-weight: 800; font-size: 18px; margin-bottom: 2px; font-family: Arial, sans-serif; }
.ticket .t-centro, .ticket .t-pie { text-align: center; }
.ticket .t-pie { font-size: 11px; margin-top: 3px; }
.ticket .t-grande { text-align: center; font-weight: 800; font-size: 26px; letter-spacing: 2px; margin: 6px 0 2px; font-family: Arial, sans-serif; }
.ticket .t-par { display: flex; justify-content: space-between; gap: 8px; }
.ticket .t-par span:last-child { text-align: right; white-space: nowrap; }
.ticket .t-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 17px; margin: 2px 0; }
.ticket .t-sep { border-top: 1px dashed #000; margin: 6px 0; }
.ticket .t-qr { display: flex; justify-content: center; margin: 8px 0 2px; }
.ticket .t-qr img { width: 62%; image-rendering: pixelated; }

#zona-impresion { display: none; }
@media print {
  body.imprimiendo > *:not(#zona-impresion) { display: none !important; }
  body.imprimiendo { background: #fff; }
  body.imprimiendo #zona-impresion { display: block; }
  #zona-impresion .ticket { padding: 0 2mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

[hidden] { display: none !important; }
.oculto-movil { display: none; }
@media (min-width: 640px) { .oculto-movil { display: inline; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- barra: parqueo activo ---------- */
.barra-parqueo { display: inline-flex; align-items: center; gap: 6px; color: #dfe7f7; font-weight: 600; font-size: .9rem; min-width: 0; }
.barra-parqueo select {
  background: rgb(255 255 255 / .1); color: #fff; border: 1px solid rgb(255 255 255 / .18); border-radius: 9px;
  padding: 6px 8px; max-width: 46vw; font-weight: 600;
}
.barra-parqueo select option { color: #111; }

/* ---------- tablero ---------- */
.en-vivo { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 700; color: var(--ok); }
.en-vivo i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: pulso 2s infinite; }
.en-vivo.caido { color: var(--texto-2); }
.en-vivo.caido i { animation: none; }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgb(19 138 75 / .45); } 70% { box-shadow: 0 0 0 8px rgb(19 138 75 / 0); } 100% { box-shadow: 0 0 0 0 rgb(19 138 75 / 0); } }
.cifra-nota { display: block; font-size: .8rem; color: var(--texto-2); margin-top: 2px; }
.cifra.destacada .cifra-nota { color: #a9b8d6; }
.cifra-de { font-size: 1rem; color: var(--texto-2); font-weight: 600; }
.cifra-alerta { border-color: var(--amarillo); background: var(--aviso-suave); }
.seccion { margin-top: 16px; }
.seccion > h2, .seccion > h3, .tarjeta > h3 { margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.rejilla-parqueos { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-top: 10px; }
.tarjeta-parqueo { text-align: left; cursor: pointer; margin: 0 !important; display: grid; gap: 6px; font: inherit; color: inherit; }
.tarjeta-parqueo:hover { border-color: var(--acento); }
.medidor { height: 8px; border-radius: 99px; background: var(--superficie-2); overflow: hidden; border: 1px solid var(--borde); }
.medidor i { display: block; height: 100%; border-radius: 99px; background: var(--acento); }
.medidor i.lleno { background: var(--peligro); }
.rejilla-graficos { display: grid; gap: 14px; margin-top: 16px; }
.rejilla-graficos > .tarjeta { margin: 0; min-width: 0; }
@media (min-width: 900px) { .rejilla-graficos { grid-template-columns: 1fr 1fr; } }
.grafico { width: 100%; height: auto; display: block; overflow: visible; }
.barra-svg { fill: var(--acento); }
.eje-svg { fill: var(--texto-2); font-size: 11px; font-family: inherit; }
.rejilla-svg { stroke: var(--borde); stroke-width: 1; stroke-dasharray: 2 4; }
.base-svg { stroke: var(--borde); stroke-width: 1; }
[data-detalle]:hover { fill: rgb(127 127 127 / .08); }
.globo {
  position: absolute; z-index: 30; pointer-events: none; background: var(--azul-900); color: #fff; font-size: .82rem;
  font-weight: 600; padding: 6px 10px; border-radius: 8px; box-shadow: 0 6px 20px rgb(0 0 0 / .25); white-space: nowrap;
}
.contenido { position: relative; }
.lista-barras { display: grid; gap: 12px; }
.barra-h .medidor { margin-top: 5px; }
.lista-simple { list-style: none; margin: 0; padding: 0; }
.lista-simple li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--borde); }
.lista-simple li:last-child { border-bottom: 0; }
.punto { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--texto-2); }
.punto.ok { background: var(--ok); }
.punto.apagado { background: var(--peligro); }
.punto.pendiente { background: var(--borde); }
.punto.alerta { background: var(--amarillo); }
.texto-aviso { color: var(--amarillo-osc); }
@media (prefers-color-scheme: dark) { .texto-aviso { color: var(--amarillo); } }
.codigo-vinculo { font: 800 2rem/1 var(--mono); letter-spacing: .12em; text-align: center; padding: 14px; border: 2px dashed var(--borde); border-radius: 12px; }

/* barra superior en pantallas angostas: nada se parte en dos ni desborda */
.barra-titulo b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) {
  .barra { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .barra .sello { display: none; }
  .barra-parqueo > .ico { display: none; }
  .barra-parqueo select { max-width: 38vw; }
  .btn-barra { padding: 8px; }
  .navegacion a { font-size: .68rem; padding-left: 2px; padding-right: 2px; }
}
.cifra b { white-space: nowrap; }
@media (max-width: 640px) { .cifras > .cifra.destacada { grid-column: 1 / -1; } }
