/* =========================================================
   ML RENTABILIDAD · INICIO
   PREMIUM / CLARO / RESPONSIVE / ANIMADO
   ========================================================= */


/* =========================================================
   PAGE BASE
   ========================================================= */

#pageInicio {
  width: 100%;
  min-width: 0;
}


/* =========================================================
   HEADER
   ========================================================= */

.calc-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 18px;

  margin-bottom: 18px;
}

.calc-page-header > div {
  min-width: 0;
}

.calc-page-header h1 {
  margin: 0;

  color: var(--text);

  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 900;

  line-height: 1;

  letter-spacing: -0.04em;
}

.calc-page-header p {
  max-width: 680px;

  margin:
    8px
    0
    0;

  color: var(--muted);

  font-size: 13px;
  font-weight: 600;

  line-height: 1.5;
}

.calc-page-header .primary-button {
  flex: 0 0 auto;
}


/* =========================================================
   PRODUCT SELECTOR
   ========================================================= */

.calc-product-selector {
  position: relative;
  z-index: 20;

  margin-bottom: 18px;
}


/* =========================================================
   PRODUCT SEARCH
   ========================================================= */

.calc-product-search {
  position: relative;

  min-height: 52px;

  display: flex;
  align-items: center;

  border:
    1px solid
    var(--border);

  border-radius:
    14px;

  background:
    linear-gradient(
      180deg,
      var(--surface),
      color-mix(
        in srgb,
        var(--surface-2) 70%,
        var(--surface)
      )
    );

  box-shadow:
    0 8px 28px
    rgba(0, 0, 0, 0.06);

  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.calc-product-search:focus-within {
  border-color:
    var(--accent-border);

  box-shadow:
    0 0 0 3px
    var(--focus-ring),
    0 10px 32px
    rgba(0, 0, 0, 0.08);
}

.calc-product-search > svg {
  width: 17px;
  height: 17px;

  margin-left: 15px;

  flex: 0 0 auto;

  color: var(--muted);
}

.calc-product-search input {
  width: 100%;
  min-width: 0;
  min-height: 50px;

  padding:
    0
    12px;

  border: 0;
  outline: 0;

  background: transparent;

  color: var(--text);

  font-size: 14px;
  font-weight: 700;
}

.calc-search-clear {
  width: 38px;
  height: 38px;

  margin-right: 6px;

  flex: 0 0 auto;

  display: grid;
  place-items: center;

  border: 0;
  border-radius: 9px;

  background: transparent;

  color: var(--muted);

  transition:
    background var(--transition),
    color var(--transition),
    transform var(--transition);
}

.calc-search-clear:hover {
  background: var(--surface-3);
  color: var(--text);
}

.calc-search-clear:active {
  transform: scale(0.94);
}

.calc-search-clear svg {
  width: 15px;
  height: 15px;
}


/* =========================================================
   PRODUCT RESULTS
   ========================================================= */

.calc-product-results {
  position: absolute;

  top: calc(100% + 7px);
  left: 0;
  right: 0;

  z-index: 80;

  display: none;

  max-height: 360px;

  overflow-y: auto;

  padding: 7px;

  border:
    1px solid
    var(--border-strong);

  border-radius:
    14px;

  background:
    color-mix(
      in srgb,
      var(--surface) 97%,
      transparent
    );

  backdrop-filter:
    blur(20px);

  -webkit-backdrop-filter:
    blur(20px);

  box-shadow:
    0 22px 70px
    rgba(0, 0, 0, 0.24);
}

.calc-product-results.open {
  display: grid;

  gap: 5px;

  animation:
    calcResultsEnter
    180ms
    ease;
}

@keyframes calcResultsEnter {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.calc-product-option {
  width: 100%;

  display: grid;

  grid-template-columns:
    42px
    minmax(0, 1fr)
    auto;

  align-items: center;

  gap: 10px;

  padding: 8px;

  border:
    1px solid
    transparent;

  border-radius:
    11px;

  background: transparent;

  color: var(--text);

  text-align: left;

  transition:
    background var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.calc-product-option:hover {
  border-color: var(--border);

  background: var(--surface-2);

  transform: translateX(2px);
}

.calc-product-option img,
.calc-product-option-image {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  overflow: hidden;

  border:
    1px solid
    var(--border);

  border-radius: 9px;

  background: var(--surface-3);
}

.calc-product-option img {
  object-fit: cover;
}

.calc-product-option-image svg {
  width: 16px;
  height: 16px;

  color: var(--muted);
}

.calc-product-option-copy {
  min-width: 0;

  display: grid;

  gap: 2px;
}

.calc-product-option-copy small {
  color: var(--muted);

  font-size: 9px;
  font-weight: 750;
}

.calc-product-option-copy strong {
  overflow: hidden;

  color: var(--text);

  font-size: 12px;
  font-weight: 800;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.calc-product-option-price {
  color: var(--text-2);

  font-size: 11px;
  font-weight: 850;

  white-space: nowrap;
}

.calc-product-empty {
  padding: 18px;

  color: var(--muted);

  font-size: 12px;
  font-weight: 700;

  text-align: center;
}


/* =========================================================
   SELECTED PRODUCT
   ========================================================= */

.selected-product-card {
  margin-top: 10px;

  display: grid;

  grid-template-columns:
    54px
    minmax(0, 1fr)
    auto;

  align-items: center;

  gap: 12px;

  padding: 10px 12px;

  border:
    1px solid
    var(--accent-border);

  border-radius:
    14px;

  background:
    linear-gradient(
      135deg,
      color-mix(
        in srgb,
        var(--accent) 7%,
        var(--surface)
      ),
      var(--surface)
    );

  box-shadow:
    0 10px 32px
    color-mix(
      in srgb,
      var(--accent) 5%,
      transparent
    );

  animation:
    selectedProductEnter
    200ms
    ease;
}

@keyframes selectedProductEnter {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.selected-product-image {
  width: 54px;
  height: 54px;

  display: grid;
  place-items: center;

  overflow: hidden;

  border:
    1px solid
    var(--border);

  border-radius:
    11px;

  background: var(--surface-2);

  color: var(--muted);
}

.selected-product-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.selected-product-image svg {
  width: 20px;
  height: 20px;
}

.selected-product-copy {
  min-width: 0;

  display: grid;

  gap: 2px;
}

.selected-product-copy span {
  color: var(--muted);

  font-size: 9px;
  font-weight: 750;
}

.selected-product-copy strong {
  overflow: hidden;

  color: var(--text);

  font-size: 13px;
  font-weight: 850;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-product-data {
  display: flex;
  align-items: stretch;

  gap: 8px;
}

.selected-product-data > div {
  min-width: 120px;

  display: grid;

  gap: 2px;

  padding:
    7px
    10px;

  border:
    1px solid
    var(--border);

  border-radius:
    9px;

  background: var(--surface-2);
}

.selected-product-data span {
  color: var(--muted);

  font-size: 8px;
  font-weight: 700;
}

.selected-product-data strong {
  color: var(--text);

  font-size: 11px;
  font-weight: 850;

  white-space: nowrap;
}


/* =========================================================
   MAIN GRID
   ========================================================= */

.premium-calculator-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(340px, 0.85fr);

  gap: 16px;

  margin-bottom: 16px;
}


/* =========================================================
   PANELS
   ========================================================= */

.calc-data-panel,
.calc-results-panel {
  min-width: 0;

  overflow: visible;
}

.surface-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 10px;

  padding:
    16px
    16px
    12px;
}

.surface-header h2 {
  margin: 0;

  color: var(--text);

  font-size: 16px;
  font-weight: 850;

  line-height: 1.15;

  letter-spacing: -0.025em;
}

.surface-icon {
  width: 34px;
  height: 34px;

  display: grid;
  place-items: center;

  flex: 0 0 auto;

  border:
    1px solid
    var(--border);

  border-radius: 9px;

  background: var(--surface-2);

  color: var(--muted);
}

.surface-icon svg {
  width: 15px;
  height: 15px;
}


/* =========================================================
   FORM
   ========================================================= */

.premium-calculator-form {
  display: grid;

  gap: 14px;

  padding:
    4px
    16px
    16px;
}

.calc-two-fields {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );

  gap: 12px;
}


/* =========================================================
   PAYMENT SECTION
   ========================================================= */

.payment-section {
  display: grid;

  gap: 12px;

  padding: 13px;

  border:
    1px solid
    var(--border);

  border-radius:
    13px;

  background:
    linear-gradient(
      180deg,
      var(--surface-2),
      color-mix(
        in srgb,
        var(--surface-3) 45%,
        var(--surface-2)
      )
    );
}

.payment-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 10px;
}

.payment-section-heading h3 {
  margin: 0;

  color: var(--text);

  font-size: 13px;
  font-weight: 850;
}

.payment-settings-button {
  width: 32px;
  height: 32px;

  display: grid;
  place-items: center;

  border:
    1px solid
    var(--border);

  border-radius: 8px;

  background: var(--surface);

  color: var(--muted);

  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.payment-settings-button:hover {
  border-color: var(--accent-border);

  background: var(--accent-soft);

  color: var(--accent);

  transform: rotate(8deg);
}

.payment-settings-button svg {
  width: 14px;
  height: 14px;
}


/* =========================================================
   PAYMENT OPTIONS
   ========================================================= */

.payment-options {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );

  gap: 8px;
}

.payment-option {
  position: relative;

  min-width: 0;
  min-height: 64px;

  display: flex;
  align-items: center;

  gap: 8px;

  padding: 8px;

  border:
    1px solid
    var(--border);

  border-radius:
    11px;

  background: var(--surface);

  color: var(--muted);

  text-align: left;

  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.payment-option:hover {
  border-color: var(--border-strong);

  background: var(--surface-3);

  color: var(--text);

  transform: translateY(-1px);
}

.payment-option.active {
  border-color: var(--accent-border);

  background:
    linear-gradient(
      135deg,
      var(--accent-soft),
      var(--surface)
    );

  color: var(--text);

  box-shadow:
    0 8px 20px
    color-mix(
      in srgb,
      var(--accent) 6%,
      transparent
    );
}

.payment-option.active::after {
  position: absolute;

  top: 6px;
  right: 6px;

  width: 5px;
  height: 5px;

  content: "";

  border-radius: 50%;

  background: var(--accent);

  box-shadow:
    0 0 8px
    var(--accent);
}

.payment-option-icon {
  width: 31px;
  height: 31px;

  flex: 0 0 auto;

  display: grid;
  place-items: center;

  border:
    1px solid
    var(--border);

  border-radius: 8px;

  background: var(--surface-2);
}

.payment-option.active
.payment-option-icon {
  border-color: var(--accent-border);

  background: var(--accent-soft);

  color: var(--accent);
}

.payment-option-icon svg {
  width: 14px;
  height: 14px;
}

.payment-option-copy {
  min-width: 0;

  display: grid;

  gap: 2px;
}

.payment-option-copy strong {
  overflow: hidden;

  color: var(--text);

  font-size: 11px;
  font-weight: 850;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-option-copy small {
  color: var(--muted);

  font-size: 8px;
  font-weight: 700;

  white-space: nowrap;
}


/* =========================================================
   PAYMENT CONFIG
   ========================================================= */

.payment-configuration {
  display: grid;

  gap: 12px;

  padding: 12px;

  border:
    1px solid
    var(--accent-border);

  border-radius:
    11px;

  background:
    color-mix(
      in srgb,
      var(--accent-soft) 42%,
      var(--surface)
    );

  animation:
    paymentConfigEnter
    180ms
    ease;
}

@keyframes paymentConfigEnter {
  from {
    opacity: 0;

    transform:
      translateY(-4px);
  }

  to {
    opacity: 1;

    transform:
      translateY(0);
  }
}

.payment-config-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 10px;
}

.payment-config-header > div {
  min-width: 0;

  display: grid;

  gap: 2px;
}

.payment-config-header strong {
  color: var(--text);

  font-size: 11px;
  font-weight: 850;
}

.payment-config-header span {
  color: var(--muted);

  font-size: 8px;
  font-weight: 600;
}

.payment-config-close {
  width: 28px;
  height: 28px;

  display: grid;
  place-items: center;

  flex: 0 0 auto;

  border:
    1px solid
    var(--border);

  border-radius: 7px;

  background: var(--surface-2);

  color: var(--muted);
}

.payment-config-close svg {
  width: 13px;
  height: 13px;
}

.payment-config-grid {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );

  gap: 10px;
}

.payment-config-grid .field small {
  color: var(--muted);

  font-size: 8px;
  font-weight: 600;
}

.payment-percent-input {
  min-height: 42px;

  display: flex;
  align-items: center;

  overflow: hidden;

  border:
    1px solid
    var(--border);

  border-radius: 9px;

  background: var(--surface);
}

.payment-percent-input input {
  width: 100%;
  min-width: 0;
  min-height: 40px;

  padding:
    0
    10px;

  border: 0;
  outline: 0;

  background: transparent;

  color: var(--text);

  font-size: 13px;
  font-weight: 850;
}

.payment-percent-input > span {
  align-self: stretch;

  min-width: 38px;

  display: grid;
  place-items: center;

  border-left:
    1px solid
    var(--border);

  color: var(--muted);

  font-size: 10px;
  font-weight: 800;
}


/* =========================================================
   PAYMENT RESULT
   ========================================================= */

.payment-result {
  display: grid;

  grid-template-columns:
    repeat(
      5,
      minmax(0, 1fr)
    );

  gap: 7px;
}

.payment-result > div {
  min-width: 0;

  display: grid;

  gap: 3px;

  padding: 8px;

  border:
    1px solid
    var(--border);

  border-radius: 9px;

  background: var(--surface);
}

.payment-result > div span {
  overflow: hidden;

  color: var(--muted);

  font-size: 7px;
  font-weight: 750;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-result > div strong {
  overflow: hidden;

  color: var(--text);

  font-size: 10px;
  font-weight: 850;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-result-final {
  border-color:
    var(--accent-border) !important;

  background:
    var(--accent-soft) !important;
}

.payment-result-final strong {
  color:
    var(--accent) !important;
}


/* =========================================================
   MARKUP TARGET
   ========================================================= */

.markup-target-section {
  display: grid;

  gap: 12px;

  padding: 13px;

  border:
    1px solid
    var(--border);

  border-radius: 13px;

  background: var(--surface-2);
}

.markup-target-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 14px;
}

.markup-target-heading > div:first-child {
  min-width: 0;

  display: grid;

  gap: 2px;
}

.markup-target-heading span {
  color: var(--text-2);

  font-size: 11px;
  font-weight: 800;
}

.markup-target-heading small {
  color: var(--muted);

  font-size: 8px;
  font-weight: 600;
}

.markup-target-input {
  min-width: 80px;
  height: 38px;

  display: flex;
  align-items: center;

  overflow: hidden;

  border:
    1px solid
    var(--accent-border);

  border-radius: 9px;

  background: var(--surface);
}

.markup-target-input input {
  width: 58px;
  height: 36px;

  padding:
    0
    7px;

  border: 0;
  outline: 0;

  background: transparent;

  color: var(--text);

  font-size: 12px;
  font-weight: 900;

  text-align: right;
}

.markup-target-input span {
  width: 26px;

  color: var(--accent);

  font-size: 10px;
  font-weight: 900;
}

.markup-range {
  width: 100%;

  accent-color:
    var(--accent);
}

.markup-presets {
  display: flex;
  flex-wrap: wrap;

  gap: 6px;
}

.markup-presets button {
  min-width: 54px;
  height: 29px;

  padding:
    0
    9px;

  border:
    1px solid
    var(--border);

  border-radius: 8px;

  background: var(--surface);

  color: var(--muted);

  font-size: 9px;
  font-weight: 800;

  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition),
    transform var(--transition);
}

.markup-presets button:hover {
  border-color: var(--accent-border);

  background: var(--accent-soft);

  color: var(--text);

  transform: translateY(-1px);
}


/* =========================================================
   MESSAGE
   ========================================================= */

.calculation-message {
  min-height: 18px;

  color: var(--danger);

  font-size: 10px;
  font-weight: 750;
}

.calculation-message.success {
  color: var(--success);
}


/* =========================================================
   RESULTS PANEL
   ========================================================= */

.calc-result-lines {
  display: grid;

  gap: 8px;

  padding:
    4px
    16px
    14px;
}

.calc-result-lines > div {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  min-height: 39px;

  padding:
    0
    10px;

  border:
    1px solid
    var(--border);

  border-radius: 9px;

  background: var(--surface-2);
}

.calc-result-lines span {
  color: var(--muted);

  font-size: 9px;
  font-weight: 700;
}

.calc-result-lines strong {
  color: var(--text);

  font-size: 11px;
  font-weight: 850;

  text-align: right;
}


/* =========================================================
   PROFIT CARD
   ========================================================= */

.calc-profit-card {
  margin:
    0
    16px
    14px;

  padding: 14px;

  border:
    1px solid
    color-mix(
      in srgb,
      var(--success) 30%,
      var(--border)
    );

  border-radius: 13px;

  background:
    linear-gradient(
      135deg,
      var(--success-soft),
      var(--surface)
    );
}

.calc-profit-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 10px;
}

.calc-profit-card-heading > div {
  display: grid;

  gap: 2px;
}

.calc-profit-card-heading span {
  color: var(--text-2);

  font-size: 9px;
  font-weight: 800;
}

.calc-profit-card-heading small {
  color: var(--muted);

  font-size: 7px;
  font-weight: 600;
}

.calc-profit-card-heading svg {
  width: 16px;
  height: 16px;

  color: var(--success);
}

.calc-profit-card > strong {
  display: block;

  margin-top: 9px;

  color: var(--text);

  font-size: clamp(24px, 2.3vw, 32px);
  font-weight: 900;

  line-height: 1;

  letter-spacing: -0.045em;
}


/* =========================================================
   MARKUP COMPARISON
   ========================================================= */

.calc-markup-comparison {
  margin:
    0
    16px
    12px;

  display: grid;

  grid-template-columns:
    1fr
    auto
    1fr;

  align-items: center;

  gap: 8px;
}

.markup-current,
.markup-goal {
  display: grid;

  gap: 2px;

  padding: 10px;

  border:
    1px solid
    var(--border);

  border-radius: 10px;

  background: var(--surface-2);
}

.markup-goal {
  border-color:
    var(--accent-border);

  background:
    var(--accent-soft);
}

.markup-current span,
.markup-goal span {
  color: var(--muted);

  font-size: 8px;
  font-weight: 700;
}

.markup-current strong,
.markup-goal strong {
  color: var(--text);

  font-size: 18px;
  font-weight: 900;

  line-height: 1;
}

.markup-goal strong {
  color: var(--accent);
}

.markup-arrow {
  width: 14px;
  height: 14px;

  color: var(--muted);
}


/* =========================================================
   MARKUP STATUS
   ========================================================= */

.markup-status {
  min-height: 40px;

  margin:
    0
    16px
    16px;

  display: flex;
  align-items: center;

  gap: 8px;

  padding:
    9px
    10px;

  border:
    1px solid
    var(--border);

  border-radius: 9px;

  background: var(--surface-2);

  color: var(--muted);

  font-size: 9px;
  font-weight: 700;
}

.markup-status svg {
  width: 14px;
  height: 14px;

  flex: 0 0 auto;
}

.markup-status.success {
  border-color:
    color-mix(
      in srgb,
      var(--success) 35%,
      var(--border)
    );

  background: var(--success-soft);

  color: var(--success);
}

.markup-status.warning {
  border-color:
    color-mix(
      in srgb,
      var(--warning) 35%,
      var(--border)
    );

  background: var(--warning-soft);

  color: var(--warning);
}


/* =========================================================
   SUGGESTED PRICE
   ========================================================= */

.suggested-price-section {
  margin-bottom: 16px;

  overflow: hidden;
}

.suggested-price-main {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 16px;
}

.suggested-price-main h2 {
  margin: 0;

  color: var(--text);

  font-size: 17px;
  font-weight: 900;

  letter-spacing: -0.03em;
}

.suggested-price-main p {
  max-width: 620px;

  margin:
    5px
    0
    0;

  color: var(--muted);

  font-size: 10px;
  font-weight: 600;
}

.suggested-price-value {
  min-width: 210px;

  display: grid;

  gap: 3px;

  padding: 12px;

  border:
    1px solid
    var(--accent-border);

  border-radius: 12px;

  background:
    linear-gradient(
      135deg,
      var(--accent-soft),
      var(--surface-2)
    );

  text-align: right;
}

.suggested-price-value span {
  color: var(--muted);

  font-size: 8px;
  font-weight: 750;
}

.suggested-price-value strong {
  color: var(--accent);

  font-size: 24px;
  font-weight: 900;

  line-height: 1;

  letter-spacing: -0.04em;
}

.suggested-price-metrics {
  display: grid;

  grid-template-columns:
    repeat(
      5,
      minmax(0, 1fr)
    );

  border-top:
    1px solid
    var(--border);
}

.suggested-price-metrics > div {
  min-width: 0;

  display: grid;

  gap: 3px;

  padding: 12px;

  border-right:
    1px solid
    var(--border);
}

.suggested-price-metrics > div:last-child {
  border-right: 0;
}

.suggested-price-metrics span {
  color: var(--muted);

  font-size: 8px;
  font-weight: 700;
}

.suggested-price-metrics strong {
  overflow: hidden;

  color: var(--text);

  font-size: 11px;
  font-weight: 850;

  text-overflow: ellipsis;
  white-space: nowrap;
}


/* =========================================================
   SUMMARY
   ========================================================= */

.calc-summary-grid {
  display: grid;

  grid-template-columns:
    repeat(
      4,
      minmax(0, 1fr)
    );

  gap: 10px;

  margin-bottom: 16px;
}

.calc-summary-card {
  min-width: 0;

  display: grid;

  gap: 4px;

  padding: 13px;

  border:
    1px solid
    var(--border);

  border-radius: 12px;

  background:
    linear-gradient(
      180deg,
      var(--surface),
      var(--surface-2)
    );

  box-shadow: var(--shadow-xs);

  transition:
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.calc-summary-card:hover {
  border-color: var(--border-strong);

  transform: translateY(-2px);

  box-shadow: var(--shadow-sm);
}

.calc-summary-card span {
  color: var(--muted);

  font-size: 8px;
  font-weight: 750;
}

.calc-summary-card strong {
  overflow: hidden;

  color: var(--text);

  font-size: 18px;
  font-weight: 900;

  line-height: 1;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.calc-summary-card small {
  color: var(--muted-2);

  font-size: 7px;
  font-weight: 600;
}


/* =========================================================
   HISTORY
   ========================================================= */

.calculation-history {
  overflow: hidden;
}

.history-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 14px;

  padding: 15px;

  border-bottom:
    1px solid
    var(--border);
}

.history-header h2 {
  margin: 0;

  color: var(--text);

  font-size: 15px;
  font-weight: 850;
}

.history-header p {
  margin:
    4px
    0
    0;

  color: var(--muted);

  font-size: 9px;
  font-weight: 600;
}


/* =========================================================
   HISTORY TOOLBAR
   ========================================================= */

.history-toolbar {
  display: grid;

  grid-template-columns:
    minmax(220px, 1fr)
    190px
    210px;

  gap: 8px;

  padding: 10px 12px;

  border-bottom:
    1px solid
    var(--border);

  background: var(--surface-2);
}

.history-search {
  min-height: 38px;

  display: flex;
  align-items: center;

  border:
    1px solid
    var(--border);

  border-radius: 9px;

  background: var(--surface);
}

.history-search svg {
  width: 14px;
  height: 14px;

  margin-left: 10px;

  color: var(--muted);
}

.history-search input {
  width: 100%;
  min-width: 0;
  min-height: 36px;

  padding:
    0
    10px;

  border: 0;
  outline: 0;

  background: transparent;

  color: var(--text);

  font-size: 10px;
  font-weight: 700;
}

.history-toolbar select {
  min-width: 0;
  min-height: 38px;

  padding:
    0
    10px;

  border:
    1px solid
    var(--border);

  border-radius: 9px;

  outline: 0;

  background: var(--surface);

  color: var(--text);

  font-size: 10px;
  font-weight: 750;
}


/* =========================================================
   HISTORY TABLE
   ========================================================= */

.history-table-wrap {
  width: 100%;

  overflow-x: auto;
}

.history-table {
  width: 100%;

  min-width: 1320px;

  border-collapse: collapse;
}

.history-table th {
  padding:
    10px
    9px;

  border-bottom:
    1px solid
    var(--border);

  background: var(--surface-2);

  color: var(--muted);

  font-size: 8px;
  font-weight: 850;

  letter-spacing: 0.04em;

  text-align: left;

  white-space: nowrap;
}

.history-table td {
  padding:
    9px;

  border-bottom:
    1px solid
    var(--border-soft);

  color: var(--text-2);

  font-size: 9px;
  font-weight: 700;

  vertical-align: middle;

  white-space: nowrap;

  transition:
    background var(--transition);
}

.history-table tbody tr {
  transition:
    background var(--transition),
    opacity var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.history-table tbody tr:hover td {
  background:
    color-mix(
      in srgb,
      var(--surface-3) 70%,
      transparent
    );
}


/* =========================================================
   DRAG
   ========================================================= */

.history-drag-column {
  width: 38px;

  text-align: center !important;
}

.history-drag-handle {
  width: 28px;
  height: 28px;

  display: grid;
  place-items: center;

  border:
    1px solid
    transparent;

  border-radius: 7px;

  background: transparent;

  color: var(--muted);

  cursor: grab;

  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.history-drag-handle:hover {
  border-color: var(--border);

  background: var(--surface-3);

  color: var(--text);
}

.history-drag-handle:active {
  cursor: grabbing;
}

.history-drag-handle svg {
  width: 13px;
  height: 13px;
}

.history-table tbody tr.dragging {
  opacity: 0.38;

  transform:
    scale(0.995);
}

.history-table tbody tr.drag-over {
  box-shadow:
    inset
    0 2px 0
    var(--accent);
}

.history-table tbody tr.drag-over td {
  background:
    var(--accent-soft);
}


/* =========================================================
   HISTORY CONTENT
   ========================================================= */

.history-date {
  display: grid;

  gap: 1px;

  color: var(--text-2);

  font-size: 9px;
  font-weight: 750;
}

.history-date small {
  color: var(--muted);

  font-size: 7px;
  font-weight: 600;
}

.history-product {
  min-width: 160px;

  display: grid;

  gap: 2px;
}

.history-product strong {
  max-width: 220px;

  overflow: hidden;

  color: var(--text);

  font-size: 9px;
  font-weight: 800;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-product span {
  color: var(--muted);

  font-size: 7px;
  font-weight: 650;
}


/* =========================================================
   PAYMENT BADGE HISTORY
   ========================================================= */

.history-payment {
  display: inline-flex;
  align-items: center;

  min-height: 24px;

  padding:
    0
    8px;

  border:
    1px solid
    var(--border);

  border-radius: 999px;

  background: var(--surface-2);

  color: var(--text-2);

  font-size: 8px;
  font-weight: 800;
}

.history-payment-3_cuotas {
  border-color:
    color-mix(
      in srgb,
      var(--info) 34%,
      var(--border)
    );

  background: var(--info-soft);

  color: var(--info);
}

.history-payment-6_cuotas {
  border-color:
    color-mix(
      in srgb,
      var(--warning) 34%,
      var(--border)
    );

  background: var(--warning-soft);

  color: var(--warning);
}

.history-final-price {
  color: var(--accent);

  font-weight: 900;
}

.history-markup {
  display: inline-flex;

  min-width: 46px;

  justify-content: center;

  padding:
    3px
    7px;

  border:
    1px solid
    var(--accent-border);

  border-radius: 999px;

  background: var(--accent-soft);

  color: var(--text);

  font-size: 8px;
  font-weight: 850;
}


/* =========================================================
   DELETE
   ========================================================= */

.history-delete {
  width: 29px;
  height: 29px;

  display: grid;
  place-items: center;

  border:
    1px solid
    var(--border);

  border-radius: 7px;

  background: var(--surface-2);

  color: var(--muted);

  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.history-delete:hover {
  border-color:
    color-mix(
      in srgb,
      var(--danger) 38%,
      var(--border)
    );

  background: var(--danger-soft);

  color: var(--danger);
}

.history-delete svg {
  width: 12px;
  height: 12px;
}


/* =========================================================
   EMPTY
   ========================================================= */

.history-empty {
  padding: 28px;

  color: var(--muted);

  font-size: 10px;
  font-weight: 700;

  text-align: center;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (
  max-width: 1150px
) {
  .premium-calculator-grid {
    grid-template-columns:
      1fr;
  }

  .payment-result {
    grid-template-columns:
      repeat(
        3,
        minmax(0, 1fr)
      );
  }

  .suggested-price-metrics {
    grid-template-columns:
      repeat(
        3,
        minmax(0, 1fr)
      );
  }

  .suggested-price-metrics > div {
    border-bottom:
      1px solid
      var(--border);
  }

  .calc-summary-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }
}


/* =========================================================
   TABLET SMALL
   ========================================================= */

@media (
  max-width: 900px
) {
  .selected-product-card {
    grid-template-columns:
      48px
      minmax(0, 1fr);
  }

  .selected-product-data {
    grid-column:
      1 /
      -1;

    display: grid;

    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }

  .selected-product-image {
    width: 48px;
    height: 48px;
  }

  .history-toolbar {
    grid-template-columns:
      1fr
      1fr;
  }

  .history-search {
    grid-column:
      1 /
      -1;
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (
  max-width: 700px
) {
  .calc-page-header {
    align-items: stretch;

    flex-direction: column;
  }

  .calc-page-header .primary-button {
    width: 100%;
  }

  .calc-two-fields {
    grid-template-columns:
      1fr;
  }

  .payment-options {
    grid-template-columns:
      1fr;
  }

  .payment-option {
    min-height: 56px;
  }

  .payment-config-grid {
    grid-template-columns:
      1fr;
  }

  .payment-result {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }

  .markup-target-heading {
    align-items: stretch;

    flex-direction: column;
  }

  .markup-target-input {
    width: 100%;
  }

  .markup-target-input input {
    width: 100%;
  }

  .suggested-price-main {
    align-items: stretch;

    flex-direction: column;
  }

  .suggested-price-value {
    min-width: 0;

    text-align: left;
  }

  .suggested-price-metrics {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }

  .calc-summary-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }

  .history-header {
    align-items: stretch;

    flex-direction: column;
  }

  .history-header .secondary-button {
    width: 100%;
  }

  .history-toolbar {
    grid-template-columns:
      1fr;
  }

  .history-search {
    grid-column: auto;
  }
}


/* =========================================================
   MOBILE SMALL
   ========================================================= */

@media (
  max-width: 480px
) {
  .calc-product-search {
    min-height: 48px;
  }

  .calc-product-search input {
    min-height: 46px;

    font-size: 12px;
  }

  .selected-product-card {
    grid-template-columns:
      42px
      minmax(0, 1fr);

    padding: 9px;
  }

  .selected-product-image {
    width: 42px;
    height: 42px;
  }

  .selected-product-data {
    grid-template-columns:
      1fr;
  }

  .payment-result {
    grid-template-columns:
      1fr;
  }

  .suggested-price-metrics {
    grid-template-columns:
      1fr;
  }

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

  .surface-header,
  .premium-calculator-form {
    padding-left: 12px;
    padding-right: 12px;
  }

  .calc-profit-card,
  .calc-markup-comparison,
  .markup-status {
    margin-left: 12px;
    margin-right: 12px;
  }

  .suggested-price-value strong {
    font-size: 21px;
  }
}


/* =========================================================
   TOUCH
   ========================================================= */

@media (
  hover: none
) {
  .calc-product-option:hover,
  .payment-option:hover,
  .calc-summary-card:hover,
  .markup-presets button:hover {
    transform: none;
  }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (
  prefers-reduced-motion:
  reduce
) {
  .calc-product-results.open,
  .selected-product-card,
  .payment-configuration {
    animation: none !important;
  }
}/* =========================================================
   FIX · TIPOGRAFÍA MÁS MARCADA Y LEGIBLE
   ========================================================= */

#pageInicio {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}


/* =========================================================
   TEXTOS GENERALES
   ========================================================= */

#pageInicio p,
#pageInicio small,
#pageInicio span,
#pageInicio label,
#pageInicio td,
#pageInicio th {
  font-weight: 700;
}


/* =========================================================
   TÍTULOS
   ========================================================= */

#pageInicio h1 {
  color: var(--text) !important;
  font-weight: 900 !important;
}

#pageInicio h2,
#pageInicio h3 {
  color: var(--text) !important;
  font-weight: 900 !important;
}


/* =========================================================
   TEXTOS SECUNDARIOS
   ========================================================= */

#pageInicio .calc-page-header p,
#pageInicio .surface-kicker,
#pageInicio .field > span,
#pageInicio small,
#pageInicio .selected-product-copy span,
#pageInicio .selected-product-data span,
#pageInicio .payment-option-copy small,
#pageInicio .payment-config-header span,
#pageInicio .payment-config-grid .field small,
#pageInicio .markup-target-heading small,
#pageInicio .calc-result-lines span,
#pageInicio .calc-profit-card-heading small,
#pageInicio .markup-current span,
#pageInicio .markup-goal span,
#pageInicio .suggested-price-main p,
#pageInicio .suggested-price-value span,
#pageInicio .suggested-price-metrics span,
#pageInicio .calc-summary-card span,
#pageInicio .calc-summary-card small,
#pageInicio .history-header p,
#pageInicio .history-date small,
#pageInicio .history-product span {
  color: var(--text-2) !important;
  font-weight: 750 !important;
}


/* =========================================================
   INPUTS
   ========================================================= */

#pageInicio input,
#pageInicio select,
#pageInicio textarea {
  color: var(--text) !important;
  font-weight: 800 !important;
}

#pageInicio input::placeholder,
#pageInicio textarea::placeholder {
  color: var(--muted) !important;
  font-weight: 700 !important;
  opacity: 1;
}


/* =========================================================
   PRODUCTO
   ========================================================= */

#pageInicio .calc-product-option-copy small {
  color: var(--text-2) !important;
  font-weight: 800 !important;
}

#pageInicio .calc-product-option-copy strong,
#pageInicio .selected-product-copy strong,
#pageInicio .selected-product-data strong,
#pageInicio .calc-product-option-price {
  color: var(--text) !important;
  font-weight: 900 !important;
}


