/* ============================================
   LEFT PANEL
   ============================================ */
.left-panel {
  width: 320px;
  min-width: 320px;
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width 0.3s, min-width 0.3s;
}

.left-panel.collapsed {
  width: 0;
  min-width: 0;
  border-right: none;
}

.panel-section {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.panel-section-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Search */
.search-wrapper { position: relative; }

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
}

.search-box {
  width: 100%;
  padding: 9px 12px 9px 34px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  outline: none;
}

.search-box:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Layer controls */
.layer-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.layer-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
}

.layer-item:hover { background: var(--bg-card); }

.layer-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.08);
}

.layer-color.line-style {
  height: 3px;
  border-radius: 2px;
}

.layer-toggle {
  width: 28px;
  height: 16px;
  background: var(--bg-card);
  border-radius: 8px;
  position: relative;
  cursor: pointer;
  margin-left: auto;
  border: 1px solid var(--border);
  flex-shrink: 0;
  transition: background 0.2s;
}

.layer-toggle.active {
  background: var(--accent);
  border-color: var(--accent);
}

.layer-toggle::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 0.2s;
}

.layer-toggle.active::after {
  transform: translateX(12px);
}

/* Predio list */
.predio-list-header {
  padding: 10px 16px 6px;
}

.predio-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 8px 8px;
}

.predio-list::-webkit-scrollbar { width: 4px; }
.predio-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.predio-card {
  padding: 8px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 7px;
  margin-bottom: 5px;
  cursor: pointer;
  transition: all 0.15s;
}

.predio-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
}

.predio-card.active {
  background: var(--accent-glow);
  border-color: var(--accent);
}

.predio-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
}

.predio-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

