/* v2 Cyber Days hero (components/v2/cyber-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-26: Web-cyber
   1440×560 = 32px band + 528px stage, Web-cyber-movil 390×720), in a unit that scales them with the
   viewport, as the Black Week hero (css/v2/campaign-hero.css):
     desktop : --cd-u = 1px at 1440px and wider, down to 0.667px at 960px
     mobile  : --cd-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-cd-hero {
  --cd-u: min(1.4px, calc((100vw - 2 * var(--bf-gutter)) / 350));
  --cd-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:262), 440px at most on tablets. */
.bf-cd-hero__media,
.bf-cd-hero__photo {
  display: block;
  width: 100%;
}

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

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

/* "Cyber Days" on one line, as the maquette. */
.bf-cd-hero__title {
  margin: 0;
  font: 900 calc(70 * var(--cd-u))/.85 var(--bf-font-numeric);
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--bf-c-black);
}

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

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

.bf-cd-hero__name {
  margin: 0;
  padding-top: 2px;
  font: 400 calc(21 * var(--cd-u))/.9 var(--bf-font-display);
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--bf-c-black);
}

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

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

.bf-cd-hero__old {
  font: 800 calc(20 * var(--cd-u))/.85 var(--bf-font-numeric);
  letter-spacing: .04em;
  color: var(--cd-gold);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

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

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

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

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

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

/* Google line: five yellow stars, "4,9 en Google" in bold, "312 reseñas" underlined in yellow. */
.bf-cd-hero__reviews {
  display: flex;
  align-items: center;
  gap: calc(9 * var(--cd-u));
  margin: 0;
  font-size: calc(14 * var(--cd-u));
  line-height: 1;
  white-space: nowrap;
}

.bf-cd-hero__stars {
  display: inline-flex;
  gap: calc(1.5 * var(--cd-u));
}

.bf-cd-hero__star {
  display: block;
  width: calc(14 * var(--cd-u));
  height: calc(15.3 * var(--cd-u));
  fill: var(--bf-c-yellow);
}

.bf-cd-hero__rating {
  font-weight: 700;
}

.bf-cd-hero__count {
  padding-bottom: 2px;
  border-bottom: 2px solid var(--bf-c-yellow);
}

/* CTA: DIN Condensed (the maquette's DIN 700); black with white text on hover, as every campaign
   CTA. */
.bf-cd-hero__btn {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(56 * var(--cd-u));
  padding: 0 calc(35 * var(--cd-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(--cd-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-cd-hero__btn:hover,
.bf-cd-hero__btn:focus {
  background: var(--bf-c-black);
  color: var(--bf-c-white);
  text-decoration: none;
}

.bf-cd-hero__note {
  margin: 0;
  font-size: calc(14 * var(--cd-u));
  font-weight: 400;
  line-height: 1.3;
  color: #4D4D4D;
}

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

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

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

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

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

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

  .bf-cd-hero__content {
    align-items: flex-start;
    width: calc(540 * var(--cd-u));
    gap: calc(14 * var(--cd-u));
    padding: calc(24 * var(--cd-u)) 0;
    /* The maquette's 72px 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(72 * var(--cd-u) - var(--bf-gutter-desktop));
  }

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

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

  .bf-cd-hero__offer {
    gap: calc(5 * var(--cd-u));
  }

  .bf-cd-hero__name {
    padding-top: 3px;
    font-size: calc(33 * var(--cd-u));
  }

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

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

  .bf-cd-hero__old {
    font-size: calc(32 * var(--cd-u));
    text-decoration-thickness: 3px;
  }

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

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

  .bf-cd-hero__reviews {
    gap: calc(12 * var(--cd-u));
    margin-top: calc(4 * var(--cd-u));
    font-size: calc(18 * var(--cd-u));
  }

  .bf-cd-hero__stars {
    gap: calc(2 * var(--cd-u));
  }

  .bf-cd-hero__star {
    width: calc(18 * var(--cd-u));
    height: calc(19.7 * var(--cd-u));
  }

  /* The maquette's 4px spacer between the Google line and the CTA, on top of the column's gap. */
  .bf-cd-hero__btn {
    align-self: flex-start;
    display: inline-flex;
    height: calc(56 * var(--cd-u));
    margin-top: calc(4 * var(--cd-u));
    padding: 0 calc(34 * var(--cd-u));
    font-size: calc(26 * var(--cd-u));
  }

  .bf-cd-hero__note {
    font-size: calc(15 * var(--cd-u));
  }
}

/* Wide screens: the photo follows the page grid instead of the viewport, as the Black Week hero.
   It starts 65px after the 540px text column (itself 24px 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-cd-hero__media {
    left: calc(max(var(--bf-gutter-desktop), (100% - 1360px) / 2) + 629px);
    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) ---- */

/* es-ar: five-digit amounts ("$ 12.950", "$ 25.900"); the maquette itself sets them at 64 / 28px on
   desktop. On mobile they would overflow the card's price column. */
.language-es-ar .bf-cd-hero__price {
  font-size: calc(37 * var(--cd-u));
}

.language-es-ar .bf-cd-hero__old {
  font-size: calc(17 * var(--cd-u));
}

@media (min-width: 960px) {
  .language-es-ar .bf-cd-hero__price {
    font-size: calc(64 * var(--cd-u));
  }

  .language-es-ar .bf-cd-hero__old {
    font-size: calc(28 * var(--cd-u));
  }
}
