/* =============================================================
   FABPLAS · Láminas WPC — experiencia inmersiva
   Modo documento (por defecto, sin JS o sin WebGL) +
   modo inmersivo (html.is-immersive, lo activa main.js)
   ============================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #060b0b;
  --bg-2: #0a1414;
  --panel: rgba(8, 17, 17, 0.9);
  --panel-solid: #0b1616;
  --line: rgba(190, 240, 228, 0.12);
  --line-2: rgba(190, 240, 228, 0.24);
  --ink: #eaf2ef;
  --ink-2: #a9bab5;
  --ink-3: #7a8d88;
  --teal: #19b39a;
  --teal-2: #3df2d0;
  --teal-3: #0f5f58;
  --amber: #f0a842;
  --amber-2: #ffc46e;
  --on-amber: #1b1206;
  --radius: 20px;
  --f-display: "Syne", "Manrope", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --card-w: min(440px, 36vw);
  --topbar-h: 64px;
  color-scheme: dark;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); overflow-x: clip; scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; font-weight: 700; }
em { font-style: normal; }
::selection { background: var(--teal); color: #03211d; }
:focus-visible { outline: 2px solid var(--teal-2); outline-offset: 3px; border-radius: 8px; }
ul[role="list"], ol { list-style: none; padding: 0; }

/* ---------- 3. Utilities ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 999; padding: .6rem 1rem; background: var(--ink); color: var(--bg); border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 1rem; }
.ico { width: 18px; height: 18px; flex: none; fill: currentColor; }

/* ---------- 4. Typography ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 11.5px/1 var(--f-mono);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal-2);
}
.k-num {
  display: inline-grid; place-items: center;
  min-width: 30px; height: 22px; padding: 0 6px;
  border: 1px solid rgba(61, 242, 208, 0.4); border-radius: 999px;
  color: var(--teal-2);
}
.k-num.is-amber { border-color: rgba(240, 168, 66, 0.55); color: var(--amber); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-2); box-shadow: 0 0 0 0 rgba(61, 242, 208, 0.6); animation: pulse 2.4s var(--ease-out) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 242, 208, 0.55); } 70%, 100% { box-shadow: 0 0 0 12px rgba(61, 242, 208, 0); } }

.hub-title { font-size: clamp(2.3rem, 5.4vw, 4.8rem); line-height: 0.96; letter-spacing: -0.04em; max-width: 12.5ch; margin-top: 18px; }
.hub-title em, .card-title em {
  background: linear-gradient(95deg, var(--teal-2) 0%, #9ff9e6 45%, var(--amber-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hub-lead { max-width: 44ch; color: var(--ink-2); font-size: 1.04rem; margin-top: 18px; }
.hub-hint { margin-top: 18px; font: 400 11.5px/1.4 var(--f-mono); letter-spacing: .06em; color: var(--ink-3); }

.card-title { font-size: clamp(1.75rem, 2.55vw, 2.4rem); margin-top: 14px; }
.card-lead { color: var(--ink-2); font-size: 0.98rem; margin-top: 12px; }
.ctl-label { font: 500 11px/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.ctl-label span { color: var(--ink-2); letter-spacing: .04em; text-transform: none; font-family: var(--f-body); font-weight: 600; font-size: 12.5px; }
.note, .fine { color: var(--ink-3); font-size: 0.84rem; }
.fine { margin-top: 10px; }

/* ---------- 5. Components ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 46px; padding: 0 1.25em; border-radius: 999px;
  font: 700 15px/1 var(--f-body); letter-spacing: .005em; white-space: nowrap;
  transition: transform .3s var(--ease-out), background-color .25s, border-color .25s, color .25s, box-shadow .3s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-amber { background: var(--amber); color: var(--on-amber); box-shadow: 0 10px 34px -12px rgba(240, 168, 66, 0.75); }
.btn-amber:hover { background: var(--amber-2); transform: translateY(-1px); }
.btn-teal { background: var(--teal); color: #031f1b; box-shadow: 0 10px 34px -12px rgba(25, 179, 154, 0.8); }
.btn-teal:hover { background: #22c9ad; transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line-2); background: rgba(234, 242, 239, 0.03); color: var(--ink); }
.btn-ghost:hover { border-color: rgba(61, 242, 208, 0.6); background: rgba(61, 242, 208, 0.07); }
.btn-sm { min-height: 40px; padding: 0 1em; font-size: 14px; }
.btn-block { width: 100%; }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line-2); background: rgba(234, 242, 239, 0.03); color: var(--ink);
  transition: border-color .2s, background-color .2s, transform .2s var(--ease-out);
}
.icon-btn:hover { border-color: rgba(61, 242, 208, 0.6); background: rgba(61, 242, 208, 0.08); }
.icon-btn:active { transform: scale(.94); }

/* swatches: la muestra muestra la textura real (JS pone la imagen) */
.sw {
  display: block; width: 100%; height: 100%; border-radius: inherit;
  background-color: var(--sw);
  background-size: 260% auto; background-position: 30% 40%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3);
}
.swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.swatch {
  position: relative; display: inline-block; width: 40px; height: 40px; border-radius: 50%;
  padding: 3px; border: 1px solid var(--line-2); cursor: pointer;
  transition: transform .25s var(--ease-out), border-color .2s;
}
.swatch:hover { transform: scale(1.07); }
.swatch[aria-pressed="true"], .swatch:has(input:checked) { border-color: var(--teal-2); box-shadow: 0 0 0 3px rgba(61, 242, 208, 0.18); }
.swatch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.swatch:has(input:focus-visible) { outline: 2px solid var(--teal-2); outline-offset: 3px; }
.swatch-name { font-weight: 600; font-size: 14px; color: var(--ink-2); margin-left: 4px; }

