/* ═══════════════════════════════════════════════════════════════════════════
   BOTTLENECK — rediseño "landing premium + cockpit HUD" (animado con GSAP)
   Envuelve el calculador (.bn-container) sin tocar su interior.
═══════════════════════════════════════════════════════════════════════════ */

.bnx {
    --bx-bg:      #0d0e11;
    --bx-bg-2:    #121317;
    --bx-surface: #16181d;
    --bx-card:    #181a20;
    --bx-border:  rgba(255,255,255,0.08);
    --bx-border-2: rgba(255,123,58,0.28);
    --bx-text:    #e7e8ea;
    --bx-dim:     #9a9ca0;
    --bx-mut:     #6a6c70;
    --bx-accent:  #ff7b3a;
    --bx-accent-2:#ff9e5e;
    --bx-glow:    rgba(255,123,58,0.5);
    --bx-mono: 'Courier New', ui-monospace, monospace;
    --bx-sans: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    display: block;
    background: var(--bx-bg);
    color: var(--bx-text);
    font-family: var(--bx-sans);
    overflow-x: clip;
}
.bnx *, .bnx *::before, .bnx *::after { box-sizing: border-box; }

/* ════════════════════════ HERO ════════════════════════ */
.bnx-hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 130px 24px 70px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 90% 60% at 50% -10%, rgba(255,123,58,0.10), transparent 60%),
        linear-gradient(180deg, var(--bx-bg-2), var(--bx-bg));
}
.bnx-grid {
    position: absolute; left: 0; right: 0; top: -15%; height: 135%;
    background-image:
        linear-gradient(rgba(255,123,58,0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,123,58,0.07) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 32%, #000 25%, transparent 72%);
            mask-image: radial-gradient(ellipse 75% 60% at 50% 32%, #000 25%, transparent 72%);
    pointer-events: none;
}
.bnx-scan {
    position: absolute; inset: 0; pointer-events: none; z-index: 1;
    background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0,0,0,0.10) 3px 4px);
    opacity: 0.4;
}
.bnx-hero-glow {
    position: absolute; left: 50%; top: 14%; width: min(760px, 90vw); height: 520px;
    transform: translateX(-50%); pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(255,107,53,0.22), transparent 66%);
    filter: blur(26px);
}
.bnx-hero-inner {
    position: relative; z-index: 2;
    max-width: 920px; width: 100%; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.bnx-eyebrow {
    font-family: var(--bx-mono); font-size: 0.82rem; letter-spacing: 0.28em;
    text-transform: uppercase; color: var(--bx-accent);
    padding: 6px 14px; border: 1px solid var(--bx-border-2); border-radius: 30px;
    background: rgba(255,123,58,0.06);
}
.bnx-title {
    margin: 0; font-weight: 900; line-height: 0.92; letter-spacing: -2px;
    font-size: clamp(2.8rem, 9vw, 6.4rem); color: #fff;
    text-shadow: 0 0 60px rgba(255,123,58,0.25);
}
.bnx-line { display: block; overflow: hidden; padding: 0 2px; }
.bnx-word { display: inline-block; }
.bnx-word--accent {
    background: linear-gradient(120deg, var(--bx-accent), var(--bx-accent-2));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 30px var(--bx-glow));
}
.bnx-sub {
    margin: 0; max-width: 620px; font-size: clamp(1rem, 1.4vw, 1.18rem);
    color: var(--bx-dim); line-height: 1.6;
}
.bnx-sub strong { color: var(--bx-text); }

.bnx-hero-stats { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.bnx-stat {
    min-width: 132px; padding: 16px 22px;
    background: rgba(255,255,255,0.025); border: 1px solid var(--bx-border);
    border-radius: 12px; backdrop-filter: blur(6px);
    display: flex; flex-direction: column; gap: 2px;
}
.bnx-stat strong {
    font-family: var(--bx-mono); font-size: 1.9rem; font-weight: 700; color: #fff;
    line-height: 1; font-variant-numeric: tabular-nums;
}
.bnx-stat span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--bx-mut); }

.bnx-scrollcue {
    margin-top: 14px; display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
    color: var(--bx-dim); text-decoration: none; font-size: 0.76rem; letter-spacing: 0.14em;
    text-transform: uppercase; transition: color 0.2s;
}
.bnx-scrollcue:hover { color: var(--bx-accent); }
.bnx-scrollcue i { animation: bnxBounce 1.8s ease-in-out infinite; font-size: 0.9rem; color: var(--bx-accent); }
@keyframes bnxBounce { 0%,100% { transform: translateY(0); opacity: 0.7; } 50% { transform: translateY(7px); opacity: 1; } }

