/* Base mobile safety */
html, body { overflow-x: hidden; }
img, video, iframe { max-width: 100%; height: auto; }

/* ============================================================
   Insignia Casa Creativa — Design System
   Dark-first, glassmorphism, accesible, alta conversión.
   ============================================================ */

:root {
  --bg: #07080a;
  --bg-alt: #0a0d0c;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f6f4;
  --muted: #97a89f;
  --muted-2: #6b7d74;
  --brand: #10b981;
  --brand-deep: #047857;
  --brand-2: #34d399;
  --brand-3: #a3e635;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #fb7185;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
  --max: 1180px;
  --nav-h: 76px;
  --input-h: 40px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light dark;
}

:root:has(> head > meta[name="color-scheme"][content="dark"]) { color-scheme: dark; }
:root:has(> head > meta[name="color-scheme"][content="light"]) { color-scheme: light; }

html[data-theme="light"] {
  --bg: #f5faf7;
  --bg-alt: #ffffff;
  --surface: rgba(6, 40, 28, 0.03);
  --surface-2: rgba(6, 40, 28, 0.06);
  --border: rgba(6, 40, 28, 0.1);
  --border-strong: rgba(6, 40, 28, 0.18);
  --text: #0d1f18;
  --muted: #4d6157;
  --muted-2: #7a8d83;
  --brand: #047857;
  --brand-deep: #065f46;
  --brand-2: #05875f;
  --brand-3: #4d7c0f;
  --shadow: 0 24px 60px -30px rgba(6, 60, 40, 0.28);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body:has(> .nav) { padding-top: var(--nav-h); }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 15% 0%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
    radial-gradient(50% 40% at 90% 10%, color-mix(in srgb, var(--brand-3) 9%, transparent), transparent 70%);
  z-index: 0;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.18; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.12rem; }
p { color: var(--muted); }

:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(18px) saturate(140%);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__inner {
  max-width: var(--max); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__logo { height: 34px; width: auto; display: block; }
.brand__logo--light { display: none; }
html[data-theme="light"] .brand__logo--dark { display: none; }
html[data-theme="light"] .brand__logo--light { display: block; }
.brand__mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  box-shadow: 0 0 24px color-mix(in srgb, var(--brand) 55%, transparent);
  transform: rotate(45deg);
}
.brand__text { font-weight: 700; font-size: 1.02rem; letter-spacing: -0.02em; }
.brand__text em { display: block; font-style: normal; font-size: .68rem; font-weight: 500; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }

.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  text-decoration: none; font-size: .9rem; color: var(--muted);
  padding: 8px 12px; border-radius: 8px; transition: .2s var(--ease);
}
.nav__links a:hover { color: var(--text); background: var(--surface-2); }

.nav__actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  display: grid; place-items: center; font-size: 15px;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-moon { display: none; }
html[data-theme="light"] .icon-sun { display: none; }
html[data-theme="light"] .icon-moon { display: inline; }

