/* ════════════════════════════════════════════════════════════════════
   NV util 6.0 (nv-util-600.css)
   Piezas comunes de las capas 6.0: botones, interruptor, tarjeta y filas.
   Solo usan las variables del tema (siguen a los 10 temas y al modo claro).
   ════════════════════════════════════════════════════════════════════ */
.nvs6-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border2, var(--border));
  background: var(--bg3); color: var(--text); font: 600 13px/1 inherit; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, opacity .15s ease;
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.nvs6-btn:hover:not(:disabled) { border-color: var(--accent); }
.nvs6-btn:active:not(:disabled) { transform: scale(.96); }
.nvs6-btn:disabled { opacity: .55; cursor: default; }
.nvs6-btn:focus-visible, .nvs6-sw:focus-visible, .nvs6-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nvs6-btn.is-pri { background: var(--accent); border-color: transparent; color: var(--nv54-on-accent, #fff); }
.nvs6-btn.is-pri:hover:not(:disabled) { filter: brightness(1.08); }
.nvs6-btn.is-ghost { background: transparent; }
.nvs6-btn.is-sm { min-height: 30px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.nvs6-btn.is-busy { position: relative; color: transparent !important; }
.nvs6-btn.is-busy::after {
  content: ''; position: absolute; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid currentColor; border-color: var(--text2) transparent var(--text2) transparent; animation: nvs6Gira .7s linear infinite;
}
.nvs6-btn svg { flex-shrink: 0; }
@keyframes nvs6Gira { to { transform: rotate(360deg); } }

/* Interruptor */
.nvs6-sw {
  position: relative; flex-shrink: 0; width: 44px; height: 26px; border-radius: 99px; border: 0; padding: 0; cursor: pointer;
  background: var(--bg4, var(--border)); transition: background-color .2s ease;
}
.nvs6-sw i {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .22s cubic-bezier(.32,1.28,.5,1);
}
.nvs6-sw[aria-checked="true"] { background: var(--green, #10b981); }
.nvs6-sw[aria-checked="true"] i { transform: translateX(18px); }

/* Tarjeta y filas */
.nvs6-card { margin-top: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg2); }
.nvs6-card-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--text); }
.nvs6-card-h > b:first-child { margin-right: auto; }
.nvs6-mut { margin: 8px 0 0; font-size: 12.5px; color: var(--text3); }
.nvs6-err { margin: 8px 0 0; font-size: 12.5px; color: var(--red2, #f87171); }
.nvs6-err[hidden] { display: none; }
.nvs6-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--border); }
.nvs6-row:first-child { border-top: 0; }
.nvs6-row-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nvs6-row-tx b { font-size: 14px; color: var(--text); font-weight: 600; }
.nvs6-row-tx small { font-size: 12px; line-height: 1.45; color: var(--text3); }
@media (prefers-reduced-motion: reduce) {
  .nvs6-btn, .nvs6-sw, .nvs6-sw i { transition: none; }
}
