/* ==========================================================================
   visor.css · interfaz de escritorio del visor /mapas (desde 700 px)
   Solo lo propio del visor: el resto son clases de sistema.css sin renombrar
   (panel, capa, modelo, linea-t, ley, seg, btn, interr, sonda, aviso, proc…).
   Mockup: rediseno/mockups/visor-modelos.html.
   ========================================================================== */

/* La raíz (#v-ui) cubre el mapa; los controles flotan encima y nada lo encoge */
.v-esc { --peek: 0px; position: absolute; inset: 0; z-index: 5; display: grid; gap: 8px; padding: 12px; pointer-events: none;
  grid-template-columns: 232px minmax(0, 1fr) 300px; grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "top top mod" "capas centro mod" "tiempo tiempo tiempo";
  user-select: none; -webkit-user-select: none; font-family: var(--f-texto); color: var(--ink); }
.v-esc.hay-punto { --peek: 122px; }
.v-esc > * { min-width: 0; min-height: 0; }
.v-esc [hidden] { display: none !important; }
.v-esc input, .v-esc .v-url__t { user-select: text; -webkit-user-select: text; }

/* ---------- Barra superior ---------- */
.v-top { grid-area: top; display: flex; align-items: center; gap: 8px; pointer-events: none; position: relative; z-index: 3; }
.v-top > * { pointer-events: auto; }
.v-logo { height: var(--control); padding: 0 12px 0 8px; background: var(--surface); border-radius: var(--r-2); box-shadow: var(--s-mapa); flex: none; }
.v-top .busca { width: 236px; flex: 0 1 236px; min-width: 120px; }
.v-top .busca input:focus-visible { box-shadow: none; }
.v-modo { flex: none; }
.v-hueco { flex: 1; pointer-events: none !important; }
.v-zoom { display: flex; background: var(--surface); border-radius: var(--r-2); box-shadow: var(--s-mapa); flex: none; position: relative; }
.v-zoom > .btn, .v-vistas > .btn { border: 0; border-radius: 0; }
.v-zoom > * + * { border-left: 1px solid var(--line); }
.v-zoom > :first-child { border-radius: var(--r-2) 0 0 var(--r-2); }
.v-vistas { position: relative; display: flex; }
.v-vistas > .btn { border-radius: 0 var(--r-2) var(--r-2) 0; }
.v-vistas__menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; min-width: 220px; display: grid; gap: 2px; padding: 4px; background: var(--surface); border-radius: var(--r-3); box-shadow: var(--s-2); }
.v-vistas__it { all: unset; box-sizing: border-box; display: block; padding: 9px 12px; border-radius: var(--r-2); font-size: var(--t-2); cursor: pointer; white-space: nowrap; }
.v-vistas__it:hover, .v-vistas__it:focus-visible { background: var(--senal-suave); color: var(--senal-tinta); }
.v-vistas__it[aria-checked="true"] { font-weight: 600; color: var(--senal-tinta); }
.v-vistas__it[aria-checked="true"]::after { content: " ✓"; }

/* Compartir vista: la dirección se despliega, no ocupa el mapa */
.v-comparte { position: relative; flex: none; }
.v-url { position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; width: min(600px, 62vw); display: grid; gap: 8px; padding: 12px; background: var(--surface); border-radius: var(--r-3); box-shadow: var(--s-2); }
.v-url__t { font-size: var(--t-1); color: var(--muted); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; background: var(--sunk); border-radius: var(--r-2); padding: 8px 10px; line-height: 1.5; }
.v-url__t b { font-weight: 500; color: var(--ink-2); border-radius: 2px; transition: background 1.2s, color 1.2s; }
.v-url__t b.cambia { background: var(--senal-suave); color: var(--senal-tinta); transition: none; }
.v-url__bot { gap: 6px; flex: none; }

/* Solo en hojas: qué capa y qué modelo se están viendo */
.v-estado { grid-area: estado; display: none; gap: 8px; pointer-events: none; }
.v-estado > * { pointer-events: auto; }

