/* ==========================================================================
   INDEX — SECCIONES DE CONTENIDO (scroll normal, debajo del hero)
   --------------------------------------------------------------------------
   Explica las funciones de la web con "símbolos hechos con CSS" (chip, barras,
   medidor, rejilla, burbujas, documento). Mantiene la estética terminal /
   monoespaciada naranja del sitio y soporta tema claro/oscuro.
   ========================================================================== */

.fx {
    --p: #ff7b3a;
    --p2: #ff9a5a;
    --fx-bg: #121212;   /* color base (para nodos/anillos que tapan la línea) */
    position: relative;
    z-index: 4;
    /* Base rgb(18,18,18) con una textura de puntos muy sutil (como el resto del sitio) */
    background-color: #121212;
    background-image: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.045) 1px, transparent 0);
    background-size: 60px 60px;
}
.light-theme .fx {
    --fx-bg: #f4f4f4;
    background-color: #f4f4f4;
    background-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.05) 1px, transparent 0);
}

.fx-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Cabecera de sección (eyebrow terminal + título + línea) ---- */
.fx-section { padding: 124px 0; }
.fx-section + .fx-section { padding-top: 0; }

.fx-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Courier New', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--p2);
    margin: 0 0 22px;
}
.fx-eyebrow::before {
    content: "";
    width: 26px;
    height: 1px;
    background: var(--p);
}

.fx-title {
    font-family: 'Courier New', monospace;
    font-size: clamp(1.7rem, 3.6vw, 2.7rem);
    font-weight: 900;
    line-height: 1.14;
    letter-spacing: -0.5px;
    text-transform: none;
    color: #fff;
    margin: 0 0 18px;
    max-width: 780px;
}
.fx-title span {
    background: linear-gradient(135deg, var(--p), var(--p2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.light-theme .fx-title { color: #17181c; }

.fx-lead {
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.6);
    max-width: 640px;
    margin: 0;
    letter-spacing: 0.2px;
}
.light-theme .fx-lead { color: rgba(0,0,0,0.55); }

/* ==========================================================================
   1) INTRO / MANIFIESTO — bloque terminal decorativo + texto
   ========================================================================== */
.fx-intro {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 76px;
}

.fx-intro-terminal {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    background: rgba(255,255,255,0.02);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.light-theme .fx-intro-terminal {
    border-color: rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.7);
    box-shadow: 0 24px 60px rgba(0,0,0,0.08);
}

.fx-term-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.25);
}
.light-theme .fx-term-bar {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.08);
}
.fx-term-bar i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: block;
}
.fx-term-bar i:nth-child(1) { background: #ff5f56; }
.fx-term-bar i:nth-child(2) { background: #ffbd2e; }
.fx-term-bar i:nth-child(3) { background: #27c93f; }
.fx-term-bar span {
    margin-left: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.74rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.1em;
}
.light-theme .fx-term-bar span { color: rgba(0,0,0,0.4); }

.fx-term-body {
    padding: 28px 26px 32px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 2.05;
}
.fx-term-body .ln { display: block; white-space: pre-wrap; }
.fx-term-body .c-prompt { color: var(--p); }
.fx-term-body .c-cmd    { color: #fff; }
.fx-term-body .c-out    { color: rgba(255,255,255,0.55); }
.fx-term-body .c-ok     { color: #27c93f; }
.light-theme .fx-term-body .c-cmd { color: #17181c; }
.light-theme .fx-term-body .c-out { color: rgba(0,0,0,0.55); }

.fx-term-cursor {
    display: inline-block;
    width: 9px;
    height: 1.05em;
    vertical-align: -2px;
    background: var(--p);
    animation: fxBlink 1.05s steps(1) infinite;
}
@keyframes fxBlink { 50% { opacity: 0; } }

/* ==========================================================================
   2) FUNCIONES — rejilla de tarjetas con SÍMBOLOS CSS
   ========================================================================== */
.fx-zz {
    margin-top: 70px;
}

/* Cada función: fila que alterna derecha/izquierda (zigzag) */
.fx-zz-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 46px;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 62px;
    text-decoration: none;
}
.fx-zz-item:last-child { margin-bottom: 0; }
/* impares -> a la derecha, recuadro a la derecha; pares -> a la izquierda */
.fx-zz-item:nth-child(odd)  { margin-left: auto;  flex-direction: row-reverse; text-align: right; }
.fx-zz-item:nth-child(even) { margin-right: auto; text-align: left; }

/* ---- Recuadro (solo el símbolo) con acento lateral ---- */
.fx-zz-box {
    position: relative;
    width: 176px;
    height: 160px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.09);
    background:
        radial-gradient(120% 120% at 50% 0%, rgba(255,123,58,0.06), transparent 60%),
        rgba(255,255,255,0.03);
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s ease;
}
.light-theme .fx-zz-box {
    border-color: rgba(0,0,0,0.09);
    background:
        radial-gradient(120% 120% at 50% 0%, rgba(255,123,58,0.07), transparent 60%),
        rgba(255,255,255,0.72);
}
/* Acento lateral: barra vertical de color en el borde exterior del recuadro */
.fx-zz-box::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--p), #e85d2a);
}
.fx-zz-item:nth-child(odd)  .fx-zz-box::before { right: 0; }
.fx-zz-item:nth-child(even) .fx-zz-box::before { left: 0; }

.fx-zz-item:hover .fx-zz-box {
    border-color: rgba(255,123,58,0.4);
    transform: translateY(-5px);
    box-shadow: 0 16px 42px rgba(255,123,58,0.12);
}

.fx-zz-num {
    position: absolute;
    top: 14px;
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: rgba(255,123,58,0.55);
}
.fx-zz-item:nth-child(odd)  .fx-zz-num { left: 16px; }
.fx-zz-item:nth-child(even) .fx-zz-num { right: 16px; }

/* ---- Texto FUERA del recuadro ---- */
.fx-zz-text {
    flex: 0 1 470px;
    min-width: 0;
}
.fx-zz-eyebrow {
    display: block;
    font-family: 'Courier New', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,123,58,0.75);
    margin: 0 0 8px;
}
.fx-zz-title {
    font-family: 'Courier New', monospace;
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #fff;
    margin: 0 0 12px;
    transition: color 0.25s ease;
}
.light-theme .fx-zz-title { color: #17181c; }
.fx-zz-item:hover .fx-zz-title { color: var(--p); }
.fx-zz-desc {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.72;
    color: rgba(255,255,255,0.55);
    margin: 0;
}
.light-theme .fx-zz-desc { color: rgba(0,0,0,0.55); }
.fx-zz-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 18px;
    font-family: 'Courier New', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--p);
    opacity: 0.85;
    transition: gap 0.25s ease, opacity 0.25s ease;
}
.fx-zz-item:hover .fx-zz-link { gap: 15px; opacity: 1; }