.burger { display: none; width: 40px; height: 38px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); cursor: pointer; }
.burger span { display: block; width: 16px; height: 1.6px; background: var(--text); margin: 4px auto; transition: .2s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 11px;
  font-size: .9rem; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), background .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff; box-shadow: 0 12px 30px -12px color-mix(in srgb, var(--brand) 80%, transparent);
}
.btn--primary:hover { box-shadow: 0 16px 38px -12px color-mix(in srgb, var(--brand) 95%, transparent); }
.btn--glass { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.btn--glass:hover { border-color: var(--border-strong); }
.btn--ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--wa { background: #1f8f52; color: #fff; }
.btn--wa:hover { background: #23a35d; }
.btn--lg { padding: 14px 26px; font-size: .98rem; }
.btn--block { width: 100%; }
.btn--access svg { flex: 0 0 auto; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 0; overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% -10% auto; height: 620px;
  background: radial-gradient(45% 55% at 30% 40%, color-mix(in srgb, var(--brand) 30%, transparent), transparent 70%),
              radial-gradient(40% 50% at 72% 30%, color-mix(in srgb, var(--brand-3) 14%, transparent), transparent 70%);
  filter: blur(10px); pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero__media {
  min-height: 320px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  color: #fff;
  overflow: hidden;
  position: relative;
}
.hero__media svg {
  width: min(200px, 56vw);
  height: min(200px, 56vw);
  display: block;
  filter: drop-shadow(0 12px 30px rgb(0 0 0 / 30%));
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 90% at 30% 10%, rgba(255,255,255,.18), transparent 60%);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 18px;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.grad {
  background: linear-gradient(100deg, var(--brand-2), var(--brand) 45%, var(--brand-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.08rem; max-width: 56ch; margin: 20px 0 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 25px 0 18px; }
.hero__meta span {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
  font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px;
}
.hero__meta span b { color: var(--text); font-weight: 700; }

.hero__proof {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--border);
}
.hero__proof > div { text-align: left; }
.hero__proof strong { display: block; font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; color: var(--brand-2); }
.hero__proof span { font-size: .76rem; color: var(--muted); display: block; margin-top: 2px; }

.glass {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hero__panel { padding: 22px; }
.panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.panel__title { font-size: .82rem; color: var(--muted); font-weight: 600; }
.chip { font-size: .68rem; padding: 3px 9px; border-radius: 999px; font-weight: 600; letter-spacing: .04em; }
.chip--live { background: rgba(52, 211, 153, .14); color: var(--ok); border: 1px solid rgba(52, 211, 153, .3); }

.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px;
}
.kpi span { display: block; font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.kpi strong { font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; }
.kpi em { font-style: normal; font-size: .7rem; font-weight: 600; }
.up { color: var(--ok); }
.down { color: var(--danger); }

.bars { display: flex; align-items: flex-end; gap: 7px; height: 76px; margin: 20px 0 6px; }
.bars i {
  flex: 1; height: var(--h); border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 95%, transparent), color-mix(in srgb, var(--brand-3) 35%, transparent));
  animation: grow .9s var(--ease) both;
}
@keyframes grow { from { height: 4%; opacity: .2; } }

.pipeline { display: grid; gap: 8px; margin-top: 12px; }
.pipe-row { display: grid; grid-template-columns: 84px 28px 1fr; align-items: center; gap: 8px; font-size: .76rem; color: var(--muted); }
.pipe-row b { color: var(--text); font-weight: 600; }
.pipe-row div { height: 5px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.pipe-row i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }

.logos { margin-top: 64px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg-alt) 60%, transparent); }
.logos__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; padding: 20px 24px; }
.logos__inner span { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted-2); }
.logos__inner b { font-size: .9rem; color: var(--muted); font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: 92px 0; position: relative; z-index: 1; }
.section--alt { background: color-mix(in srgb, var(--bg-alt) 70%, transparent); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sec-head { max-width: 720px; margin-bottom: 44px; }
.sec-sub { margin-top: 14px; font-size: 1rem; }

.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--6 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.feature { padding: 24px; transition: .25s var(--ease); }
.feature:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.feature__ico {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 25%, transparent), color-mix(in srgb, var(--brand-3) 15%, transparent));
  border: 1px solid var(--border-strong); font-size: 1.1rem; margin-bottom: 16px; color: var(--brand-2);
}
.feature h3 { margin-bottom: 8px; }
.feature p { font-size: .88rem; }

/* Alias para landing pages de soluciones (.feat / .feat__icon) */
.feat {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: .25s var(--ease);
}
.feat:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.feat__icon {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 25%, transparent), color-mix(in srgb, var(--brand-3) 15%, transparent));
  border: 1px solid var(--border-strong); font-size: 1.1rem; margin-bottom: 16px; color: var(--brand-2);
}
.feat h3 { margin-bottom: 8px; }
.feat p { font-size: .88rem; color: var(--muted); }

