/* =====================================================================
   GIDEON BUSINESS — v4 · Rediseño por secciones
   Cuatro lenguajes repartidos a lo largo del index (sin vidrio repetido):

     · Terminal / CLI       → Producto  [ 02 ]  +  FAQ  [ 07 ]
     · Núcleo neural + lista → Plataforma [ 03 ]
     · Blueprint / circuito → Footer [ 09 ]
     · Neural orgánico      → Cómo funciona [ 04 ]
     · Editorial luxury     → Casos de uso [ 06 ]  +  Contacto [ 08 ]

   Hero, header y pricing quedan intactos. Se carga DESPUÉS de
   gideon-redesign.css y solo estiliza las clases nuevas (*-neo / cli-* /
   bp-* / n-* / ed-*).
   ===================================================================== */

:root {
    --neo-ink: #050507;
    --neo-panel: #0d0d10;
    --neo-line: rgba(255, 255, 255, 0.12);
    --neo-line-soft: rgba(255, 255, 255, 0.06);
    --neo-blue: #1b4ef5;
    --neo-neon: #5997ff;
    --neo-lav: #9f9dfb;
    --neo-cyan: #a5dcf3;
}

/* =====================================================================
   1. TERMINAL / CLI  →  Producto + FAQ
   ===================================================================== */
.cli-window {
    background: #040406;
    border: 1px solid rgba(89, 151, 255, 0.25);
    border-radius: 14px;
    overflow: hidden;
    text-align: left;
    box-shadow:
        0 50px 90px -45px rgba(0, 0, 0, 0.9),
        0 0 50px -24px rgba(27, 78, 245, 0.5);
}
.cli-titlebar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    background: var(--neo-panel);
    border-bottom: 1px solid var(--neo-line);
}
.cli-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    flex-shrink: 0;
}
.cli-dot.r {
    background: #ff5f57;
}
.cli-dot.y {
    background: #febc2e;
}
.cli-dot.g {
    background: #28c840;
}
.cli-title {
    margin-left: 10px;
    font-family: "Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--text-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cli-status {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: "Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6bc044;
    flex-shrink: 0;
}
.cli-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #28c840;
    animation: cli-blink 1.6s ease-in-out infinite;
}

/* Pantalla: viewport de la terminal (lo llena el JS) */
.cli-screen {
    position: relative;
    height: 430px;
    overflow-y: hidden;
    padding: 20px 22px;
    font-family: "Mono", monospace;
    font-size: 13px;
    line-height: 1.9;
    color: var(--text-main);
    background:
        radial-gradient(
            120% 100% at 50% 0%,
            rgba(27, 78, 245, 0.08),
            transparent 60%
        ),
        #050507;
    scroll-behavior: smooth;
}
/* scanlines tipo CRT */
.cli-screen::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.025) 0 1px,
        transparent 1px 3px
    );
    mix-blend-mode: overlay;
}
.cli-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 9px;
    min-height: 1.9em;
}
.cli-line-out {
    padding-left: 20px;
    margin-bottom: 12px;
}
.cli-prompt {
    color: var(--neo-neon);
    flex-shrink: 0;
    font-size: 14px;
}
.cli-cmd {
    color: #f4f7f5;
    font-size: 15px;
}
.cli-cmd.cli-done {
    color: #6bc044;
}
.cli-out {
    color: var(--text-main);
    white-space: pre-wrap;
    font-size: 12.5px;
}
.cli-cursor {
    display: inline-block;
    width: 8px;
    height: 1.1em;
    background: var(--neo-neon);
    vertical-align: text-bottom;
    animation: cli-cursor-blink 1s steps(2, start) infinite;
}
@keyframes cli-cursor-blink {
    0%,
    49% {
        opacity: 1;
    }
    50%,
    100% {
        opacity: 0;
    }
}
@keyframes cli-blink {
    0%,
    100% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
}