.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(0, 0, 0, 0.25); }
.seg button, .seg label > span {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 14px; border-radius: 999px;
  font-weight: 600; font-size: 13.5px; color: var(--ink-2);
  transition: background-color .25s, color .25s;
}
.seg button:hover, .seg label:hover > span { color: var(--ink); }
.seg button[aria-pressed="true"], .seg input:checked + span { background: var(--ink); color: var(--bg); }
.seg .ico { width: 16px; height: 16px; }
.seg-radio label { position: relative; cursor: pointer; }
.seg-radio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg-radio input:focus-visible + span { outline: 2px solid var(--teal-2); outline-offset: 2px; }

.ctl-block { margin-top: 22px; }
.cam-ctl { display: flex; gap: 8px; flex-wrap: wrap; }

/* lista de colores (colección) */
.color-list { display: grid; gap: 8px; margin-top: 22px; }
.color-item {
  display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center;
  width: 100%; padding: 8px 12px 8px 8px; text-align: left;
  border: 1px solid var(--line); border-radius: 14px; background: rgba(234, 242, 239, 0.02);
  transition: border-color .25s, background-color .25s, transform .3s var(--ease-out);
}
.color-item .sw { width: 52px; height: 52px; border-radius: 10px; }
.color-item:hover { border-color: var(--line-2); transform: translateX(3px); }
.color-item[aria-pressed="true"] { border-color: rgba(61, 242, 208, 0.65); background: linear-gradient(100deg, rgba(61, 242, 208, 0.1), rgba(61, 242, 208, 0.02)); }
.ci-name { display: block; font: 700 15px/1.2 var(--f-display); letter-spacing: -0.01em; }
.ci-desc { display: block; font-size: 12.8px; line-height: 1.45; color: var(--ink-3); margin-top: 3px; }

.sample-photo { margin-top: 20px; }
.sample-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); }
.sample-photo.is-tall img { aspect-ratio: 3 / 4; object-position: 50% 30%; }
.sample-photo figcaption { font: 400 11.5px/1.4 var(--f-mono); letter-spacing: .04em; color: var(--ink-3); margin-top: 8px; }

/* specs */
.spec-grid, .spec-table { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 22px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--line); }
.spec-grid > div, .spec-table > div { background: var(--panel-solid); padding: 11px 13px; }
.spec-grid dt, .spec-table dt { font: 500 10.5px/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.spec-grid dd, .spec-table dd { font: 700 16px/1.25 var(--f-display); margin-top: 3px; }
.spec-table > div:last-child:nth-child(odd) { grid-column: 1 / -1; }

.benefits { display: grid; gap: 12px; margin-top: 22px; }
.benefits li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: 0.93rem; }
.benefits li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: rgba(61, 242, 208, 0.14); box-shadow: inset 0 0 0 1px rgba(61, 242, 208, 0.5); }
.benefits li::after { content: ""; position: absolute; left: 5px; top: 8px; width: 6px; height: 4px; border-left: 1.6px solid var(--teal-2); border-bottom: 1.6px solid var(--teal-2); transform: rotate(-45deg); }
.benefits strong { color: var(--ink); font-weight: 700; }

.hotspot-list { display: grid; gap: 6px; }
.hotspot-list button {
  display: grid; grid-template-columns: 14px 1fr; column-gap: 12px; align-items: center;
  width: 100%; padding: 10px 12px; text-align: left; border-radius: 12px;
  border: 1px solid var(--line); font-weight: 600; font-size: 14px;
  transition: border-color .2s, background-color .2s;
}
.hotspot-list button:hover { border-color: rgba(61, 242, 208, 0.55); background: rgba(61, 242, 208, 0.06); }
.hl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--teal-2); box-shadow: 0 0 12px rgba(61, 242, 208, 0.8); grid-row: span 2; }
.hl-note { grid-column: 2; font-weight: 400; font-size: 12.5px; color: var(--ink-3); }

/* calculadora */
.calc { display: grid; gap: 18px; margin-top: 22px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { font-weight: 600; font-size: 14px; color: var(--ink); padding: 0; }
.field-help { font-size: 12.5px; color: var(--ink-3); }
.field-error { font-size: 12.5px; color: #ff8a7a; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.range-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.num { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(0, 0, 0, 0.25); }
.num input { width: 62px; background: none; border: 0; font: 700 17px/1 var(--f-display); text-align: right; -moz-appearance: textfield; appearance: textfield; }
.num input:focus { outline: none; }
.num:focus-within { border-color: var(--teal-2); box-shadow: 0 0 0 3px rgba(61, 242, 208, 0.15); }
.num input::-webkit-outer-spin-button, .num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.unit { font: 500 12px var(--f-mono); color: var(--ink-3); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--teal) var(--fill, 20%), rgba(234, 242, 239, 0.12) var(--fill, 20%)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 99px; background: rgba(234, 242, 239, 0.12); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--teal); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--ink); border: 4px solid var(--teal); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); border: 4px solid var(--teal); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(61, 242, 208, 0.3); }

