/* ============================================================
   MASTER STYLESHEET — VERSIÓN CORREGIDA
   (Prioriza la interfaz principal sobre el landing)
   ============================================================ */

/* ----- VARIABLES (unificadas) ----- */
:root {
  --void: #080808;
  --void-mid: #0f0f0f;
  --void-soft: #161616;
  --void-2: #1a1a1a;
  --gold: #C8A951;
  --gold-dim: #9a7f3a;
  --gold-faint: rgba(200,169,81,0.07);
  --neon: #E6FF00;
  --neon-dim: #b8cc00;
  --eco: #4a9e6a;
  --pol: #5a8fe8;
  --cul: #c85ae8;
  --cog: #E6FF00;
  --geo: #4ae8d8;
  --red: #e85a4f;
  --orange: #e87c4f;
  --text: #d4d4d4;
  --text-dim: #737373;
  --text-faint: #2e2e2e;
  --border: #1e1e1e;
  --border2: #252525;
  --border-active: #2e2e2e;
  --font: 'IBM Plex Mono', monospace;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-sans: 'IBM Plex Sans', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --easing: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  height: 100%;
  font-family: var(--font);
  background: var(--void);
  color: var(--text);
}

body {
  cursor: crosshair;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ----- NOISE TEXTURE (única) ----- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
  opacity: 0.4;
}

/* ----- SCROLLBAR ----- */
::-webkit-scrollbar { width: 3px; height: 3px; }
::-webkit-scrollbar-thumb { background: var(--border2); }

/* ========== NAV (INTERFAZ PRINCIPAL - PRIORIDAD) ========== */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(8,8,8,0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.nav-logo {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
}
.nav-logo span { color: var(--text-faint); }

.nav-center {
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-center::before, .nav-center::after {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--border2);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color .2s;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--neon); }

/* ========== TICKER ========== */
#ticker {
  position: fixed;
  top: 48px;
  left: 0;
  right: 0;
  z-index: 199;
  height: 28px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--void-mid);
}
.ticker-track {
  display: flex;
  align-items: center;
  height: 100%;
  animation: tickScroll 40s linear infinite;
  white-space: nowrap;
}
.ticker-item {
  font-size: 9px;
  letter-spacing: .14em;
  color: var(--text-faint);
  padding: 0 24px;
  border-right: 1px solid var(--border);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ticker-item .val { color: var(--gold); }
.ticker-item .val.warn { color: var(--orange); }
.ticker-item .val.crit { color: var(--red); }
.ticker-item .val.ok { color: var(--eco); }
@keyframes tickScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========== FILTER BAR ========== */
#filterbar {
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  z-index: 198;
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  background: rgba(8,8,8,0.9);
}
.filter-btn {
  font-family: var(--font);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 5px 14px;
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
  transition: all .2s;
}
.filter-btn:hover { color: var(--text-dim); border-color: var(--text-faint); }
.filter-btn.active { border-color: currentColor; }
.filter-btn[data-f="ALL"].active { color: var(--gold); }
.filter-btn[data-f="ECO"].active { color: var(--eco); }
.filter-btn[data-f="POL"].active { color: var(--pol); }
.filter-btn[data-f="CUL"].active { color: var(--cul); }
.filter-btn[data-f="COG"].active { color: var(--cog); }
.filter-btn[data-f="GEO"].active { color: var(--geo); }
.filter-spacer { flex: 1; }
.filter-timestamp { font-size: 9px; color: var(--text-faint); letter-spacing: .1em; }

/* ========== MAIN LAYOUT ========== */
#main {
  position: fixed;
  top: 116px;
  left: 0;
  right: 0;
  bottom: 160px;
  display: grid;
  grid-template-columns: 1fr 320px;
  overflow: hidden;
}

