:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --navy: #090d1a;
    --slate: #0f172a;
    --ink: #1e293b;
    --muted: #64748b;
    --border: #e2e8f0;
    --primary: #ff5a00;
    --primary-hover: #e04e00;
    --primary-soft: #fff3eb;
    --success: #059669;
    --success-soft: #ecfdf5;
    --warning: #d97706;
    --warning-soft: #fffbeb;
    --danger: #dc2626;
    --danger-soft: #fef2f2;
    --info: #2563eb;
    --info-soft: #eff6ff;
    --radius: 14px;
    --shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    color: var(--slate);
    margin: 0;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

.hidden {
    display: none !important;
}

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

/* Header */
.ag-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(9, 13, 26, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
}

.ag-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
    flex-wrap: wrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--primary);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
}

.brand-text small {
    font-weight: 600;
    font-size: 0.72rem;
    color: #cbd5e1;
    letter-spacing: 0.08em;
    margin-left: 0.25rem;
}

.ag-nav {
    display: flex;
    align-items: center;
    gap: 1.35rem;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.ag-nav a:hover {
    color: #fff;
}

.ag-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.66rem 1.15rem;
    border-radius: 10px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
}

.btn-outline-light:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.btn-outline {
    background: var(--surface);
    color: var(--slate);
    border-color: var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-sm {
    padding: 0.42rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 8px;
}

.btn-block {
    width: 100%;
}

/* Hero Industrial */
.hero {
    background: radial-gradient(circle at top right, rgba(255, 90, 0, 0.18), transparent 46%),
                linear-gradient(135deg, var(--navy) 0%, #131d36 100%);
    color: #f8fafc;
    padding: 4.5rem 0 4rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    padding: 0.28rem 0.72rem;
    border-radius: 999px;
    background: rgba(255, 90, 0, 0.16);
    color: #ff9c66;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.hero h1 {
    color: #fff;
    font-size: clamp(1.9rem, 3.6vw, 2.95rem);
    margin-bottom: 1rem;
}

.hero p.lead {
    color: #cbd5e1;
    font-size: 1.05rem;
    margin: 0 0 1.5rem;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1.75rem;
}

.hero-stat {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.85rem;
}

.hero-stat strong {
    display: block;
    color: #fff;
    font-size: 1.25rem;
}

.hero-stat span {
    font-size: 0.78rem;
    color: #94a3b8;
}

/* Cards & Panels */
.section {
    padding: 4rem 0;
}

.section-alt {
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-head {
    max-width: 720px;
    margin-bottom: 2.2rem;
}

.section-head h2 {
    font-size: clamp(1.5rem, 2.5vw, 2.15rem);
    margin-bottom: 0.55rem;
}

.section-head p {
    color: var(--muted);
    margin: 0;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem;
    box-shadow: var(--shadow);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.kpi-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.2rem;
}

.kpi-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.95rem 1.05rem;
    box-shadow: var(--shadow);
}

.kpi-card span {
    display: block;
    font-size: 0.74rem;
    color: var(--muted);
    font-weight: 600;
}

.kpi-card strong {
    font-size: 1.5rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--slate);
}

/* Forms */
.field {
    margin-bottom: 0.9rem;
}

.field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--slate);
    margin-bottom: 0.3rem;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.62rem 0.82rem;
    border: 1px solid var(--border);
    border-radius: 9px;
    font: inherit;
    font-size: 0.92rem;
    background: #fff;
    color: var(--slate);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: 2px solid rgba(255, 90, 0, 0.25);
    border-color: var(--primary);
}

.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.status-msg {
    margin-top: 0.7rem;
    font-size: 0.86rem;
    font-weight: 600;
}

.status-msg.ok {
    color: var(--success);
}

.status-msg.err {
    color: var(--danger);
}

/* Badges & Traffic Lights */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    background: #e2e8f0;
    color: var(--slate);
}

.badge-orange { background: var(--primary-soft); color: var(--primary); }
.badge-green { background: var(--success-soft); color: var(--success); }
.badge-amber { background: var(--warning-soft); color: var(--warning); }
.badge-red { background: var(--danger-soft); color: var(--danger); }
.badge-blue { background: var(--info-soft); color: var(--info); }

