/* web-design-engineer - pre-emit critique: P5 H5 E5 S5 R5 V5 */
/* =============================================================================
   tpl_fobaproa - Landing editorial-pericial (Dark Slate Forense)
   Tokens coherentes con la Suite del motor (server.py SPA: #090d13/#161b22).
   web-design-engineer: tokens bloqueados, sin hex sueltos fuera de :root.
   WCAG AA, fluid responsive clamp(), focus visible, motion respetado.
   ============================================================================= */

:root {
    /* Superficies */
    --fba-bg: #090d13;
    --fba-bg-alt: #0d1117;
    --fba-surface: #161b22;
    --fba-surface-2: #1c2128;
    --fba-surface-hover: #22272e;
    --fba-border: #30363d;
    --fba-border-soft: #21262d;
    --fba-border-focus: #58a6ff;

    /* Texto */
    --fba-text: #c9d1d9;
    --fba-text-bright: #f0f6fc;
    --fba-text-muted: #8b949e;
    --fba-text-dim: #6e7681;

    /* Acentos cromáticos controlados (<5% viewport) */
    --fba-blue: #58a6ff;
    --fba-blue-glow: rgba(88, 166, 255, 0.25);
    --fba-gold: #d29922;
    --fba-gold-glow: rgba(210, 153, 34, 0.25);
    --fba-red: #f85149;
    --fba-red-glow: rgba(248, 81, 73, 0.25);
    --fba-green: #3fb950;
    --fba-green-glow: rgba(63, 185, 80, 0.25);
    --fba-orange: #f7941d;
    --fba-cyan: #38bdf8;
    --fba-cyan-glow: rgba(56, 189, 248, 0.25);

    /* Tipografía */
    --fba-font-display: 'Space Grotesk', 'Segoe UI', -apple-system, sans-serif;
    --fba-font-body: 'Plus Jakarta Sans', 'Segoe UI', -apple-system, sans-serif;
    --fba-font-mono: 'JetBrains Mono', 'Consolas', 'Courier New', monospace;

    /* Escala fluida */
    --fba-text-hero: clamp(2.5rem, 6vw, 4.4rem);
    --fba-text-h2: clamp(1.75rem, 3.2vw, 2.35rem);
    --fba-text-h3: clamp(1.15rem, 1.8vw, 1.35rem);
    --fba-text-body: clamp(0.98rem, 1.15vw, 1.08rem);
    --fba-text-small: 0.85rem;
    --fba-text-label: 0.78rem;

    /* Espaciado de rejilla 8px */
    --fba-space-2xs: 0.25rem;
    --fba-space-xs: 0.5rem;
    --fba-space-sm: 0.75rem;
    --fba-space-md: 1rem;
    --fba-space-lg: 1.5rem;
    --fba-space-xl: 2rem;
    --fba-space-2xl: clamp(3rem, 6vw, 5rem);

    /* Radio y sombras */
    --fba-radius-sm: 6px;
    --fba-radius-md: 10px;
    --fba-radius: 10px;
    --fba-radius-lg: 14px;
    --fba-radius-xl: 20px;
    --fba-shadow-1: 0 2px 8px rgba(0, 0, 0, 0.35);
    --fba-shadow-2: 0 8px 32px rgba(0, 0, 0, 0.45);
    --fba-shadow-glow: 0 0 24px rgba(88, 166, 255, 0.15);

    /* Transiciones */
    --fba-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --fba-dur-fast: 150ms;
    --fba-dur: 280ms;
}

/* ------------------------------------------------------------------ base */

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

html, body { overflow-x: clip; }

html { scroll-behavior: smooth; }

body.fba-body {
    margin: 0;
    background: var(--fba-bg);
    color: var(--fba-text);
    font-family: var(--fba-font-body);
    font-size: var(--fba-text-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.fba-wrap {
    width: 100%;
    max-width: 1720px;
    padding-inline: clamp(1.25rem, 3.5vw, 4rem);
    margin-inline: auto;
    box-sizing: border-box;
}

.fba-mono {
    font-family: var(--fba-font-mono);
    font-variant-numeric: tabular-nums;
}

.fba-small { font-size: var(--fba-text-small); color: var(--fba-text-muted); }
.fba-text-gold { color: var(--fba-gold) !important; }
.fba-text-red { color: var(--fba-red) !important; }
.fba-text-green { color: var(--fba-green) !important; }
.fba-text-cyan { color: var(--fba-cyan) !important; }
.fba-text-blue { color: var(--fba-blue) !important; }

.fba-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--fba-blue);
    color: #090d13;
    padding: 0.5rem 1rem;
    border-radius: 0 0 var(--fba-radius) 0;
    z-index: 100;
}
.fba-skip:focus { left: 0; }

*:focus-visible {
    outline: 2px solid var(--fba-blue);
    outline-offset: 2px;
}

/* ------------------------------------------------------------------ topbar */

.fba-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(9, 13, 19, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--fba-border-soft);
}

.fba-topbar-inner {
    width: 100%;
    max-width: 1720px;
    padding-inline: clamp(1.25rem, 3.5vw, 4rem);
    margin-inline: auto;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-block: 0.85rem;
}

.fba-topbar-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-shrink: 0;
}

.fba-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.fba-brand-mark {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #1f6feb, #8957e5);
    color: #fff;
    font-family: var(--fba-font-display);
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(31, 111, 235, 0.35);
}

.fba-brand-text {
    font-family: var(--fba-font-display);
    font-weight: 600;
    color: var(--fba-text-bright);
    letter-spacing: 0.02em;
    font-size: 1.05rem;
}
.fba-brand-text b { color: var(--fba-gold); font-weight: 700; }

.fba-sello {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--fba-text-label);
    color: var(--fba-text);
    background: var(--fba-surface);
    border: 1px solid var(--fba-border);
    border-radius: 20px;
    padding: 0.35rem 0.85rem;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color var(--fba-dur) var(--fba-ease), background var(--fba-dur) var(--fba-ease);
}
.fba-sello:hover {
    border-color: var(--fba-green);
    background: var(--fba-surface-hover);
}
.fba-sello-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--fba-green);
    box-shadow: 0 0 8px rgba(63, 185, 80, 0.8);
    flex: none;
}

.fba-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    flex: 1;
}
.fba-nav a {
    color: var(--fba-text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.4rem 0.85rem;
    border-radius: var(--fba-radius-sm);
    transition: all var(--fba-dur) var(--fba-ease);
    white-space: nowrap;
}
.fba-nav a:hover {
    color: var(--fba-text-bright);
    background: rgba(255, 255, 255, 0.05);
}

.fba-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* ------------------------------------------------------------------ botones y pills */

.fba-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.65rem 1.4rem;
    border-radius: var(--fba-radius);
    font-family: var(--fba-font-body);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background var(--fba-dur) var(--fba-ease),
                border-color var(--fba-dur) var(--fba-ease),
                color var(--fba-dur) var(--fba-ease),
                transform var(--fba-dur-fast) var(--fba-ease);
}
.fba-btn:active { transform: scale(0.98); }

.fba-btn-sm { min-height: 36px; padding: 0.4rem 0.9rem; font-size: 0.88rem; }
.fba-btn-lg { min-height: 48px; padding: 0.8rem 1.6rem; font-size: 1.02rem; }

.fba-btn-solid {
    background: var(--fba-blue);
    color: #090d13;
}
.fba-btn-solid:hover { background: #79b8ff; }

.fba-btn-ghost {
    border-color: var(--fba-border);
    color: var(--fba-text-bright);
    background: var(--fba-surface);
}
.fba-btn-ghost:hover { border-color: var(--fba-blue); color: var(--fba-blue); background: var(--fba-surface-hover); }

.fba-btn-outline {
    border-color: var(--fba-border);
    color: var(--fba-text-bright);
    background: transparent;
}
.fba-btn-outline:hover { border-color: var(--fba-gold); color: var(--fba-gold); }

.fba-btn-block { width: 100%; }

.fba-pill-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--fba-gold);
    box-shadow: 0 0 8px rgba(210, 153, 34, 0.8);
    animation: fba-pulse 2s infinite ease-in-out;
}
@keyframes fba-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

