/* ============================================================
   Ayuda - Crear y Editar Articulos (IN-002)
   AY-010
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--fp-bg-body, #1e1e23);
    color: var(--fp-text-primary, #f1f5f9);
    min-height: 100vh;
}

/* ---------- Header ---------- */
.ayuda-header {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    padding: 2rem 1.5rem 1.5rem;
    display: flex; align-items: center; gap: 1rem;
}
.ayuda-header-icon { font-size: 2.5rem; opacity: 0.95; }
.ayuda-header-text h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.25rem; }
.ayuda-header-text p  { font-size: 0.9rem; opacity: 0.85; }
.btn-volver {
    margin-left: auto;
    display: flex; align-items: center; gap: 0.4rem;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff; padding: 0.45rem 0.9rem;
    border-radius: 8px; font-size: 0.85rem; font-weight: 600;
    cursor: pointer; text-decoration: none;
    transition: background 0.2s; white-space: nowrap;
}
.btn-volver:hover { background: rgba(255,255,255,0.3); color: #fff; }

/* ---------- Layout 2 columnas ---------- */
.ayuda-layout {
    display: flex; max-width: 1100px; margin: 0 auto;
    padding: 1.5rem; gap: 1.5rem;
}

/* ---------- Sidebar TOC ---------- */
.ayuda-toc {
    width: 240px; flex-shrink: 0;
    position: sticky; top: 1rem; align-self: flex-start;
    background: var(--fp-bg-card, #2a2a2e);
    border: 1px solid var(--fp-border, rgba(255,255,255,0.08));
    border-radius: 12px; padding: 1rem;
    max-height: calc(100vh - 2rem); overflow-y: auto;
}
.toc-title {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: #22d3ee; margin-bottom: 0.75rem;
    display: flex; align-items: center; gap: 0.4rem;
}
.toc-group-label {
    font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; color: #0891b2; margin: 0.75rem 0 0.25rem 0.4rem;
    opacity: 0.7;
}
.toc-list { list-style: none; }
.toc-list li { margin-bottom: 2px; }
.toc-list a {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.4rem 0.6rem; border-radius: 6px;
    font-size: 0.78rem; color: var(--fp-text-muted, #94a3b8);
    text-decoration: none; transition: all 0.15s;
}
.toc-list a:hover { background: rgba(8,145,178,0.1); color: #67e8f9; }
.toc-list a.active { background: rgba(8,145,178,0.15); color: #22d3ee; font-weight: 600; }
.toc-list a i { font-size: 0.85rem; width: 18px; text-align: center; flex-shrink: 0; }
.toc-toggle { display: none; }

/* ---------- Contenido principal ---------- */
.ayuda-content { flex: 1; min-width: 0; }

.seccion { margin-bottom: 2.5rem; scroll-margin-top: 1rem; }
.seccion h2 {
    font-size: 1.15rem; font-weight: 700; margin-bottom: 1rem;
    padding-bottom: 0.5rem; border-bottom: 1px solid rgba(8,145,178,0.2);
    display: flex; align-items: center; gap: 0.5rem;
}
.seccion h2 i { color: #22d3ee; }
.seccion h3 { font-size: 0.95rem; font-weight: 700; margin: 1.25rem 0 0.5rem; color: #67e8f9; }
.seccion h4 { font-size: 0.87rem; font-weight: 600; margin: 1rem 0 0.4rem; color: #a5f3fc; }
.seccion p  { font-size: 0.85rem; line-height: 1.6; margin-bottom: 0.75rem; color: var(--fp-text-secondary, #cbd5e1); }
.seccion ul, .seccion ol { padding-left: 1.25rem; margin-bottom: 0.75rem; }
.seccion li { font-size: 0.85rem; line-height: 1.6; margin-bottom: 0.3rem; color: var(--fp-text-secondary, #cbd5e1); }
.seccion code {
    background: rgba(8,145,178,0.15); color: #67e8f9;
    padding: 1px 5px; border-radius: 4px; font-size: 0.8rem;
}

/* ---------- Callout boxes ---------- */
.box { padding: 0.85rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: 0.82rem; line-height: 1.5; border-left: 3px solid; }
.box-info   { background: rgba(59,130,246,0.1);  border-color: #3b82f6; color: #93c5fd; }
.box-tip    { background: rgba(16,185,129,0.1);  border-color: #10b981; color: #6ee7b7; }
.box-warn   { background: rgba(245,158,11,0.1);  border-color: #f59e0b; color: #fcd34d; }
.box-danger { background: rgba(239,68,68,0.1);   border-color: #ef4444; color: #fca5a5; }
.box strong { display: block; margin-bottom: 0.25rem; }

/* ---------- Tabla comparativa ---------- */
.tabla-comp {
    width: 100%; border-collapse: collapse; margin: 0.75rem 0 1rem;
    font-size: 0.8rem;
}
.tabla-comp th {
    background: rgba(8,145,178,0.15); color: #67e8f9;
    padding: 0.5rem 0.75rem; text-align: left; font-weight: 600;
    border-bottom: 1px solid rgba(8,145,178,0.2);
}
.tabla-comp td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--fp-border, rgba(255,255,255,0.06));
    color: var(--fp-text-secondary, #cbd5e1);
}
.tabla-comp tr:hover td { background: rgba(255,255,255,0.02); }

/* ---------- Steps ---------- */
.pasos { counter-reset: paso; list-style: none; padding-left: 0; }
.pasos li {
    counter-increment: paso;
    position: relative; padding-left: 2.5rem;
    margin-bottom: 1rem; font-size: 0.85rem; line-height: 1.6;
    color: var(--fp-text-secondary, #cbd5e1);
}
.pasos li::before {
    content: counter(paso);
    position: absolute; left: 0; top: 0;
    width: 1.8rem; height: 1.8rem; border-radius: 50%;
    background: rgba(8,145,178,0.2); color: #22d3ee;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700;
}

/* ---------- Badges ---------- */
.badge-campo { display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: 0.72rem; font-weight: 700; background: rgba(8,145,178,0.2); color: #22d3ee; }
.badge-oblig { display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: 0.72rem; font-weight: 700; background: rgba(239,68,68,0.2); color: #fca5a5; }
.badge-permiso { display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: 0.72rem; font-weight: 700; background: rgba(168,85,247,0.2); color: #c4b5fd; }

/* ---------- Flujo visual ---------- */
.flujo { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0 1rem; }
.flujo-paso {
    display: flex; align-items: center; gap: 0.4rem;
    background: var(--fp-bg-card, #2a2a2e);
    border: 1px solid var(--fp-border, rgba(255,255,255,0.08));
    border-radius: 8px; padding: 0.5rem 0.75rem;
    font-size: 0.78rem; color: var(--fp-text-secondary, #cbd5e1);
}
.flujo-paso i { color: #22d3ee; }
.flujo-flecha { display: flex; align-items: center; color: #4b5563; font-size: 0.9rem; }

/* ---------- Keyboard shortcut ---------- */
kbd {
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px; padding: 1px 6px; font-size: 0.75rem;
    font-family: inherit; color: #e2e8f0;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
    .ayuda-layout { flex-direction: column; }
    .ayuda-toc {
        position: relative; top: 0; width: 100%;
        max-height: none;
    }
    .toc-toggle {
        display: flex; align-items: center; gap: 0.4rem;
        background: none; border: none; color: #22d3ee;
        font-size: 0.8rem; font-weight: 600; cursor: pointer;
        padding: 0.3rem 0; width: 100%;
    }
    .toc-list.collapsed { display: none; }
}
@media (max-width: 600px) {
    .ayuda-header { flex-wrap: wrap; }
    .btn-volver { order: -1; margin-left: 0; }
    .flujo { flex-direction: column; }
    .flujo-flecha { transform: rotate(90deg); justify-content: center; }
}

/* ═══════════════════════════════════════════════
   Tanda A — Presentación empresarial (2026-04-18)
   ═══════════════════════════════════════════════ */

/* ── Breadcrumb ─────────────────────────────── */
.ayuda-breadcrumb {
    background: var(--fp-flat-footer-bg);
    border-bottom: 1px solid var(--fp-flat-border);
    padding: 8px 24px;
    font-size: 13px;
    color: var(--fp-flat-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.ayuda-breadcrumb a {
    color: var(--fp-flat-accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s;
}
.ayuda-breadcrumb a:hover { color: var(--fp-flat-accent-hover, #003d91); text-decoration: underline; }
.ayuda-breadcrumb .bc-sep { color: var(--fp-flat-text-muted); opacity: 0.5; }
.ayuda-breadcrumb .bc-current { color: var(--fp-flat-text); font-weight: 600; }

/* ── Header empresarial ────────────────────── */
.ayuda-header-pro {
    background: linear-gradient(135deg, var(--fp-flat-titulo-bg) 0%, #003380 100%);
    padding: 20px 24px !important;
    gap: 18px;
    position: relative;
    overflow: hidden;
}
.ayuda-header-pro::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 60%);
    pointer-events: none;
}
.ayuda-header-pro .ayuda-header-icon {
    font-size: 44px;
    flex-shrink: 0;
    opacity: 0.9;
}
.ayuda-header-pro .ayuda-header-text { flex: 1; z-index: 1; }
.ayuda-header-pro h1 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #fff;
    letter-spacing: -0.3px;
}
.ayuda-header-pro .ayuda-header-text > p {
    margin: 0 0 12px 0;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
}
.header-actions {
    display: flex; gap: 8px; flex-wrap: wrap;
    align-items: flex-start;
    z-index: 1;
}

/* ── Metadata strip (pills) ─────────────────── */
.header-meta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}
.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2px;
    white-space: nowrap;
}
.meta-pill i { font-size: 11px; opacity: 0.85; }
.meta-pill.meta-code {
    background: #fbbf24;
    color: #1f2937;
    border-color: #fbbf24;
    font-weight: 700;
    font-size: 12px;
}
.meta-pill.meta-permiso { background: rgba(220,38,38,0.25); border-color: rgba(220,38,38,0.5); }
.meta-pill.meta-version { background: rgba(16,185,129,0.25); border-color: rgba(16,185,129,0.5); }
.meta-pill.meta-nivel { background: rgba(139,92,246,0.25); border-color: rgba(139,92,246,0.5); }
.meta-pill.meta-tiempo { background: rgba(59,130,246,0.25); border-color: rgba(59,130,246,0.5); }

/* ── Badges consistentes por familia de sección ── */
.seccion h2 {
    display: flex;
    align-items: center;
    gap: 10px;
}
.seccion h2 i {
    width: 36px; height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 18px;
    flex-shrink: 0;
}
/* Familia: General / Referencia → azul */
.seccion[id="vision-general"] h2 i,
.seccion[id="acceso"] h2 i,
.seccion[id="atajos"] h2 i,
.seccion[id="faq"] h2 i,
.seccion[id="permisos"] h2 i,
.seccion[id="parametros"] h2 i {
    background: rgba(0,71,171,0.12); color: var(--fp-flat-accent);
}
/* Familia: Formulario → violeta */
.seccion[id="datos"] h2 i,
.seccion[id="otros-datos"] h2 i,
.seccion[id="imagenes"] h2 i {
    background: rgba(139,92,246,0.12); color: #7c3aed;
}
/* Familia: Precios → verde */
.seccion[id="costos-precios"] h2 i { background: rgba(16,185,129,0.12); color: #059669; }
/* Familia: Stock / Inventario → ámbar */
.seccion[id="inventario"] h2 i { background: rgba(245,158,11,0.15); color: #d97706; }
/* Familia: Operaciones CRUD → teal */
.seccion[id="crear"] h2 i,
.seccion[id="editar"] h2 i,
.seccion[id="clonar"] h2 i { background: rgba(20,184,166,0.15); color: #0d9488; }
/* Familia: Eliminar / Errores → rojo */
.seccion[id="eliminar"] h2 i,
.seccion[id="errores"] h2 i { background: rgba(239,68,68,0.12); color: var(--fp-danger); }
/* Familia: Búsqueda / Export → cian */
.seccion[id="busqueda"] h2 i,
.seccion[id="filtros"] h2 i,
.seccion[id="exportar"] h2 i { background: rgba(14,165,233,0.12); color: #0891b2; }

/* Número de sección a la izquierda (9.2.X) */
.seccion { position: relative; padding-top: 4px; }
.seccion h2::before {
    content: attr(data-num);
    position: absolute;
    left: -52px; top: 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--fp-flat-text-muted);
    letter-spacing: 0.3px;
    background: var(--fp-flat-footer-bg);
    border: 1px solid var(--fp-flat-border);
    border-radius: 4px;
    padding: 2px 6px;
    min-width: 34px;
    text-align: center;
}
@media (max-width: 1100px) {
    .seccion h2::before { display: none; }
}

/* Responsive */
@media (max-width: 768px) {
    .ayuda-header-pro { padding: 14px 16px !important; }
    .ayuda-header-pro h1 { font-size: 18px; }
    .meta-pill { font-size: 10px; padding: 2px 8px; }
    .ayuda-breadcrumb { padding: 6px 12px; font-size: 12px; }
}

/* ═══════════════════════════════════════════════
   Tanda B — Contenido empresarial (2026-04-18)
   ═══════════════════════════════════════════════ */

/* ── Resumen ejecutivo (KPI grid) ───────────── */
.resumen-ejecutivo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 16px 0 20px;
}
.kpi-card {
    background: var(--fp-flat-surface);
    border: 1px solid var(--fp-flat-border);
    border-left: 3px solid var(--fp-flat-accent);
    border-radius: 6px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.kpi-card.kpi-success { border-left-color: #10b981; }
.kpi-card.kpi-warn    { border-left-color: #f59e0b; }
.kpi-card.kpi-danger  { border-left-color: var(--fp-danger); }
.kpi-card.kpi-info    { border-left-color: #0891b2; }
.kpi-card i {
    font-size: 24px;
    color: var(--fp-flat-accent);
    opacity: 0.85;
}
.kpi-card.kpi-success i { color: #10b981; }
.kpi-card.kpi-warn i    { color: #f59e0b; }
.kpi-card.kpi-danger i  { color: var(--fp-danger); }
.kpi-card.kpi-info i    { color: #0891b2; }
.kpi-card .kpi-label {
    font-size: 10px;
    color: var(--fp-flat-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.kpi-card .kpi-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--fp-flat-text);
    line-height: 1.2;
}
.kpi-card .kpi-sub {
    font-size: 11px;
    color: var(--fp-flat-text-muted);
}

/* ── Diagrama de flujo horizontal ───────────── */
.flujo-pro {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 16px 0;
    padding: 14px;
    background: var(--fp-flat-footer-bg);
    border: 1px solid var(--fp-flat-border);
    border-radius: 8px;
}
.flujo-pro .paso-pro {
    flex: 1;
    min-width: 130px;
    background: var(--fp-flat-surface);
    border: 1px solid var(--fp-flat-border);
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    position: relative;
}
.flujo-pro .paso-pro-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px; height: 22px;
    background: var(--fp-flat-accent);
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 6px;
}
.flujo-pro .paso-pro-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--fp-flat-text);
    margin-bottom: 2px;
}
.flujo-pro .paso-pro-desc {
    font-size: 10px;
    color: var(--fp-flat-text-muted);
}
.flujo-pro .flujo-sep {
    color: var(--fp-flat-accent);
    font-size: 18px;
    font-weight: 700;
}

/* ── Cards por rol ──────────────────────────── */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin: 16px 0;
}
.rol-card {
    background: var(--fp-flat-surface);
    border: 1px solid var(--fp-flat-border);
    border-radius: 8px;
    padding: 14px;
    position: relative;
    overflow: hidden;
}
.rol-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--rol-color, var(--fp-flat-accent));
}
.rol-card.rol-cajero   { --rol-color: #0891b2; }
.rol-card.rol-encargado { --rol-color: #7c3aed; }
.rol-card.rol-contador { --rol-color: #059669; }
.rol-card .rol-header {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 8px;
}
.rol-card .rol-icono {
    width: 30px; height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--rol-color) 14%, transparent);
    color: var(--rol-color);
    border-radius: 6px;
    font-size: 14px;
}
.rol-card .rol-titulo {
    font-size: 14px;
    font-weight: 600;
    color: var(--fp-flat-text);
}
.rol-card .rol-sub {
    font-size: 11px;
    color: var(--fp-flat-text-muted);
}
.rol-card ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; }
.rol-card ul li { margin-bottom: 3px; color: var(--fp-flat-text); }

/* ── Bloques de código (pre) ────────────────── */
pre.code-block {
    background: #0f172a;
    color: #e2e8f0;
    border: 1px solid #1e293b;
    border-radius: 6px;
    padding: 10px 14px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
    overflow-x: auto;
    margin: 8px 0;
    line-height: 1.5;
}
pre.code-block .kw { color: #60a5fa; }
pre.code-block .str { color: #34d399; }
pre.code-block .cm { color: #64748b; font-style: italic; }
pre.code-block .num { color: #fbbf24; }

/* ── Changelog ──────────────────────────────── */
.changelog {
    border-left: 2px solid var(--fp-flat-border);
    padding-left: 16px;
    margin: 16px 0;
}
.changelog-entry { margin-bottom: 14px; position: relative; }
.changelog-entry::before {
    content: '';
    position: absolute;
    left: -22px; top: 4px;
    width: 10px; height: 10px;
    background: var(--fp-flat-accent);
    border: 2px solid var(--fp-flat-surface);
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--fp-flat-border);
}
.changelog-fecha {
    font-size: 11px;
    color: var(--fp-flat-text-muted);
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.changelog-titulo {
    font-size: 14px;
    font-weight: 600;
    color: var(--fp-flat-text);
    margin: 2px 0 4px;
}
.changelog-desc { font-size: 13px; color: var(--fp-flat-text-muted); }

/* ── Callout Hacienda (compliance) ──────────── */
.box.box-hacienda {
    background: linear-gradient(90deg, rgba(245,158,11,0.08), rgba(245,158,11,0.02));
    border: 1px solid rgba(245,158,11,0.35);
    border-left: 3px solid #f59e0b;
}
.box.box-hacienda strong { color: #b45309; }

/* ── Tabla técnica reforzada ────────────────── */
.tabla-tecnica {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin: 8px 0;
}
.tabla-tecnica thead th {
    background: var(--fp-flat-th-bg);
    color: var(--fp-flat-th-text);
    padding: 8px 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-align: left;
    border-bottom: 1px solid var(--fp-flat-border);
}
.tabla-tecnica tbody td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--fp-flat-border);
    vertical-align: top;
    color: var(--fp-flat-text);
}
.tabla-tecnica tbody tr:nth-child(even) td { background: var(--fp-flat-row-alt); }
.tabla-tecnica tbody tr:hover td { background: var(--fp-flat-row-hover); }
.tabla-tecnica .tipo-dato {
    font-family: 'Consolas', monospace;
    font-size: 11px;
    color: var(--fp-flat-accent);
    background: rgba(0,71,171,0.08);
    padding: 1px 6px;
    border-radius: 3px;
}
.tabla-tecnica .oblig-si { background: rgba(220,38,38,0.12); color: var(--fp-danger); padding: 1px 6px; border-radius: 3px; font-size: 11px; font-weight: 600; }
.tabla-tecnica .oblig-cond { background: rgba(245,158,11,0.15); color: #b45309; padding: 1px 6px; border-radius: 3px; font-size: 11px; font-weight: 600; }
.tabla-tecnica .oblig-no { color: var(--fp-flat-text-muted); font-size: 11px; }
.tabla-tecnica .ejemplo {
    font-family: 'Consolas', monospace;
    font-size: 11px;
    color: var(--fp-flat-text-muted);
    background: var(--fp-flat-footer-bg);
    padding: 1px 6px;
    border-radius: 3px;
}

/* ═══════════════════════════════════════════════
   Tanda C — Profesionalización visual (2026-04-18)
   ═══════════════════════════════════════════════ */

/* ── Wireframe / Screenshot placeholder ─────── */
.wireframe {
    background: repeating-linear-gradient(
        45deg,
        var(--fp-flat-footer-bg),
        var(--fp-flat-footer-bg) 8px,
        var(--fp-flat-surface) 8px,
        var(--fp-flat-surface) 16px
    );
    border: 2px dashed var(--fp-flat-border-strong);
    border-radius: 6px;
    padding: 16px;
    margin: 12px 0;
    position: relative;
    min-height: 120px;
}
.wireframe-label {
    position: absolute;
    top: 8px; left: 8px;
    background: var(--fp-flat-accent);
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 3px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-weight: 600;
}
.wireframe-grid {
    display: grid;
    gap: 8px;
    margin-top: 20px;
}
.wf-box {
    background: var(--fp-flat-surface);
    border: 1px solid var(--fp-flat-border);
    border-radius: 4px;
    padding: 10px;
    font-size: 11px;
    color: var(--fp-flat-text-muted);
    text-align: center;
    font-weight: 500;
}
.wf-box.wf-accent { background: var(--fp-flat-accent); color: #fff; border-color: var(--fp-flat-accent); }
.wf-box.wf-muted  { background: var(--fp-flat-footer-bg); }

/* ── Quick reference card (top) ─────────────── */
.quick-ref {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    margin: 16px 0;
    padding: 12px;
    background: linear-gradient(90deg, rgba(0,71,171,0.04), rgba(0,71,171,0.01));
    border: 1px solid var(--fp-flat-border);
    border-radius: 8px;
}
.quick-ref-item {
    background: var(--fp-flat-surface);
    border: 1px solid var(--fp-flat-border);
    border-radius: 6px;
    padding: 10px;
    text-decoration: none;
    color: var(--fp-flat-text);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    transition: border-color 0.15s, transform 0.15s;
}
.quick-ref-item:hover {
    border-color: var(--fp-flat-accent);
    transform: translateY(-1px);
    text-decoration: none;
}
.quick-ref-item i {
    font-size: 18px;
    color: var(--fp-flat-accent);
    flex-shrink: 0;
}
.quick-ref-item .qr-kbd {
    font-family: 'Consolas', monospace;
    background: var(--fp-flat-footer-bg);
    border: 1px solid var(--fp-flat-border);
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 10px;
    color: var(--fp-flat-text-muted);
    margin-left: auto;
}

/* ── Zebra + tabular nums para todas las tablas ── */
.tabla-comp, .tabla-tecnica {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}
.tabla-comp tbody tr:nth-child(even) td {
    background: var(--fp-flat-row-alt);
}
.tabla-comp tbody tr:hover td {
    background: var(--fp-flat-row-hover);
}

/* ── Callouts extendidos ────────────────────── */
.box.box-success {
    background: linear-gradient(90deg, rgba(16,185,129,0.08), rgba(16,185,129,0.02));
    border: 1px solid rgba(16,185,129,0.35);
    border-left: 3px solid #10b981;
}
.box.box-success strong { color: #047857; }
.box.box-danger-strong {
    background: linear-gradient(90deg, rgba(220,38,38,0.08), rgba(220,38,38,0.02));
    border: 1px solid rgba(220,38,38,0.35);
    border-left: 3px solid var(--fp-danger);
}
.box.box-danger-strong strong { color: #991b1b; }
.box.box-deprecated {
    background: linear-gradient(90deg, rgba(100,116,139,0.08), rgba(100,116,139,0.02));
    border: 1px solid rgba(100,116,139,0.3);
    border-left: 3px solid #64748b;
    position: relative;
}
.box.box-deprecated::after {
    content: 'DEPRECATED';
    position: absolute;
    top: 8px; right: 10px;
    background: #64748b;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}
.box.box-deprecated strong { color: #475569; }

/* ── Pasos con chips numerados (estilo profesional) ── */
.pasos {
    list-style: none;
    counter-reset: paso;
    padding-left: 0;
    margin: 12px 0;
}
.pasos li {
    counter-increment: paso;
    position: relative;
    padding: 8px 10px 8px 42px;
    margin-bottom: 6px;
    background: var(--fp-flat-surface);
    border: 1px solid var(--fp-flat-border);
    border-radius: 6px;
    font-size: 13px;
    color: var(--fp-flat-text);
    line-height: 1.5;
}
.pasos li::before {
    content: counter(paso);
    position: absolute;
    left: 8px; top: 50%;
    transform: translateY(-50%);
    width: 24px; height: 24px;
    background: var(--fp-flat-accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

/* ── Keyboard shortcut badge estilo profesional ── */
kbd {
    font-family: 'Consolas', 'Monaco', monospace;
    background: linear-gradient(180deg, var(--fp-flat-surface), var(--fp-flat-footer-bg));
    border: 1px solid var(--fp-flat-border-strong);
    border-bottom-width: 2px;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 11px;
    color: var(--fp-flat-text);
    font-weight: 600;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}
