
  /* Etiquetas por capa */
  .btn-label { background:var(--bg-glass); border:1px solid var(--border-subtle); color:var(--text-muted); width:26px; height:26px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; font-size:0.68rem; transition:all var(--t-fast) var(--ease); flex-shrink:0; position:relative; }
  .btn-label:hover { background:var(--brand-secondary); color:#fff; border-color:var(--brand-secondary); }
  .btn-label.active { background:var(--brand-secondary); color:#fff; border-color:var(--brand-secondary); box-shadow:0 0 0 3px rgba(26,92,78,0.18); }
  .btn-label .label-menu { display:none; position:absolute; top:110%; right:0; background:var(--bg-surface); border:1px solid var(--border-medium); border-radius:8px; box-shadow:var(--shadow-lg); min-width:160px; max-height:220px; overflow-y:auto; z-index:200; padding:0.3rem; }
  .btn-label .label-menu.show { display:block; }
  .btn-label .label-menu button { display:block; width:100%; text-align:left; border:none; background:transparent; padding:0.3rem 0.5rem; font-size:0.68rem; cursor:pointer; color:var(--text-secondary); border-radius:6px; }
  .btn-label .label-menu button:hover { background:var(--bg-glass-hover); color:var(--text-primary); }
  .btn-label .label-menu button.current { background:var(--brand-secondary); color:#fff; }
  .leaflet-tooltip.layer-label { background:rgba(255,255,255,0.92); border:1px solid #002F2A; color:#1a2b26; font-size:10px; font-weight:700; padding:1px 6px; border-radius:999px; box-shadow:0 2px 8px rgba(0,0,0,0.2); white-space:nowrap; }
  html[data-theme="dark"] .leaflet-tooltip.layer-label { background:rgba(20,25,38,0.92); color:#eef2f7; border-color:#2d9a87; }


  /* Etiquetas avanzadas v2 */
  .btn-label .label-editor { display:none; position:absolute; top:110%; right:0; width:284px; background:var(--bg-surface); border:1px solid var(--border-medium); border-radius:12px; box-shadow:var(--shadow-lg); z-index:300; padding:0.6rem; font-size:0.7rem; }
  .btn-label .label-editor.show { display:block; }
  .label-editor h5 { font-size:0.66rem; text-transform:uppercase; letter-spacing:0.4px; color:var(--brand-secondary); margin:0.35rem 0 0.3rem; }
  .label-editor h5:first-child { margin-top:0; }
  .label-editor .lab-row { display:flex; gap:0.3rem; align-items:center; margin-bottom:0.35rem; }
  .label-editor select, .label-editor input[type="number"] { flex:1; min-width:0; font-size:0.7rem; padding:0.25rem 0.4rem; border-radius:6px; border:1px solid var(--border-subtle); background:var(--bg-glass); color:var(--text-primary); }
  .label-editor .mini-btn { min-width:26px; height:26px; border-radius:50%; border:1px solid var(--border-subtle); background:var(--bg-glass); cursor:pointer; font-weight:700; display:inline-flex; align-items:center; justify-content:center; }
  .label-editor .mini-btn:hover { background:var(--brand-secondary); color:#fff; }
  .label-editor .style-btn { padding:0.25rem 0.55rem; border-radius:6px; border:1px solid var(--border-subtle); background:var(--bg-glass); cursor:pointer; font-weight:700; }
  .label-editor .style-btn.on { background:var(--brand-secondary); color:#fff; border-color:var(--brand-secondary); }
  .leaflet-tooltip.layer-label-adv { background:rgba(255,255,255,0.94); border:1px solid #002F2A; border-radius:8px; box-shadow:0 2px 10px rgba(0,0,0,0.25); padding:2px 7px; white-space:pre-line; text-align:center; line-height:1.3; }
  html[data-theme="dark"] .leaflet-tooltip.layer-label-adv { background:rgba(20,25,38,0.94); border-color:#2d9a87; }


  /* Etiquetas inline v2 (como simbolog\ED a) */
  .label-editor-inline { display:none; margin:0 0.5rem 0.4rem 1.2rem; padding:0.6rem 0.65rem; background:var(--bg-surface); border:1px solid var(--border-medium); border-radius:var(--r-md); flex-direction:column; gap:0.45rem; box-shadow:var(--shadow-sm); }
  .label-editor-inline.open { display:flex; }

  /* Mismos controles que el resto del geovisor dentro del editor inline */
  .label-editor-inline h5 { font-size:0.6rem; text-transform:uppercase; letter-spacing:0.4px; color:var(--brand-secondary); margin:0.2rem 0 0.1rem; font-weight:800; }
  .label-editor-inline h5:first-of-type { margin-top:0; }
  .label-editor-inline .lab-row { display:flex; gap:0.3rem; align-items:center; margin-bottom:0.1rem; flex-wrap:wrap; }
  .label-editor-inline .lab-row > label { color:var(--text-muted); font-size:0.62rem; }
  .label-editor-inline select,
  .label-editor-inline input[type="number"] { flex:1; min-width:0; font-size:0.68rem; padding:0.28rem 0.45rem; border-radius:var(--r-sm); border:1px solid var(--border-subtle); background:var(--bg-glass); color:var(--text-primary); font-family:'Noto Sans', sans-serif; }
  .label-editor-inline select:focus,
  .label-editor-inline input:focus { outline:none; border-color:var(--brand-secondary); box-shadow:0 0 0 2px rgba(26,92,78,0.15); }
  .label-editor-inline input[type="color"] { width:34px; height:28px; padding:0; border:1px solid var(--border-subtle); border-radius:var(--r-sm); background:var(--bg-glass); cursor:pointer; }
  .label-editor-inline input[type="checkbox"] { accent-color:var(--brand-secondary); }
  .label-editor-inline .mini-btn { min-width:28px; height:28px; border-radius:var(--r-full); border:1px solid var(--border-subtle); background:var(--bg-glass); color:var(--text-secondary); cursor:pointer; font-weight:700; display:inline-flex; align-items:center; justify-content:center; font-size:0.72rem; padding:0 0.6rem; transition:all var(--t-fast) var(--ease); }
  .label-editor-inline .mini-btn:hover { background:var(--bg-glass-hover); color:var(--text-primary); border-color:var(--border-medium); }
  .label-editor-inline .mini-btn.primary { background:var(--brand-secondary); border-color:var(--brand-secondary); color:#fff; }
  .label-editor-inline .mini-btn.primary:hover { background:var(--brand-secondary-lt); }
  .label-editor-inline .style-btn { min-width:28px; height:28px; padding:0 0.5rem; border-radius:var(--r-sm); border:1px solid var(--border-subtle); background:var(--bg-glass); color:var(--text-secondary); cursor:pointer; font-weight:700; font-size:0.7rem; }
  .label-editor-inline .style-btn.on { background:var(--brand-secondary); color:#fff; border-color:var(--brand-secondary); }
  .label-editor-inline .lab-hint { font-size:0.62rem; color:var(--text-muted); line-height:1.35; }

  /* Selector de modo Simple / Avanzado */
  .lab-tabs { display:flex; gap:2px; padding:2px; background:var(--bg-glass); border:1px solid var(--border-subtle); border-radius:var(--r-full); }
  .lab-tabs button { flex:1; border:none; background:transparent; color:var(--text-muted); font-family:'Noto Sans', sans-serif; font-size:0.62rem; font-weight:800; letter-spacing:0.02em; padding:0.28rem 0.4rem; border-radius:var(--r-full); cursor:pointer; }
  .lab-tabs button.on { background:var(--brand-secondary); color:#fff; }


  .leaflet-tooltip.layer-label-adv.no-halo { background:transparent; border:none; box-shadow:none; padding:0; text-shadow:none; }
  html[data-theme="dark"] .leaflet-tooltip.layer-label-adv.no-halo { text-shadow:none; }