.fba-eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--fba-font-mono);
    font-size: var(--fba-text-label);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fba-gold);
    background: rgba(210, 153, 34, 0.1);
    border: 1px solid rgba(210, 153, 34, 0.3);
    border-radius: 20px;
    padding: 0.3rem 0.8rem;
    margin-bottom: var(--fba-space-md);
}

.fba-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: var(--fba-text-label);
    font-family: var(--fba-font-mono);
    font-weight: 600;
}
.fba-badge-green { background: rgba(63, 185, 80, 0.15); color: #7ee787; border: 1px solid rgba(63, 185, 80, 0.3); }
.fba-badge-blue { background: rgba(88, 166, 255, 0.15); color: #79b8ff; border: 1px solid rgba(88, 166, 255, 0.3); }
.fba-badge-gold { background: rgba(210, 153, 34, 0.15); color: #e3b341; border: 1px solid rgba(210, 153, 34, 0.3); }

/* ------------------------------------------------------------------ hero */

.fba-hero {
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
    border-bottom: 1px solid var(--fba-border-soft);
    background: radial-gradient(circle at 15% 20%, rgba(31, 111, 235, 0.08) 0%, transparent 60%);
}

.fba-hero-grid {
    width: 100%;
    max-width: 1720px;
    padding-inline: clamp(1.25rem, 3.5vw, 4rem);
    margin-inline: auto;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: center;
}

.fba-h1 {
    font-family: var(--fba-font-display);
    font-size: var(--fba-text-hero);
    font-weight: 700;
    line-height: 1.05;
    color: var(--fba-text-bright);
    margin: 0 0 var(--fba-space-lg);
    overflow-wrap: anywhere;
    min-width: 0;
}

.fba-lede {
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    color: var(--fba-text);
    margin: 0 0 var(--fba-space-xl);
}
.fba-lede strong { color: var(--fba-text-bright); }

.fba-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--fba-space-md);
    margin-bottom: var(--fba-space-xl);
}

.fba-hero-cifras {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--fba-space-md);
    margin: 0;
    border-top: 1px solid var(--fba-border-soft);
    padding-top: var(--fba-space-lg);
}
.fba-cifra-item dt {
    font-family: var(--fba-font-mono);
    font-size: var(--fba-text-label);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fba-text-muted);
    margin-bottom: 0.2rem;
}
.fba-cifra-item dd {
    margin: 0;
    font-size: 0.92rem;
    color: var(--fba-text);
}
.fba-cifra-item .fba-mono { color: var(--fba-text-bright); font-weight: 600; }

.fba-hero-figure {
    margin: 0;
    border: 1px solid var(--fba-border);
    border-radius: var(--fba-radius-lg);
    overflow: hidden;
    background: var(--fba-surface);
    box-shadow: 0 16px 44px -8px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(197, 160, 89, 0.18);
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.fba-hero-figure:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 54px -8px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(197, 160, 89, 0.4);
}
.fba-hero-figure img {
    display: block;
    width: 100%;
    height: auto;
}
.fba-hero-caption {
    padding: 0.75rem 1rem;
    font-size: var(--fba-text-label);
    font-family: var(--fba-font-mono);
    color: var(--fba-text-muted);
    border-top: 1px solid var(--fba-border-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.fba-caption-link {
    color: var(--fba-blue);
    text-decoration: none;
    font-weight: 600;
}
.fba-caption-link:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ live debt ticker */

.fba-ticker-section {
    padding: var(--fba-space-lg) 0;
    background: var(--fba-bg-alt);
    border-bottom: 1px solid var(--fba-border-soft);
}

.fba-ticker-card {
    background: var(--fba-surface);
    border: 1px solid rgba(210, 153, 34, 0.35);
    border-radius: var(--fba-radius-lg);
    padding: var(--fba-space-lg) var(--fba-space-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.fba-ticker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--fba-space-sm);
    margin-bottom: var(--fba-space-sm);
}

.fba-ticker-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.fba-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(248, 81, 73, 0.15);
    border: 1px solid rgba(248, 81, 73, 0.4);
    color: #ff7b72;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: var(--fba-font-mono);
    font-size: 0.72rem;
    font-weight: 700;
}

.fba-ticker-title {
    font-family: var(--fba-font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--fba-text-bright);
    margin: 0;
}

.fba-ticker-sub {
    margin: 0;
    font-size: 0.85rem;
    color: var(--fba-text-muted);
}

.fba-ticker-counter-wrap {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    padding: var(--fba-space-sm) 0 var(--fba-space-md);
    border-bottom: 1px solid var(--fba-border-soft);
}
.fba-currency {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    color: var(--fba-gold);
    font-weight: 700;
}
.fba-ticker-digits {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 700;
    color: var(--fba-text-bright);
    letter-spacing: 0.02em;
}
.fba-currency-code {
    font-size: 1.1rem;
    color: var(--fba-gold);
    font-family: var(--fba-font-mono);
    font-weight: 600;
}

.fba-ticker-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: var(--fba-space-md);
    margin-top: var(--fba-space-md);
}
.fba-ticker-stat { display: flex; flex-direction: column; }
.fba-stat-value {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--fba-text-bright);
}
.fba-stat-label {
    font-size: var(--fba-text-small);
    color: var(--fba-text-muted);
}

/* ------------------------------------------------------------------ El Espejo Borgia: Balanza Dual y Motores */

.fba-borgia-header {
    text-align: center;
    max-width: 860px;
    margin: 0 auto var(--fba-space-xl);
}

.fba-borgia-badge-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: var(--fba-space-sm);
}

.fba-epistemic-tag {
    background: rgba(210, 153, 34, 0.15);
    border: 1px solid rgba(210, 153, 34, 0.4);
    color: var(--fba-gold);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: var(--fba-radius-sm);
}

.fba-borgia-title {
    font-family: var(--fba-font-display);
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    font-weight: 700;
    color: var(--fba-text-bright);
    margin: 0 0 var(--fba-space-xs);
    letter-spacing: -0.01em;
}

.fba-borgia-sub {
    font-size: 0.98rem;
    color: var(--fba-text-muted);
    margin: 0 auto;
    line-height: 1.6;
}

/* Tablero Dual */
.fba-borgia-balance-card {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--fba-space-lg);
    background: var(--fba-surface);
    border: 1px solid var(--fba-border);
    border-radius: var(--fba-radius-xl);
    padding: var(--fba-space-xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    margin-bottom: var(--fba-space-2xl);
    align-items: center;
}

.fba-balance-col {
    display: flex;
    flex-direction: column;
}

.fba-balance-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--fba-space-xs);
    margin-bottom: var(--fba-space-sm);
}

