/* ==========================================================================
   FLUXAR UI — componentes del sitio (header, footer, hero, dominios, trabajo…)
   Depende de los tokens de fluxar.css. Todo con prefijo fx- para no chocar con NB.
   Orden: 0 Base · 1 Header · 2 Footer · 3 Hero · 4 Secciones · 5 Dominios
          6 Marquesinas e industrias · 7 Trabajo · 8 Pasos · 9 Modelo · 10 Sistemas
          11 Caso · 12 404 · 13 Movimiento · 14 Responsive
   ========================================================================== */

/* 0. BASE ---------------------------------------------------------------- */
:root {
	--fx-pad: clamp(20px, 4vw, 64px);
	--fx-sec: clamp(90px, 12vw, 170px);
	--fx-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--fx-hdr: 56px;
	--fx-hdr-logo: 21px; /* 3/8 del header (56 × 3/8): aire parejo arriba y abajo */
}
/* clip (no hidden): con hidden el <body> se vuelve contenedor de scroll y el hero "sticky" deja de pegarse */
body.fx-site { overflow-x: clip !important; overflow-y: visible !important; }
/* Secciones propias a ancho completo aunque NB las ponga dentro de su contenedor con márgenes */
.main-content > .fx-hero-pin, .main-content > .fx-sec, .main-content > .fx-bleed { margin-inline: calc(50% - 50vw); }
.fx-wrap { width: min(1440px, calc(100% - var(--fx-pad) * 2)); margin-inline: auto; }
.fx-sec { padding-block: var(--fx-sec); position: relative; }
.fx-tone-white { background: var(--white); color: var(--carbon); }
.fx-tone-fog   { background: var(--fog);   color: var(--carbon); }
.fx-tone-onyx  { background: var(--onyx);  color: var(--white); }
.fx-tone-carbon{ background: var(--carbon);color: var(--white); }
.fx-tone-onyx .fx-eyebrow, .fx-tone-carbon .fx-eyebrow,
.fx-tone-onyx .fx-meta, .fx-tone-carbon .fx-meta { color: var(--mist); }
.fx-lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.5; }
.fx-closing { margin-top: 70px; font-size: clamp(1.5rem, 2.6vw, 2.3rem); font-weight: 600; letter-spacing: -.015em; line-height: 1.2; max-width: 1100px; }
.fx-statement { font-size: clamp(2.2rem, 4.4vw, 3.8rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.08; max-width: 1150px; }
.fx-statement em { font-style: normal; color: var(--mist); }
.fx-firma { font-family: var(--fx-mono); font-size: var(--fx-t-label); letter-spacing: .12em; text-transform: uppercase; color: var(--mist); }
.fx-actions { display: flex; gap: 12px; flex-wrap: wrap; }
html.fx-lock { overflow: hidden; }

/* Botón FXC (enlaces y botones propios) */
.fx-button {
	display: inline-flex; gap: 16px; align-items: center; border: 1px solid currentColor; padding: 14px 18px;
	font-family: var(--fx-mono); font-size: var(--fx-t-label); letter-spacing: .06em; text-transform: uppercase;
	background: transparent; color: inherit; cursor: pointer; text-decoration: none;
	transition: background var(--fx-transition), color var(--fx-transition);
}
.fx-button:hover { background: var(--carbon); color: var(--white); border-color: var(--carbon); }
.fx-tone-onyx .fx-button:hover, .fx-tone-carbon .fx-button:hover, .fx-hero .fx-button:hover { background: var(--white); color: var(--carbon); border-color: var(--white); }

/* Imagen en marco: 4:3 con parallax. Gris por defecto; las de proyectos van a color y sin efecto al pasar el cursor */
@property --fx-s { syntax: "<number>"; inherits: true; initial-value: 1.12; }
.fx-media { position: relative; overflow: hidden; background: var(--fog); aspect-ratio: 4 / 3; }
.fx-media img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.05);
	transform: translateY(var(--py, 0px)) scale(var(--fx-s)); transition: filter .6s, --fx-s .9s cubic-bezier(.16,1,.3,1); }
.fx-item .fx-media img { filter: none; }

/* 1. HEADER — 56px, el fondo cambia según data-tone ------------------------ */
#nectar-nav { position: fixed !important; inset: 0 0 auto 0; z-index: 100; background: none !important; height: auto !important; }
#nectar-nav-spacer, .nectar-nav-spacer { display: none !important; }       /* el hero va debajo del header */
body.fx-site:not(.fx-has-hero) #nectar-content-wrap { padding-top: var(--fx-hdr); }
.fx-hdr { height: var(--fx-hdr); color: var(--white); background: transparent; border-bottom: 1px solid transparent;
	transition: background .4s, color .4s, border-color .4s, backdrop-filter .4s, -webkit-backdrop-filter .4s; }
.fx-hdr[data-tone="light"] { color: var(--carbon); background: rgba(255,255,255,.72); border-color: var(--borde);
	-webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); }
.fx-hdr[data-tone="dark"] { color: var(--white); background: rgba(8,10,12,.72); border-color: var(--borde-dark);
	-webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); }
