/* ============ Keemetrix — overrides & additions ============ */

:root {
  /* Lime accent = llave + tech signal. Keep everything else from NueveLabs tokens. */
  --accent: #C4FF4D;
  --accent-2: #DBFF8A;
  --accent-glow: rgba(196, 255, 77, 0.30);
  --ok: #5BE3A1;
}
[data-theme="light"] {
  --accent: #5FA800;
  --accent-2: #83C91C;
  --accent-glow: rgba(95, 168, 0, 0.20);
}

/* Re-tint the nav brand primary button black-on-lime — text must be dark on the bright lime */
.btn-primary { color: #0A0F06; }
[data-theme="light"] .btn-primary { color: #0A0F06; }

::selection { background: var(--accent); color: #0A0F06; }

/* Brand wordmark */
.brand-name em { color: var(--accent); font-style: normal; letter-spacing: -0.02em; }
.nav .brand { font-size: 26px; }
.footer-brand .brand { font-size: 36px; }

/* Status text pairing: keep .ok green, accent reserved for highlights */
.node.central text { fill: #0A0F06; }
[data-theme="light"] .node.central text { fill: #0A0F06; }

/* ===== Keemetrix custom sections ===== */

/* Eyebrow pill (section-meta) already exists */

/* ----- Product vertical cards (KeeSpaces / KeeBox / Smart SS / Kuartus) ----- */
.verticals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.vertical {
  position: relative;
  padding: 24px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-lg);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .2s, transform .2s, background .2s;
  overflow: hidden;
}
.vertical::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity .25s;
}
.vertical:hover::before { opacity: 1; }
.vertical:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.vertical .vhead {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-faint);
}
.vertical .vhead .vtag {
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink-dim);
}
.vertical .vhead .vidx { letter-spacing: 0.06em; }
.vertical .vicon {
  width: 48px; height: 48px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface-2) 70%, transparent);
  display: grid; place-items: center;
  color: var(--accent);
}
.vertical .vicon svg { width: 22px; height: 22px; }
.vertical h3 { font-size: 22px; letter-spacing: -0.02em; }
.vertical h3 .punct { color: var(--accent); }
.vertical p { color: var(--ink-dim); font-size: 13.5px; line-height: 1.55; }
.vertical .vchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.vertical .vchips span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink-dim);
}
.vertical .vlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.vertical .vlink::after { content: "→"; transition: transform .2s; color: var(--accent); }
.vertical:hover .vlink::after { transform: translateX(3px); }

/* Warm card variant toggle (tweak) */
[data-cardstyle="warm"] .vertical,
[data-cardstyle="warm"] .product,
[data-cardstyle="warm"] .case,
[data-cardstyle="warm"] .testimonial {
  background: linear-gradient(180deg, color-mix(in oklab, var(--surface) 92%, transparent), color-mix(in oklab, var(--surface-2) 85%, transparent));
  border-color: var(--border-strong);
}
[data-cardstyle="warm"] .vertical::before,
[data-cardstyle="warm"] .product::before { opacity: .4; }

/* ----- Deep section: KeeSpaces feature grid ----- */
.deep-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.deep-head .dh-left { display: grid; gap: 10px; }
.deep-head .dh-left h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.025em;
  max-width: 18ch;
}
.deep-head .dh-left .sub {
  color: var(--ink-dim);
  font-size: 15px;
  max-width: 52ch;
  line-height: 1.5;
}
.deep-head .dh-right {
  display: grid; gap: 4px; justify-items: flex-end;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint);
}
.deep-head .dh-right .big {
  font-size: 18px; color: var(--accent-2); letter-spacing: -0.02em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(150px, auto);
  gap: 12px;
}
.fcell {
  position: relative;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  transition: border-color .2s;
}
.fcell:hover { border-color: var(--border-strong); }
.fcell .fnum {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em;
  color: var(--ink-faint);
}
.fcell h4 {
  font-size: 18px; letter-spacing: -0.015em; font-weight: 500;
}
.fcell p {
  color: var(--ink-dim); font-size: 13px; line-height: 1.5;
}
.fcell.wide-3 { grid-column: span 3; }
.fcell.wide-2 { grid-column: span 2; }
.fcell.wide-4 { grid-column: span 4; }
.fcell.tall-2 { grid-row: span 2; }

/* Dashboard mock inside .fcell */
.mock-dash {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  overflow: hidden;
  font-family: var(--font-mono);
  flex: 1;
  min-height: 180px;
  display: flex;
  flex-direction: column;
}
.mock-dash .mdh {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 10px;
  color: var(--ink-faint);
  background: color-mix(in oklab, var(--surface-2) 60%, transparent);
}
.mock-dash .mdh .dots { display: inline-flex; gap: 4px; }
.mock-dash .mdh .dots i {
  width: 7px; height: 7px; border-radius: 999px; background: var(--border-strong);
  display: inline-block;
}
.mock-dash .mdrow {
  display: grid;
  grid-template-columns: 14px 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 6px 12px;
  font-size: 10.5px;
  border-bottom: 1px solid var(--border);
}
.mock-dash .mdrow:last-child { border-bottom: 0; }
.mock-dash .mdrow .ic { color: var(--accent); }
.mock-dash .mdrow .nm { color: var(--ink); }
.mock-dash .mdrow .am { color: var(--ink-dim); }
.mock-dash .mdrow .st { color: var(--ok); }
.mock-dash .mdrow .st.warn { color: var(--warn); }

