/* ============================================================
   nCode Digital — App styles (Nia, cotizador, proforma, blog)
   Usa los mismos tokens de styles.css. Todas las clases llevan
   prefijo (nc- / nia- / nz- / pf- / blog-) para no alterar el landing.
   ============================================================ */

[x-cloak] { display: none !important; }

/* ── Nav sólido en páginas sin hero de video ─────────────── */
body[data-nav="solid"] .nav {
  background: rgba(255,253,238,0.96);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--border-strong);
}
body[data-nav="solid"] .nav__wordmark { color: var(--ink); }
body[data-nav="solid"] .nav__lang-btn { color: rgba(51,51,51,0.65); }
body[data-nav="solid"] .nav__lang-btn:hover { color: var(--ink); }
body[data-nav="solid"] .menu-btn__line { background: var(--ink); }

/* overflow-x: hidden en body desactiva position: sticky; clip recorta igual sin crear un contenedor de scroll */
body[data-nav="solid"] { overflow-x: clip; }

/* ── Bloques compartidos ─────────────────────────────────── */
.nc-page {
  position: relative;
  padding-top: var(--nav-h);
  background: var(--bg-primary);
  overflow: hidden;
}

.nc-grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(20,20,20,0.16) 1px, transparent 1px);
  background-size: 96px 96px;
  pointer-events: none;
  z-index: 0;
}

.nc-wrap {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

.nc-hdr {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 40px 56px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: end;
  animation: nc-rise 0.5s var(--ease-system) both;
}

.nc-hdr__right {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  animation: nc-rise 0.5s 0.1s var(--ease-system) both;
}

.nc-hl {
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.025em;
}

.nc-hl span { display: block; font-size: clamp(36px, 4.6vw, 68px); }
.nc-hl__ink    { color: var(--ink); }
.nc-hl__accent { color: var(--accent-purple); }

.nc-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ink-light);
  text-transform: uppercase;
}

.nc-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-mid);
  text-transform: uppercase;
  white-space: nowrap;
}

.nc-tag--accent { border-color: var(--accent-orange); color: var(--accent-orange); }
.nc-tag--green  { border-color: var(--accent-purple); color: #2f8a55; }

.nc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid var(--accent-orange);
  border-radius: 1px;
  background: var(--accent-orange);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #fff;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.nc-btn:hover { background: #ea6c0a; border-color: #ea6c0a; }
.nc-btn:active { transform: translateY(1px); }
.nc-btn:disabled { border-color: var(--border-strong); background: var(--border-strong); color: var(--ink-xlight); cursor: not-allowed; }
.nc-btn__arr { transition: transform 0.2s var(--ease-out-expo); }
.nc-btn:hover .nc-btn__arr { transform: translateX(3px); }

.nc-btn--ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--ink-mid);
}
.nc-btn--ghost:hover { background: transparent; border-color: var(--ink); color: var(--ink); }

.nc-btn--ink { background: var(--ink); border-color: var(--ink); color: var(--bg-primary); }
.nc-btn--ink:hover { background: #1f1f1f; border-color: #1f1f1f; }

.nc-btn--block { width: 100%; }

.nc-link {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-orange);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nc-link:hover { text-decoration: underline; text-underline-offset: 3px; }

@keyframes nc-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes nc-blink {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40%           { opacity: 1;    transform: translateY(-2px); }
}

/* Avatar de Nia: keycap naranja (mismo lenguaje que los bloques "keycap" del about) */
.nc-avatar {
  position: relative;
  flex-shrink: 0;
  width: 42px;
  height: 46px;
  border-radius: 11px;
  background: #C24E1C;
  box-shadow: 0 4px 0 0 rgba(120,45,10,0.35), 0 10px 18px rgba(255,113,51,0.22);
}
.nc-avatar::before {
  content: '';
  position: absolute;
  inset: 0 0 5px 0;
  border-radius: 9px;
  background: radial-gradient(ellipse at 50% 15%, #FFB48F, var(--accent-orange) 80%);
  box-shadow: inset 0 2px 2px rgba(255,255,255,0.45), inset 0 -3px 6px rgba(0,0,0,0.12);
}
.nc-avatar__n {
  position: absolute;
  inset: 0 0 5px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
}
.nc-avatar__dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3DCC6A;
  border: 2px solid var(--bg-primary);
  animation: pulse-dot 3.5s var(--ease-system) infinite;
}

.nia-dots { display: inline-flex; gap: 4px; align-items: center; height: 14px; }
.nia-dots i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ink-light);
  animation: nc-blink 1.2s infinite;
}
.nia-dots i:nth-child(2) { animation-delay: 0.15s; }
.nia-dots i:nth-child(3) { animation-delay: 0.3s; }

/* ══════════════════════════════════════════════════════════
   NIA — widget de chat flotante
   ══════════════════════════════════════════════════════════ */

/* Botón flotante: círculo naranja a la derecha de WhatsApp, con ondas y brillo */
.nia-launcher {
  position: fixed;
  right: 20px;
  bottom: 18px;
  z-index: 610;
  width: 60px;
  height: 60px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out-expo), opacity 0.2s;
  animation: nia-bob 4.8s 2s ease-in-out infinite;
}
.nia-launcher__mark {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 25%, #FFB892 0%, var(--accent-orange) 48%, #E4541A 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 113, 51, 0.45), 0 2px 6px rgba(18, 18, 18, 0.25), inset 0 2px 3px rgba(255, 255, 255, 0.45);
  overflow: hidden;
}
.nia-launcher__mark::after {        /* brillo que cruza el círculo */
  content: '';
  position: absolute;
  inset: -20%;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.55) 50%, transparent 60%);
  transform: translateX(-120%);
  animation: nia-sheen 5s 3s ease-in-out infinite;
}
.nia-launcher__n {
  font-family: var(--font-sans);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  transform: translateY(1px);
}
.nia-launcher__spark {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 13px;
  height: 13px;
  color: #FFF4C7;
  animation: nia-twinkle 2.4s ease-in-out infinite;
}
.nia-launcher__dot {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3DCC6A;
  border: 2px solid #fff;
}
.nia-launcher__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 113, 51, 0.7);
  pointer-events: none;
  animation: nia-ring 2.8s ease-out infinite;
}
.nia-launcher__ring--2 { animation-delay: 1.4s; }
.nia-launcher__label {               /* aparece solo al pasar el mouse */
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--bg-primary);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(18, 18, 18, 0.25);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s var(--ease-out-expo);
}
.nia-launcher__label::after {
  content: '';
  position: absolute;
  right: 24px;
  top: 100%;
  border: 6px solid transparent;
  border-top-color: var(--ink);
}
.nia-launcher:hover,
.nia-launcher:focus-visible { transform: scale(1.08); animation-play-state: paused; }
.nia-launcher:hover .nia-launcher__label,
.nia-launcher:focus-visible .nia-launcher__label { opacity: 1; transform: translateY(0); }
.nia-launcher:focus-visible { outline: none; }
.nia-launcher:focus-visible .nia-launcher__mark { box-shadow: 0 0 0 3px var(--bg-primary), 0 0 0 5px var(--accent-orange); }
.nia-launcher--hidden { opacity: 0; pointer-events: none; transform: scale(0.8); }

/* WhatsApp se corre a la izquierda para dejar a Nia en la esquina */
body.has-nia .whatsapp-float { right: 92px; bottom: 20px; }

/* Burbuja de saludo */
.nia-teaser {
  position: fixed;
  right: 20px;
  bottom: 92px;
  z-index: 605;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  max-width: 280px;
  padding: 12px 10px 12px 14px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 14px 14px 4px 14px;
  box-shadow: 0 16px 36px rgba(18, 18, 18, 0.18);
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.25s, transform 0.3s var(--ease-out-expo);
}
.nia-teaser--in { opacity: 1; transform: translateY(0) scale(1); }
.nia-teaser[hidden] { display: none; }
.nia-teaser::after {
  content: '';
  position: absolute;
  right: 22px;
  top: 100%;
  border: 7px solid transparent;
  border-top-color: #fff;
}
.nia-teaser__body { display: flex; flex-direction: column; gap: 4px; background: none; border: none; padding: 0; text-align: left; cursor: pointer; }
.nia-teaser__name { font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: 0.16em; color: var(--accent-orange); }
.nia-teaser__text { font-family: 'Inter', system-ui, sans-serif; font-size: 13.5px; line-height: 1.45; color: var(--ink); }
.nia-teaser__close { flex-shrink: 0; width: 22px; height: 22px; border: none; border-radius: 50%; background: transparent; color: var(--ink-light); font-size: 16px; line-height: 1; cursor: pointer; }
.nia-teaser__close:hover { background: rgba(18, 18, 18, 0.06); color: var(--ink); }

