/* ============================================================
   ERPCalc — Hoja de estilos global
   Archivo: assets/css/style.css
   Cubre: landing (index.html), calculadora, blog
   Convención: BEM (Block__Element--Modifier)
   ============================================================ */

/* ── Variables de marca ──────────────────────────────────── */
:root {
  /* Fondos */
  --bg:       #0c0e11;
  --s1:       #13161b;
  --s2:       #1a1e25;
  --s3:       #21262f;

  /* Bordes */
  --border:   rgba(255, 255, 255, 0.07);
  --border2:  rgba(255, 255, 255, 0.13);

  /* Colores de marca */
  --accent:   #e8602a;
  --accent-d: #bf4d1f;
  --green:    #1cb87a;
  --amber:    #d4853a;
  --red:      #e04848;
  --info:     #38bdf8;

  /* Tipografía */
  --text:   #edeae2;
  --muted:  #6e6c66;
  --dim:    #363430;
  --serif:  'DM Serif Display', Georgia, serif;
  --sans:   'DM Sans', system-ui, sans-serif;
  --mono:   'DM Mono', monospace;

  /* Espaciado */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  /* Transiciones */
  --transition:     0.3s ease;
  --transition-bar: 0.55s cubic-bezier(0.4, 0, 0.2, 1);

  /* Blog */
  --blog-max:  720px;
  --sidebar-w: 240px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ============================================================
   COMPONENTES GLOBALES
   Usados en landing, calculadora y blog
   ============================================================ */

/* ── Animaciones ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ── Reveal (scroll) ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Botones ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
}

.btn--primary:hover { background: var(--accent-d); }

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
}

.btn--outline:hover { background: var(--s2); }

/* ── Pills ───────────────────────────────────────────────── */
.pill {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}

.pill--red {
  background: rgba(224, 72, 72, 0.12);
  color: var(--red);
  border: 1px solid rgba(224, 72, 72, 0.25);
}

.pill--amber {
  background: rgba(212, 133, 58, 0.12);
  color: var(--amber);
  border: 1px solid rgba(212, 133, 58, 0.25);
}

.pill--green {
  background: rgba(28, 184, 122, 0.12);
  color: var(--green);
  border: 1px solid rgba(28, 184, 122, 0.25);
}

/* ── Sec-label (usado en calculadora y blog) ─────────────── */
.sec-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sec-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Badge (usado en calculadora) ────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(232, 96, 42, 0.28);
  border-radius: 20px;
  padding: 5px 14px;
  margin-bottom: 28px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── Risk rows ───────────────────────────────────────────── */
.risk-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

.risk-row:last-of-type { border: none; }
.risk-row__label  { color: var(--muted); }
/* calculadora usa .risk__lbl */
.risk__lbl { color: var(--muted); }

/* ============================================================
   NAV GLOBAL
   ============================================================ */

/* Nav landing (fixed) */
nav.nav-landing {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 clamp(20px, 4vw, 48px);
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(12, 14, 17, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

/* Nav blog (sticky) */
nav.nav,
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 14, 17, 0.93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.nav-brand,
.nav__brand {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  display: flex; align-items: center; gap: 8px;
}

.nav__brand { color: var(--accent); font-size: 16px; }

.nav-brand-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.nav-links,
.nav__links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link,
.nav__link {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition);
}

.nav-link:hover,
.nav__link:hover { color: var(--text); }

.nav-cta,
.nav__cta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.2s;
}

.nav-cta:hover,
.nav__cta:hover { background: var(--accent-d); }

/* ============================================================
   LANDING — index.html
   ============================================================ */

/* Hero */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 80px clamp(20px, 5vw, 80px) 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 100%);
}

.hero::after {
  content: '';
  position: absolute;
  top: 20%; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(232,96,42,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative; z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(232, 96, 42, 0.28);
  border-radius: 20px;
  padding: 5px 14px;
  margin-bottom: 32px;
  animation: fadeUp 0.6s ease both;
}

.hero-tag-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease infinite;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 5.5vw, 56px);
  font-weight: 400;
  line-height: 1.08;
  max-width: 720px;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  animation: fadeUp 0.6s ease 0.1s both;
}

h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(14px, 1.5vw, 17px);
  color: var(--muted);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 40px;
  animation: fadeUp 0.6s ease 0.2s both;
}