.fx-hdr .fx-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.fx-hdr-logo { color: inherit; line-height: 0; }
.fx-hdr-logo .fx-logo { height: var(--fx-hdr-logo); width: auto; display: block; }
.fx-nav { display: flex; gap: 28px; align-items: center; font-family: var(--fx-mono); font-size: var(--fx-t-label); letter-spacing: .08em; text-transform: uppercase; }
.fx-nav a { color: inherit; text-decoration: none; }
.fx-nav .fx-cta { border: 1px solid currentColor; padding: 7px 12px; transition: background .3s, color .3s; }
.fx-hdr[data-tone="light"] .fx-cta:hover { background: var(--carbon); color: var(--white); }
.fx-hdr:not([data-tone="light"]) .fx-cta:hover { background: var(--white); color: var(--carbon); }
.fx-burger { display: none; background: none; border: 0; color: inherit; width: 22px; height: 10px; position: relative; cursor: pointer; }
.fx-burger::before, .fx-burger::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor; }
.fx-burger::before { top: 0; } .fx-burger::after { bottom: 0; }
.fx-mmenu { position: fixed; inset: 0; z-index: 200; background: var(--onyx); color: var(--white); display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: var(--fx-pad); }
.fx-mmenu[hidden] { display: none; }
.fx-mmenu a { color: inherit; text-decoration: none; font-size: 2.4rem; font-weight: 600; letter-spacing: -.02em; }
.fx-mmenu-close { position: absolute; top: 20px; right: var(--fx-pad); background: none; border: 0; color: inherit; font-family: var(--fx-mono); font-size: var(--fx-t-label); letter-spacing: .08em; cursor: pointer; }

