/* Estilos aislados para insertar la calculadora en la web de KaiControl. */
.kc-calc {
  --kc-main: #189279;
  --kc-main-dark: #127560;
  --kc-mint: #eaf6f3;
  --kc-pale: #d3fff6;
  --kc-text: #173f36;
  --kc-muted: #606e69;
  --kc-border: #e0ebe6;
  --kc-progress: 18.3673%;
  box-sizing: border-box;
  width: 100%;
/*  max-width: 1120px;*/
  margin: 0 auto;
  padding: 36px 40px 30px;
  color: var(--kc-text);
  background: #fff;
  border: 1px solid var(--kc-border);
  border-radius: 24px;
  text-align: left;
  color-scheme: light;
}
.kc-calc *, .kc-calc *::before, .kc-calc *::after { box-sizing: border-box; }
.kc-calc [hidden] { display: none !important; }
.kc-calc button, .kc-calc input, .kc-calc a { font: inherit; }
.kc-calc button { cursor: pointer; }
.kc-calc button:disabled { cursor: default; opacity: .35; }
.kc-calc button:focus-visible, .kc-calc input:focus-visible, .kc-calc a:focus-visible,
.kc-calc summary:focus-visible { outline: 3px solid var(--kc-main); outline-offset: 5px; }
.kc-calc__controls { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.kc-calc__question { margin: 0; }
.kc-calc__hint { margin: 5px 0 0; color: var(--kc-muted); font-size: .875rem; }
.kc-calc__stepper { display: flex; align-items: center; flex: none; gap: 12px; }
.kc-calc__stepper button {
  display: inline-grid; place-items: center; width: 36px; height: 36px;
  padding: 0; border: 1px solid var(--kc-border); border-radius: 50%;
  color: var(--kc-main-dark); background: #fff; font-size: 22px; line-height: 1;
  transition: background .15s;
}
.kc-calc__stepper button:hover:enabled { background: var(--kc-mint); }
.kc-calc__number-wrap { display: flex; align-items: center; gap: 8px; }
.kc-calc__number {
  width: 58px; height: 44px; padding: 5px; border: 1px solid var(--kc-border);
  border-radius: 10px; background: #f8fbf9; color: var(--kc-text);
  font-size: 1.25rem !important; font-weight: 600 !important; text-align: center;
  appearance: textfield; -moz-appearance: textfield;
}
.kc-calc__number::-webkit-outer-spin-button, .kc-calc__number::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.kc-calc__number[aria-invalid='true'] { border-color: #b42318; }
.kc-calc__number-label { font-size: .875rem; color: var(--kc-muted); }
.kc-calc__error { margin: 10px 0 0; color: #b42318; font-size: .875rem; }
.kc-calc__slider { position: relative; margin: 26px 13px 0; padding-top: 40px; }
.kc-calc__bubble {
  position: absolute; top: 0; left: 18.3673%; transform: translateX(-50%);
  display: block; width: max-content; padding: 5px 13px; border: 1px solid #b6e3d8;
  border-radius: 100px; background: var(--kc-mint); color: var(--kc-main-dark);
  font-size: .875rem; font-weight: 600; line-height: 1.5; white-space: nowrap;
}
.kc-calc__bubble::after { content: ''; position: absolute; bottom: -5px; left: 50%;
  width: 8px; height: 8px; border-bottom: 1px solid #b6e3d8; border-right: 1px solid #b6e3d8;
  background: var(--kc-mint); transform: translateX(-50%) rotate(45deg); }
.kc-calc__range {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 32px;
  margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer;
}
.kc-calc__range::-webkit-slider-runnable-track {
  height: 6px; border-radius: 100px;
  background: linear-gradient(to right, var(--kc-main) 0%, var(--kc-main) var(--kc-progress), #e1eee9 var(--kc-progress), #e1eee9 100%);
}
.kc-calc__range::-moz-range-track { height: 6px; border-radius: 100px; background: #e1eee9; }
.kc-calc__range::-moz-range-progress { height: 6px; border-radius: 100px; background: var(--kc-main); }
.kc-calc__range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 26px; height: 26px; margin-top: -10px;
  border: 3px solid var(--kc-main); border-radius: 50%; background: #fff;
  box-shadow: 0 3px 8px rgb(24 146 121 / 18%);
}
.kc-calc__range::-moz-range-thumb {
  width: 20px; height: 20px; border: 3px solid var(--kc-main); border-radius: 50%; background: #fff;
  box-shadow: 0 3px 8px rgb(24 146 121 / 18%);
}
.kc-calc__limits { display: flex; justify-content: space-between; margin: 0 -3px; color: var(--kc-muted); font-size: .875rem; }
.kc-calc__table { width: 100%; margin: 30px 0 0; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 1rem; }
.kc-calc__table col:nth-child(1) { width: 27%; }
.kc-calc__table col:nth-child(2) { width: 22%; }
.kc-calc__table col:nth-child(3) { width: 22%; }
.kc-calc__table col:nth-child(4) { width: 29%; }
.kc-calc__table thead th { padding: 0 14px 14px; color: var(--kc-muted); font-size: .75rem;
  font-weight: 600; letter-spacing: .065em; text-transform: uppercase; vertical-align: bottom; text-align: left; }
.kc-calc__table tbody th, .kc-calc__table td { height: 68px; padding: 15px 14px; border-bottom: 1px solid var(--kc-border); vertical-align: middle; text-align: left; }
.kc-calc__table tbody th { font-size: 1rem; font-weight: 600; }
.kc-calc__table tbody tr:last-child th, .kc-calc__table tbody tr:last-child td { border-bottom: none; }
.kc-calc__table .kc-calc__row--kai th, .kc-calc__table .kc-calc__row--kai td { border-bottom: none; background: var(--kc-mint); }
.kc-calc__table .kc-calc__row--kai th { border-radius: 12px 0 0 12px; }
.kc-calc__table .kc-calc__row--kai td:last-child { border-radius: 0 12px 12px 0; }
.kc-calc__brand { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.kc-calc__brand-name { color: var(--kc-main-dark); font-size: 1.125rem; font-weight: 700; letter-spacing: -.035em; }
.kc-calc__badge { display: inline-block; border-radius: 100px; padding: 3px 7px; background: #d1ebe2; color: #185e4b; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.kc-calc__amount { display: inline; font-size: 1.125rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -.025em; }
.kc-calc__row--kai .kc-calc__amount { color: var(--kc-main-dark); font-size: 1.375rem; font-weight: 700; }
.kc-calc__unit { margin-left: 3px; font-size: .75rem; color: var(--kc-muted); white-space: nowrap; }
.kc-calc__saving-pill { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px; padding: 6px 12px;
  border-radius: 100px; background: #edf5e7; color: #3a641c; line-height: 1.5; }
.kc-calc__saving { font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kc-calc__saving-unit { font-size: .75rem; white-space: nowrap; }
.kc-calc__row--unavailable .kc-calc__amount { font-size: .875rem; font-weight: 400; color: var(--kc-muted); letter-spacing: 0; }
.kc-calc__row--unavailable .kc-calc__saving-pill { padding: 0; background: transparent; color: var(--kc-muted); }
.kc-calc__saving--unavailable { font-size: .875rem; font-weight: 400; }
.kc-calc__reference { font-size: .8125rem; color: var(--kc-main-dark); }
.kc-calc__footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 20px;
  padding-top: 26px; border-top: 1px solid var(--kc-border); }
.kc-calc__summary { margin: 0; font-size: 1rem; }
.kc-calc__summary strong { color: var(--kc-main-dark); font-weight: 600; }
.kc-calc__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.kc-calc__button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 22px;
  border: 1px solid var(--kc-main); border-radius: 100px; font-size: .875rem !important;
  font-weight: 600 !important; line-height: 1.5; text-align: center; text-decoration: none !important;
  transition: background .15s, box-shadow .15s;
}
.kc-calc__button--primary { background: var(--kc-main); color: #fff !important; box-shadow: 0 5px 14px rgb(24 146 121 / 14%); }
.kc-calc__button--primary:hover { background: var(--kc-main-dark); box-shadow: 0 6px 20px rgb(24 146 121 / 20%); }
.kc-calc__button--secondary { color: var(--kc-main-dark) !important; background: #fff; }
.kc-calc__button--secondary:hover { background: var(--kc-mint); }
.kc-calc__note { margin: 22px 0 0; color: var(--kc-muted); font-size: .75rem; line-height: 1.7; }
.kc-calc__method { margin-top: 8px; color: var(--kc-muted); font-size: .75rem; line-height: 1.8; }
.kc-calc__method summary { display: list-item; width: fit-content; cursor: pointer; color: var(--kc-main-dark); }
.kc-calc__method p { margin: 8px 0; }
.kc-calc__sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 960px) {
  .kc-calc { padding: 30px 24px 24px; }
  .kc-calc__table thead th, .kc-calc__table tbody th, .kc-calc__table td { padding-left: 12px; padding-right: 12px; }
  .kc-calc__unit { display: block; margin: 0; }
  .kc-calc__footer { align-items: flex-start; flex-direction: column; gap: 18px; }
  .kc-calc__actions { width: 100%; }
  .kc-calc__button { min-width: 165px; }
}
@media (max-width: 640px) {
  .kc-calc { padding: 24px 18px; border-radius: 20px; }
  .kc-calc__controls { align-items: flex-start; flex-direction: column; gap: 18px; }
  .kc-calc__stepper { gap: 14px; }
  .kc-calc__slider { margin-left: 28px; margin-right: 28px; margin-top: 22px; }
  .kc-calc__table { display: block; margin-top: 26px; }
  .kc-calc__table colgroup, .kc-calc__table thead { display: none; }
  .kc-calc__table tbody { display: grid; gap: 12px; }
  .kc-calc__table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px;
    border: 1px solid var(--kc-border); border-radius: 12px; }
  .kc-calc__table .kc-calc__row--kai { background: var(--kc-mint); border-color: #b6ded2; }
  .kc-calc__table tbody th, .kc-calc__table td { display: block; height: auto; padding: 0; border: 0; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
  .kc-calc__table tbody th { grid-column: 1 / -1; padding-bottom: 2px; }
  .kc-calc__table td::before { content: attr(data-label); display: block; margin-bottom: 3px; font-size: .75rem; font-weight: 400; color: var(--kc-muted); }
  .kc-calc__table td:last-child { grid-column: 1 / -1; border-top: 1px solid var(--kc-border); padding-top: 10px; }
  .kc-calc__table .kc-calc__row--kai td:last-child { display: none; }
  .kc-calc__brand { justify-content: space-between; }
  .kc-calc__brand-name { font-size: 1.25rem; }
  .kc-calc__badge { font-size: .75rem; }
  .kc-calc__unit { display: inline; margin-left: 3px; }
  .kc-calc__saving-pill { margin-top: 3px; }
  .kc-calc__footer { padding-top: 20px; }
  .kc-calc__actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .kc-calc__button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .kc-calc *, .kc-calc *::before, .kc-calc *::after { transition: none !important; scroll-behavior: auto !important; }
}