/* ----- FAQ en modo consola ----- */
.faq-cli-wrap {
    max-width: 780px;
    margin: 0 auto;
}
.faq-cli {
    border-bottom: 1px solid var(--neo-line);
}
.faq-cli:first-child {
    border-top: 1px solid var(--neo-line);
}
.faq-cli summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 20px 6px;
    font-family: "Grotesk", sans-serif;
    font-weight: 500;
    font-size: 17px;
    color: var(--text-2);
    transition: color 0.25s ease;
}
.faq-cli summary::-webkit-details-marker {
    display: none;
}
.faq-cli summary:hover {
    color: var(--neo-neon);
}
.faq-cli .fc-prompt {
    font-family: "Mono", monospace;
    color: var(--neo-neon);
    font-size: 15px;
    flex-shrink: 0;
}
.faq-cli .fc-q {
    flex: 1;
}
.faq-cli .fc-ico {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border: 1px solid var(--neo-line);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Mono", monospace;
    font-size: 15px;
    color: var(--neo-neon);
    transition:
        transform 0.3s ease,
        background 0.3s ease;
}
.faq-cli[open] summary .fc-ico {
    transform: rotate(45deg);
    background: rgba(27, 78, 245, 0.18);
}
.faq-cli .fc-out {
    margin: 0;
    padding: 0 6px 22px 36px;
    color: var(--text-main);
    font-size: 15px;
    line-height: 1.7;
    max-width: 640px;
    font-family: "Mono", monospace;
    font-size: 13.5px;
}

/* =====================================================================
   2. GRAFO INTERACTIVO GIDEON CORE  →  Plataforma
   ===================================================================== */
.core-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
}
.core-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
}
.core-hint {
    margin: 0;
    font-family: "Mono", monospace;
    font-size: 10.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-3);
    display: flex;
    align-items: center;
    gap: 9px;
}
.core-hint-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--neo-neon);
    animation: core-blink 1.8s ease-in-out infinite;
    flex-shrink: 0;
}
.core-svg {
    width: 100%;
    max-width: 470px;
    height: auto;
}
.core-link {
    stroke: rgba(89, 151, 255, 0.28);
    stroke-width: 1;
    stroke-dasharray: 3 7;
    animation: core-dash 9s linear infinite;
    transition:
        stroke 0.3s ease,
        stroke-width 0.3s ease;
}
.core-link.is-active {
    stroke: var(--neo-cyan);
    stroke-width: 1.6;
    stroke-dasharray: none;
}
.core-ring {
    fill: none;
    stroke: rgba(89, 151, 255, 0.16);
    stroke-width: 1;
    stroke-dasharray: 2 6;
}
.core-ring.r2 {
    stroke: rgba(159, 157, 251, 0.2);
    stroke-dasharray: none;
}
.core-pulse {
    fill: none;
    stroke: rgba(159, 157, 251, 0.5);
    stroke-width: 1.5;
    animation: core-fade 3.4s ease-in-out infinite;
}
.core-center {
    fill: #0b1d4d;
    stroke: rgba(89, 151, 255, 0.7);
    stroke-width: 1.5;
}
.core-label-a {
    fill: #f4f7f5;
    font-family: "Mono", monospace;
    font-size: 15px;
    letter-spacing: 0.32em;
    pointer-events: none;
}
.core-label-b {
    fill: var(--neo-neon);
    font-family: "Mono", monospace;
    font-size: 10.5px;
    letter-spacing: 0.24em;
    pointer-events: none;
}

/* Nodos interactivos */
.core-node {
    cursor: pointer;
}
.core-hitarea {
    fill: transparent;
}
.core-dot {
    fill: var(--neo-neon);
    transition: fill 0.25s ease;
}
.core-halo {
    fill: none;
    stroke: rgba(89, 151, 255, 0.55);
    stroke-width: 1.5;
    transform-box: fill-box;
    transform-origin: center;
    animation: halo-pulse 2.8s ease-out infinite;
}
.core-node:nth-of-type(1) .core-halo {
    animation-delay: 0s;
}
.core-node:nth-of-type(2) .core-halo {
    animation-delay: 0.45s;
}
.core-node:nth-of-type(3) .core-halo {
    animation-delay: 0.9s;
}
.core-node:nth-of-type(4) .core-halo {
    animation-delay: 1.35s;
}
.core-node:nth-of-type(5) .core-halo {
    animation-delay: 1.8s;
}
.core-node:nth-of-type(6) .core-halo {
    animation-delay: 2.25s;
}
.core-node:nth-of-type(7) .core-halo {
    animation-delay: 2.7s;
}
.core-node:nth-of-type(8) .core-halo {
    animation-delay: 3.15s;
}
.core-tag {
    fill: var(--text-3);
    font-family: "Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    pointer-events: none;
    transition: fill 0.25s ease;
}