/* Floorplan (centro) */
.floorplan {
  margin-top: 12px;
  flex: 1;
  min-height: 180px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  padding: 12px;
  position: relative;
  overflow: hidden;
}
.floorplan svg { width: 100%; height: 100%; display: block; }
.fp-door { transition: fill .3s, stroke .3s; cursor: pointer; }

/* KPI tile */
.kpi {
  display: grid;
  gap: 4px;
  padding-top: 8px;
}
.kpi .kp-val {
  font-family: var(--font-mono);
  font-size: 30px;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.kpi .kp-val .accent { color: var(--accent); }
.kpi .kp-lbl {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint);
}
.kpi .kp-delta {
  font-family: var(--font-mono); font-size: 11px; color: var(--ok);
  margin-top: 2px;
}

/* ----- KeeBox hardware section ----- */
.hw-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hw-layout .hw-copy h3 {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  max-width: 16ch;
}
.hw-layout .hw-copy p {
  color: var(--ink-dim); font-size: 16px; line-height: 1.55;
  margin-bottom: 24px; max-width: 48ch;
}
.hw-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}
.hw-spec {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}
.hw-spec .sp-lbl {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint);
}
.hw-spec .sp-val {
  font-family: var(--font-mono); font-size: 15px;
  color: var(--ink); margin-top: 4px; letter-spacing: -0.01em;
}

.device {
  position: relative;
  aspect-ratio: 4/5;
  max-width: 440px;
  margin-left: auto;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 50% 30%, var(--accent-glow), transparent 60%),
    linear-gradient(180deg, color-mix(in oklab, var(--surface) 85%, transparent), color-mix(in oklab, var(--bg) 95%, transparent));
  overflow: hidden;
}
.device .corner { position: absolute; width: 10px; height: 10px; border: 1px solid var(--accent); }
.device .corner.tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.device .corner.tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.device .corner.bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.device .corner.br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.device .device-tb {
  position: absolute; top: 0; left: 0; right: 0;
  padding: 10px 14px;
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-faint);
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 70%, transparent);
}

/* ----- Smart Self Storage: big diagram ----- */
.sss-diagram {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  position: relative;
  min-height: 300px;
}
.sss-node {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  padding: 14px;
  display: grid;
  gap: 6px;
  align-content: start;
  position: relative;
  z-index: 1;
}
.sss-node .sn-eye {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint);
}
.sss-node .sn-ttl {
  font-size: 15px; letter-spacing: -0.015em;
}
.sss-node .sn-sub {
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-dim);
  line-height: 1.5;
}
.sss-node.accent {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-glow), inset 0 0 30px var(--accent-glow);
}
.sss-node.accent .sn-eye { color: var(--accent-2); }

/* ----- Kuartus app mockup ----- */
.app-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.app-copy h3 {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  max-width: 16ch;
}
.app-copy p {
  color: var(--ink-dim); font-size: 16px; line-height: 1.55;
  margin-bottom: 24px; max-width: 48ch;
}
.app-features {
  display: grid; gap: 14px; margin-top: 28px;
}
.app-feature {
  display: grid; grid-template-columns: 28px 1fr; gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  align-items: baseline;
}
.app-feature:last-child { border-bottom: 0; }
.app-feature .af-num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-faint); letter-spacing: 0.04em;
}
.app-feature .af-body h5 {
  margin: 0 0 4px; font-size: 15px; letter-spacing: -0.01em; font-weight: 500;
}
.app-feature .af-body p {
  font-size: 13.5px; color: var(--ink-dim); line-height: 1.5; margin: 0;
}

