/* ============================================================
   v2 club landing — "Así será tu primera clase", "Oferta de bienvenida" / "¿Qué vas a
   necesitar?" and "Este es tu club", in the page order.
   Templates: club/v2/section/first-class.html.twig, welcome.html.twig, club.html.twig.
   Maquette: Web Desktop l.529-630 / Web Movil l.535-616. Mobile first, desktop from
   UIkit @m (960px). Selectors are doubled with the section class where UIkit sets
   margins/fonts on bare elements (h2, h3, p, ul, ol, dl).
   ============================================================ */

/* ---- Así será tu primera clase ---- */

.bf-club-class {
  background: var(--bf-c-white);
  border-top: 1px solid var(--bf-c-line-light);
}

.bf-club-class__grid {
  padding: 40px var(--bf-gutter) 44px;
}

/* 38px in the maquette (440 column, WM l.537), where "Así será tu primera clase" just fills the
   first line (≈ 9.5 × font size wide): scaled down with the viewport so narrower phones keep the
   same break ("… clase / de fitboxing"). */
.bf-club-class .bf-club-class__title {
  margin: 0 0 22px;
  font: 400 38px/.95 var(--bf-font-display);
  font-size: clamp(30px, calc((100vw - 2 * var(--bf-gutter)) / 9.7), 38px);
  text-transform: uppercase;
  color: var(--bf-c-black);
}

/* Per-locale text-fit (es-es is the reference): longer translations keep the es 2 lines on
   phones, the es clamp scaled by a factor. Body class language-{locale} from base_v2. */
@media (max-width: 959px) {
  .language-pt-br .bf-club-class .bf-club-class__title {
    font-size: clamp(29px, calc((100vw - 2 * var(--bf-gutter)) / 10.1), 36.5px); /* 0.96 × es */
  }

  .language-en-ie .bf-club-class .bf-club-class__title,
  .language-en-us .bf-club-class .bf-club-class__title {
    font-size: clamp(27px, calc((100vw - 2 * var(--bf-gutter)) / 10.8), 34px); /* 0.9 × es */
  }
}

/* 4:5 black box; poster and video fill it (classes from css/v2/video-hero.css). */
.bf-club-class__media {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  overflow: hidden;
  background: var(--bf-c-black);
}

.bf-club-class .bf-club-class__steps {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.bf-club-class .bf-club-class__step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  padding: 20px 0;
}

.bf-club-class .bf-club-class__step + .bf-club-class__step {
  border-top: 1px solid var(--bf-c-line-light);
}

.bf-club-class__num {
  font: 900 24px/1 var(--bf-font-numeric);
  color: var(--bf-c-gold);
}

.bf-club-class__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.bf-club-class .bf-club-class__step-title {
  margin: 0;
  font: 400 22px/1 var(--bf-font-display);
  text-transform: uppercase;
  color: var(--bf-c-black);
}

/* "47 min" — Fira Sans Extra Condensed 700 (tokens.css). */
.bf-club-class__badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  font: 700 22px/1 var(--bf-font-numeric);
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--bf-c-black);
  background: var(--bf-c-yellow);
}

.bf-club-class .bf-club-class__text {
  margin: 8px 0 0;
  font: 400 16px/1.55 var(--bf-font-body);
  color: var(--bf-c-black);
  text-wrap: pretty;
}

/* ---- Este es tu club ---- */

/* #club is the target of the hero's "Contacto" CTA: land under the sticky header + promo bar. */
.bf-club {
  background: var(--bf-c-white);
  border-top: 1px solid var(--bf-c-line-light);
  scroll-margin-top: calc(var(--bf-header-h) + var(--bf-promo-h));
}

/* One map element for both layouts: mobile stacks intro / map / panel, desktop puts the
   map in a right column spanning both rows. */
.bf-club__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "intro" "map" "panel";
}

.bf-club__intro {
  grid-area: intro;
  padding: 36px var(--bf-gutter) 0;
}

/* 38px from 390 up (maquette), scaled down below so narrow phones keep the same lines. */
.bf-club .bf-club__title {
  margin: 0;
  font: 400 38px/.95 var(--bf-font-display);
  font-size: clamp(30px, calc((100vw - 2 * var(--bf-gutter)) / 9.2), 38px);
  text-transform: uppercase;
  color: var(--bf-c-black);
}

.bf-club .bf-club__text {
  margin: 14px 0 0;
  font: 400 16px/1.6 var(--bf-font-body);
  color: var(--bf-c-black);
}

.bf-club .bf-club__title + .bf-club__text {
  margin-top: 16px;
}

