/* ==========================================================================
   TEMA «FUSIÓN»  ·  paleta exclusiva de alexdeanta.com
   --------------------------------------------------------------------------
   Se carga DESPUÉS de site.css y SOLO cuando la paleta efectiva es «fusion»
   y el tenant está autorizado (BlogTheme::fusionActive()). No cambia el HTML.
   Capa visual: paleta y tipografía (papel, tinta, petróleo #07768D, cian
   #8FE6F2, ámbar solo para el cursor), geometría (esquinas de 2px, líneas de
   1px, rejilla de 12 columnas) y footer con marca de agua.
   Fuente: Geist autoalojada (OFL-1.1), declarada aquí; las variables
   --font-* las resuelve PHP al renderizar (BlogIdentityConfig::cssVariables()).
   Derivada de fusion-aprobada-v1 (referencia canónica); ver FUSION-INTEGRATION.md.
   ========================================================================== */

/* ---------- Geist (autoalojada, variable 100-900, v5.3.0 de @fontsource-variable/geist) ---------- */
@font-face {
    font-family: "Geist Fusion";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/geist/geist-latin-ext-wght-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Geist Fusion";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/geist/geist-latin-wght-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body.theme-fusion {
    /* paleta */
    --bg: #ffffff;
    --bg-2: #F3F6F8;
    --panel: #ffffff;
    --panel-border: #DCE2E8;
    --header-bg: rgba(255, 255, 255, .93);
    --header-ink: #0A121A;
    --header-link: #26323D;
    --header-link-hover: #0A121A;
    --ink: #0A121A;
    --ink-soft: #26323D;
    --ink-dim: #566470;
    --cyan: #07768D;          /* petróleo: acento sobre claro (la red neuronal lo lee de aquí) */
    --teal: #0A93AD;
    --violet: #566470;
    --glow: none;
    --shadow: none;
    --radius: 2px;
    --radius-sm: 2px;
    --radius-lg: 2px;
    --maxw: 1344px;
    --accent-fill: #0A121A;
    --accent-solid: #07768D;
    --on-accent: #ffffff;
    --focus: #07768D;
    --line: #DCE2E8;
    --line-strong: #BFC9D2;

    /* tokens propios del tema */
    --f-ink: #0A121A;
    --f-paper: #ffffff;
    --f-g1: #F3F6F8;
    --f-g2: #E7EDF1;
    --f-line: #DCE2E8;
    --f-line2: #BFC9D2;
    --f-petrol: #07768D;
    --f-tink: #8FE6F2;
    --f-amber: #EAB062;
    --f-body: #26323D;
    --f-mute: #566470;
    --gut: max(32px, calc((100vw - 1280px) / 2));

    /* tipografía: --font-heading/-subheading/-body/-ui/-reading/-brand las emite PHP (Geist Fusion) */
    font-size: 16.5px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    background: var(--f-paper);
}
body.theme-fusion::after { background: none; }
html:has(> body.theme-fusion) { overflow-x: clip; scroll-padding-top: 72px; }
body.theme-fusion { overflow-x: clip; }

body.theme-fusion h1,
body.theme-fusion h2,
body.theme-fusion h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -.045em;
    text-wrap: balance;
}
body.theme-fusion h3 { letter-spacing: -.035em; }
body.theme-fusion .wrap { max-width: var(--maxw); padding: 0 32px; }
/* La consola NOVA conserva sus propios tokens (--term-*): sin :where() el color de párrafo de Fusión la oscurece sobre el cristal */
body.theme-fusion p:where(:not(.terminal-screen p)) { color: var(--f-body); }
body.theme-fusion #neural-bg { opacity: .42; }

/* ---------- Detalles de G reutilizables ---------- */
body.theme-fusion .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .7em;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 11.5px;
    line-height: 1.2;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--f-mute);
}
body.theme-fusion .eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    background: var(--f-petrol);
    flex: none;
}
body.theme-fusion a:focus-visible,
body.theme-fusion button:focus-visible,
body.theme-fusion input:focus-visible { outline: 2px solid var(--f-petrol); outline-offset: 3px; }

