/* RUM Enterprise — presentación formal (junta / dirección) */

:root {
  --ent-bg: #f0f2f5;
  --ent-surface: #ffffff;
  --ent-border: #d9dde8;
  --ent-border-strong: #c5cbd9;
  --ent-text: #1a1f2e;
  --ent-muted: #5c6578;
  --ent-accent: #1e4d7a;
  --ent-accent-soft: #e8eef5;
  --ent-success: #1d6b4a;
  --ent-row-alt: #fafbfc;
}

#enterprise-app,
#enterprise-app *,
#proposal-wrap,
#proposal-wrap * {
  box-sizing: border-box;
}
#enterprise-app,
#proposal-wrap {
  margin: 0;
  padding: 0;
}

body.page-enterprise {
  background: transparent !important;
  color: #f8fafc !important;
  position: relative;
  min-height: 100%;
  /* Fondo vivo (.world): estrellas + túnel visibles como en index */
  --starsOpacity: 0.82;
  /* Hero: copy claro + kicker cielo; CTAs siguen con azul sólido legible */
  --ent-text: #f8fafc;
  --ent-muted: rgba(226, 232, 240, 0.82);
  --ent-sky: rgba(148, 184, 220, 0.95);
  --ent-accent: #2f6eaa;
  --ent-success: #6ee7b7;
  --ent-surface: rgba(6, 10, 22, 0.22);
  --ent-row-alt: rgba(255, 255, 255, 0.055);
  --ent-accent-soft: rgba(24, 42, 72, 0.62);
  --ent-border: rgba(255, 255, 255, 0.14);
  --ent-border-strong: rgba(148, 184, 220, 0.38);
  /* Opacidad final del velo sobre las estrellas (más transparente = más se ven) */
  --ent-page-veil-alpha: 0.28;
}

/* Velo negro en toda la vista: encima de .world (estrellas / túnel) y debajo del contenido */
body.page-enterprise::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(0, 0, 0, var(--ent-page-veil-alpha));
  opacity: 1;
}

body.page-enterprise .page-wrap {
  background: transparent;
  position: relative;
  z-index: 2;
}

/* Nube WebGL orgánica: no depende de --starsOpacity; la bajamos aparte */
body.page-enterprise .world #rumOrganicMeshCanvas {
  opacity: 0.38;
}

body.page-enterprise .world #starsCanvas {
  opacity: var(--starsOpacity);
}

body.page-enterprise .world #tunnelCanvas {
  opacity: calc(var(--starsOpacity) * 0.22);
}

.enterprise-page-main {
  position: relative;
  z-index: 2;
}

/* Impacto inicial: túnel/estrellas a pantalla completa; sin velo (texto con text-shadow) */
.ent-splash {
  position: relative;
  min-height: min(92vh, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(104px, 14vh, 132px) 24px clamp(40px, 7vh, 72px);
  margin: 0 auto;
  max-width: 1280px;
}

/* Sin velo: solo se ve el fondo (partículas / túnel); el texto lleva sombra propia */
.ent-splash__veil {
  display: none;
}

.ent-splash__inner {
  position: relative;
  width: 100%;
  max-width: 920px;
}

.ent-splash__inner.hero-text-stack {
  display: grid;
  gap: 18px;
}

.ent-splash__kicker.eyebrow {
  margin: 0;
}

.ent-splash__title.hero-heading {
  font-family: var(--rum-font-display, "Baloo 2", system-ui, sans-serif);
  font-size: clamp(1.75rem, 4.6vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: #f8fafc;
  margin: 0;
  max-width: min(22ch, 100%);
  text-shadow: 0 2px 48px rgba(0, 0, 0, 0.5);
}

.ent-splash__deck.hero-deck {
  margin: 0 0 10px;
  max-width: min(48ch, 100%);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
}

.ent-splash__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 100%);
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ent-splash__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.32);
}

.ent-splash__cta:focus-visible {
  outline: 2px solid rgba(148, 184, 220, 0.95);
  outline-offset: 3px;
}

/* CTA: una esfera WebGL grande + texto pegado (sin pastilla) */
.ent-splash__cta.ent-splash__cta--sphere {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  width: auto;
  max-width: min(360px, 100%);
  margin: 0;
  padding: 2px 4px 8px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  color: rgba(248, 250, 252, 0.96);
  font-size: inherit;
  line-height: 1.3;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.35s ease;
}

.ent-splash__cta.ent-splash__cta--sphere:hover {
  transform: none;
}

.ent-splash__cta.ent-splash__cta--sphere:focus-visible {
  outline: 1px solid rgba(148, 184, 220, 0.55);
  outline-offset: 4px;
  border-radius: 8px;
}

.ent-splash__cta.ent-splash__cta--sphere.is-used {
  opacity: 1;
}

.ent-splash__cta.ent-splash__cta--sphere.is-used .ent-splash__cta-canvas {
  opacity: 0.4;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.4));
}

