:root {
  color-scheme: light;
  --navy: #17191f;
  --navy-2: #242831;
  --blue: #00aeef;
  --magenta: #ff0067;
  --purple: #6a35c1;
  --ink: #1a1c21;
  --muted: #626873;
  --line: #d9dadd;
  --surface: #f5f4f1;
  --white: #fff;
  --success: #08775b;
  --warning: #9b5c00;
  --danger: #b42318;
  --shadow: 0 18px 48px rgba(7, 26, 75, .12);
  --radius: 18px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); line-height: 1.55; }
body.panel-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; color: var(--navy); font-family: Montserrat, Inter, "Segoe UI", sans-serif; line-height: 1.08; }
h1 { font-size: clamp(2.5rem, 7vw, 5.6rem); letter-spacing: -.055em; }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); letter-spacing: -.035em; }
h3 { font-size: 1.2rem; }
p { margin: .55rem 0 0; }

.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: white; color: var(--navy); padding: .8rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.demo-bar { min-height: 30px; padding: .35rem 4vw; background: var(--magenta); color: white; display: flex; justify-content: space-between; gap: 1rem; font: 700 .75rem/1.4 Montserrat, sans-serif; letter-spacing: .08em; }
.site-header { height: 84px; padding: 0 4vw; position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; background: rgba(255, 255, 255, .98); border-bottom: 1px solid var(--line); box-shadow: 0 8px 28px rgba(7,26,75,.06); }
.brand { width: 180px; height: 72px; display: grid; place-items: center; }
.brand img { width: 180px; height: 72px; object-fit: contain; }
.primary-nav { display: flex; justify-content: center; align-items: center; gap: clamp(.75rem, 2vw, 1.8rem); }
.primary-nav a { color: var(--navy); text-decoration: none; font-weight: 700; font-size: .9rem; }
.primary-nav a:hover, .primary-nav a:focus-visible { color: var(--blue); }
.menu-button { display: none; }
.cart-button, .menu-button { background: var(--navy); color: white; border: 0; border-radius: 999px; padding: .7rem 1rem; font-weight: 800; cursor: pointer; }
.cart-button span { display: inline-grid; place-items: center; min-width: 1.45rem; height: 1.45rem; margin-left: .35rem; border-radius: 50%; background: var(--magenta); color: white; font-size: .78rem; }