.bf-club .bf-club__text strong {
  font-weight: 500;
}

.bf-club__map {
  grid-area: map;
  position: relative;
  height: 240px;
  margin-top: 28px;
  overflow: hidden;
  background: var(--bf-c-sand);
}

/* Doubled class: MapLibre's injected stylesheet sets .maplibregl-map { position: relative }. */
.bf-club .bf-club__canvas {
  position: absolute;
  inset: 0;
}

/* Same grey tiles as the current club map (components.css) and the v2 finder. */
.bf-club .maplibregl-canvas {
  filter: grayscale(1) contrast(.95);
}

.bf-club__panel {
  grid-area: panel;
  padding: 8px var(--bf-gutter) 40px;
}

/* Outline secondary buttons ("Cómo llegar", "Ver los clubes…", "Contacta con nosotros").
   :hover keeps the idle look so UIkit's `a:hover` (blue, underlined) never wins; mouse
   hover is under @media (hover: hover). */
.bf-club__directions,
.bf-club__directions:visited,
.bf-club__directions:hover,
.bf-club__outline,
.bf-club__outline:visited,
.bf-club__outline:hover {
  display: block;
  box-sizing: border-box;
  width: 100%;
  background: transparent;
  border: 1px solid var(--bf-c-black);
  border-radius: var(--bf-radius-btn);
  font: 400 19px/1 var(--bf-font-display);
  letter-spacing: .03em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  color: var(--bf-c-black);
  transition: background-color var(--bf-dur) var(--bf-ease), border-color var(--bf-dur) var(--bf-ease);
}

.bf-club__directions,
.bf-club__directions:visited,
.bf-club__directions:hover {
  margin-top: 16px;
  padding: 16px;
  border-color: rgba(0, 0, 0, .24);
  letter-spacing: .02em;
}

.bf-club__outline,
.bf-club__outline:visited,
.bf-club__outline:hover {
  padding: 17px 16px;
}

.bf-club__directions:focus-visible,
.bf-club__outline:focus-visible {
  outline: 2px solid var(--bf-c-gold);
  outline-offset: 2px;
}

@media (hover: hover) {
  .bf-club__directions:hover,
  .bf-club__outline:hover {
    border-color: var(--bf-c-black);
    background: var(--bf-c-yellow);
  }
}

/* Tabs — uk-tab restyled: equal widths, one hairline, 2px gold underline when active. */
.bf-club .bf-club__tabs {
  flex-wrap: nowrap;
  margin: 24px 0 0;
  padding: 0;
  border-bottom: 1px solid var(--bf-c-line-light);
}

.bf-club .bf-club__tabs::before {
  display: none;
}

.bf-club .bf-club__tabs > * {
  flex: 1 1 0;
  min-width: 0;
  padding-left: 0;
}

.bf-club .bf-club__tabs > * > a {
  display: block;
  padding: 14px 4px;
  border-bottom: 2px solid transparent;
  font: 400 17px/1 var(--bf-font-display);
  letter-spacing: .03em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  color: var(--bf-c-ink-idle);
  transition: color var(--bf-dur) var(--bf-ease), border-color var(--bf-dur) var(--bf-ease);
}

.bf-club .bf-club__tabs > * > a:hover {
  color: var(--bf-c-ink-idle);
  text-decoration: none;
}

.bf-club .bf-club__tabs > .uk-active > a {
  color: var(--bf-c-black);
  border-bottom-color: var(--bf-c-gold);
}

.bf-club .bf-club__tabs > * > a:focus-visible {
  outline: 2px solid var(--bf-c-gold);
  outline-offset: -2px;
}

@media (hover: hover) {
  .bf-club .bf-club__tabs > * > a:hover {
    color: var(--bf-c-black);
  }
}

.bf-club .bf-club__panes {
  margin: 0;
}

/* Contacto */
.bf-club .bf-club__contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding-top: 20px;
}

.bf-club .bf-club__label {
  font: 400 11px/1 var(--bf-font-display);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bf-c-ink-idle);
}

.bf-club .bf-club__value {
  margin: 6px 0 0;
  font: 400 16px/1.5 var(--bf-font-body);
  color: var(--bf-c-black);
  overflow-wrap: anywhere;
}

.bf-club__link,
.bf-club__link:visited,
.bf-club__link:hover {
  color: inherit;
  text-decoration: none;
}

.bf-club__link:focus-visible {
  outline: 2px solid var(--bf-c-gold);
  outline-offset: 2px;
}

@media (hover: hover) {
  .bf-club__link:hover {
    color: var(--bf-c-gold);
  }
}

