/* ==========================================================================
   Malla ERP Construcción — Landing de conversión
   Sistema de diseño basado en el Manual de Marca Malla
   Tema claro · mobile-first · sin dependencias externas
   ========================================================================== */

/* ---------- Fuentes de marca: Silka ---------- */
@font-face {
  font-family: "Silka";
  src: url("../fonts/silka-light-webfont.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Silka";
  src: url("../fonts/silka-regular-webfont.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Silka";
  src: url("../fonts/silka-medium-webfont.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Silka";
  src: url("../fonts/silka-semibold-webfont.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Silka";
  src: url("../fonts/silka-bold-webfont.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Tokens de diseño ---------- */
:root {
  /* Colores de marca (extraídos del manual + SVGs) */
  --navy: #121121;          /* primario oscuro */
  --navy-2: #1c1b30;
  --accent: #e8540c;          /* acento vertical CONSTRUCCIÓN (naranja). Corp. azul = #0061fe */
  --accent-600: #c2410c;      /* hover (naranja oscuro) */
  --accent-400: #fb8a3c;      /* naranja claro para fondos oscuros */
  --accent-100: #fff0e6;      /* tinte naranja muy claro */
  --mist: #f5f9ff;          /* off-white azulado */
  --mint: #cffcef;          /* complementario */
  --cream: #fff5e4;         /* complementario */
  --gray-bg: #f7f5f2;       /* complementario claro */

  --bg: #ffffff;
  --ink: #121121;           /* texto principal */
  --muted: #56566a;         /* texto secundario */
  --line: #e7e9f1;          /* bordes */
  --ok: #16a34a;
  --warn: #d97706;

  /* Tipografía */
  --font: "Silka", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --h1: clamp(2rem, 5.2vw, 3.3rem);
  --h2: clamp(1.6rem, 3.6vw, 2.4rem);
  --h3: clamp(1.2rem, 2.2vw, 1.5rem);
  --lead: clamp(1.05rem, 1.8vw, 1.25rem);

  /* Layout */
  --maxw: 1140px;
  --pad: clamp(1.1rem, 4vw, 2rem);
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(18,17,33,.06), 0 4px 14px rgba(18,17,33,.05);
  --shadow: 0 10px 30px rgba(18,17,33,.10);
  --shadow-blue: 0 12px 30px rgba(232,84,12,.30);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--accent-400); outline-offset: 2px; border-radius: 6px; }

/* ---------- Utilidades ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.eyebrow {
  display: inline-block; font-weight: 600; font-size: .8rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .8rem;
}
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: var(--lead); color: var(--muted); }
.icon { width: 1.4em; height: 1.4em; stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem; justify-content: center;
  font-family: var(--font); font-weight: 600; font-size: 1.02rem;
  padding: .95rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-align: center; line-height: 1.2;
}
.btn-primary { background: var(--accent); color: var(--navy); box-shadow: var(--shadow-blue); }
.btn-primary:hover { background: var(--accent-600); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-wa { background: #25d366; color: #0b3d1e; }
.btn-wa:hover { background: #1fbe5a; transform: translateY(-2px); }
.btn-lg { padding: 1.1rem 2rem; font-size: 1.1rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: .8rem; }
.brand img { height: 30px; width: auto; }
.header-cta { display: flex; align-items: center; gap: .7rem; }
.header-cta .btn { padding: .6rem 1.15rem; font-size: .92rem; }
.header-phone { display: none; font-weight: 600; color: var(--ink); white-space: nowrap; }
@media (min-width: 720px) { .header-phone { display: inline-flex; align-items: center; gap: .4rem; } }

/* ---------- Hero ---------- */
.hero { background:
    radial-gradient(1200px 500px at 80% -10%, var(--accent-100), transparent 60%),
    linear-gradient(180deg, var(--mist), #fff 70%);
  overflow: hidden;
}
.hero .wrap { display: grid; gap: 2.5rem; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
@media (min-width: 940px) { .hero .wrap { grid-template-columns: 1.05fr .95fr; align-items: center; } }
.hero h1 { margin-bottom: .4em; }
.hero h1 .hl { color: var(--accent); }
.hero .sub { font-size: var(--lead); color: var(--muted); max-width: 38ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1rem; }
.hero-trust { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--muted); }
.hero-trust svg { color: var(--accent); }
.hero-media { position: relative; }
.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 1.1rem; transform: rotate(-1deg);
}
.hero-card .bar { height: 10px; border-radius: 6px; background: var(--gray-bg); margin: .5rem 0; }
.hero-mock-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.hero-mock-head b { font-size: .95rem; }
.kpi-row { display: grid; grid-template-columns: repeat(3,1fr); gap: .6rem; margin: .9rem 0; }
.kpi { background: var(--mist); border-radius: 12px; padding: .7rem; text-align: center; }
.kpi .n { font-weight: 700; font-size: 1.15rem; color: var(--navy); }
.kpi .l { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.kpi.good .n { color: var(--ok); }
.kpi.bad .n { color: #dc2626; }
.hero-badge {
  position: absolute; bottom: -14px; right: 10px; background: var(--navy); color: #fff;
  font-size: .78rem; font-weight: 600; padding: .5rem .85rem; border-radius: 999px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: .4rem;
}
.hero-badge svg { color: var(--mint); }

/* ---------- Barra de autoridad ---------- */
.authority { background: #fff; border-block: 1px solid var(--line); }
.authority .wrap { padding-block: 1.6rem; }
.authority p { text-align: center; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 1.1rem; }
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.4rem 2.2rem; }
.logos img { height: 58px; width: auto; filter: grayscale(1); opacity: .8;
  transition: filter .2s, opacity .2s, transform .2s; }
.logos img:hover { filter: grayscale(0); opacity: 1; transform: scale(1.05); }

/* ---------- Problema (dolor) ---------- */
.problem { background: var(--navy); color: var(--mist); }
.problem h2 { color: #fff; }
.problem .grid { display: grid; gap: 1rem; margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.pain {
  background: var(--navy-2); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius);
  padding: 1.3rem; display: flex; gap: .9rem; align-items: flex-start;
}
.pain svg { color: #ff6b6b; margin-top: 2px; }
.pain b { color: #fff; display: block; margin-bottom: .15rem; }
.pain span { color: #b9b9cc; font-size: .95rem; }
.problem .closer { text-align: center; font-size: var(--lead); margin-top: 2rem; color: #fff; font-weight: 600; }
.problem .closer .hl { color: var(--accent-400); }

/* ---------- Solución ---------- */
.solution .grid { display: grid; gap: 2.5rem; align-items: center; margin-top: 1.5rem; }
@media (min-width: 920px) { .solution .grid { grid-template-columns: 1fr 1fr; } }
.sol-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.sol-list li { display: flex; gap: .8rem; align-items: flex-start; }
.sol-list .ic { background: var(--mint); color: var(--navy); border-radius: 10px; padding: .45rem; flex: none; }
.sol-list .ic svg { width: 1.2em; height: 1.2em; }
.sol-list b { display: block; }
.sol-list span { color: var(--muted); font-size: .95rem; }
.sol-shot { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 1rem; }
.sol-shot .ph { background: linear-gradient(135deg, var(--mist), var(--accent-100));
  border-radius: 14px; aspect-ratio: 4/3; display: grid; place-items: center; color: var(--accent);
  text-align: center; padding: 1rem; }
.sol-shot .ph small { display: block; color: var(--muted); margin-top: .4rem; font-size: .8rem; }
.dash-mock { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem; box-shadow: var(--shadow-sm); }
.dash-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; font-size: .95rem; }
.dash-live { color: var(--ok); font-size: .76rem; font-weight: 600; }
.dash-row { padding: .65rem 0; border-top: 1px solid var(--line); }
.dash-row:first-of-type { border-top: 0; }
.dr-top { display: flex; justify-content: space-between; font-weight: 600; font-size: .92rem; }
.dr-top .m.good { color: var(--ok); } .dr-top .m.warn { color: var(--warn); }
.dr-bar { height: 8px; background: var(--gray-bg); border-radius: 6px; margin: .45rem 0 .3rem; overflow: hidden; }
.dr-bar i { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.dr-bar i.w { background: var(--warn); }
.dr-sub { font-size: .76rem; color: var(--muted); }
.sol-caption { text-align: center; font-size: .78rem; color: var(--muted); margin-top: .7rem; }

/* ---------- Cómo funciona (3 pasos) ---------- */
.how { background: var(--gray-bg); }
.steps { display: grid; gap: 1.2rem; margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; }
.step { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm);
  position: relative; }
.step .num { counter-increment: step; width: 2.2rem; height: 2.2rem; border-radius: 999px;
  background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 1rem; }
.step .num::before { content: counter(step); }
.step b { display: block; margin-bottom: .3rem; font-size: 1.1rem; }
.step span { color: var(--muted); font-size: .95rem; }
.how .note { text-align: center; margin-top: 1.8rem; color: var(--muted); }

/* ---------- Comparativa ---------- */
.compare { overflow-x: auto; }
.ctable { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 2rem; min-width: 620px; }
.ctable th, .ctable td { padding: .95rem 1rem; text-align: center; border-bottom: 1px solid var(--line); }
.ctable th:first-child, .ctable td:first-child { text-align: left; font-weight: 500; }
.ctable thead th { font-size: .92rem; color: var(--muted); font-weight: 600; }
.ctable thead th.malla { color: var(--accent); }
.ctable .malla { background: var(--mist); }
.ctable thead .malla { border-radius: 14px 14px 0 0; font-weight: 700; }
.ctable tbody tr:last-child td { border-bottom: none; }
.ctable .yes { color: var(--ok); }
.ctable .no { color: #cbcbd6; }
.ctable .yes svg, .ctable .no svg { margin-inline: auto; }

/* ---------- Casos / resultados ---------- */
.cases .grid { display: grid; gap: 1.2rem; margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.case { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; background: #fff; }
.case .tag { font-size: .75rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.case .big { font-size: 1.9rem; font-weight: 700; color: var(--navy); margin: .3rem 0 .1rem; }
.case p { color: var(--muted); font-size: .95rem; margin: 0; }
.testi {
  margin-top: 2rem; background: var(--navy); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.6rem); display: grid; gap: 1.2rem;
}
@media (min-width: 720px) { .testi { grid-template-columns: auto 1fr; align-items: center; } }
.testi .ph-logo { background: #fff; border-radius: 14px; padding: .5rem; width: 130px; }
.testi blockquote { font-size: var(--lead); margin: 0; font-weight: 500; }
.testi cite { display: block; margin-top: .9rem; font-style: normal; color: var(--mint); font-weight: 600; }
.testi cite span { display: block; color: #b9b9cc; font-weight: 400; font-size: .9rem; }

/* ---------- Garantías ---------- */
.guarantees { background: var(--mist); }
.gcards { display: grid; gap: 1rem; margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.gcard { background: #fff; border-radius: var(--radius); padding: 1.4rem; border: 1px solid var(--line); }
.gcard .ic { width: 2.6rem; height: 2.6rem; border-radius: 12px; background: var(--accent-100); color: var(--accent);
  display: grid; place-items: center; margin-bottom: .9rem; }
.gcard b { display: block; margin-bottom: .3rem; }
.gcard span { color: var(--muted); font-size: .92rem; }
.guarantees .seal { text-align: center; margin-top: 1.6rem; font-weight: 600; color: var(--navy); }

/* ---------- Filtro / formulario ---------- */
.filter { background: var(--navy);
  background-image: radial-gradient(900px 400px at 15% 0%, rgba(0,97,254,.25), transparent 60%); color: #fff; }
.filter h2 { color: #fff; }
.filter .intro { color: #c4c4d6; max-width: 56ch; margin-inline: auto; }
.form-card {
  background: #fff; color: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  max-width: 620px; margin: 2rem auto 0; padding: clamp(1.4rem, 4vw, 2.2rem);
}
.progress { height: 7px; background: var(--gray-bg); border-radius: 999px; overflow: hidden; margin-bottom: 1.4rem; }
.progress > i { display: block; height: 100%; width: 16%; background: var(--accent); border-radius: 999px;
  transition: width .35s ease; }
.fstep { display: none; animation: fade .3s ease; }
.fstep.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.fstep .q { font-size: 1.2rem; font-weight: 600; margin-bottom: .35rem; }
.fstep .hint { color: var(--muted); font-size: .9rem; margin-bottom: 1.1rem; }
.opts { display: grid; gap: .65rem; }
.opt {
  display: flex; align-items: center; gap: .7rem; border: 2px solid var(--line); border-radius: 14px;
  padding: .9rem 1.1rem; cursor: pointer; font-weight: 500; transition: .15s; background: #fff;
}
.opt:hover { border-color: var(--accent-400); background: var(--mist); }
.opt.sel { border-color: var(--accent); background: var(--accent-100); }
.opt input { accent-color: var(--accent); width: 1.1rem; height: 1.1rem; }
.field { margin-bottom: .9rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.field input {
  width: 100%; padding: .85rem 1rem; border: 2px solid var(--line); border-radius: 12px;
  font-family: var(--font); font-size: 1rem; color: var(--ink);
}
.field input:focus { border-color: var(--accent); outline: none; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; color: var(--muted); margin: 1rem 0; }
.consent input { margin-top: .25rem; accent-color: var(--accent); }
.fnav { display: flex; gap: .8rem; justify-content: space-between; margin-top: 1.4rem; }
.fnav .btn { flex: 1; }
.fnav .back { flex: 0 0 auto; }
.err { color: #dc2626; font-size: .85rem; margin-top: .5rem; display: none; }
.err.show { display: block; }

/* Resultado: agenda / nutrición */
.result { text-align: center; }
.result .ic-ok { width: 3.4rem; height: 3.4rem; border-radius: 999px; background: var(--mint); color: var(--navy);
  display: grid; place-items: center; margin: 0 auto 1rem; }
.result h3 { font-size: 1.5rem; }

/* ---------- FAQ ---------- */
.faq .acc { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.2rem 1.1rem 0; font-weight: 600;
  position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 1.1rem; max-width: 70ch; }

/* ---------- CTA final ---------- */
.final { background: linear-gradient(135deg, var(--accent), #b23c08); color: #fff; text-align: center; }
.final h2 { color: #fff; }
.final p { color: #ffe6d6; max-width: 48ch; margin-inline: auto; }
.final .btn-primary { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.final .btn-primary:hover { background: var(--mist); }
.final .cta-row { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; margin-top: 1.6rem; }
.final .reassure { margin-top: 1rem; font-size: .9rem; color: #ffe0cc; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #9c9cb3; font-size: .9rem; }
.site-footer .wrap { padding-block: 2.5rem; display: grid; gap: 1.5rem; }
@media (min-width: 720px) { .site-footer .wrap { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.site-footer img { height: 28px; margin-bottom: .8rem; }
.site-footer a { color: var(--mist); }
.site-footer .links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 1rem; padding-top: 1rem;
  font-size: .8rem; }

/* ---------- Sticky CTA móvil ---------- */
.mobile-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; display: none;
  gap: .6rem; padding: .7rem var(--pad); background: rgba(255,255,255,.96);
  border-top: 1px solid var(--line); backdrop-filter: blur(8px);
}
.mobile-cta .btn { flex: 1; padding: .8rem; font-size: .95rem; }
@media (max-width: 720px) { .mobile-cta { display: flex; } body { padding-bottom: 76px; } }

/* ---------- WhatsApp flotante (desktop) ---------- */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 55; background: #25d366; color: #fff;
  width: 56px; height: 56px; border-radius: 999px; display: grid; place-items: center;
  box-shadow: var(--shadow); transition: transform .15s;
}
.wa-float:hover { transform: scale(1.08); }
@media (max-width: 720px) { .wa-float { display: none; } }

/* ---------- Accesibilidad / motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0; }

/* ---------- Banner de consentimiento (cookies / Consent Mode v2) ---------- */
.cookie-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 80; display: none;
  background: var(--navy); color: #e7e7f0; padding: 1rem var(--pad);
  gap: 1rem 1.4rem; align-items: center; justify-content: center; flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0,0,0,.25);
}
.cookie-bar.show { display: flex; }
.cookie-bar p { margin: 0; font-size: .88rem; max-width: 62ch; }
.cookie-bar a { color: var(--accent-400); }
.cookie-bar .actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.cookie-bar .btn { padding: .6rem 1.2rem; font-size: .9rem; }
.btn-mini-ghost { background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; }
.btn-mini-ghost:hover { border-color: #fff; }

/* ---------- Calculadora de rentabilidad por obra (lead magnet) ---------- */
.calc-hero { background: linear-gradient(180deg, var(--mist), #fff 80%); }
.calc-grid { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 880px) { .calc-grid { grid-template-columns: 1fr 1fr; } }
.calc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: clamp(1.3rem, 4vw, 2rem); }
.calc-card h2 { font-size: 1.3rem; }
.calc-field { margin-bottom: 1.15rem; }
.calc-field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .4rem; }
.calc-field .sub { font-weight: 400; color: var(--muted); font-size: .82rem; }
.calc-input { display: flex; align-items: center; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; }
.calc-input:focus-within { border-color: var(--accent); }
.calc-input .pre { padding: .75rem .85rem; background: var(--gray-bg); color: var(--muted); font-weight: 600; font-size: .9rem; }
.calc-input input { border: 0; padding: .78rem .9rem; font-family: var(--font); font-size: 1.05rem; width: 100%; color: var(--ink); }
.calc-input input:focus { outline: none; }
.range-row { display: flex; align-items: center; gap: 1rem; }
.range-row input[type=range] { flex: 1; accent-color: var(--accent); }
.range-val { font-weight: 700; color: var(--accent); min-width: 3.4rem; text-align: right; }
.res { display: grid; gap: 0; }
.res-item { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .85rem 0; border-bottom: 1px solid var(--line); }
.res-item .k { color: var(--muted); font-size: .92rem; }
.res-item .v { font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
.res-item .v.pos { color: var(--ok); } .res-item .v.neg { color: #dc2626; }
.estado { margin-top: 1.2rem; border-radius: 14px; padding: 1rem 1.2rem; font-weight: 600;
  display: flex; gap: .7rem; align-items: flex-start; }
.estado svg { flex: none; margin-top: 2px; }
.estado.ok { background: #e7f8ee; color: #0f7a3d; }
.estado.warn { background: #fff3e0; color: #b45309; }
.estado.bad { background: #fdeaea; color: #c01c1c; }
.fuga-box { text-align: center; margin-top: 1.2rem; padding: 1.2rem; background: var(--navy); color: #fff; border-radius: 16px; }
.fuga-box .fuga { font-size: clamp(1.8rem, 6vw, 2.6rem); font-weight: 700; color: #ff8a8a; }
.fuga-box .l { font-size: .85rem; color: #b9b9cc; }
.calc-ph { text-align: center; color: var(--muted); padding: 2rem 1rem; }
.calc-cta { text-align: center; margin-top: 2.5rem; background: var(--accent-100); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.4rem); }
.disc { font-size: .8rem; color: var(--muted); margin-top: 1rem; }

/* ---------- Video testimonial (facade click-to-play) ---------- */
.testi-video { margin-top: 1.2rem; max-width: 720px; margin-inline: auto; }
.video-facade { display: block; width: 100%; border: 0; padding: 0; cursor: pointer;
  position: relative; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .2s; }
.video-facade:hover img { opacity: 1; }
.video-facade .play { position: absolute; inset: 0; margin: auto; width: 70px; height: 70px;
  background: var(--accent); color: var(--navy); border-radius: 999px; display: grid; place-items: center;
  box-shadow: var(--shadow); transition: transform .15s; }
.video-facade:hover .play { transform: scale(1.08); }
.video-facade .vlabel { position: absolute; left: 0; right: 0; bottom: 12px; color: #fff; font-weight: 600;
  font-size: .9rem; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.testi-video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); display: block; }
