/* ════════════════════════════════════════════════════════════════════
   NV Gestor · Configuración 6.2 (nv-config-620.css)
   Ventana más pequeña y limpia, barra de arriba con el nombre de la
   sección, buscador, indicador de guardado, restablecer, Copia de
   ajustes y Moderadores. Solo variables del tema: sigue a los 10 temas.
   Carga después de nv-config-590.css (va con nv-extras-610, antes de
   nv-movil-610.css).
   ════════════════════════════════════════════════════════════════════ */
html.nvcf62 { --nv62-ease: cubic-bezier(.2,.8,.2,1); --nv62-spring: cubic-bezier(.32,1.2,.5,1); }

/* ═══ Ventana (PC y tablet horizontal) ═══════════════════════════════ */
@media (min-width: 769px) {
  html.nvcf62 .nvcf-ov { padding: 20px; background: rgba(0,0,0,.46); }
  html.nvcf62 .nvcf-cfg {
    width: min(780px, 100%); height: min(540px, calc(100vh - 40px)); height: min(540px, calc(100dvh - 40px));
    grid-template-columns: 216px minmax(0, 1fr); border-radius: 20px; border-color: var(--border);
    box-shadow: 0 32px 80px -32px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.025) inset;
    transform: translateY(10px) scale(.975);
  }
  html.nvcf62 .nvcf-rail { padding: 14px 10px 10px; background: color-mix(in srgb, var(--accent) 3%, var(--bg)); }
  html.nvcf62 .nvcf-head { gap: 9px; padding: 2px 6px 12px; }
  html.nvcf62 .nvcf-gear { width: 30px; height: 30px; border-radius: 9px; box-shadow: 0 6px 16px -8px rgba(var(--nv-accent-rgb), .9); }
  html.nvcf62 .nvcf-gear svg { width: 15px; height: 15px; }
  html.nvcf62 .nvcf-head h2 { font-size: 15px; }
  html.nvcf62 .nvcf-head small { font-size: 11px; margin-top: 2px; }
  html.nvcf62 .nvcf-nav { gap: 1px; }
  html.nvcf62 .nvcf-it { min-height: 38px; padding: 5px 8px; gap: 9px; border-radius: 10px; }
  html.nvcf62 .nvcf-ind { border-radius: 10px; }
  html.nvcf62 .nvcf-ind::before { height: 14px; margin-top: -7px; }
  html.nvcf62 .nvcf-ico { width: 26px; height: 26px; border-radius: 8px; }
  html.nvcf62 .nvcf-ico svg { width: 14px; height: 14px; }
  html.nvcf62 .nvcf-txt b { font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.nvcf62 .nvcf-txt small { display: none; }

  /* Barra de arriba con el nombre de la sección */
  html.nvcf62 .nvcf-top { position: static; display: flex; align-items: center; gap: 8px; padding: 12px 12px 0 24px; min-height: 44px; }
  html.nvcf62 .nvcf-crumb { display: block; flex: 1; min-width: 0; font: var(--nv54-w-display, 700) 17px/1.2 var(--nv-font-display, inherit); letter-spacing: var(--nv54-ls-display, -.015em); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.nvcf62 .nvcf-x { width: 30px; height: 30px; }
  html.nvcf62 .nvcf-scroll { padding: 4px 24px 20px; }
  html.nvcf62 .nvcf-pane { gap: 10px; max-width: 540px; }
  html.nvcf62 .nvcf-pane .nv53-cfg-sh { padding-right: 0; margin-bottom: 2px; }
  html.nvcf62 .nvcf-pane .nv53-cfg-sh h4 { display: none; }
  html.nvcf62 .nvcf-pane .nv53-cfg-sh p { margin-top: 0; font-size: 12.5px; }
  html.nvcf62 .nvcf-foot { padding: 9px 12px 9px 24px; gap: 10px; }
  html.nvcf62 .nvcf-foot .nvcf-btn { height: 32px; min-width: 76px; border-radius: 10px; font-size: 12.5px; }
  /* Temas: la cuadrícula cabe en la ventana más chica */
  html.nvcf62 .nvcf-ov .nv54-grid { gap: 6px; }
  html.nvcf62 .nvcf-ov .nv54-nm { font-size: 10.5px; letter-spacing: -.015em; padding: 0 1px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  html.nvcf62 .nvcf-cfg { width: min(740px, 100%); grid-template-columns: 216px minmax(0, 1fr); }
  html.nvcf62 .nvcf-txt b { font-size: 12.5px; }
  html.nvcf62 .nvcf-scroll { padding: 4px 20px 18px; }
  html.nvcf62 .nvcf-top { padding-left: 20px; }
  html.nvcf62 .nvcf-foot { padding-left: 20px; }
}

/* Contenido más compacto en todos los tamaños */
html.nvcf62 .nvcf-card { border-radius: 14px; }
html.nvcf62 .nvcf-row { min-height: 50px; padding: 10px 12px; gap: 11px; }
html.nvcf62 .nvcf-row-ic { width: 28px; height: 28px; border-radius: 8px; }
html.nvcf62 .nvcf-row-tx b { font-size: 13px; }
html.nvcf62 .nvcf-row-tx small { font-size: 11.5px; }
html.nvcf62 .nvcf-row--wrap .nvcf-inl { padding-left: 39px; }
html.nvcf62 .nvcf-hero { padding: 12px; gap: 12px; border-radius: 16px; }
html.nvcf62 .nvcf-hero-ic { width: 40px; height: 40px; border-radius: 12px; }
html.nvcf62 .nvcf-hero-tx b { font-size: 14px; }
html.nvcf62 .nvcf-hero-tx small { font-size: 12px; }
html.nvcf62 .nvcf-chip { height: 32px; font-size: 12px; }
html.nvcf62 .nvcf-h { margin: 10px 4px -2px; font-size: 10px; }
html.nvcf62 .nvcf-btn { height: 34px; padding: 0 14px; border-radius: 10px; font-size: 12.5px; }
html.nvcf62 .nvcf-btn--pri { min-width: 0; }
html.nvcf62 .nvcf-sw { width: 40px; height: 24px; }
html.nvcf62 .nvcf-sw i { width: 18px; height: 18px; }
html.nvcf62 .nvcf-sw[aria-checked="true"] i { transform: translateX(16px); }
html.nvcf62 .nvcf-sw[aria-checked="true"]:active i { transform: translateX(12px); }
html.nvcf62 .nvcf-sw:active i { width: 22px; }
html.nvcf62 .nvcf-rail-foot { display: none; }   /* sin texto de versión */

/* ═══ Buscador ═══════════════════════════════════════════════════════ */
.nv62-bus { position: relative; display: flex; align-items: center; margin: 0 2px 10px; height: 34px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg2); transition: border-color .15s, box-shadow .15s; }
.nv62-bus:focus-within { border-color: rgba(var(--nv-accent-rgb), .6); box-shadow: 0 0 0 3px rgba(var(--nv-accent-rgb), .15); }
.nv62-bus-ic { display: grid; place-items: center; width: 32px; flex-shrink: 0; color: var(--text3); }
.nvcf-ov .nv62-bus input[type="search"] { flex: 1; min-width: 0; height: 100%; padding: 0 4px 0 0; border: 0; background: transparent; color: var(--text); font: 600 13px var(--nv-font-ui, inherit); outline: 0; box-shadow: none; -webkit-appearance: none; appearance: none; }
.nv62-bus input::-webkit-search-cancel-button { display: none; }
.nv62-bus input::placeholder { color: var(--text3); font-weight: 500; }
.nv62-bus-x { display: grid; place-items: center; width: 28px; height: 28px; margin-right: 3px; flex-shrink: 0; border: 0; border-radius: 8px; background: transparent; color: var(--text3); padding: 0; }
.nv62-bus-x:hover { color: var(--text); background: var(--bg3); }
.nv62-bus-x[hidden] { display: none; }
.nvcf-nav[hidden] { display: none !important; }
.nv62-res { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; scrollbar-width: none; }
.nv62-res[hidden] { display: none; }
.nv62-r { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 40px; padding: 5px 8px; border: 0; border-radius: 10px; background: transparent; color: var(--text2); text-align: left; animation: nv62Entra .24s var(--nv62-ease) both; animation-delay: calc(var(--i, 0) * 22ms); }
.nv62-r:hover, .nv62-r[aria-selected="true"] { background: var(--bg3); color: var(--text); }
.nv62-r[aria-selected="true"] { box-shadow: 0 0 0 1px var(--border2) inset; }
.nv62-r-ic { width: 26px; height: 26px; flex-shrink: 0; border-radius: 8px; display: grid; place-items: center; background: var(--bg3); border: 1px solid var(--border); color: var(--text2); }
.nv62-r-ic svg { width: 13px; height: 13px; }
.nv62-r-tx { flex: 1; min-width: 0; }
.nv62-r-tx b { display: block; font-size: 12.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nv62-r-tx b mark { background: rgba(var(--nv-accent-rgb), .22); color: var(--text); border-radius: 3px; padding: 0 1px; }
.nv62-r-tx small { display: block; font-size: 10.5px; color: var(--text3); font-weight: 600; }
.nv62-r-go { color: var(--text3); display: grid; opacity: 0; transform: translateX(-3px); transition: opacity .15s, transform .2s var(--nv62-spring); }
.nv62-r:hover .nv62-r-go, .nv62-r[aria-selected="true"] .nv62-r-go { opacity: 1; transform: none; }
.nv62-nada { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 22px 10px; color: var(--text3); }
.nv62-nada b { color: var(--text2); font-size: 13px; }
.nv62-nada small { font-size: 11.5px; line-height: 1.45; }
@keyframes nv62Entra { from { opacity: 0; transform: translateY(4px); } }
/* Ajuste encontrado: se resalta un momento */
.nv62-flash { animation: nv62Flash 1.6s var(--nv62-ease); border-radius: 12px; }
@keyframes nv62Flash { 0%, 35% { box-shadow: 0 0 0 2px rgba(var(--nv-accent-rgb), .75), 0 0 0 6px rgba(var(--nv-accent-rgb), .15); } 100% { box-shadow: 0 0 0 2px transparent, 0 0 0 6px transparent; } }

/* ═══ Indicador de guardado (pie) ════════════════════════════════════ */
.nv62-est { display: none; align-items: center; gap: 7px; flex: 1; min-width: 0; font-size: 11.5px; font-weight: 650; color: var(--text2); }
.nv62-est span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nvcf-foot.nv62-con-est .nv62-est { display: flex; }
.nvcf-foot.nv62-con-est .nvcf-note { display: none; }
.nv62-est.is-ok svg { color: var(--green, var(--accent2)); }
.nv62-est.is-error { color: var(--red); }
.nv62-est.nv62-pop { animation: nv62Pop .32s var(--nv62-spring); }
@keyframes nv62Pop { from { opacity: 0; transform: translateY(4px); } }
.nv62-spin { width: 12px; height: 12px; flex-shrink: 0; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--accent) 25%, transparent); border-top-color: var(--accent); animation: nv62Gira .7s linear infinite; }
@keyframes nv62Gira { to { transform: rotate(360deg); } }
html.nvcf62 .nvcf-note { font-size: 11px; }