.badges { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.badge-store {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  transition: border-color .18s;
}
.badge-store:hover { border-color: var(--accent); }
.badge-store svg { width: 18px; height: 18px; }
.badge-store .bs-eye {
  font-size: 9px; color: var(--ink-faint); letter-spacing: 0.08em;
  text-transform: uppercase; display: block;
}
.badge-store .bs-name { display: block; font-size: 14px; }

/* Phone frame */
.phone {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  aspect-ratio: 9/19;
  background: #0B0E1A;
  border-radius: 38px;
  padding: 8px;
  border: 1px solid var(--border-strong);
  box-shadow:
    0 40px 80px -30px rgba(0,0,0,.6),
    inset 0 0 0 2px #000;
  position: relative;
}
.phone::before {
  content: "";
  position: absolute;
  top: 18px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 24px;
  background: #000; border-radius: 99px; z-index: 2;
}
.phone .screen {
  width: 100%; height: 100%;
  background: linear-gradient(180deg, #0E1422, #0A0F1C);
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.phone .sbar {
  display: flex; justify-content: space-between;
  padding: 16px 30px 0;
  font-family: var(--font-mono); font-size: 11px;
  color: #E8E6E1;
  font-variant-numeric: tabular-nums;
}
.phone .sbody {
  padding: 50px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #E8E6E1;
}
.phone .greet {
  font-family: var(--font-mono);
  font-size: 11px; color: #9CA3BE;
}
.phone .greet strong { color: #E8E6E1; font-weight: 500; }
.phone .kcard {
  border: 1px solid #1E2340;
  border-radius: 14px;
  background: #11152A;
  padding: 16px;
  display: grid;
  gap: 4px;
}
.phone .kcard .kt { font-family: var(--font-mono); font-size: 10px; color: #5B6286; letter-spacing: 0.08em; text-transform: uppercase; }
.phone .kcard .kc { font-family: var(--font-mono); font-size: 20px; letter-spacing: -0.02em; color: #E8E6E1; }
.phone .kcard .ku { font-family: var(--font-mono); font-size: 11px; color: #9CA3BE; margin-top: 4px; }

.phone .bigbtn {
  margin-top: auto;
  width: 120px; height: 120px;
  border-radius: 999px;
  background: #C4FF4D;
  align-self: center;
  display: grid; place-items: center;
  color: #0A0F06;
  box-shadow:
    0 0 0 6px rgba(196,255,77,.12),
    0 0 0 14px rgba(196,255,77,.06),
    0 0 40px rgba(196,255,77,.35);
  animation: pulse-btn 2.4s ease-in-out infinite;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center; font-weight: 600;
  position: relative;
}
.phone .bigbtn svg { width: 34px; height: 34px; margin-bottom: 4px; }
@keyframes pulse-btn {
  0%, 100% { box-shadow: 0 0 0 6px rgba(196,255,77,.12), 0 0 0 14px rgba(196,255,77,.06), 0 0 40px rgba(196,255,77,.35); }
  50% { box-shadow: 0 0 0 10px rgba(196,255,77,.18), 0 0 0 22px rgba(196,255,77,.08), 0 0 60px rgba(196,255,77,.55); }
}
.phone .quickrow {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
  margin-top: 16px;
}
.phone .quickrow button {
  border: 1px solid #1E2340;
  border-radius: 10px;
  background: #11152A;
  color: #9CA3BE;
  font-family: var(--font-mono);
  font-size: 9.5px;
  padding: 8px 0;
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* ----- Architecture diagram ----- */
.arch {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.arch svg { width: 100%; height: auto; display: block; }
.arch .arch-lg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
.arch-col {
  padding: 24px;
  border-right: 1px dashed var(--border);
  display: grid; gap: 14px;
}
.arch-col:last-child { border-right: 0; }
.arch-col .ac-eye {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-2);
}
.arch-col .ac-node {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  padding: 14px;
  display: grid; gap: 4px;
}
.arch-col .ac-node .an-ttl {
  font-size: 14px; letter-spacing: -0.01em; color: var(--ink);
}
.arch-col .ac-node .an-sub {
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-dim);
}
.arch-col .ac-node.accent {
  border-color: var(--accent);
  box-shadow: inset 0 0 20px var(--accent-glow);
}

/* ----- Logos wall ----- */
.logos-wall {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.logo-cell {
  padding: 28px 18px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: grid; place-items: center;
  min-height: 110px;
  font-family: var(--font-mono);
  color: var(--ink-dim);
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: color .2s, background .2s;
  text-align: center;
}
.logo-cell:hover { color: var(--ink); background: var(--surface-2); }
.logo-cell:nth-child(5n) { border-right: 0; }
.logo-cell:nth-last-child(-n+5) { border-bottom: 0; }
.logo-cell .lg {
  display: flex; align-items: center; gap: 8px;
}
.logo-cell .lg-mark {
  width: 22px; height: 22px;
  border: 1px solid var(--ink-dim);
  border-radius: 5px;
  display: grid; place-items: center;
  font-size: 10px; color: var(--ink-dim);
  font-weight: 700;
}
.logo-cell:hover .lg-mark { border-color: var(--ink); color: var(--ink); }
.logo-cell .lg-name { font-weight: 500; }

/* ----- Testimonials ----- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.testimonial {
  padding: 28px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-lg);
  display: grid;
  gap: 20px;
  position: relative;
}
.testimonial::before {
  content: "“";
  position: absolute;
  top: 6px; right: 18px;
  font-size: 72px;
  color: var(--accent);
  line-height: 0.8;
  font-family: serif;
  opacity: 0.6;
}
.testimonial q {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  quotes: none;
}
.testimonial q::before, .testimonial q::after { content: none; }
.testimonial .t-foot {
  display: flex; align-items: center; gap: 14px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
}
.testimonial .t-avatar {
  width: 42px; height: 42px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.testimonial .t-who {
  display: grid; gap: 2px;
}
.testimonial .t-who .nm { font-size: 14px; color: var(--ink); }
.testimonial .t-who .rl {
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint);
}

/* ----- FAQ ----- */
.faq {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 0;
  display: grid;
  grid-template-columns: 44px 1fr 24px;
  gap: 20px;
  align-items: baseline;
  transition: color .18s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .fq-idx {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-faint); letter-spacing: 0.06em;
}
.faq-item summary .fq-q {
  font-size: 18px; letter-spacing: -0.015em; color: var(--ink);
}
.faq-item summary .fq-plus {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--accent);
  justify-self: end;
  transition: transform .2s;
}
.faq-item[open] summary .fq-plus { transform: rotate(45deg); }
.faq-item summary:hover .fq-q { color: var(--accent-2); }
.faq-item .fq-a {
  padding: 0 0 22px 64px;
  color: var(--ink-dim);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 72ch;
}

/* ----- Blog grid ----- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.post {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color .2s, transform .2s;
  overflow: hidden;
}
.post:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.post .p-thumb {
  aspect-ratio: 16/9;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  display: grid; place-items: center;
}
.post .p-thumb svg { width: 70%; height: 70%; color: var(--accent); opacity: 0.8; }
.post .p-thumb .p-pat {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent 70%);
}
.post .p-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint);
}
.post .p-cat {
  padding: 3px 8px; border: 1px solid var(--border); border-radius: 999px;
  color: var(--accent-2);
}
.post h4 {
  font-size: 18px; font-weight: 500; letter-spacing: -0.015em;
  line-height: 1.25;
}
.post .p-exc {
  color: var(--ink-dim); font-size: 13.5px; line-height: 1.55;
}
.post .p-foot {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint);
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  margin-top: auto;
}
.post .p-foot .read { color: var(--accent-2); }

/* ----- Stats band (compact row) ----- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.stats-band .stat {
  padding: 28px;
  border-right: 1px solid var(--border);
  display: grid; gap: 6px;
}
.stats-band .stat:last-child { border-right: 0; }
.stats-band .stat .sv {
  font-family: var(--font-mono);
  font-size: clamp(32px, 3.5vw, 48px);
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stats-band .stat .sv .accent { color: var(--accent); }
.stats-band .stat .sl {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint);
}
.stats-band .stat .sn {
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-dim);
  margin-top: 2px;
}

/* ----- Product variant tweak ----- */
/* compact list variant for verticals */
[data-prodstyle="list"] .verticals {
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
[data-prodstyle="list"] .vertical {
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 20px;
  align-items: center;
  min-height: auto;
  padding: 20px 24px;
}
[data-prodstyle="list"] .vertical:last-child { border-bottom: 0; }
[data-prodstyle="list"] .vertical .vhead,
[data-prodstyle="list"] .vertical .vchips,
[data-prodstyle="list"] .vertical .vlink { display: none; }
[data-prodstyle="list"] .vertical p {
  color: var(--ink-dim); font-size: 13px;
}
[data-prodstyle="list"] .vertical .vicon { width: 48px; height: 48px; margin: 0; }
[data-prodstyle="list"] .vertical::before { display: none; }
[data-prodstyle="list"] .vertical::after {
  content: "→";
  color: var(--accent);
  font-family: var(--font-mono);
}

/* ----- CTA ----- */
.cta-band {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 20% 50%, var(--accent-glow), transparent 50%),
    var(--surface);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.4;
  mask-image: linear-gradient(90deg, transparent, black, transparent);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h3 {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.025em;
  max-width: 18ch;
}
.cta-band p {
  color: var(--ink-dim); font-size: 15px; margin-top: 14px;
  max-width: 42ch; line-height: 1.55;
}
.cta-band .cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* ============================================================
   "¿Tienes Local?" — propietarios de locales comerciales
   ============================================================ */

/* Homepage teaser band */
.local-band {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 80% 20%, var(--accent-glow), transparent 50%),
    var(--surface);
  position: relative;
  overflow: hidden;
}
.local-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.25;
  mask-image: linear-gradient(135deg, transparent, black 60%, transparent);
  pointer-events: none;
}
.local-band > * { position: relative; z-index: 1; }
.local-copy h2 {
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 16px 0 18px;
  max-width: 20ch;
}
.local-copy h2 .punct { color: var(--accent); }
.local-copy h2 .accent { color: var(--accent-2); }
.local-copy > p {
  color: var(--ink-dim);
  font-size: 16px;
  line-height: 1.6;
  max-width: 52ch;
  margin-bottom: 24px;
}
.local-copy strong { color: var(--ink); font-weight: 500; }

.local-pulls {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
.local-pulls li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: baseline;
  font-size: 14px;
  color: var(--ink-dim);
  padding: 6px 0;
  border-top: 1px dashed var(--border);
}
.local-pulls .lp-bullet {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.local-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Animated transformation visual */
.local-visual {
  aspect-ratio: 1/1;
  max-width: 460px;
  width: 100%;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at center, var(--accent-glow), transparent 65%),
    var(--bg);
  position: relative;
  overflow: hidden;
}
.local-visual .lv-tb {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 70%, transparent);
  z-index: 2;
}
.local-visual .lv-tb .lv-step {
  color: var(--accent-2);
}
.local-visual svg {
  position: absolute;
  inset: 32px 0 26px;
  width: 100%;
  height: calc(100% - 58px);
}
.local-visual .lv-bb {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-faint);
  border-top: 1px solid var(--border);
}
.lv-cell {
  fill: var(--bg);
  stroke: var(--border);
  stroke-width: 1;
  opacity: 0;
  transition: opacity 0.5s, fill 0.4s, stroke 0.4s;
}
.lv-cell.on {
  opacity: 1;
  fill: color-mix(in oklab, var(--surface-2) 85%, transparent);
  stroke: var(--border-strong);
}
.lv-cell.act {
  fill: var(--accent);
  stroke: var(--accent);
}
.lv-room {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
}
.lv-axis {
  fill: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

/* Mini calc strip */
.local-strip {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.ls-cell {
  padding: 24px 22px;
  border-right: 1px solid var(--border);
  display: grid;
  gap: 6px;
}
.ls-cell:last-child { border-right: 0; }
.ls-cell .ls-area,
.ls-cell .ls-lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.ls-cell .ls-rev {
  font-family: var(--font-mono);
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.ls-cell .ls-rev small {
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0;
  font-weight: 400;
  margin-left: 2px;
}
.ls-cell .ls-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-dim);
}
.ls-cell.ls-cta {
  background: color-mix(in oklab, var(--surface-2) 60%, transparent);
}
.ls-cell.ls-cta .ls-rev {
  color: var(--accent);
  font-size: 36px;
}
.ls-cell .ls-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-2);
  letter-spacing: 0.04em;
  margin-top: 4px;
}

/* ============================================================
   pages/tienes-local.html — dedicated page
   ============================================================ */

/* Page hero */
.lhero {
  padding: clamp(60px, 9vw, 130px) 0 60px;
  position: relative;
  overflow: hidden;
}
.lhero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.lhero-copy .crumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  margin-bottom: 18px;
}
.lhero-copy .crumbs a { color: var(--ink-dim); }
.lhero-copy .crumbs a:hover { color: var(--ink); }
.lhero-copy .crumbs .sep { color: var(--ink-faint); }
.lhero-copy h1 {
  font-size: clamp(40px, 5.5vw, 76px);
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin-bottom: 26px;
}
.lhero-copy h1 .accent { color: var(--accent); font-style: normal; }
.lhero-copy h1 .punct { color: var(--accent); }
.lhero-copy .lhero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-dim);
  max-width: 56ch;
  margin-bottom: 30px;
}
.lhero-copy .lhero-sub strong { color: var(--ink); font-weight: 500; }
.lhero-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.lhero-meta .lhm {
  display: grid;
  gap: 4px;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}