/* ---------- Panel de capas ---------- */
.v-capas, .v-mod { display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.v-capas { grid-area: capas; justify-content: space-between; position: relative; z-index: 1; }
.v-mod { grid-area: mod; align-items: stretch; justify-content: flex-start; position: relative; z-index: 1; }
.v-capas > *, .v-mod > * { pointer-events: auto; }
.v-capas .panel, .v-mod .panel { overflow: auto; scrollbar-width: thin; min-height: 0; }
.v-capas .panel { --control: 37px; padding: 0 4px 6px; }
/* «Encima» queda fijo al pie del panel: lo que desplaza es la lista de familias */
.v-encima-caja { position: sticky; bottom: -6px; z-index: 1; background: var(--surface); border-top: 1px solid var(--line); margin: 0 -4px -6px; padding: 0 4px 6px; }
.v-capas .capas__grupo { display: flex; align-items: center; justify-content: space-between; }
.v-rail-btn { margin: -4px -6px -4px 0; }
.v-hoja-cab { display: none; }
.v-fam__b .capa__d { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* familia abierta: hace de cabecera de sus variables; la señal va solo en la variable elegida */
.v-fam.es-abierta > .v-fam__b { background: none; box-shadow: none; color: var(--ink); }
.v-fam.es-abierta > .v-fam__b .capa__n { font-weight: 600; }
.v-fam.es-abierta > .v-fam__b:hover { background: var(--sunk); }
.v-fam:not(.es-abierta) > .v-fam__b[aria-pressed="true"] .capa__d { color: inherit; }
.v-vars { display: grid; gap: 1px; padding: 2px 0 6px; }
.v-var { --control: 33px; padding-block: 4px; font-size: var(--t-2); }
.v-var .capa__n { font-weight: 400; }
.v-var[aria-pressed="true"] .capa__n { font-weight: 600; }
.v-var__pt { width: 6px; height: 6px; border-radius: 50%; justify-self: center; background: var(--line-2); }
.v-var[aria-pressed="true"] .v-var__pt { background: var(--senal); }
.v-var.es-sin { color: var(--muted); }
.v-var.es-sin .capa__d { color: var(--muted); }
.v-exp { display: inline-block; margin-left: 4px; padding: 0 5px; border: 1px dashed currentColor; border-radius: var(--r-1); font-size: 11px; font-weight: 500; line-height: 16px; letter-spacing: .02em; color: var(--ink-2); vertical-align: 1px; }
.v-ops { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); min-width: 0; max-width: calc(100% - 46px); margin: 2px 6px 4px 40px; box-sizing: border-box; }
.v-ops .seg__op { min-width: 0; justify-content: center; padding: 0 4px; height: 28px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-ops--nivel::after { content: attr(data-ud); align-self: center; padding: 0 4px 0 6px; font-size: var(--t-1); color: var(--muted); }
.v-lista, .v-lista > *, .v-vars, .v-fam { min-width: 0; }
.v-ops .seg__op[disabled] { opacity: .4; cursor: not-allowed; }
.v-interr { padding: 5px 10px; width: 100%; justify-content: space-between; flex-direction: row-reverse; font-size: var(--t-2); box-sizing: border-box; }
.v-interr > span { flex: 1 1 auto; min-width: 0; }
.v-interr input { flex: none; }
.v-interr .capa__d { display: block; font-size: var(--t-1); color: var(--muted); }
.v-interr.es-apagado { cursor: default; }
.v-interr.es-apagado input { opacity: .45; cursor: not-allowed; }
/* panel de capas recogido: solo iconos */
.v-capas.es-rail .panel { width: 52px; }
.v-capas.es-rail .capa { grid-template-columns: 24px; justify-content: center; }
.v-capas.es-rail :is(.capa__n, .capa__m, .capas__grupo > span, .v-interr, .v-encima, .v-vars) { display: none; }
.v-capas.es-rail .capas__grupo { justify-content: center; padding-inline: 0; min-height: 12px; }
.v-capas.es-rail .v-rail-btn { margin: 0; }
.v-capas.es-rail .v-rail-btn .ico { transform: rotate(180deg); }

/* Leyenda: pulsar cambia de unidad */
.v-ley-caja { position: relative; pointer-events: auto; }
.v-ley { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; font: inherit; color: inherit; background: var(--surface); padding: 8px 10px; border-radius: var(--r-2); box-shadow: var(--s-mapa); }
.v-ley:disabled { cursor: default; }
.v-ley:focus-visible { box-shadow: var(--foco); }
.v-ley:not(:disabled) .ley__ud { text-decoration: underline dotted; text-underline-offset: 3px; color: var(--ink-2); }
.v-ley .ley__marcas span { font-size: 13px; }
.v-ley .ley__marcas { overflow: hidden; }
/* el título entero, en dos líneas si hace falta («Nieve acumulada desde la pasada», «Energía para tormentas (CAPE)») */
.v-ley .ley__tit { white-space: normal; min-width: 0; text-wrap: balance; }
.v-ley .ley__lin { display: block; margin-top: 3px; font-size: var(--t-1); color: var(--muted); text-align: left; }
.v-ley .ley__cab { min-width: 0; }
.v-ley .ley__ud { flex: none; }
.v-ley .ley--palabras .ley__marcas span, .v-ley__in.ley--palabras .ley__marcas span { font-size: 12px; white-space: normal; }

/* ---------- Modelos: una línea por modelo, con su alcance en la escala de la línea de tiempo ---------- */
.v-mod .panel__cab { padding: 8px 10px 8px 12px; }
.v-mod .panel__cuerpo { display: grid; gap: 4px; padding: 6px; --tx: 0%; --dias: 16; }
.v-mod .modelo { --fila: 34px; grid-template-columns: 4px minmax(0, 1fr) 66px 30px 28px; gap: 0 6px; padding: 0 8px 0 0; min-height: var(--fila); cursor: pointer; color: var(--ink); font: inherit; }
.v-mod .modelo::before { grid-row: 1 / span 2; grid-column: 1; margin-block: 0; }
.v-mod .modelo__n { grid-column: 2; grid-row: 1; padding-left: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: var(--fila); }
.v-mod .modelo__n .nota { font-weight: 500; }
.v-mod .modelo__alc { grid-column: 3; grid-row: 1; position: relative; height: 8px; border-left: 1px solid var(--ink-2);
  background: repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px calc(100% / var(--dias))) 0 100% / 100% 4px no-repeat; }
.v-mod .modelo__alc::after { content: ""; position: absolute; left: var(--ini, 0%); top: 0; height: 5px; width: calc(var(--alc) - var(--ini, 0%)); background: var(--c); }
.v-mod .modelo__alc::before { content: ""; position: absolute; left: var(--tx); top: -4px; bottom: -4px; width: 1.5px; margin-left: -.75px; background: var(--senal); z-index: 1; } /* la aguja: la hora elegida sobre cada alcance */
.v-mod .modelo__al, .v-mod .modelo__p { grid-row: 1; font-size: var(--t-1); color: var(--ink-2); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.v-mod .modelo__al { grid-column: 4; } .v-mod .modelo__p { grid-column: 5; color: var(--muted); }
.v-mod .modelo[data-corto] .modelo__al { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-2); }
.v-mod .modelo__d { grid-column: 2 / -1; grid-row: 2; padding: 0 0 7px 4px; margin-top: -4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-mod .modelo[data-id="auto"] .modelo__d { white-space: normal; overflow: visible; line-height: 1.3; }
.v-mod .modelo.es-sin { cursor: help; }
.v-mod .modelo.es-sin :is(.modelo__n, .modelo__al, .modelo__p) { opacity: .5; }
.v-mod .modelo.es-sin .modelo__alc { opacity: .35; }
.v-mod .modelo.es-sin .modelo__d { color: var(--ink-2); }

/* ---------- Mapa sinóptico: salida, qué se ve y a qué hora, combinación y guardar imagen ---------- */
.v-sinop { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; max-width: 100%; padding: 4px; background: var(--surface); border-radius: var(--r-2); box-shadow: var(--s-mapa); }
.v-sinop .btn { height: 32px; }
.v-sinop__rot { margin: 0 4px; display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.v-sinop__rot b { font-size: var(--t-2); white-space: nowrap; }
.v-sinop__rot span { font-size: var(--t-1); color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.v-sinop__seg .seg__op { height: 32px; padding: 0 10px; white-space: nowrap; }
.v-sinop-top { flex: none; gap: 6px; }
.v-sinop-top[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
@media (max-width: 1400px) { .v-sinop-top span { display: none; } .v-sinop-top { width: var(--control); padding: 0; justify-content: center; } }
@media (max-width: 1400px) { .v-sinop__gua span { display: none; } .v-sinop__gua { width: 32px; padding: 0; justify-content: center; } }

/* ---------- Centro: aviso, Canarias y hueco de la bandeja ---------- */
.v-centro { grid-area: centro; align-self: start; justify-self: center; display: grid; gap: 8px; justify-items: center; max-width: 100%; pointer-events: none; position: relative; z-index: 4; }
.v-centro > * { pointer-events: auto; }
.v-aviso-ui { width: min(600px, 100%); box-shadow: var(--s-mapa); border-color: transparent; }
.v-aviso-ui .fila { margin-top: 6px; }
.v-inserto { grid-area: centro; position: relative; z-index: 1; align-self: end; justify-self: start; width: 134px; height: 88px; margin-bottom: calc(var(--peek) + 8px); pointer-events: auto; }
.v-inserto .mapa__lienzo { cursor: default; }
.v-inserto .v-inserto__rot { max-width: calc(100% - 10px); padding: 0 5px; border-radius: var(--r-1); background: color-mix(in srgb, var(--surface) 82%, transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 18px; }
.v-inserto__ir { all: unset; position: absolute; inset: 0; z-index: 3; cursor: pointer; }
.v-inserto__ir:focus-visible { box-shadow: inset var(--foco); }
.v-inserto__no { position: absolute; inset: 0; z-index: 1; display: none; place-items: start; padding: 24px 6px 0; font-size: var(--t-1); font-weight: 600; color: var(--ink-2);
  background: repeating-linear-gradient(135deg, transparent 0 5px, color-mix(in srgb, var(--ink) 16%, transparent) 5px 6px); }
.v-inserto.es-sin .v-inserto__no { display: grid; }
.v-bandeja-hueco { grid-area: centro; align-self: end; pointer-events: none; min-width: 0; display: grid; position: relative; z-index: 2; }
.v-bandeja-hueco > * { pointer-events: auto; }
.v-bandeja-hueco:empty { display: none; }

/* ---------- Línea de tiempo: días, pasos reales, corte y precarga ---------- */
.v-tiempo { grid-area: tiempo; pointer-events: auto; position: relative; z-index: 1; }
/* la hora no encoge (su texto se metía debajo del pie): cede el pie, que parte en dos líneas */
.v-tiempo .linea-t__hora { min-width: 168px; flex: none; }
.v-tiempo .linea-t__hora { margin-right: 8px; }
.v-tiempo .linea-t__hora small { white-space: nowrap; }
.v-tiempo .linea-t__fin { min-width: 0; }
.v-tiempo .linea-t__pista { height: 48px; overflow-x: clip; }
.v-tiempo .linea-t__pista:focus-visible { outline: 2px solid var(--senal); outline-offset: 2px; border-radius: var(--r-1); }
.v-tiempo .linea-t__dias { line-height: 16px; }
.v-tiempo .linea-t__dias i { font-style: normal; }
.v-tiempo .linea-t__dias span[data-fuera] { opacity: .5; }
/* la regla marca solo los días; los pasos reales del modelo van aparte */
.v-tiempo .linea-t__regla { background-image: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px calc(100% / var(--dias))); background-size: 100% 100%; }
.v-pasos { position: absolute; inset: auto 0 0 0; height: 22px; pointer-events: none; }
.v-pasos i { position: absolute; bottom: 0; width: 1px; height: 6px; margin-left: -.5px; background: var(--ink-2); opacity: .45; }
/* la cabeza de la aguja va debajo de la fila de días: nunca tapa el día activo */
.v-tiempo .linea-t__aguja { top: 19px; }
.v-tiempo .linea-t__aguja::before { top: 0; width: 10px; height: 7px; margin-left: -5px; }
.v-tiempo .linea-t__ahora::after { left: auto; right: 4px; top: 5px; background: var(--surface); }
.lt-fuera { position: absolute; z-index: 1; right: 0; bottom: 0; height: 22px; left: var(--alc, 100%); border-left: 1px solid var(--ink-2); overflow: hidden; white-space: nowrap;
  background: repeating-linear-gradient(135deg, var(--surface) 0 3px, transparent 3px 6px), var(--sunk); font-size: var(--t-1); color: var(--ink-2); line-height: 22px; padding-left: 8px; }
.lt-fuera span, .lt-corte span { background: var(--surface); padding: 1px 6px; border-radius: 2px; }
.lt-fuera.es-estrecho span { display: none; }
.lt-corte { position: absolute; left: var(--corte, 100%); bottom: 0; height: 22px; border-left: 1.5px solid var(--ink); white-space: nowrap; font-size: var(--t-1); color: var(--ink-2); line-height: 22px; padding-left: 6px; pointer-events: none; z-index: 1; }
/* corte en el último 15 % de la regla: el rótulo va a la izquierda de la línea */
.lt-corte.a-der { padding-left: 0; width: 0; }
.lt-corte.a-der span { position: absolute; right: 6px; bottom: 0; line-height: 20px; }
.v-carga { position: relative; height: 5px; margin-top: -3px; }
.v-carga i { position: absolute; top: 0; height: 100%; background: var(--line-2); }
.v-carga i.ok { background: var(--ink-2); }
.v-carga i.va { background: var(--muted); animation: v-carga 1s ease-in-out infinite alternate; }
.v-carga i.err { background: var(--av-naranja); }
@keyframes v-carga { from { opacity: .45; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .v-carga i.va { animation: none; } }
.lt-clave { display: flex; gap: 12px; align-items: center; font-size: var(--t-1); color: var(--muted); white-space: nowrap; }
.lt-clave i { display: inline-block; width: 14px; height: 5px; margin-right: 5px; vertical-align: middle; background: var(--line-2); }
.lt-clave i.ok { background: var(--ink-2); }
/* el pie parte en dos líneas antes que cortar la cita: cada trozo entero, la cita nunca encoge */
.v-pie { flex-wrap: wrap; row-gap: 0; color: var(--ink-2); padding-left: 12px; border-left: 1px solid var(--line); min-width: 0; line-height: 1.35; }
.v-pie > * { white-space: nowrap; } .v-pie > :last-child { flex-shrink: 0; }
/* el pie cede sitio al selector de pasada: cada pieza se corta con «…» (la cita larga de una fuente, la de ECMWF) y el texto entero queda en el title */
.v-tiempo .v-pie { flex: 1 1 auto; overflow: hidden; } .v-pie > * { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.v-pie a, .v-pie-m a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 2px; }
.v-pie-m { display: none; }
/* el campo no pinta nada en la vista: una nota discreta sobre el mapa */
.v-vacio { justify-self: center; margin: 8px 0 0; padding: 4px 12px; border-radius: var(--r-2); background: var(--surface); box-shadow: var(--s-mapa); font-size: var(--t-1); color: var(--ink-2); pointer-events: none; }
.v-vacio[hidden] { display: none; }
.v-pasada { flex: none; }

/* ---------- Sondas y límite de cobertura ---------- */
.v-esc .sonda { z-index: 8; }
.v-esc .sonda--cursor { background: var(--surface); color: var(--ink); }
.v-esc .sonda.a-izq { transform: translate(calc(-100% - 14px), -50%); }
/* la etiqueta del punto va por debajo de paneles, bandeja y línea de tiempo: no tapa la ficha */
.v-esc .v-sonda-fija { z-index: 0; }
/* la mira del punto, sobre el mapa y la imagen fija pero por debajo de la interfaz (#v-ui, z-index 5):
   con el 6 de sistema.css quedaba encima de la bandeja, la hoja y sus botones */
#v-mapa .mapa__punto { z-index: 4; }
.v-sincob { position: absolute; left: 0; right: 0; bottom: 0; z-index: 0; pointer-events: none; border-top: 1.5px dashed var(--ink);
  background: repeating-linear-gradient(135deg, transparent 0 7px, color-mix(in srgb, var(--ink) 14%, transparent) 7px 8px), color-mix(in srgb, var(--tierra) 45%, transparent); }
.v-sincob span { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); background: var(--surface); padding: 2px 8px; border-radius: var(--r-1); font-size: var(--t-1); font-weight: 600; white-space: nowrap; box-shadow: var(--s-1); }

/* fuera del recuadro de un modelo sin relleno comparable alrededor (Visor.mapa.sinDato): rayado y rótulo */
#v-mapa .mapa__sindato { position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: repeating-linear-gradient(135deg, transparent 0 7px, color-mix(in srgb, var(--ink) 18%, transparent) 7px 8px); }
#v-mapa .mapa__sindato[hidden] { display: none; }
#v-mapa .mapa__sindato-rot[hidden] { display: none; }
#v-mapa .mapa__sindato-rot { position: absolute; z-index: 3; pointer-events: none; transform: translateX(-50%); background: var(--surface); color: var(--ink-2); padding: 2px 8px; border-radius: var(--r-1); font-size: var(--t-1); white-space: nowrap; box-shadow: var(--s-1); max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; }

/* ---------- Sencillo: sin columna de modelos ---------- */
.v-velo { display: none; }
.v-esc.es-sencillo [data-exp] { display: none !important; }
.v-esc.es-sencillo { grid-template-columns: 232px minmax(0, 1fr) 0; column-gap: 0; }
.v-esc.es-sencillo :is(.v-centro, .v-bandeja-hueco) { margin-right: 8px; }
.v-cierra { display: none !important; }

/* ===== Altura de portátil: todo cabe sin desplazar ===== */
@media (max-height: 840px) and (min-width: 1180px) {
  .v-capas .panel { --control: 31px; padding-bottom: 4px; }
  .v-capas .capa { padding-block: 3px; }
  .v-capas .v-fam__b .capa__d { display: none; }
  .v-capas .capas__grupo { padding: 7px 10px 2px; }
  .v-capas .v-interr { padding-block: 3px; }
  .v-var { --control: 29px; }
  .v-mod .modelo { --fila: 30px; } .v-mod .panel__cuerpo { gap: 3px; }
}
@media (max-width: 1400px) and (min-width: 1180px) {
  .v-comparte__b span { display: none; } .v-comparte__b { width: var(--control); padding: 0; }
  .v-top .seg__op { padding: 0 9px; }
}
/* la clave de precarga es lo primero que sobra cuando el pie no cabe */
@media (max-width: 1640px) { .lt-clave { display: none; } }

/* ===== Tableta (700 a 1.180 px): paneles como hojas ===== */
@media (max-width: 1179px) {
  .v-esc { padding: 8px 16px 8px; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto auto;
    grid-template-areas: "top" "estado" "centro" "pie" "tiempo"; }
  .v-esc.es-sencillo { grid-template-columns: minmax(0, 1fr); }
  .v-esc.es-sencillo :is(.v-centro, .v-bandeja-hueco) { margin-right: 0; }
  .v-logo { padding: 0 8px; } .v-logo .logo__txt, .v-hueco { display: none; }
  .v-top .busca { flex: 1 1 auto; width: auto; }
  .v-comparte__b span { display: none; } .v-comparte__b { width: var(--control); padding: 0; }
  .v-zoom > .v-z-menos, .v-zoom > .v-z-mas { display: none; }
  .v-zoom > .v-vistas { border-left: 0; } .v-vistas > .btn { border-radius: var(--r-2); }
  .v-estado { display: flex; }
  .v-estado .btn { height: 40px; min-width: 0; padding: 0 12px; } .v-estado .btn > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .v-capas, .v-mod { display: contents; }
  .v-capas .panel, .v-mod .panel { position: fixed; z-index: 45; inset: auto 0 0 0; max-height: 80%; border-radius: var(--r-hoja) var(--r-hoja) 0 0; padding-bottom: 12px;
    transform: translateY(105%); transition: transform .22s ease; box-shadow: 0 -2px 20px -4px rgba(15, 27, 43, .3); visibility: hidden; }
  .v-capas .panel { --control: 44px; padding: 0 12px 16px; width: auto !important; }
  .v-capas .panel::before, .v-mod .panel::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 8px auto 0; } /* asa de la hoja */
  .v-hoja-cab { display: flex; align-items: center; justify-content: space-between; padding: 2px 0 2px 10px; }
  .v-hoja-cab .tit-4 { margin: 0; }
  .v-mod .panel__cab { padding: 2px 12px 6px 16px; border-bottom: 0; }
  .v-mod .panel__cuerpo { padding: 4px 12px 8px; gap: 6px; }
  .v-mod .modelo { --fila: 44px; grid-template-columns: 4px minmax(0, 1fr) 96px 34px 32px; gap: 0 8px; }
  .v-cierra { display: inline-flex !important; }
  .v-esc.abre-capas .v-capas .panel, .v-esc.abre-mod .v-mod .panel { transform: none; visibility: visible; }
  .v-esc.abre-capas .v-velo, .v-esc.abre-mod .v-velo { display: block; position: fixed; inset: 0; z-index: 44; background: rgba(8, 14, 22, .42); pointer-events: auto; }
  .v-rail-btn { display: none; }
  .v-var { --control: 40px; }
  .v-ley-caja { grid-area: pie; justify-self: start; align-self: end; width: min(340px, 60%); z-index: 2; }
  .v-inserto { grid-area: pie; justify-self: end; align-self: end; margin: 0; width: 120px; height: 78px; }
  .v-bandeja-hueco { grid-area: centro; }
  .v-tiempo { padding: 6px 10px 6px; gap: 4px; }
  .v-tiempo .linea-t__ctl { gap: 4px; }
  .v-tiempo .linea-t__hora { min-width: 0; font-size: var(--t-3); margin-left: 4px; }
  .v-tiempo .linea-t__pista { height: 44px; } .v-tiempo .linea-t__dias { line-height: 14px; } .v-tiempo .linea-t__aguja { top: 16px; }
  .v-tiempo .linea-t__dias i, .lt-clave, .lt-fuera span, .lt-corte span, .lt-utc, .v-pie { display: none; }
  .v-tiempo .linea-t__dias span { padding-left: 3px; }
  .v-tiempo .linea-t__ahora::after { content: none; }
  .v-pie-m { display: flex; flex-wrap: wrap; gap: 0 6px; color: var(--ink-2); line-height: 1.3; } .v-pie-m > * { white-space: nowrap; }
  .v-esc .sonda--fija { display: none; }
}
@media (max-width: 860px) { .v-modo .seg__op { padding: 0 8px; } .v-tiempo .lt-mas { display: none; } }