/* ========== MAP PANEL ========== */
#map-panel {
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--border);
}
#worldCanvas { display: block; width: 100%; height: 100%; }
.map-overlay-label {
  position: absolute;
  font-size: 8px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-faint);
  pointer-events: none;
}
#map-tag { top: 16px; left: 16px; display: flex; align-items: center; gap: 8px; }
#map-tag::after { content: ''; width: 16px; height: 1px; background: var(--border2); }
#map-nodes-count {
  position: absolute;
  bottom: 16px;
  right: 16px;
  font-size: 9px;
  color: var(--text-faint);
  letter-spacing: .1em;
}
#map-projection {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-size: 8px;
  color: var(--text-faint);
  letter-spacing: .1em;
}
.node-tooltip {
  position: absolute;
  display: none;
  z-index: 50;
  padding: 10px 14px;
  background: rgba(8,8,8,0.95);
  border: 1px solid var(--border2);
  font-size: 10px;
  color: var(--text-dim);
  pointer-events: none;
  backdrop-filter: blur(8px);
  min-width: 160px;
}
.node-tooltip .tt-name { color: var(--gold); font-weight: 500; margin-bottom: 6px; font-size: 10px; }
.node-tooltip .tt-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 9px;
  color: var(--text-faint);
  padding: 2px 0;
}
.node-tooltip .tt-row span:last-child { color: var(--text-dim); }

/* ========== CARDS PANEL ========== */
#cards-panel {
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--void-mid);
}
#cards-panel::-webkit-scrollbar { width: 2px; }
#cards-panel::-webkit-scrollbar-thumb { background: var(--border2); }
.cards-header {
  font-size: 8px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 4px 0 8px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.score-card {
  background: var(--void-soft);
  border: 1px solid var(--border);
  padding: 14px 16px;
  cursor: pointer;
  transition: all .2s;
  position: relative;
  overflow: hidden;
}
.score-card:hover { border-color: var(--border2); background: var(--void-2); }
.card-top { display: flex; justify-content: space-between; align-items: start; margin-bottom: 10px; }
.card-id { font-size: 8px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-faint); }
.card-status {
  font-size: 8px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--card-color, var(--gold));
  display: flex;
  align-items: center;
  gap: 5px;
}
.card-status::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.card-value {
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  color: var(--card-color, var(--gold));
  letter-spacing: -.02em;
  margin-bottom: 2px;
}
.card-unit { font-size: 9px; color: var(--text-faint); margin-bottom: 10px; }
.card-name { font-size: 10px; font-weight: 500; color: var(--text); margin-bottom: 4px; }
.card-desc { font-size: 9px; color: var(--text-faint); line-height: 1.6; font-weight: 300; }
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.card-trend { font-size: 9px; color: var(--text-faint); display: flex; align-items: center; gap: 4px; }
.trend-up { color: var(--red); }
.trend-dn { color: var(--eco); }
.trend-st { color: var(--text-faint); }
.card-sparkline { opacity: .7; }
.card-zoom-hint {
  font-size: 8px;
  color: var(--text-faint);
  letter-spacing: .1em;
  opacity: 0;
  transition: opacity .2s;
}
.score-card:hover .card-zoom-hint { opacity: 1; }