/* 2. FOOTER — logo grande cortado (se ve el 80 %) -------------------------- */
#footer-outer { display: none !important; }                                 /* el footer de NB no se usa */
.fx-footer { background: var(--onyx); color: var(--white); padding-top: 40px; border-top: 1px solid var(--borde-dark); overflow: hidden; }
.fx-ft { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.fx-ft-logo { color: inherit; line-height: 0; display: inline-block; margin-bottom: 8px; }
.fx-ft-logo .fx-logo { height: 22px; width: auto; }
.fx-ft nav { display: flex; gap: 28px; font-family: var(--fx-mono); font-size: var(--fx-t-micro); letter-spacing: .08em; text-transform: uppercase; }
.fx-ft nav a, .fx-fb a { color: inherit; text-decoration: none; }
.fx-here { margin-top: 40px; font-size: var(--fx-t-body); color: var(--mist); }
.fx-here b { font-family: var(--fx-mono); color: var(--white); font-weight: 500; margin-left: 6px; }
.fx-fb { margin-top: 70px; padding-top: 14px; border-top: 1px solid var(--borde-dark); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
	font-family: var(--fx-mono); font-size: var(--fx-t-micro); letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }
/* Logo grande del footer: relleno sólido con contorno claro (como los números del reloj de iOS).
   - Logo completo con su contorno en los cuatro lados; abajo queda un margen de 3px hasta el borde de la página
     (padding-bottom compensa la mitad exterior del trazo, que crece con el ancho).
   - Dos capas: primero el trazo al doble de ancho y encima el relleno, así el contorno queda solo por fuera
     y las uniones entre letras no dibujan líneas internas.
   - Relleno = Steel al 55 % sobre Onyx (#3C424A) · Contorno = Mist al 75 % sobre Onyx (#A3A7AC): sólidos para que no se sumen al solaparse. */
.fx-footmark { width: min(1440px, calc(100% - var(--fx-pad) * 2)); margin: 60px auto 0; padding-bottom: calc(4px + 0.14vw); } /* el trazo crece con el ancho: así el margen visible queda en ~3px */
.fx-footmark .fx-logo { display: block; width: 100%; height: auto; overflow: visible; transform: translateY(var(--fy, 0px)); }
.fx-footmark .fx-ol { color: transparent; stroke: #A3A7AC; stroke-width: 2px; stroke-linejoin: round; vector-effect: non-scaling-stroke; } /* 1px visible por fuera, igual que los bordes del sistema */
.fx-footmark .fx-fi { color: #3C424A; stroke: none; }

/* 3. HERO — video a pantalla completa que se recorta a un marco 4:3 ------------ */
.fx-hero-pin { height: 200vh; position: relative; background: var(--fog); }
.fx-hero { position: sticky; top: 0; height: 100svh; overflow: hidden; color: var(--white); display: flex; align-items: flex-end;
	padding: 130px 0 clamp(60px, 9vw, 120px); }
.fx-hero-frame { position: absolute; inset: 0; z-index: 0; background: var(--onyx); clip-path: inset(var(--cy, 0px) var(--cx, 0px)); will-change: clip-path; }
.fx-hero-frame video, .fx-hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fx-hero-frame::after { content: ""; position: absolute; inset: 0; z-index: 1;          /* retícula 60px + velo para leer el texto */
	background-image: linear-gradient(rgba(236,238,241,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(236,238,241,.09) 1px, transparent 1px),
		linear-gradient(180deg, rgba(8,10,12,.55), rgba(8,10,12,.75));
	background-size: 60px 60px, 60px 60px, auto; }
.fx-hero-body { position: relative; z-index: 2; opacity: var(--ho, 1); transform: translateY(var(--hy, 0px)); }
.fx-hero-top { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.fx-hero .fx-eyebrow, .fx-hero .fx-meta { color: var(--mist); }
.fx-hero-title { font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.04; max-width: 1000px; letter-spacing: -.025em; font-weight: 600; color: inherit; }
.fx-hero .fx-lead { margin-top: 32px; max-width: 620px; }
.fx-hero-bottom { margin-top: 34px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.fx-hero-cap { position: absolute; left: 0; right: 0; bottom: calc(var(--cy, 0px) - 34px); z-index: 2; display: flex; justify-content: space-between;
	width: var(--fw, 100%); margin: auto; opacity: var(--co, 0); font-family: var(--fx-mono); font-size: var(--fx-t-micro); letter-spacing: .1em; text-transform: uppercase; color: var(--carbon); }

/* 4. SECCIONES ------------------------------------------------------------ */
.fx-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; align-items: end; }
.fx-head > :first-child { grid-column: span 7; } .fx-head > p { grid-column: 9 / span 4; color: var(--steel); }
.fx-tone-onyx .fx-head > p { color: var(--mist); }

/* 5. DOMINIOS + descripciones emergentes ----------------------------------- */
.fx-doms { margin-top: 60px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--borde); border: 1px solid var(--borde); }
.fx-dom { position: relative; background: var(--white); padding: 32px 28px; display: flex; flex-direction: column; gap: 22px; min-height: 420px; }
/* Hover de la card: línea Prussian que se dibuja arriba, número a Carbon, título 4px a la derecha */
.fx-dom::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: var(--prussian); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--fx-ease); }
.fx-dom-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.fx-dom .fx-meta { transition: color .3s; }
.fx-dom h3 { transition: transform .5s var(--fx-ease); }
.fx-dom:hover::before { transform: scaleX(1); }
.fx-dom:hover .fx-meta { color: var(--carbon); }
.fx-dom:hover h3 { transform: translateX(4px); }
/* Iconos (módulos). .l = línea · .a = el sistema (Prussian) · .k = celdas de la cascada */
.fx-ico { width: 64px; height: 64px; flex: none; overflow: visible; }
.fx-ico .l { fill: none; stroke: var(--carbon); stroke-width: 1.5; }
.fx-ico .a { fill: var(--prussian); transform-box: fill-box; transform-origin: center; }
.fx-ico .k { fill: var(--carbon); opacity: 0; }
/* 01 Presencia: el marco se redibuja y el módulo crece */
.fx-ico-frame { stroke-dasharray: 160; }
.fx-dom--1 .a { transition: transform .6s var(--fx-ease); }
.fx-dom--1:hover .fx-ico-frame { animation: fx-draw .9s var(--fx-ease); }
.fx-dom--1:hover .a { transform: scale(1.67); }
@keyframes fx-draw { from { stroke-dashoffset: 160; } to { stroke-dashoffset: 0; } }
/* 02 Comercio: el conector se traza y el módulo viaja de un lado al otro */
.fx-ico-link { stroke-dasharray: 8; }
.fx-dom--2:hover .fx-ico-link { animation: fx-link .5s var(--fx-ease); }
.fx-dom--2:hover .a { animation: fx-viaja .9s var(--fx-ease); }
@keyframes fx-link { from { stroke-dashoffset: 8; } to { stroke-dashoffset: 0; } }
@keyframes fx-viaja { 0%, 35% { transform: translateX(-32px); } 100% { transform: none; } }
/* 03 Transformación: la red se enciende en cascada hacia el centro */
.fx-dom--3 .a { transition: transform .4s var(--fx-ease) .45s; }
.fx-dom--3:hover .k { animation: fx-cell .9s var(--fx-ease) both; animation-delay: calc(var(--d) * 90ms); }
.fx-dom--3:hover .a { transform: scale(.75); }
@keyframes fx-cell { 0% { opacity: 0; } 40% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fx-dom *, .fx-dom::before { animation: none !important; transition: none !important; } }
.fx-dom .fx-media { margin: -32px -28px 0; }
.fx-dom h3 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); }
.fx-q { font-weight: 500; }
.fx-tips { list-style: none; margin: auto 0 0; padding: 0; border-top: 1px solid var(--borde); }
.fx-tips li { position: relative; padding: 10px 0; border-bottom: 1px solid var(--borde); font-family: var(--fx-mono); font-size: var(--fx-t-small);
	color: rgba(26,29,34,.8); cursor: default; transition: background .2s, color .2s, padding .2s; }
.fx-tips li:hover, .fx-tips li:focus-visible, .fx-tips li.show { background: var(--fog); color: var(--carbon); padding-left: 10px; outline: none; }
.fx-tip { position: absolute; left: 10px; bottom: calc(100% + 10px); z-index: 5; width: max-content; max-width: 260px;
	background: var(--carbon); color: var(--white); font-family: var(--fx-sans); font-size: var(--fx-t-small); line-height: 1.45; padding: 10px 12px;
	opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .2s, transform .2s; }