/* ---------- El marco del símbolo (caja con esquinas tipo terminal) ---------- */
.fx-sym {
    position: relative;
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255,123,58,0.06);
    border: 1px solid rgba(255,123,58,0.16);
    flex-shrink: 0;
}
/* esquinas en L (dos con ::before, dos con ::after mediante box-shadow) */
.fx-sym::before,
.fx-sym::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid var(--p);
    opacity: 0.7;
}
.fx-sym::before {
    top: 7px; left: 7px;
    border-right: 0; border-bottom: 0;
}
.fx-sym::after {
    bottom: 7px; right: 7px;
    border-left: 0; border-top: 0;
}
.fx-card:hover .fx-sym {
    background: rgba(255,123,58,0.12);
    border-color: rgba(255,123,58,0.3);
}

/* ---------- SÍMBOLO: CHIP / CPU (Configurador) ---------- */
.g-chip {
    position: relative;
    width: 26px;
    height: 26px;
    border: 2px solid var(--p);
    border-radius: 5px;
}
.g-chip::before {
    content: "";
    position: absolute;
    inset: 5px;
    border: 2px solid var(--p);
    border-radius: 2px;
    opacity: 0.45;
}
.g-chip::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 6px;
    background:
        repeating-linear-gradient(90deg, var(--p) 0 2px, transparent 2px 6px) center top   / 18px 4px no-repeat,
        repeating-linear-gradient(90deg, var(--p) 0 2px, transparent 2px 6px) center bottom/ 18px 4px no-repeat,
        repeating-linear-gradient(0deg,  var(--p) 0 2px, transparent 2px 6px) left   center/ 4px 18px no-repeat,
        repeating-linear-gradient(0deg,  var(--p) 0 2px, transparent 2px 6px) right  center/ 4px 18px no-repeat;
}

