/* ASU Panel · administración.
   Estilo alineado con la landing pública de ASU Fieldwork (recuest.captacion.grupo-aei.com/api/landing):
   Schibsted Grotesk en titulares y cifras, Instrument Sans en el texto, verde oscuro + verde + lima, fondos crema,
   radios de 16px en tarjetas y 10px en controles, píldoras en navegación y chips.
   Bootstrap se mantiene para la rejilla, formularios y collapse; aquí se le aplican colores, tipos y radios. */

:root {
    /* Marca ASU Fieldwork */
    --verde-osc: #1b3012; --verde-osc-2: #22401a;
    --verde: #3e7322; --verde-hover: #335f1c;
    --lima: #a3c52e; --lima-hover: #93b324;
    --crema: #f1f4ec; --verde-claro: #eef3e6; --verde-100: #dcebc9;
    /* Alias usados por las vistas */
    --verde-aei: var(--verde); --verde-lima: var(--lima); --verde-50: var(--verde-claro);
    --verde-700: var(--verde); --verde-800: var(--verde-hover); --gris-plata: #b9b8c0;
    /* Superficies, bordes y texto */
    --surface-page: #f3f3f5; --surface: #ffffff; --surface-sunken: var(--crema); --surface-hover: #f7f9f4;
    --border: #e4e4e8; --border-strong: #8e8d96;
    --ink: #232227; --ink-2: #3d3c42; --ink-strong: #232227; --ink-muted: #6b6a72; --on-brand: #ffffff;
    /* Estados */
    --danger: #b3261e; --danger-bg: #fcebea; --warning: #9a5b06; --warning-bg: #fdf3e1;
    --focus-ring: var(--verde);
    /* Tipos */
    --font-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
    --font-sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
    /* Forma y profundidad */
    --radio: 16px; --radio-control: 10px;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, .05), 0 2px 8px rgba(0, 0, 0, .04);
    --shadow-raised: 0 6px 20px rgba(27, 48, 18, .12);

    /* Bootstrap */
    --bs-body-font-family: var(--font-sans);
    --bs-body-font-size: 14px;
    --bs-body-line-height: 1.45;
    --bs-body-color: var(--ink);
    /* Tarjetas, tablas, campos y menús de Bootstrap toman su fondo de --bs-body-bg: blanco.
       El gris es solo el fondo de la página (body, abajo). */
    --bs-body-bg: var(--surface);
    --bs-secondary-color: var(--ink-muted);
    --bs-border-color: var(--border);
    --bs-border-radius: 10px;
    --bs-border-radius-sm: 8px;
    --bs-border-radius-lg: 16px;
    --bs-primary: #3e7322;
    --bs-primary-rgb: 62, 115, 34;
    --bs-link-color: #3e7322;
    --bs-link-color-rgb: 62, 115, 34;
    --bs-link-hover-color: #335f1c;
    --bs-link-hover-color-rgb: 51, 95, 28;
    --bs-danger: #b3261e;
    --bs-danger-rgb: 179, 38, 30;
    --bs-code-color: var(--verde-hover);
}

