    .npr-calc {
      /* ===========================================================
         COLORS DE MARCA — Novus Real Estate
         Substitueix aquests dos valors si canvia la identitat visual.
         =========================================================== */
      --ink: #262f2e;
      --paper: #f7f8f8;
      --paper-2: #edf1f1;
      --line: #dde3e2;
      --brass: #03989E;        /* color primari Novus (abans "brass") */
      --brass-dark: #027077;   /* variant fosca per a hovers */
      --gain: #0a7a53;
      --gain-bg: #e4f3ec;
      --loss: #b5352e;
      --loss-bg: #f7e6e4;
      --warn: #8a6d1f;
      --warn-bg: #f1ead2;
      --gray: #545454;         /* color secundari Novus */

      all: initial;
      display: block;
      font-family: 'Inter', -apple-system, sans-serif;
      color: var(--ink);
      background: var(--paper);
      border: 1px solid var(--line);
      max-width: 780px;
      margin: 0 auto;
      line-height: 1.45;
      -webkit-font-smoothing: antialiased;
    }
    .npr-calc *, .npr-calc *::before, .npr-calc *::after { box-sizing: border-box; font-family: inherit; }

    .npr-head {
      padding: 28px 32px 22px;
      border-bottom: 1px solid var(--line);
      position: relative;
    }
    .npr-eyebrow {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 11px;
      letter-spacing: .12em;
      text-transform: uppercase;
      color: var(--brass);
      margin: 0 0 8px;
    }
    .npr-title {
      font-family: 'Fraunces', serif;
      font-optical-sizing: auto;
      font-weight: 600;
      font-size: 26px;
      margin: 0;
      letter-spacing: -0.01em;
    }
    .npr-sub {
      font-size: 14px;
      color: #5b6664;
      margin: 6px 0 0;
      max-width: 46ch;
    }

    .npr-body { padding: 26px 32px 32px; }

    .npr-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 18px 20px;
    }
    @media (max-width: 560px) { .npr-grid { grid-template-columns: 1fr; } }

    .npr-field { display: flex; flex-direction: column; gap: 6px; }
    .npr-field label {
      font-size: 12.5px;
      font-weight: 600;
      color: #445451;
      display: flex;
      justify-content: space-between;
      align-items: baseline;
    }
    .npr-field label span.npr-hint {
      font-weight: 400;
      color: #8b9491;
      font-size: 11px;
    }
    .npr-input-wrap { position: relative; }
    .npr-input-wrap .npr-unit {
      position: absolute;
      right: 12px; top: 50%; transform: translateY(-50%);
      font-size: 13px; color: #8b9491;
      font-family: 'IBM Plex Mono', monospace;
      pointer-events: none;
    }
    .npr-calc input[type=number] {
      width: 100%;
      padding: 10px 40px 10px 12px;
      border: 1px solid var(--line);
      background: #fff;
      border-radius: 3px;
      font-size: 15px;
      font-family: 'IBM Plex Mono', monospace;
      color: var(--ink);
      transition: border-color .15s, box-shadow .15s;
    }
    .npr-calc input[type=number]:focus {
      outline: none;
      border-color: var(--brass);
      box-shadow: 0 0 0 3px rgba(150,115,60,0.15);
    }
    .npr-calc input[type=number]::-webkit-outer-spin-button,
    .npr-calc input[type=number]::-webkit-inner-spin-button { opacity: 0.4; }

    .npr-divider {
      display: flex;
      align-items: center;
      gap: 10px;
      margin: 24px 0 16px;
    }
    .npr-divider::before, .npr-divider::after {
      content: ""; flex: 1; height: 1px; background: var(--line);
    }
    .npr-divider span {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
      color: #8b9491;
    }

    .npr-toggle-row {
      display: flex; justify-content: space-between; align-items: center;
      margin-top: 22px; cursor: pointer; user-select: none;
    }
    .npr-toggle-row .npr-toggle-label {
      font-size: 12.5px; font-weight: 600; color: #445451;
      display: flex; align-items: center; gap: 6px;
    }
    .npr-caret { transition: transform .2s; font-size: 10px; color: var(--brass); }
    .npr-caret.open { transform: rotate(90deg); }
    .npr-advanced {
      display: none;
      grid-template-columns: 1fr 1fr;
      gap: 18px 20px;
      margin-top: 16px;
      padding-top: 16px;
      border-top: 1px dashed var(--line);
    }
    .npr-advanced.open { display: grid; }
    @media (max-width: 560px) { .npr-advanced { grid-template-columns: 1fr; } }

    /* ---- Selección de elementos a reformar (tarjetas) ----
       El usuario NO introduce precios: solo marca qué quiere reformar
       y el coste se calcula automáticamente (ver constantes COSTOS en el JS). */
    .npr-reform-label {
      font-size: 12.5px; font-weight: 600; color: #445451;
      margin: 36px 0 12px;
    }
    .npr-reform-cards {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 8px;
    }
    @media (max-width: 640px) { .npr-reform-cards { grid-template-columns: repeat(3, 1fr); } }
    .npr-reform-cards--3 { grid-template-columns: repeat(3, 1fr); }
    .npr-reform-cards--4 { grid-template-columns: repeat(4, 1fr); }
    @media (max-width: 640px) {
      .npr-reform-cards--3 { grid-template-columns: repeat(3, 1fr); }
      .npr-reform-cards--4 { grid-template-columns: repeat(2, 1fr); }
    }

    /* ---- Cifra final del presupuesto ---- */
    .npr-budget-figure { text-align: center; margin-bottom: 22px; }
    .npr-budget-label {
      font-size: 11.5px; color: #8b9491; text-transform: uppercase;
      letter-spacing: .05em; margin-bottom: 6px;
    }
    .npr-budget-amount {
      font-family: 'Fraunces', serif; font-weight: 600;
      font-size: 40px; color: var(--brass);
    }
    .npr-budget-amount .npr-iva-tag {
      font-family: 'Fraunces', serif; font-weight: 600;
      font-size: 30px; color: var(--brass-dark);
      margin-left: 10px;
    }
    .npr-reform-card {
      position: relative;
      border: 1px solid var(--line);
      border-radius: 4px;
      background: #fff;
      padding: 12px 8px 10px;
      text-align: center;
      cursor: pointer;
      user-select: none;
      transition: border-color .15s, background .15s;
    }
    .npr-reform-card:hover { border-color: #b9d8d9; }
    .npr-reform-card.active {
      border-color: var(--brass);
      background: var(--paper-2);
    }
    .npr-reform-card .npr-rc-icon { display: block; margin-bottom: 7px; color: var(--gray); }
    .npr-reform-card .npr-rc-icon svg { width: 21px; height: 21px; display: block; margin: 0 auto; }
    .npr-reform-card.active .npr-rc-icon { color: var(--brass); }
    .npr-reform-card .npr-rc-label { font-size: 11.5px; font-weight: 600; color: var(--ink); }
    .npr-reform-card .npr-rc-check {
      position: absolute; top: 6px; right: 6px;
      width: 14px; height: 14px; border-radius: 50%;
      border: 1px solid #c7d1d0; background: #fff;
      font-size: 9px; color: transparent;
      display: flex; align-items: center; justify-content: center;
    }
    .npr-reform-card.active .npr-rc-check {
      background: var(--brass); border-color: var(--brass); color: #fff;
    }
    .npr-item-total {
      font-size: 12px;
      font-family: 'IBM Plex Mono', monospace;
      color: #5b6664;
      text-align: right;
      margin-top: 10px;
      padding-top: 8px;
      border-top: 1px solid var(--line);
      margin-top: 2px;
    }

    .npr-foot-note {
      font-size: 11.5px; color: #8b9491; margin-top: 16px; line-height: 1.5;
    }
    .npr-zone-note {
      font-size: 11.5px; margin: 6px 2px 0; line-height: 1.4; min-height: 15px;
    }
    .npr-zone-note.in-zone { color: var(--gain); }
    .npr-zone-note.out-zone { color: var(--warn); }

    /* ---- Botons ---- */
    .npr-cta-row { margin-top: 26px; display: flex; justify-content: flex-end; gap: 10px; }
    .npr-btn-primary {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
      background: var(--brass); color: #fff; border: none;
      padding: 13px 24px; border-radius: 3px; cursor: pointer;
      transition: background .15s;
    }
    .npr-btn-primary:hover { background: var(--brass-dark); }
    .npr-btn-primary:disabled { background: #b7d8d9; cursor: not-allowed; }
    .npr-btn-secondary {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
      background: none; color: #5b6664; border: 1px solid var(--line);
      padding: 13px 20px; border-radius: 3px; cursor: pointer;
    }
    .npr-btn-secondary:hover { color: var(--ink); border-color: #b7bdb7; }

    /* ---- Pantalla intermedia: captación de lead ---- */
    .npr-gate { text-align: center; padding: 6px 4px 4px; }
    .npr-gate-icon {
      width: 52px; height: 52px; border-radius: 50%;
      background: var(--paper-2); color: var(--brass);
      display: flex; align-items: center; justify-content: center;
      font-size: 22px; margin: 0 auto 16px;
    }
    .npr-gate h4 {
      font-family: 'Fraunces', serif; font-weight: 600; font-size: 21px;
      margin: 0 0 8px; letter-spacing: -0.01em;
    }
    .npr-gate > p { font-size: 13.5px; color: #5b6664; max-width: 42ch; margin: 0 auto 24px; line-height: 1.55; }
    .npr-gate-form { text-align: left; max-width: 380px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
    .npr-check-row { display: flex; align-items: flex-start; gap: 9px; margin-top: 4px; text-align: left; }
    .npr-check-row input { margin-top: 3px; width: 15px; height: 15px; accent-color: var(--brass); flex-shrink: 0; }
    .npr-check-row label { font-size: 11.5px; color: #5b6664; line-height: 1.5; }
    .npr-check-row a { color: var(--brass); text-decoration: underline; }
    .npr-error-msg {
      font-size: 12.5px; color: var(--loss); background: var(--loss-bg);
      padding: 9px 12px; border-radius: 3px; margin-top: 4px; display: none;
    }
    .npr-error-msg.show { display: block; }
    .npr-gate-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }

    /* honeypot anti-spam, invisible para personas */
    .npr-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

    #npr-resultBanner { display: none; margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); text-align: center; }

    /* ---- Confirmación + veredicto (tras enviar el formulario) ---- */
    .npr-confirm-line {
      font-size: 14px; color: #445451; text-align: center;
      margin: 0 0 20px;
    }
    .npr-verdict2 {
      border-radius: 10px;
      padding: 22px 24px;
      text-align: center;
      margin-bottom: 22px;
      border: 1px solid transparent;
    }
    .npr-verdict2 .npr-v2-icon { font-size: 30px; margin-bottom: 8px; }
    .npr-verdict2 h4 {
      font-family: 'Fraunces', serif; font-weight: 600; font-size: 19px;
      margin: 0 0 8px;
    }
    .npr-verdict2 p { font-size: 13.5px; line-height: 1.55; margin: 0; max-width: 46ch; margin: 0 auto; }
    .npr-verdict2.gain { background: var(--gain-bg); border-color: #c6d8cf; }
    .npr-verdict2.gain h4 { color: var(--gain); }
    .npr-verdict2.gain p { color: #2f5d4f; }
    .npr-verdict2.warn { background: var(--warn-bg); border-color: #e1d3a3; }
    .npr-verdict2.warn h4 { color: #8a6d1f; }
    .npr-verdict2.warn p { color: #6e5716; }
    .npr-verdict2.loss { background: var(--loss-bg); border-color: #e3c3ba; }
    .npr-verdict2.loss h4 { color: var(--loss); }
    .npr-verdict2.loss p { color: #7d332c; }

    .npr-btn-whatsapp {
      display: inline-flex; align-items: center; justify-content: center;
      gap: 8px;
      font-family: 'IBM Plex Mono', monospace;
      font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase;
      background: var(--brass); color: #fff; text-decoration: none;
      padding: 14px 26px; border-radius: 8px;
      transition: background .15s;
    }
    .npr-btn-whatsapp:hover { background: var(--brass-dark); }
