/*
 * TEBAL Terreno — estilos propios (sin Bootstrap; funciona sin señal).
 *
 * Uso a pleno sol y con una mano: texto ≥ 4.5:1, letra base 16 px, botones de
 * al menos 48 px y las acciones principales abajo. El color del tipo de
 * campaña llega como --tipo-color con su tinta de mayor contraste --tipo-tinta
 * (ui.tintaSobre). El lima de la marca es solo fondo con texto oscuro.
 * CSP: sin style="" en el HTML; los colores dinámicos van por CSSOM.
 */

:root {
  color-scheme: light;
  --lima: #93C01F;
  --tinta: #1D1D1B;
  --texto-sec: #4A5058;
  --verde: #2D7A4F;
  --verde-osc: #225E3C;
  --fondo: #F4F5F2;
  --superficie: #FFFFFF;
  --borde: #B9BFB5;
  --foco: #1F5C3A;
  --rojo: #A3241A;
  --rojo-fondo: #FDECEA;
  --rojo-texto: #7F1D14;
  --ambar: #B26A00;
  --ambar-fondo: #FFF1C2;
  --ambar-texto: #5E4100;
  --azul: #1565C0;
  --azul-fondo: #E3EEFB;
  --azul-texto: #164784;
  --gris-fondo: #E9EBEE;
  --gris-texto: #393F46;
  --verde-fondo: #E2F1E7;
  --verde-texto: #1D5636;
  --naranja: #E65100;
  --tipo-color: #2D7A4F;
  --tipo-tinta: #FFFFFF;
  --radio: 12px;
  --sombra: 0 1px 2px rgba(0, 0, 0, .08), 0 2px 8px rgba(0, 0, 0, .06);
  --seguro-arriba: env(safe-area-inset-top, 0px);
  --seguro-abajo: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--fondo); color: var(--tinta);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
