/* Centro de Ayuda — Colectivos Soft (v2) */
body.help-center {
    --help-primary: #4f46e5;
    --help-primary-dark: #4338ca;
    --help-primary-soft: #eef2ff;
    --help-accent: #7c3aed;
    --help-text: #0f172a;
    --help-muted: #64748b;
    --help-border: #e2e8f0;
    --help-bg: #f1f5f9;
    --help-radius: 16px;
    --help-nav-h: 64px;
    --help-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background: var(--help-bg);
    color: var(--help-text);
    -webkit-font-smoothing: antialiased;
    margin: 0;
}
body.help-nav-open { overflow: hidden; }

/* Topbar */
.help-topbar {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--help-border);
}
.help-topbar-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    height: var(--help-nav-h);
    display: flex;
    align-items: center;
    gap: 16px;
}
.help-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--help-text);
    font-weight: 800;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.help-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--help-primary), var(--help-accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.help-topbar-search {
    flex: 1;
    max-width: 360px;
    position: relative;
}
.help-topbar-search input,
.help-topbar-search-mobile input,
.help-search input {
    width: 100%;
    border: 1px solid var(--help-border);
    border-radius: 10px;
    padding: 10px 16px 10px 40px;
    font-size: 0.9rem;
    background: var(--help-bg);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.help-topbar-search input:focus,
.help-search input:focus {
    outline: none;
    border-color: var(--help-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
    background: #fff;
}
.help-topbar-search i,
.help-topbar-search-mobile i,
.help-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--help-muted);
}
.help-topbar-search-mobile {
    position: relative;
    padding: 0 16px 12px;
    display: none;
}
.help-topbar-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}
.help-topbar-links a {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--help-muted);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
}
.help-topbar-links a:hover { color: var(--help-primary); background: var(--help-primary-soft); }
.help-topbar-cta {
    background: var(--help-primary) !important;
    color: #fff !important;
}
.help-topbar-cta:hover { background: var(--help-primary-dark) !important; }
.help-nav-toggle {
    display: none;
    border: 1px solid var(--help-border);
    background: #fff;
    border-radius: 10px;
    width: 42px;
    height: 42px;
    font-size: 1.25rem;
    color: var(--help-text);
}

/* Hero hub */
.help-hero {
    background: linear-gradient(145deg, #312e81 0%, #4f46e5 40%, #6366f1 100%);
    color: #fff;
    padding: 40px 20px 72px;
    position: relative;
    overflow: hidden;
}
.help-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.12) 0%, transparent 50%);
    pointer-events: none;
}
.help-hero-inner {
    max-width: 1240px;
    margin: 0 auto;
    position: relative;
}
.help-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 16px;
}
.help-hero h1 {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 12px;
    line-height: 1.15;
}
.help-hero > .help-hero-inner > p,
.help-hero p { margin: 0; opacity: 0.92; font-size: 1.0625rem; max-width: 520px; }
.help-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 24px;
    font-size: 0.875rem;
    opacity: 0.9;
}
.help-hero-stats strong { font-weight: 800; margin-right: 4px; }
.help-search--hero {
    margin-top: 28px;
    max-width: 560px;
    position: relative;
}
.help-search--hero input {
    border: none;
    padding: 16px 20px 16px 48px;
    font-size: 1rem;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    background: #fff;
}
.help-topic-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}
.help-chip {
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.12);
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
.help-chip:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-1px);
}

