.tecinf-roi-calculator,
.tecinf-roi-suite {
  --roi-bg: #061a2a;
  --roi-panel: #071e30;
  --roi-panel-2: #092438;
  --roi-mint: #0bd3aa;
  --roi-mint-soft: #68e2c5;
  --roi-white: #f7fbff;
  --roi-muted: #a8b8c7;
  --roi-line: rgba(105, 225, 198, .8);
  --roi-line-soft: rgba(108, 207, 194, .25);
  color: var(--roi-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tecinf-roi-calculator *, .tecinf-roi-calculator *::before, .tecinf-roi-calculator *::after,
.tecinf-roi-suite *, .tecinf-roi-suite *::before, .tecinf-roi-suite *::after { box-sizing: border-box; }

.tecinf-roi-calculator {
  width: 100%;
  padding: clamp(20px, 3.5vw, 52px);
  border: 1px solid rgba(80, 216, 190, .18);
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 0%, rgba(11, 211, 170, .08), transparent 33%),
    var(--roi-bg);
  box-shadow: 0 28px 65px rgba(0, 15, 26, .22);
}
.tecinf-roi-calculator[hidden] { display: none !important; }
.tecinf-roi-calculator--embedded { border: 0; border-radius: 0; box-shadow: none; }

.tecinf-roi-calculator__header { max-width: 920px; margin-bottom: 28px; }
.tecinf-roi-calculator__header p { margin: 0 0 8px; color: var(--roi-mint); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.tecinf-roi-calculator__header h2 { margin: 0 0 8px; color: var(--roi-white); font-size: clamp(28px, 4vw, 44px); line-height: 1; }
.tecinf-roi-calculator__header span { display: block; color: var(--roi-muted); font-size: 15px; line-height: 1.65; }

.tecinf-roi-calculator__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 18px; }
.tecinf-roi-inputs, .tecinf-roi-results { min-width: 0; padding: clamp(22px, 3vw, 36px); border: 2px solid rgba(247, 251, 255, .88); border-radius: 24px; background: rgba(7, 30, 48, .72); }
.tecinf-roi-results { display: flex; flex-direction: column; border-color: var(--roi-line); }
.tecinf-roi-column-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.tecinf-roi-column-title h3 { margin: 0; color: var(--roi-mint); font-size: 21px; }
.tecinf-roi-column-title span { color: var(--roi-muted); font-size: 13px; }

.tecinf-roi-field { margin-bottom: 25px; }
.tecinf-roi-field:last-child { margin-bottom: 0; }
.tecinf-roi-field__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.tecinf-roi-field label { color: var(--roi-white); font-size: 13px; font-weight: 700; line-height: 1.35; }
.tecinf-roi-field output { flex: 0 0 auto; padding: 4px 10px; border-radius: 6px; color: #002b26; background: var(--roi-mint); font-size: 12px; font-weight: 800; }
.tecinf-roi-field input[type="range"] {
  width: 100%;
  height: 4px;
  margin: 0;
  border: 0;
  border-radius: 99px;
  outline: 0;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(to right, var(--roi-mint) 0 var(--tecinf-range-progress), rgba(104, 226, 197, .22) var(--tecinf-range-progress) 100%);
  cursor: pointer;
}
.tecinf-roi-field input[type="range"]::-webkit-slider-thumb { width: 16px; height: 16px; border: 3px solid var(--roi-bg); border-radius: 50%; appearance: none; -webkit-appearance: none; background: var(--roi-mint); box-shadow: 0 0 0 2px rgba(11, 211, 170, .3); }
.tecinf-roi-field input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border: 3px solid var(--roi-bg); border-radius: 50%; background: var(--roi-mint); box-shadow: 0 0 0 2px rgba(11, 211, 170, .3); }
.tecinf-roi-field__range { display: flex; justify-content: space-between; margin-top: 6px; color: #8397a8; font-size: 9px; }
.tecinf-roi-field small { display: block; margin-top: 5px; color: #7890a2; font-size: 10px; line-height: 1.4; }

.tecinf-roi-primary { padding: 0 4px 22px; }
.tecinf-roi-primary p { margin: 0 0 8px; color: var(--roi-mint); font-size: 21px; font-weight: 800; }
.tecinf-roi-primary strong { display: block; color: var(--roi-mint); font-size: clamp(64px, 8vw, 112px); line-height: .95; letter-spacing: -.05em; }
.tecinf-roi-primary span { display: block; max-width: 520px; margin-top: 16px; color: var(--roi-muted); font-size: 14px; line-height: 1.6; }
.tecinf-roi-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: auto; }
.tecinf-roi-kpis article { min-height: 92px; padding: 18px 20px; border: 2px solid var(--roi-line); border-radius: 14px; background: rgba(4, 22, 36, .36); }
.tecinf-roi-kpis article:last-child:nth-child(odd) { grid-column: 1 / -1; }
.tecinf-roi-kpis span { display: block; margin-bottom: 4px; color: var(--roi-mint); font-size: 13px; font-weight: 700; }
.tecinf-roi-kpis strong { color: var(--roi-white); font-size: clamp(20px, 2.5vw, 28px); line-height: 1.15; }

.tecinf-roi-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.tecinf-roi-action { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 20px; border: 1px solid var(--roi-white); border-radius: 28px; color: var(--roi-white) !important; text-decoration: none !important; transition: transform .2s ease, background .2s ease; }
.tecinf-roi-action:hover { transform: translateY(-2px); color: var(--roi-white); }
.tecinf-roi-action--primary { border-color: var(--roi-mint); color: #032b27 !important; background: var(--roi-mint); }
.tecinf-roi-action--primary:hover { color: #032b27; background: var(--roi-mint-soft); }
.tecinf-roi-action span { font-size: 23px; }

.tecinf-roi-details { margin-top: 18px; border: 1px solid var(--roi-line-soft); border-radius: 16px; background: rgba(7, 30, 48, .6); overflow: hidden; }
.tecinf-roi-details summary { padding: 17px 20px; color: var(--roi-mint); font-size: 13px; font-weight: 800; cursor: pointer; }
.tecinf-roi-details__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; padding: 0 20px 22px; }
.tecinf-roi-details h3 { margin: 0 0 12px; color: var(--roi-white); font-size: 15px; }
.tecinf-roi-breakdown { border: 1px solid var(--roi-line-soft); border-radius: 12px; overflow: hidden; }
.tecinf-roi-breakdown > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 13px; border-bottom: 1px solid var(--roi-line-soft); color: var(--roi-muted); font-size: 12px; }
.tecinf-roi-breakdown > div:last-child { border-bottom: 0; }
.tecinf-roi-breakdown strong { color: var(--roi-white); text-align: right; }
.tecinf-roi-breakdown .is-total { color: var(--roi-white); background: rgba(11, 211, 170, .06); font-weight: 700; }
.tecinf-roi-breakdown .is-positive strong { color: var(--roi-mint); }
.tecinf-roi-benefits { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.tecinf-roi-benefits li { position: relative; margin: 0; padding-left: 20px; color: var(--roi-muted); font-size: 12px; line-height: 1.5; }
.tecinf-roi-benefits li::before { content: "✓"; position: absolute; left: 0; color: var(--roi-mint); font-weight: 800; }

.tecinf-roi-suite { display: grid; grid-template-columns: 220px minmax(0, 1fr); width: 100%; border-radius: 28px; background: var(--roi-bg); box-shadow: 0 28px 65px rgba(0, 15, 26, .22); overflow: hidden; }
.tecinf-roi-suite__nav { min-width: 0; padding: 24px 0; border-right: 1px solid rgba(32, 149, 165, .22); background: #051827; }
.tecinf-roi-suite__nav > p { margin: 0 20px 16px; color: #15d7ee; font-size: 10px; font-weight: 800; letter-spacing: .26em; }
.tecinf-roi-suite__nav-list { display: grid; }
.tecinf-roi-suite__nav-button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 62px; padding: 10px 16px; border: 0; border-left: 3px solid transparent; color: #789daf; background: transparent; text-align: left; cursor: pointer; }
.tecinf-roi-suite__nav-button span { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border: 1px solid rgba(67, 215, 218, .22); border-radius: 50%; background: rgba(5, 45, 62, .7); font-size: 18px; }
.tecinf-roi-suite__nav-button strong { font-size: 13px; }
.tecinf-roi-suite__nav-button.is-active { border-left-color: #12d6ee; color: #12d6ee; background: rgba(10, 119, 145, .14); }
.tecinf-roi-suite__nav-button.is-active span { box-shadow: 0 0 18px rgba(18, 214, 238, .35); }
.tecinf-roi-suite__content { min-width: 0; }

.tecinf-roi-error { padding: 12px 16px; border-left: 4px solid #bd2f3d; background: #fff2f3; }

@media (max-width: 1050px) {
  .tecinf-roi-calculator__layout { grid-template-columns: 1fr; }
  .tecinf-roi-suite { grid-template-columns: 1fr; }
  .tecinf-roi-suite__nav { position: sticky; z-index: 5; top: 0; padding: 14px; border-right: 0; border-bottom: 1px solid rgba(32, 149, 165, .22); }
  .tecinf-roi-suite__nav > p { margin: 0 4px 10px; }
  .tecinf-roi-suite__nav-list { display: flex; gap: 8px; overflow-x: auto; }
  .tecinf-roi-suite__nav-button { flex: 0 0 auto; width: auto; min-height: 48px; padding: 7px 12px; border-left: 0; border-bottom: 2px solid transparent; border-radius: 10px; }
  .tecinf-roi-suite__nav-button.is-active { border-bottom-color: #12d6ee; }
  .tecinf-roi-suite__nav-button span { flex-basis: 32px; width: 32px; height: 32px; }
}

@media (max-width: 700px) {
  .tecinf-roi-calculator { padding: 18px; border-radius: 20px; }
  .tecinf-roi-inputs, .tecinf-roi-results { padding: 20px; border-radius: 18px; }
  .tecinf-roi-field__top { align-items: flex-start; }
  .tecinf-roi-kpis, .tecinf-roi-actions, .tecinf-roi-details__grid { grid-template-columns: 1fr; }
  .tecinf-roi-kpis article:last-child:nth-child(odd) { grid-column: auto; }
  .tecinf-roi-primary strong { font-size: 64px; }
  .tecinf-roi-details__grid { gap: 22px; }
  .tecinf-roi-suite { border-radius: 18px; }
}