.fx-tip::after { content: ""; position: absolute; left: 16px; top: 100%; border: 6px solid transparent; border-top-color: var(--carbon); }
.fx-tips li:hover .fx-tip, .fx-tips li:focus-visible .fx-tip, .fx-tips li.show .fx-tip { opacity: 1; transform: none; }

/* 6. MARQUESINAS + MODAL DE INDUSTRIAS ------------------------------------- */
.fx-mq { overflow: hidden; border-block: 1px solid var(--borde-dark); margin-top: 60px; }
.fx-mq + .fx-mq { margin-top: -1px; }
.fx-track { display: flex; gap: 56px; width: max-content; padding: 26px 0; animation: fx-mq 60s linear infinite; }
.fx-track .fx-dup { display: contents; }
.fx-mq-rev .fx-track { animation-direction: reverse; animation-duration: 45s; padding: 18px 0; }
.fx-mq:hover .fx-track { animation-play-state: paused; }
.fx-track span { white-space: nowrap; }
.fx-mq-big span { font-size: clamp(2rem, 5vw, 4.4rem); font-weight: 600; letter-spacing: -.02em; }
.fx-mq-big span span:nth-child(even), .fx-mq-big > .fx-track > span:nth-child(even) { color: var(--steel); }
.fx-mq-rev span { font-family: var(--fx-mono); font-size: var(--fx-t-small); letter-spacing: .08em; text-transform: uppercase; color: var(--mist); }
@keyframes fx-mq { to { transform: translateX(-50%); } }

dialog.fx-ind { margin: auto; border: 0; padding: 0; width: min(1100px, 94vw); max-height: 88vh; background: var(--fog); color: var(--carbon); }
dialog.fx-ind::backdrop { background: rgba(8,10,12,.82); }
.fx-ind-in { display: grid; grid-template-columns: 320px 1fr; min-height: 560px; }
.fx-ind-list { border-right: 1px solid var(--borde); background: var(--white); }
.fx-ind-list button { display: flex; justify-content: space-between; width: 100%; text-align: left; padding: 16px 22px; border: 0; border-bottom: 1px solid var(--borde);
	background: none; cursor: pointer; font: var(--fx-t-body) var(--fx-sans); color: var(--carbon); }
.fx-ind-list button span { font-family: var(--fx-mono); font-size: var(--fx-t-label); color: var(--steel); }
.fx-ind-list button[aria-selected="true"] { background: var(--carbon); color: var(--white); }
.fx-ind-list button[aria-selected="true"] span { color: var(--mist); }
.fx-ind-detail { padding: 32px; overflow: auto; }
.fx-ind-panel { display: flex; flex-direction: column; gap: 20px; }
.fx-ind-panel[hidden] { display: none; }
.fx-ind-panel h3 { font-size: 2rem; }
.fx-ind-panel ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--borde); }
.fx-ind-panel li { padding: 10px 0; border-bottom: 1px solid var(--borde); font-family: var(--fx-mono); font-size: var(--fx-t-small); }
.fx-ind-proj { color: inherit; text-decoration: none; display: grid; gap: 10px; }
.fx-ind-proj .fx-media { max-height: 300px; }
.fx-ind-panel .fx-button { align-self: flex-start; }
.fx-ind-close { position: absolute; top: 14px; right: 16px; background: none; border: 0; cursor: pointer; font-family: var(--fx-mono); font-size: var(--fx-t-label); letter-spacing: .08em; color: var(--steel); }

/* 7. TRABAJO — ritmo 2–1–2, franja Reto · Sistema, filtros -------------------- */
.fx-giant { overflow: hidden; white-space: nowrap; margin: -20px 0 50px; line-height: .85; }
.fx-giant span { display: inline-block; font-size: clamp(5rem, 19vw, 17rem); font-weight: 600; letter-spacing: -.045em; color: var(--white);
	transform: translateX(var(--gx, 0px)); will-change: transform; }