/* ═══ Restablecer ════════════════════════════════════════════════════ */
.nv62-rst { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 99px; border: 1px solid var(--border); background: transparent; color: var(--text2); font: 650 12px var(--nv-font-ui, inherit); flex-shrink: 0; transition: color .15s, border-color .15s, background .15s; }
.nv62-rst:hover { color: var(--text); border-color: var(--border2); background: var(--bg3); }
.nv62-rst:hover svg { transform: rotate(-120deg); }
.nv62-rst svg { transition: transform .5s var(--nv62-spring); }
.nv62-rst[hidden] { display: none; }
.nv62-conf {
  position: absolute; z-index: 5; left: 16px; right: 16px; bottom: 60px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 14px;
  border-radius: 14px; background: var(--bg3); border: 1px solid var(--border2); box-shadow: 0 18px 44px -16px rgba(0,0,0,.8);
  animation: nv62Sube .28s var(--nv62-spring) both;
}
@keyframes nv62Sube { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.nv62-conf-ic { width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; color: var(--accent2); background: rgba(var(--nv-accent-rgb), .14); }
.nv62-conf-tx { flex: 1 1 220px; min-width: 0; }
.nv62-conf-tx b { display: block; font-size: 13px; color: var(--text); }
.nv62-conf-tx small { display: block; margin-top: 2px; font-size: 11.5px; line-height: 1.45; color: var(--text3); }
.nv62-conf-a { display: flex; gap: 8px; margin-left: auto; }

/* ═══ Tarjetas nuevas (Copia de ajustes y Moderadores) ═══════════════ */
.nv62-card { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 14px; background: var(--bg3); border: 1px solid var(--border); }
.nv62-card-h { display: flex; align-items: center; gap: 9px; }
.nv62-card-h b { font-size: 13px; color: var(--text); }
.nv62-card-h--2 { margin-top: 4px; }
.nv62-card-ic { width: 26px; height: 26px; flex-shrink: 0; border-radius: 8px; display: grid; place-items: center; color: var(--accent2); background: rgba(var(--nv-accent-rgb), .13); }
.nv62-card-ic.is-lock { color: var(--text2); background: var(--bg4); }
.nv62-card-a { display: flex; justify-content: flex-end; gap: 8px; }
.nv62-sub { background: var(--bg2); }
.nv62-sub .nvcf-row { min-height: 46px; }
.nv62-mut { margin: 0; font-size: 12px; line-height: 1.45; color: var(--text3); }
.nv62-msg { display: flex; align-items: center; gap: 8px; margin: 0; padding: 9px 11px; border-radius: 10px; font-size: 12px; font-weight: 600; animation: nv62Pop .3s var(--nv62-ease); }
.nv62-msg.is-ok { color: var(--text); background: color-mix(in srgb, var(--green, var(--accent)) 12%, transparent); }
.nv62-msg.is-ok svg { color: var(--green, var(--accent2)); }
.nv62-msg.is-err { color: var(--red); background: color-mix(in srgb, var(--red) 10%, transparent); }
.nv62-msg svg { flex-shrink: 0; }
.nv62-prev { padding: 11px 12px; border-radius: 11px; background: var(--bg2); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border)); animation: nv62Sube .28s var(--nv62-ease) both; }
.nv62-prev > b { font-size: 12.5px; color: var(--text); }
.nv62-prev ul { list-style: none; margin: 8px 0 10px; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.nv62-prev li { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text2); }
.nv62-prev li svg { color: var(--accent2); flex-shrink: 0; }
.nv62-prev-a { display: flex; justify-content: flex-end; gap: 8px; }