[hidden] { display: none !important; }
h1 { font-size: 1.35rem; margin: 4px 0 12px; }
h2 { font-size: 1.1rem; margin: 0 0 8px; }
a { color: var(--azul-texto); }
:focus-visible { outline: 3px solid var(--foco); outline-offset: 2px; }
.sec { color: var(--texto-sec); }
.chico { font-size: .9rem; }
.grande { font-size: 1.15rem; }
.centro { text-align: center; }
.error { color: var(--rojo); font-weight: 600; margin: 4px 0 0; }
.solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Barra superior y franja de PC ───────────────────────────────────── */
.franja-pc { background: var(--ambar-fondo); color: var(--ambar-texto); text-align: center; padding: 6px 12px; font-weight: 600; font-size: .92rem; }
.barra {
  position: sticky; top: 0; z-index: 1000; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 56px; padding: calc(6px + var(--seguro-arriba)) 8px 6px; background: var(--lima); color: var(--tinta);
}
.barra.con-campana { background: var(--tipo-color); color: var(--tipo-tinta); }
.barra-campana { min-width: 0; flex: 1; display: flex; }
.barra-marca { display: flex; align-items: center; gap: 8px; min-width: 0; }
.barra-marca img { border-radius: 6px; }
.barra-titulo { font-weight: 700; font-size: 1.05rem; }
.barra-campana-boton {
  display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; min-height: 44px;
  border: 0; background: transparent; color: inherit; font: inherit; text-align: left; padding: 0 4px; cursor: pointer;
}
.barra-campana-boton > .bx { font-size: 1.6rem; flex: none; }
.bc-textos { display: flex; flex-direction: column; min-width: 0; }
.bc-nombre { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-proyecto { font-size: .82rem; opacity: .92; }
.barra-acciones { display: flex; align-items: center; gap: 4px; flex: none; }
.btn-icono {
  min-width: 48px; min-height: 48px; border: 0; background: transparent; color: inherit; border-radius: 10px;
  font-size: 1.5rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.indicador {
  display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 4px 10px; border-radius: 20px;
  border: 0; font: 600 .85rem/1.1 inherit; cursor: pointer; background: var(--superficie); color: var(--tinta);
}
.indicador.ok { color: var(--verde-texto); }
.indicador.pend { color: var(--azul-texto); }
.indicador.offline { color: var(--ambar-texto); background: var(--ambar-fondo); }
.indicador.error { color: var(--rojo-texto); background: var(--rojo-fondo); }
.indicador.girando .bx { animation: girar 1s linear infinite; }
@media (max-width: 420px) { .ind-texto { max-width: 7.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
@keyframes girar { to { transform: rotate(360deg); } }

/* ── Contenido ────────────────────────────────────────────────────────── */
.contenido { padding: 12px 14px calc(24px + var(--seguro-abajo)); max-width: 720px; margin: 0 auto; outline: none; }
/* Mapa: el cuerpo es una columna de alto fijo (barra, franja de PC y aviso de versión incluidos). */
body.pantalla-completa { display: flex; flex-direction: column; height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
body.pantalla-completa .contenido { padding: 0; max-width: none; width: 100%; margin: 0; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cargando { text-align: center; color: var(--texto-sec); padding: 40px 0; }
.tarjeta, fieldset.tarjeta {
  background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); padding: 14px; margin: 0 0 12px; box-shadow: var(--sombra);
}
fieldset.tarjeta legend { font-weight: 700; padding: 0 4px; }
.vacio { text-align: center; color: var(--texto-sec); padding: 32px 12px; }
.vacio > .bx { font-size: 3rem; display: block; margin-bottom: 8px; }

/* ── Botones ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 10px 16px;
  border-radius: 10px; border: 2px solid transparent; font: 600 1rem/1.2 inherit; cursor: pointer; text-decoration: none;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn .bx { font-size: 1.3rem; }
.btn-primario { background: var(--verde); color: #FFFFFF; }
.btn-primario:hover:not(:disabled) { background: var(--verde-osc); }
.btn-tipo { background: var(--tipo-color); color: var(--tipo-tinta); }
.btn-secundario { background: var(--superficie); color: var(--tinta); border-color: var(--borde); }
.btn-peligro { background: var(--superficie); color: var(--rojo); border-color: var(--rojo); }
.btn-bloque { display: flex; width: 100%; margin-top: 8px; }
.btn-grande { min-height: 56px; font-size: 1.08rem; flex: 1; }
.btn-chico { min-height: 40px; padding: 6px 12px; font-size: .92rem; }
.enlace-boton { border: 0; background: none; color: var(--azul-texto); font: 600 1rem inherit; text-decoration: underline; min-height: 44px; cursor: pointer; padding: 0 4px; }
.enlace-boton:disabled { color: var(--texto-sec); text-decoration: none; }

/* ── Formularios ──────────────────────────────────────────────────────── */
.campo { margin-bottom: 12px; }
.campo label { display: block; font-weight: 600; margin-bottom: 4px; }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 2px solid var(--borde); border-radius: 10px;
  font: 1rem inherit; color: var(--tinta); background: var(--superficie);
}
textarea { min-height: 96px; resize: vertical; }
input[type="checkbox"] { width: 24px; min-height: 24px; height: 24px; accent-color: var(--verde); vertical-align: middle; }
input[aria-invalid="true"] { border-color: var(--rojo); }
.input-grande { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.codigo-input { font-size: 1.8rem; letter-spacing: 8px; text-align: center; font-variant-numeric: tabular-nums; }
.ayuda { color: var(--texto-sec); font-size: .9rem; margin: 4px 0 0; }
.acciones { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.acciones-col { display: flex; flex-direction: column; gap: 4px; }
.fila-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fila-3 { display: grid; grid-template-columns: 5.5em 1fr 1fr; gap: 8px; }
.interruptor { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; }
.select-chico { width: auto; min-height: 44px; }

.segmentado { display: flex; gap: 4px; background: var(--gris-fondo); border-radius: 12px; padding: 4px; margin-bottom: 12px; }
.seg {
  flex: 1; min-height: 48px; border: 0; border-radius: 9px; background: transparent; color: var(--tinta);
  font: 600 .98rem inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
}
.seg.activo { background: var(--superficie); box-shadow: var(--sombra); }
.segmentado-tipo .seg.activo { background: var(--tipo-color); color: var(--tipo-tinta); }

/* ── Avisos y chips ───────────────────────────────────────────────────── */
.aviso {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  padding: 10px 12px; border-radius: 10px; background: var(--azul-fondo); color: var(--azul-texto); margin: 0 0 10px; font-weight: 600;
}
.aviso.ambar { background: var(--ambar-fondo); color: var(--ambar-texto); }
.aviso.rojo { background: var(--rojo-fondo); color: var(--rojo-texto); }
.aviso.ok { background: var(--verde-fondo); color: var(--verde-texto); }
.aviso.gris { background: var(--gris-fondo); color: var(--gris-texto); }
.aviso.azul { background: var(--azul-fondo); color: var(--azul-texto); }
.aviso-version { position: sticky; top: 56px; z-index: 999; margin: 0; border-radius: 0; }
.avisos-flotantes {
  position: fixed; left: 8px; right: 8px; bottom: calc(150px + var(--seguro-abajo)); z-index: 3000;
  display: flex; flex-direction: column; gap: 6px; pointer-events: none; max-width: 600px; margin: 0 auto;
}
.avisos-flotantes .aviso { pointer-events: auto; box-shadow: var(--sombra); margin: 0; }
.chip { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 999px; font-size: .82rem; font-weight: 700; background: var(--gris-fondo); color: var(--gris-texto); }
.chip.ambar { background: var(--ambar-fondo); color: var(--ambar-texto); }
.chip.azul { background: var(--azul-fondo); color: var(--azul-texto); }
.chip.rojo { background: var(--rojo-fondo); color: var(--rojo-texto); }
.chip.verde { background: var(--verde-fondo); color: var(--verde-texto); }
.chip-campana { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-weight: 700; background: var(--tipo-color); color: var(--tipo-tinta); }
.chip-campana.grande { font-size: 1.15rem; padding: 10px 16px; }
.chip-punto { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--tinta); background: var(--gris-fondo); border-radius: 999px; padding: 4px 12px; }
.cambio-campana p { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ── Pantalla 0 e ingreso ─────────────────────────────────────────────── */
.instalar-marca { text-align: center; margin: 12px 0 16px; }
.instalar-marca img { border-radius: 16px; box-shadow: var(--sombra); }
.pasos { list-style: none; padding: 0; margin: 8px 0; }
.paso { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.paso-n { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--verde); color: #FFF; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.remate { font-size: 1.05rem; }
.porque { margin: 12px 0; }
.porque summary { min-height: 44px; display: flex; align-items: center; font-weight: 600; cursor: pointer; }
.flecha-compartir { position: fixed; z-index: 2000; font-size: 3.2rem; color: var(--verde); animation: rebote 1.1s ease-in-out infinite; pointer-events: none; }
.flecha-compartir.abajo-centro { left: 50%; bottom: calc(4px + var(--seguro-abajo)); transform: translateX(-50%); }
.flecha-compartir.arriba-derecha { right: 16px; top: calc(4px + var(--seguro-arriba)); transform: rotate(180deg); }
@keyframes rebote { 50% { margin-bottom: 14px; margin-top: 14px; } }
@media (prefers-reduced-motion: reduce) { .flecha-compartir, .indicador.girando .bx { animation: none; } }

/* ── Mis campañas ─────────────────────────────────────────────────────── */
.lista-campanas { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.tarjeta-campana {
  display: flex; align-items: stretch; gap: 0; width: 100%; min-height: 80px; padding: 0; text-align: left; cursor: pointer;
  background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); box-shadow: var(--sombra); font: inherit; color: inherit; overflow: hidden;
}
.tarjeta-campana > .bx { align-self: center; font-size: 1.6rem; padding: 0 8px; color: var(--texto-sec); }
.tarjeta-campana .banda { flex: none; width: 56px; display: flex; align-items: center; justify-content: center; background: var(--tipo-color); color: var(--tipo-tinta); font-size: 1.7rem; }
.tc-cuerpo { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; min-width: 0; }
.tc-nombre { font-weight: 700; font-size: 1.05rem; }
.tc-proyecto { color: var(--texto-sec); font-size: .9rem; }
.tc-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .88rem; color: var(--texto-sec); }
.cerradas summary { min-height: 48px; display: flex; align-items: center; gap: 6px; font-weight: 700; cursor: pointer; }

/* ── Mapa ─────────────────────────────────────────────────────────────── */
.pantalla-mapa { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.mapa { flex: 1; min-height: 200px; background: #E6E8E1; }
.leaflet-container { background: #E6E8E1; font: inherit; }
.lista-registros { flex: 1; overflow-y: auto; padding: 10px 12px; background: var(--fondo); }
.mapa-pie { flex: none; background: var(--superficie); border-top: 1px solid var(--borde); padding: 8px 10px calc(8px + var(--seguro-abajo)); display: flex; flex-direction: column; gap: 6px; }
.mapa-pie-fila { display: flex; gap: 8px; align-items: center; }
.mapa-pie-fila.chico .segmentado { margin: 0; flex: 1; }
.mapa-pie-fila.chico .seg { min-height: 40px; }
.mapa-pie .aviso { margin: 0; }
.btn-mapa { width: 48px; height: 48px; border: 0; background: var(--superficie); color: var(--tinta); font-size: 1.6rem; cursor: pointer; border-radius: 4px; }
.btn-mapa.siguiendo { color: var(--azul); background: var(--azul-fondo); }
.leaflet-control-layers-toggle { width: 44px !important; height: 44px !important; }
.leaflet-control-attribution { font-size: 11px; }

.mk-envoltura { background: none; border: 0; }
.mk-reg { display: block; width: 100%; height: 100%; border: 3px solid var(--tipo-color); background: var(--tipo-color); position: relative; box-shadow: 0 0 0 2px #FFFFFF; }
.mk-hallazgo { border-radius: 50%; }
.mk-sin_hallazgo { border-radius: 50%; background: #FFFFFF; }
.mk-sin_hallazgo .mk-x { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--tipo-color); font-weight: 900; font-size: 12px; }
.mk-incidencia { border: 0; box-shadow: none; background: var(--naranja); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.mk-reg.equipo { background: rgba(255, 255, 255, .85); }
.mk-reg.equipo.mk-incidencia { background: var(--naranja); opacity: .6; }
.mk-reg.pend::after { content: ''; position: absolute; top: -5px; right: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--ambar); border: 1px solid #FFFFFF; }
.fila-registro .mk-reg { width: 20px; height: 20px; flex: none; }
.mk-prop { display: block; position: relative; width: 18px; height: 18px; }
.mk-prop-punto { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--tipo-color); background: rgba(255, 255, 255, .7); color: var(--tipo-tinta); font: 900 11px/12px inherit; text-align: center; }
.mk-prop.hecho .mk-prop-punto { background: var(--tipo-color); }
.mk-prop-etq { position: absolute; left: 22px; top: -1px; white-space: nowrap; font: 700 12px/1 inherit; color: var(--tinta); background: rgba(255, 255, 255, .88); padding: 2px 4px; border-radius: 4px; }
.mk-pin { display: block; font-size: 36px; color: var(--rojo); text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }

.filtros { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.registros { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.fila-registro { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 10px; background: var(--superficie); border: 1px solid var(--borde); border-radius: 10px; color: inherit; text-decoration: none; }
.fr-cuerpo { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.fr-titulo { font-weight: 700; }
.fr-meta { color: var(--texto-sec); font-size: .86rem; }
.mini-lista { padding-left: 18px; }
.mini-lista li { margin-bottom: 6px; }

/* ── Registro ─────────────────────────────────────────────────────────── */
.ub-fila { display: flex; align-items: center; gap: 8px; min-height: 44px; border-bottom: 1px solid var(--gris-fondo); }
.ub-fila > .bx { font-size: 1.4rem; color: var(--texto-sec); flex: none; }
.ub-texto { flex: 1; font-variant-numeric: tabular-nums; }
.ub-acciones { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 6px; margin: 10px 0; }
.ub-oficial { background: var(--gris-fondo); border-radius: 10px; padding: 8px 10px; margin-top: 8px; }
.ub-oficial p { margin: 2px 0; }
.ubicaciones { list-style: none; padding: 0; margin: 0; }
.ub-det { padding: 8px 0; border-bottom: 1px solid var(--gris-fondo); font-variant-numeric: tabular-nums; }
.ub-det.oficial { font-weight: 700; }
.tira-acciones { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 10px; }
.btn-medio {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px;
  border: 2px solid var(--borde); border-radius: 10px; background: var(--superficie); color: var(--tinta); font: 600 .78rem inherit; cursor: pointer;
}
.btn-medio .bx { font-size: 1.6rem; }
.tira-medios { display: flex; flex-wrap: wrap; gap: 8px; }
.mini {
  position: relative; width: 76px; height: 76px; border-radius: 10px; border: 2px solid var(--borde); background: var(--gris-fondo);
  overflow: hidden; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: var(--texto-sec);
}
.mini img { width: 100%; height: 100%; object-fit: cover; }
.mini-dur, .mini-etq { position: absolute; left: 3px; bottom: 3px; background: rgba(0, 0, 0, .7); color: #FFF; font: 700 .7rem/1 inherit; padding: 2px 4px; border-radius: 4px; }
.mini-etq { left: auto; right: 3px; top: 3px; bottom: auto; }
.mini-estado { position: absolute; right: 3px; bottom: 3px; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .95rem; background: #FFF; }
.mini-estado.ok { color: var(--verde-texto); }
.mini-estado.pend { color: var(--azul-texto); }
.mini-estado.error { color: #FFF; background: var(--rojo); }
.pie-registro { position: sticky; bottom: 0; background: var(--fondo); padding: 8px 0 calc(8px + var(--seguro-abajo)); z-index: 5; }
.datos { margin: 0 0 12px; }
.fila-dato { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--gris-fondo); }
.fila-dato dt { flex: 0 0 9em; font-weight: 700; color: var(--texto-sec); }
.fila-dato dd { margin: 0; flex: 1; overflow-wrap: anywhere; }
.gps-campos .campo { margin-bottom: 8px; }
.nota-texto { min-height: 160px; }
.nota-ver { white-space: pre-wrap; font-size: 1.05rem; }
.visor img, .visor video { width: 100%; max-height: 70vh; object-fit: contain; background: #000; border-radius: 8px; }
.visor audio { width: 100%; }
.espera-chica { position: fixed; z-index: 3500; left: 50%; top: 40%; transform: translateX(-50%); background: var(--tinta); color: #FFF; padding: 12px 18px; border-radius: 12px; display: flex; gap: 8px; align-items: center; font-weight: 600; }

/* Ajuste en el mapa y grabadoras: pantalla completa. */
.ajuste, .grabadora { position: fixed; inset: 0; z-index: 2500; display: flex; flex-direction: column; background: #000; }
.mapa-ajuste { flex: 1; }
.ajuste-pie { background: var(--superficie); padding: 8px 10px calc(10px + var(--seguro-abajo)); }
.grabadora { color: #FFF; align-items: stretch; justify-content: space-between; padding: calc(10px + var(--seguro-arriba)) 12px calc(14px + var(--seguro-abajo)); }
.grab-vista { flex: 1; width: 100%; object-fit: cover; min-height: 0; border-radius: 10px; background: #111; }
.grab-audio-icono { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 6rem; }
.grab-contador { text-align: center; font: 700 2.2rem/1.2 inherit; font-variant-numeric: tabular-nums; margin: 10px 0; }
.grab-nivel { height: 14px; background: #333; border-radius: 7px; overflow: hidden; margin: 0 0 14px; }
.grab-nivel-barra { height: 100%; background: var(--lima); transform-origin: left; transform: scaleX(0); }
.grab-botones { display: flex; gap: 10px; }
.grab-botones .btn { flex: 1; min-height: 60px; }

/* ── Diálogos, hojas y menú ───────────────────────────────────────────── */
dialog { border: 0; padding: 0; color: var(--tinta); }
dialog::backdrop { background: rgba(0, 0, 0, .45); }
.dialogo { border-radius: 14px; padding: 18px; width: min(92vw, 460px); }
.dialogo-botones { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.dialogo.espera { text-align: center; }
.espera-cabeza { display: flex; align-items: center; justify-content: center; gap: 8px; }
.hoja {
  margin: auto auto 0; width: 100%; max-width: 640px; max-height: 88vh; border-radius: 18px 18px 0 0;
  padding: 0 0 var(--seguro-abajo); display: flex; flex-direction: column;
}
.hoja[open] { display: flex; }
.hoja-ancha { max-width: 900px; }
.hoja-cabeza { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 0 16px; }
.hoja-cabeza h2 { margin: 0; }
.hoja-cuerpo { padding: 8px 16px 16px; overflow-y: auto; }
.menu {
  position: fixed; top: calc(56px + var(--seguro-arriba)); right: 8px; z-index: 2000; width: min(86vw, 300px);
  background: var(--superficie); border-radius: 14px; padding: 12px; box-shadow: 0 8px 28px rgba(0, 0, 0, .25);
}
.menu-nombre { font-weight: 700; margin: 0; }
.menu-email { color: var(--texto-sec); margin: 0 0 8px; overflow-wrap: anywhere; }
.menu-version { color: var(--texto-sec); font-size: .85rem; margin: 8px 0 0; text-align: center; }