.lhero-meta .lhm .lhm-v {
  font-family: var(--font-mono);
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.lhero-meta .lhm .lhm-v .accent { color: var(--accent); }
.lhero-meta .lhm .lhm-l {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Hero visual — animated isometric local */
.lhero-visual {
  aspect-ratio: 1/1.05;
  max-width: 580px;
  width: 100%;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at center, var(--accent-glow), transparent 65%),
    var(--bg);
  position: relative;
  overflow: hidden;
}
.lhero-visual .lvh-tb,
.lhero-visual .lvh-bb {
  position: absolute;
  left: 0; right: 0;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-faint);
  z-index: 2;
}
.lhero-visual .lvh-tb {
  top: 0;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 70%, transparent);
}
.lhero-visual .lvh-bb {
  bottom: 0;
  border-top: 1px solid var(--border);
}
.lhero-visual .corner { position: absolute; width: 12px; height: 12px; border: 1px solid var(--accent); }
.lhero-visual .corner.tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.lhero-visual .corner.tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.lhero-visual .corner.bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.lhero-visual .corner.br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.lhero-visual svg.iso {
  position: absolute;
  inset: 40px 20px 32px;
  width: calc(100% - 40px);
  height: calc(100% - 72px);
}

/* Calculator section */
.calc {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 36px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  position: relative;
  overflow: hidden;
}
.calc::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 30%, var(--accent-glow), transparent 50%);
  pointer-events: none;
}
.calc > * { position: relative; z-index: 1; }
.calc-controls {
  display: grid;
  gap: 24px;
}
.calc-controls h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.calc-controls .calc-sub {
  color: var(--ink-dim);
  font-size: 13.5px;
  margin-top: 6px;
  line-height: 1.55;
}
.calc-field {
  display: grid;
  gap: 8px;
}
.calc-field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.calc-field label .cv {
  font-size: 16px;
  color: var(--ink);
  text-transform: none;
  letter-spacing: -0.01em;
}
.calc-field label .cv .accent { color: var(--accent); }
.calc-field input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
.calc-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent), 0 0 14px var(--accent-glow);
  cursor: grab;
}
.calc-field input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent), 0 0 14px var(--accent-glow);
  cursor: grab;
}
.calc-pickers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.calc-picker {
  display: grid;
  gap: 8px;
}
.calc-picker .cp-lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.calc-picker .cp-opts {
  display: grid;
  grid-auto-flow: column;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.calc-picker .cp-opts button {
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-dim);
  background: transparent;
  border-right: 1px solid var(--border);
  transition: color .15s, background .15s;
}
.calc-picker .cp-opts button:last-child { border-right: 0; }
.calc-picker .cp-opts button.on {
  background: color-mix(in oklab, var(--accent) 18%, transparent);
  color: var(--ink);
}