.hero-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--dim);
}

.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  animation: fadeUp 0.6s ease 0.3s both;
}

/* Stat strip */
.stat-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px clamp(20px, 5vw, 80px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.stat { text-align: center; animation: fadeUp 0.5s ease both; }
.stat:nth-child(1) { animation-delay: 0.05s; }
.stat:nth-child(2) { animation-delay: 0.12s; }
.stat:nth-child(3) { animation-delay: 0.19s; }
.stat:nth-child(4) { animation-delay: 0.26s; }

.stat-value {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 42px);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  line-height: 1.4;
}

/* Landing sections */
.landing-section {
  padding: clamp(60px, 8vw, 100px) clamp(20px, 5vw, 80px);
  max-width: 1100px;
  margin: 0 auto;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  max-width: 600px;
}

h2 em { font-style: italic; color: var(--accent); }

.section-sub {
  font-size: 14px;
  color: var(--muted);
  max-width: 500px;
  line-height: 1.75;
  margin-bottom: 48px;
}

/* Value cards */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.value-card {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--transition);
}

.value-card:hover { border-color: var(--border2); }
.value-card:hover::before { opacity: 1; }

.value-icon { font-size: 22px; margin-bottom: 16px; display: block; }

.value-card h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--text);
}

.value-card p { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* How it works */
.how-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.steps { display: flex; flex-direction: column; gap: 0; }

.step-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0 16px;
  padding-bottom: 32px;
  position: relative;
}

.step-item:last-child { padding-bottom: 0; }

.step-item::before {
  content: '';
  position: absolute;
  left: 23px; top: 40px;
  width: 1px; bottom: 0;
  background: var(--border);
}

.step-item:last-child::before { display: none; }

.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--s2);
  border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  flex-shrink: 0;
  position: relative; z-index: 1;
}

.step-content { padding-top: 12px; }
.step-content h4 { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 5px; }
.step-content p  { font-size: 12px; color: var(--muted); line-height: 1.6; }

/* Preview panel */
.how-preview {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.preview-bar {
  background: var(--s2);
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  display: flex; align-items: center; gap: 6px;
}

.preview-dot { width: 10px; height: 10px; border-radius: 50%; }
.preview-dot.r { background: #ef4444; }
.preview-dot.y { background: #f59e0b; }
.preview-dot.g { background: #22c55e; }

.preview-url { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-left: 6px; }

.preview-body { padding: 20px; }

.preview-kpi-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.preview-kpi {
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  position: relative; overflow: hidden;
}

.preview-kpi::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--accent);
}

.preview-kpi-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}

.preview-kpi-val { font-family: var(--serif); font-size: 20px; color: var(--red); line-height: 1; }

.preview-bar-list { display: flex; flex-direction: column; gap: 8px; }

.preview-bar-row { display: flex; align-items: center; gap: 8px; }

.preview-bar-label { font-size: 10px; color: var(--muted); min-width: 110px; }

.preview-bar-track { flex: 1; height: 3px; background: var(--s3); border-radius: 2px; overflow: hidden; }

.preview-bar-fill {
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 1.4s cubic-bezier(0.16,1,0.3,1);
}

.preview-bar-val { font-family: var(--mono); font-size: 10px; color: var(--text); min-width: 54px; text-align: right; }

/* Blog cards (landing) */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.blog-card {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-decoration: none;
  display: block;
  transition: border-color var(--transition), transform 0.2s;
  position: relative; overflow: hidden;
}

.blog-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--accent);
  opacity: 0;
  transition: opacity var(--transition);
}

.blog-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.blog-card:hover::before { opacity: 1; }

.blog-card-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.blog-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 10px;
}

.blog-card p { font-size: 12px; color: var(--muted); line-height: 1.65; margin-bottom: 20px; }

.blog-card-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: var(--dim);
}

.blog-card-arrow { color: var(--accent); font-size: 16px; transition: transform 0.2s; }
.blog-card:hover .blog-card-arrow { transform: translateX(4px); }

