/* ── Layout ── */
.calculadora-section {
  padding: 40px 20px 20px;
}

.cta-section {
  padding: 40px 20px 80px;
}

/* ── Calculator wrapper ── */
.mh-calc-wrapper {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  width: 100%;
  max-width: 1100px;
  margin: 20px auto 60px;
  padding: 0 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  box-sizing: border-box;
}

/* Text column */
.mh-calc-text-col {
  flex: 1;
  max-width: 450px;
  padding-top: 20px;
}

.mh-calc-title {
  font-size: 42px;
  font-weight: 300;
  color: #334155;
  line-height: 1.2;
  margin-bottom: 20px;
}

.mh-calc-title strong {
  font-weight: 800;
  color: #0b1c2d;
}

.mh-calc-title em {
  font-family: 'Georgia', serif;
  font-style: italic;
  color: #475569;
}

.mh-calc-subtitle {
  font-size: 18px;
  color: #475569;
  line-height: 1.5;
  font-weight: 400;
}

/* Box column */
.mh-calc-box-col {
  flex: 1;
  max-width: 500px;
  background-color: #f8fafc;
  border-radius: 24px;
  padding: 35px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

/* Slider groups */
.mh-slider-group {
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mh-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mh-slider-label {
  font-size: 14px;
  font-weight: 500;
  color: #334155;
}

.mh-slider-control-row {
  display: flex;
  align-items: center;
  gap: 15px;
}

.mh-slider-value {
  font-size: 14px;
  font-weight: 700;
  color: #0b1c2d;
  min-width: 70px;
  text-align: right;
}

input[type="range"].mh-range-slider {
  -webkit-appearance: none;
  flex: 1;
  background: transparent;
}

input[type="range"].mh-range-slider:focus {
  outline: none;
}

input[type="range"].mh-range-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  cursor: pointer;
  background: #cbd5e1;
  border-radius: 10px;
}

input[type="range"].mh-range-slider::-webkit-slider-thumb {
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: #2b7cff;
  border: 2px solid #ffffff;
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.1s;
}

input[type="range"].mh-range-slider:active::-webkit-slider-thumb {
  transform: scale(1.2);
}

input[type="range"].mh-range-slider::-moz-range-track {
  height: 6px;
  background: #cbd5e1;
  border-radius: 10px;
}

input[type="range"].mh-range-slider::-moz-range-thumb {
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: #2b7cff;
  border: 2px solid #ffffff;
  cursor: pointer;
}

/* Results card */
.mh-calc-results-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-top: 35px;
}

.mh-calc-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 25px;
  text-align: center;
}

.mh-result-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mh-result-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.mh-result-value {
  font-size: 22px;
  font-weight: 800;
  color: #0b1c2d;
}

.mh-result-value.blue { color: #2b7cff; }
.mh-result-value.green { color: #10b981; }

/* CTA button inside calc */
.mh-calc-btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background-color: #2b7cff;
  color: #ffffff;
  text-align: center;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.mh-calc-btn:hover {
  background-color: #1e5fc7;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(43, 124, 255, 0.3);
}

.mh-calc-disclaimer {
  text-align: center;
  font-size: 11px;
  color: #64748b;
  margin-top: 15px;
}

@media (max-width: 900px) {
  .mh-calc-wrapper {
    flex-direction: column;
    gap: 40px;
  }
  .mh-calc-text-col,
  .mh-calc-box-col {
    width: 100%;
    max-width: 100%;
  }
  .mh-calc-title { font-size: 36px; }
}

@media (max-width: 500px) {
  .mh-calc-box-col { padding: 25px; }
  .mh-calc-results-card { padding: 20px; }
  .mh-calc-results-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ── CTA / lead form section ── */
.habla-cta {
  --habla-sky-blue: #2b7cff;
  --habla-gradient-bottom: #2b7cff;
  --habla-dark-card: #ffffff;
  --habla-border: rgba(0, 0, 0, 0.1);
  --habla-text: #000000;
  --radius: 20px;

  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, var(--habla-gradient-bottom) 100%);
  border-radius: 28px;
  overflow: hidden;
  padding: 72px 40px 64px;
  max-width: 960px;
  margin: 0 auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-header {
  text-align: center;
  margin-bottom: 48px;
}

.cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--habla-border);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--habla-text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.cta-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--habla-text);
  border-radius: 50%;
}

.cta-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--habla-text);
  line-height: 1.2;
  margin-bottom: 14px;
}

.cta-title em {
  font-style: italic;
  color: var(--habla-sky-blue);
}

.cta-subtitle {
  font-size: 16px;
  color: var(--habla-text);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
}

/* Form */
.cta-form {
  background: var(--habla-dark-card);
  border: 1px solid var(--habla-border);
  border-radius: var(--radius);
  padding: 36px 32px 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--habla-text);
  letter-spacing: 0.02em;
}

.field-group input,
.field-group select {
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 14px;
  color: var(--habla-text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  width: 100%;
}

.field-group input::placeholder { color: #6b7280; }

.field-group input:focus,
.field-group select:focus {
  border-color: var(--habla-sky-blue);
  box-shadow: 0 0 0 3px rgba(43, 124, 255, 0.15);
}

.select-wrapper {
  position: relative;
}

.select-wrapper select {
  width: 100%;
  cursor: pointer;
}

.select-wrapper::after {
  content: "▾";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--habla-text);
  pointer-events: none;
  font-size: 13px;
}

.btn-probar {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--habla-sky-blue);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 8px 24px rgba(43, 124, 255, 0.25);
  letter-spacing: 0.01em;
  font-family: inherit;
}

.btn-probar:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(43, 124, 255, 0.4);
}

.btn-probar:active { transform: translateY(0); }

.btn-probar::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.btn-probar:hover::after { left: 150%; }

/* Checkboxes */
.checkboxes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.check-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border: 1.5px solid #000000;
  border-radius: 4px;
  background: transparent;
  flex-shrink: 0;
  margin-top: 1px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  position: relative;
  transition: background 0.15s, border-color 0.15s;
}

.check-row input[type="checkbox"]:checked {
  background: var(--habla-sky-blue);
  border-color: var(--habla-sky-blue);
}

.check-row input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  top: -1px;
  left: 2px;
  font-size: 11px;
  color: #ffffff;
  font-weight: 800;
}

.check-row span {
  font-size: 12px;
  color: var(--habla-text);
  line-height: 1.5;
}

.check-row span a {
  color: var(--habla-sky-blue);
  text-decoration: none;
  font-weight: 600;
}

.check-row span a:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .habla-cta { padding: 48px 24px 40px; }
  .cta-form { padding: 24px 20px 20px; }
}
