/* === Tablet (768px – 1199px) === */
@media (max-width: 1199px) {
  .split {
    flex-direction: column;
    gap: var(--space-8);
  }

  .class-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .membresia-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .eventos-grid {
    grid-template-columns: repeat(2, 1fr);
  }


  .instructor-grid {
    gap: var(--space-8);
    max-width: 540px;
  }

  .instructor-row {
    gap: var(--space-8);
  }

  .event-cards {
    padding: 0 var(--space-4) var(--space-8);
  }

}


/* === Mobile (< 768px) === */
@media (max-width: 767px) {
  :root {
    --section-padding: var(--space-12) var(--space-6);
    --nav-height: 60px;
  }

  /* Nav */
  .nav__inner {
    padding: var(--space-3) var(--space-4);
    gap: var(--space-3);
  }

  .nav__cta {
    font-size: 0.7rem;
    padding: var(--space-2) var(--space-3);
    letter-spacing: 0.05em;
    border-radius: 4px;
    white-space: nowrap;
  }

  .nav__links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-blue);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    z-index: 99;
  }

  .nav__links--mobile-open {
    display: flex;
  }

  .nav__link {
    font-size: var(--text-base);
    color: rgba(240, 240, 240, 0.7);
  }

  .nav__hamburger {
    display: flex;
  }

  /* Hero */
  .hero__logo {
    height: 70px;
  }

  .hero__tagline {
    font-size: var(--text-xs);
    letter-spacing: 0.15em;
  }

  /* Class grid */
  .class-grid {
    grid-template-columns: 1fr;
  }

  /* Schedule */
  .schedule__tabs {
    flex-wrap: wrap;
  }

  .schedule__row {
    padding: var(--space-3) 0;
  }

  /* Events */
  .event-featured {
    min-height: 40vh;
  }

  .event-featured__content {
    padding: var(--space-6) var(--space-4);
  }

  .event-featured__meta {
    flex-direction: column;
    gap: var(--space-1);
  }

  .event-cards {
    flex-direction: column;
    padding: 0 var(--space-4) var(--space-8);
  }

  /* Instructors */
  .instructor-grid {
    gap: var(--space-6);
    max-width: 400px;
  }

  .instructor-row {
    gap: var(--space-6);
  }

  .instructor__photo {
    width: 100px;
    height: 100px;
  }

  /* Testimonials */
  .testimonial-carousel {
    padding: var(--space-4);
  }

  .testimonial-carousel__quote {
    font-size: 80px;
  }

  /* Contact */
  .contact-map {
    min-height: 250px;
  }

  /* Membresías page */
  .membresia-grid {
    grid-template-columns: 1fr;
  }

  /* Eventos page */
  .eventos-grid {
    grid-template-columns: 1fr;
  }

  /* Horarios page */
  .horarios__inner {
    padding: 0 var(--space-4);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .horarios__grid-wrap {
    display: none;
  }

  .horarios__tabs-wrap {
    display: block;
    width: 100%;
    overflow-x: hidden;
  }

  .horarios__tabs {
    width: 100%;
  }

  .horarios__tab {
    min-width: 0;
  }

  .horarios__panel {
    width: 100%;
  }

  .horarios__card {
    width: 100%;
    box-sizing: border-box;
  }

  /* Footer */
  .footer__inner {
    flex-direction: column;
    gap: var(--space-6);
    text-align: center;
  }

  .footer__left {
    flex-direction: column;
  }

  .footer__right {
    flex-direction: column;
    gap: var(--space-4);
  }
}