/* CTA final landing */
.cta-section {
  background: var(--s1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(60px, 8vw, 100px) clamp(20px, 5vw, 80px);
  text-align: center;
  position: relative; overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, rgba(232,96,42,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; }

.cta-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.cta-section p { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 36px; }

/* Footer landing */
.site-footer {
  padding: 24px clamp(20px, 5vw, 80px);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}

.footer-brand { font-family: var(--serif); font-size: 16px; color: var(--muted); }
.site-footer p { font-size: 11px; color: var(--dim); }

/* ============================================================
   CALCULADORA — calculadora/index.html
   ============================================================ */

.shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 28px 100px;
}

/* Calculadora hero */
.calc-hero {
  padding: 72px 0 56px;
  position: relative;
  animation: fadeUp 0.6s ease both;
}

.calc-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border2), transparent);
}

/* Sections calculadora */
.section {
  margin-top: 52px;
  animation: fadeUp 0.5s ease both;
  animation-delay: 0.08s;
}

/* Grids */
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

/* Panel */
.panel {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.panel--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ptitle {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

/* Slider groups */
.sg { margin-bottom: 16px; }
.sg:last-child { margin-bottom: 0; }

.sl { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.sl-txt { font-size: 12px; color: var(--muted); }

.sl-val {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  min-width: 80px;
  text-align: right;
}

/* Range inputs */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  background: var(--s3);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  cursor: pointer;
  transition: transform 0.15s;
}

input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.25); }

input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  cursor: pointer;
}

/* KPI cards (calculadora) */
.kpi {
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition);
}

.kpi--danger  { border-color: rgba(224, 72, 72, 0.3); }
.kpi--warning { border-color: rgba(212, 133, 58, 0.3); }

.kpi__lbl {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.kpi__val {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: color var(--transition);
}

.kpi__val--red   { color: var(--red); }
.kpi__val--amber { color: var(--amber); }
.kpi__val--green { color: var(--green); }

.kpi__sub { font-size: 10px; color: var(--dim); margin-top: 5px; }

.kpi__bar { position: absolute; bottom: 0; left: 0; right: 0; height: 2px; opacity: 0.6; }
.kpi__bar--red   { background: var(--red); }
.kpi__bar--amber { background: var(--amber); }

/* Bar chart (calculadora) */
.bar-list { display: flex; flex-direction: column; gap: 14px; }

.bar__meta { display: flex; justify-content: space-between; margin-bottom: 6px; }
.bar__name { font-size: 12px; color: var(--muted); }
.bar__val  { font-size: 12px; font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }

.bar__track { height: 4px; background: var(--s3); border-radius: 2px; overflow: hidden; }

.bar__fill {
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  transition: width var(--transition-bar);
  min-width: 3px;
}

/* Progress bar (calculadora) */
.pbar-wrap { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.pbar__lbl { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.pbar__row { display: flex; align-items: center; gap: 10px; }

.pbar__track { flex: 1; height: 6px; background: var(--s3); border-radius: 3px; overflow: hidden; }

.pbar__fill { height: 6px; background: var(--red); border-radius: 3px; transition: width 0.5s; width: 0%; }

.pbar__pct { font-size: 12px; font-weight: 500; color: var(--red); min-width: 36px; text-align: right; }

/* Compare table */
.compare-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.compare-row:last-child { border: none; }

.compare-row--total {
  border-top: 1px solid var(--border2);
  padding-top: 16px;
  margin-top: 4px;
  border-bottom: none;
}

.compare__lbl { color: var(--muted); }
.compare__lbl--strong { font-weight: 500; color: var(--text); }
.compare__val { font-weight: 500; font-variant-numeric: tabular-nums; }
.compare__val--red   { color: var(--red); }
.compare__val--green { color: var(--green); }
.compare__val--big   { font-family: var(--serif); font-size: 22px; font-weight: 400; }

/* Multiplier */
.mult__sub {
  font-size: 10px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
}

.mult__num {
  font-family: var(--serif);
  font-size: 60px; font-weight: 400;
  color: var(--green); line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: color var(--transition);
}

.mult__desc { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* Payback box */
.payback-box {
  margin-top: 20px; width: 100%;
  background: var(--s2);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--border);
}

.payback__lbl { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.payback__val { font-family: var(--serif); font-size: 26px; color: var(--green); }

/* CTA calculadora */
.cta {
  margin-top: 52px;
  padding: 36px;
  background: var(--s1);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}

.cta h3 { font-family: var(--serif); font-size: 24px; font-weight: 400; margin-bottom: 6px; }
.cta p  { font-size: 13px; color: var(--muted); }
.cta__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Footer calculadora */
.footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}

.footer__brand { font-family: var(--serif); font-size: 18px; color: var(--muted); }
.footer__note  { font-size: 11px; color: var(--dim); max-width: 480px; }

/* ============================================================
   BLOG — blog/*.html
   ============================================================ */

/* Progress bar lectura */
.progress-bar {
  position: fixed; top: 0; left: 0;
  z-index: 200;
  height: 2px;
  background: var(--accent);
  width: 0%;
  transition: width 0.1s linear;
}

/* Divider */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
  margin: 0 28px;
}

/* Post hero */
.post-hero {
  max-width: calc(var(--blog-max) + var(--sidebar-w) + 2.5rem + 56px);
  margin: 0 auto;
  padding: 56px 28px 40px;
  animation: fadeUp 0.6s ease both;
}

.post-hero__tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(232, 96, 42, 0.28);
  border-radius: 20px;
  padding: 5px 14px;
  margin-bottom: 24px;
}

.post-hero__tag-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.post-hero h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 400; line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 640px; margin-bottom: 16px;
  animation: none;
}

