@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans-var.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --night: #0b1b33;
  --night-2: #0f2442;
  --night-3: #16335d;
  --signal: #ff7a1a;
  --signal-soft: #ffb066;
  --signal-deep: #a83f00;
  --paper: #f2f5fa;
  --ink: #0b1b33;
  --ink-soft: #3a4b66;
  --steel: #9fb0c8;
  --steel-2: #c8d3e4;
  --line: rgba(200, 211, 228, 0.16);
  --font: "Instrument Sans", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --pad: clamp(18px, 5vw, 56px);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--night); color: #eef3fb; font: 400 1.0625rem/1.6 var(--font); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--signal-soft); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--signal); color: var(--night); padding: 10px 14px; font-weight: 700; }
.skip:focus { left: 8px; }

.demo-bar { background: #172b4d; color: #ffd9a8; text-align: center; font-size: 0.8125rem; line-height: 1.4; padding: 7px 14px; }

/* ---- top bar ---- */
.bar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px var(--pad); background: rgba(11, 27, 51, 0.88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.mark-icon { width: 32px; height: 36px; fill: none; stroke: var(--signal); stroke-width: 2.4; stroke-linejoin: round; flex: none; }
.mark-rec { fill: var(--signal); stroke: none; }
.mark-text { display: grid; line-height: 1.05; }
.mark-text b { font-size: 1.125rem; letter-spacing: 0.14em; font-weight: 700; }
.mark-text i { font-style: normal; font-size: 0.6875rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--steel); }
.nav { display: none; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--steel-2); font-weight: 500; font-size: 0.9375rem; padding: 8px 2px; }
.nav a:hover { color: #fff; }
.wide { display: none; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform 0.15s ease, background 0.15s ease; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; flex: none; }
.btn-wa { background: var(--signal); color: var(--night); }
.btn-wa:hover { background: var(--signal-soft); transform: translateY(-1px); }
.btn-ghost { border-color: var(--steel); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn-small { min-height: 44px; padding: 10px 18px; font-size: 0.9375rem; }
.btn-big { width: 100%; min-height: 56px; font-size: 1.125rem; }

/* ---- hero ---- */
.hero { display: grid; gap: 34px; padding: clamp(28px, 6vw, 72px) var(--pad) clamp(44px, 7vw, 96px); max-width: var(--max); margin: 0 auto; align-items: center; }
.hero-copy { min-width: 0; }
.kicker { display: flex; align-items: center; gap: 10px; font-size: 0.8125rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--signal-soft); font-weight: 600; margin-bottom: 18px; }
.rec { width: 10px; height: 10px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(255, 122, 26, 0.6); animation: rec 1.8s ease-out infinite; flex: none; }
.hero h1 { font-size: clamp(2.5rem, 9.4vw, 5.5rem); line-height: 0.98; letter-spacing: -0.035em; font-weight: 700; text-wrap: balance; overflow-wrap: break-word; }
.hero h1 em { font-style: normal; color: var(--signal); }
.hero-lede { margin-top: 22px; font-size: clamp(1.0625rem, 2.6vw, 1.3125rem); color: var(--steel-2); max-width: 30rem; }
.hero-ctas { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 26px; font-size: 0.9375rem; color: var(--steel); max-width: 30rem; padding-left: 14px; border-left: 2px solid var(--signal); }

.view { min-width: 0; }
.view-frame { position: relative; aspect-ratio: 5 / 6; max-height: 70vh; width: 100%; border-radius: 6px; overflow: hidden; background: #050d1b; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.scene { width: 100%; height: 100%; }
.scan { transform-box: view-box; transform-origin: 452px 70px; animation: sweep 7s ease-in-out infinite; }
.brk { position: absolute; width: 22px; height: 22px; border: 0 solid var(--signal); pointer-events: none; }
.brk-tl { top: 10px; left: 10px; border-width: 3px 0 0 3px; }
.brk-tr { top: 10px; right: 10px; border-width: 3px 3px 0 0; }
.brk-bl { bottom: 10px; left: 10px; border-width: 0 0 3px 3px; }
.brk-br { bottom: 10px; right: 10px; border-width: 0 3px 3px 0; }
.osd { position: absolute; margin: 0; font-variant-numeric: tabular-nums; font-size: 0.8125rem; letter-spacing: 0.12em; font-weight: 600; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8); }
.osd-top { top: 20px; left: 24px; display: flex; align-items: center; gap: 8px; }
.osd-bottom { bottom: 20px; right: 24px; }

@keyframes rec { 0% { box-shadow: 0 0 0 0 rgba(255, 122, 26, 0.6); } 70% { box-shadow: 0 0 0 10px rgba(255, 122, 26, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 122, 26, 0); } }
@keyframes sweep { 0%, 100% { transform: rotate(-7deg); opacity: 0.8; } 50% { transform: rotate(9deg); opacity: 1; } }

/* ---- shared section pieces ---- */
section { padding: clamp(52px, 8vw, 104px) var(--pad); }
.eyebrow { font-size: 0.8125rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--signal-soft); font-weight: 600; margin-bottom: 14px; }
.eyebrow-dark { color: var(--signal-deep); }
h2 { font-size: clamp(1.9rem, 5.4vw, 3.4rem); line-height: 1.04; letter-spacing: -0.03em; font-weight: 700; text-wrap: balance; overflow-wrap: break-word; }
h3 { font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.01em; font-weight: 700; }
.lede { margin-top: 16px; color: var(--steel-2); font-size: 1.125rem; max-width: 34rem; }

