/* ── Tablet ──────────────────────────────────────────────────── */
@media (max-width: 991px) {
  :root {
    --section-gap: 80px;
  }

  .content {
    gap: 20px;
  }

  .content h1 {
    font-size: 56px;
    line-height: 64px;
  }

  .content h2 {
    font-size: 40px;
    line-height: 48px;
  }

  /* Reset the desktop-only 80px gutter once the text/image row stacks —
     otherwise the row's negative margin exceeds the container padding
     and causes horizontal page overflow */
  .flex-ti-inner {
    --bs-gutter-x: 24px;
  }

  /* Same fix for the g-5 (48px) rows once they stack — the negative
     margin otherwise exceeds the container padding and causes X-axis overflow */
  .reg-page .row.g-5,
  .contact-page .row.g-5,
  .faq .row.g-5 {
    --bs-gutter-x: 24px;
  }

  /* Header — swap nav/CTA for burger */
  .header-nav,
  .header-cta {
    display: none;
  }

  .header-burger {
    display: flex;
  }

  /* Hero */
  .hero-container {
    min-height: 700px;
    gap: 40px;
    padding-top: 140px;
    padding-bottom: 56px;
  }

  .hero-body {
    padding-top: 0;
    gap: 20px;
    max-width: 100%;
  }

  .hero-stats {
    flex-wrap: wrap;
    row-gap: 24px;
  }

  .hero-stat {
    width: calc(50% - 16px);
  }

  .hero-badge {
    width: 104px;
    height: 104px;
    bottom: 32px;
    right: 32px;
  }

  .hero-badge-time {
    font-size: 28px;
  }

  /* Zones */
  .zones-left-col {
    padding-right: 0;
    padding-bottom: 40px;
    min-height: 0;
  }

  /* Gallery */
  .gallery-header {
    flex-wrap: wrap;
    gap: 24px;
  }

  .gallery-filters {
    flex-wrap: wrap;
  }

  .gallery-item {
    flex: 0 0 calc((100% - 21px) / 2);
  }

  .zone-other-card {
    flex: 1 1 calc((100% - 21px) / 2);
  }

  .zone-grid-card {
    flex: 1 1 calc((100% - 21px) / 2);
    height: 320px;
  }

  .gallery-cta-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Equipment */
  .equipment-inner {
    gap: 32px;
  }

  .equipment-brands {
    flex-wrap: wrap;
    gap: 32px;
  }

  /* Pricing */
  .pricing-cards {
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
  }

  .pricing-card,
  .pricing-card--featured {
    width: 100%;
    max-width: 442px;
    height: auto;
    gap: 32px;
  }

  .pricing-card {
    padding: 32px 24px;
  }

  .pricing-card--featured {
    padding: 40px 24px 32px;
  }

  /* About */
  .about-inner {
    flex-direction: column;
    gap: 40px;
  }

  .about-left {
    width: 100%;
  }

  .about-photo {
    flex: none;
    width: 100%;
    height: 400px;
  }

  /* Partners */
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Comfort */
  .comfort-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .comfort-item {
    padding: 28px 0;
  }

  /* Footer */
  .footer-main {
    flex-direction: column;
    gap: 48px;
  }

  .footer-brand {
    width: 100%;
  }

  .footer-cols {
    width: 100%;
    flex-wrap: wrap;
    gap: 40px 24px;
  }

  .footer-col {
    flex: 1 1 calc(50% - 12px);
  }

  .cta-banner-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
    padding: 40px;
  }

  .cta-banner-title {
    font-size: 32px;
    line-height: 40px;
  }

  .cta-banner-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(1, 1, 0, 0.55);
  }

  .cta-banner-img {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-position: center;
  }

  .contact-hero-container {
    padding-top: 160px;
    gap: 40px;
  }

  .contact-hero-body h1 {
    font-size: 56px;
    line-height: 64px;
  }

  .contact-info-card {
    flex: 1 1 calc(50% - 10.5px);
  }

  .zone-hero-container {
    padding-top: 160px;
    gap: 40px;
  }

  .zone-hero--compact .zone-hero-container {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .zone-hero-body h1 {
    font-size: 56px;
    line-height: 64px;
  }

  .zone-hero--compact .zone-hero-body h1 {
    font-size: 32px;
    line-height: 40px;
  }

  .zone-hero-stats {
    justify-content: flex-start;
  }

  /* Columns stack below lg — the wide desktop bg image no longer fits the composition */
  .faq-bg {
    display: none;
  }

  .reg-page,
  .login-page {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .map-frame {
    aspect-ratio: auto;
    min-height: 480px;
  }

  .map-card {
    max-width: calc(100% - 48px);
  }

  /* Account dashboard */
  .member-card {
    padding: 48px 32px 32px;
  }

  .member-card-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .member-card-qr {
    align-self: center;
  }
}

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 767px) {
  :root {
    --section-gap: 64px;
  }

  .content {
    gap: 12px;
  }

  .content .kicker {
    font-size: 0.875rem;
  }

  .content h1 {
    font-size: 2rem;
    line-height: 2.5rem;
  }

  .content h2 {
    font-size: 1.625rem;
    line-height: 2.125rem;
  }

  .content h3 {
    font-size: 1.125rem;
  }

  .ty-heading {
    font-size: 2rem;
  }

  /* Error / Thank you pages */
  .error-page {
    min-height: auto;
    padding: 140px 24px 64px;
  }

  .error-page-inner {
    gap: 20px;
  }

  /* Policy pages */
  .policy-page {
    padding-top: 140px;
  }

  .policy-header {
    margin-bottom: 32px;
  }

  /* Hero */
  .hero-container {
    min-height: 640px;
    gap: 32px;
    padding-top: 140px;
    padding-bottom: 48px;
  }

  .hero-body {
    gap: 16px;
  }

  .hero-btns {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-btns .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    gap: 20px;
  }

  .hero-stat {
    width: 100%;
  }

  .hero-stat-sep {
    display: none;
  }

  .hero-badge {
    width: 84px;
    height: 84px;
    top: 110px;
    bottom: auto;
    right: 20px;
  }

  .hero-badge-label {
    font-size: 10px;
  }

  .hero-badge-time {
    font-size: 22px;
  }

  /* Zones */
  .zones-next-btn {
    right: 8px;
  }

  /* Gallery */
  .gallery-item {
    flex: 0 0 100%;
    height: 240px;
  }

  .zone-other-card {
    flex: 1 1 100%;
    height: 180px;
  }

  .zone-grid-card {
    flex: 1 1 100%;
    height: 260px;
  }

  .gallery-filters {
    gap: 10px;
  }

  .gallery-filter {
    padding: 8px 20px;
    height: 40px;
    font-size: 12px;
  }

  .gallery-cta-bar {
    padding: 24px;
  }

  .gallery-cta-bar .btn {
    width: 100%;
    justify-content: center;
  }

  .gallery-cta-text p {
    font-size: 18px;
    line-height: 26px;
  }

  /* Equipment */
  .equipment-brands {
    gap: 24px;
  }

  .equipment-brand {
    max-width: 96px;
  }

  /* About */
  .about-photo {
    height: 320px;
  }

  .about-play-badge {
    bottom: 40px;
    left: 20px;
    gap: 10px;
  }

  .about-play-icon {
    width: 48px;
    height: 48px;
  }

  .about-play-text {
    font-size: 13px;
  }

  .about-since-badge {
    padding: 10px;
    right: 12px;
    top: -12px;
  }

  .about-since-logo {
    width: 28px;
    height: 40px;
  }

  .about-since-text {
    width: 72px;
    height: 40px;
  }

  /* Partners */
  .partners-grid {
    grid-template-columns: 1fr;
  }

  .partner-card {
    height: 340px;
  }

  /* Trainers */
  .trainer-card {
    width: 100%;
    max-width: 340px;
  }

  .trainer-card-photo {
    height: 280px;
  }

  /* Comfort */
  .comfort-inner {
    gap: 24px;
  }

  .comfort-item {
    padding: 24px 0;
  }

  /* Partners / Pricing — headings can wrap on narrow screens, keep them centered */
  .partners-header h2,
  .pricing-header h2 {
    text-align: center;
  }

  /* Footer */
  .site-footer {
    padding-top: 64px;
  }

  .footer-contact {
    align-items: center;
  }

  .footer-contact-item {
    justify-content: center;
  }

  .footer-watermark {
    overflow: hidden;
    top: -2rem;
    height: 100px;
  }

  .footer-brand {
    align-items: center;
    text-align: center;
  }

  .footer-col {
    flex: 1 1 100%;
    align-items: center;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .cta-banner-inner {
    padding: 32px 24px;
  }

  .cta-banner-title {
    font-size: 28px;
    line-height: 36px;
  }

  .faq-q {
    font-size: 16px;
  }

  .contact-hero-container {
    padding-top: 140px;
    padding-bottom: 40px;
    min-height: 0;
  }

  .contact-hero-body h1 {
    font-size: 40px;
    line-height: 48px;
  }

  .contact-info-cards {
    flex-direction: column;
  }

  .zone-hero-container {
    padding-top: 96px;
    padding-bottom: 24px;
    min-height: 0;
  }

  .zone-hero--compact .zone-hero-container {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .zone-hero-body h1 {
    font-size: 40px;
    line-height: 48px;
  }

  .zone-hero--compact .zone-hero-body h1 {
    font-size: 28px;
    line-height: 34px;
  }

  .zone-hero-stats {
    flex-direction: column;
    gap: 8px;
  }

  .zone-hero-stat {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 16px 20px;
    gap: 16px;
  }

  .zone-hero-stat-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
  }

  .zone-hero-stat-text {
    align-items: flex-start;
    text-align: left;
    gap: 2px;
  }

  .zone-hero-stat-value {
    font-size: 20px;
    letter-spacing: 1px;
  }

  .zone-hero-stat-label {
    font-size: 11px;
    letter-spacing: 0.5px;
  }

  .contact-info-card {
    flex: 1 1 auto;
  }

  .reg-page,
  .login-page {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  /* Stack half-width fields (email/telefón) into a single column */
  .cf-field-wrap--half {
    width: 100%;
  }

  .map-frame {
    min-height: 420px;
  }

  .map-card {
    left: 0;
    right: 0;
    max-width: calc(100% - 32px);
    padding: 24px;
  }

  .map-card-name {
    font-size: 24px;
  }

  .map-pin {
    left: 50%;
  }

  /* Account dashboard */
  .account-nav.nav-tabs .nav-link {
    margin-right: 16px;
    padding: 10px 2px;
    font-size: 14px;
  }

  .member-card {
    padding: 40px 20px 28px;
  }

  .member-card-name {
    font-size: 24px;
  }

  .member-card-qr-frame {
    width: 140px;
    height: 140px;
  }

  .member-plan {
    padding: 16px 20px;
  }
}

/* ── Small mobile ────────────────────────────────────────────── */
@media (max-width: 575px) {
  .zone-hero--compact .zone-hero-container {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .zone-hero--compact .zone-hero-body h1 {
    font-size: 24px;
    line-height: 30px;
  }

  .reg-page,
  .login-page {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .zone-hero-container {
    padding-top: 80px;
    padding-bottom: 20px;
  }

  .content .kicker {
    font-size: 0.8125rem;
  }

  .content h1 {
    font-size: 1.75rem;
    line-height: 2.25rem;
  }

  .content h2 {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .hero-badge {
    width: 72px;
    height: 72px;
    top: 96px;
    bottom: auto;
    right: 16px;
  }

  .hero-badge-label {
    font-size: 9px;
  }

  .hero-badge-time {
    font-size: 18px;
  }

  .about-since-badge {
    top: -10px;
    right: 8px;
  }
}