.fx-tone-white .fx-giant span, .fx-tone-fog .fx-giant span { color: var(--carbon); }
.fx-filters { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 8px; }
.fx-filters button { font-family: var(--fx-mono); font-size: var(--fx-t-label); letter-spacing: .08em; text-transform: uppercase; padding: 10px 14px;
	background: transparent; color: var(--mist); border: 1px solid var(--borde-dark); cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.fx-filters button sup { margin-left: 6px; font-size: var(--fx-t-micro); opacity: .7; }
.fx-filters button.on, .fx-filters button:hover { background: var(--white); color: var(--carbon); border-color: var(--white); }
.fx-work { margin-top: 60px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.fx-item { color: inherit; text-decoration: none; display: block; }
.fx-item[hidden] { display: none; }
.fx-item.wide { grid-column: 1 / -1; }
.fx-item.wide .fx-media { aspect-ratio: 21 / 9; }
.fx-cap { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--borde); }
.fx-tone-onyx .fx-cap, .fx-tone-carbon .fx-cap { border-color: var(--borde-dark); }
.fx-cap b { font-weight: 600; }

/* 8. PASOS ------------------------------------------------------------------ */
.fx-steps { margin-top: 60px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--borde); position: relative; }
.fx-steps-bar { position: absolute; top: -1px; left: 0; height: 2px; background: var(--prussian); width: 0; transition: width .2s linear; }
.fx-paso { padding: 28px 28px 0 0; position: relative; opacity: .35; transition: opacity .4s; }
.fx-paso.on { opacity: 1; }
.fx-paso::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; background: var(--carbon); }
.fx-paso:last-child::before { background: var(--prussian); }
.fx-n { font-family: var(--fx-mono); font-size: var(--fx-t-small); color: var(--steel); }
.fx-paso .fx-n { display: block; margin-top: 22px; }
.fx-paso h3 { font-size: 1.4rem; line-height: 1.25; margin: 12px 0 0 !important; padding: 0; }
.fx-paso p { margin: 8px 0 0 !important; font-size: var(--fx-t-body); line-height: 1.5; color: var(--steel); }
/* Iconos de los pasos: se animan al activarse (.on, lo pone la barra con el scroll) */
.fx-pico { width: 72px; height: 72px; display: block; overflow: visible; }
.fx-pico .l { fill: none; stroke: var(--carbon); stroke-width: 1.5; }
.fx-pico .g { fill: none; stroke: var(--steel); stroke-width: 1; stroke-dasharray: 3 3; }
.fx-pico .a { fill: var(--prussian); transform-box: fill-box; transform-origin: center; }
.fx-pico .b1, .fx-pico .b2 { transform-box: fill-box; }
/* 01 Diseño: las guías se trazan y el módulo encaja en la retícula */
.fx-paso--1.on .g { animation: fx-guia 1s var(--fx-ease) both; }
.fx-paso--1.on .a { animation: fx-encaja .7s var(--fx-ease) .55s both; }
@keyframes fx-guia { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0); } }
@keyframes fx-encaja { 0% { transform: scale(0); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
/* 02 Construcción: los bloques se apilan */
.fx-paso--2.on .b1 { animation: fx-sube .5s var(--fx-ease) both; }
.fx-paso--2.on .b2 { animation: fx-sube .5s var(--fx-ease) .18s both; }
.fx-paso--2.on .a { animation: fx-sube .5s var(--fx-ease) .36s both; }
@keyframes fx-sube { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* 03 Lanzamiento: el módulo sale del marco y deja estela */
.fx-pico .trail { stroke-dasharray: 22; }
.fx-paso--3.on .a { animation: fx-lanza .9s var(--fx-ease) both; }
.fx-paso--3.on .trail { animation: fx-estela .9s var(--fx-ease) both; }
@keyframes fx-lanza { from { transform: translateY(24px); } to { transform: none; } }
@keyframes fx-estela { from { stroke-dashoffset: 22; } to { stroke-dashoffset: 0; } }
/* 04 Operación: el ciclo se recorre y el módulo late mientras el paso está activo */
.fx-pico .loop { stroke-dasharray: 150; }
.fx-paso--4.on .loop { animation: fx-ciclo 1.4s var(--fx-ease) both; }
.fx-paso--4.on .a { animation: fx-late 2.4s ease-in-out 1.4s infinite; }
@keyframes fx-ciclo { from { stroke-dashoffset: 150; } to { stroke-dashoffset: 0; } }
@keyframes fx-late { 0%, 100% { transform: scale(1); } 50% { transform: scale(.7); } }
@media (prefers-reduced-motion: reduce) { .fx-pico * { animation: none !important; } }
/* Los pasos no son tarjetas: sin fondo ni borde al pasar el cursor */
.fx-paso, .fx-paso:hover { background: none; border: 0; }

/* 9. MODELO (Operado por Fluxar / En tu control) ---------------------------- */
.fx-toggle { margin-top: 40px; display: inline-flex; border: 1px solid var(--borde-dark); }
.fx-toggle button { padding: 12px 18px; background: transparent; color: var(--mist); border: 0; cursor: pointer; font-family: var(--fx-mono); font-size: var(--fx-t-label); letter-spacing: .08em; text-transform: uppercase; }
.fx-toggle button.on { background: var(--white); color: var(--carbon); }
.fx-ops { display: none; margin-top: 30px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.fx-ops.on { display: grid; }
.fx-box { border: 1px solid var(--borde-dark); padding: 28px; }
.fx-box ul { list-style: none; margin: 18px 0 0; padding: 0; }
.fx-box li { padding: 10px 0; border-top: 1px solid var(--borde-dark); font-size: var(--fx-t-body); }

/* 10. SISTEMAS PROPIOS + LOGOS --------------------------------------------- */
.fx-sys { margin-top: 80px; border-top: 1px solid var(--borde); }
.fx-sys-row { display: grid; grid-template-columns: 50px 3fr 6fr 2fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--borde); align-items: baseline; }
.fx-sys-row span:first-child, .fx-sys-row span:last-child { font-family: var(--fx-mono); font-size: var(--fx-t-label); color: var(--steel); text-transform: uppercase; }
.fx-sys-row span:nth-child(2) { font-weight: 600; }
.fx-sys-row span:nth-child(3) { color: var(--steel); }

/* 11. CASO (página de proyecto) -------------------------------------------- */
.fx-case-hero { position: relative; height: 88svh; min-height: 520px; overflow: hidden; background: var(--onyx); }
.fx-case-hero .fx-media { position: absolute; inset: 0; aspect-ratio: auto; }
.fx-case-hero .fx-media img { filter: none; --fx-s: 1; }
.fx-case-title { margin-top: 26px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; align-items: end; }
.fx-case-title h1 { grid-column: 1 / 8; font-size: clamp(3rem, 7vw, 6.5rem); line-height: .95; letter-spacing: -.035em; }
.fx-case-title .fx-lead { grid-column: 8 / 13; }
.fx-facts { margin: 56px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border-top: 1px solid var(--borde); }
.fx-facts div { padding: 18px 18px 0 0; }
.fx-facts dd { margin: 8px 0 0; padding: 0; font-weight: 500; font-size: var(--fx-t-body); }
.fx-facts dd a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }
.fx-facts dd a:hover { color: var(--fx-prussian, #003153); }
.fx-status { color: var(--prussian); }
.fx-status::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--prussian); margin-right: 8px; vertical-align: 1px; }
.fx-rsr { margin-top: 80px; }
.fx-rsr-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; padding: 44px 0; border-top: 1px solid var(--borde); }
.fx-rsr-row .fx-meta { grid-column: 1 / 4; padding-top: 8px; }
.fx-rsr-row p { grid-column: 4 / 11; font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.35; letter-spacing: -.01em; }
/* Galería: imágenes del editor en 4:3; con la clase fx-wide, a ancho completo */
.fx-case-gallery { padding-top: 0; }
.fx-case-gallery .fx-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.fx-case-gallery .fx-wrap > * { margin: 0 !important; }
.fx-case-gallery figure img, .fx-case-gallery .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.fx-case-gallery .fx-wide { grid-column: 1 / -1; }
.fx-case-gallery .fx-wide img { aspect-ratio: 21 / 9; }
.fx-case-gallery .fx-wide img { aspect-ratio: 21 / 9; }
.fx-next { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; align-items: center; }
.fx-next-txt { grid-column: 1 / 6; }
.fx-next-txt h2 { font-size: clamp(2.4rem, 5vw, 4.5rem); letter-spacing: -.03em; color: var(--white); }
.fx-next-img { grid-column: 7 / 13; display: block; }

/* 12. 404 --------------------------------------------------------------------- */
.fx-404 { min-height: 100svh; display: flex; align-items: center; width: 100vw; margin-left: calc(50% - 50vw); }
body.error404 .main-content { padding-top: 0 !important; padding-bottom: 0 !important; }
.fx-404-title { margin-top: 26px; font-size: clamp(3rem, 7vw, 6.5rem); line-height: .95; letter-spacing: -.035em; color: var(--white); }
.fx-404 .fx-lead { margin-top: 24px; color: var(--mist); max-width: 560px; }
#error-404 { display: none; }

/* 13. MOVIMIENTO ---------------------------------------------------------------- */
.fx-rv { opacity: 0; transform: translateY(48px); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform 1.1s cubic-bezier(.16,1,.3,1); }
.fx-rv.fx-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.fx-hero-pin { height: auto; } .fx-hero { position: relative; }
	.fx-hero-frame video { display: none; }
	.fx-track { animation: none; }
	.fx-paso { opacity: 1; }
}