/* ---- hogar / negocio ---- */
.espacio { background: var(--night-2); border-block: 1px solid var(--line); }
.espacio-head, .espacio-body { max-width: var(--max); margin-inline: auto; }
.seg { display: inline-grid; grid-template-columns: 1fr 1fr; margin-top: 26px; padding: 5px; border-radius: 999px; background: #08152a; border: 1px solid var(--line); width: min(100%, 420px); }
.seg-btn { min-height: 52px; border: 0; border-radius: 999px; background: transparent; color: var(--steel-2); font-weight: 700; font-size: 1.0625rem; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.seg-btn[aria-pressed="true"] { background: var(--signal); color: var(--night); }
.espacio-body { margin-top: 38px; }
.pane { display: grid; gap: 26px; align-items: center; }
.pane[hidden] { display: none; }
.pane-scene { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); }
.pin circle { fill: var(--signal); stroke: var(--night); stroke-width: 3; }
.pin text { fill: var(--night); font: 700 14px var(--font); }
.pane-text { min-width: 0; }
.pane-text h3 { font-size: clamp(1.5rem, 3.6vw, 2.15rem); letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; }
.spots { margin-top: 22px; display: grid; gap: 12px; counter-reset: spot; }
.spots li { counter-increment: spot; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: baseline; color: var(--steel-2); }
.spots li::before { content: counter(spot); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--signal); color: var(--night); font-weight: 700; font-size: 0.875rem; }
.spots b { color: #fff; }
.pane-small { margin-top: 18px; color: var(--steel); font-size: 0.9375rem; }
.pane-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- the system ---- */
.sistema { background:
  linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 56px,
  linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 56px 100%,
  var(--night); }
.sistema-head, .flow, .node-panel { max-width: var(--max); margin-inline: auto; }
.flow { margin-top: 38px; display: flex; flex-direction: column; align-items: stretch; }
.node { display: grid; grid-template-columns: 56px 1fr; grid-template-areas: "ico n" "ico name"; column-gap: 16px; align-items: center; text-align: left; padding: 16px 18px; border-radius: 6px; border: 1.5px solid var(--night-3); background: rgba(15, 36, 66, 0.9); cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease; min-width: 0; min-height: 76px; }
.node svg { grid-area: ico; width: 56px; height: 56px; fill: none; stroke: var(--signal); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.node-n { grid-area: n; font-size: 0.75rem; letter-spacing: 0.2em; color: var(--steel); font-weight: 600; align-self: end; }
.node-name { grid-area: name; font-weight: 700; font-size: 1.125rem; align-self: start; overflow-wrap: anywhere; }
.node:hover { border-color: var(--steel); }
.node[aria-pressed="true"] { border-color: var(--signal); background: #1a2f55; }
.link { align-self: center; width: 2px; height: 30px; background: repeating-linear-gradient(to bottom, var(--signal) 0 6px, transparent 6px 12px); background-size: 2px 12px; animation: flow-y 1s linear infinite; }
.node-panel { position: relative; margin-top: 28px; padding: 28px clamp(20px, 4vw, 40px); background: rgba(8, 21, 42, 0.92); border: 1px solid var(--line); border-radius: 6px; min-height: 150px; }
.node-panel .brk-tl { top: -1px; left: -1px; }
.node-panel .brk-br { bottom: -1px; right: -1px; }
.node-panel h3 { font-size: 1.5rem; color: var(--signal-soft); }
.node-panel p { margin-top: 10px; font-size: 1.125rem; color: var(--steel-2); max-width: 46rem; }
@keyframes flow-y { to { background-position: 0 12px; } }
@keyframes flow-x { to { background-position: 12px 0; } }

/* ---- equipment ---- */
.equipos { background: var(--night-2); border-block: 1px solid var(--line); display: grid; gap: 34px; }
.equipos-head, .rows { max-width: var(--max); margin-inline: auto; width: 100%; }
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.row-n { font-size: clamp(2.2rem, 7vw, 3.6rem); line-height: 1; font-weight: 700; color: transparent; -webkit-text-stroke: 1.5px var(--signal); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.row-main { min-width: 0; }
.row-main h3 { font-size: clamp(1.4rem, 4vw, 2.1rem); letter-spacing: -0.02em; overflow-wrap: break-word; }
.row-main p { margin-top: 4px; color: var(--steel); }
.row-link { grid-column: 2; display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; min-height: 44px; color: var(--signal-soft); font-weight: 700; text-decoration: none; border-bottom: 2px solid transparent; justify-self: start; }
.row-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s ease; }
.row-link:hover { border-bottom-color: var(--signal-soft); }
.row-link:hover svg { transform: translateX(4px); }

/* ---- install steps ---- */
.paso { background: var(--night); }
.paso-head, .steps { max-width: var(--max); margin-inline: auto; }
.steps { margin-top: 40px; display: grid; gap: 0; position: relative; counter-reset: s; }
.steps li { position: relative; padding: 0 0 34px 64px; min-width: 0; }
.steps li::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: repeating-linear-gradient(to bottom, var(--night-3) 0 6px, transparent 6px 12px); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::before { display: none; }
.step-n { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--signal); color: var(--signal); font-weight: 700; font-size: 1.125rem; background: var(--night); }
.steps h3 { padding-top: 8px; overflow-wrap: break-word; }
.steps p { margin-top: 6px; color: var(--steel-2); max-width: 24rem; }

/* ---- projects ---- */
.proyectos { background: var(--night-2); border-top: 1px solid var(--line); }
.proyectos-head, .mosaic { max-width: var(--max); margin-inline: auto; }
.mosaic { margin-top: 38px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 12px; }
.tile { position: relative; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; padding: 14px; border-radius: 6px; border: 1.5px dashed var(--steel); background: repeating-linear-gradient(135deg, rgba(159, 176, 200, 0.08) 0 12px, transparent 12px 24px), #0b1b33; color: var(--steel); min-width: 0; }
.tile svg { width: 34px; height: 34px; fill: none; stroke: var(--signal); stroke-width: 1.8; stroke-linejoin: round; }
.tile figcaption { font-size: 0.8125rem; line-height: 1.35; font-weight: 600; color: var(--steel-2); }
.tile small { font-weight: 400; color: var(--steel); }
.tile-a { grid-column: span 2; grid-row: span 2; }
.tile-d { grid-column: span 2; }

/* ---- guided quote (the one light section) ---- */
.cotizar { background: var(--paper); color: var(--ink); display: grid; gap: 34px; }
.cotizar .lede { color: var(--ink-soft); }
.cotizar h2 { color: var(--ink); }
.cotizar-head, .quote, .send { max-width: var(--max); margin-inline: auto; width: 100%; }
.quote { display: grid; gap: 26px; }
.q { border: 0; padding: 0; margin: 0; min-width: 0; }
.q legend, .q-label { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-weight: 700; font-size: 1.1875rem; margin-bottom: 14px; padding: 0; }
.q-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 0.9375rem; flex: none; }
.q-hint { font-weight: 500; font-size: 0.9375rem; color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; display: block; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: flex; align-items: center; min-height: 52px; padding: 10px 20px; border-radius: 999px; border: 2px solid #b8c4d8; background: #fff; font-weight: 600; font-size: 1.0625rem; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--signal-deep); outline-offset: 3px; }
.chip:hover span { border-color: var(--ink); }
.select { display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 56px; padding: 12px 52px 12px 20px; border-radius: 14px; border: 2px solid #b8c4d8; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1b33' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 18px center / 22px; color: var(--ink); font: 600 1.0625rem var(--font); -webkit-appearance: none; -moz-appearance: none; appearance: none; text-overflow: ellipsis; }
.select:focus-visible { outline: 3px solid var(--signal-deep); outline-offset: 3px; }
.send { display: grid; gap: 14px; padding: clamp(18px, 3vw, 30px); border-radius: 10px; background: #fff; border: 1px solid #d3dcea; box-shadow: 0 18px 40px rgba(11, 27, 51, 0.08); }
.send-label { font-size: 0.8125rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--ink-soft); }
.bubble { position: relative; padding: 16px 18px; border-radius: 4px 16px 16px 16px; background: #dcf4d6; color: #10261a; font-size: 1.0625rem; line-height: 1.5; overflow-wrap: anywhere; min-height: 4.2em; }
.send .btn-wa:hover { background: #ff9440; }
.send-small { font-size: 0.9375rem; color: var(--ink-soft); }

/* ---- footer ---- */
.foot { padding: clamp(48px, 7vw, 88px) var(--pad) 120px; background: var(--night); border-top: 1px solid var(--line); display: grid; gap: 34px; max-width: none; }
.foot-title { font-size: 0.8125rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--signal-soft); font-weight: 600; }
.foot-wa { display: inline-block; margin-top: 10px; font-size: clamp(2rem, 9vw, 4.4rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; text-decoration: none; color: #fff; overflow-wrap: anywhere; border-bottom: 3px solid var(--signal); }
.foot-wa:hover { color: var(--signal-soft); }
.foot-sub { margin-top: 8px; color: var(--steel); }
.foot-links { display: grid; gap: 4px; }
.foot-links a, .foot-links span { display: inline-flex; align-items: center; min-height: 44px; color: var(--steel-2); text-decoration: none; overflow-wrap: anywhere; }
.foot-links a:hover { color: #fff; text-decoration: underline; }
.foot-credit { padding-top: 22px; border-top: 1px solid var(--line); color: var(--steel); font-size: 0.9375rem; }
.foot-credit a { display: inline-flex; min-height: 44px; align-items: center; color: #fff; font-weight: 600; }
.foot-prop { margin-top: 2px; font-size: 0.8125rem; color: var(--steel); }

/* ---- sticky WhatsApp ---- */
.wa-float { position: fixed; z-index: 60; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px 0 18px; border-radius: 999px; background: var(--signal); color: var(--night); font-weight: 700; text-decoration: none; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
.wa-float svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; }
.wa-float:hover { background: var(--signal-soft); }

/* ---- wider screens ---- */
@media (min-width: 560px) {
  .wide { display: inline; }
  .mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 170px; }
  .tile-a { grid-column: span 2; grid-row: span 2; }
  .tile-b, .tile-c { grid-column: span 1; }
  .tile-d { grid-column: span 2; }
}
@media (min-width: 760px) {
  .nav { display: flex; }
  .pane { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 52px; }
  .row { grid-template-columns: 110px minmax(0, 1fr) auto; align-items: center; gap: 28px; padding: 34px 0; }
  .row-link { grid-column: 3; margin-top: 0; justify-self: end; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .steps li { padding: 62px 0 0; }
  .steps li::before { left: 54px; right: -28px; top: 21px; bottom: auto; width: auto; height: 2px; background: repeating-linear-gradient(to right, var(--night-3) 0 6px, transparent 6px 12px); }
  .steps li:last-child::before { display: none; }
  .steps h3 { padding-top: 0; }
  .cotizar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; align-items: start; }
  .cotizar-head { grid-column: 1 / -1; }
  .quote, .send { margin: 0; }
  .send { position: sticky; top: 96px; }
  .flow { flex-direction: row; align-items: stretch; }
  .node { grid-template-columns: 1fr; grid-template-areas: "ico" "n" "name"; row-gap: 6px; flex: 1 1 0; padding: 22px 18px; }
  .link { flex: 0 0 44px; width: 44px; height: 2px; align-self: center; background: repeating-linear-gradient(to right, var(--signal) 0 6px, transparent 6px 12px); animation-name: flow-x; }
  .foot { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; }
  .foot-credit { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; }
  .view-frame { aspect-ratio: 4 / 5; }
  .equipos { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); align-items: start; gap: 64px; }
  .equipos-head { position: sticky; top: 96px; margin: 0; }
  .rows { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 380px) {
  .btn { padding-inline: 18px; }
  .hero-ctas .btn { width: 100%; }
  .chip span { padding-inline: 16px; }
}
