/* ============================================================
   TEMA v2 · 76 · CONFIGURACIÓN y PERFIL  ·  minimalismo
   Neutros cálidos, mucho aire, sin franjas de color ni sombras
   marcadas: secciones claras y controles grandes.
   ============================================================ */
#view[data-route="configuracion"] .page-title, #view[data-route="perfil"] .page-title { background: transparent; color: var(--text); box-shadow: none; padding: 4px 0 18px; margin-bottom: 14px; border-radius: 0; border-bottom: 1px solid var(--border); }
#view[data-route="configuracion"] .page-title::after, #view[data-route="perfil"] .page-title::after { display: none; }
#view[data-route="configuracion"] .page-title h2, #view[data-route="perfil"] .page-title h2 { font-family: var(--font); font-size: 34px; letter-spacing: -.02em; text-transform: none; font-weight: 800; }
#view[data-route="configuracion"] .page-title h2::after, #view[data-route="perfil"] .page-title h2::after { display: none; }
#view[data-route="configuracion"] .page-title p, #view[data-route="perfil"] .page-title p { color: var(--text-muted); }
#view[data-route="configuracion"] .card, #view[data-route="perfil"] .card { box-shadow: none; border: 1px solid var(--border); border-radius: 22px; }
#view[data-route="configuracion"] .btn, #view[data-route="perfil"] .btn { box-shadow: none; }
#view[data-route="configuracion"] .btn:active, #view[data-route="perfil"] .btn:active { transform: none; }

.config-v { max-width: 720px; gap: 28px; }
.cfg-sec { padding: 8px 0; }
.cfg-sec h3 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin: 6px 0 14px; padding: 0 22px; font-family: var(--font); font-weight: 750; }
.card.cfg-sec.card-pad { padding: 22px; }
.card.cfg-sec.card-pad h3 { padding: 0; }
.cfg-tema { gap: 14px; }
.cfg-op { min-height: 76px; border-radius: 18px; border: 1.5px solid var(--border); background: var(--surface-2); font-size: 16px; font-weight: 700; gap: 12px; flex-direction: column; box-shadow: none; }
.cfg-op .ico { width: 26px; height: 26px; }
.cfg-op.on { background: var(--surface); border-color: var(--accent-solid); color: var(--text); box-shadow: 0 0 0 4px var(--accent-soft); }
.cfg-op.on .ico { color: var(--accent); }
.cfg-ir { padding: 18px 22px; border-top: 1px solid var(--border); }
.cfg-ir:first-child { border-top: 0; }
.cfg-ir .ico-wrap { width: 46px; height: 46px; border-radius: 14px; background: var(--surface-2); color: var(--text-muted); }
.cfg-ir:hover .ico-wrap { background: var(--accent-solid); color: #fff; }
.cfg-ir-txt b { font-size: 16.5px; font-weight: 750; }
.cfg-ir > .ico { transition: transform .16s var(--ease); }
.cfg-ir:hover > .ico { transform: translateX(4px); color: var(--text); }

/* perfil */
#view[data-route="perfil"] .stack { max-width: 640px; }
#view[data-route="perfil"] .kv { gap: 12px 24px; font-size: 15.5px; }
#view[data-route="perfil"] .kv dt { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 700; align-self: center; }
#view[data-route="perfil"] .kv dd { font-size: 18px; font-weight: 750; }
#view[data-route="perfil"] .card.card-pad:first-of-type { background: linear-gradient(180deg, var(--accent-soft), var(--surface)); }
#view[data-route="perfil"] .btn-danger { background: transparent; color: var(--danger); border: 1.5px solid color-mix(in srgb, var(--danger) 45%, transparent); }
#view[data-route="perfil"] .btn-primary { min-height: 52px; }
.kv { margin: 0; }   /* <dl> traía margen propio: dejaba un hueco arriba en la tarjeta de Perfil */

/* Perfil · NOTIFICACIONES DE PEDIDOS LISTOS (Web Push) */
.pn-estado { margin: 0; padding: 10px 12px; border-radius: 12px; font-weight: 650; overflow-wrap: anywhere; }
.pn-ok { background: #e7f4ea; color: #1d5a2c; } .pn-aviso { background: #fff6df; color: #4a3410; } .pn-malo { background: #fbe9e7; color: #8a1f14; }
.pn-btn { width: 100%; min-height: 48px; margin-top: 8px; }
.pn-ayuda { border: 1px dashed var(--border-strong); border-radius: 12px; padding: 0 12px 8px; margin-top: 8px; }
.pn-ayuda summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; }
.pn-ayuda ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }
.pn-nota { margin: 8px 0 0; }

/* Perfil · el botón secundario de las notificaciones se ve como botón (borde) en todos los anchos */
.pn .btn-ghost { border: 1.5px solid var(--border-strong); background: transparent; }

/* Menú lateral: «Servicio / Administración» fijos arriba; solo el listado se desplaza. Pie compacto: ⚙️ + «ROL — nombre». */
.nav-fijo { flex: none; padding: 0 12px; }
.nav-fijo:empty { display: none; }
.nav-fijo .nav-admin-groups { margin: 10px 2px 6px; }
.sidebar .nav { min-height: 0; }
.sidebar-foot { flex-direction: row; align-items: center; gap: 10px; padding: 8px 12px; }
.sidebar-foot .cfg-sq { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); background: transparent; color: var(--text-muted); cursor: pointer; }
.sidebar-foot .cfg-sq:hover, .sidebar-foot .cfg-sq.active { color: var(--text); border-color: var(--border-strong); }
.sidebar-foot .cfg-sq .ico { width: 20px; height: 20px; }
.sidebar-foot .who { padding: 0; min-width: 0; }
.sidebar-foot .who b { font-size: 12.5px; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cfg-salir .ico-wrap { color: var(--danger, #b3402a); }
