.calc-container {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  max-width: 720px;
  margin: 24px auto;
  overflow: hidden;
}

.calc-header {
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  color: #fff;
  padding: 24px 22px;
  text-align: center;
}

.calc-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.3;
}

.calc-subtitle {
  margin: 10px 0 14px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}

.calc-badge {
  display: inline-block;
  background: #047857;
  color: #fff;
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
}

.calc-body {
  padding: 22px;
}

.calc-rates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.rate-pill {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.rate-label {
  display: block;
  font-size: 0.8rem;
  color: #9a3412;
  margin-bottom: 5px;
  font-weight: 700;
}

.rate-pill strong {
  color: #c2410c;
  font-size: 1rem;
}

.input-group {
  margin-bottom: 18px;
}

.input-group label {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
  color: #1e293b;
  font-size: 0.96rem;
}

.input-group small {
  display: block;
  margin-top: 7px;
  color: #64748b;
  font-size: 0.83rem;
  line-height: 1.45;
}

.input-group input[type="number"] {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 1rem;
  box-sizing: border-box;
  background: #fff;
  color: #0f172a;
}

.input-group input[type="number"]:hover {
  border-color: #94a3b8;
}

.input-group input[type="number"]:focus {
  outline: none;
  border-color: #fb923c;
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.15);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f8fafc;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #ea580c;
  cursor: pointer;
}

.checkbox-content {
  flex: 1;
}

.checkbox-content label {
  margin: 0 0 4px;
  font-size: 0.95rem;
  cursor: pointer;
  color: #1e293b;
}

.checkbox-content small {
  margin: 0;
}

.calc-status {
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-weight: 700;
  line-height: 1.5;
  font-size: 0.95rem;
}

.calc-results {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
}

.result-row:last-child {
  border-bottom: none;
}

.result-label {
  color: #334155;
  font-size: 0.96rem;
  line-height: 1.45;
  flex: 1;
}

.result-label em {
  font-style: normal;
  color: #64748b;
  font-size: 0.88rem;
  display: block;
  margin-top: 2px;
}

.result-value {
  color: #0f172a;
  font-weight: 700;
  font-size: 1rem;
  text-align: right;
  white-space: nowrap;
}

.result-value.aduana {
  color: #b45309;
}

.result-row.total {
  margin-top: 10px;
  padding-top: 18px;
  border-top: 2px solid #cbd5e1;
  border-bottom: none;
}

.result-row.total .result-label {
  font-size: 1.08rem;
  font-weight: 800;
  color: #0f172a;
}

.result-row.total .result-value {
  font-size: 1.55rem;
  font-weight: 900;
  color: #ea580c;
  line-height: 1;
}

.calc-cta {
  margin-top: 20px;
  padding: 18px;
  background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid #fdba74;
  border-radius: 14px;
  text-align: center;
}

.calc-cta-text {
  margin: 0 0 12px;
  color: #9a3412;
  font-size: 0.94rem;
  line-height: 1.5;
  font-weight: 600;
}

.btn-afiliado {
  display: inline-block;
  background: linear-gradient(135deg, #ff6a00 0%, #ff4747 100%);
  color: #fff;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.96rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 18px rgba(255, 106, 0, 0.25);
}

.btn-afiliado:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(255, 106, 0, 0.3);
}

.calc-footnote {
  margin-top: 16px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #64748b;
  text-align: center;
}

.calc-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.summary-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
}

.summary-item span {
  display: block;
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 6px;
}

.summary-item strong {
  color: #0f172a;
  font-size: 1rem;
}

@media (max-width: 640px) {
  .calc-container {
    margin: 16px 12px;
    border-radius: 14px;
  }

  .calc-header,
  .calc-body {
    padding: 16px;
  }

  .calc-title {
    font-size: 1.16rem;
  }

  .calc-subtitle {
    font-size: 0.9rem;
  }

  .calc-rates,
  .calc-summary {
    grid-template-columns: 1fr;
  }

  .result-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .result-value {
    text-align: left;
    white-space: normal;
    font-size: 1.02rem;
  }

  .result-row.total .result-value {
    font-size: 1.4rem;
  }

  .btn-afiliado {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
}