/* ---------- SÍMBOLO: BARRAS (Comparador) ---------- */
.g-bars {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    width: 32px;
    height: 28px;
}
.g-bars i {
    display: block;
    width: 7px;
    border-radius: 2px 2px 0 0;
    background: var(--p);
}
.g-bars i:nth-child(1) { height: 45%; opacity: 0.55; }
.g-bars i:nth-child(2) { height: 75%; opacity: 0.8; }
.g-bars i:nth-child(3) { height: 100%; }

/* ---------- SÍMBOLO: REJILLA (Catálogo) ---------- */
.g-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    width: 30px;
    height: 30px;
}
.g-grid i {
    display: block;
    aspect-ratio: 1;
    border-radius: 2px;
    background: var(--p);
    opacity: 0.85;
}
.g-grid i:nth-child(2),
.g-grid i:nth-child(4),
.g-grid i:nth-child(6),
.g-grid i:nth-child(8) { opacity: 0.4; }

/* ---------- SÍMBOLO: MEDIDOR / GAUGE (Bottleneck) ---------- */
.g-gauge {
    position: relative;
    width: 36px;
    height: 18px;
    border: 3px solid var(--p);
    border-bottom: 0;
    border-radius: 36px 36px 0 0;
}
.g-gauge::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--p);
    transform: translateX(-50%);
}
.g-gauge::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 2px;
    height: 15px;
    border-radius: 2px;
    background: var(--p);
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(38deg);
}

/* ---------- SÍMBOLO: BURBUJAS / CHAT (Comunidad) ---------- */
.g-chat {
    position: relative;
    width: 32px;
    height: 28px;
}
.g-chat::before,
.g-chat::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 15px;
    border: 2px solid var(--p);
    border-radius: 7px;
}
.g-chat::before { top: 0; left: 0; }
.g-chat::after  { bottom: 0; right: 0; opacity: 0.5; }

/* ---------- SÍMBOLO: DOCUMENTO / GUÍA (Guías) ---------- */
.g-doc {
    position: relative;
    width: 24px;
    height: 30px;
    border: 2px solid var(--p);
    border-radius: 3px;
    padding: 6px 4px 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.g-doc i {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--p);
}
.g-doc i:nth-child(1) { width: 100%; }
.g-doc i:nth-child(2) { width: 65%; opacity: 0.6; }
.g-doc i:nth-child(3) { width: 85%; opacity: 0.6; }

/* ==========================================================================
   2b) "Y ADEMÁS" — tira compacta de herramientas extra
   ========================================================================== */
.fx-extra {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 40px;
}
.fx-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 20px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.02);
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.72);
    text-decoration: none;
    transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.fx-chip i { color: var(--p); font-size: 0.85rem; }
.fx-chip:hover {
    border-color: rgba(255,123,58,0.4);
    background: rgba(255,123,58,0.08);
    color: #fff;
}
.fx-chip.is-soon { opacity: 0.55; cursor: default; }
.fx-chip.is-soon small {
    font-size: 0.7em;
    color: var(--p);
    letter-spacing: 0.05em;
}
.light-theme .fx-chip {
    border-color: rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.6);
    color: rgba(0,0,0,0.7);
}
.light-theme .fx-chip:hover { color: #17181c; }

/* ==========================================================================
   3) CÓMO FUNCIONA — timeline de proceso con conector que se dibuja
   ========================================================================== */
.fx-flow {
    position: relative;
    margin-top: 74px;
}

/* Línea conectora (de centro de nodo a centro de nodo) */
.fx-flow-line {
    position: absolute;
    top: 34px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    border-radius: 2px;
    background: rgba(255,123,58,0.16);
    overflow: hidden;
}
.fx-flow-progress {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--p), var(--p2));
    box-shadow: 0 0 12px rgba(255,123,58,0.55);
    transition: width 1.6s cubic-bezier(0.22,1,0.36,1) 0.15s, height 1.6s cubic-bezier(0.22,1,0.36,1) 0.15s;
}
.fx-flow.in .fx-flow-progress { width: 100%; }

.fx-flow-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.fx-flow-step {
    position: relative;
    text-align: center;
}