.attribution-banner {
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.attribution-banner.active {
    background: var(--success-soft);
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.attribution-banner.expired {
    background: var(--danger-soft);
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* Tables */
.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

th, td {
    text-align: left;
    padding: 0.68rem 0.6rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

th {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    background: #f8fafc;
}

/* QR Pass Card */
.qr-pass {
    background: #fff;
    border: 2px solid var(--navy);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    max-width: 460px;
    margin: 0 auto;
    box-shadow: var(--shadow);
}

.qr-box {
    display: inline-block;
    padding: 0.75rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin: 0.85rem 0;
}

.qr-box img,
.qr-box svg {
    display: block;
    width: 220px;
    height: 220px;
}

.folio-pill {
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 0.45rem 1rem;
    border-radius: 10px;
    background: var(--navy);
    color: #fff;
    margin: 0.4rem 0;
}

/* SaaS Operations Shell */
.ops-shell {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.ops-sidebar {
    background: var(--navy);
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    padding: 1.15rem 0.9rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.ops-nav {
    display: grid;
    gap: 0.28rem;
    flex: 1;
    margin-top: 1rem;
}

.ops-nav-btn {
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    color: #cbd5e1;
    padding: 0.64rem 0.85rem;
    border-radius: 9px;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.ops-nav-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.ops-nav-btn.active {
    background: var(--primary);
    color: #fff;
}

.ops-main {
    min-width: 0;
    padding: 1.5rem;
}

dialog.ag-modal {
    border: none;
    border-radius: 16px;
    padding: 0;
    width: min(680px, 94vw);
    max-height: 90vh;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.35);
}

dialog.ag-modal::backdrop {
    background: rgba(9, 13, 26, 0.65);
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--navy);
    color: #fff;
}

.modal-head h3 {
    color: #fff;
    font-size: 1rem;
}

.modal-body {
    padding: 1.25rem;
    overflow-y: auto;
    max-height: calc(90vh - 60px);
}

.ag-footer {
    background: var(--navy);
    color: #94a3b8;
    padding: 2.2rem 0;
    font-size: 0.85rem;
}

/* Movilidad Industrial y Timeline Ida/Vuelta */
.mob-tabs {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.mob-tab {
    padding: 0.65rem 1.05rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--slate);
    cursor: pointer;
    font-family: inherit;
}

.mob-tab.active {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

.mob-timeline {
    display: grid;
    gap: 0.95rem;
    margin: 1rem 0;
}

.mob-leg {
    border-left: 4px solid var(--primary);
    background: #f8fafc;
    border-radius: 0 12px 12px 0;
    padding: 0.95rem 1.05rem;
}

.mob-leg.return {
    border-left-color: var(--success);
    background: #f0fdf4;
}

.mob-map {
    width: 100%;
    height: 360px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #e2e8f0;
    z-index: 1;
}

.mob-stop-btn {
    width: 100%;
    text-align: left;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.mob-stop-btn.active {
    border-color: var(--primary);
    background: var(--primary-soft);
}

@media (max-width: 960px) {
    .hero-grid,
    .grid-2,
    .grid-3,
    .grid-4,
    .kpi-grid-5,
    .ops-shell {
        grid-template-columns: 1fr;
    }
    .ops-sidebar {
        position: static;
        height: auto;
    }
    .hero-metrics {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   PRESENTACIÓN EJECUTIVA RH, DIAGRAMA DE FLUJO Y DEMO INTERACTIVA (INDEX)
   ========================================================================== */
.ag-exec-page h1,
.ag-exec-page h2,
.ag-exec-page h3 {
    letter-spacing: -0.02em;
}

.ag-kicker {
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.ag-exec-hero {
    padding: 5rem 0 4.5rem;
}

.ag-exec-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    max-width: 560px;
}

.ag-exec-form-card {
    padding: 1.75rem;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 22px 48px rgba(9, 13, 26, 0.24);
}

.ag-form-header {
    margin-bottom: 1.15rem;
}

.ag-form-header h2 {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}

.ag-form-header p {
    margin: 0;
    font-size: 0.86rem;
    color: var(--muted);
}

.ag-exec-section {
    padding: 4.75rem 0;
}

.ag-service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.65rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ag-service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
    border-color: #cbd5e1;
}

.ag-service-card h3 {
    font-size: 1.12rem;
    margin: 0.8rem 0 0.45rem;
}

.ag-service-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Diagrama de flujo de 4 pasos */
.ag-flow-diagram {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.15rem;
    margin-bottom: 1.35rem;
}

.ag-flow-step {
    text-align: left;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.4rem 1.3rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    position: relative;
}

.ag-flow-step:hover {
    background: #ffffff;
    border-color: #cbd5e1;
}

.ag-flow-step.is-active {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 12px 28px rgba(255, 90, 0, 0.09);
}

.ag-flow-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.ag-flow-num {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    background: #e2e8f0;
    color: var(--slate);
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.ag-flow-step.is-active .ag-flow-num {
    background: var(--primary);
    color: #ffffff;
}

.ag-flow-connector {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, #cbd5e1 0%, rgba(203, 213, 225, 0.25) 100%);
    border-radius: 999px;
}

.ag-flow-step.is-active .ag-flow-connector {
    background: linear-gradient(90deg, var(--primary) 0%, rgba(255, 90, 0, 0.2) 100%);
}

.ag-flow-step h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
    color: var(--slate);
}

.ag-flow-step p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.55;
}

.ag-flow-sim-strip {
    background: var(--navy);
    color: #f8fafc;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
}

.ag-flow-sim-progress {
    height: 5px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.ag-flow-sim-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff5a00, #ff8c42);
    border-radius: 999px;
    transition: width 0.28s ease;
}

.ag-flow-sim-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.ag-flow-sim-tag {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #ff9c66;
    margin-bottom: 0.2rem;
}

.ag-flow-sim-desc {
    margin: 0;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.ag-flow-sim-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    font-size: 0.83rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
}

/* Simulador interactivo por giro y periodo */
.ag-demo-shell {
    margin-top: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
}

.ag-demo-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.ag-demo-select-wrap {
    flex: 1;
    min-width: 280px;
}

.ag-demo-select-wrap label,
.ag-demo-period-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 0.45rem;
}

.ag-demo-select-wrap select {
    width: 100%;
    padding: 0.72rem 1rem;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--slate);
    background-color: #f8fafc;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ag-demo-select-wrap select:focus {
    outline: 2px solid rgba(255, 90, 0, 0.2);
    border-color: var(--primary);
    background-color: #ffffff;
}

.ag-period-segmented {
    display: inline-flex;
    background: #f1f5f9;
    padding: 0.28rem;
    border-radius: 12px;
    gap: 0.25rem;
}

.ag-period-btn {
    border: none;
    background: transparent;
    padding: 0.52rem 1.1rem;
    border-radius: 9px;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.16s ease;
}

.ag-period-btn:hover {
    color: var(--slate);
}

.ag-period-btn.is-active {
    background: var(--navy);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(9, 13, 26, 0.16);
}

.ag-demo-content {
    padding-top: 1.6rem;
    transition: opacity 0.18s ease;
}

.ag-demo-content.is-updating {
    opacity: 0.55;
}

.ag-demo-company-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.ag-demo-badges {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.45rem;
}

.ag-demo-fictional-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
}

.ag-demo-company-bar h3 {
    font-size: 1.35rem;
    margin-bottom: 0.2rem;
}

.ag-demo-sub {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.ag-demo-meta-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 320px));
    gap: 1rem;
}

.ag-spec-item {
    background: #f8fafc;
    border-left: 3px solid #cbd5e1;
    padding: 0.65rem 0.9rem;
    border-radius: 0 10px 10px 0;
}

.ag-spec-item span {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin-bottom: 0.15rem;
}

.ag-spec-item strong {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
    display: block;
    line-height: 1.4;
}

.ag-demo-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
    margin-bottom: 1.5rem;
}

.ag-demo-kpi-box {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.15rem 1.25rem;
}

.ag-demo-kpi-highlight {
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
    border-color: #fed7aa;
}

.ag-demo-kpi-box span {
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.ag-demo-kpi-box strong {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.55rem;
    color: var(--slate);
    margin: 0.25rem 0 0.15rem;
}

.ag-demo-kpi-highlight strong {
    color: var(--primary);
}

.ag-demo-kpi-box small {
    font-size: 0.79rem;
    color: var(--muted);
}

.ag-demo-split {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 1.35rem;
}

.ag-demo-roles-box,
.ag-demo-pipeline-box {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.35rem;
    background: #ffffff;
}

.ag-demo-box-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.1rem;
}

.ag-demo-box-head h4 {
    font-size: 0.98rem;
    color: var(--slate);
}

.ag-soft-pill {
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: var(--slate);
}

.ag-roles-list,
.ag-stage-bars {
    display: grid;
    gap: 0.95rem;
}

.ag-role-row-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    font-size: 0.88rem;
    margin-bottom: 0.32rem;
}