.fba-balance-pill {
    font-family: var(--fba-font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 0.04em;
}

.fba-pill-red {
    background: rgba(248, 81, 73, 0.15);
    border: 1px solid rgba(248, 81, 73, 0.4);
    color: #ff7b72;
}

.fba-pill-green {
    background: rgba(63, 185, 80, 0.15);
    border: 1px solid rgba(63, 185, 80, 0.4);
    color: #7ee787;
}

.fba-balance-share {
    font-size: 0.8rem;
    color: var(--fba-text-muted);
}

.fba-balance-counter-wrap {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    padding: var(--fba-space-xs) 0;
}

.fba-currency-red { color: #ff7b72; }
.fba-currency-green { color: #7ee787; }
.fba-digits-red { color: #ff7b72; text-shadow: 0 0 20px rgba(248, 81, 73, 0.25); }
.fba-digits-green { color: #7ee787; text-shadow: 0 0 20px rgba(63, 185, 80, 0.25); }

.fba-balance-desc {
    margin: 0 0 var(--fba-space-md);
    font-size: 0.86rem;
    color: var(--fba-text-muted);
    line-height: 1.5;
}

.fba-balance-flow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--fba-space-sm);
    padding: var(--fba-space-sm) var(--fba-space-md);
    border-radius: var(--fba-radius);
}

.fba-flow-red {
    background: rgba(248, 81, 73, 0.08);
    border: 1px solid rgba(248, 81, 73, 0.2);
}

.fba-flow-green {
    background: rgba(63, 185, 80, 0.08);
    border: 1px solid rgba(63, 185, 80, 0.2);
}

.fba-flow-item {
    display: flex;
    flex-direction: column;
}

.fba-flow-val {
    font-size: 1.05rem;
    font-weight: 700;
}

.fba-flow-red .fba-flow-val { color: #ff7b72; }
.fba-flow-green .fba-flow-val { color: #7ee787; }

.fba-flow-lbl {
    font-size: 0.72rem;
    color: var(--fba-text-dim);
}

/* Centro: Asimetría */
.fba-balance-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--fba-space-md) var(--fba-space-lg);
    background: var(--fba-bg);
    border: 1px solid var(--fba-border);
    border-radius: var(--fba-radius-lg);
    min-width: 220px;
}

.fba-ratio-badge {
    text-align: center;
    margin-bottom: var(--fba-space-sm);
}

.fba-ratio-label {
    display: block;
    font-family: var(--fba-font-mono);
    font-size: 0.7rem;
    color: var(--fba-gold);
    letter-spacing: 0.08em;
    font-weight: 700;
    margin-bottom: 2px;
}

.fba-ratio-val {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--fba-gold);
    text-shadow: 0 0 16px rgba(210, 153, 34, 0.35);
    line-height: 1.1;
}

.fba-ratio-sub {
    display: block;
    font-size: 0.75rem;
    color: var(--fba-text-muted);
}

.fba-ratio-gauge-bar {
    width: 100%;
    height: 10px;
    background: #21262d;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    margin: var(--fba-space-xs) 0;
}

.fba-gauge-segment { height: 100%; }
.fba-gauge-red { background: #f85149; }
.fba-gauge-green { background: #3fb950; }

.fba-gauge-legend {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 0.7rem;
}

.fba-leg-red { color: #ff7b72; }
.fba-leg-green { color: #7ee787; }

/* Nivel 2: Motores de Extracción Privada */
.fba-motors-section {
    margin-top: var(--fba-space-xl);
}

.fba-motors-header {
    margin-bottom: var(--fba-space-lg);
}

.fba-motors-title {
    font-family: var(--fba-font-display);
    font-size: 1.35rem;
    color: var(--fba-text-bright);
    margin: 0 0 0.35rem;
}

.fba-motors-sub {
    font-size: 0.88rem;
    color: var(--fba-text-muted);
}

.fba-motors-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--fba-space-md);
}
@media (max-width: 1250px) {
    .fba-motors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .fba-motors-grid {
        grid-template-columns: 1fr;
    }
}

.fba-motor-card {
    background: var(--fba-surface);
    border: 1px solid var(--fba-border);
    border-radius: var(--fba-radius-lg);
    padding: var(--fba-space-lg);
    display: flex;
    flex-direction: column;
    transition: transform var(--fba-dur-fast) var(--fba-ease), border-color var(--fba-dur-fast) var(--fba-ease);
}

.fba-motor-card:hover {
    transform: translateY(-2px);
    border-color: rgba(210, 153, 34, 0.4);
}

.fba-motor-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--fba-space-xs);
}

.fba-motor-num {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--fba-gold);
}

.fba-motor-badge {
    font-family: var(--fba-font-mono);
    font-size: 0.68rem;
    color: var(--fba-text-muted);
    background: var(--fba-surface-2);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--fba-border-soft);
}

.fba-motor-name {
    font-family: var(--fba-font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--fba-text-bright);
    margin: 0 0 var(--fba-space-sm);
    line-height: 1.35;
    min-height: 2.7em;
}

.fba-motor-val-wrap {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: var(--fba-space-2xs);
}

.fba-currency-mini {
    font-size: 1.1rem;
    color: var(--fba-gold);
    font-weight: 700;
}

.fba-motor-digits {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--fba-text-bright);
}

.fba-curr-mini {
    font-size: 0.75rem;
    color: var(--fba-gold);
    font-family: var(--fba-font-mono);
}

.fba-motor-speed {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    font-size: 0.85rem;
    margin-bottom: var(--fba-space-sm);
}

.fba-speed-accent {
    color: #7ee787;
    font-weight: 700;
}

.fba-speed-sub {
    color: var(--fba-text-dim);
    font-size: 0.78rem;
}

.fba-motor-summary {
    font-size: 0.83rem;
    color: var(--fba-text-muted);
    line-height: 1.5;
    margin: 0 0 var(--fba-space-md);
    flex-grow: 1;
}

.fba-evidence-details {
    border-top: 1px dashed var(--fba-border-soft);
    padding-top: var(--fba-space-xs);
}

.fba-evidence-btn {
    font-family: var(--fba-font-mono);
    font-size: 0.72rem;
    color: var(--fba-blue);
    cursor: pointer;
    user-select: none;
    padding: 4px 0;
}

.fba-evidence-btn:hover {
    color: #a5d6ff;
    text-decoration: underline;
}

.fba-evidence-body {
    background: var(--fba-bg);
    border: 1px solid var(--fba-border-soft);
    border-radius: var(--fba-radius-sm);
    padding: var(--fba-space-sm);
    margin-top: var(--fba-space-xs);
    font-size: 0.74rem;
    color: var(--fba-text);
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .fba-borgia-balance-card {
        grid-template-columns: 1fr;
        gap: var(--fba-space-xl);
    }
    .fba-balance-center {
        order: -1;
        width: 100%;
    }
}

/* Nivel 3: Padrón de Beneficiarios y Trazabilidad */
.fba-beneficiaries-section {
    margin-top: var(--fba-space-2xl);
    border-top: 1px solid var(--fba-border);
    padding-top: var(--fba-space-2xl);
}

.fba-beneficiaries-header {
    margin-bottom: var(--fba-space-xl);
    text-align: left;
}

.fba-beneficiaries-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.fba-beneficiaries-title {
    font-family: var(--fba-font-display);
    font-size: clamp(1.3rem, 2.5vw, 1.85rem);
    font-weight: 700;
    color: var(--fba-text-bright);
    margin: 0;
    letter-spacing: -0.01em;
}

.fba-beneficiaries-sub {
    font-size: 0.92rem;
    color: var(--fba-text-muted);
    line-height: 1.6;
    max-width: 960px;
    margin: 0 0 var(--fba-space-md);
}

.fba-beneficiaries-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: var(--fba-space-sm);
}

.fba-filter-btn {
    background: var(--fba-surface-2);
    border: 1px solid var(--fba-border);
    color: var(--fba-text-muted);
    font-family: var(--fba-font-sans);
    font-size: 0.8rem;
    padding: 0.45rem 0.9rem;
    border-radius: var(--fba-radius-md);
    cursor: pointer;
    transition: all var(--fba-dur-fast) var(--fba-ease);
}

.fba-filter-btn:hover {
    border-color: rgba(210, 153, 34, 0.5);
    color: var(--fba-text-bright);
}