@keyframes nia-ring {
  0%   { transform: scale(1); opacity: 0.85; }
  80%, 100% { transform: scale(1.75); opacity: 0; }
}
@keyframes nia-bob {
  0%, 80%, 100% { transform: translateY(0) rotate(0); }
  84% { transform: translateY(-6px) rotate(-8deg); }
  88% { transform: translateY(-6px) rotate(8deg); }
  92% { transform: translateY(-3px) rotate(-4deg); }
}
@keyframes nia-sheen {
  0%, 70% { transform: translateX(-120%); }
  100%    { transform: translateX(120%); }
}
@keyframes nia-twinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.75) rotate(0); }
  50%      { opacity: 1; transform: scale(1.1) rotate(25deg); }
}

.nia-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 700;
  width: 400px;
  height: min(640px, calc(100vh - 96px));
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  box-shadow: 0 24px 64px rgba(18,18,18,0.22);
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.22s var(--ease-out-expo), transform 0.22s var(--ease-out-expo);
}
.nia-panel--open { opacity: 1; transform: translateY(0); pointer-events: all; }

.nia-panel__hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  height: 56px;
  border-bottom: 1px solid var(--border);
  background: rgba(18,18,18,0.025);
  flex-shrink: 0;
}
.nia-panel__id { display: flex; align-items: center; gap: 10px; }
.nia-panel__avatar {
  position: relative;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 25%, #FFA67F, var(--accent-orange) 75%);
  font-family: var(--font-sans); font-size: 15px; font-weight: 800; color: #fff;
}
.nia-panel__avatar-dot {
  position: absolute; top: -1px; right: -1px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #3DCC6A; border: 2px solid var(--bg-primary);
}
.nia-panel__id-text { display: flex; flex-direction: column; gap: 3px; }
.nia-panel__name {
  font-family: var(--font-mono); font-size: 9px; font-weight: 700;
  letter-spacing: 0.18em; color: var(--ink-mid); text-transform: uppercase;
}
.nia-panel__status {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 8px; font-weight: 500;
  letter-spacing: 0.12em; color: var(--ink-light); text-transform: uppercase;
}
.nia-panel__status-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #3DCC6A;
  animation: pulse-dot 3.5s var(--ease-system) infinite;
}
.nia-panel__close {
  display: flex; align-items: center; gap: 5px;
  padding: 4px 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: var(--font-mono); font-size: 8px; font-weight: 500;
  letter-spacing: 0.12em; color: var(--ink-light); text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.nia-panel__close:hover { border-color: var(--border-strong); color: var(--ink); }

.nia-panel__meta {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 16px;
  border-bottom: 1px dotted var(--border);
  font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.1em;
  color: var(--ink-xlight); text-transform: uppercase;
  flex-shrink: 0;
}
.nia-panel__reset {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.1em;
  color: var(--ink-light); text-transform: uppercase;
}
.nia-panel__reset:hover { color: var(--accent-orange); }

.nia-panel__log {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-image: radial-gradient(circle, rgba(20,20,20,0.10) 1px, transparent 1px);
  background-size: 32px 32px;
}

.nia-msg { display: flex; flex-direction: column; gap: 6px; max-width: 88%; animation: nc-rise 0.25s var(--ease-system) both; }
.nia-msg--bot  { align-self: flex-start; }
.nia-msg--user { align-self: flex-end; align-items: flex-end; }
.nia-msg__bubble {
  padding: 11px 14px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink);
  word-wrap: break-word;
}
.nia-msg--bot .nia-msg__bubble {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 2px 12px 12px 12px;
}
.nia-msg--user .nia-msg__bubble {
  background: var(--ink);
  color: var(--bg-primary);
  border-radius: 12px 2px 12px 12px;
}
.nia-msg__bubble a { color: var(--accent-orange); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; transition: color 0.15s; }
.nia-msg--bot .nia-msg__bubble a:hover { color: var(--ink); }
.nia-msg--user .nia-msg__bubble a { color: #FFC2A6; }
.nia-msg__bubble strong { font-weight: 700; }
.nia-msg__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.nia-msg__action {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--accent-orange);
  border-radius: 2px;
  font-family: var(--font-mono); font-size: 9px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-orange);
  background: var(--bg-primary);
  transition: background 0.2s, color 0.2s;
}
.nia-msg__action:hover { background: var(--accent-orange); color: #fff; }

.nia-panel__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 16px 10px;
  flex-shrink: 0;
}
.nia-panel__quick[hidden] { display: none; }
.nia-chip {
  padding: 7px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  background: var(--bg-primary);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  color: var(--ink-mid);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  text-align: left;
}
.nia-chip:hover { border-color: var(--accent-orange); color: var(--ink); }
.nia-chip--accent {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  display: inline-flex; align-items: center;
}

.nia-panel__form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
  flex-shrink: 0;
}
.nia-panel__input {
  flex: 1;
  resize: none;
  max-height: 120px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  background: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}
.nia-panel__input:focus { border-color: var(--accent-orange); }
.nia-panel__send {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border: none; border-radius: 2px;
  background: var(--accent-orange);
  color: #fff; font-size: 17px; font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.nia-panel__send:hover { background: #ea6c0a; }
.nia-panel__send:disabled { background: var(--border-strong); cursor: wait; }
.nia-panel__ftr {
  padding: 6px 16px 8px;
  font-family: var(--font-mono); font-size: 7.5px; letter-spacing: 0.12em;
  color: var(--ink-xlight); text-transform: uppercase; text-align: center;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .nia-launcher { right: 14px; bottom: 14px; width: 52px; height: 52px; }
  .nia-launcher__n { font-size: 22px; }
  .nia-launcher__label { display: none; }
  body.has-nia .whatsapp-float { right: 76px; bottom: 15px; }
  .nia-teaser { right: 14px; bottom: 80px; max-width: calc(100vw - 28px); }
  .nia-panel { right: 0; bottom: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; border: none; }
  body.nia-open .whatsapp-float { opacity: 0; pointer-events: none; }
}

/* ══════════════════════════════════════════════════════════
   COTIZADOR GUIADO (nz)
   ══════════════════════════════════════════════════════════ */

.nz {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: var(--nav-h);
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
}

.nz__bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--strip-h);
  padding: 0 40px;
  border-bottom: 1px solid var(--border);
  background: rgba(236,236,234,0.35);
}
.nz__bar .nc-label { font-size: 8.5px; }
.nz__bar-status { display: flex; align-items: center; gap: 8px; }
.nz__bar-dot { width: 6px; height: 6px; border-radius: 50%; background: #3DCC6A; animation: pulse-dot 3.5s var(--ease-system) infinite; }

.nz__progress { position: relative; z-index: 2; height: 2px; background: var(--border); }
.nz__progress span { display: block; height: 100%; background: var(--accent-orange); transition: width 0.45s var(--ease-system); }

.nz__stage {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px 40px;
}

.nz__step { width: 100%; max-width: 940px; animation: nc-rise 0.45s var(--ease-system) both; }
.nz__step--back { animation-name: nz-back; }
@keyframes nz-back { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: translateY(0); } }

.nz__nia { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 30px; }
.nz__nia-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; max-width: 660px; }
.nz__nia-label { display: flex; align-items: center; gap: 8px; }
.nz__bubble {
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 2px 14px 14px 14px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-mid);
  box-shadow: 0 6px 18px rgba(18,18,18,0.04);
}
.nz__bubble--typing { color: var(--ink-light); }
.nz__ask { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.nz__ask-row { width: 100%; }
.nz__ask-row { display: flex; gap: 8px; }
.nz__ask-input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  background: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13.5px;
  color: var(--ink);
  outline: none;
}
.nz__ask-input:focus { border-color: var(--accent-orange); }
.nz__ask .nc-btn { padding: 10px 16px; }

