/* qma-child/css/paginas/p-b0381cedab.css: CSS que vivía en el contenido. Páginas: ver la opción qma_css_paginas. 23-oct-2026 */
/* ── ROI Calculator: estilos adicionales (no reemplaza el global) ─────────── */
/* Solo cubre lo que qma-global NO tiene: inputs, tabs, KPIs, meter */

/* Inputs / selects */
.roi-field { margin-bottom: 14px; }
.roi-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
}
.roi-field input[type="number"],
.roi-field select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}
.roi-field input[type="number"]:focus,
.roi-field select:focus {
  outline: none;
  border-color: #0b5cff;
  box-shadow: 0 0 0 3px rgba(11,92,255,.10);
}
.roi-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}
.roi-field .roi-hint {
  font-size: 12px;
  color: rgba(0,0,0,.45);
  margin-top: 3px;
}

/* Step headers dentro del formulario */
.roi-step-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0 10px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  margin-bottom: 14px;
}
.roi-step-hd:not(:first-of-type) { margin-top: 18px; }
.roi-step-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #0b5cff;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.roi-step-hd h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0;
}

/* Tabs resultados */
.roi-tabs {
  display: flex;
  border-bottom: 2px solid rgba(0,0,0,.10);
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 0;
}
.roi-tab-btn {
  padding: 11px 18px;
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  color: rgba(0,0,0,.50);
  line-height: 1.3;
  text-align: left;
}
.roi-tab-btn .roi-tab-role {
  display: block;
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 2px;
  color: rgba(0,0,0,.35);
}
.roi-tab-btn.active {
  color: #0b5cff;
  border-bottom-color: #0b5cff;
}
.roi-tab-content { display: none; }
.roi-tab-content.active { display: block; }

/* KPI números grandes */
.roi-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.roi-kpi {
  padding: 14px 16px;
  border-top: 3px solid rgba(0,0,0,.10);
}
.roi-kpi.accent   { border-top-color: #0b5cff; }
.roi-kpi.positive { border-top-color: #1aa362; }
.roi-kpi.warning  { border-top-color: #d97706; }
.roi-kpi.danger   { border-top-color: #dc2626; }
.roi-kpi-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(0,0,0,.45);
  margin-bottom: 6px;
}
.roi-kpi-val {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.roi-kpi.positive .roi-kpi-val { color: #1aa362; }
.roi-kpi.warning  .roi-kpi-val { color: #d97706; }
.roi-kpi.danger   .roi-kpi-val { color: #dc2626; }
.roi-kpi.accent   .roi-kpi-val { color: #0b5cff; }
.roi-kpi-sub {
  font-size: 12px;
  color: rgba(0,0,0,.40);
  margin-top: 3px;
}

/* Barra ROSI */
.roi-meter { margin-bottom: 20px; }
.roi-meter-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(0,0,0,.55);
  margin-bottom: 8px;
}
.roi-meter-bg {
  height: 8px;
  background: rgba(0,0,0,.08);
  border-radius: 4px;
  overflow: hidden;
}
.roi-meter-fill {
  height: 100%;
  background: #0b5cff;
  border-radius: 4px;
  transition: width 1s cubic-bezier(.22,.68,0,1.2);
  width: 0%;
}
.roi-meter-scale {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: rgba(0,0,0,.35);
  margin-top: 4px;
  font-weight: 600;
}

/* Placeholder estado vacío */
.roi-placeholder {
  padding: 48px 20px;
  text-align: center;
  color: rgba(0,0,0,.40);
}
.roi-placeholder h2 { font-size: 18px; margin-bottom: 8px; }
.roi-placeholder p  { font-size: 14px; max-width: 280px; margin: 0 auto; }

/* Layout dos columnas (formulario + resultados) */
.roi-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 860px) {
  .roi-layout { grid-template-columns: 1fr; }
  .roi-tab-btn { padding: 10px 12px; }
  .roi-kpi-row { grid-template-columns: repeat(2, 1fr); }
}

/* Fijar formulario en scroll */
@media (min-width: 860px) {
  .roi-form-col { position: sticky; top: 24px; }
}

/* Nota al pie de supuestos */
.roi-note {
  font-size: 12px;
  color: rgba(0,0,0,.40);
  margin-top: 10px;
  font-style: italic;
}

/* Print */
@media print {
  .roi-form-col, .roi-tabs { display: none !important; }
  .roi-tab-content { display: block !important; page-break-after: always; }
  .roi-placeholder { display: none !important; }
  .roi-layout { display: block; }
}