.ent-splash__cta-canvas {
  display: block;
  width: min(280px, 72vw);
  height: min(280px, 72vw);
  max-width: 320px;
  max-height: 320px;
  flex-shrink: 0;
  margin-bottom: -36px;
  border-radius: 50%;
  vertical-align: middle;
  cursor: pointer;
  filter: drop-shadow(0 12px 36px rgba(0, 0, 0, 0.55));
  transition: opacity 0.2s ease;
}

.ent-splash__cta.ent-splash__cta--sphere.is-hovered .ent-splash__cta-canvas {
  filter: drop-shadow(0 12px 36px rgba(0, 0, 0, 0.55));
  transform: none;
}

.ent-splash__cta-text {
  display: block;
  margin-top: -18px;
  padding-top: 0;
  font-family: var(--rum-font-display, "Baloo 2", system-ui, sans-serif);
  font-size: clamp(13px, 2.1vw, 15px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.18;
  max-width: 22ch;
  cursor: pointer;
  text-shadow:
    0 0 18px rgba(0, 0, 0, 0.95),
    0 2px 14px rgba(0, 0, 0, 0.85),
    0 0 2px rgba(15, 23, 42, 0.9);
  transition: color 0.2s ease;
}

.ent-splash__cta.ent-splash__cta--sphere:hover .ent-splash__cta-text,
.ent-splash__cta.ent-splash__cta--sphere:focus-visible .ent-splash__cta-text {
  color: rgba(252, 252, 252, 0.98);
  letter-spacing: 0.02em;
  transform: none;
  text-shadow:
    0 0 18px rgba(0, 0, 0, 0.95),
    0 2px 14px rgba(0, 0, 0, 0.85),
    0 0 2px rgba(15, 23, 42, 0.9);
}

.ent-splash__scroll-hint {
  margin: clamp(36px, 8vh, 72px) 0 0;
  display: flex;
  justify-content: flex-start;
}

.ent-splash__mouse {
  display: block;
  width: 22px;
  height: 34px;
  border-radius: 12px;
  border: 2px solid rgba(226, 232, 240, 0.45);
  position: relative;
  animation: entSplashMouse 2.4s ease-in-out infinite;
}

.ent-splash__mouse::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: rgba(226, 232, 240, 0.85);
  animation: entSplashWheel 2.4s ease-in-out infinite;
}

@keyframes entSplashMouse {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.85;
  }
  50% {
    transform: translateY(6px);
    opacity: 1;
  }
}

@keyframes entSplashWheel {
  0%,
  100% {
    opacity: 0.5;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ent-splash__mouse,
  .ent-splash__mouse::after {
    animation: none;
  }
}

.enterprise-wrap {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
  padding: 96px 20px 72px;
}

#ent-commercial-options {
  scroll-margin-top: 96px;
}

#ent-compare-anchor {
  scroll-margin-top: 88px;
}

