/* Simulador público NexoPatrimonial */
.nexo-sim {
  --sim-gold: #d4af37;
  --sim-gold-light: #f0d77b;
  --sim-bg: #101010;
  --sim-card: #171717;
  --sim-border: rgba(212,175,55,.27);
  width: min(100%, 1120px);
  margin: 28px auto;
  padding: clamp(20px, 3vw, 36px);
  color: #fff;
  text-align: left;
  background:
    radial-gradient(ellipse at top right, rgba(212,175,55,.09), transparent 48%),
    #101010;
  border: 1px solid var(--sim-border);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  position: relative;
  z-index: 2;
}

.nexo-sim * {
  box-sizing: border-box;
}

.nexo-sim .sim-header {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.nexo-sim .sim-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--sim-gold-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.7px;
}

.nexo-sim .sim-header h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.2;
  letter-spacing: -.5px;
}

.nexo-sim .sim-header p {
  margin: 0;
  color: #b7b7b7;
  font-size: 14px;
  line-height: 1.7;
}

.nexo-sim .sim-layout {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr);
  gap: 20px;
  align-items: start;
}

.nexo-sim .sim-panel {
  min-width: 0;
  padding: clamp(18px, 2.5vw, 26px);
  background: rgba(23,23,23,.94);
  border: 1px solid #303030;
  border-radius: 14px;
}

.nexo-sim .sim-panel h3,
.nexo-sim .sim-scenarios h3,
.nexo-sim .sim-chart h3 {
  margin: 0 0 20px;
  color: var(--sim-gold-light);
  font-size: 15px;
  font-weight: 700;
}

.nexo-sim .sim-controls label {
  display: block;
  margin-bottom: 17px;
  color: #ededed;
  font-size: 13px;
  font-weight: 600;
}

.nexo-sim .sim-controls input,
.nexo-sim .sim-controls select {
  display: block;
  width: 100%;
  min-height: 46px;
  margin-top: 8px;
  padding: 11px 12px;
  color: #fff;
  background: #0d0d0d;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
}

.nexo-sim .sim-controls input:focus,
.nexo-sim .sim-controls select:focus {
  outline: 2px solid rgba(212,175,55,.5);
  outline-offset: 2px;
  border-color: var(--sim-gold);
}

.nexo-sim .sim-controls small {
  display: block;
  margin-top: 7px;
  color: #9e9e9e;
  font-size: 11px;
  font-weight: 400;
}

.nexo-sim .sim-result-label {
  display: block;
  margin-bottom: 7px;
  color: #aaa;
  font-size: 12px;
  line-height: 1.5;
}

.nexo-sim .sim-main-value {
  display: block;
  margin-bottom: 24px;
  color: var(--sim-gold-light);
  font-size: clamp(30px, 4vw, 43px);
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.nexo-sim .sim-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}

.nexo-sim .sim-result-grid > div,
.nexo-sim .sim-scenario {
  min-width: 0;
  padding: 15px;
  background: #101010;
  border: 1px solid #303030;
  border-radius: 10px;
}

.nexo-sim .sim-result-grid output,
.nexo-sim .sim-scenario output {
  display: block;
  color: #fff;
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.nexo-sim .sim-chart {
  padding-top: 22px;
  border-top: 1px solid #303030;
}

.nexo-sim .sim-bar-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 18px;
  color: #ccc;
  font-size: 12px;
}

.nexo-sim .sim-bar-row strong {
  color: #fff;
  font-size: 13px;
}

.nexo-sim .sim-bar-track {
  width: 100%;
  height: 13px;
  overflow: hidden;
  background: #303030;
  border-radius: 20px;
}

.nexo-sim .sim-bar {
  height: 100%;
  min-width: 2px;
  border-radius: 20px;
  transition: width .2s ease;
}

.nexo-sim .sim-bar-aportado {
  background: #888;
}

.nexo-sim .sim-bar-saldo {
  background: linear-gradient(90deg, #b18b1d, var(--sim-gold-light));
}

.nexo-sim .sim-withdrawal {
  margin-top: 24px;
  padding: 18px;
  background: rgba(212,175,55,.07);
  border: 1px solid var(--sim-border);
  border-radius: 10px;
}

.nexo-sim .sim-withdrawal output {
  display: block;
  color: var(--sim-gold-light);
  font-size: 23px;
  font-weight: 800;
}

.nexo-sim .sim-withdrawal p {
  margin: 8px 0 0;
  color: #aaa;
  font-size: 11px;
  line-height: 1.6;
}

.nexo-sim .sim-scenarios {
  margin-top: 22px;
}

.nexo-sim .sim-scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.nexo-sim .sim-scenario span {
  display: block;
  margin-bottom: 9px;
  color: #b8b8b8;
  font-size: 12px;
  line-height: 1.5;
}

.nexo-sim .sim-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.nexo-sim .sim-actions .btn {
  min-height: 46px;
  text-align: center;
}

.nexo-sim .sim-risk {
  margin-top: 25px;
  padding: 18px 20px;
  color: #c8c8c8;
  background: rgba(234,179,8,.055);
  border: 1px solid rgba(234,179,8,.28);
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.75;
}

.nexo-sim .sim-risk strong {
  display: block;
  margin-bottom: 7px;
  color: var(--sim-gold-light);
  font-size: 12px;
}

.nexo-sim .sim-risk p {
  margin: 0 0 8px;
  color: #c8c8c8;
  font-size: 11px;
}

.nexo-sim .sim-risk p:last-child {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .nexo-sim {
    margin: 18px auto;
    padding: 18px;
    border-radius: 14px;
  }

  .nexo-sim .sim-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .nexo-sim .sim-panel {
    padding: 18px;
  }

  .nexo-sim .sim-main-value {
    font-size: 32px;
  }

  .nexo-sim .sim-actions {
    flex-direction: column;
  }

  .nexo-sim .sim-actions .btn {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .nexo-sim .sim-result-grid,
  .nexo-sim .sim-scenario-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nexo-sim .sim-bar {
    transition: none;
  }
}
