/* v2 campaign hero — Black Week 2026 (components/v2/campaign-hero.html.twig). Tokens from
   css/v2/tokens.css; the black band on top is css/v2/bw-marquee.css. Sizes are the maquette's
   (canvas of 2026-11-20: Web-semana 1440×560 = 32px band + 528px stage, Web-movil 390×650), in a
   unit that scales them with the viewport:
     desktop : --bw-u = 1px at 1440px and wider, down to 0.667px at 960px
     mobile  : --bw-u = 1px at 390px (350px of content between the 20px gutters), smaller on
               narrower phones, at most 1.4px (tablets)
   so the card, which never wraps, keeps the maquette's proportions on every width.
   Fonts: the maquette's DIN 700 is the site's DIN Condensed (one weight), Fira 800/900 and
   Inter Tight as declared in tokens.css. */

.bf-bw-hero {
  --bw-u: min(1.4px, calc((100vw - 2 * var(--bf-gutter)) / 350));
  --bw-gold: #997A00;
  position: relative;
  overflow: hidden;
  background: var(--bf-c-sand);
  color: var(--bf-c-black);
  font-family: var(--bf-font-body);
}

/* Mobile: photo under the band, at the maquette's crop (390:270), 440px at most on tablets. */
.bf-bw-hero__media,
.bf-bw-hero__photo {
  display: block;
  width: 100%;
}

.bf-bw-hero__photo {
  height: auto;
  aspect-ratio: 390 / 270;
  max-height: 440px;
  object-fit: cover;
  object-position: 50% 50%;
}

.bf-bw-hero__content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: calc(16 * var(--bw-u));
  padding: calc(24 * var(--bw-u)) 0;
}

.bf-bw-hero__title {
  margin: 0;
  font: 900 calc(70 * var(--bw-u))/.85 var(--bf-font-numeric);
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--bf-c-black);
}

.bf-bw-hero__card {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(8 * var(--bw-u));
  margin-top: calc(34 * var(--bw-u));
  padding: calc(14 * var(--bw-u)) calc(12 * var(--bw-u));
  background: var(--bf-c-white);
  border-radius: calc(9 * var(--bw-u));
  box-shadow: 0 calc(6 * var(--bw-u)) calc(17 * var(--bw-u)) rgba(0, 0, 0, .08);
}

.bf-bw-hero__offer {
  display: flex;
  flex-direction: column;
  gap: calc(3 * var(--bw-u));
  min-width: 0;
}

/* 21.4px in the maquette; our DIN cut is wider, so 19px keeps the Spanish line clear of the divider
   (as the club hero, club-bw-hero.css). */
.bf-bw-hero__pack {
  margin: 0;
  padding-top: 2px;
  font: 400 calc(19 * var(--bw-u))/.9 var(--bf-font-display);
  text-transform: uppercase;
  white-space: nowrap;
}

.bf-bw-hero__prices {
  display: flex;
  align-items: flex-end;
  gap: calc(6 * var(--bw-u));
  white-space: nowrap;
}

.bf-bw-hero__price {
  font: 900 calc(48.1 * var(--bw-u))/.85 var(--bf-font-numeric);
  letter-spacing: .04em;
}

.bf-bw-hero__value {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(2 * var(--bw-u));
  padding-bottom: calc(2 * var(--bw-u));
  color: var(--bw-gold);
}

.bf-bw-hero__value-label {
  padding-top: 1px;
  font: 400 calc(11 * var(--bw-u))/.9 var(--bf-font-display);
  letter-spacing: .03em;
  text-transform: uppercase;
}

.bf-bw-hero__value-amount {
  font: 800 calc(20.9 * var(--bw-u))/.85 var(--bf-font-numeric);
  letter-spacing: .04em;
}

/* amount_of_money glues the euro to the number ("24,95€"): the maquette spaces it. Other
   currencies come first, already followed by a space ("R$ 180"). */
.bf-bw--eur .currency {
  margin-left: .12em;
}

.bf-bw-hero__divider {
  flex: 0 0 1px;
  align-self: stretch;
  background: rgba(0, 0, 0, .12);
}

.bf-bw-hero__gift {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(5 * var(--bw-u));
}

/* The gloves stick out of the card's top edge. */
.bf-bw-hero__gloves {
  display: block;
  width: auto;
  height: calc(82.8 * var(--bw-u));
  margin-top: calc(-36 * var(--bw-u));
  filter: drop-shadow(0 calc(5 * var(--bw-u)) calc(7 * var(--bw-u)) rgba(0, 0, 0, .18));
}