/* =========================================================
   FORMULARIO
   ========================================================= */

#pageInicio .field > span {
  color: var(--text-2) !important;
  font-weight: 850 !important;
}

#pageInicio .money-field input,
#pageInicio .payment-percent-input input,
#pageInicio .markup-target-input input {
  color: var(--text) !important;
  font-weight: 900 !important;
}


/* =========================================================
   FORMAS DE PAGO
   ========================================================= */

#pageInicio .payment-section-heading h3,
#pageInicio .payment-option-copy strong,
#pageInicio .payment-config-header strong {
  color: var(--text) !important;
  font-weight: 900 !important;
}

#pageInicio .payment-option-copy small {
  color: var(--text-2) !important;
  font-weight: 750 !important;
}


/* =========================================================
   RESULTADO DE PAGO
   ========================================================= */

#pageInicio .payment-result > div span {
  color: var(--text-2) !important;
  font-weight: 800 !important;
}

#pageInicio .payment-result > div strong {
  color: var(--text) !important;
  font-weight: 900 !important;
}


/* =========================================================
   MARKUP
   ========================================================= */

#pageInicio .markup-target-heading span,
#pageInicio .markup-current span,
#pageInicio .markup-goal span {
  color: var(--text-2) !important;
  font-weight: 850 !important;
}