/* 14. RESPONSIVE ------------------------------------------------------------------ */
@media (max-width: 900px) {
	.fx-nav { display: none; } .fx-burger { display: block; }
	.fx-hero-pin { height: 170vh; }
	.fx-doms, .fx-work, .fx-ops, .fx-case-gallery .fx-wrap { grid-template-columns: 1fr; }
	.fx-dom { min-height: 0; }
	.fx-item.wide .fx-media, .fx-case-gallery .fx-wide img { aspect-ratio: 4 / 3; }
	.fx-steps { grid-template-columns: 1fr; } .fx-steps-bar { display: none; } .fx-paso { opacity: 1; padding-bottom: 20px; }
	.fx-ind-in { grid-template-columns: 1fr; }
	.fx-ind-list { border-right: 0; display: flex; overflow-x: auto; }
	.fx-ind-list button { white-space: nowrap; width: auto; border-right: 1px solid var(--borde); }
	.fx-head > *, .fx-case-title h1, .fx-case-title .fx-lead, .fx-rsr-row .fx-meta, .fx-rsr-row p, .fx-next-txt, .fx-next-img { grid-column: 1 / -1; }
	.fx-sys-row { grid-template-columns: 40px 1fr; } .fx-sys-row span:nth-child(3), .fx-sys-row span:last-child { grid-column: 2; }
}
@media (max-width: 700px) {
	.fx-hero-top { flex-direction: column; }
	.fx-hero-cap > span:first-child { display: none; } .fx-hero-cap { justify-content: flex-end; }
}

/* 15. AJUSTES SOBRE ESTILOS DE NECTARBLOCKS -------------------------------------- */
.fx-tips, .fx-ind-panel ul, .fx-box ul { padding-left: 0 !important; }
.fx-tips li, .fx-ind-panel li, .fx-box li { list-style: none !important; margin-left: 0 !important; }
.fx-sec .fx-eyebrow + h2, .fx-sec .fx-eyebrow + .fx-statement { margin-top: 26px; }
.fx-sec h2 { margin-bottom: 0; }