/* hover / activo: ilumina nodo + etiqueta + línea, atenúa el resto */
.core-node:hover .core-dot,
.core-node.is-active .core-dot {
    fill: #ffffff;
}
.core-node:hover .core-halo,
.core-node.is-active .core-halo {
    stroke: var(--neo-cyan);
}
.core-node:hover .core-tag,
.core-node.is-active .core-tag {
    fill: #ffffff;
}
.core-svg:hover .core-node:not(:hover):not(.is-active) {
    opacity: 0.35;
}

@keyframes core-dash {
    to {
        stroke-dashoffset: -100;
    }
}
@keyframes core-blink {
    0%,
    100% {
        opacity: 0.35;
    }
    50% {
        opacity: 1;
    }
}
@keyframes core-fade {
    0%,
    100% {
        opacity: 0.12;
    }
    50% {
        opacity: 0.45;
    }
}
@keyframes halo-pulse {
    0% {
        transform: scale(0.5);
        opacity: 0.9;
    }
    100% {
        transform: scale(1.7);
        opacity: 0;
    }
}

/* Panel de detalle */
.core-info-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.core-info-card {
    position: relative;
    padding: 36px 32px;
    border: 1px solid var(--neo-line);
    border-radius: 16px;
    background:
        radial-gradient(
            120% 100% at 0% 0%,
            rgba(27, 78, 245, 0.14),
            transparent 55%
        ),
        var(--neo-ink);
    overflow: hidden;
    box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.8);
}
.core-info-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--neo-neon),
        transparent
    );
    opacity: 0.6;
}
.core-info-card.is-swap {
    animation: info-swap 0.4s ease;
}
.core-info-idx {
    display: block;
    font-family: "Grotesk", sans-serif;
    font-weight: 500;
    font-size: 56px;
    line-height: 1;
    letter-spacing: -0.03em;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(89, 151, 255, 0.6);
    margin-bottom: 16px;
}
.core-info-title {
    font-family: "Grotesk", sans-serif;
    font-weight: 500;
    font-size: 26px;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--text-2);
    margin: 0 0 12px;
}
.core-info-desc {
    color: var(--text-main);
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 22px;
}
.core-info-cmd {
    display: inline-block;
    font-family: "Mono", monospace;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--neo-neon);
    background: rgba(27, 78, 245, 0.12);
    border: 1px solid rgba(89, 151, 255, 0.25);
    border-radius: 8px;
    padding: 7px 12px;
}
.core-info-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-family: "Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-3);
}
.core-info-meta .core-meta-count {
    color: var(--neo-neon);
}
@keyframes info-swap {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----- Footer en modo blueprint ----- */
.tf-footer {
    position: relative;
}
.tf-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(rgba(89, 151, 255, 0.12) 1px, transparent 1.4px),
        linear-gradient(rgba(89, 151, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(89, 151, 255, 0.04) 1px, transparent 1px);
    background-size:
        24px 24px,
        24px 24px,
        24px 24px;
    opacity: 0.6;
}
.tf-footer .container,
.tf-footer .footer-body {
    position: relative;
    z-index: 1;
}
.bp-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 40px;
    justify-content: center;
    align-items: baseline;
    padding: 18px 20px;
    margin-bottom: 48px;
    border: 1px dashed rgba(89, 151, 255, 0.25);
    border-radius: 10px;
    font-family: "Mono", monospace;
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-3);
}
.bp-strip b {
    color: var(--neo-neon);
    font-weight: 400;
}
.bp-strip .bp-live {
    color: #6bc044;
}

/* =====================================================================
   3. NEURAL ORGÁNICO  →  Cómo funciona
   ===================================================================== */