#pageInicio .markup-current strong,
#pageInicio .markup-goal strong {
  font-weight: 950 !important;
}


/* =========================================================
   RESULTADOS
   ========================================================= */

#pageInicio .calc-result-lines span {
  color: var(--text-2) !important;
  font-weight: 800 !important;
}

#pageInicio .calc-result-lines strong {
  color: var(--text) !important;
  font-weight: 900 !important;
}

#pageInicio .calc-profit-card-heading span {
  color: var(--text) !important;
  font-weight: 850 !important;
}

#pageInicio .calc-profit-card > strong {
  color: var(--text) !important;
  font-weight: 950 !important;
}


/* =========================================================
   PRECIO SUGERIDO
   ========================================================= */

#pageInicio .suggested-price-main h2 {
  color: var(--text) !important;
  font-weight: 900 !important;
}

#pageInicio .suggested-price-value span,
#pageInicio .suggested-price-metrics span {
  color: var(--text-2) !important;
  font-weight: 800 !important;
}

#pageInicio .suggested-price-value strong,
#pageInicio .suggested-price-metrics strong {
  font-weight: 950 !important;
}


/* =========================================================
   RESUMEN
   ========================================================= */

#pageInicio .calc-summary-card span {
  color: var(--text-2) !important;
  font-weight: 800 !important;
}