.calc-out {
  display: grid;
  gap: 18px;
  align-content: start;
}
.calc-out .co-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
}
.calc-out .co-row .co-l {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.calc-out .co-row .co-l .co-sub {
  display: block;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-dim);
  font-size: 11px;
  margin-top: 2px;
}
.calc-out .co-row .co-v {
  font-family: var(--font-mono);
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.calc-out .co-row .co-v small {
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0;
  margin-left: 4px;
}
.calc-out .co-row.headline .co-v {
  font-size: 40px;
  color: var(--accent);
}
.calc-out .co-row:last-child { border-bottom: 0; }
.calc-out .co-foot {
  display: flex;
  gap: 12px;
  padding-top: 12px;
}

/* Floorplan generator */
.gen {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 28px;
  align-items: stretch;
}
.gen-meta {
  display: grid;
  gap: 14px;
  align-content: start;
}
.gen-meta .gm-row {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}
.gen-meta .gm-row .gm-l {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.gen-meta .gm-row .gm-v {
  font-family: var(--font-mono);
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.gen-floor {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  padding: 24px;
  position: relative;
  min-height: 440px;
  overflow: hidden;
}
.gen-floor .gf-tb {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.gen-floor .gf-tb .accent { color: var(--accent-2); }
.gen-floor svg {
  width: 100%;
  height: 380px;
  display: block;
}
.gen-floor .gf-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-dim);
}
.gen-floor .gf-legend .gl-sw {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: middle;
}

/* Revenue curve */
.curve {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 32px;
  overflow: hidden;
  position: relative;
}
.curve-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.curve-head h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.curve-head .ch-meta {
  display: flex;
  gap: 16px;
}
.curve-head .ch-meta .chm {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  text-align: right;
}
.curve-head .ch-meta .chm strong {
  display: block;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.curve svg {
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 360;
  display: block;
}
.curve .c-grid { stroke: var(--border); stroke-width: 0.5; }
.curve .c-axis { fill: var(--ink-faint); font-family: var(--font-mono); font-size: 10px; }
.curve .c-rev-line { fill: none; stroke: var(--accent); stroke-width: 2; }
.curve .c-rev-area { fill: var(--accent-glow); }
.curve .c-occ-line { fill: none; stroke: var(--accent-2); stroke-width: 1.5; stroke-dasharray: 4 3; }
.curve .c-marker { fill: var(--accent); }
.curve .c-marker-text { fill: var(--ink); font-family: var(--font-mono); font-size: 11px; }
.curve-legend {
  display: flex;
  gap: 24px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-dim);
}
.curve-legend .cl-sw {
  display: inline-block;
  width: 14px;
  height: 2px;
  margin-right: 6px;
  vertical-align: middle;
}

/* Comparison table */
.compare {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.compare-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
}
.compare-grid > div {
  padding: 22px 24px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.compare-grid > div:nth-child(4n) { border-right: 0; }
.compare-grid > div:nth-last-child(-n+4) { border-bottom: 0; }
.compare-grid .ch {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: color-mix(in oklab, var(--surface-2) 50%, transparent);
}
.compare-grid .ch.win {
  color: var(--accent);
  background: color-mix(in oklab, var(--accent) 14%, transparent);
}
.compare-grid .rl {
  font-size: 14px;
  color: var(--ink);
}
.compare-grid .rl .rl-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-dim);
  margin-top: 2px;
}
.compare-grid .cell {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-dim);
}
.compare-grid .cell.good { color: var(--ink); }
.compare-grid .cell.bad { color: var(--ink-faint); text-decoration: line-through; }
.compare-grid .cell .ic {
  margin-right: 6px;
  display: inline-block;
  width: 14px;
  text-align: center;
}
.compare-grid .cell.good .ic { color: var(--accent); }
.compare-grid .cell.bad .ic { color: var(--ink-faint); }
.compare-grid .col-win {
  background: color-mix(in oklab, var(--accent) 8%, transparent);
}
.compare-grid .col-win .cell { color: var(--ink); }
.compare-grid .col-win .cell.good { color: var(--accent-2); }