.calc-out { margin-top: 24px; padding: 18px; border-radius: 16px; border: 1px solid var(--line-2); background: linear-gradient(160deg, rgba(61, 242, 208, 0.07), rgba(6, 11, 11, 0.2) 60%); }
.calc-big { display: flex; align-items: baseline; gap: 10px; font-family: var(--f-display); }
.calc-n { font-size: clamp(3rem, 5vw, 4.2rem); font-weight: 800; line-height: .9; letter-spacing: -0.05em; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc-u { font-size: 1.2rem; font-weight: 700; color: var(--ink-2); }
.calc-detail { margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.tiers { display: grid; gap: 6px; margin-top: 16px; }
.tiers li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 13px; border-radius: 12px; border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); transition: border-color .3s, background-color .3s, color .3s; }
.tiers strong { font: 800 16px/1 var(--f-display); color: var(--ink); white-space: nowrap; }
.tiers small { font: 500 11px var(--f-body); color: var(--ink-3); }
.tiers li.is-on, .tiers li.is-best { border-color: rgba(240, 168, 66, 0.65); background: linear-gradient(100deg, rgba(240, 168, 66, 0.16), rgba(240, 168, 66, 0.03)); color: var(--ink); }
.tiers li.is-on strong, .tiers li.is-best strong { color: var(--amber-2); }
.tiers-lg { margin-top: 20px; }
.tiers-lg li { padding: 14px 16px; font-size: 14.5px; }
.tiers-lg strong { font-size: 20px; }
.money { display: grid; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.money > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; color: var(--ink-2); }
.money small { display: block; font-size: 11.5px; color: var(--ink-3); }
.money dd { font: 700 16px/1 var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.money .is-total dt { color: var(--ink); font-weight: 700; }
.money .is-total dd { font-size: 24px; color: var(--amber-2); }
.nudge { margin: 14px 0; padding: 10px 12px; border-radius: 12px; background: rgba(240, 168, 66, 0.08); font-size: 13px; color: var(--amber-2); }
.nudge:empty { display: none; }

/* formulario de cotización */
.quote { display: grid; gap: 14px; margin-top: 22px; }
.quote input[type="text"], .quote select {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.3);
  font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
.quote select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 20px) 20px, calc(100% - 15px) 20px; background-size: 5px 5px; background-repeat: no-repeat; }
.quote select option { background: var(--panel-solid); color: var(--ink); }
.quote input:focus, .quote select:focus { outline: none; border-color: var(--teal-2); box-shadow: 0 0 0 3px rgba(61, 242, 208, 0.15); }
.quote input[aria-invalid="true"] { border-color: #ff8a7a; }
.quote input::placeholder { color: var(--ink-3); }
.contact { display: grid; gap: 8px; margin-top: 22px; }
.contact a, .contact span { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink-2); min-height: 32px; }
.contact a:hover { color: var(--teal-2); }
.foot { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding: 16px; border-radius: 14px; background: #f3f5f4; color: #22302d; }
.foot img { width: 96px; }
.foot p { font-size: 12.5px; }

/* métodos de pago */
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
html.no-js .pay-methods { display: none; }
.pay-method {
  position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center;
  padding: 14px 34px 14px 14px; border-radius: 16px; text-align: left; cursor: pointer;
  border: 1px solid var(--line-2); background: rgba(234, 242, 239, 0.025); color: var(--ink);
  transition: border-color .25s, background-color .25s, box-shadow .25s, transform .3s var(--ease-out);
}
.pay-method .ico { grid-row: span 2; width: 26px; height: 26px; color: var(--ink-3); transition: color .25s; }
.pm-name { font: 700 15px/1.15 var(--f-display); letter-spacing: -0.01em; }
.pm-sub { font-size: 12px; line-height: 1.3; color: var(--ink-3); margin-top: 3px; }
.pay-method::after {
  content: ""; position: absolute; top: 12px; right: 12px; width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--line-2); background: center / 10px no-repeat;
  transition: border-color .25s, background-color .25s;
}
.pay-method:hover { border-color: rgba(61, 242, 208, 0.45); transform: translateY(-1px); }
.pay-method[aria-selected="true"] {
  border-color: var(--teal-2); box-shadow: 0 0 0 3px rgba(61, 242, 208, 0.12);
  background: linear-gradient(150deg, rgba(61, 242, 208, 0.14), rgba(61, 242, 208, 0.03));
}
.pay-method[aria-selected="true"] .ico { color: var(--teal-2); }
.pay-method[aria-selected="true"]::after {
  border-color: var(--teal-2); background-color: var(--teal-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23031f1b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.pay-panel { margin-top: 18px; }
.pay-panel[hidden] { display: none; }
.pay-h { font-size: 1.15rem; margin-bottom: 12px; }
html.js .pay-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.no-js .pay-panel + .pay-panel { margin-top: 30px; }

.qr-card {
  position: relative; display: block; width: min(100%, 360px); margin: 0 auto; padding: 0; cursor: zoom-in;
  border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; background: #2c2a29;
  box-shadow: 0 26px 50px -26px rgba(0, 0, 0, 0.85);
  transition: transform .3s var(--ease-out), border-color .25s;
}
.qr-card:hover { transform: translateY(-2px); border-color: rgba(61, 242, 208, 0.55); }
.qr-card img { display: block; width: 100%; height: auto; }
/* la pista va debajo del código: nunca tapa módulos del QR */
.qr-hint {
  display: flex; justify-content: center; align-items: center; gap: 6px;
  padding: 10px 12px; border-top: 1px solid rgba(255, 255, 255, 0.08); background: #242221; color: var(--ink-2);
  font: 600 12.5px/1 var(--f-body); transition: color .2s;
}
.qr-card:hover .qr-hint { color: var(--teal-2); }
.qr-hint .ico { width: 14px; height: 14px; }

.pay-data { margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.pd-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 8px 10px 8px 14px; }
.pd-row + .pd-row { border-top: 1px solid var(--line); }
.pd-row dt { font: 500 10.5px/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); flex: none; }
.pd-row dd { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; min-width: 0; }
.pd-value { font: 700 16px/1.2 var(--f-mono); letter-spacing: .02em; color: var(--ink); }
.pd-name { font: 600 14px/1.35 var(--f-body); color: var(--ink); text-align: right; }

.copy-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(61, 242, 208, 0.45); background: rgba(61, 242, 208, 0.08); color: var(--teal-2);
  font: 700 12.5px/1 var(--f-body); white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s;
}
.copy-btn .ico { width: 15px; height: 15px; }
.copy-btn:hover { background: rgba(61, 242, 208, 0.16); }
.copy-btn.is-done { background: var(--teal); border-color: var(--teal); color: #031f1b; }

.acct {
  position: relative; overflow: hidden; padding: 20px 20px 18px; border-radius: 18px;
  border: 1px solid rgba(61, 242, 208, 0.3);
  background: radial-gradient(120% 140% at 100% 0%, rgba(61, 242, 208, 0.2), transparent 55%), linear-gradient(150deg, #0f2a27, #081413 72%);
  box-shadow: 0 26px 50px -28px rgba(0, 0, 0, 0.85);
}
.acct::after {
  content: ""; position: absolute; right: -30px; bottom: -40px; width: 150px; height: 150px; border-radius: 50%;
  border: 1px solid rgba(61, 242, 208, 0.16); box-shadow: 0 0 0 22px rgba(61, 242, 208, 0.04);
}
.acct-bank { position: relative; z-index: 1; margin-bottom: 12px; font: 700 13px/1.2 var(--f-body); color: var(--teal-2); }
.acct-label { font: 500 10.5px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.acct-number { margin-top: 10px; font: 700 clamp(1.75rem, 2.6vw, 2.2rem)/1.1 var(--f-mono); letter-spacing: .04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.acct .copy-btn { position: relative; z-index: 1; margin-top: 16px; }

.pay-steps { counter-reset: paso; display: grid; gap: 11px; margin-top: 18px; }
.pay-steps li { counter-increment: paso; position: relative; padding-left: 36px; font-size: 13.8px; line-height: 1.5; color: var(--ink-2); }
.pay-steps li::before {
  content: counter(paso); position: absolute; left: 0; top: -1px; display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(240, 168, 66, 0.55);
  font: 600 11.5px/1 var(--f-mono); color: var(--amber);
}
.pay-steps strong { color: var(--ink); font-weight: 700; }
.pay-panel > .btn-block { margin-top: 18px; }
.pay-wa { margin-top: 24px; }
.pay-safe {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(61, 242, 208, 0.04);
  font-size: 12.8px; line-height: 1.5; color: var(--ink-3);
}
.pay-safe .ico { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--teal-2); }

/* QR en grande */
.qr-lightbox {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px;
  background: rgba(3, 8, 8, 0.88); opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease-out), visibility .3s;
}
.qr-lightbox.is-open { opacity: 1; visibility: visible; }
@supports ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
  .qr-lightbox { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
}
.qr-lb-inner { display: grid; justify-items: center; gap: 14px; }
.qr-lb-inner img { width: min(88vw, 70vh, 600px); height: auto; border-radius: 20px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8); }
.qr-lb-key { font: 500 13px/1.3 var(--f-mono); letter-spacing: .06em; color: var(--ink-2); }
.qr-lb-key strong { color: var(--ink); font-size: 15px; }
@media (max-width: 719px) {
  .pay-method { grid-template-columns: 1fr; padding: 12px 30px 12px 13px; }
  .pay-method .ico { grid-row: auto; width: 24px; height: 24px; margin-bottom: 8px; }
  .pd-row { flex-wrap: wrap; }
}

/* vista previa compartible */
.preview-badge { display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; border-radius: 999px; border: 1px solid rgba(240, 168, 66, 0.55); font: 500 10.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--amber-2); white-space: nowrap; }
.preview-note { margin-top: 10px; padding: 10px 12px; border-radius: 12px; border: 1px dashed rgba(240, 168, 66, 0.5); font-size: 13px; color: var(--amber-2); }