main { min-height: 70vh; }
.page { animation: enter .45s ease both; }
.shell { width: min(1180px, 92vw); margin: 0 auto; }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-tight { padding: 3rem 0; }
.surface { background: var(--surface); }
.dark { background: var(--navy); color: #e9efff; }
.dark h1, .dark h2, .dark h3 { color: white; }
.eyebrow { display: block; margin-bottom: .8rem; color: var(--magenta); font: 800 .8rem/1.2 Montserrat, sans-serif; letter-spacing: .14em; }
.lead { max-width: 68ch; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.dark .lead { color: #cbd6f4; }
.gradient-text { background: linear-gradient(90deg, var(--magenta), var(--purple), var(--blue)); background-clip: text; color: transparent; }
.button-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.7rem; }
.button { border: 1px solid transparent; border-radius: 10px; padding: .8rem 1.15rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; text-decoration: none; font-weight: 800; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: linear-gradient(100deg, var(--magenta), var(--purple), var(--blue)); box-shadow: 0 10px 24px rgba(106,53,193,.26); }
.button-secondary { background: white; color: var(--navy); border-color: var(--line); }
.button-dark { color: white; background: var(--navy); }
.button-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.button-small { padding: .55rem .8rem; font-size: .88rem; }

.hero { min-height: calc(100vh - 108px); display: grid; align-items: stretch; background: var(--navy); overflow: hidden; }
.hero-grid { width: min(1440px, 100%); margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; }
.hero-copy { padding: clamp(4rem, 9vw, 8rem) max(4vw, calc((100vw - 1180px)/2)); padding-right: 4vw; display: flex; flex-direction: column; justify-content: center; color: white; position: relative; }
.hero-copy::before { content: ""; position: absolute; top: 12%; right: 0; width: 1px; height: 76%; background: linear-gradient(var(--magenta), var(--blue)); }
.hero-copy h1 { color: white; }
.hero-copy p { max-width: 610px; color: #cbd6f4; font-size: 1.15rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: .7rem 1.5rem; margin-top: 2.5rem; color: #cbd6f4; font-size: .9rem; }
.hero-proof span::before { content: ""; display: inline-block; width: .5rem; height: .5rem; margin-right: .55rem; border-radius: 50%; background: var(--blue); }
.hero-image { min-height: 620px; position: relative; background: #0b0d13; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.88); }
.hero-image::after { content: "PROYECTO REAL · FABRICACIÓN LOCAL"; position: absolute; right: 1.5rem; bottom: 1.5rem; padding: .55rem .75rem; color: white; background: rgba(7,26,75,.86); font: 800 .75rem Montserrat, sans-serif; letter-spacing: .08em; }

.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.rule-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rule-list li { display: grid; grid-template-columns: 2rem 1fr; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.rule-list b { color: var(--blue); font-family: "IBM Plex Mono", Consolas, monospace; }
.rule-list p { margin: .25rem 0 0; color: var(--muted); }
.grid { display: grid; gap: 1.2rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 24px rgba(7,26,75,.05); }
.card-body { padding: 1.25rem; }
.card p { color: var(--muted); }
.service-card { padding: 1.5rem; min-height: 250px; position: relative; }
.service-card .number { color: var(--blue); font: 700 .85rem "IBM Plex Mono", monospace; }
.service-card h3 { margin-top: 3.5rem; }
.service-card::after { content: ""; position: absolute; left: 1.5rem; right: 1.5rem; bottom: 1.4rem; height: 2px; background: linear-gradient(90deg, var(--magenta), var(--blue)); transform-origin: left; transform: scaleX(.28); transition: transform .25s ease; }
.service-card:hover::after { transform: scaleX(1); }

.route-hero { padding: 5rem 0 3.5rem; background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: white; }
.route-hero h1 { color: white; font-size: clamp(2.6rem, 6vw, 4.6rem); }
.route-hero p { max-width: 700px; color: #cbd6f4; font-size: 1.1rem; }
.toolbar { display: flex; gap: 1rem; flex-wrap: wrap; margin: 2rem 0; }
.field { display: grid; gap: .45rem; }
.field label, .field-label { color: var(--navy); font-weight: 750; font-size: .9rem; }
.input, select, textarea { width: 100%; min-height: 46px; padding: .7rem .8rem; color: var(--ink); background: white; border: 1px solid #b8c3d8; border-radius: 9px; }
.input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(0,174,239,.42); outline-offset: 2px; }
.toolbar .field { min-width: 220px; flex: 1; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.product-card { display: flex; flex-direction: column; }
.product-image { aspect-ratio: 3/4; background: #0b0d13; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover img { transform: scale(1.025); }
.product-card .card-body { display: flex; flex: 1; flex-direction: column; }
.product-card .meta { color: var(--purple); font: 750 .75rem "IBM Plex Mono", monospace; text-transform: uppercase; }
.price-line { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1.3rem; }
.price { color: var(--navy); font-size: 1.35rem; font-weight: 850; }
.demo-label { display: inline-block; width: fit-content; padding: .25rem .55rem; border-radius: 999px; color: var(--warning); background: #fff2cf; font-size: .75rem; font-weight: 800; }
.empty { padding: 3rem; border: 1px dashed #a8b4cb; border-radius: var(--radius); text-align: center; color: var(--muted); }
.auth-layout { display: grid; grid-template-columns: minmax(320px, 520px) minmax(0, 1fr); gap: clamp(2rem, 7vw, 7rem); align-items: center; }
.auth-card { display: grid; gap: 1rem; padding: clamp(1.4rem, 4vw, 2.4rem); }
.auth-switch { display: flex; gap: .35rem; padding: .25rem; margin-bottom: .4rem; background: var(--surface); border-radius: 10px; }
.auth-tab { flex: 1; padding: .65rem; color: var(--muted); background: transparent; border: 0; border-radius: 8px; font-weight: 800; cursor: pointer; }
.auth-tab.active { color: var(--navy); background: white; box-shadow: 0 3px 12px rgba(7,26,75,.08); }
.auth-message { min-height: 1.5rem; color: var(--danger); font-size: .92rem; }
.auth-note { max-width: 520px; }
.auth-note h2 { margin-top: .6rem; }
.account-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); }
.auth-stage { min-height: calc(100vh - 84px); position: relative; display: grid; align-items: center; overflow: hidden; color: white; background: #17191f; }
.auth-stage-media { position: absolute; inset: 0; overflow: hidden; }
.auth-stage-media video { position: absolute; inset: -3%; width: 106%; height: 106%; object-fit: cover; filter: blur(3px) saturate(.9); opacity: .76; transform: scale(1.03); }
.auth-stage-media .auth-city-video { opacity: .22; mix-blend-mode: screen; filter: blur(5px) saturate(.75); }
.auth-stage-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,16,47,.9), rgba(3,16,47,.56) 48%, rgba(3,16,47,.78)), linear-gradient(0deg, rgba(3,16,47,.38), transparent 45%); }
.auth-stage-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: clamp(2rem, 8vw, 9rem); align-items: center; padding: clamp(4rem, 8vw, 7rem) 0; }
.auth-intro { max-width: 650px; }
.auth-intro h1 { color: white; font-size: clamp(3rem, 7vw, 6rem); }
.auth-intro h1 em { color: #bdeeff; font-style: normal; }
.auth-intro p { max-width: 510px; color: #e4edff; font-size: clamp(1.05rem, 2vw, 1.3rem); }
.auth-location { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.35); color: white; font: 800 .78rem/1.3 Montserrat, sans-serif; letter-spacing: .14em; }
.auth-location span { margin-left: 1rem; color: #ff6caa; }
.auth-stage .auth-card { background: rgba(255,255,255,.96); box-shadow: 0 24px 70px rgba(0,0,0,.28); backdrop-filter: blur(8px); }
.nx-process-media { background: var(--navy); color: white; }
.nx-process-media h2 { color: white; }
.nx-process-media .lead { color: #cbd6f4; }
.nx-process-media-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.nx-process-video, .nx-software-card { min-height: 340px; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.16); background: #071329; }
.nx-process-video video { width: 100%; height: 100%; min-height: 340px; object-fit: cover; opacity: .78; }
.nx-process-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3,16,47,.9), transparent 65%); pointer-events: none; }
.nx-process-video > div { position: absolute; z-index: 1; left: 1.3rem; right: 1.3rem; bottom: 1.2rem; }
.nx-process-video span, .nx-software-card span { color: #ff6caa; font: 800 .74rem/1.2 Montserrat, sans-serif; letter-spacing: .14em; }
.nx-process-video h3, .nx-software-card h3 { margin-top: .45rem; color: white; font-size: 1.5rem; }
.nx-software-card { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); align-items: center; background: #242831; }
.nx-software-card img { width: 100%; height: 100%; min-height: 310px; object-fit: cover; object-position: center; background: #0b1530; }
.nx-software-card > div { padding: clamp(1.5rem, 4vw, 3rem); }
.nx-software-card p { color: #cbd6f4; }

.quote-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr); gap: 1.5rem; align-items: start; }
.wizard { background: white; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.step-tab { padding: 1rem .5rem; color: var(--muted); background: transparent; border: 0; border-bottom: 3px solid transparent; font-weight: 800; cursor: pointer; }
.step-tab.active { color: var(--navy); border-color: var(--magenta); }
.step-panel { padding: clamp(1.25rem, 4vw, 2.5rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.full { grid-column: 1 / -1; }
.check { display: flex; gap: .7rem; align-items: flex-start; }
.check input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--magenta); }
.drop-zone { min-height: 220px; padding: 2rem; display: grid; place-items: center; text-align: center; border: 2px dashed #94a3bd; border-radius: 16px; background: var(--surface); cursor: pointer; }
.drop-zone.drag { border-color: var(--blue); background: #ecfaff; }
.drop-zone input { position: absolute; opacity: 0; pointer-events: none; }
.file-result { margin-top: 1rem; padding: 1rem; border-radius: 10px; background: #edf9f5; color: #075f49; }
.model-canvas { width: 100%; height: 290px; border-radius: 14px; background: #101216; }
.notice { padding: 1rem; border-left: 4px solid var(--blue); background: #edf8ff; color: #24415f; }
.notice-warning { border-color: #e89b00; background: #fff7e1; }
.summary-card { position: sticky; top: 126px; padding: 1.4rem; background: var(--navy); color: white; border-radius: 18px; }
.summary-card h2 { color: white; font-size: 1.5rem; }
.summary-list { margin: 1.2rem 0; padding: 0; list-style: none; }
.summary-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.summary-list span { color: #bdcaeb; }
.summary-total { font-size: 2rem; font-weight: 850; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 2rem 0; }
.metric { padding: 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: white; }
.metric span { color: var(--muted); font-size: .85rem; }
.metric strong { display: block; margin-top: .4rem; color: var(--navy); font-size: 1.8rem; }
.admin-layout { display: grid; grid-template-columns: 240px 1fr; gap: 1.5rem; }
.admin-nav { padding: 1rem; border-radius: 14px; background: var(--navy); color: white; }
.admin-nav button { width: 100%; padding: .7rem; text-align: left; color: #dce5ff; background: transparent; border: 0; border-radius: 7px; cursor: pointer; }
.admin-nav button.active, .admin-nav button:hover { background: rgba(255,255,255,.12); color: white; }
.admin-products { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.admin-products-head { margin-bottom: 1.4rem; }
.admin-products-head p { color: var(--muted); }
.admin-products-layout { display: grid; grid-template-columns: minmax(320px, .8fr) minmax(0, 1.2fr); gap: 1.5rem; align-items: start; }
.admin-products .card { padding: 1.25rem; }
.admin-product-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; background: var(--surface); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { padding: .9rem; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { background: var(--navy); color: white; font-size: .8rem; letter-spacing: .04em; }
.status { display: inline-flex; padding: .28rem .55rem; border-radius: 999px; background: #e8eefb; color: var(--navy); font-size: .75rem; font-weight: 800; }
.status-review { background: #fff2cf; color: #885300; }
.timeline { list-style: none; margin: 2rem 0; padding: 0 0 0 1.3rem; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1.6rem 1.3rem; }
.timeline li::before { content: ""; position: absolute; left: -1.72rem; top: .25rem; width: .75rem; height: .75rem; border-radius: 50%; background: var(--blue); border: 3px solid white; }

.cart-panel { position: fixed; z-index: 60; top: 0; right: 0; width: min(460px, 94vw); height: 100vh; padding: 1.4rem; background: white; box-shadow: -20px 0 55px rgba(7,26,75,.2); transform: translateX(105%); transition: transform .25s ease; overflow-y: auto; }
.cart-panel.open { transform: translateX(0); }
.cart-header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.icon-button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--navy); font-size: 1.5rem; cursor: pointer; }
.scrim { position: fixed; z-index: 50; inset: 0; background: rgba(3,12,36,.55); }
.cart-item { display: grid; grid-template-columns: 70px 1fr auto; gap: .8rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; }
.toast { position: fixed; z-index: 90; right: 1.2rem; bottom: 1.2rem; max-width: 360px; padding: 1rem 1.2rem; border-radius: 10px; background: var(--navy); color: white; box-shadow: var(--shadow); transform: translateY(140%); transition: transform .24s ease; }
.toast.show { transform: translateY(0); }
.site-footer { padding: 3rem 4vw; display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; align-items: start; color: #d4d5d8; background: #0d0f13; font-size: .9rem; }
.site-footer strong { color: white; }
.site-footer nav { display: grid; gap: .4rem; }
.site-footer a { color: white; }

@keyframes enter { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 980px) {
  .site-header { grid-template-columns: auto 1fr auto; gap: .8rem; }
  .menu-button { display: block; justify-self: end; }
  .primary-nav { position: absolute; left: 0; right: 0; top: 84px; padding: 1rem 4vw 1.5rem; display: none; align-items: stretch; flex-direction: column; background: white; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .primary-nav.open { display: flex; }
  .hero-grid, .split, .quote-layout { grid-template-columns: 1fr; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-stage-grid { grid-template-columns: 1fr; }
  .auth-intro { max-width: 600px; }
  .hero-copy { padding: 5rem 6vw; }
  .hero-copy::before { display: none; }
  .hero-image { min-height: 520px; }
  .grid-4, .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .summary-card { position: static; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-products-layout { grid-template-columns: 1fr; }
  .admin-nav { display: flex; overflow-x: auto; }
  .admin-nav button { min-width: max-content; }
  .site-footer { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 650px) {
  .demo-bar { justify-content: center; text-align: center; }
  .demo-bar span:last-child { display: none; }
  .site-header { padding: 0 3vw; }
  .brand { width: 140px; }
  .brand img { width: 140px; height: 68px; }
  .cart-button { font-size: 0; padding: .6rem; }
  .cart-button::before { content: "Carrito"; font-size: .8rem; }
  .cart-button span { font-size: .72rem; }
  .hero-image { min-height: 420px; }
  .product-grid, .grid-3, .grid-4, .metric-grid, .form-grid { grid-template-columns: 1fr; }
  .nx-process-media-grid, .nx-software-card { grid-template-columns: 1fr; }
  .nx-software-card { grid-column: auto; }
  .stepper { grid-template-columns: repeat(2, 1fr); }
  .site-footer { grid-template-columns: 1fr; }
  .route-hero { padding-top: 3.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Nexora editorial home refresh */
.nx-hero { min-height: min(840px, calc(100vh - 110px)); position: relative; overflow: hidden; background: var(--navy); color: white; }
.nx-hero::before { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: radial-gradient(circle at 72% 40%, rgba(0,174,239,.18), transparent 28%), linear-gradient(115deg, rgba(7,26,75,.98) 0%, rgba(7,26,75,.78) 40%, rgba(7,26,75,.22) 75%, rgba(7,26,75,.55) 100%); }
.nx-hero::after { content: ""; position: absolute; z-index: 2; width: 52vw; height: 52vw; right: -21vw; top: 12%; border: 1px solid rgba(0,174,239,.25); border-radius: 50%; box-shadow: 0 0 0 8vw rgba(0,174,239,.025), 0 0 0 16vw rgba(255,0,103,.02); animation: nx-orbit 18s linear infinite; pointer-events: none; }
.nx-hero-media { position: absolute; inset: 0; overflow: hidden; }
.nx-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,26,75,.25), transparent 45%, rgba(7,26,75,.35)); }
.nx-hero-media img { width: 100%; height: 100%; object-fit: cover; animation: nx-zoom 16s ease-in-out infinite alternate; }
.nx-hero-video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; filter: saturate(.9) contrast(1.02); }
.nx-hero-video.is-playing { opacity: .72; }
.nx-video-toggle { position: absolute; z-index: 5; right: 1.5rem; bottom: 5rem; color: white; background: #17191fcc; border: 1px solid #ffffff70; border-radius: 999px; padding: .65rem 1rem; cursor: pointer; }
.nx-service-card:hover h3 { color: white; }
.primary-nav a[aria-current="page"] { color: var(--magenta); }
.quote-id { max-width: 230px; white-space: normal; overflow-wrap: anywhere; font: .8rem/1.5 monospace; }
button:disabled { opacity: .6; cursor: wait; }
.nx-film-label { top: 1rem; bottom: auto; }
.nx-hero::after { display: none; }
.nx-hero-content h1 { font-size: clamp(3.2rem, 6.5vw, 6rem); letter-spacing: -.055em; }
.nx-live-mark::before { animation: none; }
.nx-hero-caption { position: absolute; z-index: 2; right: 2.5rem; bottom: 2rem; color: white; font: 700 .68rem "IBM Plex Mono", monospace; letter-spacing: .16em; }
.nx-hero-content { position: relative; z-index: 3; min-height: min(840px, calc(100vh - 110px)); padding: clamp(4rem, 9vw, 9rem) clamp(2rem, 7vw, 7rem); display: flex; flex-direction: column; justify-content: center; background: transparent; }
.nx-hero-content h1 { max-width: 680px; color: white; font-size: clamp(3.3rem, 7vw, 7.2rem); font-weight: 800; letter-spacing: -.075em; }
.nx-hero-content h1 em, .nx-quote-content h2 em { color: var(--blue); font-style: normal; }
.nx-hero-content p { max-width: 520px; margin-top: 1.5rem; color: #ccd7f4; font-size: clamp(1.05rem, 1.8vw, 1.3rem); }
.button-outline-light { color: white; border-color: rgba(255,255,255,.45); background: transparent; }
.button-outline-light:hover { background: rgba(255,255,255,.12); }
.nx-scroll-note { display: flex; align-items: center; gap: .75rem; margin-top: 5rem; color: #9baad0; font: 700 .7rem "IBM Plex Mono", monospace; letter-spacing: .13em; }
.nx-line { width: 54px; height: 1px; background: var(--blue); }
.nx-live-mark { position: absolute; top: 2rem; right: clamp(1.2rem, 5vw, 5rem); display: flex; align-items: center; gap: .6rem; color: #dce7ff; font: 700 .65rem "IBM Plex Mono", monospace; letter-spacing: .15em; }
.nx-live-mark::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 0 .35rem rgba(255,0,103,.16); animation: nx-pulse 1.8s ease-in-out infinite; }
.nx-hero-bottom { position: absolute; z-index: 4; right: clamp(1.2rem, 5vw, 5rem); bottom: 2rem; display: flex; gap: .65rem; align-items: center; color: #dce7ff; font: 700 .68rem "IBM Plex Mono", monospace; letter-spacing: .12em; }
.nx-hero-bottom b { color: var(--blue); font-size: 1.2rem; }
.nx-marquee { overflow: hidden; padding: 1.05rem 0; color: var(--navy); background: var(--blue); font: 850 .8rem "IBM Plex Mono", monospace; letter-spacing: .15em; white-space: nowrap; }
.nx-marquee div { width: max-content; animation: nx-marquee 28s linear infinite; }
.nx-marquee span { margin: 0 1.7rem; color: var(--magenta); }
.nx-intro-grid, .nx-section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; }
.nx-intro h2, .nx-section-head h2 { max-width: 620px; font-size: clamp(2.7rem, 5vw, 5.4rem); }
.nx-big-copy { max-width: 560px; color: var(--muted); font-size: clamp(1.2rem, 2.2vw, 1.65rem); line-height: 1.35; }
.nx-text-link { display: inline-flex; align-items: center; gap: .75rem; margin-top: 1.8rem; color: var(--navy); font-weight: 800; text-decoration: none; border-bottom: 1px solid var(--blue); padding-bottom: .45rem; }
.nx-text-link span { color: var(--magenta); font-size: 1.2rem; transition: transform .2s; }
.nx-text-link:hover span { transform: translate(4px,-4px); }
.nx-section-head { margin-bottom: 3rem; }
.nx-section-head > .lead { max-width: 390px; justify-self: end; }
.nx-service-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.nx-service-card { min-height: 400px; padding: 2rem; position: relative; display: flex; flex-direction: column; justify-content: space-between; background: white; transition: color .3s, background .3s, transform .3s; }
.nx-service-card:hover { z-index: 2; color: white; background: var(--navy); transform: translateY(-8px); box-shadow: var(--shadow); }
.nx-service-card > span { color: var(--magenta); font: 700 .8rem "IBM Plex Mono", monospace; }
.nx-service-card h3 { margin-top: auto; font-size: clamp(1.8rem, 3.3vw, 3rem); letter-spacing: -.055em; }
.nx-service-card p { max-width: 290px; margin-top: 1rem; color: var(--muted); }
.nx-service-card:hover p { color: #cbd6f4; }
.nx-service-card > a { align-self: flex-end; width: 3.1rem; height: 3.1rem; display: grid; place-items: center; color: white; background: var(--magenta); border-radius: 50%; text-decoration: none; font-size: 1.35rem; }
.nx-process { color: white; background: #111d41; }
.nx-process h2 { color: white; }
.nx-process .lead { justify-self: end; color: #bac8e9; }
.nx-process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 5rem; border-top: 1px solid rgba(255,255,255,.25); }
.nx-process-step { padding: 2rem 2rem 1rem 0; border-right: 1px solid rgba(255,255,255,.25); }
.nx-process-step + .nx-process-step { padding-left: 2rem; }
.nx-process-step:last-child { border-right: 0; }
.nx-process-step b { color: var(--blue); font: 700 1.15rem "IBM Plex Mono", monospace; }
.nx-process-step h3 { margin-top: 5rem; color: white; font-size: 2rem; }
.nx-process-step p { max-width: 260px; color: #bac8e9; }
.nx-film { background: #f0f2f7; }
.nx-film-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(2rem, 7vw, 7rem); align-items: center; }
.nx-film-copy h2 { max-width: 520px; font-size: clamp(2.7rem, 5vw, 5.2rem); }
.nx-film-copy .lead { margin-top: 1.4rem; }
.nx-film-frame { position: relative; min-height: 420px; background: #101216; overflow: hidden; box-shadow: var(--shadow); }
.nx-film-video { width: 100%; height: 100%; min-height: 420px; display: block; object-fit: cover; background: #101216; }
.nx-film-label { position: absolute; left: 1.25rem; bottom: 1.15rem; padding: .45rem .65rem; color: white; background: rgba(7,26,75,.82); font: 700 .68rem "IBM Plex Mono", monospace; letter-spacing: .14em; pointer-events: none; }
.nx-quote-banner { min-height: 620px; position: relative; display: grid; align-items: center; background: url('./assets/optimized/lampara.jpg') center 45% / cover; }
.nx-quote-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,26,75,.97), rgba(7,26,75,.65) 55%, rgba(7,26,75,.2)); }
.nx-quote-content { position: relative; z-index: 1; color: white; }
.nx-quote-content h2 { max-width: 870px; color: white; font-size: clamp(3rem, 7vw, 7rem); letter-spacing: -.075em; }
.nx-products { background: #f0f2f7; }
.nx-product-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.nx-product-tile { color: var(--navy); text-decoration: none; }
.nx-product-tile img { width: 100%; aspect-ratio: 1.15; object-fit: cover; background: #101936; transition: transform .4s; }
.nx-product-tile:hover img { transform: scale(.97); }
.nx-product-tile span { display: block; margin-top: 1.1rem; color: var(--magenta); font: 700 .72rem "IBM Plex Mono", monospace; letter-spacing: .12em; }
.nx-product-tile h3 { margin-top: .4rem; font-size: 1.45rem; }
@keyframes nx-zoom { from { transform: scale(1); filter: saturate(.9) brightness(.78); } to { transform: scale(1.08); filter: saturate(1.15) brightness(1); } }
@keyframes nx-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes nx-orbit { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes nx-pulse { 0%, 100% { opacity: .55; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.15); } }
@media (max-width: 760px) {
  .nx-hero { min-height: 760px; }
  .nx-hero-media { min-height: 760px; }
  .nx-hero-content { min-height: 760px; padding: 8rem 1.2rem 5rem; }
  .nx-hero-content h1 { font-size: clamp(3.2rem, 16vw, 5.2rem); }
  .nx-hero-caption { right: 1rem; bottom: 1rem; font-size: .55rem; }
  .nx-scroll-note { margin-top: 2.5rem; }
  .nx-live-mark { top: 1.25rem; right: 1.2rem; }
  .nx-hero-bottom { right: 1.2rem; bottom: 1.25rem; }
  .nx-intro-grid, .nx-section-head, .nx-film-grid { grid-template-columns: 1fr; gap: 1rem; }
  .nx-section-head > .lead { justify-self: start; }
  .nx-service-grid, .nx-product-strip { grid-template-columns: 1fr; }
  .nx-service-card { min-height: 320px; }
  .nx-process-grid { grid-template-columns: 1fr; margin-top: 2.5rem; }
  .nx-process-step, .nx-process-step + .nx-process-step { padding: 1.4rem 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.25); }
  .nx-process-step h3 { margin-top: 2.5rem; }
  .nx-quote-banner { min-height: 510px; }
  .nx-film-frame, .nx-film-video { min-height: 300px; }
}
@media (prefers-reduced-motion: reduce) { .nx-hero-media img, .nx-marquee div { animation: none; } }

/* Workshop imagery and automatic system theme. */
.nx-engineering-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.nx-blueprint { margin: 0; background: #0b1c32; border: 1px solid #365476; border-radius: 8px; overflow: hidden; color: #bed0e7; }
.nx-blueprint-heading { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem; border-bottom: 1px solid #365476; font: .7rem/1.5 monospace; letter-spacing: .09em; }
.nx-blueprint svg { display: block; width: 100%; height: auto; }
.nx-blueprint figcaption { padding: 0 1.2rem 1.2rem; font-size: .8rem; }
.nx-engineering-notes article { display: flex; gap: 1.25rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.nx-engineering-notes article > span { color: var(--magenta); font: .8rem/1.5 monospace; }
.nx-engineering-notes h3 { font-size: 1.35rem; }
.nx-engineering-notes p { color: var(--muted); }
.nx-engineering-notes > a { margin-top: 1.5rem; }
.nx-material-explorer { margin-top: clamp(3rem, 7vw, 6rem); padding-top: 3rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 6vw, 5rem); align-items: start; }
.nx-material-explorer h2 { font-size: clamp(2.2rem, 4vw, 3.5rem); }
.nx-material-explorer .lead { margin-top: 1rem; }
.nx-material-buttons { display: flex; gap: .65rem; margin: 1.5rem 0; }
.nx-material-buttons button { padding: .75rem 1.4rem; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 800; cursor: pointer; }
.nx-material-buttons button[aria-pressed="true"] { background: #17191f; color: white; border-color: #00aeef; box-shadow: inset 0 -3px #00aeef; }
.nx-guide-note { max-width: 44ch; color: var(--muted); font-size: .85rem; }
.nx-material-result { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--blue); padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: 8px; min-height: 370px; }
.nx-guide-kicker { font: .75rem/1.4 monospace; letter-spacing: .1em; color: var(--muted); }
.nx-material-result h3 { margin-top: .8rem; font-size: 1.7rem; }
.nx-material-result p, .nx-material-result dd { color: var(--muted); }
.nx-material-result dt { margin-top: 1.1rem; font-size: .9rem; font-weight: 700; }
.nx-material-result dd { margin: .3rem 0 0; font-size: .95rem; }
.nx-faq .lead { margin-top: 1rem; }
.nx-faq-list details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.nx-faq-list details:first-child { border-top: 1px solid var(--line); }
.nx-faq-list summary { cursor: pointer; font-weight: 700; padding: .3rem .2rem; }
.nx-faq-list summary::marker { color: var(--magenta); }
.nx-faq-list summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.nx-faq-list details p { color: var(--muted); padding: .5rem .2rem .5rem 1.2rem; max-width: 65ch; }
.nx-last-call { background: #17191f; color: white; padding: clamp(2.5rem, 6vw, 5rem) 0; border-top: 1px solid #3a3f48; }
.nx-last-call .shell { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.nx-last-call h2 { color: white; font-size: clamp(2rem, 3.4vw, 3.1rem); max-width: 620px; }
.nx-last-call .button-row { flex-shrink: 0; margin: 0; }
@media (max-width: 850px) {
  .nx-engineering-grid, .nx-material-explorer { grid-template-columns: 1fr; }
  .nx-last-call .shell { align-items: flex-start; flex-direction: column; }
  .nx-material-result { min-height: 0; }
}
.nx-intro { padding-block: clamp(2.5rem, 5vw, 5rem); }
.nx-workshop { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: center; }
.nx-workshop-photo { margin: 0; position: relative; overflow: hidden; border-radius: 4px; background: #101936; }
.nx-workshop-photo > img { width: 100%; height: clamp(480px, 48vw, 660px); object-fit: cover; object-position: center 58%; }
.nx-workshop-photo figcaption { position: absolute; bottom: 0; inset-inline: 0; padding: 3rem 1.5rem 1.5rem; color: white; background: linear-gradient(transparent, #030b20ed); font: 700 .8rem/1.6 monospace; letter-spacing: .12em; }
.nx-workshop-photo figcaption span { display: block; font: 400 .95rem/1.5 Inter, sans-serif; letter-spacing: 0; }
.nx-workshop-copy h2 { font-size: clamp(2.2rem, 3.6vw, 3.8rem); }
.nx-workshop-copy .nx-big-copy { margin-top: 1.25rem; font-size: clamp(1rem, 1.6vw, 1.3rem); line-height: 1.6; }
.nx-material-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.nx-material-tags span { border: 1px solid var(--line); border-radius: 4px; padding: .4rem .65rem; color: var(--muted); font-size: .78rem; }
.nx-detail-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.75rem; }
.nx-detail-strip a { text-decoration: none; min-width: 0; }
.nx-detail-strip img { width: 100%; height: 125px; object-fit: cover; border-radius: 4px; }
.nx-detail-strip span { display: block; margin-top: .45rem; font-size: .8rem; font-weight: 700; }
.nx-process-grid { margin-top: 2.5rem; }
.nx-process-step h3 { margin-top: 2rem; }
.nx-service-card { min-height: 320px; }
@media (max-width: 760px) {
  .nx-workshop { grid-template-columns: 1fr; }
  .nx-workshop-photo > img { height: 360px; }
  .nx-detail-strip img { height: 115px; }
}
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --white: #080f20; --surface: #101a2d; --ink: #e6ecf8; --muted: #adbad1; --line: #2d3b53; --shadow: 0 18px 48px #0005; --magenta: #ff5b9b; }
  body { background: var(--white); }
  h1, h2, h3, .field label, .field-label, .price, .metric strong, .step-tab.active, .nx-text-link, .nx-product-tile { color: #edf3ff; }
  .site-header { background: #080f20f5; border-color: var(--line); }
  .primary-nav a { color: #e6ecf8; }
  .brand img { border-radius: 6px; }
  .card, .wizard, .metric, table, .cart-panel, .nx-service-card { background: #111d32; }
  .nx-film, .nx-products { background: #0c1628; }
  .input, input, select, textarea { color: var(--ink); background: #0a1425; border-color: #475773; }
  .button-secondary, .icon-button { background: #19273e; color: #edf3ff; border-color: #475773; }
  .button-ghost { color: #edf3ff; border-color: #8295b5; }
  .button-primary, .nx-service-card > a { color: #fff; background: linear-gradient(100deg, #b9004b, #6430af, #006da3); }
  .notice { background: #122d43; color: #d5edff; }
  .notice-warning { background: #30281a; color: #ffe0a5; }
  .demo-label, .status-review { background: #3d2f15; color: #ffdb91; }
  .status:not(.status-review) { background: #233955; color: #e3efff; }
  .file-result { background: #10392d; color: #a9efd8; }
  .nx-service-card:hover { background: #1b304b; }
  .nx-service-card:hover p { color: #d4deef; }
  .cart-button span { background: #b9004b; }
  .nx-material-tags span { background: #111d32; }
  .nx-product-tile span { color: #ff77ad; }
  .timeline li::before { border-color: #101a2d; }
  @media (max-width: 980px) { .primary-nav { background: #101a2d; } }
}
