/* ── Mobile layout (< 768px) ── */

@media (width < 768px) {
  :root {
    --page-x: 1.15rem;
  }

  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  main {
    overflow-x: clip;
    max-width: 100%;
  }

  /* Headings */
  .college-block-title {
    transform: none;
    max-width: 100%;
  }

  .reveal-left,
  .reveal-right {
    transform: translate3d(0, 36px, 0);
  }

  .reveal-left.is-visible,
  .reveal-right.is-visible {
    transform: none;
  }

  main > section.section,
  main > section.bg-ink-soft {
    padding-block: 3.5rem;
  }

  #stats.bg-blood {
    padding-block: 2.75rem;
  }

  .section-title {
    font-size: clamp(1.55rem, 7.5vw, 2.15rem);
  }

  .hero-banner__title {
    font-size: clamp(1.95rem, 10.5vw, 2.65rem);
  }

  .hero-banner {
    min-height: clamp(19rem, 72vh, 26rem);
  }

  .hero-banner__content {
    padding-top: 1rem;
    padding-bottom: 1.5rem;
  }

  .hero-banner__body {
    font-size: 0.9rem;
  }

  .hero-banner__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .hero-banner__actions .btn-blood,
  .hero-banner__actions .btn-line {
    justify-content: center;
    padding: 0.75rem 0.65rem;
    font-size: 0.72rem;
  }

  .hero-banner__quote {
    font-size: 0.68rem;
    line-height: 1.4;
  }

  /* Brand marquee bar */
  main > section:has(.marquee) {
    overflow-x: clip;
    padding-block: 0.6rem;
  }

  .marquee {
    gap: 1.25rem;
  }

  .marquee .display {
    font-size: 1.05rem;
    gap: 1.25rem;
  }

  .marquee .text-sm {
    font-size: 0.5rem;
  }

  /* Gym intro */
  #gym > .grid {
    gap: 1.25rem;
    margin-bottom: 2rem;
  }

  #gym > .grid .text-lg {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* Stats: center lone 5th tile */
  .stats-bar__grid > :nth-child(5) {
    grid-column: 1 / -1;
    max-width: 14rem;
    margin-inline: auto;
  }

  .stats-bar__grid .display.text-6xl {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  /* Instagram */
  #instagram.section {
    padding-block: 3.25rem;
  }

  #instagram .section-title {
    font-size: clamp(1.35rem, 6.5vw, 1.85rem);
    margin-bottom: 1.25rem;
  }

  .ig-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
  }

  .ig-profile {
    padding: 0.85rem;
  }

  /* Atmosphere */
  .atmosphere {
    gap: 1.75rem;
  }

  .atmosphere__body {
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
  }

  .atmosphere__gallery {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .atmosphere__photo--sign,
  .atmosphere__photo--lounge {
    grid-column: auto;
    grid-row: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .atmosphere__photo--bar {
    aspect-ratio: 16 / 10;
  }

  /* Gym gallery */
  .gym-showcase {
    margin-top: 1.5rem;
    margin-bottom: 2.25rem;
  }

  .gym-showcase__item--leg-press {
    display: none;
  }

  .gym-showcase__item--platforms {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
  }

  /* Athletes: 2×2 grid on mobile */
  .athletes-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1.75rem;
  }

  .athletes-showcase__item {
    min-height: 0;
  }

  /* Reviews */
  #opiniones .section-title {
    margin-bottom: 1.25rem;
  }

  [data-reviews-summary] {
    margin-bottom: 1.5rem;
  }

  .reviews-summary {
    flex-wrap: wrap;
    max-width: 100%;
    gap: 0.65rem;
  }

  .reviews-summary__text {
    font-size: 0.8125rem;
  }

  [data-reviews-grid] {
    gap: 0.75rem;
  }

  [data-reviews-grid] article {
    padding: 1.35rem;
  }

  [data-reviews-grid] article p {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  /* Contact */
  #contacto .section.grid {
    gap: 2rem;
  }

  #contacto .section-title {
    margin-bottom: 1.5rem;
  }

  #contacto .map-shell {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .map-shell,
  .map-frame,
  .map-canvas {
    min-height: 220px;
  }

  /* Pricing cards */
  #precios .section-title {
    margin-bottom: 0.75rem;
  }
}

@media (width < 640px) {
  .contact-actions {
    margin-top: 1.75rem;
  }
}

@media (width < 400px) {
  .hero-banner__actions {
    grid-template-columns: 1fr;
  }

  .stats-bar__grid {
    gap: 1.15rem 0.75rem;
  }
}