/* Nodo circular con el número (tapa la línea con un anillo del color base) */
.fx-flow-node {
    position: relative;
    z-index: 1;
    width: 68px;
    height: 68px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--fx-bg);
    border: 1.5px solid rgba(255,123,58,0.35);
    box-shadow: 0 0 0 7px var(--fx-bg);
    opacity: 0;
    transform: scale(0.55);
    transition: opacity 0.5s ease,
                transform 0.55s cubic-bezier(0.34,1.56,0.64,1),
                border-color 0.25s ease, box-shadow 0.25s ease;
}
.fx-flow.in .fx-flow-node { opacity: 1; transform: scale(1); }
.fx-flow.in .fx-flow-step:nth-child(1) .fx-flow-node { transition-delay: 0.15s; }
.fx-flow.in .fx-flow-step:nth-child(2) .fx-flow-node { transition-delay: 0.33s; }
.fx-flow.in .fx-flow-step:nth-child(3) .fx-flow-node { transition-delay: 0.51s; }
.fx-flow.in .fx-flow-step:nth-child(4) .fx-flow-node { transition-delay: 0.69s; }

.fx-flow-node-num {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--p);
    transition: color 0.25s ease, -webkit-text-stroke-color 0.25s ease;
}

.fx-flow-step:hover .fx-flow-node {
    border-color: var(--p);
    box-shadow: 0 0 0 7px var(--fx-bg), 0 0 24px rgba(255,123,58,0.4);
}
.fx-flow-step:hover .fx-flow-node-num {
    color: var(--p);
    -webkit-text-stroke-color: transparent;
}

.fx-flow-tag {
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: rgba(255,123,58,0.72);
    margin-bottom: 9px;
}
.fx-flow-title {
    font-family: 'Courier New', monospace;
    font-size: 1.02rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    margin: 0 0 9px;
}
.light-theme .fx-flow-title { color: #17181c; }
.fx-flow-desc {
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.52);
    margin: 0 auto;
    max-width: 210px;
}
.light-theme .fx-flow-desc { color: rgba(0,0,0,0.55); }

@media (prefers-reduced-motion: reduce) {
    .fx-flow-node, .fx-flow-progress { transition: none; }
}

/* Timeline vertical en pantallas estrechas */
@media (max-width: 760px) {
    .fx-flow-track { grid-template-columns: 1fr; gap: 34px; }
    .fx-flow-line {
        top: 4px; bottom: 4px; left: 33px; right: auto;
        width: 2px; height: auto;
    }
    .fx-flow-progress { width: 100%; height: 0; }
    .fx-flow.in .fx-flow-progress { height: 100%; }
    .fx-flow-step {
        display: grid;
        grid-template-columns: 68px 1fr;
        align-items: start;
        gap: 22px;
        text-align: left;
    }
    .fx-flow-node { margin: 0; }
    .fx-flow-desc { margin: 0; max-width: none; }
}

/* Marco de esquinas (tipo terminal) reutilizable para bloques */
.fx-corners::before,
.fx-corners::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,123,58,0.5);
    pointer-events: none;
}
.fx-corners::before {
    top: 14px; left: 14px;
    border-right: 0; border-bottom: 0;
    border-radius: 5px 0 0 0;
}
.fx-corners::after {
    bottom: 14px; right: 14px;
    border-left: 0; border-top: 0;
    border-radius: 0 0 5px 0;
}

/* ==========================================================================
   4) STATS — banda de cifras
   ========================================================================== */
.fx-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    padding: 58px 44px;
    border-radius: 20px;
    border: 1px solid rgba(255,123,58,0.18);
    background:
        radial-gradient(120% 160% at 50% -20%, rgba(255,123,58,0.08) 0%, transparent 60%),
        rgba(255,255,255,0.02);
}
.light-theme .fx-stats {
    border-color: rgba(255,123,58,0.25);
    background:
        radial-gradient(120% 160% at 50% -20%, rgba(255,123,58,0.1) 0%, transparent 60%),
        rgba(255,255,255,0.7);
}
.fx-stat { text-align: center; position: relative; }
.fx-stat + .fx-stat::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 50%;
    transform: translateY(-50%);
    height: 46px;
    width: 1px;
    background: rgba(255,255,255,0.09);
}
.light-theme .fx-stat + .fx-stat::before { background: rgba(0,0,0,0.1); }
.fx-stat strong {
    display: block;
    font-family: 'Courier New', monospace;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--p), var(--p2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.fx-stat span {
    display: block;
    margin-top: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.45);
}
.light-theme .fx-stat span { color: rgba(0,0,0,0.45); }