/* ---------- Botones ---------- */
body.theme-fusion .btn {
    border-radius: 2px;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 14.5px;
    letter-spacing: -.005em;
    padding: 15px 22px;
    min-height: 0;
    line-height: 1;
}
body.theme-fusion .btn-primary {
    background: var(--f-ink);
    border-color: var(--f-ink);
    color: #fff;
    box-shadow: none;
}
body.theme-fusion .btn-primary:hover { background: var(--f-petrol); border-color: var(--f-petrol); color: #fff; transform: none; }
body.theme-fusion .btn-ghost { background: transparent; border-color: var(--f-ink); color: var(--f-ink); }
body.theme-fusion .btn-ghost:hover { background: var(--f-ink); border-color: var(--f-ink); color: #fff; }

/* ---------- Header: cristal con halo inferior (arriba) y translúcido al hacer scroll ---------- */
body.theme-fusion .site-header {
    /* ARRIBA (sin scroll): halo inferior en gris, más marcado en el borde */
    background: linear-gradient(180deg, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .8) 40%, rgba(176, 186, 195, .92) 100%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    backdrop-filter: blur(22px) saturate(160%);
    border-bottom: 1px solid rgba(88, 100, 112, .75);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .9),
        inset 0 -10px 14px -10px rgba(70, 82, 94, .32),
        0 10px 24px -12px rgba(10, 18, 26, .45);
    transition: background .35s ease, box-shadow .35s ease, border-color .35s ease;
}
/* AL HACER SCROLL: vuelve el cristal translúcido de antes */
body.theme-fusion .site-header.is-scrolled {
    background: linear-gradient(180deg, rgba(255, 255, 255, .58), rgba(255, 255, 255, .34));
    -webkit-backdrop-filter: blur(22px) saturate(185%);
    backdrop-filter: blur(22px) saturate(185%);
    border-bottom: 1px solid rgba(255, 255, 255, .6);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .85),
        0 1px 0 rgba(10, 18, 26, .08),
        0 14px 34px -22px rgba(10, 18, 26, .55);
}
body.theme-fusion .site-header .wrap { height: 64px; }
body.theme-fusion .brand { gap: 12px; font-size: 17px; font-weight: 600; letter-spacing: -.025em; color: var(--f-ink); }
body.theme-fusion .brand.is-prominent { font-size: 17px; }
body.theme-fusion .brand-icon,
body.theme-fusion .brand.is-prominent .brand-icon {
    height: 28px;
    border-radius: 2px;
    border: 0;
    box-shadow: none;
    background: var(--f-ink);
}
body.theme-fusion nav.main-nav { gap: 2px; }
body.theme-fusion nav.main-nav a {
    padding: 9px 14px;
    border-radius: 2px;
    font-size: 14.5px;
    font-weight: 500;
    letter-spacing: -.005em;
    color: var(--f-body);
    transition: background .15s, color .15s;
}
body.theme-fusion nav.main-nav a::after { left: 14px; right: 14px; bottom: 3px; background: var(--f-petrol); }
body.theme-fusion nav.main-nav a:hover { background: var(--f-g1); color: var(--f-ink); }
/* «Contacto» como botón, igual que en G (es el mismo enlace, solo cambia el estilo) */
body.theme-fusion nav.main-nav a[href$="/contacto"] {
    background: var(--f-ink);
    color: #fff;
    margin-left: 12px;
    font-weight: 600;
}
body.theme-fusion nav.main-nav a[href$="/contacto"]::after { display: none; }
body.theme-fusion nav.main-nav a[href$="/contacto"]:hover { background: var(--f-petrol); color: #fff; }
body.theme-fusion .nav-toggle { border-radius: 2px; border-color: var(--f-line2); color: var(--f-ink); }

/* ---------- Hero: rejilla de 12 columnas + consola que sangra al borde ---------- */
body.theme-fusion .hero {
    position: relative;
    padding: 56px 0 0;
}
body.theme-fusion .hero::before {
    content: "";
    position: absolute;
    left: var(--gut);
    right: var(--gut);
    top: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    background: repeating-linear-gradient(90deg, var(--f-line) 0 1px, transparent 1px calc(100% / 12));
    border-left: 1px solid var(--f-line);
    -webkit-mask: linear-gradient(#000 0, #000 50%, transparent 100%);
    mask: linear-gradient(#000 0, #000 50%, transparent 100%);
    opacity: .7;
}
body.theme-fusion .hero-grid {
    position: relative;
    z-index: 1;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: 56px;
    align-items: stretch;
}
body.theme-fusion .hero-grid > div:not(.alex-hero-side) { padding-bottom: 56px; align-self: center; }
body.theme-fusion .hero h1 {
    font-size: clamp(40px, 4.5vw, 68px);
    line-height: .96;
    letter-spacing: -.055em;
    margin: 18px 0 28px;
}
/* cursor ámbar: eco del cursor de la consola (decorativo) */
body.theme-fusion .hero h1::after {
    content: "";
    display: inline-block;
    width: .26em;
    height: .58em;
    margin-left: .08em;
    background: var(--f-amber);
    box-shadow: 0 0 14px rgba(234, 176, 98, .5);
    animation: fusion-cur 1s infinite;
}
@keyframes fusion-cur { 0%, 55% { opacity: 1; } 56%, 100% { opacity: .15; } }
body.theme-fusion .brand-positioning {
    color: var(--f-petrol);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(19px, 1.9vw, 25px);
    letter-spacing: -.03em;
    line-height: 1.2;
    margin: 0 0 18px;
    max-width: 22em;
}
body.theme-fusion .hero p.lead { font-size: 1.12rem; color: var(--f-body); max-width: 34em; }
body.theme-fusion .hero-actions { margin-top: 30px; gap: 10px; }

body.theme-fusion .alex-home .alex-hero-side {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}
/* ---- NOVA: terminal ORIGINAL, directamente sobre el fondo blanco de la página.
   Sin escenario oscuro; el halo ambiental original (.hero-visual-terminal::before) se mantiene. Dentro del contenedor, como en la home actual. ---- */
body.theme-fusion .alex-home .alex-hero-side > .hero-visual {
    flex: 1;
    width: auto;
    margin-right: 0;
    padding: 0;
}
body.theme-fusion .hero-terminal {
    width: 100%;
    height: 100%;
    min-height: 420px;
    aspect-ratio: auto;
    --term-fs: 1.12;
}
body.theme-fusion .hero-terminal .terminal-screen { contain: size; }

body.theme-fusion .alex-home .alex-hero-fresh {
    margin-top: 0;
    padding: 16px 18px;
    gap: 16px;
    border: 1px solid var(--f-line);
    border-top: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    margin-right: 0;
    transition: background .15s, border-color .15s;
}
body.theme-fusion .alex-home .alex-hero-fresh:hover { background: var(--f-g1); border-color: var(--f-line2); }
body.theme-fusion .alex-home .alex-hero-fresh-cover { border-radius: 2px; flex-basis: 76px; width: 76px; height: 76px; }
body.theme-fusion .alex-home .alex-hero-fresh-label {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 11px;
    letter-spacing: .12em;
    color: var(--f-petrol);
}
body.theme-fusion .alex-home .alex-hero-fresh-dot { border-radius: 0; background: var(--f-petrol); }
body.theme-fusion .alex-home .alex-hero-fresh-title { font-family: var(--font-heading); font-weight: 600; font-size: 1.12rem; letter-spacing: -.03em; }
body.theme-fusion .alex-home .alex-hero-fresh-meta { font-family: var(--font-mono); font-size: .72rem; color: var(--f-mute); }

/* ---------- Ritmo de secciones ---------- */
body.theme-fusion .alex-home { --alex-home-section-pad: clamp(56px, 8vw, 104px); }
body.theme-fusion .alex-home > section:not(.hero) { padding-block: var(--alex-home-section-pad); }
body.theme-fusion .alex-home > section:not(.conversion-band) + section:not(.conversion-band) { padding-top: var(--alex-home-section-pad); }
body.theme-fusion .alex-home > section.hero + section { padding-top: clamp(56px, 7vw, 88px); }
body.theme-fusion .section-head,
body.theme-fusion .alex-home .section-head {
    display: grid;
    gap: 14px;
    margin-bottom: clamp(28px, 3.4vw, 44px);
    padding-top: 22px;
    border-top: 1px solid var(--f-ink);
}
body.theme-fusion .section-head h2 {
    font-size: clamp(32px, 4.4vw, 62px);
    line-height: .98;
    letter-spacing: -.055em;
    margin: 0;
    max-width: 18em;
}

/* ---------- Tarjetas: celdas que comparten borde ---------- */
body.theme-fusion .card-grid {
    gap: 1px;
    background: var(--f-line);
    border: 1px solid var(--f-line);
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
body.theme-fusion .card {
    background: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transition: background .18s;
}
body.theme-fusion .card:hover { transform: none; box-shadow: none; border-color: transparent; background: var(--f-g1); }
body.theme-fusion .card .cover { aspect-ratio: 3 / 2; background: var(--f-g2); }
body.theme-fusion .card .cover img { filter: saturate(.92); }
body.theme-fusion .card:hover .cover img { transform: scale(1.025); filter: none; }
body.theme-fusion .card .body { padding: 22px 26px 26px; gap: 10px; }
body.theme-fusion .card .tag {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 11px;
    letter-spacing: .12em;
    color: var(--f-petrol);
}
body.theme-fusion .card h3 { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.12; }
body.theme-fusion .card h3 a { color: var(--f-ink); }
body.theme-fusion .card h3 a:hover { color: var(--f-petrol); }
body.theme-fusion .card .excerpt { font-size: .94rem; color: var(--f-body); line-height: 1.55; }
body.theme-fusion .card .meta {
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: 11.5px;
    letter-spacing: .02em;
    color: var(--f-mute);
    padding-top: 12px;
}
body.theme-fusion .featured-flag {
    top: 0;
    left: 0;
    background: var(--f-ink);
    color: var(--f-tink);
    border: 0;
    border-radius: 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 10.5px;
    letter-spacing: .12em;
    padding: 7px 11px;
}
/* Destacados: pieza principal a todo el ancho (mismo comportamiento que la web actual) */
@media (min-width: 900px) {
    body.theme-fusion .card-grid-featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.theme-fusion .card-grid-featured > .card:first-child:not(:only-child) { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
    body.theme-fusion .card-grid-featured > .card:first-child:not(:only-child) .cover { aspect-ratio: auto; min-height: 100%; }
    body.theme-fusion .card-grid-featured > .card:first-child:not(:only-child) .body { padding: clamp(28px, 4vw, 56px); }
    body.theme-fusion .card-grid-featured > .card:first-child:not(:only-child) h3 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1; letter-spacing: -.05em; }
    body.theme-fusion .card-grid-featured > .card:first-child:not(:only-child) .excerpt { font-size: 1.04rem; }
}
@media (min-width: 780px) and (max-width: 899px) {
    body.theme-fusion .alex-home .card-grid-featured { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1040px) {
    body.theme-fusion .card-grid:not(.card-grid-featured) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 679px) {
    body.theme-fusion .card-grid,
    body.theme-fusion .card-grid:not(.card-grid-featured),
    body.theme-fusion .alex-home .card-grid-featured { grid-template-columns: minmax(0, 1fr); }
}
body.theme-fusion .section-cta { margin-top: 32px; }

/* ---------- Categorías ---------- */
body.theme-fusion .alex-home .alex-category-chips { gap: 8px; }
body.theme-fusion .alex-home .alex-category-chip {
    gap: 0;
    padding: 0;
    border: 1px solid var(--f-line2);
    border-radius: 2px;
    background: #fff;
    color: var(--f-ink);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: -.01em;
    transition: background .15s, color .15s, border-color .15s;
}
body.theme-fusion .alex-home .alex-category-chip span { padding: 13px 16px; }
body.theme-fusion .alex-home .alex-category-chip strong {
    align-self: stretch;
    display: grid;
    place-items: center;
    min-width: 2.6rem;
    padding: 0 10px;
    border-radius: 0;
    border-left: 1px solid var(--f-line2);
    background: var(--f-g1);
    color: var(--f-petrol);
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 12px;
}
body.theme-fusion .alex-home .alex-category-chip:hover { background: var(--f-ink); color: #fff; border-color: var(--f-ink); }
body.theme-fusion .alex-home .alex-category-chip:hover strong { background: var(--f-petrol); color: #fff; border-left-color: var(--f-petrol); }

/* ---------- Cuestiones de trabajo: banda oscura de G ---------- */
body.theme-fusion .home-topics,
body.theme-fusion .alex-home > section.home-topics {
    position: relative;
    background: var(--f-ink);
    color: #fff;
    padding-block: clamp(64px, 8vw, 112px);
}
body.theme-fusion .home-topics::before {
    content: "";
    position: absolute;
    left: var(--gut);
    right: var(--gut);
    top: 0;
    bottom: 0;
    pointer-events: none;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px calc(100% / 12));
    border-left: 1px solid rgba(255, 255, 255, .07);
}
body.theme-fusion .home-topics .wrap { position: relative; }
body.theme-fusion .home-topics-frame { background: transparent; }
body.theme-fusion .home-topics-topline {
    padding: 0 0 22px;
    border-bottom: 1px solid rgba(255, 255, 255, .22);
}
body.theme-fusion .home-topics-label {
    display: inline-flex;
    align-items: center;
    gap: .7em;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 11.5px;
    letter-spacing: .12em;
    color: var(--f-tink);
}
body.theme-fusion .home-topics-label::before { content: ""; width: 7px; height: 7px; background: var(--f-tink); }
body.theme-fusion .home-topics-count { font-family: var(--font-mono); font-size: .8rem; color: rgba(255, 255, 255, .62); }
body.theme-fusion .home-topics-controls button {
    border-radius: 2px;
    border-color: rgba(255, 255, 255, .34);
    color: #fff;
}
body.theme-fusion .home-topics-controls button:hover { background: var(--f-tink); border-color: var(--f-tink); color: var(--f-ink); }
body.theme-fusion .home-topics-slide { padding: clamp(40px, 5vw, 72px) 0 clamp(8px, 2vw, 24px); min-height: 0; }
body.theme-fusion .home-topics-slide.has-number { grid-template-columns: minmax(5rem, .34fr) 1fr; }
body.theme-fusion .home-topics-number {
    color: var(--f-tink);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(76px, 12vw, 190px);
    letter-spacing: -.07em;
    line-height: .8;
}
body.theme-fusion .home-topics-slide h2 {
    color: #fff;
    font-size: clamp(32px, 4.8vw, 72px);
    line-height: .98;
    letter-spacing: -.055em;
    max-width: 14em;
}
body.theme-fusion .home-topics-slide p { color: #A9B7C4; font-size: clamp(1rem, 1.35vw, 1.2rem); max-width: 40em; }
body.theme-fusion .home-topics-track:focus-visible,
body.theme-fusion .home-topics-controls button:focus-visible { outline-color: var(--f-tink); }

/* ---------- Libros: estantería de 4 celdas ---------- */
body.theme-fusion .alex-home .books {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--f-line2);
    border: 1px solid var(--f-line2);
    justify-content: stretch;
}
body.theme-fusion .alex-home .book {
    flex: none;
    min-width: 0;
    gap: 22px;
    padding: 34px 28px 30px;
    background: var(--f-g1);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transition: background .18s;
}
body.theme-fusion .alex-home .book:hover { background: #fff; }
body.theme-fusion .alex-home .book-cover-link { align-self: center; }
body.theme-fusion .alex-home .book .book-cover {
    width: min(170px, 100%);
    height: auto;
    aspect-ratio: 160 / 235;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: 0 22px 30px -18px rgba(10, 18, 26, .55), 0 2px 5px rgba(10, 18, 26, .18);
    transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s;
}
body.theme-fusion .alex-home .book:hover .book-cover { transform: translateY(-5px); box-shadow: 0 30px 34px -18px rgba(10, 18, 26, .55), 0 2px 5px rgba(10, 18, 26, .18); }
body.theme-fusion .alex-home .book .book-cover.book-cover-album { aspect-ratio: 1; }
body.theme-fusion .book h3 { font-size: clamp(20px, 1.6vw, 23px); line-height: 1.1; margin-bottom: 10px; }
body.theme-fusion .book p { font-size: .93rem; line-height: 1.55; color: var(--f-body); }
body.theme-fusion .alex-home .book .btn { padding: 12px 16px; font-size: 13.5px; background: transparent; }
body.theme-fusion .alex-home .book .btn:hover { background: var(--f-ink); }
@media (max-width: 1180px) {
    body.theme-fusion .alex-home .books { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    body.theme-fusion .alex-home .books { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Sobre este blog y su autor ---------- */
body.theme-fusion .phase2 { border-top: 1px solid var(--f-ink); padding: 0; }
body.theme-fusion .phase2-title {
    color: var(--f-ink);
    font-size: clamp(32px, 4.4vw, 62px);
    line-height: .98;
    letter-spacing: -.055em;
    margin: 28px 0 clamp(28px, 3.4vw, 44px);
}
body.theme-fusion .phase2-content { max-width: 1040px; }
body.theme-fusion .phase2-photo {
    width: min(320px, 38%);
    margin: 6px 40px 20px 0;
    border: 1px solid var(--f-line2);
    border-radius: 2px;
    box-shadow: none;
}
body.theme-fusion .phase2-text { font-size: 1.14rem; line-height: 1.75; color: var(--f-body); }
body.theme-fusion .phase2-text p { color: var(--f-body); }
body.theme-fusion .alex-home .phase2-text .btn { margin-top: 10px; }
/* Pasajes aprobados de la biografía, a mayor cuerpo: BlogTheme::fusionPullAttr() les añade .phase2-pull */
body.theme-fusion .phase2-text p.phase2-pull {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(24px, 2.7vw, 38px);
    line-height: 1.04;
    letter-spacing: -.045em;
    color: var(--f-ink);
    margin-top: .55rem;
}
body.theme-fusion .phase2-text p.phase2-pull-final { color: var(--f-petrol); margin-bottom: .6rem; }

/* ---------- Conferencias: banda oscura ---------- */
body.theme-fusion .conversion-band,
body.theme-fusion .alex-home > section.conversion-band {
    position: relative;
    background: var(--f-ink);
    padding-block: clamp(72px, 9vw, 128px);
    margin-top: clamp(24px, 4vw, 56px);
}
body.theme-fusion .conversion-band::before {
    content: "";
    position: absolute;
    left: var(--gut);
    right: var(--gut);
    top: 0;
    bottom: 0;
    pointer-events: none;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px calc(100% / 12));
    border-left: 1px solid rgba(255, 255, 255, .06);
}
body.theme-fusion .conversion-band .wrap { position: relative; }
body.theme-fusion .conversion-card {
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
}
body.theme-fusion .conversion-card::before { display: none; }
body.theme-fusion .conversion-card .eyebrow { color: var(--f-tink); }
body.theme-fusion .conversion-card .eyebrow::before { background: var(--f-tink); }
body.theme-fusion .conversion-card h2 {
    color: #fff;
    font-size: clamp(40px, 6.6vw, 100px);
    line-height: .92;
    letter-spacing: -.06em;
    max-width: 11em;
    margin: 22px 0 26px;
}
body.theme-fusion .conversion-card p { color: #A9B7C4; font-size: 1.12rem; max-width: 36em; }
body.theme-fusion .conversion-card .hero-actions { margin-top: 38px; }
body.theme-fusion .conversion-card .btn-primary { background: var(--f-tink); border-color: var(--f-tink); color: var(--f-ink); }
body.theme-fusion .conversion-card .btn-primary:hover { background: #fff; border-color: #fff; color: var(--f-ink); }
body.theme-fusion .conversion-card .btn-ghost { border-color: rgba(255, 255, 255, .38); color: #fff; }
body.theme-fusion .conversion-card .btn-ghost:hover { background: #fff; border-color: #fff; color: var(--f-ink); }

/* ---------- Suscripción ---------- */
body.theme-fusion .alex-home .alex-subscribe-card {
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
body.theme-fusion .alex-subscribe { padding-bottom: clamp(48px, 6vw, 80px); }
body.theme-fusion .alex-home .alex-subscribe-card h2 {
    font-size: clamp(30px, 4vw, 54px);
    line-height: 1;
    letter-spacing: -.055em;
    margin: 18px 0 14px;
}
body.theme-fusion .alex-home .alex-subscribe-card > p { color: var(--f-body); }
body.theme-fusion .alex-home .alex-subscribe-form { max-width: 680px; }
body.theme-fusion .subscribe-form input {
    border-radius: 2px;
    border: 1px solid var(--f-ink);
    background: #fff;
    color: var(--f-ink);
    padding: 15px 16px;
    font-size: 15px;
}
body.theme-fusion .subscribe-form input:focus { border-color: var(--f-petrol); box-shadow: inset 0 0 0 1px var(--f-petrol); }
body.theme-fusion .alex-home .alex-subscribe-consent { color: var(--f-body); }
body.theme-fusion .alex-home .alex-subscribe-consent input { accent-color: var(--f-petrol); }
body.theme-fusion .privacy-first-layer { color: var(--f-mute); max-width: 72ch; }
body.theme-fusion .privacy-first-layer strong { color: var(--f-body); font-weight: 600; }
body.theme-fusion .privacy-first-layer a { color: var(--f-petrol); }

/* ---------- Footer de G: barra + marca de agua gigante ---------- */
/* La marca de agua es el FONDO del footer: va detrás de los enlaces y se recorta por abajo. */
body.theme-fusion .site-footer {
    position: relative;
    isolation: isolate;
    margin-top: 0;
    padding: 0;
    min-height: clamp(230px, 17.5vw, 270px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-top: 1px solid var(--f-line);
    color: var(--f-mute);
    font-size: 13.5px;
}
body.theme-fusion .site-footer .wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 22px;
    align-items: start;
    padding-top: 34px;
    padding-bottom: 38px;
}
body.theme-fusion .site-footer .wrap > div:not(.socials) {
    grid-column: 1 / 6;
    color: var(--f-ink);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -.02em;
    line-height: 1.35;
}
body.theme-fusion .legal-links {
    grid-column: 6 / 10;
    gap: 8px 20px;
}
body.theme-fusion .legal-links a { color: var(--f-ink); font-weight: 500; transition: color .15s; }
body.theme-fusion .legal-links a:hover { color: var(--f-petrol); }
body.theme-fusion .legal-links a[href*="aitwiners"] { color: var(--f-mute); font-weight: 400; }
body.theme-fusion .socials { grid-column: 10 / 13; justify-content: flex-end; gap: 8px; }
body.theme-fusion .social-chip {
    padding: 8px 12px;
    border: 1px solid var(--f-line2);
    border-radius: 2px;
    color: var(--f-ink);
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 11.5px;
    letter-spacing: .05em;
    transition: background .15s, color .15s, border-color .15s;
}
body.theme-fusion .social-chip:hover { background: var(--f-ink); border-color: var(--f-ink); color: #fff; }
body.theme-fusion .site-footer::after {
    content: "Álex de Anta";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -.17em;
    z-index: 0;
    font: 700 15.4vw/.8 var(--font-heading);
    letter-spacing: -.07em;
    color: #E3EAEF;
    white-space: nowrap;
    text-align: center;
    user-select: none;
    pointer-events: none;
}

/* ---------- Cookies ---------- */
body.theme-fusion .cookie-banner {
    background: rgba(255, 255, 255, .97);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--f-ink);
    box-shadow: none;
}
body.theme-fusion .cookie-banner p { color: var(--f-ink); font-size: .92rem; }
body.theme-fusion .cookie-banner a { color: var(--f-petrol); }
body.theme-fusion .cookie-actions .btn { padding: 12px 18px; font-size: 14px; }

/* ---------- Movimiento: aparición sin efecto 3D ---------- */
body.theme-fusion .hero-visual { animation: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    body.theme-fusion .site-footer .wrap > div:not(.socials) { grid-column: 1 / -1; }
    body.theme-fusion .legal-links { grid-column: 1 / 9; }
    body.theme-fusion .socials { grid-column: 9 / 13; }
}
@media (max-width: 860px) {
    body.theme-fusion { --gut: 20px; }
    body.theme-fusion .wrap { padding: 0 20px; }
    body.theme-fusion .site-header .wrap { height: 60px; }
    body.theme-fusion .hero { padding-top: 36px; }
    body.theme-fusion .hero::before { display: none; }
    body.theme-fusion .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    body.theme-fusion .hero-grid > div:not(.alex-hero-side) { padding-bottom: 0; }
    body.theme-fusion .alex-home .alex-hero-side > .hero-visual { margin-inline: 0; width: auto; }
    body.theme-fusion .alex-home .alex-hero-fresh { margin-inline: 0; }
    body.theme-fusion .hero-terminal { min-height: 0; height: 360px; }
    body.theme-fusion .site-footer .wrap { display: flex; flex-direction: column; gap: 22px; }
    body.theme-fusion .socials { justify-content: flex-start; }
    body.theme-fusion .site-footer .wrap { padding-bottom: 22vw; }
    body.theme-fusion .phase2-photo { width: 100%; float: none; margin: 0 0 24px; }
    body.theme-fusion .home-topics-slide.has-number { grid-template-columns: minmax(3.4rem, .26fr) 1fr; }
    body.theme-fusion .conversion-card h2 { font-size: clamp(38px, 11vw, 64px); }
    html.nav-js body.theme-fusion nav.main-nav {
        background: #fff;
        border-bottom: 1px solid var(--f-line);
        padding: .5rem 20px 1rem;
        box-shadow: none;
    }
    html.nav-js body.theme-fusion nav.main-nav a { border-radius: 0; padding: .9rem 0; border-top: 1px solid var(--f-line); }
    html.nav-js body.theme-fusion nav.main-nav a[href$="/contacto"] { margin: 12px 0 0; text-align: center; border-radius: 2px; padding: 14px; }
}
@media (max-width: 560px) {
    body.theme-fusion { font-size: 16px; }
    body.theme-fusion .hero h1 { font-size: clamp(40px, 12.5vw, 56px); }
    body.theme-fusion .brand { font-size: 16px; }
    body.theme-fusion .hero-terminal { height: 340px; }
    body.theme-fusion .terminal-screen { font-size: calc(.78rem * var(--term-fs)); padding: .9rem 1.1rem .4rem; }
    body.theme-fusion .card .body { padding: 20px 20px 24px; }
    body.theme-fusion .alex-home .book { padding: 28px 22px 26px; }
    body.theme-fusion .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    body.theme-fusion .hero h1::after { animation: none; }
}

/* ---------- HERO OSCURO (mismo fondo que «Cuestiones de trabajo») ---------- */
body.theme-fusion { --cyan: #1BA6C2; }   /* color de las líneas de la red neuronal: se lee sobre oscuro */
body.theme-fusion #neural-bg { opacity: .8; }
/* panel oscuro detrás de todo (z-index negativo: la red neuronal, a -2, se pinta por encima) */
body.theme-fusion .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    background: #0A121A;
    pointer-events: none;
}
body.theme-fusion .hero { padding-bottom: 0; }
body.theme-fusion .hero::before {
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px calc(100% / 12));
    border-left: 1px solid rgba(255, 255, 255, .07);
    -webkit-mask: none;
    mask: none;
    opacity: 1;
}
body.theme-fusion .hero .eyebrow { color: #8FE6F2; }
body.theme-fusion .hero .eyebrow::before { background: #8FE6F2; }
body.theme-fusion .hero h1 { color: #fff; }
body.theme-fusion .brand-positioning { color: #8FE6F2; }
body.theme-fusion .hero p.lead { color: #A9B7C4; }
body.theme-fusion .hero .btn-primary { background: #8FE6F2; border-color: #8FE6F2; color: #0A121A; }
body.theme-fusion .hero .btn-primary:hover { background: #fff; border-color: #fff; color: #0A121A; }
body.theme-fusion .hero .btn-ghost { border-color: rgba(255, 255, 255, .38); color: #fff; }
body.theme-fusion .hero .btn-ghost:hover { background: #fff; border-color: #fff; color: #0A121A; }
body.theme-fusion .alex-home .alex-hero-fresh {
    background: rgba(255, 255, 255, .04);
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, .14);
    border-left: 1px solid rgba(255, 255, 255, .14);
    color: #fff;
}
body.theme-fusion .alex-home .alex-hero-fresh:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .26); }
body.theme-fusion .alex-home .alex-hero-fresh-label { color: #8FE6F2; }
body.theme-fusion .alex-home .alex-hero-fresh-dot { background: #8FE6F2; }
body.theme-fusion .alex-home .alex-hero-fresh-title { color: #fff; }
body.theme-fusion .alex-home .alex-hero-fresh-meta { color: #A9B7C4; }
@media (max-width: 860px) {
    body.theme-fusion .hero::before { display: block; left: 20px; right: 20px; }
    body.theme-fusion .hero-grid > div:not(.alex-hero-side) { padding-bottom: 8px; }
}

/* ---------- CURSOR FIJO en los titulares de sección (h2) ----------
   Sobre blanco: petróleo del tema (#07768D, el de «Está en saber qué hacer con ellas.»).
   Sobre fondos oscuros: ámbar, como el cursor del hero. Sin parpadeo: solo el del hero está vivo. */
body.theme-fusion .alex-home h2::after {
    content: "";
    display: inline-block;
    width: .26em;
    height: .58em;
    margin-left: .1em;
    background: var(--f-petrol);
    vertical-align: baseline;
}
body.theme-fusion .alex-home .home-topics h2::after,
body.theme-fusion .alex-home .conversion-band h2::after {
    background: var(--f-amber);
    box-shadow: 0 0 10px rgba(234, 176, 98, .4);
}