/* ---------- Marketplace ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filter {
  padding: 8px 15px; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); font-size: .84rem; font-weight: 500; font-family: inherit;
  transition: .2s var(--ease);
}
.filter:hover { color: var(--text); border-color: var(--border-strong); }
.filter.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }

.search {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 0 14px; margin-bottom: 28px; max-width: 460px;
}
.search span { color: var(--muted-2); font-size: 1.05rem; }
.search input {
  flex: 1; background: none; border: 0; outline: none;
  color: var(--text); font-family: inherit; font-size: .92rem; padding: 12px 0;
}
.search input::placeholder { color: var(--muted-2); }

.product { padding: 0; overflow: hidden; cursor: pointer; text-align: left; font-family: inherit; color: inherit; transition: .25s var(--ease); display: flex; flex-direction: column; }
.product:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: 0 28px 60px -30px color-mix(in srgb, var(--brand) 50%, transparent); }
.product__media {
  height: 160px; display: grid; place-items: center;
  font-size: 4rem; color: rgba(255, 255, 255, .9);
  position: relative; overflow: hidden;
}
.product__media svg { width: 56px; height: 56px; }
.product__media::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 90% at 30% 10%, rgba(255, 255, 255, .18), transparent 60%);
}
.product__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product__cat { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--brand-2); font-weight: 600; }
.product h3 { font-size: 1.02rem; }
.product p { font-size: .84rem; flex: 1; }
.product__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--border); }
.product__price { font-weight: 700; font-size: .95rem; }
.product__price small { display: block; font-size: .66rem; color: var(--muted-2); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.product__time { font-size: .74rem; color: var(--muted); }
.empty { text-align: center; padding: 40px; color: var(--muted); }

/* ---------- IA ---------- */
.ia { display: grid; grid-template-columns: 1fr .95fr; gap: 56px; align-items: center; }
.checks { display: grid; gap: 12px; margin: 24px 0 30px; }
.checks li { position: relative; padding-left: 28px; font-size: .92rem; color: var(--muted); }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(52, 211, 153, .14); color: var(--ok); font-size: .7rem; font-weight: 700;
}
.agents { display: grid; gap: 12px; }
.agent { display: flex; gap: 14px; padding: 16px 18px; align-items: flex-start; }
.agent span { color: var(--brand-2); font-size: 1.1rem; line-height: 1.4; }
.agent h4 { font-size: .95rem; margin-bottom: 3px; }
.agent p { font-size: .82rem; }

/* ---------- Benefits / Cases / Quotes / Blog ---------- */
.benefit { padding: 4px 0; border-top: 2px solid var(--border); padding-top: 18px; }
.benefit h3 { font-size: 1rem; margin-bottom: 8px; }
.benefit p { font-size: .87rem; }

.case { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.case__tag { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--brand-2); font-weight: 600; }
.case h3 { font-size: 1.24rem; letter-spacing: -.02em; }
.case ul { display: grid; gap: 6px; margin-top: 6px; }
.case li { font-size: .82rem; color: var(--muted); padding-left: 16px; position: relative; }
.case li::before { content: "·"; position: absolute; left: 4px; color: var(--brand); }

.quote { padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.quote p { font-size: .95rem; color: var(--text); }
.quote footer { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  font-size: .78rem; font-weight: 700;
}
.quote b { display: block; font-size: .86rem; }
.quote small { color: var(--muted-2); font-size: .74rem; }

.post { padding: 22px; text-decoration: none; display: flex; flex-direction: column; gap: 8px; transition: .25s var(--ease); }
.post:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.post__tag { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--brand-3); font-weight: 600; }
.post h3 { font-size: 1.02rem; }
.post p { font-size: .85rem; }
.post__more { font-size: .8rem; color: var(--brand-2); font-weight: 600; margin-top: auto; padding-top: 8px; }

