/* Promotion ranking only. No Tailwind runtime or changes to the home/event styles. */
#bestfy-promo-list {
  --pl-ink: #111827;
  --pl-muted: #737e8c;
  --pl-border: #e3e9ef;
  --pl-links-width: 408px;
  color: var(--pl-ink);
  background: transparent;
  font: 400 14px/1.5 Montserrat, Arial, sans-serif;
  padding: 0;
}
#bestfy-promo-list *, #bestfy-promo-list *::before, #bestfy-promo-list *::after { box-sizing: border-box; }
#bestfy-promo-list .bf-terms { padding-top: 0 !important; }
#bestfy-promo-list .bf-pl-sidebar .bf-section-head .bf-section-title { font-size: 22px; }
/* Width, gutters, sidebar and breakpoints come from the shared .bf-content-layout. */
#bestfy-promo-list .bf-pl-main { min-width: 0; container: promotion-list / inline-size; }
#bestfy-promo-list .bf-pl-ad { margin: 0; text-align: center; color: var(--pl-muted); font-size: 10px; }
#bestfy-promo-list .bf-pl-heading { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: #253346; font: 800 16px/1.35 Montserrat, Arial, sans-serif; letter-spacing: .045em; text-transform: uppercase; }
#bestfy-promo-list .bf-pl-heading::after { content: ''; height: 1px; background: var(--pl-border); flex: 1; min-width: 20px; margin-left: 6px; }
#bestfy-promo-list .bf-pl-heading .bf-pl-icon { color: #8292a5; }
#bestfy-promo-list .bf-pl-group + .bf-pl-group { margin-top: 32px; }
#bestfy-promo-list .bf-pl-cards { display: grid; gap: 16px; }
#bestfy-promo-list .bf-pl-card { position: relative; min-width: 0; padding: 20px 22px 16px 28px; border: 1px solid var(--pl-border); border-radius: 8px; background: #fff; box-shadow: 0 2px 4px #17283f06; }
#bestfy-promo-list .bf-pl-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 7px; background: var(--pl-accent); border-radius: 18px 0 0 18px; }
#bestfy-promo-list .bf-pl-card--featured { padding-top: 24px; padding-bottom: 18px; }
#bestfy-promo-list .bf-pl-card__body { display: grid; grid-template-columns: 44px 124px minmax(0, 1fr) 198px; grid-template-areas: 'rank logo content cta' 'rank rating content cta' 'rank details details cta'; column-gap: 18px; row-gap: 6px; align-items: start; }
/* Todas las tarjetas reservan la misma columna para los enlaces, sin depender del título. */
#bestfy-promo-list .bf-pl-content { grid-area: content; display: grid; grid-template-columns: minmax(0, 640px) minmax(var(--pl-links-width), 1fr); grid-template-areas: 'offer links'; align-items: start; gap: 12px 18px; min-width: 0; }
#bestfy-promo-list .bf-pl-rank { grid-area: rank; display: flex; flex-direction: column; justify-content: center; align-items: center; width: 44px; min-height: 54px; padding: 7px 3px; border: 1px solid #dce3ec; border-radius: 12px; background: #f1f5f9; color: #334155; line-height: 1.15; }
#bestfy-promo-list .bf-pl-rank strong { font-size: 18px; font-weight: 800; }
#bestfy-promo-list .bf-pl-rank span { font-size: 8px; font-weight: 800; letter-spacing: .025em; margin-top: 4px; }
#bestfy-promo-list .bf-pl-card--featured .bf-pl-rank { min-height: 62px; }
#bestfy-promo-list .bf-pl-card--rank-1 .bf-pl-rank { background: linear-gradient(145deg, #ffdf62, #ffb703); border-color: #f5cf62; color: #4b3500; box-shadow: 0 3px 6px #e4a50021; }
#bestfy-promo-list .bf-pl-card--rank-2 .bf-pl-rank { background: linear-gradient(145deg, #edf2f8, #b5c3d3); border-color: #ccd6e2; color: #253346; }
#bestfy-promo-list .bf-pl-card--rank-3 .bf-pl-rank { background: linear-gradient(145deg, #f3a328, #a84b08); border-color: #ca7c22; color: #fff; }
#bestfy-promo-list .bf-pl-logo { grid-area: logo; display: flex; align-items: center; justify-content: center; justify-self: start; min-width: 0; width: 124px; max-width: 100%; height: 44px; padding: 4px 10px; border: 1px solid var(--pl-brand); border-radius: 10px; background: var(--pl-logo-background); color: var(--pl-logo-foreground); text-decoration: none; overflow: hidden; }
#bestfy-promo-list .bf-pl-logo.bf-pl-logo--plain { border: 0; background: var(--pl-brand); color: inherit; }
#bestfy-promo-list .bf-pl-logo img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; margin: 0; border-radius: 5px; }
#bestfy-promo-list .bf-pl-logo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 800; }
#bestfy-promo-list .bf-pl-rating { grid-area: rating; display: flex; gap: 4px; align-items: center; font-size: 11px; white-space: nowrap; line-height: 1.25; color: #96a0ad; }
#bestfy-promo-list .bf-pl-rating strong { font-size: 12px; font-weight: 800; color: var(--pl-ink); }
#bestfy-promo-list .bf-pl-rating .bf-pl-icon { width: 15px; height: 15px; color: #f5a400; }
#bestfy-promo-list .bf-pl-offer { grid-area: offer; min-width: 0; max-width: 100%; margin: 0; color: #0c1320; font: 800 17px/1.3 Montserrat, Arial, sans-serif; letter-spacing: -.025em; overflow-wrap: anywhere; }
#bestfy-promo-list .bf-pl-card--featured .bf-pl-offer { font-size: 20px; }
#bestfy-promo-list .bf-pl-details { grid-area: details; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; min-width: 0; padding: 0; margin: 10px 0 0; list-style: none; }
#bestfy-promo-list .bf-pl-detail { display: flex; align-items: center; gap: 5px; min-width: 0; min-height: 30px; padding: 6px 8px; margin: 0; border: 1px solid #eaf0f5; border-radius: 6px; background: #f1f5f9; color: #536171; font-size: 11px; line-height: 1.3; }
#bestfy-promo-list .bf-pl-detail .bf-pl-icon { width: 14px; height: 14px; color: #087c70; }
#bestfy-promo-list .bf-pl-detail__short { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#bestfy-promo-list .bf-pl-card--featured .bf-pl-detail:first-child { background: #edfbf5; border-color: #cbefe2; color: #39776b; }
#bestfy-promo-list .bf-pl-card--featured .bf-pl-detail:nth-child(2) { background: #eff6ff; border-color: #dae8fa; color: #345a82; }
#bestfy-promo-list .bf-pl-cta { grid-area: cta; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 0 0 30px; border-left: 1px solid #edf0f4; min-width: 0; }
#bestfy-promo-list .bf-pl-bonus { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 12px 10px; border: 1px solid transparent; border-radius: 11px; background: var(--pl-accent); color: var(--pl-foreground); font: 800 13px/1.2 Montserrat, Arial, sans-serif; text-decoration: none; white-space: nowrap; box-shadow: 0 3px 5px #17283f12; transition: filter .18s; }
#bestfy-promo-list .bf-pl-card--featured .bf-pl-bonus { min-height: 48px; font-size: 14px; }
#bestfy-promo-list .bf-pl-bonus:hover { filter: brightness(.94); color: var(--pl-foreground); }
#bestfy-promo-list .bf-pl-cta small { display: block; color: var(--pl-muted); text-align: center; font-size: 9px; line-height: 1.5; }
#bestfy-promo-list .bf-pl-links { grid-area: links; display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 1fr); align-items: stretch; justify-self: start; gap: 8px; width: 100%; min-width: 0; max-width: var(--pl-links-width); container: promotion-links / inline-size; }
#bestfy-promo-list .bf-pl-secondary { display: inline-flex; min-width: 0; align-items: center; justify-content: center; gap: 7px; padding: 8px; border: 1px solid #e0e7ef; border-radius: 7px; background: #f7f9fc; color: #456178; font: 500 11px/1.45 Montserrat, Arial, sans-serif; text-align: center; text-decoration: none; white-space: nowrap; }
#bestfy-promo-list .bf-pl-secondary:only-child { grid-column: 2; }
/* Si no caben los dos textos, bajar los botones completos sin partir las palabras. */
@container promotion-links (max-width: 376px) {
  #bestfy-promo-list .bf-pl-links > .bf-pl-secondary { grid-column: 1 / -1; }
}
#bestfy-promo-list .bf-pl-secondary:hover { background: #edf3f8; border-color: #c6d6e3; color: #005894; }
#bestfy-promo-list .bf-pl-secondary .bf-pl-icon { width: 14px; height: 14px; }
#bestfy-promo-list .bf-pl-terms { color: #77818e; font-size: 10px; text-align: center; background: none; border: 0; }
#bestfy-promo-list a.bf-pl-terms { text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
#bestfy-promo-list .bf-pl-icon { display: inline-block; width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; }
#bestfy-promo-list a:focus-visible { outline: 3px solid #0071bc; outline-offset: 4px; }
#bestfy-promo-list .bf-pl-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
#bestfy-promo-list .bf-pl-disclaimer { margin: 22px 0 16px; color: #77818e; font-size: 11px; }
#bestfy-promo-list .bf-pl-responsible { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
#bestfy-promo-list .bf-pl-responsible img { display: block; width: auto; max-width: 105px; height: 32px; object-fit: contain; }
/* Bajar los enlaces en todas las tarjetas a la vez cuando el título necesita más sitio. */
@container promotion-list (max-width: 1200px) {
  #bestfy-promo-list .bf-pl-content { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'offer' 'links'; }
}
@container promotion-list (max-width: 760px) {
  #bestfy-promo-list .bf-pl-card { padding: 20px 20px 18px 24px; }
  #bestfy-promo-list .bf-pl-card__body { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: 'rank logo rating' 'offer offer offer' 'details details details' 'cta cta cta' 'links links links'; column-gap: 14px; row-gap: 18px; }
  #bestfy-promo-list .bf-pl-content { display: contents; }
  #bestfy-promo-list .bf-pl-rank, #bestfy-promo-list .bf-pl-card--featured .bf-pl-rank { min-height: 54px; }
  #bestfy-promo-list .bf-pl-logo { width: 138px; height: 46px; }
  #bestfy-promo-list .bf-pl-rating { font-size: 12px; gap: 4px; }
  #bestfy-promo-list .bf-pl-rating strong { font-size: 16px; }
  #bestfy-promo-list .bf-pl-rating .bf-pl-icon { width: 17px; height: 17px; }
  #bestfy-promo-list .bf-pl-offer, #bestfy-promo-list .bf-pl-card--featured .bf-pl-offer { font-size: 20px; line-height: 1.35; }
  #bestfy-promo-list .bf-pl-details { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; gap: 8px; }
  #bestfy-promo-list .bf-pl-detail:last-child:nth-child(odd) { grid-column: 1 / -1; }
  #bestfy-promo-list .bf-pl-detail { min-height: 34px; padding: 7px 8px; font-size: 12px; }
  #bestfy-promo-list .bf-pl-cta { padding: 0; border: 0; gap: 8px; }
  #bestfy-promo-list .bf-pl-bonus, #bestfy-promo-list .bf-pl-card--featured .bf-pl-bonus { min-height: 48px; font-size: 15px; }
  #bestfy-promo-list .bf-pl-cta small { font-size: 10px; }
  #bestfy-promo-list .bf-pl-links { display: grid; grid-template-columns: minmax(max-content, 1fr) minmax(0, 1fr); width: 100%; max-width: none; justify-self: stretch; padding-top: 16px; border-top: 1px solid #edf0f4; }
  #bestfy-promo-list .bf-pl-secondary { min-width: 0; max-width: none; min-height: 42px; padding: 8px; font-size: 11px; }
  #bestfy-promo-list .bf-pl-secondary:only-child { grid-column: 1 / -1; }
  #bestfy-promo-list .bf-pl-terms { text-align: center; font-size: 11px; }
}
@media (max-width: 600px) {
  #bestfy-promo-list .bf-pl-heading { font-size: 15px; gap: 8px; margin-bottom: 18px; }
}
@container promotion-list (max-width: 350px) {
  #bestfy-promo-list .bf-pl-card { padding: 18px 14px 16px 20px; }
  #bestfy-promo-list .bf-pl-card__body { grid-template-columns: 36px minmax(0, 1fr) auto; column-gap: 10px; }
  #bestfy-promo-list .bf-pl-rank { width: 36px; border-radius: 10px; }
  #bestfy-promo-list .bf-pl-rank strong { font-size: 16px; }
  #bestfy-promo-list .bf-pl-rank span { font-size: 7px; }
  #bestfy-promo-list .bf-pl-logo { height: 40px; padding: 3px 5px; }
  #bestfy-promo-list .bf-pl-rating, #bestfy-promo-list .bf-pl-rating strong { font-size: 12px; }
  #bestfy-promo-list .bf-pl-rating .bf-pl-icon { width: 14px; height: 14px; }
  #bestfy-promo-list .bf-pl-offer, #bestfy-promo-list .bf-pl-card--featured .bf-pl-offer { font-size: 18px; }
  #bestfy-promo-list .bf-pl-secondary { font-size: 10px; gap: 4px; padding: 8px 6px; }
  #bestfy-promo-list .bf-pl-detail { font-size: 11px; }
}