.fba-filter-btn.fba-filter-active {
    background: rgba(210, 153, 34, 0.15);
    border-color: var(--fba-gold);
    color: var(--fba-gold);
    font-weight: 600;
    box-shadow: 0 0 12px rgba(210, 153, 34, 0.2);
}

.fba-beneficiaries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--fba-space-lg);
}
@media (max-width: 1100px) {
    .fba-beneficiaries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 680px) {
    .fba-beneficiaries-grid {
        grid-template-columns: 1fr;
    }
}

.fba-ben-card {
    background: var(--fba-surface);
    border: 1px solid var(--fba-border);
    border-radius: var(--fba-radius-lg);
    padding: var(--fba-space-lg);
    display: flex;
    flex-direction: column;
    transition: transform var(--fba-dur-fast) var(--fba-ease), border-color var(--fba-dur-fast) var(--fba-ease), box-shadow var(--fba-dur-fast) var(--fba-ease);
    position: relative;
    overflow: hidden;
}

.fba-ben-card:hover {
    transform: translateY(-3px);
    border-color: rgba(126, 231, 135, 0.4);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
}

.fba-ben-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.fba-ben-actor-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.fba-ben-rank {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--fba-gold);
    background: rgba(210, 153, 34, 0.16);
    border: 1px solid rgba(210, 153, 34, 0.45);
    padding: 1px 7px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
}

.fba-ben-rank-1 {
    color: #ff7b72;
    background: rgba(248, 81, 73, 0.16);
    border-color: rgba(248, 81, 73, 0.45);
}

.fba-ben-id {
    font-size: 0.72rem;
    color: var(--fba-gold);
    font-weight: 600;
}

.fba-ben-badge-l3 {
    font-size: 0.65rem;
    background: rgba(88, 166, 255, 0.15);
    border: 1px solid rgba(88, 166, 255, 0.4);
    color: #58a6ff;
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 600;
}

.fba-ben-live-flow {
    font-size: 0.74rem;
    color: #7ee787;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(126, 231, 135, 0.08);
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid rgba(126, 231, 135, 0.25);
}

.fba-flow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7ee787;
    animation: fba-pulse 1.8s infinite;
}

.fba-ben-name {
    font-family: var(--fba-font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--fba-text-bright);
    margin: 0 0 0.15rem;
    line-height: 1.3;
}

.fba-ben-consorcio {
    font-size: 0.78rem;
    color: var(--fba-text-muted);
    margin-bottom: var(--fba-space-sm);
    display: block;
}

.fba-ben-counter-box {
    background: #090d13;
    border: 1px solid var(--fba-border-soft);
    border-radius: var(--fba-radius-md);
    padding: var(--fba-space-sm) var(--fba-space-md);
    margin-bottom: var(--fba-space-sm);
}

.fba-ben-counter-lbl {
    display: block;
    font-size: 0.68rem;
    color: var(--fba-text-dim);
    margin-bottom: 2px;
}

.fba-ben-counter-val {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: #7ee787;
}

.fba-ben-counter-val .fba-curr {
    font-size: 1.1rem;
    color: #7ee787;
}

.fba-ben-counter-val .fba-code {
    font-size: 0.72rem;
    color: var(--fba-text-dim);
}

.fba-ben-counter-sub {
    display: block;
    font-size: 0.72rem;
    color: var(--fba-gold);
    margin-top: 2px;
}

.fba-ben-compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: var(--fba-space-sm);
}

.fba-compare-box {
    background: var(--fba-surface-2);
    border: 1px solid var(--fba-border-soft);
    border-radius: var(--fba-radius-sm);
    padding: 0.5rem;
}

.fba-comp-title {
    display: block;
    font-size: 0.65rem;
    color: var(--fba-text-muted);
    margin-bottom: 2px;
}

.fba-comp-val {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.fba-text-red { color: #ff7b72; }
.fba-text-gold { color: var(--fba-gold); }

.fba-comp-desc {
    display: block;
    font-size: 0.65rem;
    color: var(--fba-text-dim);
    line-height: 1.3;
}

.fba-ben-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: auto;
}

.fba-ben-details {
    border: 1px solid var(--fba-border-soft);
    border-radius: var(--fba-radius-sm);
    background: #0d1117;
    overflow: hidden;
}

.fba-ben-summary {
    padding: 0.45rem 0.65rem;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: background 0.15s ease;
}

.fba-ben-summary:hover {
    background: rgba(255, 255, 255, 0.03);
}

.fba-summary-triquinuela { color: #d2a8ff; }
.fba-summary-triquinuela:hover { color: #e2c5ff; }

.fba-summary-trazabilidad { color: #58a6ff; }
.fba-summary-trazabilidad:hover { color: #a5d6ff; }

.fba-ben-detail-body {
    padding: 0.6rem 0.65rem;
    font-size: 0.73rem;
    color: var(--fba-text-muted);
    border-top: 1px solid var(--fba-border-soft);
    background: var(--fba-bg);
    line-height: 1.5;
}

/* ------------------------------------------------------------------ secciones */

.fba-section { padding: var(--fba-space-2xl) 0; }
.fba-section-alt { background: var(--fba-bg-alt); border-block: 1px solid var(--fba-border-soft); }

.fba-section-tag {
    font-family: var(--fba-font-mono);
    font-size: var(--fba-text-label);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fba-gold);
    margin: 0 0 var(--fba-space-xs);
}

.fba-h2 {
    font-family: var(--fba-font-display);
    font-size: var(--fba-text-h2);
    font-weight: 700;
    color: var(--fba-text-bright);
    margin: 0 0 var(--fba-space-md);
    overflow-wrap: anywhere;
    min-width: 0;
}

.fba-section-lede {
    font-size: clamp(1rem, 1.3vw, 1.18rem);
    color: var(--fba-text);
    margin: 0 0 var(--fba-space-xl);
}

.fba-section-header-center {
    text-align: center;
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    margin-bottom: var(--fba-space-2xl);
}

/* El caso */
.fba-caso-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
}
.fba-caso-copy p { margin: 0 0 var(--fba-space-md); }
.fba-caso-copy strong { color: var(--fba-text-bright); }
.fba-caso-actions { display: flex; gap: var(--fba-space-sm); flex-wrap: wrap; margin-top: var(--fba-space-lg); }

.fba-caso-datos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--fba-space-md);
}
.fba-dato {
    background: var(--fba-surface);
    border: 1px solid var(--fba-border-soft);
    border-radius: var(--fba-radius);
    padding: var(--fba-space-lg);
    transition: border-color var(--fba-dur) var(--fba-ease), transform var(--fba-dur-fast) var(--fba-ease);
}
.fba-dato:hover {
    border-color: var(--fba-border);
    transform: translateY(-2px);
}
.fba-dato-num {
    display: block;
    font-size: clamp(1.8rem, 2.6vw, 2.4rem);
    font-weight: 600;
    color: var(--fba-text-bright);
    line-height: 1.1;
}
.fba-dato-label {
    display: block;
    margin-top: 0.35rem;
    font-size: var(--fba-text-small);
    color: var(--fba-text-muted);
}

/* ------------------------------------------------------------------ simulador ia showcase */

.fba-ai-showcase-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--fba-space-xl);
    align-items: stretch;
}