.card-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.card-nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font: 600 13.5px/1.2 var(--f-body); color: var(--ink-3); transition: color .2s, gap .3s var(--ease-out); }
.card-nav a:hover { color: var(--ink); }
.card-nav a.is-next { color: var(--teal-2); }
.card-nav a.is-next:hover { gap: 12px; }
.card-nav .ico { width: 16px; height: 16px; }

/* ---------- 6. Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: var(--topbar-h); padding: 0 20px;
  background: rgba(6, 11, 11, 0.92);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.brand img { width: 22px; height: auto; filter: drop-shadow(0 0 10px rgba(61, 242, 208, 0.35)); }
.brand-word { font: 800 17px/1 var(--f-display); letter-spacing: 0.08em; background: linear-gradient(90deg, #6fe9d3, #2bb3a0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-tag { font: 500 10.5px/1 var(--f-mono); letter-spacing: .14em; padding: 5px 7px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--ink-2); }
.crumbs { display: none; align-items: center; gap: 10px; font: 500 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.crumb-num { color: var(--teal-2); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }

/* ---------- 7. Secciones: modo documento ---------- */
.stage, .stage-fx, .labels3d, .iris, .hotspots, .minimap { display: none; }
main { display: block; }
.node { position: relative; padding: 72px 20px; max-width: 1180px; margin: 0 auto; }
.node + .node { border-top: 1px solid var(--line); }
.card { max-width: 640px; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-x { display: none; }
.node-hub { padding-top: 48px; }
.node-nav { margin-top: 36px; }
.node-labels { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.node-label { display: block; }
.nl-pill { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border: 1px solid var(--line); border-radius: 999px; background: rgba(234, 242, 239, 0.02); transition: border-color .25s, background-color .25s, transform .35s var(--ease-out); }
.nl-num { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; border: 1px solid rgba(61, 242, 208, 0.45); font: 500 11px/1 var(--f-mono); color: var(--teal-2); background: rgba(6, 11, 11, 0.6); }
.node-label.is-amber .nl-num { border-color: rgba(240, 168, 66, 0.6); color: var(--amber); }
.nl-body { display: grid; line-height: 1.15; }
.nl-title { font: 700 14.5px/1.15 var(--f-display); letter-spacing: -0.01em; }
.nl-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.node-label:hover .nl-pill, .node-label.is-hover .nl-pill { border-color: rgba(61, 242, 208, 0.6); background: rgba(12, 44, 40, 0.85); }
.node-label.is-amber:hover .nl-pill, .node-label.is-amber.is-hover .nl-pill { border-color: rgba(240, 168, 66, 0.7); background: rgba(52, 36, 10, 0.85); }
.node-label:focus-visible { outline: none; }
.node-label:focus-visible .nl-pill { outline: 2px solid var(--teal-2); outline-offset: 3px; }
.doc-media { margin-top: 36px; }
.doc-media img { width: 100%; max-width: 720px; border-radius: var(--radius); border: 1px solid var(--line); }

/* splash (doble red de seguridad: CSS a los 4,5 s + JS) */
.splash { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--bg); animation: splashSafety .01s 4.5s forwards; transition: opacity .7s var(--ease-out), visibility .7s; }
.splash.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes splashSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.splash-inner { display: grid; justify-items: center; gap: 14px; }
.splash-inner img { width: 58px; filter: drop-shadow(0 0 24px rgba(61, 242, 208, 0.45)); animation: breathe 2.6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.06); filter: drop-shadow(0 0 36px rgba(61, 242, 208, 0.6)); } }
.splash-word { font: 800 20px/1 var(--f-display); letter-spacing: .32em; padding-left: .32em; color: var(--ink); }
.splash-status { font: 400 11.5px/1 var(--f-mono); letter-spacing: .08em; color: var(--ink-3); }
.splash-bar { width: 160px; height: 2px; border-radius: 2px; background: rgba(234, 242, 239, 0.1); overflow: hidden; }
.splash-bar span { display: block; height: 100%; width: 12%; background: linear-gradient(90deg, var(--teal), var(--teal-2)); transition: width .4s var(--ease-out); }
html.no-js .splash { display: none; }