/* ════════════════════════ CONSOLA (calculador) ════════════════════════ */
.bnx-console { padding: 0 20px 70px; margin-top: -30px; position: relative; z-index: 3; }
.bnx-frame {
    max-width: 1240px; margin: 0 auto;
    background: linear-gradient(180deg, var(--bx-surface), var(--bx-bg-2));
    border: 1px solid var(--bx-border);
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,123,58,0.05),
                inset 0 1px 0 rgba(255,255,255,0.04);
    overflow: hidden;
    position: relative;
}
/* esquinas tipo HUD */
.bnx-frame::before, .bnx-frame::after {
    content: ''; position: absolute; width: 16px; height: 16px; pointer-events: none;
    border-color: var(--bx-accent); border-style: solid; opacity: 0.55;
}
.bnx-frame::before { top: 44px; left: 10px; border-width: 2px 0 0 2px; }
.bnx-frame::after  { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }
.bnx-frame-bar {
    display: flex; align-items: center; gap: 10px;
    padding: 0 16px; height: 40px;
    background: rgba(0,0,0,0.25); border-bottom: 1px solid var(--bx-border);
    font-family: var(--bx-mono);
}
.bnx-dot { width: 11px; height: 11px; border-radius: 50%; background: #3a3b3d; }
.bnx-dot:nth-child(1) { background: #ff5f56; } .bnx-dot:nth-child(2) { background: #ffbd2e; } .bnx-dot:nth-child(3) { background: #27c93f; }
.bnx-frame-title { margin-left: 8px; font-size: 0.8rem; color: var(--bx-dim); }
.bnx-frame-status { margin-left: auto; font-size: 0.74rem; color: var(--bx-mut); display: inline-flex; align-items: center; gap: 7px; }
.bnx-frame-status i { font-size: 0.5rem; color: #27c93f; animation: bnxPulse 2s ease-in-out infinite; }
@keyframes bnxPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.bnx-frame-body { padding: 28px 8px 8px; }
.bnx-frame-body .bn-container { padding-top: 0; }

/* ════════════════════════ SECCIONES (scroll reveal) ════════════════════════ */
.bnx-section { max-width: 1100px; margin: 0 auto; padding: 56px 24px; }
.bnx-section-head { margin-bottom: 28px; }
.bnx-section-num {
    font-family: var(--bx-mono); font-size: 0.95rem; font-weight: 700; color: var(--bx-accent);
    letter-spacing: 0.1em;
}
.bnx-section-head h2 { margin: 6px 0 6px; font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.bnx-section-head p { margin: 0; color: var(--bx-dim); font-size: 1rem; }

.bnx-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bnx-card {
    background: var(--bx-card); border: 1px solid var(--bx-border); border-radius: 14px;
    padding: 22px; position: relative; overflow: hidden;
    transition: border-color 0.25s, transform 0.25s;
}
.bnx-card::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--bx-accent), transparent 60%); opacity: 0.6;
}
.bnx-card:hover { border-color: var(--bx-border-2); transform: translateY(-3px); }
.bnx-card--wide { grid-column: 1 / -1; }
.bnx-card-tag {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--bx-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--bx-accent); margin-bottom: 12px;
}
.bnx-card p { margin: 0; color: var(--bx-dim); line-height: 1.65; font-size: 0.95rem; }
.bnx-card p strong { color: var(--bx-text); }

.bnx-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.bnx-list li {
    position: relative; padding-left: 26px; color: var(--bx-dim); line-height: 1.55; font-size: 0.95rem;
}
.bnx-list li::before {
    content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; left: 0; top: 1px; color: var(--bx-accent); font-size: 0.75rem;
}

/* Pasos numerados (cómo lo calculamos) */
.bnx-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bnx-step {
    display: flex; gap: 16px; align-items: flex-start;
    background: var(--bx-card); border: 1px solid var(--bx-border); border-radius: 14px; padding: 20px;
}
.bnx-step-n {
    flex-shrink: 0; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
    font-family: var(--bx-mono); font-weight: 800; font-size: 0.95rem; color: var(--bx-accent);
    border: 1px solid var(--bx-border-2); border-radius: 10px; background: rgba(255,123,58,0.07);
}
.bnx-step h3 { margin: 2px 0 5px; font-size: 1.02rem; color: #fff; font-weight: 700; }
.bnx-step p { margin: 0; color: var(--bx-dim); font-size: 0.9rem; line-height: 1.55; }
.bnx-step p strong { color: var(--bx-text); }

/* CTA */
.bnx-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.bnx-btn {
    display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 10px;
    font-weight: 700; font-size: 0.9rem; text-decoration: none; border: 1px solid transparent;
    transition: filter 0.18s, border-color 0.18s, background 0.18s, transform 0.18s;
}
.bnx-btn--primary { background: var(--bx-accent); color: #15161a; box-shadow: 0 10px 30px rgba(255,123,58,0.3); }
.bnx-btn--primary:hover { filter: brightness(1.08); transform: translateY(-2px); }
.bnx-btn--ghost { background: var(--bx-card); color: var(--bx-text); border-color: var(--bx-border); }
.bnx-btn--ghost:hover { border-color: var(--bx-accent); }
.bnx-btn i { color: inherit; }
.bnx-btn--ghost i { color: var(--bx-accent); }

/* ════════════════════════ RESPONSIVE ════════════════════════ */
@media (max-width: 760px) {
    .bnx-cards, .bnx-steps { grid-template-columns: 1fr; }
    .bnx-hero { min-height: 86vh; padding-top: 110px; }
    .bnx-console { padding: 0 12px 50px; }
    .bnx-frame-body { padding: 20px 4px 4px; }
}

/* ════════════════════════ TEMA CLARO ════════════════════════ */
.light-theme .bnx {
    --bx-bg: #f3f4f6; --bx-bg-2: #ffffff; --bx-surface: #ffffff; --bx-card: #ffffff;
    --bx-border: rgba(0,0,0,0.08); --bx-text: #15161a; --bx-dim: #51535a; --bx-mut: #8a8c92;
}
.light-theme .bnx-title { color: #15161a; text-shadow: none; }
.light-theme .bnx-frame { box-shadow: 0 20px 50px rgba(0,0,0,0.12); }
.light-theme .bnx-btn--primary { color: #fff; }
.light-theme .bnx-scan { opacity: 0.15; }