/* Bloque principal sin “tarjeta” de vidrio: contenido directamente sobre el fondo */
body.page-enterprise .enterprise-wrap {
  position: relative;
  isolation: auto;
  margin-top: 20px;
  margin-bottom: 40px;
  padding: 40px 24px 64px;
  border-radius: 0;
  border: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

body.page-enterprise .enterprise-wrap::before {
  content: none;
}

body.page-enterprise .enterprise-wrap > * {
  position: relative;
  z-index: 1;
}

/* Bloques internos: sin fondo de tarjeta (solo borde / texto sobre el hero) */
body.page-enterprise .ent-table-wrap,
body.page-enterprise .ent-compare-stage,
body.page-enterprise .ent-compare-sphere-strip,
body.page-enterprise .ent-sphere-model-stack,
body.page-enterprise .ent-sphere-copy-slot,
body.page-enterprise .ent-slider-card,
body.page-enterprise .ent-metrics-card,
body.page-enterprise .ent-brief-panel,
body.page-enterprise .ent-detail,
body.page-enterprise #proposal-wrap .proposal {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.16);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

body.page-enterprise .ent-sphere-caption-row {
  background: transparent;
}

body.page-enterprise .ent-compare-foot {
  background: transparent;
}

/* Propuestas sin caja: solo texto, pegado visualmente a la esfera de arriba */
body.page-enterprise .ent-sphere-copy-slot {
  border: none;
  padding: 8px 12px 16px;
}

body.page-enterprise .ent-login-note a {
  color: rgba(186, 230, 255, 0.95);
}

body.page-enterprise input.tech-in,
body.page-enterprise select.tech-in {
  background: rgba(2, 6, 16, 0.42);
  border-color: rgba(255, 255, 255, 0.14);
  color: #f8fafc;
}

body.page-enterprise input.tech-in::placeholder {
  color: rgba(226, 232, 240, 0.45);
}

body.page-enterprise .chk-card {
  background: rgba(4, 8, 18, 0.26);
  border-color: rgba(255, 255, 255, 0.11);
  color: rgba(241, 245, 249, 0.95);
}

body.page-enterprise .mod-card {
  background: rgba(4, 8, 18, 0.26);
  border-color: rgba(255, 255, 255, 0.11);
  color: rgba(241, 245, 249, 0.95);
}

body.page-enterprise .mod-card.on {
  background: rgba(22, 42, 72, 0.42);
  border-color: rgba(148, 184, 220, 0.38);
}

body.page-enterprise .chk-card.checked {
  border-color: rgba(148, 184, 220, 0.42);
  background: rgba(22, 42, 72, 0.38);
}

body.page-enterprise .ent-shortcuts kbd {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(226, 232, 240, 0.92);
}

body.page-enterprise .ent-m-row {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.page-enterprise .ent-m-row .lbl small {
  color: rgba(226, 232, 240, 0.55);
}

body.page-enterprise .ent-bar-track {
  background: rgba(255, 255, 255, 0.1);
}

body.page-enterprise .ent-m-note {
  background: transparent;
  color: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

body.page-enterprise .ent-m-glossary {
  margin: 0 0 18px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(203, 213, 225, 0.92);
  background: rgba(2, 8, 20, 0.35);
  border: 1px solid rgba(148, 184, 220, 0.2);
  border-radius: 10px;
}

body.page-enterprise .ent-m-glossary p {
  margin: 0 0 8px;
}

body.page-enterprise .ent-m-glossary p:last-child {
  margin-bottom: 0;
}

body.page-enterprise .ent-m-roi {
  margin: 14px 0 0;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(224, 242, 254, 0.95);
  background: rgba(15, 40, 72, 0.45);
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 10px;
}

body.page-enterprise .ent-m-roi__lead {
  margin: 8px 0 0;
}

body.page-enterprise .ent-m-roi__line {
  margin: 8px 0 0;
  font-size: 12px;
  color: rgba(186, 230, 253, 0.88);
}

body.page-enterprise .ent-delta {
  border-color: rgba(110, 231, 183, 0.28);
  background: rgba(10, 42, 32, 0.5);
  color: rgba(236, 253, 245, 0.95);
}

body.page-enterprise .ent-delta.neg {
  border-color: rgba(252, 165, 165, 0.35);
  background: rgba(48, 16, 18, 0.55);
  color: rgba(254, 242, 242, 0.95);
}

body.page-enterprise .ent-delta strong {
  color: #6ee7b7;
}

body.page-enterprise .ent-delta.neg strong {
  color: #fca5a5;
}

body.page-enterprise .ent-delta__compact {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(236, 253, 245, 0.9);
}

body.page-enterprise .ent-m-amort {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: rgba(8, 47, 73, 0.45);
  color: rgba(224, 242, 254, 0.95);
}

body.page-enterprise .ent-m-amort--soft {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.35);
}

body.page-enterprise .ent-m-amort__p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

body.page-enterprise .ent-m-amort__p--tail {
  margin-top: 10px;
  font-weight: 600;
  color: rgba(186, 230, 253, 0.98);
}

body.page-enterprise .ent-m-roi__one {
  display: block;
  margin-top: 6px;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.5;
}

body.page-enterprise .ent-m-glossary--fold,
body.page-enterprise .ent-m-benchmark-scope--fold,
body.page-enterprise .ent-m-foot--fold {
  margin: 0 0 14px;
  padding: 0;
  border: none;
  background: transparent;
}

body.page-enterprise .ent-m-glossary--fold summary,
body.page-enterprise .ent-m-benchmark-scope--fold summary,
body.page-enterprise .ent-m-foot--fold summary {
  cursor: pointer;
  font-size: 12px;
  color: rgba(186, 230, 255, 0.92);
  list-style-position: outside;
}

body.page-enterprise .ent-m-glossary--fold .ent-m-glossary__hint {
  font-weight: 400;
  opacity: 0.75;
}

body.page-enterprise .ent-m-glossary__list {
  margin: 10px 0 0;
  padding-left: 1.1rem;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.9);
}

body.page-enterprise .ent-m-scope--tight {
  margin: 4px 0 12px;
  padding: 8px 12px;
  font-size: 12px;
}

body.page-enterprise .ent-m-scope__n {
  display: inline-block;
  min-width: 1.5em;
  font-weight: 700;
  color: #6ee7b7;
}

body.page-enterprise .ent-m-1on1 {
  margin: 10px 0 12px;
  padding: 12px 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(110, 231, 183, 0.22);
  background: rgba(6, 28, 22, 0.35);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body.page-enterprise .ent-m-1on1__title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(167, 243, 208, 0.95);
}

body.page-enterprise .ent-m-1on1__sub {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.88);
}

body.page-enterprise .ent-m-1on1__tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.45;
}

body.page-enterprise .ent-m-1on1__tbl th,
body.page-enterprise .ent-m-1on1__tbl td {
  border: 1px solid rgba(148, 184, 220, 0.22);
  padding: 8px 9px;
  text-align: right;
  vertical-align: middle;
  color: var(--ent-text);
}

body.page-enterprise .ent-m-1on1__tbl thead th:first-child,
body.page-enterprise .ent-m-1on1__tbl tbody th {
  text-align: left;
}

body.page-enterprise .ent-m-1on1__tbl thead th {
  font-weight: 700;
  background: rgba(0, 0, 0, 0.25);
  color: rgba(226, 232, 240, 0.95);
}

body.page-enterprise .ent-m-1on1__tbl tbody th {
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(226, 232, 240, 0.9);
}

body.page-enterprise .ent-m-1on1__foot {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--ent-muted);
}