/* ---------- Forms ---------- */
.quote-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; align-items: start; }
.form { display: grid; gap: 14px; padding: 26px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form label:not(.check):not(.chip-opt) { display: grid; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.form input, .form select, .form textarea {
  width: 100%; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 13px; font-family: inherit; font-size: .9rem;
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}
/* Opciones del desplegable con contraste en ambos temas */
.form select option,
.form select optgroup {
  background-color: var(--bg-alt);
  color: var(--text);
}
.form input:user-invalid { border-color: rgba(251, 113, 133, .6); }
.form fieldset { border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.form legend { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 0 8px; font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-opt {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 7px 13px; font-size: .8rem;
  cursor: pointer; color: var(--muted); user-select: none; transition: .2s var(--ease);
}
.chip-opt:hover { border-color: var(--border-strong); color: var(--text); }
.chip-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip-opt input[type] { width: 0; height: 0; padding: 0; border: 0; }
.chips .chip-opt span { font-size: .8rem; }
.chip-opt:has(input:checked) {
  background: color-mix(in srgb, var(--brand) 16%, transparent); border-color: color-mix(in srgb, var(--brand) 55%, transparent); color: var(--text);
}
.chip-opt:has(input:focus-visible) { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.chip-opt:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.chip-opt:has(input:disabled):hover { border-color: var(--border); color: var(--muted); }
.extras--ai .note { font-size: .74rem; color: var(--muted-2); }
.chip-opt b { font-weight: 600; font-size: .74rem; color: var(--brand-2); }

.check { display: flex; align-items: center; gap: 9px; font-size: .82rem; font-weight: 500; color: var(--muted); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--brand); flex: 0 0 auto; }
.consents { display: flex; flex-wrap: wrap; gap: 8px 20px; }

.form__error { color: var(--danger); font-size: .82rem; font-weight: 600; }
.form__ok { color: var(--ok); font-size: .82rem; font-weight: 600; }
.form__legal { font-size: .72rem; color: var(--muted-2); text-align: center; }

.summary { padding: 26px; position: sticky; top: 96px; }
.summary h3 { font-size: 1.05rem; margin-bottom: 4px; }
.summary__product { font-size: .8rem; color: var(--muted); margin-bottom: 16px; }
.summary__list { display: grid; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--border); font-size: .84rem; }
.summary__list div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.summary__list b { color: var(--text); font-weight: 600; }
.summary__totals { display: grid; gap: 8px; padding: 14px 0; }
.summary__totals div { display: flex; justify-content: space-between; font-size: .86rem; color: var(--muted); }
.summary__totals b { color: var(--text); font-weight: 600; }
.summary__total { border-top: 1px solid var(--border); padding-top: 12px; font-size: 1rem !important; }
.summary__total b { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
.summary__notes { font-size: .76rem; color: var(--muted-2); display: grid; gap: 4px; padding-bottom: 16px; }
.summary__notes b { color: var(--muted); }
.summary__actions { display: grid; gap: 8px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr .85fr; gap: 56px; align-items: start; }
.contact__list { display: grid; gap: 12px; margin: 26px 0 30px; }
.contact__list li { display: flex; gap: 12px; align-items: center; font-size: .92rem; color: var(--muted); }
.contact__list span { color: var(--brand-2); }
.contact__list a { text-decoration: none; color: var(--text); }
.contact__list a:hover { text-decoration: underline; }
.lead-card { padding: 26px; }
.lead-card h3 { margin-bottom: 16px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 56px 0 24px; position: relative; z-index: 1; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer__tag { font-size: .86rem; margin-top: 12px; max-width: 30ch; }
.footer h4 { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2); margin-bottom: 12px; }
.footer ul { display: grid; gap: 8px; }
.footer ul a { font-size: .86rem; color: var(--muted); text-decoration: none; }
.footer ul a:hover { color: var(--text); }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--border);
  font-size: .76rem; color: var(--muted-2);
}

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .7); backdrop-filter: blur(6px); }

