/* ============================================================
   DarkRoom brand layer — overrides sobre el tema XNRGY (app.css)
   Fase 2: paleta monocromática DarkRoom (negro/blanco), sin azul.
   Carga DESPUÉS de app.css para ganar por orden de cascada.
   Los tokens son tripletas RGB porque el tema usa rgba(var(--token)).
   ============================================================ */
:root {
  /* Acento/botones: el azul #192B88 -> negro DarkRoom */
  --color-primary: 0, 0, 0;          /* #000000 */
  /* Oscuros con tinte navy -> negro neutro */
  --color-secondary: 0, 0, 0;        /* #000000 */
  --color-black: 0, 0, 0;            /* #000000 */
  --color-text-dark: 26, 26, 26;     /* #1A1A1A (DarkRoom black-soft) */
  --color-text: 26, 26, 26;          /* body usa var(--color-text); en app.css no estaba definido */
  /* Claros: crema XNRGY -> blancos exactos de DarkRoom */
  --color-white: 255, 255, 255;      /* #FFFFFF */
  --color-background: 250, 250, 250;  /* #FAFAFA (white-soft) */
  --color-background-blue: 245, 245, 245; /* #F5F5F5 (gris neutro, antes azulado) */
}

/* Badges de tiendas (reemplazan "Book a court") — header y offcanvas */
.app-badges {
  display: flex; /* base: el offcanvas no trae d-lg-flex; en el header gana d-none/d-lg-flex (!important) */
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
}
/* En el menú móvil: separar del botón de arriba */
.offcanvas .app-badges {
  margin-top: 1.75rem;
}
.app-badge-link {
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.app-badge-link:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}
.app-badge-img {
  height: 2.5rem;
  width: auto;
  display: block;
}

/* Botón flotante de WhatsApp — verde clásico (#25D366), reemplaza el chat trigger */
.whatsapp-float {
  position: fixed;
  right: 1.875rem;
  bottom: 1.875rem;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.whatsapp-float:hover {
  background: #1ebe5d;
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.45);
}
.whatsapp-float svg {
  width: 1.75rem;
  height: 1.75rem;
}
@media (max-width: 600px) {
  .whatsapp-float {
    right: 1.125rem;
    bottom: 1.125rem;
    width: 3.25rem;
    height: 3.25rem;
  }
}

/* Hero: bajar el tamaño del título — "Cycling / Training" son más largos
   que el "ON&OFF / COURT" original (que iba hasta 15.625rem) */
/* Selector con `main` para igualar la especificidad de app.css (0,3,1) y ganar por orden */
main .c-hero-home__wrapper .container-grid .title {
  /* desktop: ~191px @1440, tope 14rem en ultra-wide */
  font-size: clamp(2.25rem, -1.1rem + 14.5vw, 14rem);
  letter-spacing: -0.02em;
}
/* mobile: un poco más chico (~33–42px), controlado aparte para no tocar desktop */
@media (max-width: 600px) {
  main .c-hero-home__wrapper .container-grid .title {
    font-size: clamp(2.2rem, 1.2rem + 4.5vw, 2.8rem);
  }
}

/* ===== Sección Paquetes (banda negra, header centrado, iframe full-width) ===== */
.c-packages {
  position: relative;
  background: rgba(var(--color-secondary)); /* negro */
  color: rgba(var(--color-white));
  padding-block: clamp(3.5rem, 2rem + 6vw, 7rem);
  overflow: hidden;
}
.c-packages .container {
  position: relative;
  z-index: 3;
}
.c-packages__header {
  text-align: center;
  max-width: 46rem;
  margin: 0 auto clamp(2rem, 1rem + 3vw, 3.5rem);
}
.c-packages .subtitle {
  color: rgba(var(--color-white));
  opacity: 0.55;
}
.c-packages .title {
  color: rgba(var(--color-white));
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4.25rem);
  margin-top: 0.5rem;
}
.c-packages__lead {
  margin-top: 1rem;
  opacity: 0.6;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
}
.c-packages__embed {
  /* full-bleed: rompe el container y ocupa todo el ancho de la pantalla (sin márgenes ni padding) */
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.c-packages__embed iframe {
  width: 100%;
  border: 0;
  display: block;
  background: transparent;
  /* sin min-height: el auto-resize controla la altura (crece y encoge);
     el alto inicial viene del style inline del iframe */
}

/* ===== Sección App: screenshot de teléfono contenido + lista de features ===== */
.c-title-content-image--app .c-title-content-image__image {
  aspect-ratio: auto;
  display: flex;
  flex-direction: column; /* mobile: una captura por columna (apiladas) */
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 4vw, 2rem);
}
.c-title-content-image--app .c-title-content-image__image img {
  height: auto;
  width: auto;
  max-height: 34rem;
  max-width: 72%; /* mobile apiladas: tamaño cómodo */
  object-fit: contain;
}
@media (min-width: 992px) {
  /* desktop: las 2 capturas lado a lado, un poco más grandes */
  .c-title-content-image--app .c-title-content-image__image {
    flex-direction: row;
    gap: clamp(0.35rem, 0.9vw, 0.85rem);
  }
  .c-title-content-image--app .c-title-content-image__image img {
    max-width: 49.5%;
    max-height: 46rem;
  }
}
.app-features {
  list-style: none;
  margin: 1.25rem 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.app-features li {
  position: relative;
  padding-left: 1.5rem;
  opacity: 0.85;
}
.app-features li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.15em;
  width: 0.4rem;
  height: 0.75rem;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Badges de la sección App: centrados en mobile, más grandes en desktop */
.c-title-content-image--app .app-badges {
  justify-content: center;
}
.c-title-content-image--app .app-badge-img {
  height: 2.75rem;
}
@media (min-width: 992px) {
  .c-title-content-image--app .app-badges {
    justify-content: flex-start;
  }
  .c-title-content-image--app .app-badge-img {
    height: 3.5rem;
  }
}

/* FAQ y carrusel: fondo blanco como las secciones white-component (no gris) */
.light-blue-component {
  background: transparent;
}
/* Carrusel de marcas: altura uniforme, espaciado parejo, gris sutil que se aclara en hover */
.c-partners__wrapper .slider .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 1.75rem;
}
.c-partners__wrapper .slider .swiper-slide .partner .thumb img {
  height: 2.6rem;
  max-height: 2.6rem;
  width: auto;
  max-width: 9rem;
  object-fit: contain;
}
/* El logo de Fitma es un SVG con su tipografía real embebida (viewBox ajustado al glifo,
   así llena la caja y queda alineado igual que los demás logos). */