#pageInicio .calc-summary-card strong {
  color: var(--text) !important;
  font-weight: 950 !important;
}

#pageInicio .calc-summary-card small {
  color: var(--muted) !important;
  font-weight: 700 !important;
}


/* =========================================================
   HISTORIAL
   ========================================================= */

#pageInicio .history-header h2 {
  color: var(--text) !important;
  font-weight: 900 !important;
}

#pageInicio .history-table th {
  color: var(--text-2) !important;
  font-weight: 900 !important;
}

#pageInicio .history-table td {
  color: var(--text) !important;
  font-weight: 750 !important;
}

#pageInicio .history-product strong {
  color: var(--text) !important;
  font-weight: 900 !important;
}

#pageInicio .history-product span,
#pageInicio .history-date small {
  color: var(--text-2) !important;
  font-weight: 750 !important;
}

#pageInicio .history-final-price,
#pageInicio .history-markup {
  font-weight: 950 !important;
}


/* =========================================================
   BOTONES
   ========================================================= */

#pageInicio button {
  font-weight: 850;
}


/* =========================================================
   MODO CLARO · MÁS CONTRASTE
   ========================================================= */

html[data-theme="light"] #pageInicio {
  --text:
    #0b1220;

  --text-2:
    #263244;

  --muted:
    #526075;

  --muted-2:
    #667085;
}