/* ---------- 8. Modo inmersivo ---------- */
html.is-immersive, html.is-immersive body { height: 100%; overflow: hidden; overscroll-behavior: none; }
html.is-immersive .stage { display: block; position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; touch-action: none; cursor: grab; }
html.is-immersive .stage-fx {
  display: block; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 95% at 50% 45%, transparent 58%, rgba(2, 5, 5, 0.7) 100%),
    linear-gradient(180deg, rgba(6, 11, 11, 0.55) 0%, transparent 16%, transparent 78%, rgba(6, 11, 11, 0.6) 100%);
}
html.is-immersive .stage-fx::after {
  content: ""; position: absolute; inset: 0; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html.is-immersive .topbar {
  position: fixed; left: 0; right: 0; top: 0;
  height: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background: linear-gradient(180deg, rgba(6, 11, 11, 0.82), rgba(6, 11, 11, 0));
  border-bottom: 0;
}
html.is-immersive .crumbs { display: inline-flex; }
html.is-immersive.at-inicio .btn-net { opacity: .45; pointer-events: none; }

html.is-immersive main { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
html.is-immersive .node { position: absolute; inset: 0; max-width: none; margin: 0; padding: 0; border: 0; visibility: hidden; pointer-events: none; }
html.is-immersive .node.is-active { visibility: visible; }
html.is-immersive .doc-media { display: none; }

/* tarjeta flotante (vidrio) */
html.is-immersive .node .card {
  position: absolute; left: 20px; top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px) + 10px); bottom: 20px;
  width: var(--card-w); max-width: none;
  padding: 22px 22px 18px;
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(190, 240, 228, 0.25) transparent;
  pointer-events: auto;
  background: var(--panel-solid);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(234, 242, 239, 0.05);
  opacity: 0; transform: translateX(-22px);
  transition: opacity .45s var(--ease-out), transform .7s var(--ease-out), max-height .5s var(--ease-out);
}
@supports ((backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px))) {
  html.is-immersive .node .card { background: var(--panel); -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%); }
}
html.is-immersive .node.is-shown .card { opacity: 1; transform: none; }
html.is-immersive .node .card-wide { --card-w: min(470px, 38vw); }
html.is-immersive .card-x { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--ink-2); border: 1px solid var(--line); transition: color .2s, border-color .2s, transform .3s var(--ease-out); }
html.is-immersive .card-x:hover { color: var(--ink); border-color: var(--line-2); transform: rotate(90deg); }
html.is-immersive .card > * { transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); }
html.is-immersive .node:not(.is-shown) .card > * { opacity: 0; transform: translateY(10px); }
html.is-immersive .node.is-shown .card > *:nth-child(2) { transition-delay: .06s; }
html.is-immersive .node.is-shown .card > *:nth-child(3) { transition-delay: .12s; }
html.is-immersive .node.is-shown .card > *:nth-child(n+4) { transition-delay: .18s; }

