/* =========================================================
   CALCULADORAS — impuestos de compra + hipoteca.
   Estética premium de marca (slate-teal + acento champán),
   esquinas rectas. Formulario claro + panel de resultado oscuro.
   Escala fluida con clamp().
   ========================================================= */
.calc_section {
  margin: clamp(48px, 6vw, 104px) auto clamp(72px, 9vw, 148px);
}
.calc_wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5vw, 88px);
}

.calc {
  scroll-margin-top: 120px;
}
.calc__head {
  margin-bottom: clamp(22px, 2.4vw, 36px);
}
.calc__title {
  font-family: "Felidae", "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: clamp(26px, 1.4vw + 12px, 44px);
  line-height: 115%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #010101;
  margin: 0 0 clamp(8px, 1vw, 14px);
}
.calc__desc {
  font-family: "Inter", "Inter Metric Fallback", sans-serif;
  font-weight: 300;
  font-size: clamp(15px, 0.5vw + 9px, 19px);
  line-height: 150%;
  color: #3C3C3B;
  margin: 0;
  max-width: 640px;
}

.calc__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.4vw, 44px);
  align-items: start;
}

/* ----- Formulario (lado claro) ----- */
.calc__form {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.6vw, 24px);
  margin: 0;
}
.calc__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.calc__label {
  font-family: "Inter", "Inter Metric Fallback", sans-serif;
  font-weight: 500;
  font-size: clamp(13px, 0.3vw + 9px, 15px);
  letter-spacing: 0.02em;
  color: #41545C;
}
.calc__input {
  width: 100%;
  height: clamp(48px, 3.4vw, 56px);
  padding: 0 16px;
  border: 1px solid #D7D7D7;
  background: #FFFFFF;
  font-family: "Inter", "Inter Metric Fallback", sans-serif;
  font-weight: 500;
  font-size: clamp(15px, 0.4vw + 10px, 18px);
  color: #010101;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.calc__input:focus {
  outline: none;
  border-color: #C9A87C;
  box-shadow: 0 0 0 3px rgba(201, 168, 124, .18);
}
/* Select: restore a custom chevron (the .calc__input appearance:none removed it). */
.calc__select {
  padding-right: 42px;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2341545C' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
}
.calc__radios {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.calc__radio {
  flex: 1 1 0;
  min-width: 130px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: clamp(48px, 3.4vw, 56px);
  padding: 0 14px;
  border: 1px solid #D7D7D7;
  background: #FFFFFF;
  cursor: pointer;
  font-family: "Inter", "Inter Metric Fallback", sans-serif;
  font-weight: 500;
  font-size: clamp(13px, 0.3vw + 9px, 15px);
  color: #3C3C3B;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.calc__radio input { position: absolute; opacity: 0; pointer-events: none; }
.calc__radio:has(input:checked) {
  border-color: #41545C;
  background: #41545C;
  color: #FFFFFF;
}

/* ----- Resultado (panel oscuro premium) ----- */
.calc__result {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #FFFFFF;
  padding: clamp(24px, 2.6vw, 40px) clamp(22px, 2.4vw, 38px) clamp(22px, 2.4vw, 34px);
  background: linear-gradient(145deg, #10171A 0%, #2C3B42 58%, #41545C 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.calc__result::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 90% at 100% 0%, rgba(201, 168, 124, .16), transparent 58%);
}
.calc__result-title {
  display: block;
  font-family: "Inter", "Inter Metric Fallback", sans-serif;
  font-weight: 500;
  font-size: clamp(12px, 0.3vw + 8px, 14px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #C9A87C;
  margin-bottom: clamp(14px, 1.4vw, 22px);
}
.calc__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(9px, 0.9vw, 13px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  font-family: "Inter", "Inter Metric Fallback", sans-serif;
}
.calc__row span {
  font-weight: 300;
  font-size: clamp(14px, 0.4vw + 9px, 17px);
  color: rgba(255, 255, 255, .82);
}
.calc__row span em { font-style: normal; color: rgba(255, 255, 255, .5); }
.calc__row b {
  flex-shrink: 0;
  font-weight: 600;
  font-size: clamp(15px, 0.4vw + 10px, 18px);
  color: #FFFFFF;
  white-space: nowrap;
}
.calc__row--sub b { color: #FFFFFF; }
.calc__row--total {
  margin-top: 6px;
  border-bottom: 0;
  border-top: 1px solid rgba(201, 168, 124, .5);
  padding-top: clamp(14px, 1.4vw, 20px);
}
.calc__row--total span {
  font-weight: 500;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(13px, 0.35vw + 9px, 16px);
}
.calc__row--total b {
  font-family: "Felidae", "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: clamp(22px, 0.8vw + 14px, 32px);
  color: #C9A87C;
}
.calc__note {
  margin: clamp(16px, 1.6vw, 22px) 0 0;
  font-family: "Inter", "Inter Metric Fallback", sans-serif;
  font-weight: 300;
  font-size: clamp(11px, 0.2vw + 8px, 13px);
  line-height: 150%;
  color: rgba(255, 255, 255, .55);
}

/* ----- Adaptive ----- */
@media (max-width: 860px) {
  .calc__grid { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .calc__radio { min-width: 0; flex-basis: 100%; }
}