/* Horario */
.bf-club .bf-club__schedule {
  margin: 0;
  padding: 8px 0 0;
  list-style: none;
}

/* Mobile: the day name above its times (every row reads the same way, times start on one
   left edge, 11 classes fit on 2 lines at 375px). Desktop puts them side by side. */
.bf-club .bf-club__day {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--bf-c-line-light);
}

.bf-club__day-name {
  flex: none;
  font: 400 16px/1 var(--bf-font-display);
  text-transform: uppercase;
  color: var(--bf-c-black);
}

/* One run of times per day (morning then afternoon). A day that wraps splits into even lines
   rather than leaving one time alone. */
.bf-club__slots {
  min-width: 0;
  text-wrap: balance;
  font: 400 15px/1.5 var(--bf-font-body);
  font-variant-numeric: tabular-nums;
  color: var(--bf-c-black);
}

/* A time and the "·" after it never split: long days wrap between times. */
.bf-club__time {
  white-space: nowrap;
}

/* No timetable (preopening / empty): the current page's messages. */
.bf-club__empty {
  padding-top: 20px;
}

.bf-club .bf-club__empty p {
  margin: 0 0 12px;
  font: 400 16px/1.55 var(--bf-font-body);
  color: var(--bf-c-ink-idle);
}

.bf-club .bf-club__empty strong {
  font-weight: 600;
  color: var(--bf-c-black);
}

.bf-club .bf-club__empty-btn {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 22px;
  white-space: normal;
  text-align: center;
}

.bf-club .bf-btn.bf-club__empty-btn {
  padding: 17px 16px;
  font-size: 19px;
}

/* ¿No es tu club? */
.bf-club__others {
  padding-top: 20px;
}

.bf-club .bf-club__others-title {
  margin: 0;
  font: 400 28px/.98 var(--bf-font-display);
  text-transform: uppercase;
  color: var(--bf-c-black);
}

.bf-club .bf-club__others-text {
  margin: 10px 0 18px;
  font: 400 16px/1.55 var(--bf-font-body);
  color: var(--bf-c-black);
}

/* ---- Oferta de bienvenida + ¿Qué vas a necesitar? ---- */

.bf-club-welcome,
.bf-club-needs {
  padding: 40px var(--bf-gutter) 44px;
  border-top: 1px solid var(--bf-c-line-light);
}

.bf-club-welcome {
  background: var(--bf-c-sand);
}

.bf-club-needs {
  background: var(--bf-c-white);
}

/* Same fluid size as .bf-club__title. */
.bf-club-offer .bf-club-offer__title {
  margin: 0;
  font: 400 38px/.95 var(--bf-font-display);
  font-size: clamp(30px, calc((100vw - 2 * var(--bf-gutter)) / 9.2), 38px);
  text-transform: uppercase;
  color: var(--bf-c-black);
}

.bf-club-offer .bf-club-offer__lead {
  margin: 14px 0 22px;
  font: 400 16px/1.55 var(--bf-font-body);
  color: var(--bf-c-black);
}

.bf-club-needs .bf-club-offer__lead {
  font-size: 17px;
  line-height: 1.5;
}

/* Plain list (no box), WM l.572 / WD l.574. */
.bf-club-offer .bf-club-welcome__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bf-club-offer .bf-club-welcome__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0;
  font: 400 15px/1.5 var(--bf-font-body);
  color: var(--bf-c-black);
}

.bf-club-welcome__check {
  flex: none;
  font: 400 18px/1.2 var(--bf-font-display);
  color: var(--bf-c-black);
}

.bf-club-offer .bf-club-welcome__note {
  margin: 14px 0 0;
  font: 400 12px/1.4 var(--bf-font-body);
  color: var(--bf-c-black);
}

.bf-club-offer .bf-club-needs__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bf-club-offer .bf-club-needs__item {
  display: flex;
  gap: 14px;
  align-items: baseline;
  margin: 0;
  padding: 16px 0;
  border-top: 1px solid var(--bf-c-line-light);
  font: 400 16px/1.5 var(--bf-font-body);
  color: var(--bf-c-black);
}

.bf-club-offer .bf-club-needs__item:last-child {
  border-bottom: 1px solid var(--bf-c-line-light);
}

.bf-club-needs__num {
  flex: none;
  font: 900 22px/1 var(--bf-font-numeric);
  font-variant-numeric: tabular-nums;
  color: var(--bf-c-gold);
}