body.page-enterprise .ent-m-1on1__foot em {
  font-style: italic;
  color: rgba(226, 232, 240, 0.78);
}

body.page-enterprise .ent-m-chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin: 12px 0 18px;
}

@media (max-width: 720px) {
  body.page-enterprise .ent-m-chart-grid {
    grid-template-columns: 1fr;
  }
}

body.page-enterprise .ent-donut {
  padding: 12px 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 184, 220, 0.22);
  background: rgba(0, 0, 0, 0.2);
}

body.page-enterprise .ent-donut__title {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(148, 184, 220, 0.95);
  text-align: center;
}

body.page-enterprise .ent-donut__body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

body.page-enterprise .ent-donut__svg {
  width: 132px;
  height: 132px;
  flex-shrink: 0;
}

body.page-enterprise .ent-donut__ctext {
  fill: rgba(248, 250, 252, 0.96);
  font-family: Inter, system-ui, sans-serif;
}

body.page-enterprise .ent-donut__ctext--lg {
  font-size: 15px;
  font-weight: 700;
}

body.page-enterprise .ent-donut__ctext--sm {
  font-size: 10px;
  font-weight: 600;
  fill: rgba(186, 230, 253, 0.88);
}

body.page-enterprise .ent-donut-legend {
  flex: 1;
  min-width: 120px;
  font-size: 12px;
}

body.page-enterprise .ent-donut-legend__row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

body.page-enterprise .ent-donut-legend__sw {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex-shrink: 0;
}

body.page-enterprise .ent-donut-legend__lbl {
  flex: 1;
  color: rgba(226, 232, 240, 0.88);
}

body.page-enterprise .ent-donut-legend__val {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #f8fafc;
}

body.page-enterprise .ent-donut--empty .ent-donut__empty {
  margin: 0;
  font-size: 13px;
  opacity: 0.6;
}

body.page-enterprise .ent-m-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin: 4px 0 12px;
}

body.page-enterprise .ent-m-kpi {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.15);
}

body.page-enterprise .ent-m-kpi--wide {
  grid-column: 1 / -1;
}

body.page-enterprise .ent-m-kpi__lbl {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(148, 184, 220, 0.85);
  margin-bottom: 4px;
}

body.page-enterprise .ent-m-kpi__val {
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #f8fafc;
}

body.page-enterprise .ent-m-note--tight {
  margin-top: 12px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.45;
}

body.page-enterprise .ent-m-row--tco {
  border-bottom: 1px solid rgba(110, 231, 183, 0.25);
  padding-bottom: 12px;
  margin-bottom: 4px;
}

body.page-enterprise .ent-m-row--tco .val {
  color: #6ee7b7;
}

body.page-enterprise .error-bar {
  background: rgba(52, 18, 22, 0.88);
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecdd3;
}

body.page-enterprise .btn-ghost {
  border-color: rgba(255, 255, 255, 0.22);
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.04);
}

body.page-enterprise .btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
}

body.page-enterprise .section-foot {
  border-top-color: rgba(255, 255, 255, 0.12);
  color: rgba(226, 232, 240, 0.65);
}

body.page-enterprise #proposal-wrap:not(.hidden) {
  padding-top: 32px;
}

body.page-enterprise .ent-steps {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(4, 8, 18, 0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

body.page-enterprise .ent-step-pill {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.08);
}

body.page-enterprise .ent-step-pill.is-active {
  background: rgba(24, 42, 72, 0.38);
}

body.page-enterprise .ent-step-pill.is-done .n {
  opacity: 0.95;
}

/* —— Contexto (solo aviso de login, opcional) —— */
.ent-context {
  border-bottom: 1px solid var(--ent-border);
  padding-bottom: 32px;
  margin-bottom: 36px;
}

.ent-context--compact {
  padding-bottom: 18px;
  margin-bottom: 28px;
}

.ent-context__meta {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ent-muted);
  max-width: 75ch;
  margin: 0;
}

.ent-context__meta strong {
  color: var(--ent-text);
  font-weight: 600;
}

.ent-login-note {
  margin-top: 18px;
  font-size: 15px;
  color: var(--ent-muted);
}

.ent-context--compact .ent-login-note {
  margin-top: 0;
}

.ent-login-note a {
  color: var(--ent-accent);
  font-weight: 600;
}

/* —— Section titles —— */
.ent-section {
  margin-bottom: 40px;
}

/* Primer bloque tras el splash: menos aire cuando no hay header de contexto */
body.page-enterprise #enterprise-app > .ent-section--compare-full:first-child {
  margin-top: 0;
}

.ent-section__title {
  font-family: var(--rum-font-display, "Baloo 2", system-ui, sans-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ent-text);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.ent-section__intro {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ent-muted);
  margin: 0 0 24px;
  max-width: 75ch;
}

/* Comparativo a ancho completo del viewport (el atenuado global va en body::before) */
body.page-enterprise .ent-section--compare-full {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  padding-top: 28px;
  padding-bottom: 36px;
  box-sizing: border-box;
  position: relative;
  z-index: 0;
  background: transparent;
}