.post-hero h1 em { font-style: italic; color: var(--accent); }

.post-hero__sub {
  font-size: 14px; color: var(--muted);
  max-width: 560px; line-height: 1.75; margin-bottom: 24px;
}

.post-hero__meta {
  display: flex; gap: 24px; flex-wrap: wrap;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--dim);
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* Post layout */
.post-layout {
  display: grid;
  grid-template-columns: 1fr min(var(--blog-max), 100%) var(--sidebar-w);
  gap: 0 2.5rem;
  padding: 0 28px;
  max-width: calc(var(--blog-max) + var(--sidebar-w) + 2.5rem + 56px);
  margin: 0 auto;
}

.post-layout__article { grid-column: 2; padding: 3rem 0 5rem; }
.post-layout__sidebar  { grid-column: 3; padding: 3rem 0; }

/* TOC */
.toc {
  position: sticky; top: 68px;
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-size: 12px;
}

.toc__title {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}

.toc__list { list-style: none; display: flex; flex-direction: column; gap: 6px; }

.toc__link {
  color: var(--muted); text-decoration: none;
  transition: color var(--transition);
  display: flex; align-items: baseline; gap: 8px; line-height: 1.4;
}

.toc__link::before { content: attr(data-num); font-size: 10px; color: var(--dim); flex-shrink: 0; }
.toc__link:hover, .toc__link.is-active { color: var(--accent); }

/* Article typography */
.post-layout__article h2 {
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 400; line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text); margin-bottom: 14px;
}

.post-layout__article h3 {
  font-family: var(--serif);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 400; color: var(--text);
  margin: 36px 0 10px;
}

.post-layout__article p {
  font-size: 14px; color: #c8c4be;
  margin-bottom: 14px; line-height: 1.8;
}

.post-layout__article strong { color: var(--text); font-weight: 500; }
.post-layout__article em     { color: var(--amber); font-style: normal; }

/* Callout */
.callout {
  border-left: 2px solid var(--accent);
  background: var(--s1);
  padding: 14px 18px;
  margin: 20px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.callout--warn { border-color: var(--amber); }
.callout--ok   { border-color: var(--green); }
.callout--info { border-color: var(--info); }

.callout p { margin: 0; font-size: 13px; color: var(--text); line-height: 1.65; }
.callout strong           { color: var(--accent); }
.callout--warn strong     { color: var(--amber); }
.callout--ok   strong     { color: var(--green); }
.callout--info strong     { color: var(--info); }

/* Step (blog) */
.step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0 14px;
  margin: 16px 0;
}

.step__num {
  font-family: var(--serif);
  font-size: 28px; font-weight: 400;
  color: var(--dim); line-height: 1; padding-top: 2px;
}

.step__body h4 { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 4px; }
.step__body p  { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.6; }

/* Param card */
.param-grid { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 24px; }

.param-card {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  align-items: start;
}

.param-card__name { font-size: 13px; font-weight: 500; color: var(--text); }

.param-card__type {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 20px; border: 1px solid; white-space: nowrap;
}