/* Quick start */
.help-quickstart {
    max-width: 1240px;
    margin: -36px auto 0;
    padding: 0 20px 32px;
    position: relative;
    z-index: 2;
}
.help-quickstart-inner {
    background: #fff;
    border: 1px solid var(--help-border);
    border-radius: var(--help-radius);
    padding: 24px 28px;
    box-shadow: var(--help-shadow);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.help-quick-item {
    text-align: center;
    padding: 8px;
}
.help-quick-num {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--help-primary-soft);
    color: var(--help-primary);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
}
.help-quick-item strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 4px;
}
.help-quick-item span {
    font-size: 0.8rem;
    color: var(--help-muted);
    line-height: 1.4;
}
.help-quick-item a {
    color: var(--help-primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.8rem;
}

/* Shell layout */
.help-shell {
    max-width: 1240px;
    margin: 24px auto 48px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
}
.help-shell--guide { margin-top: 28px; }

.help-sidebar {
    background: #fff;
    border: 1px solid var(--help-border);
    border-radius: var(--help-radius);
    padding: 20px 14px;
    position: sticky;
    top: calc(var(--help-nav-h) + 20px);
    box-shadow: var(--help-shadow);
}
.help-sidebar-head h6 {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--help-muted);
    font-weight: 800;
    margin: 0 0 8px 12px;
}
.help-sidebar-head > a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--help-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 12px;
}
.help-sidebar-head > a.is-active,
.help-sidebar-head > a:hover {
    background: var(--help-primary-soft);
    color: var(--help-primary);
}
.help-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    color: var(--help-text);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2px;
}
.help-nav a:hover { background: var(--help-bg); color: var(--help-primary); }
.help-nav a.is-active {
    background: var(--help-primary-soft);
    color: var(--help-primary);
    font-weight: 700;
}
.help-nav a i { font-size: 1.05rem; opacity: 0.9; }
.help-sidebar-cta {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--help-border);
}
.help-sidebar-cta p {
    font-size: 0.8rem;
    color: var(--help-muted);
    margin: 0 0 10px 4px;
}

.help-main { min-width: 0; }

/* Section headers */
.help-section-head {
    margin-bottom: 16px;
}
.help-section-head h2 {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.help-section-head p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--help-muted);
}

/* Cards */
.help-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
.help-card {
    background: #fff;
    border: 1px solid var(--help-border);
    border-radius: var(--help-radius);
    padding: 22px 24px;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.help-card:hover {
    border-color: rgba(79, 70, 229, 0.4);
    box-shadow: 0 16px 40px rgba(79, 70, 229, 0.12);
    transform: translateY(-3px);
}
.help-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}
.help-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--help-primary-soft);
    color: var(--help-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}
.help-card-time {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--help-muted);
    background: var(--help-bg);
    padding: 4px 10px;
    border-radius: 999px;
}
.help-card h3 {
    font-size: 1.02rem;
    font-weight: 800;
    margin: 0 0 8px;
}
.help-card p {
    font-size: 0.875rem;
    color: var(--help-muted);
    line-height: 1.55;
    margin: 0 0 16px;
    flex-grow: 1;
}
.btn-help, .help-card .btn-help {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    background: var(--help-primary);
    color: #fff !important;
    border-radius: 9px;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
}
.btn-help:hover { background: var(--help-primary-dark); }