/* =========================================================
   MODO OSCURO · MÁS CONTRASTE
   ========================================================= */

html[data-theme="dark"] #pageInicio {
  --text:
    #f7f9fc;

  --text-2:
    #d6dde8;

  --muted:
    #a4afbf;

  --muted-2:
    #8995a6;
}/* =========================================================
   FIX · INICIO
   MÁS CONTRASTE / DIVISIONES / TIPOGRAFÍA MÁS GRANDE
   ========================================================= */

#pageInicio {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}


/* =========================================================
   CONTRASTE LOCAL
   ========================================================= */

html[data-theme="light"] #pageInicio {
  --text: #0a0f1a;
  --text-2: #1f2937;
  --muted: #475569;
  --muted-2: #64748b;

  --border:
    rgba(15, 23, 42, 0.16);

  --border-soft:
    rgba(15, 23, 42, 0.11);

  --border-strong:
    rgba(15, 23, 42, 0.28);
}


html[data-theme="dark"] #pageInicio {
  --text: #f8fafc;
  --text-2: #dbe3ee;
  --muted: #aeb8c6;
  --muted-2: #8f9bad;

  --border:
    rgba(255, 255, 255, 0.13);

  --border-soft:
    rgba(255, 255, 255, 0.08);

  --border-strong:
    rgba(255, 255, 255, 0.22);
}