/* hub: portada sobre la red */
html.is-immersive .node-hub .hub-copy {
  position: absolute; left: clamp(20px, 3.4vw, 56px); bottom: clamp(22px, 5vh, 56px);
  max-width: 560px; pointer-events: auto;
  opacity: 0; transform: translateY(18px);
  transition: opacity .8s var(--ease-out), transform 1s var(--ease-out);
}
html.is-immersive .node-hub.is-shown .hub-copy { opacity: 1; transform: none; }
html.is-immersive .hub-copy::before {
  content: ""; position: absolute; inset: -60px -80px -40px -60px; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 60% at 30% 60%, rgba(6, 11, 11, 0.85), rgba(6, 11, 11, 0) 100%);
}
html.is-immersive .node-nav { margin: 0; }
html.is-immersive .node-labels { position: fixed; inset: 0; display: block; pointer-events: none; }
html.is-immersive .node-labels li { position: absolute; left: 0; top: 0; }
html.is-immersive .node-label {
  position: absolute; left: 0; top: 0; width: 0; height: 0;
  pointer-events: auto; transform: translate3d(-9999px, -9999px, 0);
  opacity: 0; transition: opacity .5s var(--ease-out);
}
html.is-immersive .node-label.is-on { opacity: 1; }
html.is-immersive .nl-pill {
  position: absolute; left: 20px; top: 0; transform: translateY(-50%);
  white-space: nowrap; padding: 6px 14px 6px 6px;
  background: rgba(6, 14, 14, 0.66);
}
@supports ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
  html.is-immersive .nl-pill { background: rgba(6, 14, 14, 0.5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
}
html.is-immersive .node-label.is-flip .nl-pill { left: auto; right: 20px; flex-direction: row-reverse; padding: 6px 6px 6px 14px; text-align: right; }
html.is-immersive .node-label:hover .nl-pill, html.is-immersive .node-label.is-hover .nl-pill { transform: translateY(-50%) scale(1.05); }
html.is-immersive .node-hub:not(.is-shown) .node-label { opacity: 0 !important; pointer-events: none; }

/* etiquetas 3D (cotas, nombres) */
html.is-immersive .labels3d { display: block; position: fixed; inset: 0; z-index: 5; pointer-events: none; }
.lbl3d {
  position: absolute; left: 0; top: 0; width: 0; height: 0;
  display: flex; align-items: center; justify-content: center; white-space: nowrap;
  opacity: 0; transition: opacity .4s var(--ease-out);
  font: 500 11px/1 var(--f-mono); letter-spacing: .06em;
}
.lbl3d.is-on { opacity: 1; }
.lbl-piece { color: var(--ink-2); text-transform: uppercase; letter-spacing: .12em; font-size: 10.5px; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9); }
.lbl-piece.is-sel { color: var(--teal-2); }
.lbl-dim { color: var(--amber-2); font-size: 11.5px; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.95), 0 0 2px rgba(0, 0, 0, 0.9); }
.lbl-wall { font: 700 14px/1 var(--f-display); letter-spacing: 0; transform-origin: center; }
.lbl-left { justify-content: flex-end; padding-right: 12px; }
.lbl-up { align-items: flex-end; padding-bottom: 8px; }
.lbl-callout { color: var(--teal-2); justify-content: flex-start; padding-left: 14px; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.95); }
.lbl-callout.lbl-left { justify-content: flex-end; padding-left: 0; padding-right: 14px; }
.lbl-fig { color: var(--ink-3); font-size: 10.5px; }