/* Role boxes */
.help-role-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}
.help-role-box {
    background: #fff;
    border: 1px solid var(--help-border);
    border-radius: var(--help-radius);
    padding: 22px 24px;
}
.help-role-box.admin { border-left: 4px solid var(--help-primary); }
.help-role-box.vendor { border-left: 4px solid #10b981; }
.help-role-box h3 {
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.help-role-box ul {
    margin: 0;
    padding-left: 18px;
    font-size: 0.875rem;
    color: var(--help-muted);
    line-height: 1.6;
}
.help-role-box .btn { margin-top: 12px; font-size: 0.8125rem; font-weight: 600; }

/* FAQ */
.help-panel {
    background: #fff;
    border: 1px solid var(--help-border);
    border-radius: var(--help-radius);
    padding: 28px 32px;
    margin-bottom: 24px;
    box-shadow: var(--help-shadow);
}
.help-panel h2 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.help-faq .help-faq-item {
    border-bottom: 1px solid var(--help-border);
    padding: 0;
}
.help-faq .help-faq-item:last-child { border-bottom: none; }
.help-faq-q {
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    padding: 18px 0;
    user-select: none;
}
.help-faq-q:hover { color: var(--help-primary); }
.help-faq-q i {
    color: var(--help-primary);
    transition: transform 0.25s;
    flex-shrink: 0;
}
.help-faq-item.is-open .help-faq-q i { transform: rotate(180deg); }
.help-faq-a {
    display: none;
    padding: 0 0 18px;
    color: var(--help-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
}
.help-faq-item.is-open .help-faq-a { display: block; }
.help-faq-a a { color: var(--help-primary); font-weight: 600; }
.help-faq-a code {
    background: var(--help-bg);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.85em;
}

/* CTA */
.help-cta {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    border-radius: var(--help-radius);
    padding: 36px 32px;
    text-align: center;
    box-shadow: 0 16px 48px rgba(79, 70, 229, 0.25);
}
.help-cta h3 { font-weight: 800; margin-bottom: 8px; font-size: 1.25rem; }
.help-cta p { opacity: 0.92; margin-bottom: 20px; max-width: 420px; margin-left: auto; margin-right: auto; }
.help-cta .btn-cta-light {
    background: #fff;
    color: var(--help-primary);
    font-weight: 800;
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.help-cta .btn-cta-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Guide pages */
.help-guide-hero {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    color: #fff;
    padding: 28px 20px 32px;
}
.help-guide-hero-inner {
    max-width: 1240px;
    margin: 0 auto;
}
.help-breadcrumb {
    font-size: 0.8125rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    opacity: 0.9;
}
.help-breadcrumb a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}
.help-breadcrumb a:hover { color: #fff; text-decoration: underline; }
.help-breadcrumb i { font-size: 0.65rem; opacity: 0.6; }
.help-guide-hero-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.help-guide-hero-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.help-guide-hero h1 {
    font-size: 1.65rem;
    font-weight: 800;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}
.help-guide-hero p { margin: 0; opacity: 0.9; font-size: 0.975rem; }
.help-read-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 0.8125rem;
    opacity: 0.85;
    background: rgba(255,255,255,0.15);
    padding: 4px 12px;
    border-radius: 999px;
}

.help-article {
    background: #fff;
    border: 1px solid var(--help-border);
    border-radius: var(--help-radius);
    padding: 32px 36px;
    box-shadow: var(--help-shadow);
}
.help-article .lead {
    color: var(--help-muted);
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 28px;
}
.help-article h2 {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 28px 0 14px;
}
.help-article ul, .help-article ol {
    color: var(--help-muted);
    line-height: 1.7;
    padding-left: 1.25rem;
}
.help-article li { margin-bottom: 6px; }
.help-link-module {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: var(--help-primary);
    text-decoration: none;
    font-size: 0.9rem;
}
.help-link-module:hover { text-decoration: underline; }

.help-step {
    background: var(--help-bg);
    border-left: 4px solid var(--help-primary);
    border-radius: 0 12px 12px 0;
    padding: 20px 22px;
    margin-bottom: 14px;
}
.help-step h4 {
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.help-step-num {
    width: 32px;
    height: 32px;
    background: var(--help-primary);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}
.help-step-body {
    font-size: 0.9375rem;
    color: var(--help-muted);
    line-height: 1.65;
}
.help-step-body p:last-child { margin-bottom: 0; }
.help-step-body a { color: var(--help-primary); font-weight: 600; }

.help-callout {
    display: flex;
    gap: 14px;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 24px 0;
    font-size: 0.9rem;
    line-height: 1.6;
}
.help-callout > i { font-size: 1.25rem; flex-shrink: 0; margin-top: 2px; }
.help-callout--tip {
    background: var(--help-primary-soft);
    border: 1px solid rgba(79, 70, 229, 0.2);
    color: var(--help-text);
}
.help-callout--tip > i { color: var(--help-primary); }
.help-callout--warn {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}
.help-callout--warn > i { color: #d97706; }

.help-guide-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--help-border);
}
.help-guide-nav a {
    text-decoration: none;
    color: var(--help-text);
    max-width: 48%;
}
.help-guide-nav a small {
    display: block;
    color: var(--help-muted);
    font-size: 0.75rem;
    margin-bottom: 4px;
}
.help-guide-nav a span {
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.help-guide-nav a:hover span { color: var(--help-primary); }
.help-guide-nav-next { text-align: right; margin-left: auto; }
.help-guide-nav-next span { justify-content: flex-end; }

/* Video / tutorial cards */
.help-video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.help-video-card {
    background: #fff;
    border: 1px solid var(--help-border);
    border-radius: var(--help-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
    height: 100%;
}
.help-video-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--help-shadow);
    color: inherit;
}
.help-video-thumb {
    height: 120px;
    background: linear-gradient(135deg, var(--help-primary-soft), #e0e7ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--help-primary);
    position: relative;
}
.help-video-thumb .badge {
    position: absolute;
    top: 10px;
    right: 10px;
}
.help-video-body { padding: 16px 18px; }
.help-video-body h3 { font-size: 0.95rem; font-weight: 800; margin: 0 0 6px; }
.help-video-body p { font-size: 0.8125rem; color: var(--help-muted); margin: 0; line-height: 1.5; }

/* Contact */
.help-contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
}
.help-contact-aside {
    background: var(--help-bg);
    border-radius: var(--help-radius);
    padding: 24px;
    border: 1px solid var(--help-border);
}
.help-contact-aside h3 { font-size: 1rem; font-weight: 800; margin-bottom: 16px; }

/* Footer */
.help-footer-bar {
    max-width: 1240px;
    margin: 0 auto 40px;
    padding: 28px 20px;
    border-top: 1px solid var(--help-border);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 0.875rem;
    color: var(--help-muted);
}
.help-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}
.help-footer-brand .help-brand-mark { width: 32px; height: 32px; font-size: 0.9rem; }
.help-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.help-footer-links a {
    color: var(--help-primary);
    font-weight: 600;
    text-decoration: none;
}

.help-hidden { display: none !important; }
.help-no-results {
    text-align: center;
    padding: 48px 20px;
    color: var(--help-muted);
    display: none;
    background: #fff;
    border-radius: var(--help-radius);
    border: 1px dashed var(--help-border);
}
.help-no-results.is-visible { display: block; }

.help-content {
    background: #fff;
    border: 1px solid var(--help-border);
    border-radius: var(--help-radius);
    padding: 32px 36px;
}

@media (max-width: 991px) {
    .help-shell { grid-template-columns: 1fr; }
    .help-sidebar {
        position: fixed;
        top: var(--help-nav-h);
        left: 0;
        bottom: 0;
        width: min(300px, 88vw);
        z-index: 150;
        transform: translateX(-110%);
        transition: transform 0.25s ease;
        overflow-y: auto;
        border-radius: 0;
    }
    .help-sidebar.is-open { transform: translateX(0); }
    .help-nav-toggle { display: flex; align-items: center; justify-content: center; }
    .help-topbar-search { display: none !important; }
    .help-topbar-search-mobile { display: block; }
    .help-card-grid { grid-template-columns: 1fr; }
    .help-quickstart-inner { grid-template-columns: repeat(2, 1fr); }
    .help-role-grid { grid-template-columns: 1fr; }
    .help-video-grid { grid-template-columns: 1fr 1fr; }
    .help-contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 576px) {
    .help-article { padding: 24px 20px; }
    .help-quickstart-inner { grid-template-columns: 1fr; }
    .help-video-grid { grid-template-columns: 1fr; }
    .help-topbar-links .hide-sm { display: none; }
    .help-brand-text { display: none; }
    .help-guide-nav { flex-direction: column; }
    .help-guide-nav a { max-width: 100%; }
}