.ent-section__intro--compare {
  max-width: min(75ch, 100%);
}

/* Copy metodológico a todo el ancho de la sección (las tres propuestas) */
.ent-compare-methodology {
  margin: 0 0 22px;
  padding: 18px 22px;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  font-size: clamp(15px, 1.9vw, 17px);
  line-height: 1.65;
  color: rgba(248, 250, 252, 0.94);
  border: 1px solid rgba(148, 184, 220, 0.28);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
}

.ent-sphere-copy-slot--hidden {
  display: none !important;
}

/* —— Comparison: esferas 3D + panel —— */
.ent-compare-stage {
  border: 1px solid var(--ent-border);
  border-radius: 12px;
  background: var(--ent-surface);
  box-shadow: 0 8px 32px rgba(2, 8, 22, 0.35);
  overflow: hidden;
}

.ent-compare-stage--split {
  border-radius: 0;
  border-left: none;
  border-right: none;
  overflow: visible;
}

.ent-compare-stage__triplet {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 22px);
  padding: 0 16px 16px;
  box-sizing: border-box;
  min-height: 0;
}

/* Misma rejilla de 3 columnas que las tarjetas: el lienzo WebGL comparte ancho con las opciones */
.ent-compare-stage__triplet--aligned {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(12px, 2vw, 20px);
  row-gap: 0;
}

/* Una fila: tres columnas (esfera + copy por modelo); el pie ocupa todo el ancho */
.ent-compare-three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 20px);
  padding: 0 16px 16px;
  box-sizing: border-box;
  align-items: start;
}

.ent-sphere-model-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(4px, 1vw, 10px);
  width: 100%;
  min-width: 0;
  margin: 0;
}

.ent-compare-three-col > .ent-compare-foot {
  grid-column: 1 / -1;
  margin-top: clamp(6px, 1.2vw, 14px);
  padding-top: clamp(10px, 1.8vw, 18px);
  border-top: 1px solid rgba(148, 184, 220, 0.14);
}

.ent-compare-sphere-strip {
  grid-column: 1 / -1;
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  min-height: clamp(150px, 22vw, 300px);
  max-height: 360px;
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
}

.ent-compare-three-col .ent-compare-sphere-strip.ent-compare-sphere-strip--solo {
  grid-column: auto;
  min-height: clamp(120px, 22vw, 220px);
  max-height: 280px;
}

@media (max-width: 960px) {
  .ent-compare-three-col {
    grid-template-columns: 1fr;
  }

  .ent-compare-three-col .ent-compare-sphere-strip.ent-compare-sphere-strip--solo {
    min-height: clamp(150px, 38vw, 260px);
    max-height: 320px;
  }
}

.ent-compare-cards-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 20px);
  align-items: stretch;
  min-width: 0;
}

.ent-compare-stage__canvas {
  display: block;
  position: relative;
  z-index: 0;
  width: 100%;
  height: auto;
  min-height: clamp(120px, 20vw, 200px);
  vertical-align: middle;
  cursor: default;
}
.ent-compare-stage__canvas.is-sphere-live {
  opacity: 1;
  visibility: visible;
}

/* Cada bloque con altura natural — evita solapamiento por flex igualado + overflow visible */
.ent-sphere-copy-slot {
  flex: 0 0 auto;
  width: 100%;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid rgba(148, 184, 220, 0.36);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.12);
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.ent-sphere-copy-slot:focus {
  outline: none;
}

.ent-sphere-copy-slot:focus-visible {
  outline: 2px solid rgba(148, 184, 220, 0.85);
  outline-offset: 3px;
}

.ent-sphere-copy-slot.is-active {
  border-color: rgba(148, 184, 220, 0.72);
  box-shadow: 0 0 0 1px rgba(148, 184, 220, 0.2);
}

.ent-sphere-copy-slot.is-selected {
  border-color: rgba(148, 184, 220, 0.72);
  box-shadow: 0 0 0 1px rgba(148, 184, 220, 0.28);
}

body.page-enterprise .ent-sphere-copy-slot.is-active,
body.page-enterprise .ent-sphere-copy-slot.is-selected {
  border: none;
  box-shadow: none;
}

.ent-sphere-copy-slot__head {
  margin-bottom: 12px;
}

.ent-sphere-copy-slot__title {
  margin: 6px 0 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ent-text);
}

@media (max-width: 960px) {
  .ent-compare-cards-row {
    grid-template-columns: 1fr;
  }

  .ent-compare-sphere-strip {
    min-height: clamp(140px, 38vw, 260px);
    max-height: 320px;
  }

  .ent-compare-sphere-strip--solo {
    min-height: clamp(160px, 48vw, 280px);
    max-height: 320px;
  }
}

.ent-sphere-help {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ent-muted);
}

.ent-sphere-help--top {
  padding: 16px 20px 0;
  margin-bottom: 16px;
}

.ent-sphere-detail.is-empty {
  display: none;
}

.ent-sphere-detail:not(.is-empty) {
  display: block;
}

.ent-sphere-detail__head {
  margin-bottom: 14px;
}

.ent-sphere-detail__badge {
  display: inline-block;
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(148, 184, 220, 0.95);
}