/* Process steps */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.step {
  padding: 28px 22px;
  border-right: 1px solid var(--border);
  display: grid;
  gap: 12px;
  align-content: start;
  position: relative;
}
.step:last-child { border-right: 0; }
.step .st-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.step .st-icon {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--accent);
  background: color-mix(in oklab, var(--surface-2) 60%, transparent);
}
.step .st-icon svg { width: 18px; height: 18px; }
.step h5 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0;
}
.step p {
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.55;
}
.step .st-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

/* Case studies */
.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.case {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 26px;
  display: grid;
  gap: 14px;
  align-content: start;
  transition: border-color .2s, transform .2s;
}
.case:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.case .cs-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}
.case .cs-head .cs-tag {
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent-2);
}
.case .cs-vis {
  aspect-ratio: 16/10;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.case .cs-vis svg { width: 100%; height: 100%; display: block; }
.case h4 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.case .cs-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.case .cs-stats .cs-stat {
  display: grid;
  gap: 2px;
}
.case .cs-stats .cs-stat .cs-v {
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.case .cs-stats .cs-stat .cs-v .accent { color: var(--accent); }
.case .cs-stats .cs-stat .cs-l {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Investment breakdown */
.invest {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.invest > div {
  display: flex;
  flex-direction: column;
}
.invest > div > .invest-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.invest > div > p {
  min-height: 64px;
}
.invest-bar {
  display: grid;
  gap: 14px;
}
.invest-bar .ib-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: baseline;
}
.invest-bar .ib-row .ib-l {
  display: grid;
  gap: 4px;
}
.invest-bar .ib-row .ib-name {
  font-size: 13.5px;
  color: var(--ink);
}
.invest-bar .ib-row .ib-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
}
.invest-bar .ib-row .ib-v {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.invest-bar .ib-track {
  grid-column: 1 / -1;
  height: 5px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.invest-bar .ib-track .ib-fill {
  height: 100%;
  background: var(--accent);
}
.invest-bar .ib-total {
  margin-top: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
}
.invest-bar .ib-total .ib-tl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.invest-bar .ib-total .ib-tv {
  font-family: var(--font-mono);
  font-size: 32px;
  color: var(--accent);
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

/* Hero CTA for property page */
.lead-cta {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 30% 50%, var(--accent-glow), transparent 50%),
    var(--surface);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.lead-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent 70%);
  pointer-events: none;
}
.lead-cta > * { position: relative; z-index: 1; }
.lead-cta h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  max-width: 18ch;
}
.lead-cta p {
  color: var(--ink-dim);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 48ch;
}
.lead-cta .lc-list {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}
.lead-cta .lc-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  font-size: 13.5px;
  color: var(--ink-dim);
}
.lead-cta .lc-list li::before {
  content: "+";
  color: var(--accent);
  font-family: var(--font-mono);
}
.lead-form {
  display: grid;
  gap: 14px;
}
.lead-form .lf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.lead-form label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 4px;
}
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 13px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
  transition: border-color .15s;
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
  border-color: var(--accent);
}
.lead-form .lf-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
  background: color-mix(in oklab, var(--surface-2) 35%, transparent);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-dim);
  line-height: 1.5;
}
.lead-form .lf-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  margin-top: 1px;
  accent-color: var(--accent);
  cursor: pointer;
  background: var(--bg);
}
.lead-form .lf-submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

