/* ============================================================
   calculadora.css
   Paleta: --bg #0d1b2e | --accent #19c6c8 | --text #b8d0e8
   Compatible con Bootstrap 5 (ya cargado en tu proyecto)
   ============================================================ */

/* --- Hero --- */
.calc-hero {
  background: linear-gradient(135deg, #0d1b2e 0%, #0e2340 100%);
  border-bottom: 1px solid #1e3a5f;
}

/* --- Panel resumen (sidebar) --- */
.calc-summary {
  background: #0b1826;
  border: 1px solid #1e3a5f;
  border-radius: 12px;
  padding: 1.5rem;
}

/* --- Métricas --- */
.calc-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0d1b2e;
  border: 1px solid #1e3a5f;
  border-radius: 8px;
  padding: .75rem 1rem;
}

.calc-metric--accent {
  border-color: #19c6c8;
}

.calc-metric__label {
  font-size: .8rem;
  color: #b8d0e8;
}

.calc-metric__value {
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
}

.calc-metric--accent .calc-metric__value {
  color: #19c6c8;
  font-size: 1.25rem;
}

/* --- Lista de features seleccionadas --- */
.calc-selected-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 200px;
  overflow-y: auto;
}

.calc-selected-item {
  display: flex;
  justify-content: space-between;
  font-size: .8rem;
  color: #b8d0e8;
  padding: .3rem 0;
  border-bottom: 1px solid #1e3a5f;
}

.calc-selected-item:last-child {
  border-bottom: none;
}

.calc-selected-item__price {
  color: #19c6c8;
  white-space: nowrap;
  margin-left: .5rem;
}

.calc-empty-msg {
  font-size: .8rem;
  color: #476080;
  text-align: center;
  padding: .75rem 0;
  list-style: none;
}

/* --- Labels de categoría --- */
.calc-cat-label {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #19c6c8;
  margin: 1.5rem 0 .5rem;
  padding-left: 2px;
}

/* --- Feature row --- */
.calc-feature-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1rem;
  border: 1px solid #1e3a5f;
  border-radius: 8px;
  background: #0b1826;
  margin-bottom: .5rem;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.calc-feature-row:hover {
  border-color: #2a5a7a;
  background: #0d2035;
}

.calc-feature-row--active {
  border-color: #19c6c8 !important;
  background: #0a2030 !important;
}

.calc-feature-row__left {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}

.calc-feature-row__icon {
  font-size: 1rem;
  color: #2a5a7a;
  margin-top: 2px;
  flex-shrink: 0;
}

.calc-feature-row__icon--active {
  color: #19c6c8;
}

.calc-feature-row__name {
  font-size: .875rem;
  font-weight: 500;
  color: #e0eaf5;
  margin: 0 0 2px;
  line-height: 1.2;
}

.calc-feature-row--active .calc-feature-row__name {
  color: #19c6c8;
}

.calc-feature-row__desc {
  font-size: .75rem;
  color: #5a7a9a;
  margin: 0;
  line-height: 1.3;
}

.calc-feature-row__price {
  font-size: .78rem;
  font-weight: 500;
  color: #5a7a9a;
  white-space: nowrap;
  margin-left: .75rem;
}

.calc-feature-row--active .calc-feature-row__price {
  color: #19c6c8;
}

/* --- Pack buttons --- */
.calc-pack-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: .5rem .85rem;
  background: #0d1b2e;
  border: 1px solid #1e3a5f;
  border-radius: 7px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  margin-bottom: .4rem;
}

.calc-pack-btn:hover {
  border-color: #19c6c8;
  background: #0a2030;
}

.calc-pack-btn__name {
  font-size: .8rem;
  font-weight: 500;
  color: #b8d0e8;
}

.calc-pack-btn__price {
  font-size: .75rem;
  color: #19c6c8;
  white-space: nowrap;
}

/* --- Botón limpiar --- */
.btn-outline-secondary {
  border-color: #1e3a5f;
  color: #5a7a9a;
}

.btn-outline-secondary:hover {
  background: #1e3a5f;
  color: #b8d0e8;
  border-color: #1e3a5f;
}

/* --- Scrollbar personalizado para lista --- */
.calc-selected-list::-webkit-scrollbar {
  width: 4px;
}
.calc-selected-list::-webkit-scrollbar-track {
  background: #0d1b2e;
}
.calc-selected-list::-webkit-scrollbar-thumb {
  background: #1e3a5f;
  border-radius: 4px;
}

/* --- Responsive --- */
@media (max-width: 991px) {
  .calc-summary {
    margin-top: 1.5rem;
  }
  .sticky-top {
    position: relative !important;
    top: auto !important;
  }
}