.neural-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding: 20px 0;
    background:
        radial-gradient(rgba(89, 151, 255, 0.1) 1px, transparent 1.5px),
        radial-gradient(rgba(159, 157, 251, 0.09) 1px, transparent 1.5px);
    background-size:
        42px 42px,
        42px 42px;
    background-position:
        0 0,
        21px 21px;
}
/* línea conectora entre nodos */
.neural-timeline::before {
    content: "";
    position: absolute;
    top: 48px;
    left: 16.66%;
    right: 16.66%;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--neo-neon),
        var(--neo-lav) 50%,
        var(--neo-cyan)
    );
    opacity: 0.55;
    z-index: 0;
}
.n-step {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 8px;
}
.n-node {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Mono", monospace;
    font-size: 14px;
    letter-spacing: 0.06em;
    color: #fff;
    background: radial-gradient(
        circle at 35% 30%,
        rgba(255, 255, 255, 0.25),
        rgba(27, 78, 245, 0.9) 55%,
        rgba(20, 50, 160, 0.95) 100%
    );
    border: 1px solid rgba(159, 157, 251, 0.5);
    box-shadow:
        0 0 0 0 rgba(89, 151, 255, 0.4),
        0 18px 34px -14px rgba(27, 78, 245, 0.7);
    animation: n-pulse 3s ease-out infinite;
}
.n-step:nth-child(2) .n-node {
    animation-delay: 0.6s;
    background: radial-gradient(
        circle at 35% 30%,
        rgba(255, 255, 255, 0.25),
        rgba(120, 110, 245, 0.9) 55%,
        rgba(90, 80, 200, 0.95) 100%
    );
}
.n-step:nth-child(3) .n-node {
    animation-delay: 1.2s;
    background: radial-gradient(
        circle at 35% 30%,
        rgba(255, 255, 255, 0.22),
        rgba(60, 160, 230, 0.9) 55%,
        rgba(40, 120, 200, 0.95) 100%
    );
}
@keyframes n-pulse {
    0% {
        box-shadow:
            0 0 0 0 rgba(89, 151, 255, 0.45),
            0 18px 34px -14px rgba(27, 78, 245, 0.7);
    }
    70% {
        box-shadow:
            0 0 0 16px rgba(89, 151, 255, 0),
            0 18px 34px -14px rgba(27, 78, 245, 0.7);
    }
    100% {
        box-shadow:
            0 0 0 0 rgba(89, 151, 255, 0),
            0 18px 34px -14px rgba(27, 78, 245, 0.7);
    }
}
.n-step h3 {
    font-family: "Grotesk", sans-serif;
    font-weight: 500;
    font-size: 21px;
    color: var(--text-2);
    margin-bottom: 12px;
}
.n-step p {
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.7;
    margin: 0 auto;
    max-width: 300px;
}

/* =====================================================================
   4. EDITORIAL LUXURY  →  Casos de uso + Contacto
   ===================================================================== */
.ed-marquee {
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--neo-line);
    border-bottom: 1px solid var(--neo-line);
    padding: 40px 0;
}
.ed-slide {
    display: flex;
    gap: 90px;
    align-items: flex-start;
}
.ed-marquee::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        #000 0%,
        rgba(0, 0, 0, 0) 14%,
        rgba(0, 0, 0, 0) 86%,
        #000 100%
    );
}
.ed-tes {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding: 0 56px;
    min-width: 440px;
    max-width: 520px;
}
.ed-quote {
    font-family: "Grotesk", sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--text-2);
    margin: 0;
}
.ed-quote::before {
    content: "“";
    color: var(--neo-neon);
}
.ed-quote::after {
    content: "”";
    color: var(--neo-neon);
}
.ed-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ed-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.ed-name {
    font-family: "Grotesk", sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-2);
    display: block;
}
.ed-role {
    font-family: "Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
    color: var(--text-3);
}

/* ----- CTA editorial ----- */
.ed-cta {
    text-align: center;
    padding: 110px 0 90px;
}
.ed-eyebrow {
    font-family: "Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--neo-neon);
    margin-bottom: 30px;
}
.ed-title {
    font-family: "Grotesk", sans-serif;
    font-weight: 500;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.03em;
    background: linear-gradient(
        180deg,
        #f4f7f5 0%,
        rgba(244, 247, 245, 0.8) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 28px;
}
.ed-sub {
    color: var(--text-main);
    font-size: 17px;
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto 44px;
}
.ed-note {
    font-family: "Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--text-3);
    margin-top: 22px;
}

/* =====================================================================
   5. RESPONSIVE
   ===================================================================== */
@media (max-width: 991px) {
    .core-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .core-svg {
        max-width: 320px;
    }
    .neural-timeline {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .neural-timeline::before {
        display: none;
    }
}
@media (max-width: 575px) {
    .cli-screen {
        height: 360px;
        padding: 16px;
        font-size: 12px;
    }
    .cli-line-out {
        padding-left: 12px;
    }
    .ed-tes {
        min-width: 300px;
        padding: 0 32px;
    }
    .ed-quote {
        font-size: 20px;
    }
    .ed-cta {
        padding: 70px 0 60px;
    }
}