/* ==========================================================================
   5) CTA FINAL
   ========================================================================== */
.fx-cta {
    text-align: center;
    padding: 76px 28px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.08);
    background:
        radial-gradient(90% 130% at 50% 0%, rgba(255,123,58,0.12) 0%, transparent 58%),
        rgba(255,255,255,0.015);
    overflow: hidden;
    position: relative;
}
.light-theme .fx-cta {
    border-color: rgba(0,0,0,0.08);
    background:
        radial-gradient(90% 130% at 50% 0%, rgba(255,123,58,0.14) 0%, transparent 58%),
        rgba(255,255,255,0.6);
}
.fx-cta .fx-eyebrow { justify-content: center; }
.fx-cta .fx-eyebrow::before { display: none; }
.fx-cta-title {
    font-family: 'Courier New', monospace;
    font-size: clamp(1.8rem, 4.4vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
    text-transform: none;
    color: #fff;
    margin: 0 auto 14px;
    max-width: 620px;
}
.fx-cta-title span {
    background: linear-gradient(135deg, var(--p), var(--p2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.light-theme .fx-cta-title { color: #17181c; }
.fx-cta-sub {
    font-family: 'Courier New', monospace;
    font-size: 0.98rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.58);
    max-width: 520px;
    margin: 0 auto 30px;
}
.light-theme .fx-cta-sub { color: rgba(0,0,0,0.55); }
.fx-cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.fx-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 32px;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s ease, background 0.3s ease;
}
.fx-btn-primary {
    background: linear-gradient(135deg, var(--p), #e85d2a);
    color: #fff;
    box-shadow: 0 6px 24px rgba(255,123,58,0.32);
}
.fx-btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 32px rgba(255,123,58,0.45);
}
.fx-btn-ghost {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.85);
}
.fx-btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,123,58,0.4);
    color: #fff;
    transform: translateY(-2px);
}
.light-theme .fx-btn-ghost {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.12);
    color: rgba(0,0,0,0.75);
}
.light-theme .fx-btn-ghost:hover { color: #17181c; }

/* ==========================================================================
   REVEAL al hacer scroll (IntersectionObserver añade .in)
   ========================================================================== */
.fx-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
                transform 0.7s cubic-bezier(0.16,1,0.3,1);
    transition-delay: var(--d, 0s);
}
.fx-reveal.in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .fx-reveal { opacity: 1; transform: none; transition: none; }
    .fx-term-cursor { animation: none; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
    .fx-section { padding: 96px 0; }
    .fx-intro { grid-template-columns: 1fr; gap: 48px; }
    .fx-zz    { margin-top: 52px; }
    .fx-stats { grid-template-columns: repeat(2, 1fr); gap: 36px 28px; }
    .fx-stat:nth-child(3)::before { display: none; }

    /* Zigzag -> columna alineada a la izquierda (recuadro arriba-izquierda) */
    .fx-zz-item,
    .fx-zz-item:nth-child(odd),
    .fx-zz-item:nth-child(even) {
        width: 100%;
        margin: 0 0 44px;
        flex-direction: row;
        text-align: left;
    }
    .fx-zz-item:last-child { margin-bottom: 0; }
    .fx-zz-item:nth-child(odd) .fx-zz-box::before,
    .fx-zz-item:nth-child(even) .fx-zz-box::before { left: 0; right: auto; }
    .fx-zz-item:nth-child(odd) .fx-zz-num,
    .fx-zz-item:nth-child(even) .fx-zz-num { right: 16px; left: auto; }
    .fx-zz-box { width: 132px; height: 132px; }
    .fx-zz-text { flex: 1 1 auto; }
    .fx-zz-title { font-size: 1.2rem; }
}

@media (max-width: 560px) {
    .fx-section { padding: 64px 0; }
    .fx-stats { grid-template-columns: 1fr 1fr; }
    .fx-cta { padding: 56px 20px; }
    .fx-btn { width: 100%; justify-content: center; }

    /* Zigzag apilado por completo (recuadro arriba, texto debajo) */
    .fx-zz-item,
    .fx-zz-item:nth-child(odd),
    .fx-zz-item:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .fx-zz-box { width: 100%; height: 124px; }
}