.fba-ai-preview-card {
    background: var(--fba-surface);
    border: 1px solid var(--fba-border);
    border-radius: var(--fba-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.fba-media-frame {
    position: relative;
    background: #000;
    overflow: hidden;
}
.fba-media-frame img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}
.fba-media-overlay {
    position: absolute;
    top: var(--fba-space-sm);
    left: var(--fba-space-sm);
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.fba-ai-preview-caption {
    padding: var(--fba-space-md) var(--fba-space-lg);
    font-size: 0.92rem;
    color: var(--fba-text-muted);
}
.fba-ai-preview-caption strong { color: var(--fba-text-bright); }

/* Terminal interactiva */
.fba-terminal-wrapper {
    background: #0d1117;
    border: 1px solid var(--fba-border);
    border-radius: var(--fba-radius-lg);
    box-shadow: var(--fba-shadow-2);
    display: flex;
    flex-direction: column;
}
.fba-terminal-top {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 1rem;
    background: var(--fba-surface);
    border-bottom: 1px solid var(--fba-border-soft);
}
.fba-terminal-lights { display: flex; gap: 6px; }
.fba-t-dot { width: 10px; height: 10px; border-radius: 50%; }
.fba-t-red { background: #ff5f56; }
.fba-t-yellow { background: #ffbd2e; }
.fba-t-green { background: #27c93f; }
.fba-terminal-title { font-size: 0.8rem; color: var(--fba-text-muted); margin-right: auto; }
.fba-terminal-status { font-size: 0.75rem; color: var(--fba-green); }

.fba-terminal-prompts {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(22, 27, 34, 0.5);
    border-bottom: 1px solid var(--fba-border-soft);
    overflow-x: auto;
}
.fba-prompt-btn {
    background: transparent;
    border: 1px solid var(--fba-border-soft);
    color: var(--fba-text-muted);
    padding: 0.35rem 0.75rem;
    border-radius: var(--fba-radius-sm);
    font-family: var(--fba-font-mono);
    font-size: 0.78rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--fba-dur) var(--fba-ease);
}
.fba-prompt-btn:hover { border-color: var(--fba-blue); color: var(--fba-text-bright); }
.fba-prompt-btn.active {
    background: rgba(88, 166, 255, 0.15);
    border-color: var(--fba-blue);
    color: #79b8ff;
}

.fba-terminal-body {
    padding: var(--fba-space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--fba-space-md);
    min-height: 240px;
}
.fba-term-line { display: flex; gap: 0.6rem; align-items: baseline; }
.fba-term-prompt { color: var(--fba-gold); font-family: var(--fba-font-mono); font-weight: 700; }
.fba-term-user span { color: var(--fba-text-bright); font-size: 0.95rem; }

.fba-term-response {
    background: var(--fba-surface);
    border: 1px solid var(--fba-border-soft);
    border-radius: var(--fba-radius);
    padding: var(--fba-space-md) var(--fba-space-lg);
    font-size: 0.93rem;
    line-height: 1.6;
}
.fba-term-response p { margin: 0 0 0.6rem; }
.fba-term-response p:last-child { margin: 0; }
.fba-epistemic-badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    font-family: var(--fba-font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}
.fba-badge-l1 { background: rgba(63, 185, 80, 0.15); border: 1px solid rgba(63, 185, 80, 0.4); color: #7ee787; }
.fba-badge-l2 { background: rgba(88, 166, 255, 0.15); border: 1px solid rgba(88, 166, 255, 0.4); color: #79b8ff; }
.fba-badge-l6 { background: rgba(210, 153, 34, 0.15); border: 1px solid rgba(210, 153, 34, 0.4); color: #e3b341; }

.fba-citation-box {
    margin-top: 0.8rem;
    padding-top: 0.6rem;
    border-top: 1px dashed var(--fba-border-soft);
    font-size: 0.75rem;
    color: var(--fba-text-muted);
}

.fba-terminal-footer {
    padding: 0.75rem 1rem;
    background: var(--fba-surface);
    border-top: 1px solid var(--fba-border-soft);
}

/* ------------------------------------------------------------------ método y c1 */

.fba-capas {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--fba-space-md);
    margin-bottom: var(--fba-space-xl);
}
.fba-capa {
    background: var(--fba-surface);
    border: 1px solid var(--fba-border-soft);
    border-radius: var(--fba-radius-lg);
    padding: var(--fba-space-xl) var(--fba-space-lg);
    position: relative;
    transition: border-color var(--fba-dur) var(--fba-ease), transform var(--fba-dur-fast) var(--fba-ease);
}
.fba-capa:hover {
    border-color: var(--fba-border);
    transform: translateY(-2px);
}
.fba-capa-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(88, 166, 255, 0.1);
    color: var(--fba-blue);
    display: grid;
    place-items: center;
    margin-bottom: var(--fba-space-md);
}
.fba-capa-tag {
    font-size: var(--fba-text-label);
    letter-spacing: 0.08em;
    color: var(--fba-gold);
    margin: 0 0 0.4rem;
}
.fba-capa h3 {
    font-family: var(--fba-font-display);
    font-size: var(--fba-text-h3);
    font-weight: 600;
    color: var(--fba-text-bright);
    margin: 0 0 var(--fba-space-sm);
}
.fba-capa p { margin: 0; font-size: 0.93rem; color: var(--fba-text); }

.fba-c1-inspector-card {
    background: var(--fba-surface);
    border: 1px solid var(--fba-border);
    border-radius: var(--fba-radius-lg);
    padding: var(--fba-space-xl);
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    gap: var(--fba-space-xl);
    align-items: center;
}
.fba-c1-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--fba-text-label);
    color: var(--fba-green);
    margin-bottom: var(--fba-space-xs);
}
.fba-c1-heading {
    font-family: var(--fba-font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--fba-text-bright);
    margin: 0 0 var(--fba-space-sm);
}
.fba-c1-left p { margin: 0 0 var(--fba-space-md); font-size: 0.95rem; }

.fba-c1-log-box {
    background: var(--fba-bg);
    border: 1px solid var(--fba-border-soft);
    border-radius: var(--fba-radius);
    padding: var(--fba-space-md);
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-height: 130px;
    justify-content: center;
}
.fba-log-row { word-break: break-all; }
.text-muted { color: var(--fba-text-muted); }
.text-green { color: #7ee787; font-weight: 600; }
.text-gold { color: #e3b341; }

/* ------------------------------------------------------------------ hipergrafo */

.fba-hipergrafo-grid {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    gap: var(--fba-space-2xl);
    align-items: center;
}
.fba-hipergrafo-copy p { margin: 0 0 var(--fba-space-md); }
.fba-checks-list {
    list-style: none;
    margin: 0 0 var(--fba-space-lg);
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.fba-checks-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
}
.fba-checks-list li::before {
    content: "✓";
    color: var(--fba-blue);
    font-weight: 700;
}

.fba-frame-glow {
    border: 1px solid rgba(88, 166, 255, 0.35);
    border-radius: var(--fba-radius-lg);
    box-shadow: var(--fba-shadow-glow);
}

/* ------------------------------------------------------------------ expedientes */

.fba-expedientes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--fba-space-lg);
}

@media (min-width: 1025px) {
    .fba-exp-card:last-child {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 180px minmax(0, 1fr) auto;
        align-items: center;
        gap: var(--fba-space-xl);
        padding: var(--fba-space-xl);
        background: linear-gradient(135deg, rgba(22, 27, 34, 0.95) 0%, rgba(13, 17, 23, 0.98) 100%);
        border: 1px solid rgba(248, 81, 73, 0.4);
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
    }
    .fba-exp-card:last-child .fba-exp-card-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
        margin-bottom: 0;
    }
    .fba-exp-card:last-child .fba-exp-meta {
        margin-top: 0;
        border-top: none;
        padding-top: 0;
        border-left: 1px solid var(--fba-border-soft);
        padding-left: var(--fba-space-md);
    }
}

@media (max-width: 1024px) {
    .fba-expedientes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .fba-exp-card:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .fba-expedientes-grid {
        grid-template-columns: 1fr;
    }
    .fba-exp-card:last-child {
        grid-column: auto;
        display: flex;
        flex-direction: column;
    }
}
.fba-exp-card {
    background: var(--fba-surface);
    border: 1px solid var(--fba-border-soft);
    border-radius: var(--fba-radius);
    padding: var(--fba-space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--fba-space-xs);
    transition: border-color var(--fba-dur) var(--fba-ease), transform var(--fba-dur-fast) var(--fba-ease);
}
.fba-exp-card:hover {
    border-color: var(--fba-gold);
    transform: translateY(-2px);
}
.fba-exp-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.2rem;
}
.fba-exp-badge {
    color: var(--fba-gold);
    font-size: 0.78rem;
    font-weight: 700;
}
.fba-exp-monto {
    color: var(--fba-red);
    font-size: 0.8rem;
    font-weight: 600;
}
.fba-exp-card h3 {
    font-family: var(--fba-font-display);
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--fba-text-bright);
    margin: 0;
}
.fba-exp-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--fba-text);
    flex: 1;
}
.fba-exp-meta {
    margin-top: var(--fba-space-sm);
    padding-top: var(--fba-space-xs);
    border-top: 1px solid var(--fba-border-soft);
    font-size: 0.75rem;
    color: var(--fba-text-muted);
}

