:root {
  --navy: #1c3553;
  --navy-dark: #122236;
  --gold: #c8932b;
  --orange: #f7941d;
  --gray-bg: #eef1f4;
  --white: #ffffff;
  --text: #2b2f36;
  --muted: #6b7280;
  --green: #1f8a4d;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(160deg, #eef1f4 0%, #dde4ea 100%);
  color: var(--text);
  min-height: 100vh;
}
.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 18px 60px;
}

header.brand {
  background: var(--white);
  border-radius: 16px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 6px 24px rgba(20, 40, 70, 0.08);
  flex-wrap: wrap;
  gap: 14px;
}
header.brand img.logo {
  height: 54px;
}
header.brand .tagline {
  text-align: right;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
}

.hero {
  margin-top: 26px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  border-radius: 18px;
  padding: 30px 32px;
  box-shadow: 0 10px 30px rgba(15, 30, 55, 0.25);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(247, 148, 29, 0.25),
    transparent 70%
  );
}
.hero h1 {
  margin: 0 0 6px;
  font-size: 1.6rem;
  font-weight: 700;
}
.hero p.sub {
  margin: 0;
  color: #cfd9e6;
  font-size: 0.95rem;
}
.badge-range {
  display: inline-block;
  margin-top: 14px;
  background: rgba(247, 148, 29, 0.15);
  border: 1px solid var(--orange);
  color: #ffd9a8;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.card {
  background: var(--white);
  border-radius: 18px;
  margin-top: 22px;
  padding: 28px 30px;
  box-shadow: 0 8px 28px rgba(20, 40, 70, 0.08);
}
.card h2 {
  font-size: 1.05rem;
  color: var(--navy);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card h2 .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  display: inline-block;
}

label.field-label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
}
.input-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.amount-box {
  flex: 1 1 280px;
  position: relative;
}
.amount-box span.currency {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--navy);
  font-weight: 700;
  font-size: 1.15rem;
}
input#montoInput {
  width: 100%;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  border: 2px solid #dfe5ec;
  border-radius: 12px;
  padding: 14px 16px 14px 38px;
  outline: none;
  transition: border-color 0.2s;
}
input#montoInput:focus {
  border-color: var(--orange);
}

.slider-wrap {
  margin-top: 16px;
}
input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  height: 8px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--navy);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--navy);
  cursor: pointer;
}
.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 6px;
}
.error-msg {
  color: #c0392b;
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 8px;
  min-height: 18px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 4px;
}
.result-tile {
  background: var(--gray-bg);
  border-radius: 14px;
  padding: 18px 20px;
  border-left: 4px solid var(--orange);
}
.result-tile.highlight {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: var(--white);
  border-left: 4px solid var(--gold);
}
.result-tile .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 6px;
}
.result-tile.highlight .label {
  color: #cfd9e6;
}
.result-tile .value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
}
.result-tile.highlight .value {
  color: var(--white);
}
.result-tile .note {
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 4px;
}
.result-tile.highlight .note {
  color: #cfd9e6;
}

.info-list {
  margin-top: 22px;
  background: #fbf7ee;
  border: 1px solid #f0e2c0;
  border-radius: 14px;
  padding: 18px 22px;
}
.info-list h3 {
  margin: 0 0 10px;
  font-size: 0.92rem;
  color: var(--gold);
  font-weight: 800;
}
.info-list ul {
  margin: 0;
  padding-left: 18px;
}
.info-list li {
  font-size: 0.86rem;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.45;
}

.disclaimer {
  margin-top: 18px;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
  padding: 0 10px;
}

footer.logos {
  margin-top: 30px;
  background: var(--white);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  box-shadow: 0 6px 20px rgba(20, 40, 70, 0.06);
}
footer.logos img {
  height: 56px;
  object-fit: contain;
}

@media (max-width: 560px) {
  .hero {
    padding: 22px 20px;
  }
  .card {
    padding: 22px 18px;
  }
  footer.logos img {
    height: 44px;
  }
}

/* ===== Modal de suscripción (gate previo al simulador) ===== */
body.locked {
  overflow: hidden;
}
.wrap.blurred {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}
.gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 34, 54, 0.72);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 18px;
  opacity: 1;
  transition: opacity 0.25s ease;
}
.gate-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.gate-modal {
  background: var(--white);
  border-radius: 20px;
  max-width: 440px;
  width: 100%;
  padding: 32px 30px 28px;
  box-shadow: 0 20px 60px rgba(10, 20, 40, 0.35);
  animation: gatePop 0.3s ease;
}
@keyframes gatePop {
  from {
    transform: translateY(14px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.gate-eyebrow {
  display: inline-block;
  background: rgba(247, 148, 29, 0.12);
  color: var(--orange);
  border: 1px solid var(--orange);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.gate-modal h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 800;
}
.gate-modal p.gate-sub {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
.gate-field {
  margin-bottom: 14px;
}
.gate-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.gate-field input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #dfe5ec;
  border-radius: 10px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}
.gate-field input:focus {
  border-color: var(--orange);
}
.gate-field .gate-field-error {
  color: #c0392b;
  font-size: 0.76rem;
  font-weight: 600;
  margin-top: 4px;
  min-height: 14px;
}
.gate-submit {
  width: 100%;
  margin-top: 8px;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: var(--white);
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 0.98rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.gate-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(247, 148, 29, 0.35);
}
.gate-submit:active {
  transform: translateY(0);
}
.gate-note {
  margin-top: 14px;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}