/* Yellow CTA, full width on mobile, no glow (maquette); hover comes from .bf-btn--primary. */
.bf-club-offer .bf-club-offer__btn {
  display: flex;
  width: 100%;
  margin-top: 20px;
  padding: 19px 18px;
  font-size: 22px;
  white-space: normal;
  text-align: center;
}

.bf-club-offer .bf-club-needs__btn {
  margin-top: 24px;
}

/* ---- Long single words ----
   Headings get overflow-wrap (+ hyphens under :lang(de)) from tokens.css; the tab labels are
   not headings: same safety net here (de "ÖFFNUNGSZEITEN"). Hyphenation for German only. */
.bf-club .bf-club__tabs > * > a {
  overflow-wrap: break-word;
}

:lang(de) .bf-club .bf-club__tabs > * > a {
  hyphens: auto;
}

/* Every label on one line, even row heights: 17px from 390 up (es reference), scaled down
   below so the longest label (de "ÖFFNUNGSZEITEN", ~107px at 17px) fits a third of the row
   down to 320 (13.2px). pt "OUTRAS UNIDADES" (~111px) needs a smaller step: 17px from ~404,
   12.6px at 320. Hyphenation is not available in every browser, the word has to fit. */
@media (max-width: 959px) {
  .bf-club .bf-club__tabs > * > a {
    font-size: clamp(13px, calc(5.43vw - 4.17px), 17px);
  }

  :lang(pt) .bf-club .bf-club__tabs > * > a {
    font-size: clamp(12px, calc(5.24vw - 4.17px), 17px);
  }
}

/* ---- Tablet (UIkit @s to @m): the mobile layout on a wider screen ----
   "Así será": video (40 %) and steps (60 %) side by side under the title, like desktop,
   instead of a full-width 4:5 video (910px tall at 768). CTAs capped at 480px, left-aligned
   like the text above them. */
@media (min-width: 640px) and (max-width: 959px) {
  .bf-club-class__grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    column-gap: 32px;
    align-items: center;
  }

  .bf-club-class .bf-club-class__title {
    grid-column: 1 / -1;
  }

  .bf-club-class .bf-club-class__steps {
    margin: 0;
  }

  .bf-club__directions,
  .bf-club__outline,
  .bf-club .bf-club__empty-btn,
  .bf-club-offer .bf-club-offer__btn {
    max-width: 480px;
  }
}

/* ---- Desktop ---- */