/* =========================================================
   HEADER
   ========================================================= */

#pageInicio .calc-page-header h1 {
  color:
    var(--text) !important;

  font-weight:
    950 !important;
}


#pageInicio .calc-page-header p {
  color:
    var(--text-2) !important;

  font-size:
    14px !important;

  font-weight:
    750 !important;
}


#pageInicio .section-kicker,
#pageInicio .surface-kicker {
  color:
    var(--text-2) !important;

  font-size:
    9px !important;

  font-weight:
    900 !important;
}


/* =========================================================
   BOTONES
   ========================================================= */

#pageInicio button,
#pageInicio .primary-button,
#pageInicio .secondary-button {
  font-size:
    10px !important;

  font-weight:
    900 !important;
}


/* =========================================================
   BUSCADOR PRODUCTOS
   ========================================================= */

#pageInicio .calc-product-search {
  border-color:
    var(--border-strong) !important;
}


#pageInicio .calc-product-search input {
  color:
    var(--text) !important;

  font-size:
    14px !important;

  font-weight:
    850 !important;
}


#pageInicio .calc-product-search input::placeholder {
  color:
    var(--muted) !important;

  font-weight:
    750 !important;

  opacity: 1;
}


/* =========================================================
   RESULTADOS BUSCADOR
   ========================================================= */