/* ========== MIHM PANEL ========== */
#mihm-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: var(--void-mid);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 280px 1fr 200px;
  overflow: hidden;
}
.mihm-formula { padding: 20px 24px; border-right: 1px solid var(--border); display: flex; flex-direction: column; justify-content: center; }
.mihm-label {
  font-size: 8px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mihm-label::before { content: ''; width: 16px; height: 1px; background: var(--gold-dim); }
.mihm-eq { font-size: 14px; font-weight: 300; color: #f0f0f0; letter-spacing: .04em; margin-bottom: 8px; }
.mihm-eq span.gold { color: var(--gold); }
.mihm-eq span.dim { color: var(--text-faint); }
.mihm-result { font-size: 32px; font-weight: 300; color: var(--gold); line-height: 1; }
.mihm-result-label { font-size: 8px; color: var(--text-faint); margin-top: 4px; letter-spacing: .1em; }
.mihm-vars { padding: 16px 20px; display: flex; flex-direction: column; justify-content: center; gap: 8px; overflow-x: auto; }
.var-row { display: grid; grid-template-columns: 52px 80px 1fr 44px; gap: 8px; align-items: center; }
.var-key { font-size: 9px; font-weight: 600; color: var(--gold); letter-spacing: .1em; }
.var-val { font-size: 11px; color: var(--text); font-weight: 400; }
.var-bar-track { height: 2px; background: var(--border2); position: relative; }
.var-bar-fill { position: absolute; top: 0; left: 0; height: 100%; transition: width 1s var(--ease); }
.var-pct { font-size: 8px; color: var(--text-faint); text-align: right; letter-spacing: .05em; }
.mihm-status { padding: 20px 24px; border-left: 1px solid var(--border); display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.status-label { font-size: 8px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-faint); }
.status-value { font-size: 13px; color: var(--text); font-weight: 500; }
.status-value.crit { color: var(--red); }
.status-value.warn { color: var(--orange); }
.status-value.ok { color: var(--eco); }
.status-value.info { color: var(--pol); }
.status-bar { height: 1px; background: var(--border2); position: relative; overflow: hidden; }
.status-bar-fill { position: absolute; inset: 0; animation: statusPulse 3s ease-in-out infinite; }
@keyframes statusPulse { 0%,100%{opacity:.4} 50%{opacity:1} }

/* ========== MODAL ========== */
#modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8,8,8,0.88);
  backdrop-filter: blur(6px);
}
#modal.open { display: flex; }
#modal-box {
  background: var(--void-soft);
  border: 1px solid var(--border2);
  width: min(740px, 94vw);
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  animation: modalIn .4s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.modal-top-bar { height: 3px; background: linear-gradient(90deg, var(--modal-color, var(--gold)), transparent); }
.modal-header { padding: 24px 28px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: start; }
.modal-subtitle { font-size: 8px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 8px; }
.modal-title { font-size: 22px; font-weight: 300; color: #f0f0f0; }
.modal-value-block { text-align: right; }
.modal-big-val { font-size: 40px; font-weight: 300; line-height: 1; }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 16px;
  cursor: pointer;
  font-family: var(--font);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  transition: all .2s;
}
.modal-close:hover { border-color: var(--text-faint); color: var(--text); }
.modal-body { padding: 24px 28px; }
.modal-section { margin-bottom: 28px; }
.modal-section-label {
  font-size: 8px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.modal-sub-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.modal-sub-card { padding: 14px 16px; border: 1px solid var(--border); background: var(--void); }
.modal-sub-label { font-size: 8px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 6px; }
.modal-sub-val { font-size: 18px; font-weight: 300; margin-bottom: 4px; }
.modal-sub-desc { font-size: 9px; color: var(--text-faint); line-height: 1.6; font-weight: 300; }
.modal-chart-area { height: 80px; border: 1px solid var(--border); background: var(--void); position: relative; overflow: hidden; margin-bottom: 8px; }
.modal-chart-label { font-size: 8px; color: var(--text-faint); text-align: right; letter-spacing: .1em; }
.modal-interpretation { padding: 16px; border: 1px solid var(--border); background: var(--void); }
.modal-interpretation p { font-size: 11px; color: var(--text-dim); line-height: 1.9; font-weight: 300; }
.modal-interpretation p+p { margin-top: 10px; }
.modal-footer { padding: 16px 28px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal-cta {
  background: var(--neon);
  color: var(--void);
  font-family: var(--font);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.modal-cta:hover { background: #fff; }
.modal-node-list { display: flex; gap: 6px; flex-wrap: wrap; }
.modal-node-tag { font-size: 8px; padding: 3px 8px; border: 1px solid var(--border); color: var(--text-faint); letter-spacing: .1em; }

/* ========== PLACEHOLDER ========== */
.ph {
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-faint);
  opacity: .5;
}

/* ========== LANDING / HERO (sin conflictos) ========== */
/* Nota: estas clases se usan en páginas separadas o secciones distintas */

.hero-left { padding: 140px 48px 80px; display: flex; flex-direction: column; justify-content: center; }
.hero-h1 { font-family: var(--font-mono); font-size: clamp(32px, 4vw, 52px); font-weight: 300; line-height: 1.15; color: #f0f0f0; margin-bottom: 32px; }
.hero-h1 em { font-style: normal; color: var(--gold); }
.hero-sub { font-size: 13px; line-height: 1.8; color: var(--text-dim); max-width: 420px; margin-bottom: 48px; }
.btn-primary {
  background: var(--neon);
  color: var(--void);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 32px;
  border: none;
  cursor: pointer;
  transition: all 0.2s var(--easing);
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover { background: #fff; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 0;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-ghost:hover { color: var(--text); }
.btn-ghost::after { content: '→'; transition: transform 0.2s; }
.btn-ghost:hover::after { transform: translateX(4px); }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); }
.service-card { padding: 40px 36px; border-right: 1px solid var(--border); transition: background 0.3s; }
.service-card:last-child { border-right: none; }
.service-card:hover { background: var(--void-soft); }
.service-name { font-size: 15px; font-weight: 500; color: #f0f0f0; margin-bottom: 12px; }
.service-desc { font-size: 11px; color: var(--text-dim); line-height: 1.8; font-weight: 300; }

.process-step { display: grid; grid-template-columns: 60px 1fr; gap: 32px; padding: 40px 0; border-bottom: 1px solid var(--border); }
.step-num-large { font-size: 40px; font-weight: 300; color: var(--border-active); line-height: 1; }
.step-title { font-size: 15px; font-weight: 500; color: #f0f0f0; margin-bottom: 10px; }

.proof-stat { font-size: 48px; font-weight: 300; color: var(--gold); line-height: 1; margin-bottom: 8px; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-input, .form-select, .form-textarea {
  background: var(--void-soft);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 14px 16px;
  width: 100%;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--gold-dim); }
.form-submit {
  background: var(--neon);
  color: var(--void);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 18px 36px;
  border: none;
  cursor: pointer;
  width: 100%;
}

footer { border-top: 1px solid var(--border); padding: 32px 48px; display: flex; justify-content: space-between; align-items: center; }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  #main { grid-template-columns: 1fr; bottom: 280px; }
  #mihm-panel { grid-template-columns: 1fr; height: auto; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { border-right: none; border-bottom: 1px solid var(--border); }
  .process-step { grid-template-columns: 1fr; gap: 16px; }
  .hero-left { padding: 100px 24px 60px; }
  .modal-sub-grid { grid-template-columns: 1fr; }
}
/* Agrega estas líneas a tu style existente en sistema.html */

/* ── CURSOR FOLLOWER ── */
.cursor-dot {
  position: fixed;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

/* ── SCROLL EFFECTS MEJORADOS ── */
nav.scrolled {
  border-color: var(--border);
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(12px);
}

/* ── BOTONES COMPLETOS ── */
.btn-primary {
  background: var(--neon);
  color: var(--void);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 32px;
  border: none;
  cursor: pointer;
  transition: all 0.2s var(--easing);
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 0;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-ghost:hover {
  color: var(--text);
}

.btn-ghost::after {
  content: '→';
  transition: transform 0.2s;
}

.btn-ghost:hover::after {
  transform: translateX(4px);
}

/* ── MEJORAS EN BLOQUES ── */
.block {
  transition: opacity 0.5s var(--easing), transform 0.5s var(--easing);
}

/* ── RESPONSIVE MEJORADO ── */
@media (max-width: 768px) {
  .block-cta {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn-primary, .btn-ghost {
    text-align: center;
    justify-content: center;
  }
  
  .postulate {
    padding: 24px;
  }
  
  .postulate-text {
    font-size: 11px;
  }
}
.page-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 140px 48px 120px;
}
.breadcrumb {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.breadcrumb a {
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--text-dim); }
.breadcrumb span { color: var(--text-faint); }
.block {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.5s var(--easing) forwards;
}
.block:first-of-type { padding-top: 0; }
.block:last-of-type { border-bottom: none; }
.block:nth-child(1) { animation-delay: 0.05s; }
.block:nth-child(2) { animation-delay: 0.12s; }
.block:nth-child(3) { animation-delay: 0.19s; }
.block:nth-child(4) { animation-delay: 0.26s; }
.block:nth-child(5) { animation-delay: 0.33s; }

.block-label {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.block-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--gold-dim);
}

.block-title {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 300;
  color: #f0f0f0;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.block-body {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 2;
  font-weight: 300;
}
.block-body p { margin-bottom: 16px; }
.block-body p:last-child { margin-bottom: 0; }

.block-cta {
  padding-top: 56px;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.term-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 24px;
}
.term-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: start;
  transition: padding-left 0.2s;
  cursor: default;
}
.term-item:hover { padding-left: 6px; }
.term-item:last-child { border-bottom: none; }
.term-key {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.08em;
  padding-top: 2px;
}
.term-def {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.8;
  font-weight: 300;
}
.postulate {
  padding: 36px;
  border: 1px solid var(--border);
  background: var(--void-soft);
  position: relative;
  overflow: hidden;
  margin-top: 24px;
}
.postulate::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-dim), transparent);
}
.postulate-text {
  font-size: 13px;
  font-weight: 300;
  color: #f0f0f0;
  line-height: 1.85;
  letter-spacing: 0.01em;
}
.postulate-text em {
  font-style: italic;
  color: var(--gold);
}
.layer-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.layer-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
  transition: padding-left 0.2s;
}
.layer-item:hover { padding-left: 6px; }
.layer-item:last-child { border-bottom: none; }
.layer-tag {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-top: 3px;
  line-height: 1.6;
}
.layer-name {
  font-size: 12px;
  font-weight: 500;
  color: #f0f0f0;
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}
.layer-desc {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 300;
  line-height: 1.8;
}
.nav-dropdown {
  position: relative;
}
.nav-dropdown-menu {
  position: absolute;
  top: 120%;
  left: 0;
  min-width: 180px;
  background: var(--void-mid);
  border: 1px solid var(--border);
  display: none;
  flex-direction: column;
  z-index: 300;
}
.nav-dropdown-menu a {
  padding: 10px 14px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--text-dim);
  transition: 0.2s;
}
.nav-dropdown-menu a:hover {
  color: var(--text);
  background: var(--void-soft);
}
.nav-dropdown:hover .nav-dropdown-menu {
  display: flex;
}
#sf-nodes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
/* ============================================================
   ESTILOS PARA PÁGINA DE CONTACTO / APLICAR
   ============================================================ */

/* Layout de dos columnas */
.page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Panel izquierdo */
.left-panel {
  padding: 130px 64px 80px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.left-top {
  flex: 1;
}

.left-tag {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.left-tag::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--gold-dim);
}

.left-h1 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #f0f0f0;
  margin-bottom: 24px;
}

