:root {
    --demo-primary: #0d6efd;
    --demo-primary-dark: #0a58ca;
    --demo-accent: #20c997;
    --demo-ink: #1a1d21;
    --demo-muted: #5c6570;
    --demo-bg: #f4f7fb;
    --demo-card: #ffffff;
    --demo-border: #e2e8f0;
    --demo-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    --demo-radius: 14px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--demo-ink);
    background: var(--demo-bg);
    line-height: 1.6;
}

.demo-contact-bar {
    background: linear-gradient(90deg, #0f172a 0%, #1e3a5f 100%);
    color: #e2e8f0;
    font-size: 0.9rem;
}

.demo-contact-bar-label {
    opacity: 0.85;
}

.demo-contact-link {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 500;
}

.demo-contact-link:hover {
    color: #93c5fd;
}

.demo-contact-whatsapp:hover {
    color: #86efac;
}

.demo-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--demo-border);
}

.demo-hero {
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 55%, #20c997 100%);
    color: #fff;
    padding: 4rem 0 5rem;
}

.demo-hero h1 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.demo-hero .lead { opacity: 0.92; max-width: 42rem; }

.demo-badge-live {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 0.8rem;
}

.demo-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    align-items: start;
    padding: 2rem 0 4rem;
}

@media (max-width: 991.98px) {
    .demo-layout { grid-template-columns: 1fr; }
    .demo-sidebar { position: static !important; }
}

.demo-sidebar {
    position: sticky;
    top: 5.5rem;
    background: var(--demo-card);
    border: 1px solid var(--demo-border);
    border-radius: var(--demo-radius);
    padding: 1.25rem;
    box-shadow: var(--demo-shadow);
}

.demo-sidebar .nav-link {
    color: var(--demo-muted);
    font-size: 0.9rem;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
}

.demo-sidebar .nav-link:hover,
.demo-sidebar .nav-link.active {
    background: #e7f1ff;
    color: var(--demo-primary);
}

.demo-section {
    scroll-margin-top: 6rem;
    margin-bottom: 3rem;
}

.demo-card {
    background: var(--demo-card);
    border: 1px solid var(--demo-border);
    border-radius: var(--demo-radius);
    box-shadow: var(--demo-shadow);
    overflow: hidden;
}

.demo-card .card-body { padding: 1.75rem; }

.demo-step-num {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--demo-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.demo-step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.demo-step:last-child { margin-bottom: 0; }

.demo-figure {
    background: #f8fafc;
    border: 1px solid var(--demo-border);
    border-radius: var(--demo-radius);
    padding: 1rem;
    text-align: center;
}

.demo-figure img,
.demo-figure svg {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.demo-figure figcaption {
    font-size: 0.85rem;
    color: var(--demo-muted);
    margin-top: 0.75rem;
}

.demo-portal-card {
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.demo-portal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.12);
}

.demo-portal-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.demo-tip {
    border-left: 4px solid var(--demo-accent);
    background: #ecfdf5;
    padding: 0.85rem 1rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.92rem;
}

.demo-warning {
    border-left: 4px solid #ffc107;
    background: #fffbeb;
    padding: 0.85rem 1rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.92rem;
}

.demo-footer {
    background: var(--demo-ink);
    color: #cbd5e1;
    padding: 2.5rem 0;
    font-size: 0.9rem;
}

.demo-footer a { color: #93c5fd; }

.demo-checklist li { margin-bottom: 0.35rem; }

.demo-checklist .bi-check-circle-fill { color: var(--demo-accent); }

table.demo-table { font-size: 0.9rem; }

table.demo-table th { background: #f1f5f9; }