/* Sección "Nuestra promesa" (#promesa): banda negra + texto blanco, foto cycling3 */
.c-content-image--tinted {
  background: rgba(var(--color-secondary)); /* negro */
}
.c-content-image--tinted .title,
.c-content-image--tinted .content,
.c-content-image--tinted .article-content,
.c-content-image--tinted .subtitle {
  color: rgba(var(--color-white));
}
.c-content-image--tinted .btn--primary::before {
  border-color: rgba(255, 255, 255, 0.3);
}

/* Offset de anclas: que la sección no quede bajo el header fijo al navegar por el menú */
section[id] {
  scroll-margin-top: 5.5rem;
}


/* Iframe de horarios en la columna derecha (widget oscuro como tarjeta sobre fondo claro) */



/* ===== Sección Programa: split de dos videos (Cycling / Training) ===== */
.c-program {
  background: rgba(var(--color-secondary)); /* negro */
  color: rgba(var(--color-white));
  position: relative;
  overflow: hidden;
}
.c-program__header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
  padding: clamp(3rem, 2rem + 5vw, 6rem) 1.5rem clamp(2rem, 1rem + 3vw, 3.5rem);
}
.c-program__header .subtitle { color: rgba(var(--color-white)); opacity: 0.55; }
.c-program__header .title {
  color: rgba(var(--color-white));
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  margin-top: 0.5rem;
}
.c-program__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.c-program__half {
  position: relative;
  height: clamp(24rem, 56vh, 40rem);
  overflow: hidden;
}
.c-program__half + .c-program__half {
  box-shadow: -1px 0 0 rgba(255, 255, 255, 0.12);
}
.c-program__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: transform 0.7s ease, filter 0.7s ease;
}
.c-program__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.12) 55%, rgba(0, 0, 0, 0.3) 100%);
  transition: background 0.4s ease;
}
.c-program__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 1.25rem;
  padding: clamp(1.5rem, 1rem + 2vw, 3rem);
}
.c-program__title {
  margin: 0;
  font-family: var(--font-family-headings);
  font-weight: var(--font-weight-light);
  font-size: clamp(2.5rem, 1.6rem + 4vw, 5rem);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.c-program__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50rem;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.c-program__btn svg { width: 1.05rem; height: 1.05rem; }
.c-program__btn:hover { background: #fff; color: #000; border-color: #fff; }
.c-program__half:hover .c-program__video { transform: scale(1.05); filter: grayscale(0.55) contrast(1.05); }
.c-program__half:hover .c-program__overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.08) 60%, rgba(0, 0, 0, 0.2) 100%);
}
@media (max-width: 768px) {
  .c-program__split { grid-template-columns: 1fr; }
  .c-program__half { height: clamp(20rem, 52vh, 28rem); }
  .c-program__half + .c-program__half { box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.12); }
}

/* #horarios full-width: alto FIJO del iframe de clases (480 desktop, 600 mobile) + scroll interno */
#horarios .c-packages__embed iframe { height: 640px; }
@media (max-width: 768px) { #horarios .c-packages__embed iframe { height: 780px; } }

/* #horarios en banda BLANCA (el header en oscuro; el iframe de Fitma es oscuro y queda
   como tira full-bleed sobre el blanco) */
#horarios.c-packages {
  background: rgba(var(--color-background));
}
#horarios .subtitle,
#horarios .title,
#horarios .c-packages__lead {
  color: rgba(var(--color-text-dark));
}
#horarios .subtitle { opacity: 0.6; }

/* Header de Horarios compacto: una sola tira a todo el ancho (título a la izq,
   lead a la der en la misma línea), sin subtítulo, menos alto. Ahorra espacio
   vertical frente al bloque centrado angosto. */
#horarios .c-packages__header {
  max-width: none;
  text-align: left;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  column-gap: 2.5rem;
  row-gap: 0.5rem;
  margin-bottom: clamp(1.25rem, 0.8rem + 1.5vw, 2rem);
}
#horarios .c-packages__header .subtitle { display: none; }
#horarios .c-packages__header .title {
  margin: 0;
  font-size: clamp(1.875rem, 1.2rem + 2.4vw, 3.25rem);
  line-height: 1.05;
}
#horarios .c-packages__header .c-packages__lead {
  margin: 0;
  flex: 1 1 18rem;
  max-width: 32rem;
  text-align: right;
}
@media (max-width: 700px) {
  #horarios .c-packages__header .c-packages__lead { text-align: left; }
}
/* Tira más pegada arriba: recortar el padding superior de la sección */
#horarios.c-packages { padding-top: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }


/* Perf: aislar los iframes en su propia capa GPU para que el smooth-scroll no los re-componga
   cada frame (causa de scroll trabado al pasar por horarios/paquetes) */
.c-packages__embed iframe {
  transform: translateZ(0);
  backface-visibility: hidden;
}