.predio-status {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.status-sin_avaluo     { background: rgba(165,165,175,0.2); color: #a5a5af; }
.status-en_proceso     { background: rgba(59,130,246,0.15); color: #3b82f6; }
.status-con_avaluo     { background: rgba(59,130,246,0.15); color: #3b82f6; }
.status-en_negociacion { background: rgba(234,179,8,0.15);  color: #eab308; }
.status-negociado      { background: rgba(46,158,94,0.15);  color: var(--green); }
.status-imposicion     { background: rgba(239,68,68,0.15);  color: var(--red); }

.predio-name {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================
   MAP
   ============================================ */
#map {
  flex: 1;
  background: var(--bg-dark);
}

/* ============================================
   MAP CONTROLS
   ============================================ */
.basemap-switcher {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  gap: 4px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
}

.basemap-btn {
  padding: 6px 12px;
  font-size: 11px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 5px;
}

.basemap-btn.active {
  background: var(--accent);
  color: white;
}

/* Boton hamburguesa — ahora esta fuera del #map en el HTML
   para que funcione con z-index sobre el panel derecho en mobile.
   En desktop: posicion fija sobre el mapa.
   En mobile: position fixed para estar SIEMPRE visible. */
.panel-toggle {
  position: fixed;
  top: 62px;        /* topbar (52px) + 10px margen */
  left: 330px;      /* al lado del left-panel (320px) + 10px */
  z-index: 10;
  width: 34px;
  height: 34px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: left 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Cuando el panel izq esta colapsado en desktop, mover hamburguesa */
.left-panel.collapsed ~ .panel-toggle,
.main-container:has(.left-panel.collapsed) .panel-toggle {
  left: 10px;
}

/* Overlay mobile — ahora fuera del #map para cubrir todo */
.mobile-overlay {
  display: none;
}

/* ============================================
   MEASUREMENT TOOL
   ============================================ */
.measure-control {
  position: absolute;
  bottom: 160px;   /* separado del control de zoom + ubicación GPS (abajo-derecha) */
  right: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.measure-btn {
  width: 32px;
  height: 32px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all 0.15s;
}

.measure-btn:first-child { border-radius: 8px 8px 0 0; }
.measure-btn:last-child { border-radius: 0 0 8px 8px; }
.measure-btn:only-child { border-radius: 8px; }
.measure-btn:hover { background: var(--bg-card); color: var(--text-primary); }
.measure-btn.active { background: var(--accent); color: white; border-color: var(--accent); }

/* ============================================
   CONTROL FLOTANTE DE CAPAS (boton + desplegable)
   ============================================ */
.capas-control {
  position: absolute;
  top: 48px;
  left: 10px;
  z-index: 3;
}
.capas-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.capas-btn:hover { color: var(--text-primary); }
.capas-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.capas-panel {
  display: none;
  margin-top: 6px;
  width: 240px;
  max-height: 60vh;
  overflow-y: auto;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.capas-panel.open { display: block; }

/* ============================================
   FILTROS RAPIDOS DEL LISTADO DE PREDIOS
   ============================================ */
.predio-filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 10px;
}
.pf-chip {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.pf-chip:hover { color: var(--text-primary); }
.pf-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.pf-chip::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
  background: var(--text-muted);
}
.pf-chip[data-estado='todos']::before { display: none; }
.pf-negociado::before { background: #2e9e5e; }
.pf-ennegociacion::before { background: #eab308; }
.pf-sininiciar::before { background: #94a3b8; }
.pf-imposicion::before { background: #ef4444; }

.measure-tooltip {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-primary);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.measure-result {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-primary);
  display: none;
  gap: 16px;
  align-items: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

.measure-result.visible { display: flex; }
.measure-result-label { color: var(--text-muted); font-size: 11px; font-family: 'DM Sans', sans-serif; }
.measure-result-value { color: var(--accent); font-weight: 600; }
.measure-result-close {
  margin-left: 8px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 14px;
}
.measure-result-close:hover { color: var(--text-primary); }

/* ============================================
   RIGHT PANEL (Detail)
   ============================================ */
.right-panel {
  width: 0;
  min-width: 0;
  background: var(--bg-panel);
  border-left: 1px solid var(--border);
  overflow: hidden;
  transition: width 0.3s, min-width 0.3s;
}

.right-panel.open {
  width: 380px;
  min-width: 380px;
}

.right-panel-inner {
  width: 380px;
  height: 100%;
  overflow-y: auto;
  padding: 20px;
}

.right-panel-inner::-webkit-scrollbar { width: 4px; }
.right-panel-inner::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.detail-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}

.detail-name {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.4;
}

.close-btn {
  width: 30px;
  height: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.close-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.detail-section { margin-bottom: 16px; }

.detail-section-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 13px;
}

.detail-label { color: var(--text-muted); }

.detail-value {
  color: var(--text-primary);
  font-weight: 500;
  text-align: right;
  max-width: 60%;
  word-break: break-word;
}

.owner-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 6px;
}

.owner-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.owner-detail { font-size: 12px; color: var(--text-muted); }

.status-badge {
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  margin-bottom: 6px;
}

.doc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 6px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
}

.doc-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
}

.doc-icon { font-size: 20px; }
.doc-name { font-size: 12px; font-weight: 500; flex: 1; }
.doc-download { font-size: 11px; color: var(--accent); font-weight: 600; }

.observations-box {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  line-height: 1.5;
}

/* ============================================
   MAPLIBRE OVERRIDES
   ============================================ */
.maplibregl-ctrl-group {
  background: var(--bg-panel) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  overflow: hidden;
}

.maplibregl-ctrl-group button {
  background-color: var(--bg-panel) !important;
  border-color: var(--border) !important;
  width: 32px !important;
  height: 32px !important;
}

.maplibregl-ctrl-group button + button {
  border-top: 1px solid var(--border) !important;
}

.maplibregl-ctrl-group button .maplibregl-ctrl-icon {
  filter: invert(1);
}

.maplibregl-popup-content {
  background: var(--bg-panel) !important;
  border: 1px solid var(--border) !important;
  border-radius: 6px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5) !important;
  padding: 0 !important;
  color: var(--text-primary) !important;
}

.maplibregl-popup-tip {
  border-top-color: var(--bg-panel) !important;
}

.maplibregl-popup-close-button {
  color: var(--text-muted) !important;
  font-size: 16px !important;
}

.map-popup {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  padding: 7px 12px;
  white-space: nowrap;
  color: var(--text-primary);
}


/* ============================================
   RESPONSIVE — MOBILE (max-width: 768px)
   ============================================
   IMPORTANTE: Estas reglas estan aqui (map.css)
   porque se carga DESPUES de main.css, y asi
   tienen prioridad sobre los estilos base.

   COMPORTAMIENTO MOBILE:
   - Topbar: compacto, logo AHG a la derecha, sin stats
   - Left panel: oculto, se desliza como overlay (z-index MAS ALTO que right)
   - Right panel: overlay pantalla completa, sin gap abajo
   - Boton hamburguesa visible SIEMPRE (incluso con panel derecho abierto)
   - Flujo: ☰ → lista predios → selecciona → lista se cierra → detalle abre
   ============================================ */
@media (max-width: 768px) {

  /* --- FIX AUTO-ZOOM DE iOS ---
     Safari en iPhone hace ZOOM automático al enfocar cualquier campo
     de texto con fuente < 16px, y la página queda ampliada/descuadrada
     (topbar y herramientas cortadas) hasta acomodarla a mano.
     Con 16px el zoom automático no se dispara. */
  .login-field input,
  .search-box,
  .bitacora-field input,
  .bitacora-field select,
  .bitacora-field textarea,
  .estado-edit select {
    font-size: 16px;
  }

  /* --- LOGIN RESPONSIVE --- */
  .login-card {
    padding: 32px 24px;
  }

  .login-logo {
    height: 44px;
    margin-bottom: 20px;
  }

  .login-title {
    font-size: 20px;
  }

  /* Logout en mobile: solo icono (cuadrado 34px, igual que los demás) */
  .logout-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
  }
  .logout-label { display: none; }

  /* --- TOPBAR COMPACTO CON LOGO ---
     Altura = 46px de contenido + safe-area del notch (iPhone).
     Los padding laterales también respetan los safe-areas
     cuando el teléfono está en horizontal. */
  .topbar {
    height: calc(46px + env(safe-area-inset-top, 0px));
    padding: 0 12px;
    padding-top: env(safe-area-inset-top, 0px);
    padding-left: calc(12px + env(safe-area-inset-left, 0px));
    padding-right: calc(12px + env(safe-area-inset-right, 0px));
  }

  .topbar-left {
    gap: 10px;
  }

  /* DECISIÓN MOBILE (2026-06-10): en celular el espacio del topbar es
     para los CONTROLES. Se abrevia el título a "SPEC", se ocultan el
     subtítulo y el logo AHG (siguen visibles en desktop/tablet). */
  .topbar-title {
    font-size: 15px;
  }
  .topbar-title-full  { display: none; }
  .topbar-title-short { display: inline; }
  .topbar-subtitle    { display: none; }

  .topbar-logo {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  /* Ocultar stats en mobile (no caben) */
  .topbar-stats { display: none !important; }

  /* Acciones (refrescar/dashboard/admin/presentación/salir) a la derecha;
     el logo AHG y el contenedor central se ocultan en mobile. */
  .topbar-center { display: none; }
  .topbar-actions { margin-left: auto; }

  .topbar-brand-logo { display: none; }

  /* Botones del topbar UNIFORMES en mobile: cuadrados de 34px
     (refrescar, presentación y salir con el mismo aspecto) */
  .btn-refresh,
  .presentation-btn {
    width: 34px;
    height: 34px;
  }
  .btn-refresh-icon { font-size: 16px; }

  /* --- LAYOUT PRINCIPAL ---
     Resta la altura visual del topbar (46px) + el safe-area del notch.
     dvh excluye la URL bar dinámica de Safari iOS / Chrome Android:
     sin esto, los controles inferiores del mapa quedan tapados. */
  .main-container {
    height: calc(100vh  - 46px - env(safe-area-inset-top, 0px));
    height: calc(100dvh - 46px - env(safe-area-inset-top, 0px));
    position: relative;
  }

  /* --- LEFT PANEL: OCULTO POR DEFECTO ---
     z-index 1000 = MAS ALTO que right panel (950)
     para que al abrir la lista se vea POR ENCIMA del detalle */
  .left-panel {
    width: 0 !important;
    min-width: 0 !important;
    border-right: none !important;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    z-index: 1000;
    overflow: hidden;
    transition: width 0.3s ease, min-width 0.3s ease;
  }

  .left-panel.mobile-open {
    width: 85vw !important;
    min-width: 85vw !important;
    max-width: 340px;
    border-right: 1px solid var(--border) !important;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.6);
  }

  /* --- BOTON HAMBURGUESA ---
     z-index 1050 = SIEMPRE visible, incluso sobre el panel derecho.
     Permite al usuario abrir la lista de predios sin cerrar el detalle. */
  .panel-toggle {
    position: fixed !important;
    top: calc(54px + env(safe-area-inset-top, 0px));
    left: calc(10px + env(safe-area-inset-left, 0px));
    z-index: 1050 !important;
    width: 38px;
    height: 38px;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  }

  /* --- OVERLAY OSCURO ---
     z-index 990 = detras del left panel (1000), encima del right panel (950) */
  .mobile-overlay {
    display: none;
    position: fixed;
    top: calc(46px + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 990;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-overlay.visible {
    display: block;
  }

  /* --- RIGHT PANEL: OVERLAY PANTALLA COMPLETA ---
     z-index 950 = por debajo del hamburguesa (1050) y left panel (1000) */
  .right-panel {
    position: fixed !important;
    top: calc(46px + env(safe-area-inset-top, 0px));
    right: 0;
    bottom: 0;
    height: auto !important;
    z-index: 950;
    transition: width 0.3s ease, min-width 0.3s ease;
    border-left: none !important;
  }

  .right-panel.open {
    width: 100% !important;
    min-width: 100% !important;
  }

  .right-panel-inner {
    width: 100% !important;
    height: 100%;
    padding: 16px;
    padding-top: 56px;  /* espacio para el boton hamburguesa */
    /* Respeta el home indicator de iPhone para que el final de la
       ficha no quede tapado */
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* --- HEADER DEL DETALLE EN MOBILE ---
     El boton cerrar (X) necesita ser muy visible en mobile.
     Se hace mas grande con fondo contrastante. */
  .detail-header {
    position: relative;
    align-items: center;
    gap: 12px;
  }

  .close-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 20px;
    background: var(--red);
    border: none;
    color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
  }

  .close-btn:hover {
    background: #dc2626;
    color: white;
  }

  .detail-code {
    font-size: 20px;
  }

  .detail-name {
    font-size: 13px;
  }

  /* --- CONTROLES DEL MAPA: AJUSTES TACTILES --- */
  .basemap-switcher {
    top: 8px;
    right: 8px;
  }

  .basemap-btn {
    padding: 8px 14px;
    font-size: 12px;
  }

  /* Separadas de los controles de zoom + ubicación GPS (que en mobile
     suman ~120px + márgenes) para que no se traslapen */
  .measure-control {
    bottom: 150px;
    right: 8px;
  }

  .measure-btn {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }

  .measure-result {
    bottom: 8px;
    font-size: 12px;
    padding: 8px 12px;
  }

  /* --- MAPLIBRE CONTROLES --- */
  .maplibregl-ctrl-group button {
    width: 36px !important;
    height: 36px !important;
  }
}

/* ============================================
   RESPONSIVE — TABLETS (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) and (min-width: 769px) {
  .left-panel {
    width: 280px;
    min-width: 280px;
  }

  .right-panel.open {
    width: 340px;
    min-width: 340px;
  }

  .right-panel-inner {
    width: 340px;
  }

  /* En tablet no cabe el logo AHG; las acciones viven en .topbar-actions
     (siempre visibles a la derecha), así que el contenedor central se oculta. */
  .topbar-center { display: none; }
}

/* ============================================
   RESPONSIVE — TELÉFONO EN HORIZONTAL (landscape)
   Pantalla ancha pero MUY baja (≤480px de alto): es un celular
   acostado, no una tablet. Como en vertical, el topbar es para los
   controles → se ocultan stats y logo y se abrevia el título, para
   que los botones nunca se traslapen con la info del topbar.
   ============================================ */
@media (orientation: landscape) and (max-height: 480px) {
  .topbar-stats       { display: none !important; }
  .topbar-center      { display: none; }
  .topbar-title-full  { display: none; }
  .topbar-title-short { display: inline; }
  .topbar-subtitle    { display: none; }
  .topbar-actions     { margin-left: auto; }
}

/* El logo AHG del centro (topbar-center, posicionado absoluto) solo cabe sin
   solaparse con los stats en pantallas anchas. Por debajo de ~1340px se oculta
   (la marca ya está en el logo "SP" y el subtítulo "AHG Ingeniero" a la izq.). */
@media (max-width: 1340px) {
  .topbar-center { display: none; }
}
