/* El Buen Fin 2026: fixed full-width promotional ribbon, fully clickable. */
:root {
  --lf-bf-height: 52px;
  --lf-bf-red-1: #8c0016;
  --lf-bf-red-2: #c30c26;
  --lf-bf-red-3: #e2233d;
  --lf-bf-cream: #fff5ea;
  --lf-bf-gold: #ffd7a1;
}
.lf-bf-banner[hidden] { display:none !important; }
.lf-bf-banner {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: auto;
  z-index: 900;
  height: var(--lf-bf-height);
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  padding: 0 14px;
  text-decoration: none;
  color: #fff;
  background:
    radial-gradient(circle at 15% 50%, rgba(255,255,255,.16), transparent 24%),
    linear-gradient(135deg, var(--lf-bf-red-1) 0%, var(--lf-bf-red-2) 42%, var(--lf-bf-red-3) 78%, #8d0419 100%);
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.26);
  box-shadow: 0 10px 24px rgba(93, 7, 26, .26);
  font: 800 12px/1.4 Inter, system-ui, sans-serif;
  letter-spacing: .045em;
  isolation: isolate;
}
.lf-bf-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,.12) 16%, transparent 32%);
  transform: translateX(-120%);
  animation: lf-bf-shine 5s linear infinite;
  pointer-events: none;
}
@keyframes lf-bf-shine {
  from { transform: translateX(-120%); }
  to { transform: translateX(160%); }
}
.lf-bf-badge {
  position: relative;
  z-index: 1;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.34);
  background: rgba(255,245,234,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
  color: var(--lf-bf-cream);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
  white-space: nowrap;
}
.lf-bf-badge::before {
  content: "✦";
  margin-right: 8px;
  color: var(--lf-bf-gold);
  font-size: 10px;
}
.lf-bf-ticker {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.lf-bf-track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
  animation: lf-bf-marquee 22s linear infinite;
}
.lf-bf-track span {
  flex: none;
  display: inline-flex;
  align-items: center;
  padding-inline: 22px;
  font-weight: 900;
}
.lf-bf-track strong {
  color: #fffaf4;
}
.lf-bf-track em {
  font-style: normal;
  color: var(--lf-bf-gold);
}
.lf-bf-track small {
  font-size: .92em;
  opacity: .92;
}
@keyframes lf-bf-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.lf-bf-cue {
  position: relative;
  z-index: 1;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 12px;
  color: #fff8ee;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .035em;
  white-space: nowrap;
  text-transform: uppercase;
}
.lf-bf-cue::before {
  content: "";
  width: 1px;
  height: 22px;
  background: rgba(255,255,255,.28);
}
.lf-bf-cue::after {
  content: "↗";
  font-size: 13px;
  line-height: 1;
}
.lf-bf-banner:hover,
.lf-bf-banner:focus-visible {
  filter: saturate(1.05) brightness(1.02);
}
.lf-bf-banner:focus-visible {
  outline: 2px solid rgba(255,255,255,.8);
  outline-offset: -3px;
}
.lf-bf-a11y {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
html.lf-bf-visible body { padding-top: var(--lf-bf-height) !important; }
html.lf-bf-visible .header-wrap { top: var(--lf-bf-height) !important; }
html.lf-bf-visible .admin-tabs { top: calc(92px + var(--lf-bf-height)); }
html.lf-bf-visible .admin-form-card,
html.lf-bf-visible .sticky-buy { top: calc(96px + var(--lf-bf-height)); }
html.lf-bf-visible .checkout-form-panel { scroll-margin-top: calc(130px + var(--lf-bf-height)); }
html.lf-bf-visible [id] { scroll-margin-top: calc(112px + var(--lf-bf-height)); }

/* Price cards are the same live components on landing / checkout. */
.lf-sales-summary {
  display: grid;
  gap: 6px;
  margin: 14px 0 19px;
  border: 1px solid rgba(240,208,184,.42);
  border-radius: 14px;
  padding: 14px 18px;
  background: rgba(255,245,232,.08);
  color: inherit;
}
.lf-sales-summary .lf-pricing-eyebrow { font: 800 11px/1.3 Inter,system-ui,sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.lf-sales-summary .lf-price-amounts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 15px; font-weight: 800; font-size: clamp(16px,1.55vw,20px); }
.lf-sales-summary .lf-price-amounts span { white-space: nowrap; }
.lf-sales-summary .lf-before { opacity: .77; font-size: 12px; text-decoration: line-through; }
.lf-sales-summary .lf-savings { font-size: 12px; color: #f2d4b8; }
.lf-sales-summary .lf-price-footnote { font-size: 11px; line-height: 1.5; opacity: .85; }
.lf-checkout-promo-note {
  border: 1px solid #e4b6b6;
  background: #fff1ee;
  color: #7b1529;
  padding: 12px 14px;
  border-radius: 12px;
  margin: 12px 0;
  font: 700 13px/1.6 Inter,system-ui,sans-serif;
}
.lf-checkout-promo-note [data-lf-sale-label] { display:block; font-size:13px; font-weight:900; letter-spacing:.02em; margin-bottom:3px; }
.lf-checkout-promo-note [data-lf-sale-saving] { display:block; font-size:13px; font-weight:750; margin-bottom:5px; }
.lf-checkout-promo-note [data-lf-offer-prior] { display:inline-block; margin-right:12px; font-size:11px; color:#805c60; text-decoration:line-through; }
.lf-checkout-promo-note [hidden] { display:none !important; }
.lf-checkout-total {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:13px 14px;
  border:1px solid #e2c3aa;
  background:#fdf5eb;
  border-radius:13px;
  font:700 14px/1.5 Inter,system-ui,sans-serif;
}
.lf-checkout-total strong { font-size:21px; color:#4b2d25; }
html.lf-bf-in-preview { scroll-behavior:auto !important; }

@media (max-width: 820px) {
  :root { --lf-bf-height: 54px; }
  .lf-bf-banner { gap: 10px; padding-inline: 10px; }
  .lf-bf-badge { min-width: 96px; height: 30px; padding-inline: 12px; font-size: 10px; letter-spacing: .09em; }
  .lf-bf-track { animation-duration: 18s; }
  .lf-bf-track span { padding-inline: 18px; }
  .lf-bf-cue { font-size: 10px; padding-left: 10px; }
}
@media (max-width: 640px) {
  :root { --lf-bf-height: 56px; }
  .lf-bf-banner { gap: 8px; padding-inline: 8px; font-size: 11px; }
  .lf-bf-badge { min-width: 82px; height: 28px; padding-inline: 10px; font-size: 9px; letter-spacing: .08em; }
  .lf-bf-badge::before { margin-right: 6px; font-size: 9px; }
  .lf-bf-track { animation-duration: 16s; }
  .lf-bf-track span { padding-inline: 16px; }
  .lf-bf-cue { display: none; }
  .lf-sales-summary { padding: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .lf-bf-track, .lf-bf-banner::before { animation: none; }
}

/* v1.0.173 — desglose visible de ahorros, sin modificar cálculos ni cobros */
.lf-checkout-total {display:flex;flex-direction:column;align-items:stretch;gap:7px;padding:15px 17px;}
.lf-total-heading,.lf-total-price-row {display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;}
.lf-total-heading {font-weight:800;}
.lf-total-badge {background:#e5efe4;color:#285338;border-radius:99px;padding:4px 9px;font-size:11px;font-weight:850;}
.lf-checkout-total .lf-total-price-row strong {font-size:clamp(23px,5.3vw,32px);line-height:1.2;}
.lf-total-price-row del {color:#826c65;font-size:14px;font-weight:500;}
.lf-total-saving {color:#285b3d;font-size:14px;font-weight:800;}
.lf-total-detail {color:#66564e;font-size:12px;font-weight:500;line-height:1.5;}
.lf-coupon-savings-breakdown {display:block;margin-top:7px;color:#285b3d;font-weight:800;line-height:1.6;}
[hidden].lf-total-badge,[hidden].lf-total-saving,[hidden].lf-total-detail {display:none!important;}