/* ------------------------------------------------------------------ calculadora ids */

.fba-ids-calc-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--fba-space-2xl);
    align-items: center;
}
.fba-ids-intro p { margin: 0 0 var(--fba-space-md); }

.fba-ids-presets {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: var(--fba-space-md);
}
.fba-preset-label {
    font-size: var(--fba-text-small);
    color: var(--fba-text-muted);
    font-weight: 600;
}
.fba-preset-btn {
    background: var(--fba-surface);
    border: 1px solid var(--fba-border-soft);
    color: var(--fba-text);
    padding: 0.45rem 0.85rem;
    border-radius: var(--fba-radius-sm);
    font-size: 0.85rem;
    text-align: left;
    cursor: pointer;
    transition: all var(--fba-dur) var(--fba-ease);
}
.fba-preset-btn:hover { border-color: var(--fba-gold); color: var(--fba-text-bright); }
.fba-preset-btn.active {
    border-color: var(--fba-gold);
    background: rgba(210, 153, 34, 0.1);
    color: #e3b341;
}

.fba-ids-calc-box {
    background: var(--fba-surface);
    border: 1px solid var(--fba-border);
    border-radius: var(--fba-radius-lg);
    padding: var(--fba-space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--fba-space-md);
}

.fba-slider-group { display: flex; flex-direction: column; gap: 0.3rem; }
.fba-slider-head {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    color: var(--fba-text);
}
.fba-slider-val { color: var(--fba-gold); font-weight: 600; }

.fba-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--fba-border-soft);
    outline: none;
}
.fba-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--fba-blue);
    cursor: pointer;
    box-shadow: 0 0 6px rgba(88, 166, 255, 0.6);
}
.fba-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--fba-blue);
    cursor: pointer;
}

.fba-ids-result-panel {
    margin-top: var(--fba-space-sm);
    padding: var(--fba-space-md);
    background: var(--fba-bg);
    border: 1px solid var(--fba-border);
    border-radius: var(--fba-radius);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.fba-ids-result-head {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--fba-text-bright);
}
.fba-result-number { font-size: 1.4rem; font-weight: 700; color: var(--fba-red); }

.fba-result-meter {
    height: 12px;
    border-radius: 6px;
    background: var(--fba-surface-2);
    overflow: hidden;
    border: 1px solid var(--fba-border-soft);
}
.fba-result-fill {
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, #3fb950 0%, #d29922 50%, #f85149 100%);
    transition: width 350ms var(--fba-ease);
}
.fba-result-status {
    margin: 0.2rem 0 0;
    font-family: var(--fba-font-mono);
    font-size: var(--fba-text-label);
    letter-spacing: 0.06em;
    color: #ff7b72;
    font-weight: 700;
}

/* ------------------------------------------------------------------ video multimedia showcase */

.fba-video-player-card {
    background: var(--fba-surface);
    border: 1px solid var(--fba-border);
    border-radius: var(--fba-radius-lg);
    overflow: hidden;
    box-shadow: var(--fba-shadow-2);
}

.fba-video-viewport {
    position: relative;
    background: #000;
}
.fba-video-poster img {
    display: block;
    width: 100%;
    height: auto;
    filter: brightness(0.85);
}
.fba-video-overlay-play {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--fba-space-md);
    background: rgba(9, 13, 19, 0.45);
}
.fba-play-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--fba-blue);
    color: #090d13;
    display: grid;
    place-items: center;
    text-decoration: none;
    box-shadow: 0 0 24px rgba(88, 166, 255, 0.5);
    transition: transform var(--fba-dur-fast) var(--fba-ease), background var(--fba-dur) var(--fba-ease);
}
.fba-play-btn:hover {
    transform: scale(1.08);
    background: #79b8ff;
}
.fba-video-tag {
    font-size: var(--fba-text-label);
    color: var(--fba-text-bright);
    letter-spacing: 0.08em;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.fba-video-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    border-top: 1px solid var(--fba-border-soft);
    background: var(--fba-bg);
}
.fba-vnav-item {
    padding: var(--fba-space-md);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    text-decoration: none;
    border-right: 1px solid var(--fba-border-soft);
    transition: background var(--fba-dur) var(--fba-ease);
}
.fba-vnav-item:last-child { border-right: none; }
.fba-vnav-item:hover, .fba-vnav-item.active { background: var(--fba-surface); }
.fba-vnav-num {
    font-size: 0.72rem;
    color: var(--fba-gold);
    font-weight: 700;
}
.fba-vnav-title {
    font-size: 0.86rem;
    color: var(--fba-text);
    line-height: 1.35;
}

/* ------------------------------------------------------------------ planes & pricing */

.fba-billing-toggle-wrap {
    display: inline-flex;
    align-items: center;
    gap: var(--fba-space-md);
    background: var(--fba-surface);
    border: 1px solid var(--fba-border);
    border-radius: 30px;
    padding: 0.4rem 1.2rem;
    margin-bottom: var(--fba-space-xl);
}
.fba-billing-opt {
    font-size: 0.92rem;
    color: var(--fba-text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.fba-billing-opt.active { color: var(--fba-text-bright); font-weight: 600; }

.fba-discount-pill {
    background: rgba(63, 185, 80, 0.15);
    border: 1px solid rgba(63, 185, 80, 0.4);
    color: #7ee787;
    font-size: 0.68rem;
    font-family: var(--fba-font-mono);
    padding: 0.15rem 0.45rem;
    border-radius: 10px;
    font-weight: 700;
}

.fba-toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    cursor: pointer;
}
.fba-toggle-switch input { opacity: 0; width: 0; height: 0; }
.fba-toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--fba-surface-2);
    border: 1px solid var(--fba-border);
    border-radius: 24px;
    transition: var(--fba-dur);
}
.fba-toggle-slider::before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background: var(--fba-blue);
    border-radius: 50%;
    transition: var(--fba-dur);
}
.fba-toggle-switch input:checked + .fba-toggle-slider {
    background: var(--fba-blue);
    border-color: var(--fba-blue);
}
.fba-toggle-switch input:checked + .fba-toggle-slider::before {
    transform: translateX(20px);
    background: #090d13;
}