.nv62-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nv62-chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 99px; font-size: 11.5px; font-weight: 650; color: var(--text2); background: var(--bg2); border: 1px solid var(--border); }
.nv62-chip.is-si { color: var(--text); border-color: color-mix(in srgb, var(--green, var(--accent)) 30%, var(--border)); }
.nv62-chip.is-lock { color: var(--text3); }
.nv62-mods { display: flex; flex-direction: column; gap: 8px; }
.nv62-mod { padding: 11px 12px; border-radius: 14px; background: var(--bg3); border: 1px solid var(--border); animation: nv62Entra .3s var(--nv62-ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
.nv62-mod-h { display: flex; align-items: center; gap: 10px; }
.nv62-av { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font: 800 13px var(--nv-font-display, inherit); color: var(--nv54-on-accent, #fff); background: linear-gradient(145deg, var(--accent), var(--accent2)); }
.nv62-mod-tx { flex: 1; min-width: 0; }
.nv62-mod-tx b { display: block; font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nv62-mod-tx small { display: block; font-size: 11.5px; color: var(--text3); }
.nv62-mod-b { height: 30px; padding: 0 12px; }
.nv62-perms { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.nv62-card > .nv62-perms { margin-top: 0; }
.nv62-perm { display: flex; align-items: center; gap: 8px; min-height: 28px; padding: 3px 8px; border-radius: 8px; background: var(--bg2); }
.nv62-perm b { flex: 1; min-width: 0; font-size: 12px; font-weight: 600; color: var(--text2); }
.nv62-perm em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.nv62-perm-ic { width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; }
.nv62-perm.is-si .nv62-perm-ic { color: var(--green, var(--accent2)); background: color-mix(in srgb, var(--green, var(--accent)) 16%, transparent); }
.nv62-perm.is-si em { color: var(--green, var(--accent2)); }
.nv62-perm.is-no .nv62-perm-ic { color: var(--red); background: color-mix(in srgb, var(--red) 14%, transparent); }
.nv62-perm.is-no em { color: var(--red); }
.nv62-perm.is-no b { color: var(--text3); }
.nv62-vacio { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 22px 16px; border-radius: 14px; border: 1px dashed var(--border2); color: var(--accent2); }
.nv62-vacio b { font-size: 13px; color: var(--text); }
.nv62-vacio small { max-width: 320px; font-size: 12px; line-height: 1.45; color: var(--text3); margin-bottom: 4px; }

/* ═══ Teléfono y tablet vertical: hoja más baja ══════════════════════ */
@media (max-width: 768px) {
  html.nvcf62 .nvcf-cfg { height: min(88vh, 760px); height: min(88dvh, 760px); border-radius: 22px 22px 0 0; }
  html.nvcf62 .nvcf-rail { background: var(--bg2); }
  html.nvcf62 .nvcf-head { padding: 0 2px 12px; }
  html.nvcf62 .nvcf-gear { width: 34px; height: 34px; border-radius: 11px; }
  html.nvcf62 .nvcf-head h2 { font-size: 16px; }
  html.nvcf62 .nvcf-it { min-height: 56px; border-radius: 14px; }
  html.nvcf62 .nvcf-it .nvcf-ico { width: 32px; height: 32px; border-radius: 10px; }
  html.nvcf62 .nvcf-txt b { font-size: 14px; }
  html.nvcf62 .nvcf-top { grid-template-columns: 40px 1fr auto auto; column-gap: 6px; }
  html.nvcf62 .nvcf-top .nvcf-x { justify-self: end; }
  .nv62-bus { height: 42px; margin: 0 0 12px; border-radius: 12px; }
  .nvcf-ov .nv62-bus input[type="search"] { font-size: 16px; }
  .nv62-bus-x { width: 36px; height: 36px; }
  .nv62-r { min-height: 52px; padding: 8px 10px; border-radius: 12px; background: var(--bg3); border: 1px solid var(--border); }
  .nv62-res { gap: 6px; }
  .nv62-r-ic { width: 30px; height: 30px; }
  .nv62-r-tx b { font-size: 13.5px; }
  .nv62-r-tx small { font-size: 11.5px; }
  .nv62-r-go { opacity: 1; transform: none; }
  html.nvcf62 .nvcf-top > * { grid-row: 1; }
  html.nvcf62 .nvcf-top > .nvcf-back { grid-column: 1; }
  html.nvcf62 .nvcf-top > .nvcf-crumb { grid-column: 2; }
  html.nvcf62 .nvcf-top > .nv62-rst { grid-column: 3; }
  html.nvcf62 .nvcf-top > .nvcf-x { grid-column: 4; }
  .nv62-rst { height: 36px; padding: 0 10px; }
  .nv62-rst span { display: none; }
  .nv62-rst { width: 38px; justify-content: center; padding: 0; }
  .nv62-conf { left: 10px; right: 10px; bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  .nv62-conf-a { width: 100%; }
  .nv62-conf-a .nvcf-btn { flex: 1; height: 40px; }
  .nv62-card-a .nvcf-btn, .nv62-prev-a .nvcf-btn { flex: 1; height: 40px; }
  .nv62-mod-b { height: 36px; }
  .nv62-perm { min-height: 32px; }
}
/* Tablet vertical: la hoja no ocupa todo el ancho */
@media (min-width: 560px) and (max-width: 768px) {
  html.nvcf62 .nvcf-ov { place-items: end center; }
  html.nvcf62 .nvcf-cfg { width: min(600px, 100%); height: min(80vh, 720px); height: min(80dvh, 720px); border: 1px solid var(--border); border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .nv62-r, .nv62-mod, .nv62-conf, .nv62-prev, .nv62-msg, .nv62-est, .nv62-flash, .nv62-spin { animation: none !important; }
  .nv62-rst svg, .nv62-r-go { transition: none !important; }
  .nv62-flash { box-shadow: 0 0 0 2px rgba(var(--nv-accent-rgb), .75); }
}