#pageInicio .calc-product-results {
  border-color:
    var(--border-strong) !important;
}


#pageInicio .calc-product-option {
  border-bottom:
    1px solid
    var(--border-soft);
}


#pageInicio .calc-product-option-copy small {
  color:
    var(--text-2) !important;

  font-size:
    9px !important;

  font-weight:
    800 !important;
}


#pageInicio .calc-product-option-copy strong {
  color:
    var(--text) !important;

  font-size:
    12px !important;

  font-weight:
    950 !important;
}


#pageInicio .calc-product-option-price {
  color:
    var(--text) !important;

  font-size:
    11px !important;

  font-weight:
    950 !important;
}


/* =========================================================
   PRODUCTO SELECCIONADO
   ========================================================= */

#pageInicio .selected-product-card {
  border-color:
    var(--border-strong) !important;
}


#pageInicio .selected-product-copy span {
  color:
    var(--text-2) !important;

  font-size:
    9px !important;

  font-weight:
    800 !important;
}


#pageInicio .selected-product-copy strong {
  color:
    var(--text) !important;

  font-size:
    13px !important;

  font-weight:
    950 !important;
}


#pageInicio .selected-product-data > div {
  border-color:
    var(--border-strong) !important;
}


#pageInicio .selected-product-data span {
  color:
    var(--text-2) !important;

  font-size:
    8px !important;

  font-weight:
    850 !important;
}


#pageInicio .selected-product-data strong {
  color:
    var(--text) !important;

  font-size:
    11px !important;

  font-weight:
    950 !important;
}


/* =========================================================
   PANELES PRINCIPALES
   ========================================================= */

#pageInicio .calc-data-panel,
#pageInicio .calc-results-panel,
#pageInicio .suggested-price-section,
#pageInicio .calculation-history {
  border:
    1px solid
    var(--border-strong) !important;
}


/* =========================================================
   HEADERS DE SUPERFICIE
   ========================================================= */

#pageInicio .surface-header {
  border-bottom:
    1px solid
    var(--border-strong) !important;
}


#pageInicio .surface-header h2 {
  color:
    var(--text) !important;

  font-size:
    17px !important;

  font-weight:
    950 !important;
}


/* =========================================================
   LABELS / CAMPOS
   ========================================================= */

#pageInicio .field > span {
  color:
    var(--text) !important;

  font-size:
    11px !important;

  font-weight:
    900 !important;
}


#pageInicio input,
#pageInicio select,
#pageInicio textarea {
  color:
    var(--text) !important;

  font-weight:
    850 !important;
}


#pageInicio input::placeholder,
#pageInicio textarea::placeholder {
  color:
    var(--muted) !important;

  font-weight:
    750 !important;

  opacity: 1;
}


/* =========================================================
   PAYMENT SECTION
   ========================================================= */

#pageInicio .payment-section {
  border-color:
    var(--border-strong) !important;
}


#pageInicio .payment-section-heading h3 {
  color:
    var(--text) !important;

  font-size:
    14px !important;

  font-weight:
    950 !important;
}


#pageInicio .payment-option {
  min-height:
    68px !important;

  border-color:
    var(--border-strong) !important;
}


#pageInicio .payment-option-copy strong {
  color:
    var(--text) !important;

  font-size:
    11px !important;

  font-weight:
    950 !important;
}


#pageInicio .payment-option-copy small {
  color:
    var(--text-2) !important;

  font-size:
    9px !important;

  font-weight:
    800 !important;
}


#pageInicio .payment-option-icon {
  border-color:
    var(--border-strong) !important;
}


/* =========================================================
   CONFIGURACIÓN PAGO
   ========================================================= */

#pageInicio .payment-configuration {
  border-color:
    var(--border-strong) !important;
}


#pageInicio .payment-config-header strong {
  color:
    var(--text) !important;

  font-size:
    12px !important;

  font-weight:
    950 !important;
}


#pageInicio .payment-config-header span {
  color:
    var(--text-2) !important;

  font-size:
    9px !important;

  font-weight:
    800 !important;
}


#pageInicio .payment-percent-input {
  border-color:
    var(--border-strong) !important;
}


#pageInicio .payment-percent-input input {
  color:
    var(--text) !important;

  font-size:
    13px !important;

  font-weight:
    950 !important;
}


/* =========================================================
   RESULTADO DE PAGO
   ========================================================= */

#pageInicio .payment-result > div {
  border-color:
    var(--border-strong) !important;
}


#pageInicio .payment-result > div span {
  color:
    var(--text-2) !important;

  font-size:
    8px !important;

  font-weight:
    850 !important;
}


#pageInicio .payment-result > div strong {
  color:
    var(--text) !important;

  font-size:
    11px !important;

  font-weight:
    950 !important;
}


/* =========================================================
   MARKUP OBJETIVO
   ========================================================= */

#pageInicio .markup-target-section {
  border-color:
    var(--border-strong) !important;
}


#pageInicio .markup-target-heading span {
  color:
    var(--text) !important;

  font-size:
    12px !important;

  font-weight:
    900 !important;
}


#pageInicio .markup-target-heading small {
  color:
    var(--text-2) !important;

  font-size:
    9px !important;

  font-weight:
    750 !important;
}


#pageInicio .markup-target-input {
  border-color:
    var(--border-strong) !important;
}


#pageInicio .markup-target-input input {
  color:
    var(--text) !important;

  font-size:
    13px !important;

  font-weight:
    950 !important;
}


#pageInicio .markup-presets button {
  border-color:
    var(--border-strong) !important;

  color:
    var(--text-2) !important;

  font-size:
    10px !important;

  font-weight:
    900 !important;
}


/* =========================================================
   RESULTADOS
   ========================================================= */

#pageInicio .calc-result-lines > div {
  min-height:
    41px !important;

  border-color:
    var(--border-strong) !important;
}


#pageInicio .calc-result-lines span {
  color:
    var(--text-2) !important;

  font-size:
    10px !important;

  font-weight:
    850 !important;
}


#pageInicio .calc-result-lines strong {
  color:
    var(--text) !important;

  font-size:
    12px !important;

  font-weight:
    950 !important;
}


/* =========================================================
   GANANCIA
   ========================================================= */

#pageInicio .calc-profit-card {
  border-width:
    1px !important;

  border-color:
    color-mix(
      in srgb,
      var(--success) 45%,
      var(--border-strong)
    ) !important;
}