.ent-sphere-detail__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ent-text);
}

.ent-sphere-detail__block {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ent-muted);
}

.ent-sphere-detail__block p {
  margin: 0 0 12px;
}

.ent-sphere-detail__block p:last-child {
  margin-bottom: 0;
}

/* Acordeón nativo: los tres «Modelo de servicio en detalle» arrancan cerrados (<details>). */
.ent-sphere-detail-acc {
  margin: 0;
}

.ent-sphere-detail__sub {
  margin: 18px 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(148, 184, 220, 0.88);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
  list-style: none;
}

.ent-sphere-detail__sub::-webkit-details-marker {
  display: none;
}

.ent-sphere-detail__sub::after {
  content: '';
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transform-origin: center;
  transition: transform 0.28s ease;
  opacity: 0.85;
}

.ent-sphere-detail-acc[open] > .ent-sphere-detail__sub {
  color: rgba(186, 220, 255, 1);
}

.ent-sphere-detail-acc[open] > .ent-sphere-detail__sub::after {
  transform: rotate(225deg) translate(-2px, -2px);
  opacity: 1;
}

.ent-sphere-detail-acc .ent-sphere-detail__propuesta {
  margin-top: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .ent-sphere-detail__sub,
  .ent-sphere-detail__sub::after {
    transition: none;
  }
}

.ent-sphere-ul {
  margin: 0;
  padding-left: 1.15rem;
}

.ent-sphere-ul li {
  margin-bottom: 10px;
}

.ent-sphere-ul li:last-child {
  margin-bottom: 0;
}

.ent-sphere-muted {
  opacity: 0.88;
  font-size: 0.92em;
}

.ent-compare-foot {
  margin: 0;
  padding: 12px 20px 14px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ent-muted);
  border-top: 1px solid var(--ent-border);
  background: rgba(0, 0, 0, 0.12);
}

/* —— Comparison table (legacy / otros usos) —— */
.ent-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--ent-border);
  border-radius: 8px;
  background: var(--ent-surface);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.ent-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.45;
}

.ent-compare caption {
  caption-side: bottom;
  font-size: 12px;
  color: var(--ent-muted);
  padding: 12px 16px;
  text-align: left;
  border-top: 1px solid var(--ent-border);
}

.ent-compare th,
.ent-compare td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--ent-border);
}

.ent-compare thead th {
  background: var(--ent-accent-soft);
  font-weight: 700;
  font-size: 13px;
  color: var(--ent-text);
}

.ent-compare tbody th {
  font-weight: 600;
  color: var(--ent-text);
  background: var(--ent-row-alt);
  width: 22%;
  min-width: 140px;
}

.ent-compare tbody tr:last-child th,
.ent-compare tbody tr:last-child td {
  border-bottom: none;
}

.ent-compare td small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--ent-muted);
  line-height: 1.4;
}

/* —— Slider + metrics row (dentro de sección full-bleed junto a esferas) —— */
.ent-workspace-tools {
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: clamp(24px, 3vw, 40px);
  border-top: 1px solid rgba(148, 184, 220, 0.22);
  width: 100%;
  box-sizing: border-box;
}

.ent-tools-panel {
  display: grid;
  grid-template-columns: minmax(280px, min(38vw, 440px)) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  width: 100%;
  max-width: none;
}

.ent-tools-panel__left {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

@media (max-width: 860px) {
  .ent-tools-panel {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1200px) {
  .ent-workspace-tools .ent-tools-panel {
    grid-template-columns: minmax(360px, 460px) minmax(0, 1fr);
    gap: 48px;
  }
}

body.page-enterprise .ent-org-areas-intro {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ent-muted);
}

body.page-enterprise .ent-org-areas-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

body.page-enterprise label.chk-card.ent-org-area-label--saas-locked {
  cursor: default;
  border-color: rgba(110, 231, 183, 0.35);
  box-shadow: inset 0 0 0 1px rgba(110, 231, 183, 0.12);
}

body.page-enterprise label.chk-card.ent-org-area-label--saas-locked.checked {
  border-color: rgba(110, 231, 183, 0.45);
}

body.page-enterprise label.chk-card.ent-org-area-label--saas-muted {
  cursor: not-allowed;
  opacity: 0.42;
}

body.page-enterprise label.chk-card.ent-org-area-label--saas-muted .box {
  opacity: 0.5;
}

body.page-enterprise .ent-m-scope {
  margin: 6px 0 18px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.92);
  border-radius: 10px;
  border: 1px solid rgba(148, 184, 220, 0.28);
  background: rgba(0, 0, 0, 0.18);
}

body.page-enterprise .ent-m-scope--empty {
  color: rgba(226, 232, 240, 0.72);
  border-style: dashed;
}

body.page-enterprise .ent-m-row--scope-factor {
  border-bottom: 1px dashed rgba(148, 184, 220, 0.35);
  padding-bottom: 12px;
  margin-bottom: 4px;
}

body.page-enterprise .ent-m-row--scope-factor .val {
  color: rgba(186, 230, 255, 0.98);
  font-weight: 700;
}

