
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.page { flex: 1 0 auto; padding-bottom: 24px; }
.note-footer { margin: 0; padding-bottom: max(16px, env(safe-area-inset-bottom)); }

/* Feedback visual breve, sin mover los valores de la cotización. */
@media (prefers-reduced-motion: no-preference) {
  .page-intro, .card { transition: opacity 180ms cubic-bezier(0.23, 1, 0.32, 1); }
  @starting-style {
    .page-intro, .card { opacity: 0; }
  }
  @media (hover: hover) and (pointer: fine) {
    .stepper button { transition: background-color 120ms ease; }
  }
}

/* Resumen de compra: información del plan y desglose en una lectura breve. */
@media (min-width: 761px) {
  .header-inner, .page { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
  .layout { grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); align-items: start; }
}
.checkout-summary h2 { margin: 0; font-size: 18px; }
.checkout-details, .checkout-prices { margin: 0; }
.checkout-details { padding: 22px 0 20px; border-bottom: 1px solid #e6ebf1; }
.checkout-prices { padding-top: 20px; }
.checkout-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; color: #586779; font-size: 14px; line-height: 1.45; }
.checkout-row + .checkout-row { margin-top: 10px; }
.checkout-row dt, .checkout-row dd { margin: 0; }
.checkout-row dd { min-width: 0; max-width: 100%; margin-left: auto; overflow-wrap: anywhere; color: var(--text); text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.checkout-row dd strong { font-weight: inherit; }
.checkout-row.summary-caption { margin-top: 10px; font-size: 14px; }
.checkout-total { margin-top: 18px !important; padding-top: 18px; border-top: 1px solid #e6ebf1; align-items: center; }
.checkout-total dt { color: var(--text); font: 700 30px/1.1 "DM Sans", sans-serif; letter-spacing: -.03em; }
.checkout-total dd { color: var(--navy); font: 700 30px/1.1 "DM Sans", sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
@media (max-width: 360px) {
  .checkout-total dt, .checkout-total dd { font-size: 24px; }
}

.section-heading { align-items: center; }
.section-heading h2 { margin: 0; }
.stepper { grid-template-columns: 48px 110px 48px; height: 48px; max-width: 100%; }
.stepper button { touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.stepper input { font-size: 18px; }

.site-header { position: sticky; top: 0; z-index: 50; }
.customer-preview { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; margin-top: 25px; padding: 12px 15px; background: #f6f9fc; border-radius: 9px; font-size: 13px; color: #607185; }
.customer-preview strong { color: #38546d; font-size: 12px; font-weight: 600; }
.checkout-heading { display: flex; align-items: center; gap: 12px; }
.checkout-heading .icon-tile { width: 36px; height: 36px; }
.checkout-heading .icon { width: 19px; height: 19px; }
.plan-note { margin: 16px 0 0; color: var(--muted); font-size: 12px; }
.quote-contract { display: flex; align-items: center; justify-content: center; width: 100%; margin: 24px 0 0; text-align: center; }
.personalized-quote { margin-top: 24px; }
.personalized-quote h3 { margin: 0; font-size: 18px; }
.personalized-quote p { margin: 6px 0; color: var(--muted); font-size: 14px; }
.personalized-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.personalized-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--navy); font-size: 14px; font-weight: 600; }
.personalized-links svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.consumption-projection { margin-top: 26px; padding-top: 20px; border-top: 1px solid #e6ebf1; }
.consumption-projection > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; color: var(--muted); font-size: 14px; }
.consumption-projection > div + div { margin-top: 12px; }
.consumption-projection strong { color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.consumption-projection p { margin: 16px 0 0; color: var(--muted); font-size: 12px; }
@media (max-width: 760px) {
  .consumption-projection { margin-top: 20px; padding-top: 16px; }
  .consumption-projection > div:first-child, .consumption-projection p { display: none; }
  .consumption-projection > div + div { margin-top: 0; }
  .checkout-summary .plan-note { display: none; }
}
/* Promoción del cotizador */
.quote-preflight {
  box-sizing: border-box; width: min(560px, calc(100% - 32px)); max-width: none;
  max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); margin: auto;
  padding: 24px 28px; border: 1px solid #dde5ef; border-radius: 18px;
  background: white; color: var(--text); overflow-y: auto; overscroll-behavior: contain;
}
.quote-preflight::backdrop { background: rgba(21, 32, 51, .55); }
.quote-preflight svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.promo-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.promo-badge { display: inline-flex; align-items: center; gap: 7px; color: var(--navy); font-size: 12px; font-weight: 700; }
.quote-preflight h2 span { color: var(--navy); }
.promo-badge svg { width: 15px; height: 15px; }
.quote-preflight-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.quote-preflight-close:hover { background: #f1f5f9; color: var(--navy); }
.quote-preflight h2 { margin: 9px 0 6px; color: var(--text); font-size: clamp(23px, 4vw, 30px); line-height: 1.16; letter-spacing: -.025em; }
#quote-preflight-copy { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.promo-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.promo-benefits > div { display: grid; justify-items: center; align-content: center; gap: 4px; padding: 13px 4px; border: 1px solid #dce6f2; border-radius: 12px; background: #f3f7fc; color: var(--navy); text-align: center; }
.promo-benefits strong { font-size: 27px; line-height: 1.15; }
.promo-benefits span { color: var(--text); font-size: 13px; font-weight: 600; }
.quote-preflight .promo-rule { margin: 10px 0 18px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.quote-preflight h3 { margin: 0; padding-top: 16px; border-top: 1px solid #dce4ed; font-size: 15px; }
.promo-requirements { display: grid; gap: 10px; margin: 12px 0; padding: 0; list-style: none; }
.promo-requirements li { display: flex; align-items: flex-start; gap: 10px; }
.promo-requirements svg { flex: none; margin-top: 2px; color: var(--navy); }
.promo-requirements strong, .promo-requirements span { display: block; font-size: 14px; line-height: 1.4; }
.promo-requirements span, .promo-logo { color: var(--muted); font-size: 13px; }
.quote-preflight .promo-logo { margin: 0 0 16px; line-height: 1.45; }
.quote-preflight-continue { display: flex; align-items: center; justify-content: center; width: 100%; text-align: center; text-decoration: none; }
@media (max-width: 480px) {
  .quote-preflight { padding: 14px 18px 18px; }
  .promo-benefits { margin-top: 12px; }
  .promo-benefits > div { padding: 10px 4px; }
  .quote-preflight .promo-rule { margin-bottom: 12px; }
}

@media (hover: hover) and (pointer: fine) {
  .quote-contract:hover { background: var(--navy-dark); }
}
@media (orientation: landscape) and (max-height: 600px) and (min-width: 560px) and (max-width: 760px) {
  .header-inner { min-height: 56px; }
  .main-column .card-body, .summary-card .card-body { padding: 18px; }
  .stepper { grid-template-columns: 48px minmax(45px, 110px) 48px; max-width: 100%; }
}