.left-h1 span {
  color: var(--gold);
}

.left-body {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.9;
  font-weight: 300;
  max-width: 380px;
  margin-bottom: 40px;
}

/* Garantías */
.guarantees {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 40px;
}

.guarantee-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 14px;
  align-items: start;
}

.guarantee-item:last-child {
  border-bottom: none;
}

.g-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-dim);
  margin-top: 6px;
}

.g-text {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.7;
  font-weight: 300;
}

.g-text strong {
  color: #f0f0f0;
  font-weight: 500;
}

/* Identidad */
.identity {
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.identity-name {
  font-size: 13px;
  color: #f0f0f0;
  font-weight: 500;
  margin-bottom: 4px;
}

.identity-role {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 300;
  margin-bottom: 2px;
}

.identity-alias {
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.08em;
}

/* Panel derecho */
.right-panel {
  padding: 130px 48px 80px 64px;
  overflow-y: auto;
}

/* Selector de intención */
.intent-selector {
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.4s var(--easing) 0.1s forwards;
}

.intent-label {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.intent-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.intent-btn {
  background: var(--void-soft);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 16px 18px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1.5;
  font-weight: 300;
}

.intent-btn:hover {
  border-color: var(--gold-dim);
  color: var(--text);
}

.intent-btn.selected {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(200, 169, 81, 0.06);
}

.intent-icon {
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
}

.intent-name {
  display: block;
  font-weight: 500;
  margin-bottom: 4px;
}

.intent-desc {
  display: block;
  font-size: 10px;
  color: inherit;
  opacity: 0.7;
}

/* Urgencia */
.urgency-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.urgency-btn {
  background: var(--void-soft);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.urgency-btn:hover {
  border-color: var(--gold-dim);
  color: var(--text);
}

.urgency-btn.selected {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(200, 169, 81, 0.06);
}

/* Divisor alternativo */
.alt-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 8px 0;
}

.alt-divider::before,
.alt-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.alt-divider span {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* Contacto directo */
.direct-contact {
  padding: 20px 24px;
  border: 1px solid var(--border);
  background: var(--void-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.direct-label {
  font-size: 10px;
  color: var(--text-dim);
  font-weight: 300;
}

.direct-email {
  font-size: 11px;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.direct-email:hover {
  color: #f0f0f0;
}

/* Mensaje de éxito */
.form-success {
  display: none;
  padding: 48px 36px;
  border: 1px solid var(--border);
  text-align: center;
  background: var(--void-soft);
  position: relative;
  overflow: hidden;
}

.form-success::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--neon));
}

.form-success.show {
  display: block;
  animation: fadeUp 0.5s var(--easing);
}

.success-icon {
  font-size: 28px;
  margin-bottom: 20px;
}

.success-title {
  font-size: 18px;
  font-weight: 300;
  color: #f0f0f0;
  margin-bottom: 12px;
}

.success-body {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.9;
  font-weight: 300;
}

.success-detail {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 10px;
  color: var(--text-faint);
  line-height: 1.8;
  letter-spacing: 0.04em;
}

/* Responsive para página de contacto */
@media (max-width: 960px) {
  .page {
    grid-template-columns: 1fr;
  }
  .left-panel {
    position: static;
    height: auto;
    padding: 120px 24px 48px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .right-panel {
    padding: 48px 24px 80px;
  }
  .intent-options {
    grid-template-columns: 1fr;
  }
  .direct-contact {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* ============================================================
   ESTILOS PARA PÁGINA DE DIAGNÓSTICO / RESULTADO
   ============================================================ */

/* Badge de nivel */
.nivel-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.nivel-indicator {
  width: 3px;
  height: 24px;
  background: var(--gold);
}
.nivel-text {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold);
}

/* Header de diagnóstico */
.diag-header {
  margin-bottom: 48px;
}
.diag-score-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 20px;
}
.diag-score-num {
  font-size: 48px;
  font-weight: 300;
  line-height: 1;
  color: var(--gold);
}
.diag-score-denom {
  font-size: 14px;
  color: var(--text-faint);
}
.diag-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 300;
  line-height: 1.3;
  color: #f0f0f0;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.diag-subtitle {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.8;
  font-weight: 300;
}

/* Barra de fricción */
.friction-bar-wrap {
  margin: 40px 0 56px;
}
.friction-bar-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.friction-bar-key {
  color: var(--text-faint);
}
.friction-bar-val {
  color: var(--gold);
}
.friction-bar-track {
  height: 3px;
  background: var(--border2);
  position: relative;
  margin-bottom: 8px;
}
.friction-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  transition: width 1.2s var(--easing);
  background: var(--accent, var(--gold));
}
.friction-bar-zones {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: var(--text-faint);
  letter-spacing: 0.1em;
}

/* Grid de variables */
.var-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 24px 0 16px;
}
.var-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.var-key {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.var-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 10px;
}
.var-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.var-body {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.7;
  font-weight: 300;
}

/* Vector de pasos */
.vector-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 28px 0 16px;
}
.vector-step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 20px;
  align-items: start;
}
.vector-num {
  font-size: 20px;
  font-weight: 400;
  color: var(--gold-dim);
  line-height: 1.3;
}
.vector-action {
  font-size: 13px;
  font-weight: 500;
  color: #f0f0f0;
  margin-bottom: 6px;
}
.vector-detail {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.7;
  font-weight: 300;
}

/* CTA block específico */
.diag-cta-block {
  margin-top: 64px;
  padding: 48px 0 24px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.cta-eyebrow {
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.cta-statement {
  font-size: 18px;
  font-weight: 300;
  color: #f0f0f0;
  line-height: 1.4;
  margin-bottom: 16px;
}
.cta-qualifier {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.7;
  font-weight: 300;
}
.cta-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Botón secundario */
.btn-secondary {
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 0;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.btn-secondary:hover {
  border-color: var(--gold-dim);
  color: var(--text);
}
.cta-note {
  font-size: 9px;
  color: var(--text-faint);
  line-height: 1.6;
  letter-spacing: 0.05em;
  margin-top: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .diag-cta-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .vector-step {
    grid-template-columns: 28px 1fr;
    gap: 12px;
  }
  .var-grid {
    gap: 16px;
  }
}