/* ---------- Modal card (schedule) ---------- */
.modal__card {
  position: relative; width: min(640px, 100%); max-height: 90vh;
  display: flex; flex-direction: column;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 18px; box-shadow: 0 50px 100px -40px #000; overflow: hidden;
  z-index: 1;
}
.modal__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 18px 22px; border-bottom: 1px solid var(--border);
}
.modal__head h2 { font-size: 17px; letter-spacing: -.02em; }
.modal__eyebrow { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--brand-2); font-weight: 700; margin-bottom: 3px; }
.icon-x {
  background: transparent; border: 1px solid var(--border); color: var(--muted);
  width: 32px; height: 32px; border-radius: 9px; cursor: pointer; font-size: 14px; line-height: 1;
}
.icon-x:hover { color: var(--text); border-color: var(--brand); }
.modal__body { padding: 20px 22px; overflow: auto; display: grid; gap: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; }
.field span { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.field input, .field select, .field textarea {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px; color: var(--text); font-size: 12.5px; outline: none; width: 100%; font-family: inherit;
}
.field textarea { resize: vertical; }
.field--full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.err { color: var(--danger); font-size: 12px; font-weight: 600; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.modal__panel {
  position: relative; width: min(860px, 100%); max-height: 88vh; overflow-y: auto;
  background: var(--bg-alt); border: 1px solid var(--border-strong);
  border-radius: 20px; animation: pop .28s var(--ease) both;
}
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .18);
  color: #fff; font-size: .8rem;
}
.modal__media { height: 160px; display: grid; place-items: center; font-size: 4rem; color: #fff; position: relative; overflow: hidden; }
.modal__media svg { width: 56px; height: 56px; }
.modal__media::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 90% at 30% 10%, rgba(255, 255, 255, .18), transparent 60%);
}
.modal__body { padding: 24px 28px 28px; }
.modal__cat { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--brand-2); font-weight: 600; margin-bottom: 6px; }
.modal__body h2 { font-size: 1.6rem; margin-bottom: 10px; }
.modal__desc { font-size: .92rem; margin-bottom: 20px; }
.modal__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 18px; }
.modal__cols h4 { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); margin-bottom: 8px; }
.modal__cols ul { display: grid; gap: 6px; }
.modal__cols li { font-size: .85rem; color: var(--muted); padding-left: 15px; position: relative; }
.modal__cols li::before { content: "›"; position: absolute; left: 2px; color: var(--brand); }
.modal__meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px; margin-bottom: 20px;
}
.modal__meta span { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); margin-bottom: 3px; }
.modal__meta b { font-size: .92rem; }
.modal__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.share-opt { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; color: var(--text); font-size: 12px; text-decoration: none; background: none; border: 0; cursor: pointer; }
.share-opt:hover { background: var(--surface-2); }
.product-field { display: flex; flex-direction: column; gap: 6px; }
.product-field .product-label { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.product-label small { font-size: 10px; font-weight: 500; color: var(--muted-2); letter-spacing: 0; }
.product-button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; height: var(--input-h, 40px); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; color: var(--text); font-size: .9rem; line-height: normal; font-family: inherit; cursor: pointer; text-align: left; }
.product-button:hover { border-color: var(--brand); }
.product-button .count { background: rgba(16,185,129,.14); color: var(--brand-2); border-radius: 999px; padding: 2px 8px; font-size: 11px; font-weight: 700; }
#productButtonLabel { flex: 1; min-width: 0; font-size: 12px; }
.product-list { display: grid; gap: 6px; max-height: 340px; overflow: auto; }
.product-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer; }
.product-item:hover { border-color: var(--brand); }
.product-item input { width: 16px; height: 16px; accent-color: var(--brand); }
.product-item__name { flex: 1; font-size: 13px; }
.product-item__price { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px);
  background: var(--text); color: var(--bg); padding: 12px 20px; border-radius: 12px;
  font-size: .86rem; font-weight: 600; z-index: 400;
  opacity: 0; pointer-events: none; transition: .25s var(--ease);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid, .ia, .contact, .quote-grid { grid-template-columns: 1fr; }
  .grid--6 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .summary { position: static; }
  .hero__proof { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1100px) {
  :root { --nav-h: 64px; }
  .nav__inner { flex-wrap: wrap; gap: 10px; }
  .nav__links { display: none; }
  .burger { display: block; }
  .nav__links.is-open {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; padding: 14px 20px 20px;
    background: var(--bg-alt); border-bottom: 1px solid var(--border); gap: 2px;
  }
  .nav__actions { margin-left: auto; }
  .nav__actions .btn--ghost:not(.btn--access) { display: none; }
  .nav__actions .btn--access { display: inline-flex; width: 40px; height: 38px; padding: 0; }
  .nav__actions .btn--access .btn__label { display: none; }
  .btn--access svg { flex: 0 0 auto; }
  .brand__text { display: none; }
}

@media (max-width: 680px) {
  :root { --nav-h: 60px; }
  .section { padding: 64px 0; }
  .grid--6, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .grid--3:has(> article.feat) { grid-template-columns: repeat(2, 1fr); }
  .form__row { grid-template-columns: 1fr; }
  .modal__cols, .modal__meta { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 48px; }
  .hero__proof { grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; padding-top: 18px; }
  .hero__proof strong { font-size: 1.15rem; }
  .hero__proof span { font-size: .68rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .nav__actions .btn--primary { display: none; }
  .nav__actions .appearance { display: none; }
  .nav__inner { padding: 10px 16px; gap: 8px; }
  .form, .summary, .lead-card { padding: 20px; }
  .modal__body { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .nav, .hero__panel, .modal, .toast, .footer, .btn { display: none !important; }
  body::before { display: none; }
  body { background: #fff; color: #000; }
}
