/* ============================================================
   Ayuda - Activos Fijos
   AY-ACT (AF-001, AF-002, AF-003)
   ============================================================ */
*, *::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;
}

.ayuda-header {
    background: linear-gradient(135deg, #0047AB 0%, #003a8c 100%);
    padding: 1.5rem 1.25rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    color: #fff;
}
.ayuda-header-icon { font-size: 2.5rem; opacity: 0.95; color: #fff; }
.ayuda-header-text { flex: 1; }
.ayuda-header-text h1 { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.2rem; color: #fff; }
.ayuda-header-text p { font-size: 0.85rem; opacity: 0.85; color: #fff; margin: 0; }
.btn-volver {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.28);
    color: #fff;
    padding: 0.45rem 0.9rem;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
}
.btn-volver:hover { background: rgba(255,255,255,0.28); }
.btn-volver-menu { margin-right: 0.4rem; }

/* Layout con menú lateral */
.ayuda-layout-con-menu { display: flex; min-height: calc(100vh - 120px); }
.ayuda-body {
    flex: 1;
    padding: 1.5rem;
    max-width: 1100px;
    color: var(--fp-text-primary, #1e293b);
    background: var(--fp-bg-card, #fff);
}
body.dark-mode .ayuda-body { background: #1f2937; color: #e5e7eb; }

/* Secciones */
.ayuda-seccion {
    background: var(--fp-bg-card, #fff);
    border: 1px solid var(--fp-border, #e2e8f0);
    border-radius: 8px;
    padding: 1.25rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 2px rgba(15,23,42,0.05);
}
body.dark-mode .ayuda-seccion { background: #1f2937; border-color: #374151; }
.ayuda-seccion h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0047AB;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1.5px solid #dbeafe;
}
.ayuda-seccion h2 i { color: #0047AB; }
.ayuda-seccion h3 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--fp-text-primary, #1e293b);
    margin: 1rem 0 0.5rem;
}
body.dark-mode .ayuda-seccion h3 { color: #e5e7eb; }
.ayuda-seccion p { font-size: 0.85rem; line-height: 1.55; color: var(--fp-text-primary, #334155); margin-bottom: 0.5rem; }
body.dark-mode .ayuda-seccion p { color: #cbd5e1; }
.ayuda-seccion ul, .ayuda-seccion ol { font-size: 0.85rem; line-height: 1.6; padding-left: 1.4rem; color: var(--fp-text-primary, #334155); }
body.dark-mode .ayuda-seccion ul, body.dark-mode .ayuda-seccion ol { color: #cbd5e1; }
.ayuda-seccion code {
    background: #dbeafe;
    color: #0047AB;
    padding: 0.08rem 0.35rem;
    border-radius: 3px;
    font-family: 'Roboto Mono', ui-monospace, monospace;
    font-size: 0.82em;
    font-weight: 600;
}
body.dark-mode .ayuda-seccion code { background: rgba(0,71,171,0.25); color: #93c5fd; }
.ayuda-seccion kbd {
    background: #1e293b;
    color: #fff;
    padding: 1px 6px;
    border-radius: 3px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    border: 1px solid #475569;
}

/* Tabla */
.ayuda-tabla-wrap { overflow-x: auto; margin: 0.5rem 0; }
.ayuda-tabla {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}
.ayuda-tabla th {
    background: #0047AB;
    color: #fff;
    padding: 6px 10px;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-size: 0.72rem;
    border-bottom: 1.5px solid #003a8c;
}
.ayuda-tabla td {
    padding: 5px 10px;
    border-bottom: 1px solid #e2e8f0;
    color: var(--fp-text-primary, #1e293b);
    vertical-align: middle;
}
body.dark-mode .ayuda-tabla td { border-color: #374151; color: #e5e7eb; }
.ayuda-tabla tbody tr:nth-child(even) td { background: #f1f5f9; }
body.dark-mode .ayuda-tabla tbody tr:nth-child(even) td { background: #111827; }

/* Boxes */
.box {
    margin: 0.6rem 0;
    padding: 0.65rem 0.9rem;
    border-radius: 6px;
    border-left: 4px solid;
    font-size: 0.83rem;
    line-height: 1.45;
}
.box strong { font-weight: 700; }
.box-info { background: #dbeafe; border-color: #0047AB; color: #1e3a8a; }
.box-tip { background: #dcfce7; border-color: #15803d; color: #14532d; }
.box-warn { background: #fef3c7; border-color: #b45309; color: #78350f; }
.box-danger { background: #fee2e2; border-color: #b91c1c; color: #7f1d1d; }

/* Estado dot */
.estado-dot-inline {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 4px;
}

/* Flujo visual */
.flujo-visual {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    overflow-x: auto;
    padding: 0.5rem 0;
    margin: 0.5rem 0 1rem;
}
.flujo-paso {
    background: #dbeafe;
    border: 1.5px solid #0047AB;
    border-radius: 6px;
    padding: 0.55rem 0.85rem;
    min-width: 95px;
    text-align: center;
    color: #0047AB;
    flex-shrink: 0;
}
.flujo-paso i { font-size: 1.2rem; display: block; margin-bottom: 3px; }
.flujo-label { font-size: 0.78rem; font-weight: 700; display: block; }
.flujo-paso .flujo-estado { font-size: 0.65rem; display: block; margin-top: 1px; opacity: 0.7; }
.flujo-flecha { color: #0047AB; font-size: 1.1rem; flex-shrink: 0; }

/* Pasos numerados */
.ayuda-pasos { display: flex; flex-direction: column; gap: 0.5rem; margin: 0.75rem 0; }
.ayuda-paso { display: flex; gap: 0.65rem; align-items: flex-start; padding: 0.5rem; border: 1px solid #e2e8f0; border-radius: 6px; background: #f8fafc; }
body.dark-mode .ayuda-paso { background: #111827; border-color: #374151; }
.paso-num {
    background: #0047AB;
    color: #fff;
    width: 24px; height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}
.paso-contenido { flex: 1; }
.paso-contenido h3 { font-size: 0.9rem; margin: 0 0 0.2rem; color: #0047AB; }
.paso-contenido p { font-size: 0.82rem; margin: 0; color: var(--fp-text-primary, #475569); }
body.dark-mode .paso-contenido p { color: #94a3b8; }

/* Permisos tabla */
.tabla-comp {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}
.tabla-comp th {
    background: #0047AB;
    color: #fff;
    padding: 6px 10px;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.4px;
}
.tabla-comp td { padding: 6px 10px; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
.tabla-comp tbody tr:nth-child(even) td { background: #f1f5f9; }