/* 16. PIEZAS DEL HOME ARMADAS EN HTML ---------------------------------------------- */
.fx-who-foot { margin-top: 46px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.fx-buy { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--borde-dark); }
.fx-about { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.fx-about-photo { grid-column: span 4; aspect-ratio: 4 / 5; background: var(--mist); overflow: hidden; }
.fx-about-photo img { width: 100%; height: 100%; object-fit: cover; }
.fx-about-txt { grid-column: 6 / span 7; }
.fx-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.fx-chips span { font-family: var(--fx-mono); font-size: var(--fx-t-small); padding: 10px 16px; border: 1px solid var(--borde); }
.fx-logos { margin-top: 80px; display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--borde); }
.fx-logos .fx-logo-cell { min-height: 150px; display: flex; align-items: center; justify-content: center; color: var(--steel); transition: color var(--fx-transition); }
.fx-logos .fx-logo-cell:hover { color: var(--carbon); }
.fx-logos svg { height: var(--h, 36px); width: auto; display: block; }
.fx-logos .fx-logo-cell + .fx-logo-cell { border-left: 1px solid var(--borde); }
.fx-contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.fx-contact > :first-child { grid-column: span 5; } .fx-contact-form { grid-column: 7 / span 6; }
.fx-band { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; }
.fx-band h2 { max-width: 780px; }
@media (max-width: 900px) {
	.fx-about-photo, .fx-about-txt, .fx-contact > :first-child, .fx-contact-form { grid-column: 1 / -1; }
}

/* 17. FORMULARIO HABLEMOS (Contact Form 7) ------------------------------------------- */
.fx-cf7-form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.fx-cf7-form .fx-full { grid-column: 1 / -1; }
.fx-cf7-form label, .fx-flabel { display: block; margin-bottom: 10px; font-family: var(--fx-mono); font-size: var(--fx-t-micro); letter-spacing: .1em; text-transform: uppercase; color: var(--mist); }
.fx-cf7-form .wpcf7-form-control-wrap { display: block; }
.fx-cf7-form input[type=text], .fx-cf7-form input[type=email], .fx-cf7-form textarea {
	width: 100%; padding: 15px 16px; background: var(--slate); border: 1px solid var(--borde-dark); color: var(--white); font: var(--fx-t-body) var(--fx-sans); outline: none;
	transition: border-color var(--fx-transition), background var(--fx-transition); }