.bf-bw-hero__gift-label {
  font-size: calc(12 * var(--bw-u));
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

/* CTA: DIN Condensed (the maquette's DIN 700); black with white text on hover, as every Black Week
   CTA. */
.bf-bw-hero__btn {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(56 * var(--bw-u));
  padding: 0 calc(35 * var(--bw-u));
  box-sizing: border-box;
  background: var(--bf-c-yellow);
  color: var(--bf-c-black);
  border-radius: var(--bf-radius-btn);
  font: 400 calc(27 * var(--bw-u))/.85 var(--bf-font-display);
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color var(--bf-dur) var(--bf-ease), color var(--bf-dur) var(--bf-ease);
}

.bf-bw-hero__btn:hover,
.bf-bw-hero__btn:focus {
  background: var(--bf-c-black);
  color: var(--bf-c-white);
  text-decoration: none;
}

/* ---- Desktop (UIkit @m) ---- */

@media (min-width: 960px) {
  .bf-bw-hero {
    --bw-u: min(1px, calc(100vw / 1440));
  }

  /* The 528px stage under the 32px band. */
  .bf-bw-hero__stage {
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: calc(528 * var(--bw-u));
  }

  /* Photo: the right 689/1440 of the stage, full height, bleeding to the viewport's edge up to
     1440px (see the wide-screen rule below). */
  .bf-bw-hero__media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: calc(689 / 1440 * 100%);
  }

  .bf-bw-hero__photo {
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
    object-position: 50% 50%;
  }

  .bf-bw-hero__container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
  }

  .bf-bw-hero__content {
    align-items: flex-start;
    width: calc(663 * var(--bw-u));
    gap: calc(14 * var(--bw-u));
    padding: calc(24 * var(--bw-u)) 0;
    /* The maquette's 64px left edge, scaled: the container's fixed 48px gutter is taken back, so
       the column keeps clear of the photo down to 960px. */
    margin-left: calc(64 * var(--bw-u) - var(--bf-gutter-desktop));
  }

  .bf-bw-hero__title {
    font-size: calc(88 * var(--bw-u));
  }

  .bf-bw-hero__card {
    align-self: flex-start;
    justify-content: flex-start;
    gap: calc(18 * var(--bw-u));
    margin-top: calc(24 * var(--bw-u));
    padding: calc(16 * var(--bw-u)) calc(20 * var(--bw-u));
    border-radius: calc(16 * var(--bw-u));
    box-shadow: 0 calc(8 * var(--bw-u)) calc(24 * var(--bw-u)) rgba(0, 0, 0, .08);
  }

  .bf-bw-hero__offer {
    gap: calc(6 * var(--bw-u));
  }

  .bf-bw-hero__pack {
    padding-top: 4px;
    font-size: calc(30 * var(--bw-u));
  }

  .bf-bw-hero__prices {
    gap: calc(10 * var(--bw-u));
  }

  .bf-bw-hero__price {
    font-size: calc(64 * var(--bw-u));
  }

  .bf-bw-hero__value {
    gap: calc(3 * var(--bw-u));
    padding-bottom: calc(3 * var(--bw-u));
  }

  .bf-bw-hero__value-label {
    padding-top: 2px;
    font-size: calc(16 * var(--bw-u));
  }

  .bf-bw-hero__value-amount {
    font-size: calc(28 * var(--bw-u));
  }

  .bf-bw-hero__gift {
    gap: calc(7 * var(--bw-u));
  }

  .bf-bw-hero__gloves {
    height: calc(92 * var(--bw-u));
    margin-top: calc(-40 * var(--bw-u));
    filter: drop-shadow(0 calc(7 * var(--bw-u)) calc(11 * var(--bw-u)) rgba(0, 0, 0, .18));
  }

  .bf-bw-hero__gift-label {
    font-size: calc(15 * var(--bw-u));
  }

  /* 16px of the maquette between the card and the CTA, on top of the column's gap. */
  .bf-bw-hero__btn {
    align-self: flex-start;
    display: inline-flex;
    height: calc(52 * var(--bw-u));
    margin-top: calc(16 * var(--bw-u));
    padding: 0 calc(32 * var(--bw-u));
    font-size: calc(24 * var(--bw-u));
  }
}

/* Wide screens: the photo follows the page grid instead of the viewport. It starts 24px after the
   663px text column (itself 16px inside the grid) and ends on the grid's right edge
   ((100% - 1360px) / 2 from the side); between 1440 and 1520px that offset grows from 0 so the photo
   never jumps. */
@media (min-width: 1441px) {
  .bf-bw-hero__media {
    left: calc(max(var(--bf-gutter-desktop), (100% - 1360px) / 2) + 703px);
    right: max(0px, min(100% - 1440px, (100% - 1360px) / 2));
    width: auto;
  }
}

/* ---- Per-locale text fit (es-es is the reference, see .claude/rules/frontend-assets.md) ---- */

/* it: "4 sessioni per appassionarti" is the longest pack line. */
.language-it-it .bf-bw-hero__pack {
  font-size: calc(19 * var(--bw-u));
}

/* fr: "D'une valeur de" is the widest "valued at" label; with it the price row is still 2px too wide
   on mobile: a tighter price. */
.language-fr-fr .bf-bw-hero__value-label {
  letter-spacing: 0;
}

.language-fr-fr .bf-bw-hero__price {
  letter-spacing: .02em;
}

/* es-ar: six-digit amounts ("$ 69.900", "$ 138.000"); the maquette itself sets the mobile price at
   38.5px for es-ar. */
.language-es-ar .bf-bw-hero__price {
  font-size: calc(37 * var(--bw-u));
}

.language-es-ar .bf-bw-hero__value-amount {
  font-size: calc(17 * var(--bw-u));
}

@media (min-width: 960px) {
  .language-it-it .bf-bw-hero__pack {
    font-size: calc(28 * var(--bw-u));
  }

  .language-es-ar .bf-bw-hero__price {
    font-size: calc(50 * var(--bw-u));
  }

  .language-es-ar .bf-bw-hero__value-amount {
    font-size: calc(23 * var(--bw-u));
  }
}