.param-card__type--number { color: var(--info);  border-color: rgba(56,189,248,.3);  background: rgba(56,189,248,.07); }
.param-card__type--money  { color: var(--green); border-color: rgba(28,184,122,.3);  background: rgba(28,184,122,.07); }
.param-card__type--time   { color: var(--amber); border-color: rgba(212,133,58,.3);  background: rgba(212,133,58,.07); }

.param-card__desc { font-size: 12px; color: var(--muted); line-height: 1.55; grid-column: 1 / -1; }

.param-card__tip {
  font-size: 11px; color: #c8c4be; line-height: 1.5;
  grid-column: 1 / -1;
  background: var(--s2);
  border-radius: var(--radius-sm);
  padding: 8px 10px; margin-top: 2px;
}

.param-card__tip::before { content: '💡 '; }

/* Mock screen */
.mock-screen {
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden; margin: 20px 0;
}

.mock-screen__topbar {
  background: var(--s1);
  border-bottom: 1px solid var(--border);
  padding: 8px 14px;
  display: flex; align-items: center; gap: 6px;
}

.mock-screen__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--s3); }
.mock-screen__dot--r { background: #ef4444; }
.mock-screen__dot--y { background: #f59e0b; }
.mock-screen__dot--g { background: #22c55e; }

.mock-screen__url { font-size: 11px; color: var(--muted); margin-left: 6px; font-family: monospace; }
.mock-screen__body { padding: 16px 20px; }

.mock-screen__group {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin: 12px 0 8px;
}

.mock-screen__row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg); margin-bottom: 6px;
}

.mock-screen__label { font-size: 12px; color: var(--muted); }

.mock-screen__val {
  font-size: 13px; font-weight: 500; color: var(--text);
  background: var(--s1);
  padding: 3px 10px; border-radius: 4px;
  border: 1px solid var(--accent);
  font-variant-numeric: tabular-nums;
}

/* Result mock */
.result-mock { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }

.result-mock__card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  position: relative; overflow: hidden;
}

.result-mock__card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--accent);
}

.result-mock__label {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}

.result-mock__value {
  font-family: var(--serif);
  font-size: 22px; font-weight: 400;
  color: var(--red); line-height: 1;
  font-variant-numeric: tabular-nums;
}

.result-mock__sub { font-size: 10px; color: var(--dim); margin-top: 4px; }

/* KPI cards (blog) */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 20px 0; }

.kpi-card {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  position: relative; overflow: hidden;
}

.kpi-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--accent);
}

.kpi-card--warn::before { background: var(--amber); }
.kpi-card--ok::before   { background: var(--green); }

.kpi-card__label {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}

.kpi-card__value {
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 26px); font-weight: 400;
  color: var(--red); line-height: 1;
  font-variant-numeric: tabular-nums; margin-bottom: 4px;
}

.kpi-card--warn .kpi-card__value { color: var(--amber); }
.kpi-card--ok   .kpi-card__value { color: var(--green); }

.kpi-card__desc { font-size: 11px; color: var(--dim); line-height: 1.4; }

/* Caso card */
.caso-card { background: var(--s1); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin: 20px 0; }

.caso-card__header {
  background: var(--s2);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex; align-items: center; gap: 10px;
}

.caso-card__badge {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
  background: rgba(232, 96, 42, 0.1);
  border: 1px solid rgba(232, 96, 42, 0.28);
  padding: 3px 10px; border-radius: 20px;
}

.caso-card__title { font-size: 12px; color: var(--muted); }
.caso-card__body  { padding: 16px; }

/* Data table */
.data-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 13px; }

.data-table thead tr { border-bottom: 1px solid var(--border); }

.data-table th {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); padding: 8px; text-align: left;
}

.data-table td {
  padding: 10px 8px; color: #c8c4be;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: top;
}

.data-table tr:last-child td { border-bottom: none; }

.data-table .amount { font-variant-numeric: tabular-nums; color: var(--accent); text-align: right; white-space: nowrap; }

.data-table .total-row td { background: var(--s2); color: var(--text); font-weight: 500; border-top: 1px solid var(--border2); }
.data-table .total-row .amount { color: var(--green); font-family: var(--serif); font-size: 16px; }

/* Bar list (blog) */
.bar-list--blog { display: flex; flex-direction: column; gap: 12px; margin: 16px 0 20px; }

.bar-list__row   { display: flex; align-items: center; gap: 12px; }
.bar-list__label { font-size: 12px; color: var(--muted); min-width: 200px; }
.bar-list__track { flex: 1; height: 4px; background: var(--s3); border-radius: 2px; overflow: hidden; }