.ag-role-row-top strong {
    color: var(--slate);
    font-weight: 700;
}

.ag-role-track {
    height: 7px;
    background: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
}

.ag-role-fill {
    height: 100%;
    background: var(--slate);
    border-radius: 999px;
    transition: width 0.25s ease;
}

.ag-stage-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.58rem 0.75rem;
    border-radius: 10px;
    background: #f8fafc;
    font-size: 0.84rem;
}

.ag-stage-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--primary);
    flex-shrink: 0;
}

.ag-stage-item-label {
    flex: 1;
    color: var(--ink);
    font-weight: 500;
}

.ag-stage-item-val {
    font-weight: 700;
    color: var(--slate);
}

.ag-demo-cta-foot {
    margin-top: 1.15rem;
    padding-top: 0.95rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.83rem;
    color: var(--muted);
}

.ag-inline-cta {
    color: var(--primary);
    font-weight: 700;
}

.ag-inline-cta:hover {
    text-decoration: underline;
}

.ag-demo-disclaimer {
    margin: 1.35rem 0 0;
    padding-top: 1rem;
    border-top: 1px dashed var(--border);
    font-size: 0.79rem;
    color: var(--muted);
    line-height: 1.55;
}

.ag-corredores-card {
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

@media (max-width: 960px) {
    .ag-flow-diagram,
    .ag-demo-kpis,
    .ag-demo-split,
    .ag-demo-meta-specs,
    .ag-exec-hero-stats {
        grid-template-columns: 1fr;
    }
    .ag-flow-connector {
        display: none;
    }
    .ag-demo-shell {
        padding: 1.35rem;
    }
}