body.page-enterprise .ent-m-benchmark-scope {
  background: rgba(0, 0, 0, 0.18);
  border-color: rgba(148, 184, 220, 0.28);
  color: rgba(226, 232, 240, 0.88);
}

body.page-enterprise .ent-m-benchmark-scope__lead {
  color: rgba(248, 250, 252, 0.95);
}

body.page-enterprise .ent-m-benchmark-scope__note {
  color: rgba(226, 232, 240, 0.72);
}

body.page-enterprise .ent-detail__scope {
  margin: 0 0 22px;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid rgba(148, 184, 220, 0.22);
  background: rgba(0, 0, 0, 0.12);
}

body.page-enterprise .ent-detail__scope h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(148, 184, 220, 0.95);
}

body.page-enterprise .ent-detail__scope-lead {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ent-muted);
}

body.page-enterprise .ent-detail__scope-list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(248, 250, 252, 0.94);
}

body.page-enterprise .ent-detail__scope-list li {
  margin-bottom: 6px;
}

.ent-slider-card,
.ent-metrics-card {
  border: 1px solid var(--ent-border);
  border-radius: 8px;
  background: var(--ent-surface);
  padding: 20px 20px 22px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.ent-slider-card h3,
.ent-metrics-card h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ent-muted);
  margin: 0 0 14px;
}

.ent-seat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.ent-seat-val {
  font-size: 26px;
  font-weight: 700;
  color: var(--ent-text);
  font-variant-numeric: tabular-nums;
}

.ent-seat-label {
  font-size: 12px;
  color: var(--ent-muted);
}

input[type='range'].ent-range {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  accent-color: var(--ent-accent);
  margin: 8px 0 10px;
}

.ent-slider-hint {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ent-muted);
  margin: 0;
}

.ent-shortcuts {
  margin-top: 14px;
  font-size: 12px;
  color: var(--ent-muted);
}

.ent-shortcuts kbd {
  font-size: 11px;
  padding: 2px 7px;
  border: 1px solid var(--ent-border);
  border-radius: 4px;
  background: var(--ent-row-alt);
  margin: 0 2px;
}

/* Metrics inside card */
.ent-metrics-card .ent-m-head {
  font-size: 18px;
  font-weight: 700;
  color: var(--ent-text);
  margin-bottom: 4px;
}

.ent-metrics-card .ent-m-sub {
  font-size: 13px;
  color: var(--ent-muted);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ent-border);
}

.ent-m-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #eef0f4;
  font-size: 14px;
}

.ent-m-row:last-child {
  border-bottom: none;
}

.ent-m-row .lbl {
  color: var(--ent-muted);
  max-width: 65%;
}

.ent-m-row .lbl small {
  display: block;
  font-size: 12px;
  margin-top: 4px;
  color: #8892a6;
}

.ent-m-row .val {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ent-text);
  text-align: right;
}

.ent-m-note {
  margin-top: 16px;
  padding: 14px;
  background: var(--ent-accent-soft);
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ent-text);
}

.ent-m-benchmark-scope {
  margin: 4px 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--ent-border);
  border-radius: 10px;
  background: var(--ent-accent-soft);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ent-muted);
}

.ent-m-benchmark-scope__lead {
  margin: 0 0 10px;
  color: var(--ent-text);
}

.ent-m-benchmark-scope__list {
  margin: 0 0 8px;
  padding-left: 1.2rem;
}

.ent-m-benchmark-scope__list li {
  margin-bottom: 4px;
}

.ent-m-benchmark-scope__note {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ent-muted);
}

.ent-m-foot {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ent-muted);
}

.ent-bars {
  margin-top: 18px;
}

.ent-bar-row {
  margin-bottom: 12px;
}

.ent-bar-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 4px;
  color: var(--ent-muted);
}

.ent-bar-top .v {
  font-weight: 600;
  color: var(--ent-text);
}

.ent-bar-track {
  height: 6px;
  background: #e8ecf2;
  border-radius: 3px;
  overflow: hidden;
}

.ent-bar-fill {
  height: 100%;
  background: var(--ent-accent);
  border-radius: 3px;
}

.ent-bar-fill--alt {
  background: #64748b;
}

.ent-delta {
  margin-top: 16px;
  padding: 14px;
  border-radius: 6px;
  border: 1px solid #cfe8dc;
  background: #f4fbf8;
  font-size: 13px;
}

.ent-delta.neg {
  border-color: #f5d0d0;
  background: #fff8f8;
}

.ent-delta strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ent-success);
}

.ent-delta.neg strong {
  color: #b42318;
}

/* —— Detail block —— */
.ent-detail {
  border: 1px solid var(--ent-border);
  border-radius: 8px;
  background: var(--ent-surface);
  padding: 28px 26px;
  margin-bottom: 40px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.ent-detail__top {
  margin-bottom: 20px;
}

.ent-detail__top h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ent-text);
}

.ent-detail__subtitle {
  font-size: 15px;
  color: var(--ent-muted);
  margin: 0;
}

.ent-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 22px;
}

@media (max-width: 700px) {
  .ent-detail__grid {
    grid-template-columns: 1fr;
  }
}