#pageInicio .calc-profit-card-heading span {
  color:
    var(--text) !important;

  font-size:
    10px !important;

  font-weight:
    900 !important;
}


#pageInicio .calc-profit-card-heading small {
  color:
    var(--text-2) !important;

  font-size:
    8px !important;

  font-weight:
    750 !important;
}


#pageInicio .calc-profit-card > strong {
  font-weight:
    950 !important;
}


/* =========================================================
   COMPARACIÓN MARKUP
   ========================================================= */

#pageInicio .markup-current,
#pageInicio .markup-goal {
  border-color:
    var(--border-strong) !important;
}


#pageInicio .markup-current span,
#pageInicio .markup-goal span {
  color:
    var(--text-2) !important;

  font-size:
    9px !important;

  font-weight:
    850 !important;
}


#pageInicio .markup-current strong,
#pageInicio .markup-goal strong {
  font-size:
    19px !important;

  font-weight:
    950 !important;
}


/* =========================================================
   ESTADO MARKUP
   ========================================================= */

#pageInicio .markup-status {
  border-color:
    var(--border-strong) !important;

  color:
    var(--text-2) !important;

  font-size:
    10px !important;

  font-weight:
    850 !important;
}


/* =========================================================
   PRECIO SUGERIDO
   ========================================================= */

#pageInicio .suggested-price-main {
  border-bottom:
    1px solid
    var(--border-strong);
}


#pageInicio .suggested-price-main h2 {
  color:
    var(--text) !important;

  font-size:
    18px !important;

  font-weight:
    950 !important;
}


#pageInicio .suggested-price-main p {
  color:
    var(--text-2) !important;

  font-size:
    11px !important;

  font-weight:
    750 !important;
}


#pageInicio .suggested-price-value {
  border-color:
    var(--border-strong) !important;
}


#pageInicio .suggested-price-value span {
  color:
    var(--text-2) !important;

  font-size:
    9px !important;

  font-weight:
    850 !important;
}


#pageInicio .suggested-price-value strong {
  font-size:
    25px !important;

  font-weight:
    950 !important;
}


/* =========================================================
   MÉTRICAS PRECIO SUGERIDO
   ========================================================= */

#pageInicio .suggested-price-metrics {
  border-top:
    1px solid
    var(--border-strong) !important;
}


#pageInicio .suggested-price-metrics > div {
  border-right:
    1px solid
    var(--border-strong) !important;
}


#pageInicio .suggested-price-metrics span {
  color:
    var(--text-2) !important;

  font-size:
    9px !important;

  font-weight:
    850 !important;
}


#pageInicio .suggested-price-metrics strong {
  color:
    var(--text) !important;

  font-size:
    12px !important;

  font-weight:
    950 !important;
}


/* =========================================================
   RESUMEN
   ========================================================= */

#pageInicio .calc-summary-card {
  border-color:
    var(--border-strong) !important;
}


#pageInicio .calc-summary-card span {
  color:
    var(--text-2) !important;

  font-size:
    9px !important;

  font-weight:
    850 !important;
}


#pageInicio .calc-summary-card strong {
  color:
    var(--text) !important;

  font-size:
    19px !important;

  font-weight:
    950 !important;
}


#pageInicio .calc-summary-card small {
  color:
    var(--text-2) !important;

  font-size:
    8px !important;

  font-weight:
    750 !important;
}


/* =========================================================
   HISTORIAL HEADER
   ========================================================= */

#pageInicio .history-header {
  border-bottom:
    1px solid
    var(--border-strong) !important;
}


#pageInicio .history-header h2 {
  color:
    var(--text) !important;

  font-size:
    16px !important;

  font-weight:
    950 !important;
}


#pageInicio .history-header p {
  color:
    var(--text-2) !important;

  font-size:
    10px !important;

  font-weight:
    750 !important;
}


/* =========================================================
   HISTORIAL TOOLBAR
   ========================================================= */

#pageInicio .history-toolbar {
  border-bottom:
    1px solid
    var(--border-strong) !important;
}


#pageInicio .history-search,
#pageInicio .history-toolbar select {
  border-color:
    var(--border-strong) !important;
}


#pageInicio .history-search input,
#pageInicio .history-toolbar select {
  color:
    var(--text) !important;

  font-size:
    11px !important;

  font-weight:
    850 !important;
}


/* =========================================================
   TABLA HISTORIAL
   ========================================================= */

#pageInicio .history-table th {
  padding:
    12px
    10px !important;

  border-bottom:
    1px solid
    var(--border-strong) !important;

  color:
    var(--text-2) !important;

  font-size:
    9px !important;

  font-weight:
    950 !important;
}


#pageInicio .history-table td {
  padding:
    11px
    10px !important;

  border-bottom:
    1px solid
    var(--border) !important;

  color:
    var(--text) !important;

  font-size:
    10px !important;

  font-weight:
    800 !important;
}


/* =========================================================
   DIVISIONES VERTICALES HISTORIAL
   ========================================================= */

#pageInicio .history-table th:not(:last-child),
#pageInicio .history-table td:not(:last-child) {
  border-right:
    1px solid
    var(--border-soft);
}


/* =========================================================
   FECHA HISTORIAL
   ========================================================= */

#pageInicio .history-date {
  color:
    var(--text) !important;

  font-size:
    10px !important;

  font-weight:
    900 !important;
}


#pageInicio .history-date small {
  color:
    var(--text-2) !important;

  font-size:
    8px !important;

  font-weight:
    750 !important;
}


/* =========================================================
   PRODUCTO HISTORIAL
   ========================================================= */

#pageInicio .history-product strong {
  color:
    var(--text) !important;

  font-size:
    10px !important;

  font-weight:
    950 !important;
}


#pageInicio .history-product span {
  color:
    var(--text-2) !important;

  font-size:
    8px !important;

  font-weight:
    750 !important;
}


/* =========================================================
   BADGES HISTORIAL
   ========================================================= */

#pageInicio .history-payment {
  border-color:
    var(--border-strong) !important;

  font-size:
    9px !important;

  font-weight:
    900 !important;
}


#pageInicio .history-markup {
  font-size:
    9px !important;

  font-weight:
    950 !important;
}


/* =========================================================
   BOTÓN BORRAR
   ========================================================= */

#pageInicio .history-delete {
  width:
    31px !important;

  height:
    31px !important;

  border-color:
    var(--border-strong) !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (
  max-width: 700px
) {
  #pageInicio .calc-result-lines span {
    font-size:
      10px !important;
  }

  #pageInicio .calc-result-lines strong {
    font-size:
      12px !important;
  }

  #pageInicio .suggested-price-metrics span {
    font-size:
      9px !important;
  }

  #pageInicio .suggested-price-metrics strong {
    font-size:
      12px !important;
  }

  #pageInicio .history-table th {
    font-size:
      9px !important;
  }

  #pageInicio .history-table td {
    font-size:
      10px !important;
  }
}