/* puntos clave sobre la lámina */
html.is-immersive.at-visor .hotspots { display: block; position: fixed; inset: 0; z-index: 6; pointer-events: none; }
.hotspot { position: absolute; left: 0; top: 0; width: 0; height: 0; overflow: visible; pointer-events: auto; opacity: 0; transition: opacity .4s var(--ease-out); }
.hotspot.is-on { opacity: 1; }
.hs-dot { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: rgba(61, 242, 208, 0.25); box-shadow: inset 0 0 0 2px var(--teal-2); }
.hs-dot::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--teal-2); }
.hs-dot::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(61, 242, 208, 0.6); animation: ring 2.2s var(--ease-out) infinite; }
@keyframes ring { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.hs-text { position: absolute; left: 16px; top: 0; transform: translateY(-50%); white-space: nowrap; padding: 5px 10px; border-radius: 999px; background: rgba(6, 14, 14, 0.78); border: 1px solid var(--line-2); font: 600 12px/1.2 var(--f-body); color: var(--ink); opacity: 0; transition: opacity .25s, transform .3s var(--ease-out); }
.hotspot:hover .hs-text, .hotspot:focus-visible .hs-text { opacity: 1; transform: translate(4px, -50%); }
.hotspot:focus-visible { outline: none; }
.hotspot:focus-visible .hs-dot { outline: 2px solid var(--ink); outline-offset: 4px; }
html.is-immersive.is-moving .hotspots { opacity: 0; }

/* iris: el "zoom" que conecta un nodo con el siguiente */
html.is-immersive .iris {
  display: block; position: fixed; inset: 0; z-index: 60; pointer-events: none;
  --r: 0px; --x: 50%; --y: 50%;
  background: radial-gradient(circle at var(--x) var(--y), #e6fff9 0%, #6ff5dc 7%, #19b39a 20%, #0c4a44 42%, #060b0b 72%);
  clip-path: circle(var(--r) at var(--x) var(--y));
  -webkit-clip-path: circle(var(--r) at var(--x) var(--y));
  opacity: 0;
}
html.is-immersive .iris.is-amber { background: radial-gradient(circle at var(--x) var(--y), #fff4df 0%, #ffd08a 7%, #f0a842 20%, #5a3a0e 44%, #060b0b 74%); }

/* mini mapa de la red */
html.is-immersive .minimap {
  display: block; position: fixed; right: 20px; bottom: 20px; z-index: 30;
  width: 150px; padding: 10px 10px 8px; border-radius: 16px;
  background: rgba(6, 14, 14, 0.72); border: 1px solid var(--line);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out);
}
html.is-immersive:not(.at-inicio) .minimap { opacity: 1; transform: none; pointer-events: auto; }
.minimap svg { width: 100%; height: auto; overflow: visible; }
.mm-lines path { fill: none; stroke: rgba(61, 242, 208, 0.28); stroke-width: 1; }
.mm-lines .mm-ring { stroke: rgba(61, 242, 208, 0.12); stroke-dasharray: 2 3; }
.mm-node circle { fill: #0b1c1b; stroke: rgba(61, 242, 208, 0.55); stroke-width: 1.2; transition: fill .3s, r .3s, stroke .3s; }
.mm-node.is-amber circle { stroke: rgba(240, 168, 66, 0.7); }
.mm-node.is-seen circle { fill: rgba(61, 242, 208, 0.45); }
.mm-node.is-amber.is-seen circle { fill: rgba(240, 168, 66, 0.5); }
.mm-node.is-here circle { fill: var(--teal-2); stroke: #fff; }
.mm-node.is-amber.is-here circle { fill: var(--amber); }
.mm-node:hover circle { stroke: #fff; }
.mm-node:focus-visible { outline: none; }
.mm-node:focus-visible circle { stroke: #fff; stroke-width: 2.4; }
.mm-count { margin-top: 4px; text-align: center; font: 500 10.5px/1 var(--f-mono); letter-spacing: .08em; color: var(--ink-3); }

/* ---------- 9. Responsive ---------- */
@media (min-width: 720px) {
  .node { padding: 96px 32px; }
  .topbar { padding: 0 28px; }
}
@media (min-width: 960px) {
  .crumbs { display: inline-flex; }
}
@media (max-width: 959px) {
  html.is-immersive .crumbs { display: none; }
}
@media (max-width: 719px) {
  :root { --topbar-h: 58px; }
  .btn-net span { display: none; }
  .btn-net { width: 40px; padding: 0; }
  .field-row { grid-template-columns: 1fr; }
  .hub-title { font-size: clamp(2.1rem, 10vw, 2.9rem); }

  /* la tarjeta pasa a ser una hoja inferior; el 3D queda arriba */
  html.is-immersive .node .card,
  html.is-immersive .node .card-wide {
    left: 0; right: 0; bottom: 0; top: auto; width: auto;
    max-height: 56svh;
    padding: 30px 18px calc(16px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0; border-bottom: 0;
    transform: translateY(28px);
  }
  html.is-immersive .node .card::before { content: ""; position: absolute; left: 50%; top: 10px; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--line-2); }
  html.is-immersive .node .card.is-collapsed { max-height: 132px; overflow: hidden; }
  html.is-immersive .node-hub .hub-copy { left: 18px; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); }
  html.is-immersive .hub-lead { font-size: .95rem; }
  html.is-immersive .hub-actions .btn { flex: 1; }
  html.is-immersive .hub-hint { display: none; }
  html.is-immersive .nl-pill { padding: 4px 10px 4px 4px; gap: 8px; }
  html.is-immersive .nl-num { width: 26px; height: 26px; }
  html.is-immersive .nl-sub { display: none; }
  html.is-immersive .nl-title { font-size: 13px; }
  html.is-immersive .minimap { display: none; }
  .hub-actions { flex-wrap: wrap; }
}
.hub-actions { display: flex; gap: 10px; margin-top: 26px; }
.card-toggle { display: none; }

/* chips de nodos: en pantallas medianas y móviles la red muestra solo números
   y los nombres de los nodos pasan a una fila de chips bajo los botones */
.hub-chips { display: none; }
@media (max-width: 1099px), (max-height: 620px) {
  html.is-immersive .hub-chips {
    display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
    margin-top: 16px; padding: 2px 0 4px; max-width: min(520px, 100%);
    scroll-snap-type: x proximity;
  }
  html.is-immersive .hub-chips::-webkit-scrollbar { display: none; }
  .hub-chips a {
    flex: none; display: inline-flex; align-items: center; gap: 8px; scroll-snap-align: start;
    min-height: 40px; padding: 0 14px 0 6px; border-radius: 999px;
    border: 1px solid var(--line-2); background: rgba(6, 14, 14, 0.7);
    font: 700 13px/1 var(--f-display); letter-spacing: -0.01em; color: var(--ink);
    transition: border-color .2s, background-color .2s;
  }
  .hub-chips a:hover { border-color: rgba(61, 242, 208, 0.6); background: rgba(12, 44, 40, 0.85); }
  .hub-chips span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(61, 242, 208, 0.45); font: 500 10.5px/1 var(--f-mono); color: var(--teal-2); }
  .hub-chips a.is-amber span { border-color: rgba(240, 168, 66, 0.6); color: var(--amber); }
  html.is-immersive .hub-hint { display: none; }
  html.is-immersive .hub-title { font-size: clamp(1.9rem, 4.3vw, 3.4rem); }
  html.is-immersive .hub-lead { max-width: 38ch; font-size: .95rem; }

  /* en la red, solo el número junto a cada nodo */
  html.is-immersive .node-labels .nl-pill { left: 10px; top: -10px; transform: translateY(-50%); padding: 0; gap: 0; border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  html.is-immersive .node-label.is-flip .nl-pill { left: auto; right: 10px; padding: 0; }
  html.is-immersive .node-labels .nl-body { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  html.is-immersive .node-labels .nl-num { width: 30px; height: 30px; background: rgba(6, 14, 14, 0.8); box-shadow: 0 0 18px rgba(61, 242, 208, 0.25); }
  html.is-immersive .node-label:hover .nl-pill, html.is-immersive .node-label.is-hover .nl-pill { transform: translateY(-50%) scale(1.1); }
}
@media (max-width: 719px) {
  :root { --topbar-h: 56px; }
  .topbar { gap: 8px; padding: 0 12px; }
  .brand { gap: 8px; }
  .brand-word { font-size: 15px; letter-spacing: .06em; }
  .topbar-actions { gap: 6px; }
  .topbar-actions .btn-amber { padding: 0 .9em; }

  /* chips a sangre (ocupan todo el ancho y se deslizan) */
  html.is-immersive .hub-chips { margin: 14px -16px 0; padding: 2px 16px 4px; max-width: none; }

  /* portada compacta: la red ocupa la mitad superior */
  html.is-immersive .node-hub .hub-copy { left: 16px; right: 16px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: none; }
  html.is-immersive .hub-copy::before { inset: -110px -16px -40px -16px; background: linear-gradient(180deg, rgba(6, 11, 11, 0) 0%, rgba(6, 11, 11, 0.88) 34%, rgba(6, 11, 11, 0.96) 100%); }
  html.is-immersive .hub-title { font-size: clamp(1.85rem, 8.4vw, 2.4rem); margin-top: 12px; }
  html.is-immersive .hub-lead { font-size: .9rem; line-height: 1.5; margin-top: 10px; max-width: none; }
  html.is-immersive .hub-actions { margin-top: 14px; }
  html.is-immersive .hub-actions .btn { min-height: 46px; padding: 0 .8em; font-size: 14px; }
}
@media (max-width: 380px) {
  .brand-tag { display: none; }
}
/* pantallas muy angostas (celulares plegables, panel lateral) */
@media (max-width: 359px) {
  .topbar { padding: 0 10px; }
  .brand-word { font-size: 13px; letter-spacing: .04em; }
  .topbar-actions .btn-amber { padding: 0 .7em; font-size: 13px; }
  .pay-methods { grid-template-columns: 1fr; }
  .pay-method { grid-template-columns: auto 1fr; padding: 12px 34px 12px 13px; }
  .pay-method .ico { grid-row: span 2; margin-bottom: 0; }
  html.is-immersive .card-toggle { white-space: nowrap; }
}
@media (max-width: 719px) {
  html.is-immersive .card-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); font: 600 12.5px/1 var(--f-body); color: var(--ink-2); }
}
@media (hover: none) {
  .icon-btn { width: 46px; height: 46px; }
  .btn-sm { min-height: 44px; }
}

/* ---------- 10. Movimiento reducido (solo lo intrusivo) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse-dot, .hs-dot::before, .splash-inner img { animation: none; }
}

/* sello fijo de la vista previa compartible */
.preview-flag { position: fixed; z-index: 55; top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px) + 8px); left: 50%; transform: translateX(-50%); pointer-events: none; background: rgba(6, 11, 11, 0.8); }
