/* ============================================================
   Ayuda - Ingreso y Edición de Compras
   ============================================================ */
*, *::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, #f2994a 0%, #c2640a 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; }

.ayuda-body { padding: 1.5rem; max-width: 960px; margin: 0 auto; }

/* Grid de recursos */
.recursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.recurso-card {
    background: var(--fp-bg-card, #2a2a2e);
    border: 1px solid var(--fp-border, rgba(255,255,255,0.08));
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: border-color 0.2s, transform 0.15s;
}
.recurso-card:hover { border-color: #f2994a; transform: translateY(-2px); }

.recurso-card-top {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.recurso-tipo-icon {
    width: 42px; height: 42px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.tipo-pdf  { background: rgba(239,68,68,0.15); color: #ef4444; }
.tipo-video { background: rgba(139,92,246,0.15); color: #a78bfa; }
.tipo-link  { background: rgba(14,165,233,0.15); color: #38bdf8; }

.recurso-info h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--fp-text-primary, #f1f5f9);
    line-height: 1.3;
}
.recurso-info p {
    font-size: 0.8rem;
    color: var(--fp-text-muted, #94a3b8);
    margin-top: 0.25rem;
    line-height: 1.4;
}
.btn-recurso {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
    background: #f2994a;
    color: #fff;
}
.btn-recurso:hover { opacity: 0.85; color: #fff; }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--fp-text-muted, #94a3b8);
}
.empty-state i { font-size: 3.5rem; opacity: 0.3; display: block; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--fp-text-secondary, #cbd5e1); }
.empty-state p { font-size: 0.85rem; }

/* Sección título */
.seccion-titulo {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #f2994a;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.seccion-titulo::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(242,153,74,0.25);
}

@media (max-width: 600px) {
    .ayuda-header { flex-wrap: wrap; }
    .btn-volver { order: -1; margin-left: 0; }
    .recursos-grid { grid-template-columns: 1fr; }
}