.fx-cf7-form input:focus, .fx-cf7-form textarea:focus { border-color: var(--white); background: var(--carbon); }
.fx-cf7-form textarea { min-height: 130px; resize: vertical; }
/* Opciones como fichas */
.fx-cf7-form .wpcf7-radio { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-cf7-form .wpcf7-list-item { margin: 0; }
.fx-cf7-form .wpcf7-list-item label { margin: 0; display: block; cursor: pointer; }
.fx-cf7-form .wpcf7-list-item input { position: absolute; opacity: 0; pointer-events: none; }
.fx-cf7-form .wpcf7-list-item-label { display: block; border: 1px solid var(--borde-dark); padding: 11px 14px; font-size: var(--fx-t-micro); color: var(--white); transition: background .2s, color .2s; }
.fx-cf7-form .wpcf7-list-item input:checked + .wpcf7-list-item-label { background: var(--white); color: var(--onyx); }
.fx-cf7-form .wpcf7-list-item input:focus-visible + .wpcf7-list-item-label { outline: 1px solid var(--white); outline-offset: 2px; }
/* Enviar */
.fx-send { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.fx-cf7-form .wpcf7-submit { border: 1px solid var(--white); background: transparent; color: var(--white); padding: 14px 18px; cursor: pointer;
	font-family: var(--fx-mono); font-size: var(--fx-t-label); letter-spacing: .06em; text-transform: uppercase; transition: background var(--fx-transition), color var(--fx-transition); }
.fx-cf7-form .wpcf7-submit:hover { background: var(--white); color: var(--carbon); }
.fx-cf7-form .wpcf7-spinner { margin: 0; }
.fx-legal { margin: 0; font-family: var(--fx-mono); font-size: var(--fx-t-micro); letter-spacing: .06em; color: var(--steel); }
.fx-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Avisos de CF7 con el lenguaje FXC */
.fx-cf7-form .wpcf7-not-valid-tip { margin-top: 6px; font-family: var(--fx-mono); font-size: var(--fx-t-micro); color: var(--mist); }
.fx-cf7-form .wpcf7-not-valid { border-color: var(--mist) !important; }
.fx-cf7 .wpcf7-response-output { grid-column: 1 / -1; margin: 0 !important; padding: 14px 16px !important; border: 1px solid var(--borde-dark) !important; color: var(--white); font-size: var(--fx-t-small); }
.fx-cf7 .sent .wpcf7-response-output { border-color: var(--white) !important; }
@media (max-width: 700px) { .fx-cf7-form { grid-template-columns: 1fr; } }
/* Nectarblocks pinta inputs, botones y avisos con su propio fondo: se neutraliza solo dentro del formulario */
.fx-cf7 .wpcf7-not-valid-tip { background: none !important; padding: 0 !important; border: 0 !important; color: var(--mist) !important; box-shadow: none !important; }
.fx-cf7 input.wpcf7-submit { background: transparent !important; color: var(--white) !important; border: 1px solid var(--white) !important; font-weight: 400 !important; }
.fx-cf7 input.wpcf7-submit:hover { background: var(--white) !important; color: var(--carbon) !important; }
.fx-cf7 .wpcf7-response-output { background: transparent !important; }
.fx-cf7 .wpcf7-response-output:empty { display: none; }

/* 18. MÓVIL (≤700px) ------------------------------------------------------------------
 * El hero no se encoge (fluxar.js lo desactiva aquí): ocupa una pantalla y sigue la página.
 * Encabezados a una columna, logos en una fila y pasos compactos (icono a la izquierda). */
@media (max-width: 700px) {
	.fx-hero-pin { height: auto; }
	.fx-hero { position: relative; height: 100svh; }
	.fx-hero-frame { clip-path: none !important; }
	.fx-hero-body { opacity: 1 !important; transform: none !important; }
	.fx-hero-cap { display: none; }
	.fx-head > p { grid-column: 1 / -1; margin-top: 14px; }
	.fx-logos { margin-top: 56px; }
	.fx-logos .fx-logo-cell { min-height: 96px; padding: 0 10px; }
	.fx-logos svg { height: calc(var(--h, 36px) * .55); max-width: 100%; }
	.fx-steps { border-top: 0; margin-top: 40px; }
	.fx-paso { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; padding: 22px 0; border-top: 1px solid var(--borde); }
	.fx-paso::before { display: none; }
	.fx-paso .fx-pico { grid-row: 1 / 4; width: 56px; height: 56px; }
	.fx-paso .fx-n { margin-top: 0; }
	.fx-paso h3 { margin-top: 6px !important; }
}

/* 19. ÍNDICE DEL PORTAFOLIO ([fx_trabajo]) -------------------------------------------
 * Filas: número · cliente · qué hace · dominio · año · ↗. Al pasar el cursor la fila se sombrea (Slate)
 * y la imagen del proyecto flota junto al cursor (.fx-peek, la crea fluxar.js). */
.fx-idx { margin-top: 64px; border-top: 1px solid var(--borde); }
.fx-tone-onyx .fx-idx, .fx-tone-carbon .fx-idx { border-color: var(--borde-dark); }
.fx-row { display: grid; grid-template-columns: 56px 1.1fr 1.6fr 160px 64px 24px; gap: 20px; align-items: baseline;
	padding: 26px 16px; margin: 0 -16px; border-bottom: 1px solid var(--borde); color: inherit; text-decoration: none; transition: background .25s; }
.fx-tone-onyx .fx-row, .fx-tone-carbon .fx-row { border-color: var(--borde-dark); }
.fx-row:hover { background: var(--fog); }
.fx-tone-onyx .fx-row:hover, .fx-tone-carbon .fx-row:hover { background: var(--slate); }
.fx-row b { font-size: 1.35rem; font-weight: 600; line-height: 1.25; }
.fx-row-n, .fx-row-d, .fx-row-y, .fx-row-a { font-family: var(--fx-mono); font-size: var(--fx-t-label); letter-spacing: .06em; text-transform: uppercase; color: var(--steel); }
.fx-row-s { font-size: var(--fx-t-body); line-height: 1.45; color: var(--steel); }
.fx-tone-onyx :is(.fx-row-n, .fx-row-d, .fx-row-y, .fx-row-a) { color: var(--mist); }
.fx-tone-onyx .fx-row-s { color: #B9BEC6; }
.fx-row:hover .fx-row-a { color: currentColor; }
/* Filas plegadas: se abren con «Ver todo el trabajo» */
.fx-idx-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--fx-ease); }
.fx-idx-more > div { overflow: hidden; }
.fx-idx.open .fx-idx-more { grid-template-rows: 1fr; }
.fx-idx-foot { margin-top: 36px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.fx-idx-foot .fx-button { background: none; cursor: pointer; }
/* Imagen flotante */
.fx-peek { position: fixed; left: 0; top: 0; z-index: 60; width: 360px; aspect-ratio: 4 / 3; overflow: hidden; pointer-events: none; background: var(--slate);
	opacity: 0; transform: translate(var(--x, 0), var(--y, 0)) scale(.96); transition: opacity .25s, transform .12s linear; }
.fx-peek.on { opacity: 1; transform: translate(var(--x, 0), var(--y, 0)) scale(1); }
.fx-peek img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (max-width: 900px) { .fx-peek { display: none; } }
@media (max-width: 900px) {
	.fx-row { grid-template-columns: 1fr auto; padding: 20px 0; margin: 0; gap: 4px 16px; }
	.fx-row-n, .fx-row-a { display: none; }
	.fx-row-s { grid-column: 1 / -1; grid-row: 2; }
	.fx-row-d { grid-column: 1; grid-row: 3; } .fx-row-y { grid-column: 2; grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) { .fx-idx-more, .fx-peek { transition: none; } }