html { font-size: 14px; }
body { background: var(--surface-page); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.text-muted { color: var(--ink-muted) !important; }
h1, .h1, h2, .h2, h3, .h3 { font-family: var(--font-display); font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
h1, .h3 { font-size: 30px; line-height: 36px; }
.h6, h6 { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
a { text-underline-offset: 2px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- Iconos (Heroicons v1 outline) ---------- */
.q-icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.q-icon--lg { width: 20px; height: 20px; }

/* ---------- Cabecera sin sesión (Entrar): blanca con el logo, como la de la landing ---------- */
.q-topbar { background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1020; }
.q-topbar-inner { max-width: 1440px; margin: 0 auto; min-height: 68px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 10px 24px; }
.q-topbar a { color: var(--ink); text-decoration: none; transition: color .15s, background-color .15s; }
.q-product { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; color: var(--verde-osc) !important; white-space: nowrap; }
.q-product img { height: 52px; width: auto; display: block; }
.q-product small { font-family: var(--font-sans); font-weight: 700; font-size: 11px; line-height: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--verde); padding-left: 12px; border-left: 2px solid var(--border); }
.q-avatar { width: 34px; height: 34px; border-radius: 999px; background: var(--verde-osc); color: var(--lima); font-family: var(--font-display); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }

/* ---------- Página ---------- */
.q-page { max-width: 1440px; margin: 0 auto; padding: 28px 24px; display: flex; flex-direction: column; gap: 24px; }
.q-page > .alert { margin: 0; }
.q-pagehead { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.q-pagehead h1 { margin: 0; }
.q-pagehead-text { display: flex; flex-direction: column; gap: 4px; flex: 1 1 320px; min-width: 0; }
.breadcrumb { font-size: 13px; margin: 0 0 8px; --bs-breadcrumb-divider-color: var(--ink-muted); }
.breadcrumb a { color: var(--ink-muted); }
.q-footer { max-width: 1440px; margin: 0 auto; padding: 0 24px 24px; font-size: 12px; color: var(--ink-muted); }

/* ---------- Texto ---------- */
.q-title-2 { font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 26px; letter-spacing: -.01em; margin: 0; }
.q-title-3 { font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 22px; margin: 0; }
.q-metric { font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 36px; letter-spacing: -.02em; color: var(--ink-strong); }
.q-metric-sm { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 26px; letter-spacing: -.01em; color: var(--ink-strong); }
.q-label, .kpi-label { font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
/* Antetítulo verde, como «PARA QUIÉN» en la landing */
.q-eyebrow { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--verde); margin: 0; }
/* Schibsted tiene cifras tabulares muy anchas: en cifras sueltas se usan las proporcionales. */
.q-metric, .q-metric-sm, .kpi, .q-step { font-variant-numeric: proportional-nums; }
.kpi { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 34px; letter-spacing: -.02em; color: var(--ink-strong); }
.q-small { font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.q-strong { font-weight: 600; color: var(--ink-strong); }
.cifra { text-align: right; white-space: nowrap; }

/* ---------- Tarjetas ---------- */
.card { --bs-card-border-color: var(--border); --bs-card-border-radius: 16px; --bs-card-inner-border-radius: 15px; --bs-card-cap-bg: var(--surface); box-shadow: var(--shadow-card); }
.card-header { font-family: var(--font-display); font-weight: 800; font-size: 17px; padding: 16px 20px; }
.card-body { padding: 20px; }
.q-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.q-card-head h2 { margin: 0; }
.q-step { width: 30px; height: 30px; border-radius: 999px; background: var(--verde-osc); color: var(--lima); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 14px; flex: none; }

/* Franja de cifras (KPIs en una tarjeta) */
.q-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); overflow: hidden; }
.q-stats > div { padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 0 -1px -1px 0; }

/* Tarjetas-enlace de «Requiere atención»: crema, como las tarjetas de pasos de la landing */
.q-attention { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.q-attention a { display: flex; gap: 14px; padding: 18px 20px; text-decoration: none; color: var(--ink); align-items: flex-start; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-card); border-radius: 16px; transition: box-shadow .15s, background-color .15s; }
.q-attention a:hover { box-shadow: var(--shadow-raised); color: var(--ink); }
.q-attention a.q-attention--dark { background: var(--verde-osc); color: var(--on-brand); }
.q-attention a.q-attention--dark .q-strong { color: var(--on-brand); }
.q-attention a.q-attention--dark .q-small, .q-attention a.q-attention--dark .q-chev { color: #cfd8c6; }
.q-attention .q-ico { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; }
.q-ico--danger { background: var(--danger); color: var(--on-brand); }
.q-ico--warn { background: var(--warning-bg); color: var(--warning); }
.q-ico--ok { background: var(--lima); color: var(--verde-osc); }
.q-attention .q-chev { margin-top: 11px; color: var(--ink-muted); }

/* ---------- Botones ---------- */
.btn { --bs-btn-font-family: var(--font-display); --bs-btn-font-weight: 700; --bs-btn-border-radius: 10px; --bs-btn-border-width: 2px; --bs-btn-padding-x: 16px; --bs-btn-padding-y: 6px; --bs-btn-font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-sm { --bs-btn-padding-x: 12px; --bs-btn-padding-y: 3px; --bs-btn-font-size: 13px; --bs-btn-border-radius: 8px; gap: 6px; }
.btn-primary { --bs-btn-bg: var(--verde); --bs-btn-border-color: var(--verde); --bs-btn-hover-bg: var(--verde-hover); --bs-btn-hover-border-color: var(--verde-hover); --bs-btn-active-bg: var(--verde-osc); --bs-btn-active-border-color: var(--verde-osc); --bs-btn-disabled-bg: var(--verde); --bs-btn-disabled-border-color: var(--verde); --bs-btn-focus-shadow-rgb: 62, 115, 34; }
.btn-outline-primary, .btn-outline-secondary { --bs-btn-color: var(--ink); --bs-btn-bg: var(--surface); --bs-btn-border-color: var(--border); --bs-btn-hover-color: var(--verde-osc); --bs-btn-hover-bg: var(--surface); --bs-btn-hover-border-color: var(--verde-osc); --bs-btn-active-color: var(--verde-osc); --bs-btn-active-bg: var(--crema); --bs-btn-active-border-color: var(--verde-osc); --bs-btn-disabled-color: var(--ink-muted); --bs-btn-disabled-border-color: var(--border); }
.btn-secondary { --bs-btn-bg: var(--verde-osc); --bs-btn-border-color: var(--verde-osc); --bs-btn-hover-bg: var(--verde-osc-2); --bs-btn-hover-border-color: var(--verde-osc-2); }
.btn-outline-danger { --bs-btn-color: var(--danger); --bs-btn-bg: var(--surface); --bs-btn-border-color: #e9b4b0; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--danger); --bs-btn-hover-border-color: var(--danger); --bs-btn-active-bg: #8f1c13; }
.btn-danger { --bs-btn-bg: var(--danger); --bs-btn-border-color: var(--danger); --bs-btn-hover-bg: #8f1c13; --bs-btn-hover-border-color: #8f1c13; }
.btn-link { --bs-btn-color: var(--verde); --bs-btn-hover-color: var(--verde-hover); --bs-btn-font-family: var(--font-sans); --bs-btn-font-weight: 600; text-decoration: none; }
.btn:focus-visible { box-shadow: none; outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* ---------- Insignias ---------- */
.badge { --bs-badge-color: var(--ink); border-radius: 999px; padding: 4px 9px; font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; }
.text-bg-success, .q-badge--ok { background: var(--verde-claro) !important; color: var(--verde) !important; }
.text-bg-warning, .q-badge--warn { background: var(--warning-bg) !important; color: var(--warning) !important; }
.text-bg-danger, .q-badge--danger { background: var(--danger) !important; color: var(--on-brand) !important; }
.q-badge--danger-soft { background: var(--danger-bg) !important; color: var(--danger) !important; }
.text-bg-info { background: #e4eef2 !important; color: #2b5a70 !important; }
.text-bg-secondary, .text-bg-light, .q-badge { background: #ececf0 !important; color: var(--ink) !important; }
.q-badge--outline { background: var(--surface) !important; color: var(--ink) !important; box-shadow: inset 0 0 0 2px var(--border); }
.q-badge--dark { background: var(--verde-osc) !important; color: var(--on-brand) !important; }
.q-dot { width: 8px; height: 8px; border-radius: 999px; background: currentColor; display: inline-block; }

/* ---------- Pestañas de filtro ---------- */
.q-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--border); margin: 0; padding: 0; }
.q-tabs a { display: flex; align-items: center; gap: 8px; padding: 12px 14px; color: var(--ink-muted); text-decoration: none; font-weight: 600; font-size: 15px; border-bottom: 3px solid transparent; margin-bottom: -1px; transition: color .15s; }
.q-tabs a:hover { color: var(--ink-strong); }
.q-tabs a[aria-current="page"] { color: var(--ink-strong); border-bottom-color: var(--lima); }
.q-tabs .q-n { background: #ececf0; color: var(--ink); border-radius: 999px; padding: 0 8px; font-size: 12px; font-weight: 700; line-height: 20px; }
.q-tabs a[aria-current="page"] .q-n { background: var(--verde-osc); color: var(--on-brand); }
.q-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; padding: 8px 20px 0; border-bottom: 1px solid var(--border); }
.q-toolbar .q-tabs { flex: 1 1 auto; border-bottom: 0; }
.q-toolbar-tools { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 10px; align-items: center; }

/* ---------- Formularios (borde de 2px, como los campos de la landing) ---------- */
.form-label { font-size: 13px; line-height: 16px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.form-control, .form-select { border: 2px solid var(--border-strong); border-radius: 10px; min-height: 40px; font-size: 14px; color: var(--ink); }
.form-control-sm, .form-select-sm { min-height: 34px; font-size: 13px; border-radius: 8px; }
.form-control:focus, .form-select:focus { border-color: var(--verde); box-shadow: 0 0 0 3px rgba(163, 197, 46, .45); }
.form-check-input { border: 2px solid var(--border-strong); }
.form-check-input:focus { border-color: var(--verde); box-shadow: 0 0 0 3px rgba(163, 197, 46, .45); }
.form-check-input:checked { background-color: var(--verde); border-color: var(--verde); }
.form-text { font-size: 12px; color: var(--ink-muted); }
.q-input-icon { display: flex; align-items: center; gap: 8px; height: 40px; border: 2px solid var(--border-strong); border-radius: 10px; background: var(--surface); padding: 0 12px; color: var(--ink-muted); margin: 0; }
.q-input-icon input { border: 0; outline: 0; width: 100%; background: transparent; color: var(--ink); }
.q-input-icon:focus-within { border-color: var(--verde); box-shadow: 0 0 0 3px rgba(163, 197, 46, .45); }

/* Chips de alternar (casilla real dentro de una etiqueta): seleccionados en verde oscuro, como en la landing */
.q-chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--border); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; user-select: none; margin: 0; transition: background-color .15s, color .15s, border-color .15s; }
.q-chip:hover { border-color: var(--verde-osc); }
.q-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.q-chip .q-icon { display: none; }
.q-chip:has(input:checked) { background: var(--verde-osc); border-color: var(--verde-osc); color: var(--on-brand); }
.q-chip:has(input:checked) .q-icon { display: inline-block; color: var(--lima); }
.q-chip:has(input:focus-visible) { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
/* Ficha seleccionada (provincias, valores de catálogo): lima, como los chips claros de la landing */
.q-token { display: inline-flex; align-items: center; gap: 2px; height: 28px; padding: 0 3px 0 12px; border-radius: 999px; background: var(--lima); color: var(--verde-osc); font-size: 13px; font-weight: 700; }
.q-token button { width: 22px; height: 22px; border-radius: 999px; border: 0; background: transparent; color: inherit; display: flex; align-items: center; justify-content: center; padding: 0; }
.q-token button:hover { background: rgba(27, 48, 18, .14); }
.q-tokens { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 44px; border: 2px solid var(--border-strong); border-radius: 10px; padding: 5px 8px; background: var(--surface); position: relative; }
.q-tokens:focus-within { border-color: var(--verde); box-shadow: 0 0 0 3px rgba(163, 197, 46, .45); }
.q-tokens > input { border: 0; outline: 0; flex: 1 1 200px; min-width: 140px; height: 28px; background: transparent; }
.q-sugerencias { position: absolute; left: -2px; right: -2px; top: 100%; margin-top: 6px; max-height: 260px; overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-raised); z-index: 10; padding: 4px; list-style: none; }
.q-sugerencias li { padding: 7px 10px; border-radius: 8px; cursor: pointer; }
.q-sugerencias li[aria-selected="true"], .q-sugerencias li:hover { background: var(--crema); color: var(--verde-osc); }

/* ---------- Tablas ---------- */
.table { --bs-table-hover-bg: var(--surface-hover); --bs-table-border-color: var(--border); margin-bottom: 0; }
.table > :not(caption) > * > * { vertical-align: middle; padding: 12px; }
.table-sm > :not(caption) > * > * { padding: 8px 12px; }
.table thead th { background: var(--crema); font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); white-space: nowrap; border-bottom: 0; }
.card > .table-responsive:last-child { border-radius: 0 0 15px 15px; }
.q-rowlink { color: var(--ink-strong); font-weight: 700; text-decoration: none; }
.q-rowlink:hover { color: var(--verde); text-decoration: underline; }
.q-meter { height: 8px; border-radius: 999px; background: #e7ece0; overflow: hidden; }
.q-meter > span { display: block; height: 100%; border-radius: 999px; background: var(--verde); }
.q-meter--off > span { background: var(--gris-plata); }
.q-progress-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.q-row-alert > td { background: var(--danger-bg) !important; }

/* ---------- Avisos ---------- */
.alert { border-radius: 16px; border: 0; }
.alert-danger { background: var(--danger-bg); color: var(--danger); }
.alert-success { background: var(--verde-claro); color: var(--verde); }
.alert-warning { background: var(--warning-bg); color: var(--warning); }
.q-band { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: 12px; }
.q-band--info { background: var(--crema); }
.q-band--warn { background: var(--warning-bg); color: var(--warning); }
.q-band--danger { background: var(--danger-bg); color: var(--danger); }
.q-band--ok { background: var(--verde-claro); color: var(--verde); }
.q-band .q-icon { margin-top: 2px; }

/* Lista de definición en dos columnas */
.q-kv { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px 12px; margin: 0; }
.q-kv dt { color: var(--ink-muted); font-weight: 400; }
.q-kv dd { margin: 0; font-weight: 600; color: var(--ink-strong); }
.q-list { list-style: none; margin: 0; padding: 0; }
.q-list > li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 20px; border-top: 1px solid var(--border); }
.q-list > li:first-child { border-top: 0; }
.q-list .q-grow { flex: 1; min-width: 0; }

/* Dos columnas que se apilan en pantallas estrechas */
.q-split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.q-split > .q-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.q-split > .q-side { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.sticky-panel { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 24px; }

/* ---------- Panelista y segmentos ---------- */
.segmento-especial { border-left: 4px solid var(--warning); }
.q-segmento-bloqueado { background: var(--warning-bg); border-color: #f3dcb4; box-shadow: none; }
.q-elemento { background: var(--crema); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; height: 100%; }
.pre-linea { white-space: pre-line; }
.elemento-historico { opacity: .75; background: var(--surface-page); }
.q-oculto { letter-spacing: .2em; color: var(--ink-muted) !important; font-weight: 400 !important; }
.q-grid-elementos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }

/* ---------- Editor de selección ---------- */
.bloque { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); position: relative; margin: 0 !important; }
.bloque-cabecera { background: var(--crema); border-radius: 15px 15px 0 0; }
.bloque.segmento-especial { border-left: 4px solid var(--warning); }
/* Separador «y además» entre bloques: los bloques se combinan con Y */
#bloques > .bloque + .bloque { margin-top: 48px !important; }
#bloques > .bloque + .bloque::before { content: "y además"; position: absolute; top: -35px; left: 50%; transform: translateX(-50%); background: var(--verde-osc); color: var(--lima); border-radius: 999px; padding: 4px 12px; font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
#bloques:empty { display: none; }
.q-split > .q-side:has(> .sticky-panel) { align-self: stretch; }
.q-nuevo-bloque { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border: 2px dashed var(--border); border-radius: 16px; padding: 12px 16px; }
.embudo td { border-color: var(--border); }
.embudo .barra { height: 6px; background: var(--verde); border-radius: 999px; margin-top: 4px; }
.embudo .table-success > td { background: var(--verde-claro) !important; color: var(--verde-osc); }

/* ---------- Lista lateral de navegación (Catálogos) ---------- */
.q-navlist { padding: 8px 0; overflow: hidden; }
.q-navlist-grupo { display: flex; align-items: center; gap: 8px; padding: 14px 20px 6px; }
.q-navlist-grupo:first-child { padding-top: 8px; }
.q-navlist a { display: block; padding: 8px 20px; color: var(--ink); text-decoration: none; font-weight: 600; }
.q-navlist a:hover { background: var(--surface-hover); color: var(--verde); }
.q-navlist a[aria-current="page"] { background: var(--crema); color: var(--verde-osc); box-shadow: inset 4px 0 0 var(--verde); }
.q-navlist-vacio { display: block; padding: 4px 20px 8px; font-size: 12px; color: var(--ink-muted); }

/* ---------- Enlaces de acción destructiva ---------- */
.btn-link.q-link-danger { --bs-btn-color: var(--danger); --bs-btn-hover-color: #8f1c13; }

/* ---------- Saltar al contenido (teclado) ---------- */
.q-saltar { position: absolute; left: 12px; top: -48px; z-index: 2000; background: var(--verde-osc); color: var(--on-brand); padding: 8px 14px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.q-saltar:focus { top: 12px; color: var(--on-brand); }

/* ---------- Panel lateral (estructura de la administración con sesión) ----------
   Panel verde oscuro fijo a la izquierda con el logo, el menú agrupado y el usuario abajo.
   Por debajo de 992px el panel pasa a ser un offcanvas de Bootstrap que se abre desde una barra superior mínima. */
.q-shell-lateral { --sidebar-ancho: 240px; --sidebar-bg: var(--verde-osc); --sidebar-texto: #dfe7d8; --sidebar-tenue: #9fb093; }
.q-app { display: flex; min-height: 100vh; }
.q-app-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.q-app-main > .q-page { width: 100%; padding: 28px 24px; }
.q-app-main > .q-footer { width: 100%; padding: 0 24px 24px; margin-top: auto; }

.q-sidebar { --bs-offcanvas-width: var(--sidebar-ancho); --bs-offcanvas-bg: var(--sidebar-bg); }
.q-sidebar-inner { width: var(--sidebar-ancho); height: 100vh; position: sticky; top: 0; display: flex; flex-direction: column; background: var(--sidebar-bg); color: var(--sidebar-texto); overflow-y: auto; }
@media (min-width: 992px) { .q-sidebar { flex: 0 0 var(--sidebar-ancho); } }
@media (max-width: 991.98px) { .q-sidebar-inner { height: 100%; position: static; } }

.q-sidebar-head { display: flex; align-items: center; gap: 8px; padding: 24px 24px 6px; }
.q-sidebar-logo { display: block; line-height: 0; }
.q-sidebar-logo img { height: 65px; width: auto; }
.q-sidebar-producto { margin: 6px 24px 10px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lima); }
.q-sidebar-cerrar { margin-left: auto; width: 36px; height: 36px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .08); color: var(--on-brand); display: flex; align-items: center; justify-content: center; }

.q-sidenav { flex: 1 1 auto; padding: 4px 12px 16px; }
.q-sidenav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.q-sidenav-grupo { padding: 18px 12px 6px; font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sidebar-tenue); }
.q-sidenav a { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: 10px; color: var(--sidebar-texto); text-decoration: none; font-weight: 600; font-size: 15px; transition: background-color .15s, color .15s; }
.q-sidenav a .q-icon { color: var(--sidebar-tenue); transition: color .15s; }
.q-sidenav a:hover { background: rgba(255, 255, 255, .08); color: var(--on-brand); }
.q-sidenav a:hover .q-icon { color: var(--lima); }
.q-sidenav a[aria-current="page"] { background: #FFFFFF; color: var(--verde-osc); }
.q-sidenav a[aria-current="page"] .q-icon { color: var(--verde-osc); }
.q-sidenav a:focus-visible { outline: 2px solid var(--lima); outline-offset: 2px; }
.q-sidenav .q-count { background: var(--lima); color: var(--verde-osc); border-radius: 999px; font-size: 11px; font-weight: 700; padding: 0 8px; line-height: 20px; }
.q-sidenav a[aria-current="page"] .q-count { background: var(--verde-osc); color: var(--lima); }

.q-sidebar-foot { padding: 12px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-direction: column; gap: 8px; }
.q-sidebar-user { display: flex; align-items: center; gap: 10px; padding: 6px 0 6px 12px; }
.q-sidebar-user .q-avatar { background: var(--lima); color: var(--verde-osc); flex: none; }
.q-sidebar-nombre { font-weight: 600; color: var(--on-brand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-sidebar-user .q-grow { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.q-sidebar-salir { width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--sidebar-tenue); display: flex; align-items: center; justify-content: center; }
.q-sidebar-salir:hover { background: rgba(255, 255, 255, .08); color: var(--on-brand); }
.q-sidebar :focus-visible { outline-color: var(--lima); }

.q-mobilebar { position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 16px; background: var(--surface); border-bottom: 1px solid var(--border); }
.q-mobilebar .q-sidebar-logo img { height: 38px; }
.q-mobilebar-menu { width: 40px; height: 40px; border: 2px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.q-mobilebar-menu:hover { border-color: var(--verde-osc); }
@media (max-width: 991.98px) { .q-app-main > .q-page { padding: 24px 16px; } .q-app-main > .q-footer { padding: 0 16px 20px; } }

/* Sin barra superior fija, los paneles pegajosos suben arriba del todo. */
.q-shell-lateral .sticky-panel { top: 24px; }
@media (max-width: 991.98px) { .q-shell-lateral .sticky-panel { top: 84px; } }