/* Responsive — Local sections */
@media (max-width: 1100px) {
  .local-band { grid-template-columns: 1fr; padding: 32px; }
  .local-visual { margin: 0; max-width: none; }
  .local-pulls { grid-template-columns: 1fr; }
  .local-strip { grid-template-columns: 1fr 1fr; }
  .ls-cell:nth-child(2n) { border-right: 0; }
  .ls-cell:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .lhero-grid { grid-template-columns: 1fr; gap: 36px; }
  .lhero-visual { margin: 0; max-width: none; }
  .calc { grid-template-columns: 1fr; padding: 28px; }
  .gen { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr 1fr 1fr 1fr; font-size: 12px; }
  .compare-grid > div { padding: 16px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .step:nth-child(2n) { border-right: 0; }
  .step:nth-last-child(-n+2) { border-bottom: 0; }
  .cases { grid-template-columns: 1fr; }
  .invest { grid-template-columns: 1fr; }
  .lead-cta { grid-template-columns: 1fr; padding: 36px 28px; }
}
@media (max-width: 700px) {
  .local-strip { grid-template-columns: 1fr; }
  .ls-cell { border-right: 0; border-bottom: 1px solid var(--border); }
  .ls-cell:last-child { border-bottom: 0; }
  .compare-grid { display: block; }
  .compare-grid > div { border-right: 0; }
  .compare-grid .ch { font-size: 10px; }
  .lead-form .lf-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; }
  .local-band { padding: 24px; }
  .lhero-copy h1 { font-size: clamp(36px, 8vw, 60px); }
}

/* ============================================================
   "Inversores" — capital pasivo
   ============================================================ */