.ent-detail__grid h3 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ent-muted);
  margin: 0 0 10px;
}

.ent-detail__grid p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ent-text);
}

.ent-detail__pay h3 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
}

.ent-detail__pay ul {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ent-text);
}

.ent-detail__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--ent-border);
}

@media (max-width: 700px) {
  .ent-detail__cols {
    grid-template-columns: 1fr;
  }
}

.ent-detail__cols h3 {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--ent-accent);
}

.ent-detail__cols ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ent-muted);
}

.ent-detail__foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--ent-border);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ent-muted);
}

/* —— Brief form —— */
.ent-brief {
  margin-top: 48px;
}

.ent-brief-panel {
  border: 1px solid var(--ent-border);
  border-radius: 8px;
  background: var(--ent-surface);
  padding: 28px 28px 32px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.ent-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 28px;
  border: 1px solid var(--ent-border);
  border-radius: 8px;
  overflow: hidden;
}

.ent-step-pill {
  flex: 1;
  min-width: 80px;
  padding: 12px 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ent-muted);
  background: var(--ent-row-alt);
  border-right: 1px solid var(--ent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ent-step-pill:last-child {
  border-right: 0;
}

.ent-step-pill .n {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--ent-border-strong);
  display: grid;
  place-items: center;
  font-size: 11px;
}

.ent-step-pill.is-active {
  background: var(--ent-accent-soft);
  color: var(--ent-text);
}

.ent-step-pill.is-active .n {
  border-color: var(--ent-accent);
  background: var(--ent-accent);
  color: #fff;
}

.ent-step-pill.is-done {
  color: var(--ent-muted);
}

.ent-step-pill.is-done .n {
  background: var(--ent-success);
  border-color: var(--ent-success);
  color: #fff;
}

.step-content {
  display: none;
}

.step-content.active {
  display: block;
}

.step-header {
  margin-bottom: 22px;
}

.step-header h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
}

.step-header .ref {
  font-size: 12px;
  color: var(--ent-muted);
}

label.lbl {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ent-muted);
  margin-bottom: 8px;
  margin-top: 18px;
}

label.lbl:first-of-type {
  margin-top: 0;
}

input.tech-in,
select.tech-in {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--ent-border);
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--ent-text);
}

input.tech-in:focus,
select.tech-in:focus {
  outline: 2px solid rgba(30, 77, 122, 0.25);
  border-color: var(--ent-accent);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.chk-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--ent-border);
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  background: #fff;
}

.chk-card:hover {
  border-color: var(--ent-border-strong);
}

.chk-card input {
  display: none;
}

.chk-card .box {
  width: 18px;
  height: 18px;
  border: 2px solid var(--ent-border-strong);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
}

.chk-card.checked .box {
  background: var(--ent-accent);
  border-color: var(--ent-accent);
}

.chk-card.checked .box::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin: 2px auto 0;
}

.chk-card.checked {
  border-color: var(--ent-accent);
  background: var(--ent-accent-soft);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.mod-card {
  border: 1px solid var(--ent-border);
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.15s;
}

.mod-card:hover {
  border-color: var(--ent-border-strong);
}

.mod-card.on {
  border-color: var(--ent-accent);
  background: var(--ent-accent-soft);
}

.mod-card .id {
  font-size: 11px;
  color: var(--ent-muted);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.mod-card h4 {
  font-size: 16px;
  margin: 0 0 6px;
}

.mod-card p {
  font-size: 13px;
  color: var(--ent-muted);
  margin: 0;
  line-height: 1.45;
}

.row-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--ent-border);
}

.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--ent-border-strong);
  color: var(--ent-text);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--ent-row-alt);
}

.btn-ghost:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--ent-accent);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.05);
}

.error-bar {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 6px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 14px;
  display: none;
}

.error-bar.show {
  display: block;
}

/* —— Proposal result —— */
#proposal-wrap .proposal {
  border: 1px solid var(--ent-border);
  border-radius: 8px;
  background: var(--ent-surface);
  padding: 32px;
  max-width: 1120px;
  margin: 0 auto;
}

.proposal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.proposal-header h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 26px;
  margin: 0;
}

.proposal-amount {
  font-size: 32px;
  font-weight: 700;
  color: var(--ent-accent);
  margin: 16px 0 8px;
  letter-spacing: -0.02em;
}

.proposal-sub {
  font-size: 14px;
  color: var(--ent-muted);
  margin-bottom: 8px;
}

.proposal-id {
  font-size: 13px;
  font-weight: 600;
  color: var(--ent-success);
}

.terminal {
  margin-top: 24px;
  background: #1e293b;
  border-radius: 8px;
  padding: 18px 20px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: #e2e8f0;
}

.terminal-body .cmd::before {
  content: '$ ';
  color: #94a3b8;
}

.terminal-body .cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: #94f7c6;
  vertical-align: -2px;
  margin-left: 2px;
  animation: entBlink 1s steps(2) infinite;
}

@keyframes entBlink {
  50% {
    opacity: 0;
  }
}

.section-foot {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--ent-border);
  font-size: 13px;
  color: var(--ent-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.hidden {
  display: none !important;
}