.nz__hl {
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(38px, 5.4vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.nz__hl-accent { color: var(--accent-purple); }

.nz__hint { margin-top: 16px; }

.nz__field { margin-top: 34px; }
.nz__error {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #D9480F;
  text-transform: uppercase;
}

/* Input grande subrayado */
.nz-text {
  width: 100%;
  padding: 10px 0 12px;
  border: none;
  border-bottom: 2px solid var(--border-strong);
  border-radius: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}
.nz-text::placeholder { color: var(--ink-xlight); }
.nz-text:focus { border-bottom-color: var(--accent-orange); }
.nz-text--sm { font-size: 18px; padding: 8px 0 10px; border-bottom-width: 1.5px; }

.nz-textarea {
  width: 100%;
  min-height: 150px;
  padding: 16px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  background: rgba(255,255,255,0.55);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}
.nz-textarea::placeholder { color: var(--ink-xlight); font-size: 14.5px; }
.nz-textarea:focus { border-color: var(--accent-orange); }
.nz-textarea--sm { min-height: 90px; font-size: 14.5px; }

.nz-sub-label { display: block; margin: 26px 0 10px; }

/* Tarjetas de opción */
.nz-opts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.nz-opt {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  background: var(--bg-primary);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease-out-expo), box-shadow 0.2s;
}
.nz-opt:hover { border-color: var(--ink-light); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(18,18,18,0.06); }
.nz-opt__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nz-opt__key {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  color: var(--ink-light);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.nz-opt__check {
  position: relative;
  width: 16px; height: 16px;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  flex-shrink: 0;
}
.nz-opt__check::after {
  content: '';
  position: absolute; inset: 3px;
  background: var(--accent-orange);
  border-radius: 1px;
  opacity: 0; transform: scale(0.5);
  transition: opacity 0.15s, transform 0.15s;
}
.nz-opt__title { font-family: var(--font-sans); font-size: 19px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.nz-opt__desc { font-family: 'Inter', system-ui, sans-serif; font-size: 12.5px; line-height: 1.55; color: var(--ink-light); }
.nz-opt__price { margin-top: auto; padding-top: 6px; font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em; color: var(--accent-orange); text-transform: uppercase; }
.nz-opt.is-on { border-color: var(--accent-orange); background: rgba(255,113,51,0.06); }
.nz-opt.is-on .nz-opt__key { background: var(--accent-orange); border-color: var(--accent-orange); color: #fff; }
.nz-opt.is-on .nz-opt__check { border-color: var(--accent-orange); }
.nz-opt.is-on .nz-opt__check::after { opacity: 1; transform: scale(1); }

.nz-opt--feature { padding: 14px 16px; gap: 6px; }
.nz-opt--feature .nz-opt__title { font-size: 15.5px; font-weight: 600; }
.nz-opt--feature .nz-opt__desc { font-size: 12px; }

.nz-group + .nz-group { margin-top: 26px; }
.nz-group__title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.nz-group__title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Chips */
.nz-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.nz-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  background: var(--bg-primary);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14.5px;
  color: var(--ink-mid);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.15s;
}
.nz-chip:hover { border-color: var(--ink-light); color: var(--ink); }
.nz-chip__box {
  position: relative;
  width: 14px; height: 14px;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  flex-shrink: 0;
}
.nz-chip--radio .nz-chip__box { border-radius: 50%; }
.nz-chip__box::after {
  content: '';
  position: absolute; inset: 3px;
  background: var(--accent-orange);
  border-radius: inherit;
  opacity: 0; transform: scale(0.5);
  transition: opacity 0.15s, transform 0.15s;
}
.nz-chip.is-on { border-color: var(--accent-orange); color: var(--ink); background: rgba(255,113,51,0.06); }
.nz-chip.is-on .nz-chip__box { border-color: var(--accent-orange); }
.nz-chip.is-on .nz-chip__box::after { opacity: 1; transform: scale(1); }
.nz-chips--sm .nz-chip { padding: 9px 14px; font-size: 13px; }

/* Filas tipo "segmented control" (contenido / infraestructura) */
.nz-rows { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.nz-row {
  display: grid;
  grid-template-columns: minmax(200px, 0.8fr) 1.2fr;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.nz-row__label { font-family: var(--font-sans); font-size: 17px; font-weight: 600; color: var(--ink); }
.nz-row__extra { grid-column: 2; margin-top: -6px; }

/* Stepper */
.nz-stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--border-strong); border-radius: 2px; }
.nz-stepper button {
  width: 42px;
  background: transparent; border: none; cursor: pointer;
  font-family: var(--font-mono); font-size: 18px; color: var(--ink-mid);
  transition: background 0.2s, color 0.2s;
}
.nz-stepper button:hover { background: rgba(255,113,51,0.08); color: var(--accent-orange); }
.nz-stepper output {
  min-width: 64px; padding: 10px 6px;
  display: flex; align-items: center; justify-content: center;
  border-left: 1px solid var(--border-strong); border-right: 1px solid var(--border-strong);
  font-family: var(--font-sans); font-size: 22px; font-weight: 700; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.nz-total { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 26px; }

/* Planes (paso de mantenimiento) */
.nz-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.nz-plan {
  padding: 16px 16px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  background: var(--bg-primary);
}
.nz-plan--featured { border-color: var(--accent-orange); background: rgba(255,113,51,0.05); }
.nz-plan__name { font-family: var(--font-sans); font-size: 17px; font-weight: 700; color: var(--ink); }
.nz-plan__price { margin: 4px 0 10px; font-family: var(--font-sans); font-size: 24px; font-weight: 800; color: var(--accent-orange); letter-spacing: -0.02em; }
.nz-plan__price small { font-family: var(--font-mono); font-size: 9px; font-weight: 600; letter-spacing: 0.1em; color: var(--ink-light); }
.nz-plan ul { display: flex; flex-direction: column; gap: 5px; }
.nz-plan li { position: relative; padding-left: 14px; font-family: 'Inter', system-ui, sans-serif; font-size: 12px; color: var(--ink-mid); }
.nz-plan li::before { content: '▸'; position: absolute; left: 0; color: var(--accent-orange); }

/* Contacto */
.nz-form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; }
.nz-form__full { grid-column: 1 / -1; }
.nz-form label.nc-label { display: block; margin-bottom: 4px; }
.nz-form__hint { margin-top: 6px; font-family: 'Inter', system-ui, sans-serif; font-size: 12px; color: var(--ink-light); }
.nz-terms {
  display: flex; align-items: flex-start; gap: 10px;
  font-family: 'Inter', system-ui, sans-serif; font-size: 13.5px; color: var(--ink-mid);
  cursor: pointer;
}
.nz-terms a { color: var(--accent-orange); text-decoration: underline; }
.nz-terms input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nz-terms .nz-chip__box { margin-top: 2px; }
.nz-terms.is-on .nz-chip__box { border-color: var(--accent-orange); }
.nz-terms.is-on .nz-chip__box::after { opacity: 1; transform: scale(1); }

/* Intro */
.nz-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.nz-intro-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 40px; }
.nz-intro-actions .nc-btn { padding: 16px 30px; font-size: 11.5px; }

/* Generando */
.nz-gen { max-width: 640px; margin: 0 auto; }
.nz-gen__panel { margin-top: 32px; border: 1px solid var(--border-strong); border-radius: 3px; background: #fff; overflow: hidden; }
.nz-gen__hdr { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--border); background: rgba(18,18,18,0.025); }
.nz-gen__list { display: flex; flex-direction: column; padding: 8px 0; }
.nz-gen__item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 16px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--ink-xlight);
  transition: color 0.3s;
}
.nz-gen__item.is-active { color: var(--ink); }
.nz-gen__item.is-done { color: var(--ink-mid); }
.nz-gen__mark { width: 16px; text-align: center; color: var(--accent-orange); font-weight: 700; }
.nz-gen__item.is-done .nz-gen__mark { color: #2f8a55; }

/* Pie con navegación */
.nz__foot {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 40px;
  border-top: 1px solid var(--border);
  background: rgba(255,253,238,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nz__foot-hint { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; color: var(--ink-xlight); text-transform: uppercase; }
.nz__resume { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }

body[data-page="proyecto"] .whatsapp-float { bottom: 84px; }
body.has-nia[data-page="proyecto"] .whatsapp-float { right: 20px; }
body[data-page="proyecto"] .nia-launcher { display: none; }

@media (max-width: 768px) {
  .nz__bar { padding: 0 20px; }
  .nz__bar .nc-label:first-child { max-width: 55vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nz__stage { padding: 28px 20px 28px; align-items: flex-start; }
  .nz__nia { gap: 12px; margin-bottom: 22px; }
  .nz__bubble { font-size: 14px; padding: 12px 14px; }
  .nz__hl { font-size: clamp(32px, 9.5vw, 48px); }
  .nz__foot { padding: 12px 20px; }
  .nz__foot-hint { display: none; }
  .nz-row { grid-template-columns: 1fr; gap: 10px; }
  .nz-row__extra { grid-column: 1; margin-top: 0; }
  .nz-plans { grid-template-columns: 1fr; }
  .nz-form { grid-template-columns: 1fr; gap: 22px; }
  .nz-opts { grid-template-columns: 1fr; }
  body[data-page="proyecto"] .whatsapp-float { bottom: 78px; }
}

/* ══════════════════════════════════════════════════════════
   PROFORMA EDITABLE (pf)
   ══════════════════════════════════════════════════════════ */

.pf { position: relative; padding-top: var(--nav-h); background: var(--bg-primary); min-height: 100vh; }

.pf__doc-hdr {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 40px 0;
  animation: nc-rise 0.45s var(--ease-system) both;
}
.pf__brand-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
}
.pf__brand { font-family: var(--font-sans); font-size: clamp(40px, 5vw, 64px); font-weight: 800; letter-spacing: -0.04em; color: var(--ink); line-height: 0.9; }
.pf__brand span { color: var(--accent-orange); }
.pf__ref { text-align: right; display: flex; flex-direction: column; gap: 4px; }
.pf__title { margin-top: 22px; font-family: var(--font-sans); font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.pf__lead { margin-top: 8px; max-width: 70ch; font-family: 'Inter', system-ui, sans-serif; font-size: 14.5px; line-height: 1.65; color: var(--ink-mid); }
.pf__meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 22px; border: 1px solid var(--ink); }
.pf__meta > div { padding: 12px 16px; border-right: 1px solid var(--ink); display: flex; flex-direction: column; gap: 6px; }
.pf__meta > div:last-child { border-right: none; }
.pf__meta strong { font-family: var(--font-sans); font-size: 16px; font-weight: 700; color: var(--ink); }

.pf__currency { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 2px; overflow: hidden; align-self: flex-start; }
.pf__currency button {
  padding: 4px 10px; border: none; background: transparent; cursor: pointer;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: var(--ink-light);
}
.pf__currency button.is-on { background: var(--ink); color: var(--bg-primary); }

.pf__nia { display: flex; gap: 16px; align-items: flex-start; margin-top: 30px; max-width: 860px; }

.pf__layout {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 40px 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 48px;
  align-items: start;
}

.pf-sec { margin-bottom: 44px; animation: nc-rise 0.45s var(--ease-system) both; }
.pf-sec__hdr { display: flex; align-items: flex-end; gap: 16px; padding-bottom: 12px; border-bottom: 1.5px solid var(--ink); margin-bottom: 18px; }
.pf-sec__num { font-family: var(--font-sans); font-size: 44px; font-weight: 800; line-height: 0.85; letter-spacing: -0.04em; color: var(--accent-orange); }
.pf-sec__titles { display: flex; flex-direction: column; gap: 4px; }
.pf-sec__ref { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.16em; color: var(--ink-xlight); text-transform: uppercase; }
.pf-sec__title { font-family: var(--font-sans); font-size: 23px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.pf-sec__aside { margin-left: auto; }

.pf-text { font-family: 'Inter', system-ui, sans-serif; font-size: 15px; line-height: 1.7; color: var(--ink-mid); }
.pf-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--border-strong); }
.pf-kv > div { padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 5px; }
.pf-kv > div:nth-child(odd) { border-right: 1px solid var(--border); }
.pf-kv strong { font-family: 'Inter', system-ui, sans-serif; font-size: 14px; font-weight: 600; color: var(--ink); word-break: break-word; }

.pf-cat { display: flex; align-items: center; gap: 10px; margin: 22px 0 4px; }
.pf-cat:first-child { margin-top: 0; }
.pf-cat::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.pf-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: start;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  transition: opacity 0.2s;
}
.pf-item.is-off { opacity: 0.5; }
.pf-item.is-off .pf-item__price strong { text-decoration: line-through; }
.pf-toggle {
  position: relative;
  width: 20px; height: 20px; margin-top: 2px;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  background: var(--bg-primary);
  cursor: pointer;
  transition: border-color 0.2s;
}
.pf-toggle::after {
  content: '';
  position: absolute; inset: 4px;
  background: var(--accent-orange); border-radius: 1px;
  opacity: 0; transform: scale(0.5);
  transition: opacity 0.15s, transform 0.15s;
}
.pf-toggle.is-on { border-color: var(--accent-orange); }
.pf-toggle.is-on::after { opacity: 1; transform: scale(1); }
.pf-toggle:disabled { cursor: not-allowed; border-color: var(--ink-light); }
.pf-toggle:disabled::after { background: var(--ink-light); }
.pf-item__name { font-family: var(--font-sans); font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: -0.005em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pf-item__desc { margin-top: 4px; font-family: 'Inter', system-ui, sans-serif; font-size: 12.5px; line-height: 1.55; color: var(--ink-light); }
.pf-item__reason { margin-top: 6px; font-family: 'Inter', system-ui, sans-serif; font-size: 12.5px; line-height: 1.5; color: var(--ink-mid); }
.pf-item__reason b { font-family: var(--font-mono); font-size: 8.5px; font-weight: 700; letter-spacing: 0.14em; color: var(--accent-orange); margin-right: 6px; }
.pf-item__qty { display: flex; align-items: center; }
.pf-item__qty .nz-stepper button { width: 30px; font-size: 14px; }
.pf-item__qty .nz-stepper output { min-width: 40px; font-size: 15px; padding: 6px 4px; }
.pf-item__unit { margin-left: 8px; }
.pf-item__price { text-align: right; min-width: 110px; display: flex; flex-direction: column; gap: 3px; }
.pf-item__price strong { font-family: var(--font-sans); font-size: 16px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.pf-item__price span { font-family: var(--font-mono); font-size: 10px; color: var(--ink-light); font-variant-numeric: tabular-nums; }

.pf-suggest { margin-top: 26px; padding: 18px 20px 6px; border: 1px dashed var(--accent-orange); border-radius: 3px; background: rgba(255,113,51,0.035); }
.pf-suggest__hdr { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.pf-suggest .pf-item:last-child { border-bottom: none; }
.pf-add {
  padding: 6px 10px; border: 1px solid var(--accent-orange); border-radius: 2px; background: transparent; cursor: pointer;
  font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: 0.12em; color: var(--accent-orange); text-transform: uppercase;
  white-space: nowrap;
}
.pf-add.is-on { background: var(--accent-orange); color: #fff; }

.pf-list { display: flex; flex-direction: column; gap: 8px; }
.pf-list li { position: relative; padding-left: 20px; font-family: 'Inter', system-ui, sans-serif; font-size: 14px; line-height: 1.6; color: var(--ink-mid); }
.pf-list li::before { content: '✕'; position: absolute; left: 2px; top: 0; color: var(--accent-orange); font-size: 11px; font-weight: 700; }
.pf-list--check li::before { content: '▸'; font-size: 12px; }
.pf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

.pf-table { width: 100%; border-collapse: collapse; }
.pf-table th { text-align: left; padding: 10px 14px; background: var(--ink); color: var(--bg-primary); font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.pf-table th:last-child, .pf-table td:last-child { text-align: right; }
.pf-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); font-family: 'Inter', system-ui, sans-serif; font-size: 13.5px; color: var(--ink-mid); vertical-align: top; }
.pf-table td small { display: block; margin-top: 3px; font-size: 11.5px; color: var(--ink-light); }
.pf-table td strong { font-family: var(--font-sans); font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.pf-empty { padding: 14px 0; font-family: 'Inter', system-ui, sans-serif; font-size: 13.5px; color: var(--ink-light); }

.pf-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pf-plan {
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px 14px 14px;
  border: 1px solid var(--border-strong); border-radius: 3px;
  background: var(--bg-primary);
  text-align: left; cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease-out-expo);
}
.pf-plan:hover { transform: translateY(-2px); border-color: var(--ink-light); }
.pf-plan.is-on { border-color: var(--accent-orange); background: rgba(255,113,51,0.06); }
.pf-plan--featured .pf-plan__price { color: var(--accent-orange); }
.pf-plan__name { font-family: var(--font-sans); font-size: 16px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pf-plan__price { font-family: var(--font-sans); font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.pf-plan__price small { font-family: var(--font-mono); font-size: 8.5px; font-weight: 600; letter-spacing: 0.08em; color: var(--ink-light); }
.pf-plan ul { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.pf-plan li { position: relative; padding-left: 12px; font-family: 'Inter', system-ui, sans-serif; font-size: 11.5px; line-height: 1.45; color: var(--ink-mid); }
.pf-plan li::before { content: '▸'; position: absolute; left: 0; color: var(--accent-orange); font-size: 10px; }
.pf-monthly { margin-top: 16px; }

.pf-time { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.pf-time__big { font-family: var(--font-sans); font-size: clamp(40px, 4.4vw, 60px); font-weight: 800; letter-spacing: -0.04em; color: var(--ink); line-height: 0.9; }
.pf-time__big small { display: block; margin-top: 8px; font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.16em; color: var(--ink-light); text-transform: uppercase; }
.pf-road { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; margin-top: 24px; border: 1px solid var(--border-strong); }
.pf-road > div { padding: 12px 12px 14px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.pf-road > div:last-child { border-right: none; }
.pf-road__n { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; background: var(--accent-orange); color: #fff; font-family: var(--font-sans); font-size: 12px; font-weight: 800; border-radius: 2px; }
.pf-road__t { font-family: var(--font-sans); font-size: 13.5px; font-weight: 700; color: var(--ink); }
.pf-road__d { font-family: 'Inter', system-ui, sans-serif; font-size: 11px; line-height: 1.45; color: var(--ink-light); }

.pf-terms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--ink); }
.pf-terms > div { padding: 14px 16px; border-right: 1px solid var(--ink); display: flex; flex-direction: column; gap: 6px; }
.pf-terms > div:last-child { border-right: none; }
.pf-terms strong { font-family: var(--font-sans); font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.pf-note { margin-top: 14px; font-family: 'Inter', system-ui, sans-serif; font-size: 12.5px; line-height: 1.6; color: var(--ink-light); }

/* Resumen de inversión (sticky) */
.pf-sum {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--bg-primary);
  box-shadow: 0 18px 40px rgba(18,18,18,0.08);
  overflow: hidden;
  animation: nc-rise 0.5s 0.1s var(--ease-system) both;
}
.pf-sum__hdr { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; background: var(--ink); }
.pf-sum__hdr .nc-label { color: rgba(255,253,238,0.85); }
.pf-sum__state { display: flex; align-items: center; gap: 6px; }
.pf-sum__state i { width: 6px; height: 6px; border-radius: 50%; background: #3DCC6A; }
.pf-sum__state.is-busy i { background: var(--accent-orange); animation: pulse-dot 0.8s infinite; }
.pf-sum__body { padding: 16px 18px 18px; }
.pf-sum__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; font-family: 'Inter', system-ui, sans-serif; font-size: 13.5px; color: var(--ink-mid); }
.pf-sum__row strong { font-family: var(--font-sans); font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-sum__row--discount strong { color: #2f8a55; }
.pf-sum__row--sub { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 10px; }
.pf-sum__total { margin-top: 10px; padding-top: 14px; border-top: 2px solid var(--accent-orange); }
.pf-sum__total-lbl { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.16em; color: var(--accent-orange); text-transform: uppercase; }
.pf-sum__total-val { margin-top: 6px; font-family: var(--font-sans); font-size: 36px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; }
.pf-sum__total-alt { margin-top: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-light); }
.pf-sum__split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 14px; border: 1px solid var(--border-strong); }
.pf-sum__split > div { padding: 9px 12px; display: flex; flex-direction: column; gap: 4px; }
.pf-sum__split > div:first-child { border-right: 1px solid var(--border-strong); }
.pf-sum__split strong { font-family: var(--font-sans); font-size: 14px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.pf-sum__monthly { margin-top: 12px; padding: 10px 12px; background: rgba(18,18,18,0.03); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pf-sum__monthly strong { font-family: var(--font-sans); font-size: 15px; font-weight: 700; color: var(--ink); }
.pf-promo { display: flex; gap: 6px; margin-top: 14px; }
.pf-promo input {
  flex: 1; min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--border-strong); border-radius: 2px; background: #fff;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); outline: none;
}
.pf-promo input:focus { border-color: var(--accent-orange); }
.pf-promo button { padding: 9px 12px; border: 1px solid var(--ink); border-radius: 2px; background: transparent; cursor: pointer; font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.pf-promo__msg { margin-top: 6px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.pf-promo__msg--ok { color: #2f8a55; }
.pf-promo__msg--bad { color: #D9480F; }
.pf-sum__cta { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.pf-sum__fine { margin-top: 12px; font-family: 'Inter', system-ui, sans-serif; font-size: 11.5px; line-height: 1.55; color: var(--ink-light); }

.pf-success {
  margin-top: 14px; padding: 14px;
  border: 1px solid rgba(47,138,85,0.4); border-radius: 2px;
  background: rgba(99,183,130,0.10);
  font-family: 'Inter', system-ui, sans-serif; font-size: 13px; line-height: 1.55; color: #22603c;
}
.pf-success strong { display: block; margin-bottom: 4px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; }

.pf-mbar { display: none; }

@media (max-width: 1080px) {
  .pf__layout { grid-template-columns: 1fr; gap: 0; }
  .pf-sum { position: relative; top: 0; margin-top: 8px; }
  .pf-plans { grid-template-columns: repeat(2, 1fr); }
  .pf-mbar {
    position: sticky; bottom: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 20px;
    background: var(--ink);
    color: var(--bg-primary);
  }
  .pf-mbar__total { display: flex; flex-direction: column; gap: 2px; }
  .pf-mbar__total strong { font-family: var(--font-sans); font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
  .pf-mbar__total span { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,253,238,0.7); }
  body[data-page="proforma"] .whatsapp-float { bottom: 86px; }
  body[data-page="proforma"] .nia-launcher { bottom: 84px; }
  body[data-page="proforma"] .nia-teaser { bottom: 152px; }
}

@media (max-width: 768px) {
  .pf__doc-hdr { padding: 36px 20px 0; }
  .pf__layout { padding: 28px 20px 40px; }
  .pf__meta { grid-template-columns: 1fr 1fr; }
  .pf__meta > div:nth-child(2) { border-right: none; }
  .pf__meta > div:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
  .pf-item { grid-template-columns: 24px minmax(0, 1fr); }
  .pf-item__qty, .pf-item__price { grid-column: 2; }
  .pf-item__price { text-align: left; flex-direction: row; gap: 10px; align-items: baseline; }
  .pf-kv { grid-template-columns: 1fr; }
  .pf-kv > div:nth-child(odd) { border-right: none; }
  .pf-two { grid-template-columns: 1fr; }
  .pf-time { grid-template-columns: 1fr; gap: 12px; }
  .pf-road { grid-template-columns: repeat(2, 1fr); }
  .pf-road > div { border-bottom: 1px solid var(--border); }
  .pf-terms { grid-template-columns: 1fr 1fr; }
  .pf-terms > div:nth-child(2) { border-right: none; }
  .pf-terms > div:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
  .pf-plans { grid-template-columns: 1fr; }
  .pf-sec__num { font-size: 36px; }
  .pf__brand-row { flex-direction: column; align-items: flex-start; }
  .pf__ref { text-align: left; }
}

/* ══════════════════════════════════════════════════════════
   BLOG
   ══════════════════════════════════════════════════════════ */

.blog-tools {
  position: relative; z-index: 1;
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 40px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.blog-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-cat {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 13px;
  border: 1px solid var(--border-strong); border-radius: 2px;
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mid);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.blog-cat:hover { border-color: var(--ink); color: var(--ink); }
.blog-cat.is-on { background: var(--ink); border-color: var(--ink); color: var(--bg-primary); }
.blog-cat sup { font-size: 8px; color: inherit; opacity: 0.7; }
.blog-search { display: flex; border: 1px solid var(--border-strong); border-radius: 2px; background: #fff; }
.blog-search input { width: 240px; padding: 9px 12px; border: none; background: transparent; font-family: 'Inter', system-ui, sans-serif; font-size: 13px; color: var(--ink); outline: none; }
.blog-search button { padding: 0 12px; border: none; border-left: 1px solid var(--border-strong); background: transparent; cursor: pointer; font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: 0.12em; color: var(--ink-mid); }

.blog-grid {
  position: relative; z-index: 1;
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 40px 96px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.blog-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--border-strong); border-radius: 3px;
  background: var(--bg-primary);
  overflow: hidden;
  transition: transform 0.25s var(--ease-out-expo), border-color 0.2s, box-shadow 0.25s;
}
.blog-card:hover { transform: translateY(-4px); border-color: var(--ink-light); box-shadow: 0 16px 34px rgba(18,18,18,0.08); }
.blog-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--border); background: var(--bg-secondary); }
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s var(--ease-out-expo); }
.blog-card:hover .blog-card__media img { transform: scale(1.04); }
.blog-card__body { display: flex; flex-direction: column; gap: 12px; padding: 20px 20px 22px; flex: 1; }
.blog-card__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.blog-card__title { font-family: var(--font-sans); font-size: 21px; font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); }
.blog-card__excerpt { font-family: 'Inter', system-ui, sans-serif; font-size: 13.5px; line-height: 1.6; color: var(--ink-light); flex: 1; }
.blog-card__cta { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-purple); }
.blog-card:hover .blog-card__cta span { transform: translateX(3px); }
.blog-card__cta span { transition: transform 0.2s var(--ease-out-expo); }

/* Portada generada cuando el artículo no tiene imagen (blueprint) */
.blog-blueprint {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 16px 18px;
  background-color: #FBF7DE;
  background-image:
    linear-gradient(rgba(51,51,51,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51,51,51,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}
.blog-blueprint__top { display: flex; justify-content: space-between; }
.blog-blueprint__word { font-family: var(--font-sans); font-size: clamp(34px, 3.4vw, 52px); font-weight: 900; letter-spacing: -0.04em; line-height: 0.9; color: var(--ink); }
.blog-blueprint__word span { color: var(--accent-orange); }
.blog-blueprint--design .blog-blueprint__word span { color: var(--accent-purple); }

.blog-featured {
  position: relative; z-index: 1;
  max-width: var(--max-w); margin: 0 auto 28px;
  padding: 0 40px;
}
.blog-featured__card {
  display: grid; grid-template-columns: 1.15fr 1fr;
  border: 1px solid var(--ink); border-radius: 3px; overflow: hidden;
  background: var(--bg-primary);
  transition: box-shadow 0.25s;
}
.blog-featured__card:hover { box-shadow: 0 18px 40px rgba(18,18,18,0.10); }
.blog-featured__media { position: relative; min-height: 340px; border-right: 1px solid var(--ink); background: var(--bg-secondary); }
.blog-featured__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.blog-featured__body { display: flex; flex-direction: column; gap: 16px; padding: 32px 32px 30px; }
.blog-featured__title { font-family: var(--font-sans); font-size: clamp(26px, 2.6vw, 38px); font-weight: 800; line-height: 1.05; letter-spacing: -0.025em; color: var(--ink); }

.blog-empty { grid-column: 1 / -1; padding: 60px 0; text-align: center; font-family: 'Inter', system-ui, sans-serif; color: var(--ink-light); }

.blog-pager { position: relative; z-index: 1; display: flex; justify-content: center; gap: 8px; padding: 0 40px 80px; margin-top: -48px; }
.blog-pager a, .blog-pager span {
  min-width: 38px; padding: 9px 12px; text-align: center;
  border: 1px solid var(--border-strong); border-radius: 2px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: var(--ink-mid);
}
.blog-pager .is-on { background: var(--ink); border-color: var(--ink); color: var(--bg-primary); }
.blog-pager a:hover { border-color: var(--ink); color: var(--ink); }

/* Artículo */
.blog-post__hdr { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; padding: 72px 40px 32px; animation: nc-rise 0.5s var(--ease-system) both; }
.blog-crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.blog-crumbs a:hover { color: var(--accent-orange); }
.blog-post__title { font-family: var(--font-sans); font-size: clamp(36px, 4.8vw, 66px); font-weight: 800; line-height: 0.98; letter-spacing: -0.03em; color: var(--ink); }
.blog-post__lead { display: flex; gap: 20px; margin-top: 26px; }
.blog-post__lead p { font-family: 'Inter Tight', system-ui, sans-serif; font-size: 19px; line-height: 1.6; color: var(--ink-mid); letter-spacing: -0.01em; }
.blog-post__meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 28px; padding: 12px 0; border-top: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong); }
.blog-post__sep { color: var(--border-strong); font-family: var(--font-mono); font-size: 10px; }
.blog-post__cover { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto 8px; padding: 0 40px; }
.blog-post__cover-frame { position: relative; aspect-ratio: 21 / 9; border: 1px solid var(--ink); border-radius: 3px; overflow: hidden; background: var(--bg-secondary); }
.blog-post__cover-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.blog-prose { position: relative; z-index: 1; max-width: 740px; margin: 0 auto; padding: 40px 40px 24px; font-family: 'Inter', system-ui, sans-serif; font-size: 17px; line-height: 1.8; color: var(--ink-mid); }
.blog-prose > * + * { margin-top: 1.1em; }
.blog-prose h2 { margin-top: 2em; font-family: var(--font-sans); font-size: 30px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); display: flex; gap: 12px; align-items: baseline; }
.blog-prose h2::before { content: ''; flex-shrink: 0; width: 10px; height: 10px; background: var(--accent-orange); transform: translateY(-3px); }
.blog-prose h3 { margin-top: 1.6em; font-family: var(--font-sans); font-size: 22px; font-weight: 700; color: var(--ink); }
.blog-prose strong { color: var(--ink); font-weight: 700; }
.blog-prose a { color: var(--accent-orange); text-decoration: underline; text-underline-offset: 3px; }
.blog-prose ul, .blog-prose ol { padding-left: 0; display: flex; flex-direction: column; gap: 8px; }
.blog-prose ul li { list-style: none; position: relative; padding-left: 24px; }
.blog-prose ul li::before { content: '▸'; position: absolute; left: 4px; color: var(--accent-orange); }
.blog-prose ol { counter-reset: nc; }
.blog-prose ol li { list-style: none; position: relative; padding-left: 36px; counter-increment: nc; }
.blog-prose ol li::before { content: counter(nc, decimal-leading-zero); position: absolute; left: 0; top: 2px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--accent-orange); }
.blog-prose blockquote { padding: 6px 0 6px 22px; border-left: 2px solid var(--accent-orange); font-family: 'Inter Tight', system-ui, sans-serif; font-size: 20px; color: var(--ink); }
.blog-prose img { max-width: 100%; height: auto; border: 1px solid var(--border-strong); border-radius: 3px; }
.blog-prose figure figcaption { margin-top: 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--ink-light); text-transform: uppercase; }
.blog-prose code { padding: 2px 6px; background: rgba(18,18,18,0.05); border-radius: 2px; font-size: 0.88em; }
.blog-prose pre { padding: 18px; background: var(--ink); color: var(--bg-primary); border-radius: 3px; overflow-x: auto; font-size: 13.5px; line-height: 1.6; }
.blog-prose pre code { background: none; padding: 0; }
.blog-prose hr { border: none; height: 1px; background: var(--border-strong); margin: 2.4em 0; }

.blog-tags { position: relative; z-index: 1; max-width: 740px; margin: 0 auto; padding: 0 40px; display: flex; gap: 8px; flex-wrap: wrap; }

.blog-cta {
  position: relative; z-index: 1;
  max-width: 740px; margin: 48px auto 0; padding: 0 40px;
}
.blog-cta__box {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  padding: 26px 26px 24px;
  border: 1px solid var(--ink); border-radius: 3px;
  background: var(--bg-secondary);
}
.blog-cta__title { font-family: var(--font-sans); font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); line-height: 1.1; }
.blog-cta__text { margin-top: 8px; font-family: 'Inter', system-ui, sans-serif; font-size: 14.5px; line-height: 1.6; color: var(--ink-mid); }
.blog-cta__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

.blog-share { position: relative; z-index: 1; max-width: 740px; margin: 28px auto 0; padding: 0 40px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.blog-share a, .blog-share button { padding: 7px 11px; border: 1px solid var(--border-strong); border-radius: 2px; background: transparent; cursor: pointer; font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: 0.12em; color: var(--ink-mid); text-transform: uppercase; }
.blog-share a:hover, .blog-share button:hover { border-color: var(--ink); color: var(--ink); }

.blog-related { position: relative; z-index: 1; max-width: var(--max-w); margin: 72px auto 0; padding: 40px 40px 0; border-top: 1px solid var(--border); }
.blog-related__hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.blog-related__title { font-family: var(--font-sans); font-size: 30px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.blog-related .blog-grid { padding: 0 0 96px; }

@media (max-width: 1080px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-featured__card { grid-template-columns: 1fr; }
  .blog-featured__media { min-height: 240px; border-right: none; border-bottom: 1px solid var(--ink); }
}

@media (max-width: 768px) {
  .nc-hdr { grid-template-columns: 1fr; gap: 28px; padding: 48px 20px 36px; }
  .nc-hl span { font-size: clamp(32px, 10vw, 52px); }
  .nc-wrap, .blog-tools, .blog-featured, .blog-post__cover, .blog-related { padding-left: 20px; padding-right: 20px; }
  .blog-grid { grid-template-columns: 1fr; padding: 0 20px 72px; }
  .blog-search input { width: 100%; }
  .blog-search { width: 100%; }
  .blog-featured__body { padding: 22px 20px; }
  .blog-post__hdr { padding: 44px 20px 24px; }
  .blog-prose, .blog-tags, .blog-cta, .blog-share { padding-left: 20px; padding-right: 20px; }
  .blog-prose { font-size: 16px; }
  .blog-prose h2 { font-size: 24px; }
  .blog-cta__box { grid-template-columns: 1fr; }
  .blog-post__cover-frame { aspect-ratio: 16 / 9; }
}

/* ══════════════════════════════════════════════════════════
   PROMOS / ERRORES
   ══════════════════════════════════════════════════════════ */

.nc-panel { border: 1px solid var(--border-strong); border-radius: 3px; background: var(--bg-primary); overflow: hidden; }
.nc-panel__hdr { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--border); background: rgba(18,18,18,0.025); }
.nc-panel__body { padding: 24px; }

.promo-layout { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 0 40px 96px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.promo-big { font-family: var(--font-sans); font-size: clamp(54px, 7vw, 96px); font-weight: 900; letter-spacing: -0.05em; color: var(--accent-orange); line-height: 0.9; }
.promo-form { display: flex; flex-direction: column; gap: 22px; }
.promo-form label.nc-label { display: block; margin-bottom: 4px; }
.promo-ok { padding: 16px; border: 1px solid rgba(47,138,85,0.4); background: rgba(99,183,130,0.10); color: #22603c; font-family: 'Inter', system-ui, sans-serif; font-size: 14px; line-height: 1.6; }
.promo-err { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; color: #D9480F; text-transform: uppercase; margin-top: 6px; }

.nc-error { position: relative; z-index: 1; min-height: calc(100vh - var(--nav-h)); display: flex; flex-direction: column; justify-content: center; max-width: var(--max-w); margin: 0 auto; padding: 60px 40px; }
.nc-error__code { font-family: var(--font-sans); font-size: clamp(120px, 22vw, 300px); font-weight: 900; letter-spacing: -0.06em; line-height: 0.8; color: var(--ink); }
.nc-error__code span { color: var(--accent-orange); }

@media (max-width: 768px) {
  .promo-layout { grid-template-columns: 1fr; padding: 0 20px 72px; }
  .nc-error { padding: 40px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .nz__step, .nc-hdr, .nc-hdr__right, .pf-sec, .pf-sum, .pf__doc-hdr, .blog-post__hdr, .nia-msg { animation: none !important; }
  .nia-panel, .nia-launcher { transition: none; }
  .nia-launcher, .nia-launcher__ring, .nia-launcher__mark::after, .nia-launcher__spark, .nc-hero-cta { animation: none !important; }
  .nia-launcher__ring { display: none; }
}
.nz__steps { width: 100%; display: flex; justify-content: center; }
.blog-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.blog-prose th, .blog-prose td { padding: 10px 12px; border: 1px solid var(--border-strong); text-align: left; }
.blog-prose th { background: var(--ink); color: var(--bg-primary); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }

/* ── Menú del sitio: ítems 06 (Blog) y 07 (Ofertas) con la misma entrada escalonada ── */
.menu-panel--open .menu-nav__item:nth-child(6) { animation: menu-row-in 0.3s 0.26s var(--ease-out-expo) both; }
.menu-panel--open .menu-nav__item:nth-child(7) { animation: menu-row-in 0.3s 0.30s var(--ease-out-expo) both; }

.promo-card .blog-blueprint__word { font-size: clamp(40px, 4vw, 64px); }

/* ══════════════════════════════════════════════════════════
   HERO · botón "Iniciar Proyecto" (lleva directo al cotizador)
   ══════════════════════════════════════════════════════════ */
.nc-hero-cta {
  position: relative;
  isolation: isolate;
  gap: 12px;
  padding: 0 34px 0 30px;
  border-color: rgba(255, 179, 143, 0.65);
  animation: nc-cta-breathe 3.2s 1.4s ease-in-out infinite;
}
.nc-hero-cta::before {          /* onda tipo radar */
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1.5px solid rgba(255, 113, 51, 0.85);
  pointer-events: none;
  z-index: -1;
  animation: nc-cta-ring 2.6s 1.2s var(--ease-out-expo) infinite;
}
.nc-hero-cta::after {           /* brillo que recorre el botón */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 253, 238, 0.42) 50%, transparent 70%) no-repeat;
  background-size: 220% 100%;
  background-position: 160% 0;
  pointer-events: none;
  animation: nc-cta-shine 3.6s 1.6s ease-in-out infinite;
}
.nc-hero-cta__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-orange);
  box-shadow: 0 0 0 0 rgba(255, 113, 51, 0.7);
  animation: nc-cta-dot 1.8s ease-out infinite;
  flex-shrink: 0;
}
.nc-hero-cta__arr {
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  animation: nc-cta-nudge 1.6s 1.4s ease-in-out infinite;
}
.nc-hero-cta:hover {
  background: rgba(255, 113, 51, 0.88);
  border-color: rgba(255, 179, 143, 0.95);
  box-shadow: 0 0 0 6px rgba(255, 113, 51, 0.18), 0 12px 30px rgba(255, 113, 51, 0.35);
  animation-play-state: paused;
}
.nc-hero-cta:hover .nc-hero-cta__dot { background: #fff; }
.nc-hero-cta:hover .nc-hero-cta__arr { animation: none; transform: translateX(5px); }
.nc-hero-cta:focus-visible { outline: 2px solid var(--accent-orange); outline-offset: 4px; }

@keyframes nc-cta-ring {
  0%   { opacity: 0.9; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(1.12, 1.45); }
}
@keyframes nc-cta-shine {
  0%, 55% { background-position: 160% 0; }
  100%    { background-position: -60% 0; }
}
@keyframes nc-cta-dot {
  0%   { box-shadow: 0 0 0 0 rgba(255, 113, 51, 0.7); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(255, 113, 51, 0); }
}
@keyframes nc-cta-nudge {
  0%, 60%, 100% { transform: translateX(0); }
  30%           { transform: translateX(6px); }
}
@keyframes nc-cta-breathe {
  0%, 100% { box-shadow: inset 0 1px 1px rgba(255,255,255,0.4), 0 8px 24px rgba(0,0,0,0.18), 0 0 0 0 rgba(255,113,51,0); }
  50%      { box-shadow: inset 0 1px 1px rgba(255,255,255,0.4), 0 10px 28px rgba(0,0,0,0.22), 0 0 26px 2px rgba(255,113,51,0.35); }
}
@media (prefers-reduced-motion: reduce) {
  .nc-hero-cta, .nc-hero-cta::before, .nc-hero-cta::after, .nc-hero-cta__dot, .nc-hero-cta__arr { animation: none !important; }
}

/* ══════════════════════════════════════════════════════════
   PROFORMA · modal "tu proforma está lista" + demo animada
   ══════════════════════════════════════════════════════════ */
.pf-intro {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(245, 244, 239, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.pf-intro__box {
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--bg-primary);
  border: 1px solid var(--ink);
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(18, 18, 18, 0.28);
  animation: nc-rise 0.4s var(--ease-system) both;
}
.pf-intro__hdr { display: flex; align-items: center; justify-content: space-between; padding: 0 16px; height: 46px; border-bottom: 1px solid var(--border); background: rgba(18, 18, 18, 0.025); }
.pf-intro__body { padding: 22px 24px 24px; }
.pf-intro__nia { display: flex; align-items: center; gap: 12px; }
.pf-intro__title { display: flex; flex-direction: column; margin-top: 16px; font-family: var(--font-sans); font-size: clamp(32px, 6vw, 42px); font-weight: 800; line-height: 0.95; letter-spacing: -0.03em; color: var(--ink); }
.pf-intro__accent { color: var(--accent-purple); }
.pf-intro__text { margin-top: 12px; font-family: 'Inter', system-ui, sans-serif; font-size: 14.5px; line-height: 1.6; color: var(--ink-mid); }

.pf-demo {
  position: relative;
  margin-top: 18px;
  padding: 28px 14px 12px;
  border: 1px dashed var(--accent-orange);
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}
.pf-demo__tag { position: absolute; top: 9px; left: 14px; color: var(--accent-orange); }
.pf-demo__row { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: center; height: 40px; border-bottom: 1px solid var(--border); }
.pf-demo__name { font-family: var(--font-sans); font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-demo__price { position: relative; font-family: var(--font-sans); font-size: 14px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.pf-demo__box { position: relative; width: 16px; height: 16px; border: 1px solid var(--border-strong); border-radius: 2px; }
.pf-demo__box::after { content: ''; position: absolute; inset: 3px; border-radius: 1px; background: var(--accent-orange); opacity: 0; }
.pf-demo__box.is-on { border-color: var(--accent-orange); }
.pf-demo__box.is-on::after { opacity: 1; }
.pf-demo__box.is-locked { border-color: var(--ink-light); }
.pf-demo__box.is-locked::after { opacity: 1; background: var(--ink-light); }
.pf-demo__row--target { animation: pf-demo-row 5.2s infinite; }
.pf-demo__box--target { animation: pf-demo-box 5.2s infinite; }
.pf-demo__box--target::after { animation: pf-demo-check 5.2s infinite; }
.pf-demo__price--strike::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  top: 50%;
  height: 1.5px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  animation: pf-demo-strike 5.2s infinite;
}
.pf-demo__click { position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--accent-orange); opacity: 0; animation: pf-demo-ripple 5.2s infinite; }
.pf-demo__total { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; }
.pf-demo__amount { display: inline-grid; justify-items: end; min-width: 130px; font-family: var(--font-sans); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.pf-demo__before, .pf-demo__after { grid-area: 1 / 1; }
.pf-demo__before { animation: pf-demo-before 5.2s infinite; }
.pf-demo__after { color: #2f8a55; animation: pf-demo-after 5.2s infinite; }
/* El cursor apunta a la casilla de la segunda fila (padding 28px + fila 40px + mitad) */
.pf-demo__cursor { position: absolute; left: 18px; top: 80px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3)); animation: pf-demo-cursor 5.2s infinite; pointer-events: none; }

@keyframes pf-demo-cursor {
  0%        { transform: translate(260px, 110px); opacity: 0; }
  8%        { opacity: 1; }
  28%       { transform: translate(0, 0) scale(1); }
  31%       { transform: translate(0, 0) scale(0.82); }
  34%       { transform: translate(0, 0) scale(1); }
  72%       { transform: translate(0, 0); opacity: 1; }
  84%, 100% { transform: translate(260px, 110px); opacity: 0; }
}
@keyframes pf-demo-check { 0%, 32% { opacity: 1; transform: scale(1); } 36%, 90% { opacity: 0; transform: scale(0.3); } 100% { opacity: 1; transform: scale(1); } }
@keyframes pf-demo-box { 0%, 32% { border-color: var(--accent-orange); } 36%, 90% { border-color: var(--border-strong); } 100% { border-color: var(--accent-orange); } }
@keyframes pf-demo-row { 0%, 33% { opacity: 1; } 38%, 90% { opacity: 0.45; } 100% { opacity: 1; } }
@keyframes pf-demo-strike { 0%, 34% { transform: scaleX(0); } 42%, 90% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes pf-demo-ripple { 0%, 30% { opacity: 0; transform: scale(0.3); } 32% { opacity: 0.8; } 48%, 100% { opacity: 0; transform: scale(2); } }
@keyframes pf-demo-before { 0%, 38% { opacity: 1; transform: translateY(0); } 44%, 90% { opacity: 0; transform: translateY(-10px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes pf-demo-after { 0%, 40% { opacity: 0; transform: translateY(10px); } 46%, 90% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(10px); } }

.pf-intro__steps { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 20px; padding: 0; list-style: none; }
.pf-intro__steps li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-family: 'Inter', system-ui, sans-serif; font-size: 14px; line-height: 1.5; color: var(--ink-mid); }
.pf-intro__steps li > span:first-child { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 2px; background: var(--accent-orange); color: #fff; font-family: var(--font-sans); font-size: 12px; font-weight: 800; }

@media (prefers-reduced-motion: reduce) {
  .pf-demo *, .pf-demo *::after { animation: none !important; }
  .pf-demo__after { display: none; }
}

/* Verificación del correo en el cotizador */
.nz-otp { padding: 18px; border: 1px dashed var(--accent-orange); border-radius: 4px; background: rgba(255, 113, 51, 0.04); }
.nz-otp__row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nz-otp__input { max-width: 220px; font-size: 30px; letter-spacing: 0.4em; font-variant-numeric: tabular-nums; }

/* Con el menú del sitio abierto, los botones flotantes no tapan sus opciones */
body.menu-open .nia-launcher,
body.menu-open .nia-teaser,
body.menu-open .whatsapp-float { opacity: 0; pointer-events: none; transition: opacity 0.18s; }

/* ── Proforma: aviso de uso personal, ajuste al presupuesto y entrega acelerada ── */
.pf-legal {
  display: flex; gap: 14px; align-items: flex-start;
  margin-top: 22px; max-width: 860px;
  padding: 14px 18px;
  border: 1px solid var(--border-strong); border-left: 3px solid var(--accent-orange); border-radius: 3px;
  background: rgba(255,255,255,0.55);
}
.pf-legal__icon {
  flex: 0 0 22px; height: 22px; display: grid; place-items: center;
  border-radius: 50%; background: var(--accent-orange); color: #fff;
  font-family: var(--font-sans); font-size: 13px; font-weight: 800;
}
.pf-legal p { margin-top: 6px; font-family: 'Inter', system-ui, sans-serif; font-size: 13px; line-height: 1.6; color: var(--ink-mid); }

.pf-fit {
  display: flex; gap: 14px; align-items: flex-start;
  margin: 4px 0 18px; padding: 14px 18px;
  border: 1px solid rgba(99,183,130,0.55); border-radius: 3px;
  background: rgba(99,183,130,0.08);
}
.pf-fit .nc-avatar { flex: 0 0 auto; width: 30px; height: 33px; border-radius: 8px; }
.pf-fit .nc-avatar__n { font-size: 14px; }
.pf-fit .nc-label { color: #2f8a55; }
.pf-fit p { margin-top: 6px; font-family: 'Inter', system-ui, sans-serif; font-size: 13.5px; line-height: 1.6; color: var(--ink-mid); }
.pf-fit--short { border-color: rgba(255,113,51,0.5); background: rgba(255,113,51,0.05); }
.pf-fit--short .nc-label { color: var(--accent-orange); }
.nc-tag--fit { border-color: rgba(99,183,130,0.8); color: #2f8a55; background: rgba(99,183,130,0.08); }

.pf-time__big.is-rush { color: var(--accent-orange); }
.pf-speed { margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--border-strong); }
.pf-speed__hdr { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-bottom: 14px; }
.pf-speed__sub { font-family: 'Inter', system-ui, sans-serif; font-size: 12.5px; color: var(--ink-light); }
.pf-speed__opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.pf-speed__opt {
  display: flex; flex-direction: column; gap: 3px;
  padding: 12px 12px 11px;
  border: 1px solid var(--border-strong); border-radius: 3px;
  background: var(--bg-primary); text-align: left; cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease-out-expo);
}
.pf-speed__opt:hover { transform: translateY(-2px); border-color: var(--ink-light); }
.pf-speed__opt:disabled { cursor: progress; }
.pf-speed__opt strong { font-family: var(--font-sans); font-size: 19px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.pf-speed__opt span { font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-orange); }
.pf-speed__opt.is-natural span { color: #2f8a55; }
.pf-speed__opt small { font-family: 'Inter', system-ui, sans-serif; font-size: 11.5px; color: var(--ink-light); font-variant-numeric: tabular-nums; }
.pf-speed__opt.is-on { border-color: var(--accent-orange); background: rgba(255,113,51,0.07); box-shadow: inset 0 0 0 1px var(--accent-orange); }
.pf-speed__opt.is-natural.is-on { border-color: var(--accent-purple); background: rgba(99,183,130,0.09); box-shadow: inset 0 0 0 1px var(--accent-purple); }
.pf-speed__warn { margin-top: 12px; font-family: 'Inter', system-ui, sans-serif; font-size: 12.5px; color: var(--accent-orange); }
.pf-sum__row--rush strong { color: var(--accent-orange); }
.pf-intro__fit {
  margin-top: 10px; padding: 9px 12px;
  border-left: 3px solid var(--accent-purple); background: rgba(99,183,130,0.09);
  font-family: 'Inter', system-ui, sans-serif; font-size: 13.5px; line-height: 1.55; color: var(--ink-mid);
}

/* ── Proforma: montos en rango y solicitud de cotización a detalle ── */
.pf-item__price { min-width: 150px; }
.pf-item__price strong { white-space: nowrap; }
.pf-sum__total-val--range { font-size: clamp(24px, 2.3vw, 30px); letter-spacing: -0.025em; }
.pf-sum__split strong { font-size: 13px; white-space: nowrap; }
.pf-sum__free { font-family: 'Inter', system-ui, sans-serif; font-size: 12.5px; line-height: 1.5; color: var(--ink-mid); text-align: center; }
.pf-sum__free strong { color: #2f8a55; font-weight: 700; }
@media (max-width: 1080px) {
  .pf-mbar { padding: 10px 14px; gap: 10px; }
  .pf-mbar__total { min-width: 0; }
  .pf-mbar__total strong { font-size: 15px; white-space: nowrap; }
  .pf-mbar .nc-btn { flex: 0 0 auto; padding: 12px 14px; font-size: 10px; letter-spacing: 0.1em; white-space: nowrap; }
}
@media (max-width: 900px) {
  .pf-item__price { min-width: 0; }
}
.pf-sum__total-val--range { font-size: clamp(22px, 1.9vw, 27px); }
.pf-demo__amount { font-size: 17px; min-width: 0; }

/* ── Proforma: solicitud recibida (modal de agradecimiento y vuelta al inicio) ── */
.pf-thanks { z-index: 400; }
.pf-thanks .pf-intro__box { animation: pf-thanks-in 0.45s var(--ease-out-expo) both; }
.pf-thanks__check { color: var(--accent-purple); width: 52px; height: 52px; }
.pf-thanks__check circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: pf-thanks-draw 0.7s 0.15s var(--ease-out-expo) forwards; }
.pf-thanks__check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: pf-thanks-draw 0.45s 0.6s var(--ease-out-expo) forwards; }
.pf-thanks .pf-intro__title { margin-top: 14px; }
.pf-thanks__bar { margin-top: 20px; height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; }
.pf-thanks__bar span { display: block; height: 100%; width: 0; background: var(--accent-orange); }
.pf-thanks__bar span.is-running { animation: pf-thanks-progress 8s linear forwards; }
.pf-thanks__redirect { margin: 8px 0 14px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--ink-light); }
@keyframes pf-thanks-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes pf-thanks-draw { to { stroke-dashoffset: 0; } }
@keyframes pf-thanks-progress { to { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .pf-thanks .pf-intro__box, .pf-thanks__check circle, .pf-thanks__check path { animation: none; stroke-dashoffset: 0; }
}

/* ── Imagen de Nia (Parámetros → Asistente Nia): llena cada marco; sin imagen se ve la "N" ── */
.nia-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.nc-avatar .nia-img { top: 0; left: 0; right: auto; bottom: auto; width: 100%; height: calc(100% - 5px); border-radius: 9px; z-index: 1; }
.nia-panel__avatar { overflow: visible; }
.nia-panel__avatar .nia-img { border-radius: 50%; }
.nia-launcher__mark:has(.nia-img) .nia-launcher__spark { display: none; }
.nia-launcher__dot { z-index: 2; }
.nc-avatar__dot { z-index: 2; }
.nia-panel__avatar-dot { z-index: 2; }