.inv-band {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
  padding: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 20% 80%, var(--accent-glow), transparent 50%),
    var(--surface);
  position: relative;
  overflow: hidden;
}
.inv-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.25;
  mask-image: linear-gradient(225deg, transparent, black 60%, transparent);
  pointer-events: none;
}
.inv-band > * { position: relative; z-index: 1; }
.inv-copy .eyebrow { color: var(--accent-2); }
.inv-copy h2 {
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 16px 0 18px;
  max-width: 20ch;
}
.inv-copy h2 .punct { color: var(--accent); }
.inv-copy h2 .accent { color: var(--accent); font-style: normal; }
.inv-copy > p {
  color: var(--ink-dim);
  font-size: 16px;
  line-height: 1.6;
  max-width: 52ch;
  margin-bottom: 24px;
}
.inv-copy strong { color: var(--ink); font-weight: 500; }
.inv-pulls {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  display: grid;
  gap: 10px;
}
.inv-pulls li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: baseline;
  font-size: 14px;
  color: var(--ink-dim);
  padding: 8px 0;
  border-top: 1px dashed var(--border);
}
.inv-pulls li:first-child { border-top: 0; padding-top: 0; }
.inv-pulls .ip-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.inv-pulls li strong { color: var(--ink); font-weight: 500; }
.inv-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Numbers tile */
.inv-tile {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  padding: 32px;
  display: grid;
  gap: 18px;
  position: relative;
  overflow: hidden;
}
.inv-tile-tb {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.inv-tile-tb .accent { color: var(--accent-2); }
.inv-tile-headline {
  display: grid;
  gap: 6px;
}
.inv-tile-headline .ith-lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.inv-tile-headline .ith-v {
  font-family: var(--font-mono);
  font-size: clamp(54px, 6vw, 84px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.inv-tile-headline .ith-v small {
  font-size: 0.3em;
  color: var(--ink-dim);
  letter-spacing: 0;
  margin-left: 4px;
}
.inv-tile-headline .ith-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-dim);
}
.inv-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.inv-row .inv-stat {
  display: grid;
  gap: 4px;
}
.inv-row .inv-stat .is-v {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.inv-row .inv-stat .is-v .accent { color: var(--accent); }
.inv-row .inv-stat .is-l {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

@media (max-width: 1100px) {
  .inv-band { grid-template-columns: 1fr; padding: 32px; }
  .inv-tile { padding: 24px; }
}

/* ----- Responsive ----- */
@media (max-width: 1100px) {
  .verticals { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
  .fcell.wide-3, .fcell.wide-4 { grid-column: span 4; }
  .fcell.wide-2 { grid-column: span 2; }
  .logos-wall { grid-template-columns: repeat(3, 1fr); }
  .logo-cell:nth-child(5n) { border-right: 1px solid var(--border); }
  .logo-cell:nth-child(3n) { border-right: 0; }
  .logo-cell:nth-last-child(-n+5) { border-bottom: 1px solid var(--border); }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .stats-band .stat:nth-child(2) { border-right: 0; }
  .stats-band .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .hw-layout, .app-layout { grid-template-columns: 1fr; gap: 32px; }
  .cta-band { grid-template-columns: 1fr; padding: 40px 28px; }
  .cta-band .cta-actions { justify-content: flex-start; }
  .sss-diagram { grid-template-columns: repeat(2, 1fr); }
  .deep-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .deep-head .dh-right { justify-items: flex-start; }
  .device { max-width: 100%; margin: 0; }
  .testimonials { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .verticals { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .fcell.wide-3, .fcell.wide-4, .fcell.wide-2 { grid-column: auto; }
  .testimonials { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .logos-wall { grid-template-columns: repeat(2, 1fr); }
  .logo-cell { border-right: 1px solid var(--border) !important; }
  .logo-cell:nth-child(2n) { border-right: 0 !important; }
  .stats-band { grid-template-columns: 1fr; }
  .stats-band .stat { border-right: 0; border-bottom: 1px solid var(--border); }
  .stats-band .stat:last-child { border-bottom: 0; }
  .sss-diagram { grid-template-columns: 1fr; }
  .hw-specs { grid-template-columns: 1fr; }
  .cta-band { padding: 28px 20px; }
  .faq-item summary { grid-template-columns: 28px 1fr 20px; gap: 10px; }
  .faq-item summary .fq-q { font-size: 15px; }
  .faq-item .fq-a { padding-left: 38px; }
  .app-features { margin-top: 18px; }
  .badges { flex-direction: column; }
  .hero-visual .topbar { font-size: 9px; }
  .hero-visual .bottombar { font-size: 9px; }
  .term { font-size: 10px; padding: 14px; }
  .ascii { font-size: 8px; padding: 16px 12px; }
}

/* =========================================================
   Legal pages (Aviso legal, Privacidad, Cookies)
   ========================================================= */
.legal-page { padding: clamp(80px, 10vw, 140px) 0 80px; }
.legal-page .crumbs { display: flex; gap: 8px; align-items: center; font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); margin-bottom: 16px; }
.legal-page .crumbs a { color: var(--ink-dim); }
.legal-page .crumbs .sep { color: var(--ink-faint); }
.legal-page h1 { font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.04em; line-height: 1.02; margin-bottom: 28px; }
.legal-page h1 .punct { color: var(--accent); }
.legal-page .legal-prose { max-width: 760px; }
.legal-page .legal-prose h2 { font-size: 19px; font-weight: 500; letter-spacing: -0.015em; color: var(--ink); margin: 36px 0 12px; text-transform: uppercase; font-family: var(--font-mono); letter-spacing: 0.04em; font-size: 12px; color: var(--ink-faint); }
.legal-page .legal-prose h3 { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); margin: 24px 0 8px; }
.legal-page .legal-prose p, .legal-page .legal-prose li { color: var(--ink-dim); font-size: 15px; line-height: 1.7; }
.legal-page .legal-prose p { margin-bottom: 14px; }
.legal-page .legal-prose ul { padding-left: 22px; margin: 6px 0 16px; }
.legal-page .legal-prose li { margin-bottom: 6px; }
.legal-page .legal-prose a { color: var(--accent-2); word-break: break-all; }
[data-theme="light"] .legal-page .legal-prose a { color: var(--accent); }
.legal-page .legal-meta { display: grid; gap: 4px; padding: 18px 22px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); margin: 8px 0 16px; font-size: 14.5px; line-height: 1.65; color: var(--ink); font-family: var(--font-mono); }
.legal-page .legal-meta strong { font-weight: 500; color: var(--ink); }