@media (min-width: 960px) {
  /* Este es tu club — 2 columns, 72px padding on every side (WD l.595): the map, in the right
     column, is as tall as the left one, at least 520px (WD l.629). */
  .bf-club {
    border-top: 0;
    border-bottom: 1px solid var(--bf-c-line-light);
    scroll-margin-top: calc(var(--bf-header-h-desktop) + var(--bf-promo-h));
  }

  .bf-club__grid {
    box-sizing: border-box;
    max-width: var(--bf-container);
    margin: 0 auto;
    padding: 72px var(--bf-gutter-desktop);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "intro map" "panel map";
    column-gap: 72px;
    align-items: start;
  }

  .bf-club__intro {
    padding: 0;
  }

  /* 52px from 1280 up (maquette), 40px at 960 so the two columns keep their words. */
  .bf-club .bf-club__title {
    font-size: clamp(40px, 4.07vw, 52px);
    line-height: .95;
  }

  .bf-club .bf-club__text {
    margin-top: 18px;
    font-size: 19px;
    line-height: 1.65;
  }

  .bf-club .bf-club__title + .bf-club__text {
    margin-top: 24px;
  }

  .bf-club__map {
    align-self: stretch;
    height: auto;
    min-height: 520px;
    margin-top: 0;
  }

  .bf-club__panel {
    padding: 0;
  }

  /* "Cómo llegar" on desktop too: content width, under the text (WD l.600). */
  .bf-club__directions,
  .bf-club__directions:visited,
  .bf-club__directions:hover {
    display: inline-block;
    width: auto;
    margin-top: 32px;
    padding: 16px 28px;
  }

  .bf-club .bf-club__tabs {
    max-width: 560px;
    margin-top: 32px;
  }

  .bf-club .bf-club__tabs > * > a {
    padding: 16px 0;
    font-size: 19px;
    letter-spacing: .04em;
  }

  .bf-club .bf-club__contact {
    gap: 18px;
    max-width: 480px;
    padding-top: 26px;
  }

  .bf-club .bf-club__value {
    margin-top: 8px;
    font-size: 18px;
  }

  /* Horario — the whole left column. */
  .bf-club .bf-club__schedule {
    padding-top: 10px;
  }

  .bf-club .bf-club__day {
    flex-direction: row;
    gap: 24px;
    justify-content: space-between;
    align-items: baseline;
    padding: 16px 0;
  }

  .bf-club__day-name {
    font-size: 18px;
  }

  .bf-club .bf-club__schedule {
    max-width: 480px;
  }

  .bf-club__slots {
    font-size: 16px;
    line-height: 1.6;
    text-align: right;
  }

  .bf-club__empty {
    max-width: 480px;
    padding-top: 26px;
  }

  .bf-club .bf-club__empty p {
    font-size: 18px;
    line-height: 1.6;
  }

  .bf-club__others {
    max-width: 520px;
    padding-top: 26px;
  }

  .bf-club .bf-club__others-title {
    font-size: 34px;
  }

  .bf-club .bf-club__others-text {
    margin: 12px 0 22px;
    font-size: 18px;
    line-height: 1.6;
  }

  .bf-club__outline,
  .bf-club__outline:visited,
  .bf-club__outline:hover,
  .bf-club .bf-club__empty-btn {
    display: inline-flex;
    width: auto;
  }

  .bf-club__outline,
  .bf-club__outline:visited,
  .bf-club__outline:hover {
    padding: 18px 26px;
    font-size: 20px;
    letter-spacing: .04em;
  }

  .bf-club .bf-btn.bf-club__empty-btn {
    padding: 18px 26px;
    font-size: 20px;
  }

  /* Welcome + needs — one sand band, 2 columns */
  .bf-club-offer {
    background: var(--bf-c-sand);
    border-bottom: 1px solid var(--bf-c-line-light);
  }

  .bf-club-offer__grid {
    display: grid;
    box-sizing: border-box;
    max-width: var(--bf-container);
    margin: 0 auto;
    padding: 72px var(--bf-gutter-desktop);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 72px;
    align-items: start;
  }

  .bf-club-welcome,
  .bf-club-needs {
    padding: 0;
    border-top: 0;
    background: transparent;
  }

  .bf-club-offer .bf-club-offer__title {
    font-size: clamp(40px, 4.07vw, 52px);
    line-height: .95;
  }

  .bf-club-offer .bf-club-offer__lead,
  .bf-club-needs .bf-club-offer__lead {
    margin: 20px 0 28px;
    font-size: 19px;
    line-height: 1.6;
  }

  .bf-club-offer .bf-club-welcome__list {
    gap: 18px;
  }

  .bf-club-offer .bf-club-welcome__item {
    gap: 14px;
    font-size: 17px;
  }

  .bf-club-welcome__check {
    font-size: 20px;
  }

  .bf-club-offer .bf-club-welcome__note {
    margin-top: 16px;
    font-size: 13px;
  }

  .bf-club-offer .bf-club-needs__item {
    gap: 18px;
    padding: 20px 0;
    border-top-color: rgba(0, 0, 0, .24);
    font-size: 18px;
  }

  .bf-club-offer .bf-club-needs__item:last-child {
    border-bottom: 0;
  }

  .bf-club-needs__num {
    font-size: 26px;
  }

  .bf-club-offer .bf-club-offer__btn,
  .bf-club-offer .bf-club-needs__btn {
    display: inline-flex;
    width: auto;
    margin-top: 32px;
    padding: 22px 34px;
    font-size: 21px;
    white-space: nowrap;
  }

  /* Centred under both columns (WD l.590): 72 row gap − 16 = 56px under the lists. */
  .bf-club-offer .bf-club-offer__btn--wide {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: -16px;
  }

  /* ---- Así será tu primera clase (WD l.529-564) ---- */
  .bf-club-class {
    border-top: 0;
    border-bottom: 1px solid var(--bf-c-line-light);
  }

  .bf-club-class__grid {
    display: grid;
    box-sizing: border-box;
    max-width: var(--bf-container);
    margin: 0 auto;
    padding: 72px var(--bf-gutter-desktop);
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    column-gap: 88px;
    row-gap: 40px;
    align-items: center;
  }

  .bf-club-class .bf-club-class__title {
    grid-column: 1 / -1;
    margin: 0;
    font-size: clamp(37.5px, 3.75vw, 48px);
  }

  .bf-club-class .bf-club-class__steps {
    margin: 0;
  }

  .bf-club-class .bf-club-class__step {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 16px;
    padding: 26px 0;
  }

  .bf-club-class__num {
    font-size: 30px;
  }

  .bf-club-class .bf-club-class__step-title,
  .bf-club-class__badge {
    font-size: 26px;
  }

  .bf-club-class .bf-club-class__text {
    font-size: 17px;
  }
}
