.aa-bfcm-landing {
  --aa-bfcm-navy: var(--ink, #001628);
  --aa-bfcm-navy-hover: var(--brand-blue, #286181);
  --aa-bfcm-ivory: var(--paper, #faf6f5);
  --aa-bfcm-surface: #ffffff;
  --aa-bfcm-salmon: var(--brand-pink, #f4dcd5);
  --aa-bfcm-salmon-soft: var(--warm, #f1e7e4);
  --aa-bfcm-salmon-border: var(--accent, #dba091);
  --aa-bfcm-terracotta: var(--muted, #286181);
  --aa-bfcm-slate: var(--muted, #286181);
  --aa-bfcm-border: var(--line, #dcdde0);
  /* Match the storefront: flat sections and 4px controls. */
  --aa-bfcm-section-radius: 0px;
  --aa-bfcm-control-radius: 4px;
  font-family: var(--wd-text-font, Arial, sans-serif);
  color: var(--aa-bfcm-navy);
  background: var(--aa-bfcm-surface);
  overflow-x: clip;
  padding: clamp(20px, 3vw, 36px) 0 clamp(44px, 6vw, 72px);
}

.aa-bfcm-landing, .aa-bfcm-landing * { box-sizing: border-box; }

.aa-bfcm-landing__inner {
  width: 100%; max-width: 1240px; margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
  display: grid; gap: clamp(32px, 5vw, 56px);
}

.aa-bfcm-landing__hero {
  display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: clamp(24px, 4vw, 48px); align-items: center;
  padding: clamp(24px, 3.4vw, 44px);
  border-radius: var(--aa-bfcm-section-radius); border: 0;
  background: var(--warm, #f1e7e4);
}

.aa-bfcm-landing__hero--single { grid-template-columns: minmax(0, 1fr); }
.aa-bfcm-landing--ended .aa-bfcm-landing__hero { background: var(--aa-bfcm-ivory); }

.aa-bfcm-landing__hero-copy {
  min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
}

.aa-bfcm-landing__eyebrow {
  margin: 0; padding: 6px 14px; border-radius: var(--aa-bfcm-control-radius);
  background: var(--aa-bfcm-navy); color: var(--aa-bfcm-salmon);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}

.aa-bfcm-landing--ended .aa-bfcm-landing__eyebrow { background: #e8dfd6; color: var(--aa-bfcm-navy); }

.aa-bfcm-landing__title {
  margin: 0; font-size: clamp(1.85rem, 3.4vw, 2.85rem); line-height: 1.12;
  letter-spacing: -0.025em; font-weight: 600; font-family: var(--wd-title-font, Arial, sans-serif); color: var(--aa-bfcm-navy);
}

.aa-bfcm-landing__lead, .aa-bfcm-landing__sub {
  margin: 0; max-width: 56ch; font-size: clamp(0.95rem, 1.25vw, 1.05rem);
  line-height: 1.6; color: var(--aa-bfcm-slate);
}

.aa-bfcm-landing__timer { width: 100%; min-width: 0; max-width: 100%; }
.aa-bfcm-landing__timer:empty { display: none; }
.aa-bfcm-landing__actions { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; }

.aa-bfcm-landing__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--aa-bfcm-control-radius);
  font-size: 0.94rem; font-weight: 600; line-height: 1.2; text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.aa-bfcm-landing a.aa-bfcm-landing__btn--primary,
.aa-bfcm-landing a.aa-bfcm-landing__btn--primary:link,
.aa-bfcm-landing a.aa-bfcm-landing__btn--primary:visited { background: var(--aa-bfcm-navy); color: var(--aa-bfcm-surface) !important; }
.aa-bfcm-landing a.aa-bfcm-landing__btn--primary:hover,
.aa-bfcm-landing a.aa-bfcm-landing__btn--primary:focus-visible { background: var(--aa-bfcm-navy-hover); color: var(--aa-bfcm-surface) !important; }
.aa-bfcm-landing a.aa-bfcm-landing__btn--secondary,
.aa-bfcm-landing a.aa-bfcm-landing__btn--secondary:visited { background: var(--aa-bfcm-salmon-soft); border-color: var(--aa-bfcm-salmon-border); color: var(--aa-bfcm-navy) !important; }
.aa-bfcm-landing a.aa-bfcm-landing__btn--secondary:hover { background: var(--aa-bfcm-salmon); color: var(--aa-bfcm-navy) !important; }
.aa-bfcm-landing a.aa-bfcm-landing__btn--ghost,
.aa-bfcm-landing a.aa-bfcm-landing__btn--ghost:visited { background: var(--aa-bfcm-surface); border-color: rgba(6, 24, 44, 0.22); color: var(--aa-bfcm-navy) !important; }
.aa-bfcm-landing a.aa-bfcm-landing__btn--ghost:hover { border-color: var(--aa-bfcm-navy); background: var(--aa-bfcm-ivory); color: var(--aa-bfcm-navy) !important; }

.aa-bfcm-landing__icon { display: inline-flex; align-items: center; flex-shrink: 0; transition: transform 0.2s ease; }
.aa-bfcm-landing__icon svg { display: block; stroke: currentColor; }
.aa-bfcm-landing__btn:hover .aa-bfcm-landing__icon,
.aa-bfcm-landing__link:hover .aa-bfcm-landing__icon,
.aa-bfcm-landing__cat-card:hover .aa-bfcm-landing__icon { transform: translateX(3px); }
.aa-bfcm-landing__cat-card:hover .aa-bfcm-landing__cat-foot > span { text-decoration: underline; text-underline-offset: 3px; }
.aa-bfcm-landing__cat-foot > .aa-bfcm-landing__icon { flex: none; margin-top: 1px; }

.aa-bfcm-landing .aa-bfcm-landing__hero-media {
  position: relative; margin: 0; border-radius: var(--aa-bfcm-section-radius); overflow: hidden;
  background: var(--aa-bfcm-surface); border: 0;
  height: 430px; width: 100%;
  box-shadow: none;
}

.aa-bfcm-landing .aa-bfcm-landing__hero-media img.aa-bfcm-landing__hero-img {
  position: absolute; inset: 0; display: block; width: 100%; height: 100% !important;
  max-width: none; max-height: none; object-fit: cover; object-position: 50% 0; margin: 0;
}

.aa-bfcm-landing__media-tag {
  position: absolute; z-index: 2; left: 14px; bottom: 14px; padding: 7px 13px; border-radius: var(--aa-bfcm-control-radius);
  background: rgba(6, 24, 44, 0.92); color: var(--aa-bfcm-salmon); font-size: 0.78rem; font-weight: 600;
}

.aa-bfcm-landing--ended .aa-bfcm-landing__media-tag { background: rgba(255, 255, 255, 0.94); color: var(--aa-bfcm-navy); }

.aa-bfcm-landing__section { display: grid; gap: 20px; min-width: 0; }
.aa-bfcm-landing__head, .aa-bfcm-landing__rules-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px;
}

.aa-bfcm-landing__kicker {
  margin: 0 0 6px; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--aa-bfcm-terracotta);
}

.aa-bfcm-landing__kicker--light { color: var(--aa-bfcm-salmon); }

.aa-bfcm-landing__h2 {
  margin: 0; font-size: clamp(1.35rem, 2.2vw, 1.8rem); line-height: 1.2;
  letter-spacing: -0.02em; font-weight: 600; font-family: var(--wd-title-font, Arial, sans-serif); color: var(--aa-bfcm-navy);
}

.aa-bfcm-landing__h2--light { color: var(--aa-bfcm-surface); }

.aa-bfcm-landing__link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 0.92rem; font-weight: 600; color: var(--aa-bfcm-navy);
  text-decoration: underline; text-underline-offset: 4px;
}

.aa-bfcm-landing a.aa-bfcm-landing__link--light,
.aa-bfcm-landing a.aa-bfcm-landing__link--light:visited { color: var(--aa-bfcm-salmon) !important; }
.aa-bfcm-landing__cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }

.aa-bfcm-landing a.aa-bfcm-landing__cat-card,
.aa-bfcm-landing a.aa-bfcm-landing__cat-card:visited {
  display: flex; flex-direction: column; min-width: 0; min-height: 44px;
  border-radius: 0; text-decoration: none; color: var(--aa-bfcm-navy);
  background: transparent; border: 0; box-shadow: none;
}

.aa-bfcm-landing a.aa-bfcm-landing__cat-card:hover {
  transform: none; box-shadow: none;
}

.aa-bfcm-landing__cat-media { position: relative; display: block; width: 100%; aspect-ratio: 1; background: var(--aa-bfcm-salmon-soft); overflow: hidden; }
.aa-bfcm-landing__cat-media img { position: absolute; inset: 0; display: block; width: 100%; height: 100% !important; max-height: none; object-fit: cover; object-position: 50% 0; }

.aa-bfcm-landing__cat-foot {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
  min-height: 44px; padding: 10px 0 0; font-size: 0.95rem; font-weight: 600; line-height: 1.35; background: transparent;
}

.aa-bfcm-landing__products { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.aa-bfcm-landing__products > * { min-width: 0; }
.aa-bfcm-landing__empty { margin: 0; padding: 20px; border-radius: var(--aa-bfcm-control-radius); background: var(--aa-bfcm-ivory); color: var(--aa-bfcm-slate); }
.aa-bfcm-landing__inline-link { color: var(--aa-bfcm-navy); font-weight: 600; }

.aa-bfcm-landing__rules {
  padding: clamp(24px, 3.6vw, 40px); border-radius: var(--aa-bfcm-section-radius);
  background: var(--aa-bfcm-navy); color: var(--aa-bfcm-surface); display: grid; gap: 22px;
}

.aa-bfcm-landing__rules-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.aa-bfcm-landing__rule { padding: 18px; border-radius: var(--aa-bfcm-control-radius); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(246, 213, 203, 0.22); }
.aa-bfcm-landing__rule h3 { margin: 0 0 8px; font-size: 0.98rem; font-weight: 600; color: var(--aa-bfcm-salmon); }
.aa-bfcm-landing__rule p { margin: 0; font-size: 0.9rem; line-height: 1.55; color: #dbe4ee; }

.aa-bfcm-landing__help {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 32px;
  padding: clamp(24px, 3.4vw, 36px); border-radius: var(--aa-bfcm-section-radius);
  background: var(--aa-bfcm-salmon-soft); border: 0;
}

.aa-bfcm-landing__help-copy { min-width: 0; flex: 1 1 320px; display: grid; gap: 8px; }
.aa-bfcm-landing__help .aa-bfcm-landing__actions { width: auto; }
.aa-bfcm-landing a:focus-visible { outline: 2px solid var(--aa-bfcm-terracotta); outline-offset: 3px; }
.aa-bfcm-landing__rules a:focus-visible { outline-color: var(--aa-bfcm-salmon); }

@media (max-width: 1080px) {
  .aa-bfcm-landing__products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .aa-bfcm-landing__hero { grid-template-columns: minmax(0, 1fr); }
  .aa-bfcm-landing .aa-bfcm-landing__hero-media { height: 360px; }
  .aa-bfcm-landing__cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .aa-bfcm-landing__rules-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .aa-bfcm-landing__products { grid-template-columns: minmax(0, 1fr); }
  .aa-bfcm-landing__btn, .aa-bfcm-landing__help .aa-bfcm-landing__actions { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .aa-bfcm-landing *, .aa-bfcm-landing *::before, .aa-bfcm-landing *::after {
    transition-duration: 0.01ms !important; animation-duration: 0.01ms !important;
  }
}

/* Full-width solid section, constrained content and a real transparent cutout. */
.aa-proposal.aa-v2 .aa-bfcm-landing { padding-top: 0; }
.aa-proposal.aa-v2 .aa-bfcm-landing__inner { padding-inline: 0; padding-top: clamp(32px,5vw,56px); }
.aa-proposal.aa-v2 .aa-bfcm-landing__hero { position: relative; isolation: isolate; overflow: hidden; display: block; width: 100%; min-height: 0; padding: 0; background: var(--warm,#f1e7e4); }
.aa-proposal.aa-v2 .aa-bfcm-landing__hero-inner { position: relative; width: 100%; max-width: 1240px; min-height: 500px; margin-inline: auto; padding: 44px 76px; display: flex; align-items: center; }
.aa-proposal.aa-v2 .aa-bfcm-landing__hero-copy { position: relative; z-index: 1; width: 63%; gap: 16px; }
.aa-proposal.aa-v2 .aa-bfcm-landing__hero .aa-bfcm-landing__title { font-size: clamp(28px,3.2vw,42px); line-height: 1.08; }
.aa-bfcm-landing__title-prefix,.aa-bfcm-landing__title-suffix { display: block; }
.aa-bfcm-landing__title-percent { display: block; font-size: 2em; line-height: 1; font-weight: 700; margin-block: 4px 8px; }
.aa-proposal.aa-v2 .aa-bfcm-landing .aa-bfcm-landing__hero-media { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; margin: 0; background: transparent; border: 0; pointer-events: none; }
.aa-proposal.aa-v2 .aa-bfcm-landing .aa-bfcm-landing__hero-media img.aa-bfcm-landing__hero-img { position: absolute; inset: 0 0 0 auto; width: auto; height: 100% !important; max-width: none; max-height: none; object-fit: contain; object-position: right bottom; transform: none; mask-image: none; opacity: 1; filter: none; }
.aa-proposal.aa-v2 .aa-bfcm-landing__media-tag { left: auto; right: 14px; bottom: 14px; }
.aa-proposal.aa-v2 .aa-bfcm-landing__section { padding-inline: 32px; }
@media (max-width: 720px) {
  .aa-proposal.aa-v2 .aa-bfcm-landing__hero-inner { padding: 24px; min-height: 0; align-items: stretch; }
  .aa-proposal.aa-v2 .aa-bfcm-landing__hero-copy { width: 100%; min-height: 446px; gap: 12px; }
  .aa-proposal.aa-v2 .aa-bfcm-landing__eyebrow { font-size: 10px; max-width: 100%; }
  .aa-proposal.aa-v2 .aa-bfcm-landing__hero .aa-bfcm-landing__title { max-width: 60%; margin-top: 12px; font-size: clamp(22px,6.4vw,26px); line-height: 1.1; }
  .aa-proposal.aa-v2 .aa-bfcm-landing__title-percent { font-size: 2.45em; margin-block: 0; }
  .aa-proposal.aa-v2 .aa-bfcm-landing__lead { max-width: 43%; margin-top: auto; font-size: 13px; line-height: 1.45; }
  .aa-proposal.aa-v2 .aa-bfcm-landing__hero-copy > .aa-bfcm-landing__actions { gap: 8px; }
  .aa-proposal.aa-v2 .aa-bfcm-landing__hero-copy > .aa-bfcm-landing__actions > a { min-height: 44px; padding: 10px 14px; font-size: 13px; }
  .aa-proposal.aa-v2 .aa-bfcm-landing__btn--secondary { background: var(--warm,#f1e7e4); }
  .aa-proposal.aa-v2 .aa-bfcm-landing .aa-bfcm-landing__hero-media img.aa-bfcm-landing__hero-img { width: 65%; height: auto !important; top: auto; bottom: calc(24px + 44px + 44px + 8px); right: 0; left: auto; object-fit: contain; }
  .aa-proposal.aa-v2 .aa-bfcm-landing__media-tag { display: none; }
  .aa-proposal.aa-v2 :is(#aa-bfcm-categorias,#aa-bfcm-seleccion) { padding-inline: 24px; }
}

/* Coloured landing sections use the same full-width band treatment as the hero. */
.aa-bfcm-landing__rules,.aa-bfcm-landing__help { position: relative; isolation: isolate; }
.aa-bfcm-landing__rules::before,.aa-bfcm-landing__help::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: inherit; z-index: -1; }
.aa-bfcm-landing__title-suffix { font-size: .85em; }