.fba-planes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--fba-space-lg);
    align-items: stretch;
}
.fba-plan {
    background: var(--fba-surface);
    border: 1px solid var(--fba-border-soft);
    border-radius: var(--fba-radius-lg);
    padding: var(--fba-space-xl) var(--fba-space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--fba-space-sm);
    position: relative;
    transition: border-color var(--fba-dur) var(--fba-ease), transform var(--fba-dur-fast) var(--fba-ease);
}
.fba-plan:hover { transform: translateY(-2px); }
.fba-plan-destacado {
    border-color: var(--fba-gold);
    box-shadow: 0 8px 32px rgba(210, 153, 34, 0.15);
    background: linear-gradient(180deg, #161b22 0%, #1a202c 100%);
}
.fba-plan-badge-top {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--fba-gold);
    color: #090d13;
    font-family: var(--fba-font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.2rem 0.8rem;
    border-radius: 12px;
    letter-spacing: 0.06em;
    white-space: nowrap;
}
.fba-plan-tag {
    margin: 0;
    font-family: var(--fba-font-mono);
    font-size: var(--fba-text-label);
    letter-spacing: 0.1em;
    color: var(--fba-text-muted);
}
.fba-plan-destacado .fba-plan-tag { color: var(--fba-gold); }
.fba-plan-desc {
    margin: 0 0 0.5rem;
    font-size: 0.88rem;
    color: var(--fba-text-muted);
    min-height: 2.8em;
}

.fba-plan-precio {
    margin: 0 0 var(--fba-space-sm);
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}
.fba-price-val { font-size: 2rem; font-weight: 700; color: var(--fba-text-bright); }
.fba-price-period { font-size: 0.85rem; color: var(--fba-text-muted); }

.fba-plan-features {
    list-style: none;
    margin: 0 0 var(--fba-space-lg);
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.92rem;
    flex: 1;
}
.fba-plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.fba-plan-features li::before {
    content: "✓";
    color: var(--fba-green);
    font-weight: 700;
    flex: none;
}

.fba-planes-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: var(--fba-space-xl);
    font-size: 0.88rem;
    color: var(--fba-text-muted);
    text-align: center;
}
.fba-planes-guarantee svg { color: var(--fba-green); flex: none; }

/* ------------------------------------------------------------------ faq acordeón */

.fba-faq-wrap { width: 100%; max-width: 100%; margin-inline: auto; }
.fba-faq-accordion {
    display: flex;
    flex-direction: column;
    gap: var(--fba-space-sm);
}
.fba-faq-item {
    background: var(--fba-surface);
    border: 1px solid var(--fba-border-soft);
    border-radius: var(--fba-radius);
    overflow: hidden;
    transition: border-color var(--fba-dur) var(--fba-ease);
}
.fba-faq-item[open] { border-color: var(--fba-border); }
.fba-faq-question {
    padding: var(--fba-space-md) var(--fba-space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--fba-font-display);
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--fba-text-bright);
    list-style: none;
}
.fba-faq-question::-webkit-details-marker { display: none; }
.fba-faq-icon {
    font-size: 1.2rem;
    color: var(--fba-gold);
    transition: transform var(--fba-dur) var(--fba-ease);
}
.fba-faq-item[open] .fba-faq-icon { transform: rotate(45deg); }
.fba-faq-answer {
    padding: 0 var(--fba-space-lg) var(--fba-space-md);
    font-size: 0.94rem;
    line-height: 1.6;
    color: var(--fba-text);
}
.fba-faq-answer p { margin: 0; }
.fba-faq-answer strong { color: var(--fba-text-bright); }

/* ------------------------------------------------------------------ aviso */

.fba-aviso {
    border-top: 1px solid var(--fba-border-soft);
    background: var(--fba-bg-alt);
    padding: var(--fba-space-lg) 0;
}
.fba-aviso p { margin: 0; font-size: 0.88rem; color: var(--fba-text-muted); }
.fba-aviso strong { color: var(--fba-text); }

/* ------------------------------------------------------------------ footer */

.fba-footer {
    border-top: 1px solid var(--fba-border-soft);
    background: var(--fba-bg);
    padding: var(--fba-space-2xl) 0 var(--fba-space-lg);
}
.fba-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--fba-space-xl);
    align-items: start;
}
.fba-footer-tagline {
    margin: var(--fba-space-sm) 0;
    font-size: 0.88rem;
    color: var(--fba-text-muted);
}
.fba-footer-c1-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--fba-green);
    background: var(--fba-surface);
    border: 1px solid var(--fba-border-soft);
    border-radius: 12px;
    padding: 0.25rem 0.6rem;
}

.fba-footer-links-col h4 {
    margin: 0 0 var(--fba-space-md);
    font-family: var(--fba-font-display);
    font-size: 0.95rem;
    color: var(--fba-text-bright);
}
.fba-footer-links-col nav {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.fba-footer-links-col a {
    color: var(--fba-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--fba-dur) var(--fba-ease);
}
.fba-footer-links-col a:hover { color: var(--fba-blue); }

.fba-footer-bottom {
    margin-top: var(--fba-space-xl);
    padding-top: var(--fba-space-md);
    border-top: 1px solid var(--fba-border-soft);
    text-align: center;
}

/* ------------------------------------------------------------------ frame no-home */

.fba-frame-shell { min-height: 100vh; display: flex; flex-direction: column; }
.fba-topbar-frame { position: static; }
.fba-frame-main {
    flex: 1;
    width: min(680px, 92vw);
    margin-inline: auto;
    padding: var(--fba-space-2xl) 0;
}
.fba-frame-main form, .fba-frame-main .card {
    background: var(--fba-surface);
    border: 1px solid var(--fba-border-soft);
    border-radius: var(--fba-radius-lg);
    padding: var(--fba-space-xl);
}
.fba-frame-main label { color: var(--fba-text); }
.fba-frame-main input, .fba-frame-main button {
    font-family: var(--fba-font-body);
}
.fba-frame-main input[type="text"], .fba-frame-main input[type="password"], .fba-frame-main input[type="email"] {
    width: 100%;
    background: var(--fba-bg-alt);
    border: 1px solid var(--fba-border);
    border-radius: var(--fba-radius);
    color: var(--fba-text-bright);
    padding: 0.6rem 0.8rem;
    min-height: 44px;
}
.fba-footer-frame { margin-top: auto; }

/* ------------------------------------------------------------------ motion */

.fba-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 500ms var(--fba-ease), transform 500ms var(--fba-ease);
}
.fba-reveal.fba-reveal-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .fba-reveal { opacity: 1; transform: none; transition: none; }
    .fba-pill-pulse { animation: none; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ------------------------------------------------------------------ mapa caso banamex */

.fba-pccc-banner {
    background: linear-gradient(135deg, rgba(210, 153, 34, 0.09) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(210, 153, 34, 0.4);
    border-left: 4px solid var(--fba-gold);
    border-radius: var(--fba-radius-md);
    padding: var(--fba-space-lg) var(--fba-space-xl);
    margin-bottom: var(--fba-space-xl);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 0 16px rgba(210, 153, 34, 0.1);
}
.fba-pccc-banner-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--fba-gold);
    margin-bottom: var(--fba-space-xs);
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.fba-pccc-banner-text {
    font-size: 0.92rem;
    color: var(--fba-text);
    line-height: 1.65;
    margin: 0;
}

.fba-pccc-flowchart-card {
    background: linear-gradient(135deg, rgba(22, 27, 34, 0.96) 0%, rgba(13, 17, 23, 0.98) 100%);
    border: 1px solid var(--fba-border);
    border-radius: var(--fba-radius-lg);
    padding: var(--fba-space-lg) var(--fba-space-xl);
    margin-bottom: var(--fba-space-xl);
    box-shadow: var(--fba-shadow-2);
}
.fba-flowchart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--fba-space-md);
    padding-bottom: var(--fba-space-xs);
    border-bottom: 1px solid var(--fba-border-soft);
}
.fba-flowchart-title {
    font-family: var(--fba-font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--fba-gold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.fba-pccc-flowchart-svg {
    width: 100%;
    height: auto;
    display: block;
}

.fba-pccc-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--fba-space-xl);
    margin-bottom: var(--fba-space-2xl);
    align-items: stretch;
}
.fba-pccc-card {
    background: linear-gradient(180deg, rgba(22, 27, 34, 0.96) 0%, rgba(13, 17, 23, 0.98) 100%);
    border: 1px solid var(--fba-border);
    border-radius: var(--fba-radius-lg);
    padding: var(--fba-space-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
}
.fba-pccc-card-title {
    font-family: var(--fba-font-display);
    font-size: 1.22rem;
    font-weight: 700;
    color: var(--fba-text-bright);
    margin: 0 0 var(--fba-space-lg);
    padding-bottom: var(--fba-space-sm);
    border-bottom: 1px solid var(--fba-border-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fba-pccc-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9rem;
    margin-bottom: var(--fba-space-md);
}
.fba-pccc-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    background: rgba(13, 17, 23, 0.85);
    border-bottom: 2px solid var(--fba-border);
    color: var(--fba-text-muted);
    font-family: var(--fba-font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.fba-pccc-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--fba-border-soft);
    color: var(--fba-text);
}
.fba-pccc-table tr:hover td {
    background: rgba(255, 255, 255, 0.025);
}
.fba-pccc-table tbody tr:last-child td {
    border-bottom: none;
}
.fba-pccc-num {
    text-align: right;
    font-family: var(--fba-font-mono);
    font-variant-numeric: tabular-nums;
    font-size: 0.92rem;
}
.fba-pccc-table th:nth-child(1) { width: 34%; }
.fba-pccc-table th:nth-child(2),
.fba-pccc-table th:nth-child(3),
.fba-pccc-table th:nth-child(4) { width: 16%; }
.fba-pccc-table th:nth-child(5) { width: 18%; }
.fba-pccc-table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.012);
}
.fba-pccc-total-row td {
    font-weight: 700;
    color: var(--fba-gold);
    background: rgba(210, 153, 34, 0.08) !important;
    border-top: 2px solid rgba(210, 153, 34, 0.45);
    border-bottom: 2px solid rgba(210, 153, 34, 0.45);
}