.bar-list__fill {
  height: 4px; background: var(--accent); border-radius: 2px;
  transition: width var(--transition-bar);
}

.bar-list__amount { font-size: 12px; font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; min-width: 72px; text-align: right; }

/* Result guide */
.result-guide { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }

.result-guide__row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 6px 14px;
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px; align-items: start;
}

.result-guide__metric  { font-size: 12px; font-weight: 500; color: var(--accent); font-variant-numeric: tabular-nums; }
.result-guide__explain { font-size: 12px; color: #c8c4be; line-height: 1.6; }

.result-guide__formula {
  grid-column: 1 / -1;
  font-family: monospace; font-size: 11px; color: var(--muted);
  background: var(--s2); padding: 5px 8px; border-radius: 4px;
}

/* Error table */
.error-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 12px; }

.error-table th {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); padding: 8px; text-align: left;
  border-bottom: 1px solid var(--border);
}

.error-table td {
  padding: 10px 8px; color: #c8c4be;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: top; line-height: 1.55;
}

.error-table tr:last-child td { border-bottom: none; }

.tag {
  display: inline-block;
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 20px; border: 1px solid; margin-bottom: 5px;
}

.tag--mal  { color: var(--red);   border-color: rgba(224,72,72,.3);  background: rgba(224,72,72,.08); }
.tag--bien { color: var(--green); border-color: rgba(28,184,122,.3); background: rgba(28,184,122,.08); }

/* Interpret grid */
.interpret-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 16px 0; }

.interpret-card { background: var(--s1); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; }

.interpret-card__num { font-family: var(--serif); font-size: 36px; font-weight: 400; color: var(--dim); line-height: 1; margin-bottom: 8px; }

.interpret-card h4 { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.interpret-card p  { font-size: 12px; color: var(--muted); line-height: 1.55; margin: 0; }

/* Post CTA */
.post-cta {
  margin: 48px 0 24px;
  background: var(--s1);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 36px; text-align: center;
  position: relative; overflow: hidden;
}

.post-cta::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--amber));
}

.post-cta__eyebrow {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}

.post-cta h2 { font-size: clamp(20px, 3vw, 28px) !important; margin-bottom: 10px; }
.post-cta p  { color: var(--muted); max-width: 460px; margin: 0 auto 24px; font-size: 13px; }

/* Post footer */
.post-footer {
  border-top: 1px solid var(--border);
  padding: 24px 28px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}

.post-footer p { font-size: 11px; color: var(--dim); margin: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 960px) {
  .post-layout { grid-template-columns: 1fr; padding: 0 20px; }
  .post-layout__article { grid-column: 1; }
  .post-layout__sidebar { display: none; }
}

@media (max-width: 760px) {
  .how-wrap    { grid-template-columns: 1fr; gap: 40px; }
  .how-preview { display: none; }
  .nav-links .nav-link { display: none; }
}

@media (max-width: 680px) {
  .g2, .g4            { grid-template-columns: 1fr 1fr; }
  h1                   { font-size: 32px; }
  .calc-hero           { padding: 48px 0 36px; }
  .cta                 { flex-direction: column; align-items: flex-start; }
  .result-mock         { grid-template-columns: 1fr; }
  .result-guide__row   { grid-template-columns: 1fr; }
  .bar-list__label     { min-width: 120px; font-size: 11px; }
  .post-hero           { padding: 36px 20px 28px; }
  .post-cta            { padding: 24px 20px; }
  .kpi-grid            { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { justify-content: center; }
}

@media (max-width: 400px) {
  .g2, .g4  { grid-template-columns: 1fr; }
  .shell    { padding: 0 16px 80px; }
  .kpi-grid { grid-template-columns: 1fr; }
}

/* ── Print ───────────────────────────────────────────────── */
@media print {
  body { background: #fff; color: #111; }

  .progress-bar,
  .nav, nav.nav-landing,
  .post-layout__sidebar,
  .post-cta,
  .cta, .btn { display: none; }

  .panel, .kpi, .payback-box,
  .callout, .param-card, .caso-card {
    border: 1px solid #ddd;
    background: #f9f9f9;
  }

  .calc-hero::after { display: none; }
}