.fba-timeline-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}
.fba-timeline-item {
    position: relative;
    padding-left: 2.2rem;
    padding-bottom: var(--fba-space-md);
}
.fba-timeline-item::before {
    content: "";
    position: absolute;
    left: 0.35rem;
    top: 0.45rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--fba-cyan);
    box-shadow: 0 0 10px var(--fba-cyan);
    z-index: 2;
}
.fba-timeline-item::after {
    content: "";
    position: absolute;
    left: 0.6rem;
    top: 1rem;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--fba-cyan) 0%, rgba(56, 189, 248, 0.2) 100%);
    z-index: 1;
}
.fba-timeline-item:last-child::after { display: none; }
.fba-timeline-date {
    display: inline-block;
    font-family: var(--fba-font-mono);
    font-size: 0.78rem;
    color: var(--fba-cyan);
    font-weight: 700;
    background: rgba(56, 189, 248, 0.12);
    padding: 0.15rem 0.55rem;
    border-radius: var(--fba-radius-sm);
    border: 1px solid rgba(56, 189, 248, 0.3);
    margin-bottom: 0.25rem;
}
.fba-timeline-desc {
    font-size: 0.88rem;
    color: var(--fba-text);
    margin: 0.2rem 0 0;
    line-height: 1.55;
}
.fba-timeline-desc strong {
    color: var(--fba-text-bright);
}

.fba-theta-list {
    display: flex;
    flex-direction: column;
    gap: var(--fba-space-sm);
}
.fba-theta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--fba-space-lg);
    padding: 0.85rem 1.15rem;
    background: rgba(13, 17, 23, 0.6);
    border-radius: var(--fba-radius-sm);
    border: 1px solid var(--fba-border-soft);
    border-left: 4px solid var(--fba-border);
    transition: all var(--fba-dur) var(--fba-ease);
}
.fba-theta-row:hover {
    background: rgba(22, 27, 34, 0.85);
    transform: translateX(4px);
}
.fba-theta-row.fba-theta-conforme,
.fba-theta-row:has(.fba-badge-conformidad) {
    border-left-color: var(--fba-green);
    background: rgba(63, 185, 80, 0.04);
}
.fba-theta-row.fba-theta-indeterminado,
.fba-theta-row:has(.fba-badge-indeterminado) {
    border-left-color: var(--fba-gold);
    background: rgba(210, 153, 34, 0.04);
}
.fba-theta-row.fba-theta-incompatible,
.fba-theta-row:has(.fba-badge-incompatible) {
    border-left-color: var(--fba-red);
    background: rgba(248, 81, 73, 0.04);
}
.fba-theta-info {
    flex: 1;
}
.fba-theta-code {
    font-family: var(--fba-font-mono);
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--fba-text-bright);
    display: block;
    margin-bottom: 0.2rem;
}
.fba-theta-desc {
    font-size: 0.84rem;
    color: var(--fba-text-muted);
    line-height: 1.5;
}
.fba-status-badge {
    font-family: var(--fba-font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.65rem;
    border-radius: 4px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.fba-badge-conformidad {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.35);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.1);
}
.fba-badge-indeterminado {
    background: rgba(234, 179, 8, 0.15);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.35);
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.1);
}
.fba-badge-incompatible {
    background: rgba(248, 81, 73, 0.15);
    color: #ff7b72;
    border: 1px solid rgba(248, 81, 73, 0.35);
    box-shadow: 0 0 10px rgba(248, 81, 73, 0.1);
}

.fba-pccc-interactive-box {
    margin-top: var(--fba-space-xl);
    background: #090d13;
    border: 1px solid var(--fba-border);
    border-radius: var(--fba-radius-lg);
    overflow: hidden;
    box-shadow: var(--fba-shadow-2);
}
.fba-pccc-interactive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.25rem;
    background: var(--fba-surface);
    border-bottom: 1px solid var(--fba-border-soft);
    flex-wrap: wrap;
    gap: 0.5rem;
}
.fba-pccc-ih-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--fba-text-bright);
}
.fba-pccc-console {
    padding: 1.15rem 1.25rem;
    font-size: 0.84rem;
    line-height: 1.6;
    color: var(--fba-text-muted);
    background: #0d1117;
    min-height: 90px;
}
.fba-pccc-footer-note {
    font-size: 0.82rem;
    color: var(--fba-text-muted);
    line-height: 1.5;
    margin-top: var(--fba-space-sm);
    font-style: italic;
}

/* ------------------------------------------------------------------ responsive */

@media (max-width: 1100px) {
    .fba-hero-grid, .fba-caso-grid, .fba-simulador-grid, .fba-ids-calc-grid, .fba-pccc-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .fba-hero-grid, .fba-caso-grid, .fba-simulador-grid, .fba-ai-showcase-grid, .fba-hipergrafo-grid, .fba-c1-inspector-card, .fba-ids-calc-grid, .fba-pccc-grid {
        grid-template-columns: 1fr;
    }
    .fba-capas { grid-template-columns: 1fr; }
    .fba-planes { grid-template-columns: 1fr; }
    .fba-footer-grid { grid-template-columns: 1fr; }
    .fba-nav { display: none; }
    .fba-sello { display: none; }
    .fba-video-nav { grid-template-columns: 1fr; }
    .fba-vnav-item { border-right: none; border-bottom: 1px solid var(--fba-border-soft); }
}

@media (max-width: 640px) {
    .fba-caso-datos { grid-template-columns: 1fr; }
    .fba-hero-ctas .fba-btn { width: 100%; }
    .fba-topbar-inner { gap: var(--fba-space-sm); }
    .fba-ticker-header { flex-direction: column; align-items: flex-start; }
    .fba-ticker-metrics { grid-template-columns: 1fr 1fr; }
}
