body {
  font-family: 'Poppins', sans-serif;
  /* ================================================
     POPULAR DESTINATIONS — Tablet chica (768–900)
     • 2 cards por slide (1 fila × 2 columnas)
     • Flechas más discretas y más cerca del grid
     • Dots visibles y centrados
     ================================================ */

  /* Mostrar TODAS las tarjetas (no limitar a 2) */
  .destinations-carousel .sports-grid.two-rows > li{
    display: block !important;
  }

  /* Ajustar la altura visual de la media para que el slide no sea tan alto */
  .popular-destinations .card-horizontal .card-media,
  .popular-destinations .card-horizontal .card-media img{
    height: 220px; /* antes 240px */
  }

  /* Flechas: icono más chico y pegadas al carrusel */
  .destinations-carousel .carousel-nav{
    width: 44px;           /* mantener hit-area accesible */
    height: 44px;
    font-size: 18px;       /* icono más discreto */
    top: 50%;              /* centradas verticalmente */
    transform: translateY(-50%);
  }
  .destinations-carousel .carousel-nav.prev{ left: 1.25rem; }
  .destinations-carousel .carousel-nav.next{ right: 1.25rem; }

  /* Dots visibles también en tablet chica */
  .popular-destinations .carousel-dots{ display: flex; }

  /* Forzar altura mínima estable del viewport para que flechas/dots no "salten" */
  .destinations-carousel .carousel-viewport{ min-height: 360px; }
}

.hero {
  background-image: url('/static/img/hero.png.jpg');
  background-size: 100%;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  min-height: clamp(420px, 60vh, 560px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.35);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 940px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.hero-title {
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(16px, 2.2vw, 22px);
  opacity: 0.95;
  margin-bottom: 2rem;
}

.hero-search {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.hero-search input {
  box-sizing: border-box;
  height: 2.7rem;
  padding: 0 1rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  width: min(320px, 40vw);
  color: #818080;
}

.hero-search .btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  height: 2.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1aa6b7;
  color: #fff;
  border: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero-search .btn:hover {
  transform: scale(1.08);
}

/* Sports Section */
.sports-section {
  padding: 4rem 2rem;
  text-align: center;
  background-color: #fff;
}

.sports-section p {
  font-size: 1rem;
  color: #000000;
  margin-bottom: 2rem;
}

.sports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* === Sports carousel & grid (two rows) === */
.sports-carousel ul,
.sports-grid,
.sports-grid.two-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.explore-sports { 
  padding: 4rem 0 2rem; 
}

.explore-sports + .popular-destinations {
  padding-top: 1.5rem;
  margin-top: 0;
}

.explore-header { 
  text-align: center; 
  margin-bottom: 1rem; 
}

.explore-header h2 { 
  font-size: clamp(20px, 2.2vw, 28px); 
  font-weight: 800; 
  margin: 0 0 .35rem; 
}

.explore-header .explore-subtitle { 
  opacity: .75; 
  max-width: 760px; 
  margin: 0 auto; 
  font-size: 0.95rem; 
  line-height: 1.45; 
}

.sports-carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  width: 100%;
  margin: 0 auto;
}

.carousel-viewport {
  overflow-x: hidden;
  overflow-y: visible;
  border-radius: 0;
  background: transparent;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 400ms ease;
  will-change: transform;
  align-items: stretch;
  overflow: visible;
}

.carousel-slide {
  flex: 0 0 100%;
  box-sizing: border-box;
  padding: 0 8px 12px;
}

/* Grid de 2 filas máx - SOLO PARA SPORTS */
.sports-carousel .sports-grid.two-rows {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 1.5rem;
  width: 100%;
  margin: 0 auto;
  overflow: visible;
}

/* Mostrar solo 8 tarjetas por slide (4 columnas x 2 filas) - SOLO SPORTS */
.sports-carousel .sports-grid.two-rows > li:nth-child(n+9) {
  display: none !important;
}

.carousel-viewport .sports-grid.two-rows { 
  padding: 0 0.25rem; 
  box-sizing: border-box; 
}

/* Nav botones */
.carousel-nav {
  width: 44px; 
  height: 44px; 
  border-radius: 50%;
  border: none; 
  background: rgba(255,255,255,.9);
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
  cursor: pointer;
  display: grid; 
  place-items: center;
  font-size: 24px; 
  line-height: 1;
  transition: transform .2s ease;
}

.carousel-nav:disabled { 
  opacity: .45; 
  cursor: default; 
  transform: none; 
}

/* Grid spacing similar to Booking */
.sports-grid.two-rows {
  gap: 1.5rem;
}

/* Card container */
.card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease;
  will-change: box-shadow;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f3f5f7;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
  text-align: center;
}

.card-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
  color: #111;
  letter-spacing: -.2px;
}

.card-body .btn,
.card .btn {
  align-self: center;
  background: #132b5b;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
  cursor: pointer;
}

.card-body .btn:hover,
.card .btn:hover {
  background: #132b5b;
}

/* Popular Destinations Section */

.popular-destinations {
  padding: 2rem 0 4rem;
  background-color: #fff;
}

.popular-destinations .container {
  max-width: 1500px;
  margin: 0;
  padding: 0;
}

.popular-destinations .explore-header {
  text-align: center;
  margin-bottom: 2rem;
}

.popular-destinations .explore-subtitle {
  opacity: 0.75;
  max-width: 1000px;
  margin: 0 auto;
  color: #000000;
  font-size: 1rem;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Destinations Carousel - CORREGIDO */
.destinations-carousel {
  position: relative;
  width: 100%;
  display: block;
  margin: 0 auto;
}
.destinations-carousel--mobile {
  display: none;
}

.destinations-carousel--desktop {
  display: block;
}

.destinations-carousel .carousel-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.9);
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
  transition: transform .2s ease;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.destinations-carousel .carousel-nav.prev {
  left: 6rem;
}

.destinations-carousel .carousel-nav.next {
  right: 6rem;
}

.destinations-carousel .carousel-nav:disabled {
  opacity: .45;
  cursor: default;
  transform: translateY(-50%);
}

.destinations-carousel .carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.destinations-carousel .carousel-track {
  display: flex;
  transition: transform 400ms ease;
  will-change: transform;
}

/* Grid específico para DESTINATIONS - CORREGIDO */
.destinations-carousel .sports-grid.two-rows {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columnas para 2x2 */
  gap: 1.5rem;
  width: 100%;
  margin: 0 auto;
}

.destinations-carousel .carousel-slide {
  flex: 0 0 100%;
  box-sizing: border-box;
  padding: 0 4px;
}

/* IMPORTANTE: Permitir que se muestren todas las tarjetas del slide */
.destinations-carousel .sports-grid.two-rows > li {
  display: block !important; /* Override cualquier display: none */
}

.destinations-carousel .card-horizontal .card-media {
  position: relative;
  margin: 0 0 14px 0;
  border-radius: 14px;
  width: 100%;
  height: 240px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  margin-bottom: 0.5rem;
}

.destinations-carousel .card-horizontal .card-media img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.destinations-carousel .card-horizontal .card-body {
  padding: 0;
  color: #243446;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.destinations-carousel .card-horizontal .card-title {
  margin: 2px 0 4px 0;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  margin-bottom: 1px;
  color: #111;
}

.destinations-carousel .card-horizontal .card-blurb {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 12px 0;
  color: #555;
  max-width: 92%;
  margin-bottom: 1px;
}

.destinations-carousel .card-horizontal .btn {
  align-self: flex-start;
  padding: 8px 18px;
  background-color: #1aa6b7;
  color: #fff;
  border: none;
  border-radius: 9999px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .2s ease;
}

.destinations-carousel .card-horizontal .btn:hover {
  background-color: #1594a4;
}

.card-border {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.destinations-carousel .card-horizontal {
  box-shadow: none;
  border-radius: 18px;
  padding: 0.5rem;
  background: #fff;
}

.popular-destinations .card-horizontal .card-body { 
  gap: 6px; 
}

/* === ABOUT PLATFORM SECTION === */
.about-platform {
  padding: 3rem 0;
}

.about-platform .surface {
  background: #132b5b;
  border-radius: 120px;
  max-width: 95%;
  margin: 0 auto;
  padding: 2rem 2rem;
}

.about-platform .about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 2rem;
}

.about-platform .about-heading {
  margin: 0 0 1.5rem 0;
  color: #fcfcfc;
  font-weight: 800;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.2;
}

.about-platform .about-copy {
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 54ch;
  margin: 0;
  font-weight: 500;
}

.about-platform .about-media {
  position: relative;
  clip-path: polygon(75px 0, 100% 0, 100% 100%, 0 100%, 0 75px);
}

.about-platform .about-media figure {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.about-platform .about-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 18px;
}

/* === BECOME A MEMBER === */
.member {
  padding: 4.5rem 0 0;
  background: #fff;
}

.member__container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.member__header {
  text-align: center;
  margin-bottom: 2.25rem;
}

.member h2 {
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 700;
  margin: 0 0 .5rem 0;
}

.member__subtitle {
  margin: 0 auto;
  max-width: 860px;
  color: #000000;
  opacity: .85;
  font-size: clamp(15px, 2.1vw, 18px);
}

.member__grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 0.5rem;
  align-items: center;
}

.member__media { 
  grid-column: 1; 
}

.member__content { 
  grid-column: 2; 
}

.member__media {
  position: relative;
  width: 480px;
  height: 400px;
  clip-path: polygon(0 0, calc(100% - 70px) 0, 100% 70px, 100% 100%, 0 100%);
  border-radius: 18px;
  overflow: hidden;
  margin-left: 2rem;
}

.member__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member__content {
  display: grid;
  gap: 1.5rem;
}

.member__benefits-title {
  margin: 0 0 .25rem 0;
  color: #132b5b;
  font-weight: 800;
  font-size: clamp(18px, 2.4vw, 28px);
  line-height: 1.2;
}

.member__steps {
  --dot: 44px;
  position: relative;
  display: grid;
  row-gap: 1.35rem;
  margin: .5rem 0 0 0;
  padding-left: 3.75rem;
}

.member__steps::before {
  content: "";
  position: absolute;
  left: 1.75rem;
  top: calc(var(--dot) / 2);
  bottom: calc(var(--dot) / 2);
  width: 1px;
  background: #e4e9f1;
}

.member-step {
  position: relative;
}

.member-step__index {
  position: absolute;
  left: calc(-2rem - 22px);
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 6px 16px rgba(245,157,123,.35);
}

.member-step:nth-child(1) .member-step__index,
.member-step:nth-child(3) .member-step__index {
  background: #1aa6b7;
}

.member-step:nth-child(2) .member-step__index {
  background: #132b5b;
}

.member-step__title,
.member-step__desc {
  margin-left: .25rem;
}

.member-step__title {
  margin: 0 0 .25rem 0;
  color: #1C3042;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.25;
}

.member-step__desc {
  margin: 0;
  color: #000000;
  font-size: 15px;
  line-height: 1.5;
}

.member,
.member__container { 
  position: relative; 
  overflow: visible; 
}

.member .carousel-nav {
  position: absolute;
  top: 68%;
  transform: translateY(-50%);
  z-index: 30;
  pointer-events: auto;
}

.member .carousel-nav.prev { 
  left: 40rem; 
}

.member .carousel-nav.next { 
  right: 3rem; 
}

/* Prevent bottom element inside .member from adding extra space */
.member > *:last-child{ margin-bottom: 0; }

/* ======== STORIES / TESTIMONIALS ======== */
.stories {
  padding: 3.5rem 0;
  background: #fff;
}

.stories__container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.stories__title {
  text-align: center;
  font-weight: 800;
  color: #1C3042;
  font-size: clamp(24px, 2.6vw, 36px);
  margin: 0 0 1.5rem;
}

.stories-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  padding: 2rem 2.25rem;
  border: 1px solid #e6edf5;
  border-radius: 22px;
  background: #fff;
}

.stories-card__left {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.25rem;
  align-items: center;
}

.stories-card__logo {
  width: 140px; 
  height: 140px;
  margin: 0;
  border-radius: 50%;
  overflow: hidden;
  background: #f4f6fa;
  box-shadow: inset 0 0 0 2px #e6edf5;
  display: grid; 
  place-items: center;
}

.stories-card__logo img {
  width: 100%; 
  height: 100%; 
  object-fit: cover;
}

.stories-card__school-name {
  margin: 0 0 .35rem 0;
  font-weight: 800;
  color: #1C3042;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.25;
}

.stories-card__disciplines {
  margin: 0;
  color: #4b5563;
  font-size: 15px;
}

.stories-card__right { 
  position: relative; 
}

.stories-card__quote-mark {
  position: absolute;
  left: -6px; 
  top: -4px;
  font-size: 64px;
  line-height: 1;
  color: #78a9c7;
  opacity: .9;
}

.stories-card__quote {
  margin: 1.5rem 0 1rem 0;
  color: #1C3042;
  font-weight: 800;
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.35;
}

.stories-card__meta {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.stories-card__author {
  color: #334872;
  font-weight: 700;
}

.stories-card__stars {
  color: #f5c243;
  letter-spacing: 2px;
  font-size: 18px;
}

/* ===== CTA Newsletter ===== */
.newsletter-cta{
  background:#132b5b;
  color:#fff;
  text-align:center;
  padding: 28px 16px 70px;
  position: relative;
  z-index: 0;
}

.newsletter-cta__inner{
  max-width: 980px;
  margin: 0 auto;
}

.newsletter-cta__title {
  color: #fff;
  font-weight: 700;
  font-size: clamp(16px, 2vw, 24px);
  line-height: 1.4;
  margin-bottom: .5rem;
  text-align: center;
}

.newsletter-cta__sub{
  margin: 0 0 .8rem 0;
  font-weight: 800;
  font-size: clamp(18px, 2.2vw, 28px);
  opacity: .95;
}

.newsletter-cta__form{
  display:flex;
  gap: 8px;
  justify-content:center;
  flex-wrap: wrap;
}

.newsletter-cta__form input[type="email"]{
  width: min(440px, 70vw);
  height: 44px;
  border-radius: 999px;
  border: none;
  padding: 0 16px;
  background: rgba(255,255,255,.12);
  color: #fff;
  outline: none;
}

.newsletter-cta__form input::placeholder{ 
  color: rgba(197, 193, 193, 0.85); 
}

.newsletter-cta__form .btn{
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: none;
  background: #58b9c6;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

/* =====================================================
   MOBILE (≤480px)
   ===================================================== */
@media (max-width: 480px) {
  .hero {
    min-height: clamp(420px, 52vh, 520px);
    background-size: cover;
    background-position: center;
  }

  .hero-content {
    max-width: 460px;
    padding: 2rem 1rem;
  }

  .hero-title {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: .6rem;
  }

  .hero-subtitle {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 1rem;
  }

  .hero-search {
    flex-direction: column;
    align-items: stretch;
    gap: .6rem;
  }

  .hero-search input {
    width: 80%;
    height: 38px;
    font-size: 14px;
  }

  .hero-search .btn {
    width: 50%;
    align-self: center;
    height: 38px;
    font-size: 14px;
  }
}

@media (max-width: 376px) {
  .hero {
    min-height: 58vh;
  }
}

/* =========================================================
   SPORTS — RESPONSIVE
   ========================================================= */
.sports-carousel--mobile { 
  display: none; 
}

@media (max-width: 600px) {
  .sports-carousel--desktop { 
    display: none; 
  }
  
  .sports-carousel--mobile { 
    display: block; 
  }
}

.sports-carousel--mobile .mobile-two-rows {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* =====================================================
   CAROUSEL DOTS
   ===================================================== */
.carousel-dots{ 
  display: none;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
}

.carousel-dots .dot{
  width: 6px;
  height: 6px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: #d5dbe3;
  border: 0;
  padding: 0;
  display: inline-block;
  vertical-align: middle;
  line-height: 0;
  -webkit-appearance: none;
  appearance: none;
}

.carousel-dots .dot.is-active,
.carousel-dots .dot.active{
  background: #132b5b;
  transform: none;
}

/* SOLO MOBILE: ocultar flechas, mostrar dots */
@media (max-width: 767px){
  .sports-carousel--mobile .carousel-nav,
  .sports-carousel--desktop .carousel-nav,
  .destinations-carousel .carousel-nav,
  .member .carousel-nav { 
    display: none !important; 
  }
  
  .sports-carousel--mobile .carousel-dots,
  .sports-carousel--desktop .carousel-dots,
  .destinations-carousel .carousel-dots,
  .member .carousel-dots { 
    display: flex; 
    justify-content: center;
  }
  
  .sports-carousel--mobile .carousel-viewport,
  .sports-carousel--desktop .carousel-viewport,
  .destinations-carousel .carousel-viewport,
  .member .carousel-viewport { 
    margin-bottom: 10px; 
  }
}

/* ============================
   SPORTS — estilo específico
   ============================ */
.explore-sports { 
  --sport-radius: 24px; 
}

.explore-sports .card {
  position: relative;
  border-radius: var(--sport-radius);
  overflow: hidden;
  box-shadow: none;
  background: #000;
}

.explore-sports .card .card-media {
  aspect-ratio: 4 / 3;
  width: 100%;
  background: #e9edf2;
  overflow: hidden;
}

.explore-sports .card .card-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.explore-sports .card .card-body{
  position: absolute;
  left: 0; 
  right: 0; 
  bottom: 0;
  padding: 22px 24px;
  background: transparent;
  display: block;
  text-align: center;
}

.explore-sports .card .card-title{
  margin: 0;
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.05;
  font-size: clamp(16px, 3.2vw, 20px);
}

.explore-sports .card .btn{ 
  display:none !important; 
}

.explore-sports .card:hover img{ 
  transform: scale(1.025); 
  transition: transform .35s ease; 
}

/* Responsive Sports */
@media (max-width: 480px){
  .explore-sports .sports-grid{ 
    display:grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap:12px; 
  }
  
  .explore-sports .card .card-title{ 
    font-size: clamp(13px, 3.9vw, 18px); 
    transform: translateY(3px); 
  }
}

@media (min-width: 481px) and (max-width: 767px){
  .explore-sports .card .card-title{ 
    font-size: clamp(14px, 3.2vw, 18px); 
  }
}

/* =====================================================
   POPULAR DESTINATIONS — Mobile (≤767px) → 1 card/slide
   ===================================================== */
/* En tu archivo CSS principal */
@media (max-width: 767px) {
  .popular-destinations .mobile-one-per-slide {
    grid-template-columns: 1fr !important;
  }
  
  .popular-destinations .mobile-one-per-slide .sport-card {
    width: 100%;
  }
  .destinations-carousel--desktop {
    display: none;
  }
  
  .destinations-carousel--mobile {
    display: block;
  }

  /* Popular Destinations – shrink and center cards on mobile */
  .popular-destinations .sports-grid.two-rows{
    grid-template-columns: 1fr !important; /* one per slide */
    justify-items: center;                  /* center the cell */
  }
  .popular-destinations li.sport-card{
    width: 100%;
    display: flex;                          /* allow centering inner card */
    justify-content: center;
  }
  .popular-destinations .card-border{
    width: min(90vw, 340px);                /* smaller than container */
  }
  /* reduce media height a bit to match reduced width */
  .popular-destinations .card-horizontal .card-media,
  .popular-destinations .card-horizontal .card-media img{
    height: 200px;
  }
}

/* ==============================
   ABOUT — Mobile adjustments
   ============================== */
@media (max-width: 767px){
  .about-platform .surface{ 
    border-radius: 28px; 
    padding: 1.25rem 1rem 1.6rem; 
  }
  .about-platform .about-grid{ 
    grid-template-columns: 1fr; 
    gap: 1.25rem; 
    justify-items: center; 
  }
  /* Hide image on mobile to match centered text mock */
  .about-platform .about-media{ 
    display: none; 
  }
  .about-platform .about-heading{ 
    font-size: clamp(20px, 6vw, 28px); 
    margin-bottom: .9rem; 
  }
  .about-platform .about-copy{ 
    font-size: 0.92rem; 
    line-height: 1.6; 
    max-width: 60ch; 
  }
}


/* =====================================
   MEMBER — Mobile (≤767px) like the mock
   ===================================== */
@media (max-width: 767px){
  /* Section spacing */
  .member{ padding: 1.5rem 0 0.5rem !important;}

  /* Centered header, smaller type */
  .member__header{ text-align: center; margin-bottom: 1.5rem; }
  .member h2{ font-size: clamp(20px, 6vw, 28px); margin-bottom: .35rem; }
  .member__subtitle{ 
    max-width: min(86vw, 360px); 
    margin-left: auto; 
    margin-right: auto; 
    font-size: .85rem; 
    opacity: .9; 
  }

  /* Stack layout and center content */
  .member__grid{ grid-template-columns: 1fr; gap: 1.25rem; justify-items: center; }
  .member__media{ 
    width: min(86vw, 360px); 
    aspect-ratio: 4 / 3;     /* keep image proportion */
    height: auto;            /* let aspect-ratio drive height */
    margin: 0 auto 0 0; 
    clip-path: polygon(0 0, calc(100% - 48px) 0, 100% 48px, 100% 100%, 0 100%); /* diagonal cut like mock */
    border-radius: 18px; 
  }
  .member__content {
    width: min(86vw, 360px);     /* EXACT same width as .member__media */
    max-width: min(86vw, 360px); /* ensure no wider than the image */
    margin: 0 auto;              /* center the block */
    text-align: left;            /* keep bullets left-aligned like the mock */
  }

  /* Keep the steps (carousel) exactly the same width as the image */
  .member__carousel{
    width: min(86vw, 360px);
    max-width: min(86vw, 360px);
    margin-left: auto;
    margin-right: auto;
  }
  .member__carousel .carousel-viewport{ width: 100%; }
  .member__carousel .carousel-track{ width: 100%; }
  .member__carousel .carousel-slide{ width: 100%; }
  .member__carousel .member__copy{ width: 100%; }

  .member__benefits-title{ font-size: clamp(16px, 4.6vw, 20px); }

  /* Steps: tighter, slimmer line and smaller index circles */
  .member__steps{ padding-left: 2.75rem; row-gap: 1.1rem; }
  .member__steps::before{ left: 1.38rem; }
  .member-step__index{ 
    width: 36px; height: 36px; font-size: 13px; 
    left: calc(-1.75rem - 18px); 
  }
  .member-step__title{ font-size: 15px; }
  .member-step__desc{ font-size: 14px; }

  /* Carousel arrows: vertically centered over the image on mobile */
  .member__carousel{ position: relative; } /* anchor for absolute buttons */
  .member .carousel-nav{
    position: absolute;
    /* Pull the buttons upward so they sit over the center of the image.
       The image has aspect-ratio 4/3 => height = 0.75 * width.
       Half of that height = 0.375 * width. */
    top: calc(-0.375 * min(86vw, 360px));
    transform: translateY(-50%);
  }

  .member .carousel-nav.prev{ left: -8px; }
  .member .carousel-nav.next{ right: -8px; }
}

/* =====================================
   STORIES — Mobile (≤767px) improvements
   ===================================== */
@media (max-width: 767px){
  /* Pull the section tighter so the title sits higher */
  .stories{
    padding: 1.5rem 0 .5rem;
  }

  /* Smaller, closer title */
  .stories__title{
    font-size: clamp(17px, 5vw, 22px);
    margin: 0 0 .4rem;
    text-align: center;
  }

  /* Card: single column, softer padding */
  .stories-card{
    grid-template-columns: 1fr;
    gap: .5rem;
    padding: .65rem .7rem;
    border-radius: 14px;
  }

  /* Left side: smaller avatar/logo and tighter grid */
  .stories-card__left{
    grid-template-columns: 56px 1fr;
    gap: .5rem;
    align-items: center;
  }
  .stories-card__logo{
    width: 56px;
    height: 56px;
  }

  /* Typography tweaks for compact mobile look */
  .stories-card__school-name{ font-size: 14px; line-height: 1.2; }
  .stories-card__disciplines{ font-size: 12px; }

  /* Quote mark and text sizes */
  .stories-card__quote-mark{
    font-size: 32px;
    top: -4px;
    left: 0;
    opacity: .5;
  }
  .stories-card__quote{
    margin: 1rem 0 .35rem;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 600;
  }
  .stories-card__right p{
    font-size: 12px;
    line-height: 1.4;
  }
  .stories-card__meta{
    gap: .4rem;
    font-size: 12px;
  }
  .stories-card__stars{ font-size: 14px; }
}

/* Ensure a little breathing room before the newsletter on small screens */
@media (max-width: 767px){
  .newsletter-cta{ margin-top: .75rem; }
}

/* =====================================================
   TABLET — SMALL (768–900px)
   Ajustes solo del HERO para tablet chica/vertical
   ===================================================== */
@media (min-width: 768px) and (max-width: 900px){
  /* Make small tablet look like mobile */
  .hero{
    min-height: clamp(420px, 52vh, 520px);
    background-size: cover;
    background-position: center;
  }
  .hero-content{
    max-width: 460px;
    padding: 2rem 1.5rem;
  }
  .hero-content{ 
    transform: translateY(8vh);
  }
  .hero-search{
    gap: .75rem;
  }
  .hero-search input{
    height: 44px;
    width: min(500px, 60vw);
    font-size: 15.5px;
  }
  .hero-search .btn{
    width: 50%;
    height: 38px;
    font-size: 14px;
    align-self: center;
    margin: 0 auto;
  }
  .hero-title{
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: .6rem;
  }
  .hero-subtitle{
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 1rem;
  }

  /* ================================================
     SPORTS — Tablet chica (768–900)
     ================================================ */
  

  /* Hacer las tarjetas un poco más altas para dar protagonismo a la imagen */
  .explore-sports .card .card-media{
    aspect-ratio: 16 / 11; /* antes 4/3 (≈1.33) → ahora ≈1.45 */
  }

  /* Reducir un paso tipográfico los labels para equilibrar con la imagen */
  .explore-sports .card .card-title{
    font-size: 13px; /* antes clamp(16px, 3.2vw, 20px) */
    line-height: 1.1;
  }

  /* Ajuste fino del espaciado del grid en el carrusel de sports */
  .sports-carousel .sports-grid.two-rows{
    gap: 1.25rem; /* antes 1.5rem */
  }

  /* Ocultar flechas en Popular Destinations para tablet chica, dejar solo dots */
  .popular-destinations .carousel-nav {
    display: none !important;
  }
  
  /* SPORTS — tablet chica: ocultar flechas y mostrar dots */
  .sports-carousel .carousel-nav { 
    display: none !important; 
  }
  
  /* un pequeño margen bajo el viewport para separar de los dots */
  .sports-carousel .carousel-viewport { 
    margin-bottom: 10px; 
  }

  /* SPORTS — Colocar dots abajo y centrados en tablet chica */
  .sports-carousel{
    grid-template-columns: 1fr;   /* sin columnas laterales (no hay flechas) */
    grid-template-rows: auto auto; /* viewport arriba, dots abajo */
  }
  .sports-carousel .carousel-viewport{ 
    grid-row: 1; 
  }
  .sports-carousel .carousel-dots{ 
    display: flex;
    grid-row: 2; 
    justify-content: center; 
    margin: 10px 0 0; 
    place-self: center; 
  }

    /* ABOUT (Wild trips) — Tablet chica: ocultar imagen, dejar solo texto */
  .about-platform .about-media{ 
    display: none; 
  }
  .about-platform .about-grid{ 
    grid-template-columns: 1fr; 
    justify-items: center; 
  }

  /* Cambiar orden: imagen arriba, texto/carrusel abajo */
  .member__grid {
    grid-template-columns: 1fr;   /* solo 1 columna */
    grid-template-rows: auto auto;/* primero imagen, después contenido */
    justify-items: center;
    gap: 1.5rem;
  }
  .member__media {
    grid-row: 1; /* Imagen arriba */
    width: min(86vw, 420px);
    margin: 0 auto;
  }
  .member__content,
  .member__carousel {
    grid-row: 2; /* Texto/carrusel abajo */
    width: min(86vw, 420px);
    margin: 0 auto;
  }

  /* Ocultar flechas */
  .member .carousel-nav {
    display: none !important;
  }

  /* Mostrar dots centrados */
  .member .carousel-dots {
    display: flex !important;
    justify-content: center;
    margin-top: 12px;
  }

    /* STORIES — Tablet chica: school name as title, details below (like mobile) */
  .stories-card{ 
    grid-template-columns: 1fr;            /* una columna */
    gap: 1rem; 
    padding: 1rem 1.25rem; 
  }
  .stories-card__left{ 
    grid-template-columns: 64px 1fr;       /* logo + texto */
    gap: .75rem; 
    align-items: center; 
  }
  .stories-card__logo{ 
    width: 64px; 
    height: 64px; 
  }
  .stories-card__school{ 
    display: flex; 
    flex-direction: column;                /* nombre arriba, disciplinas debajo */
  }
  .stories-card__school-name{ 
    font-size: clamp(15px, 2.2vw, 18px); 
    line-height: 1.25; 
    margin: 0 0 .25rem 0;                  /* como título */
  }
  .stories-card__disciplines{ 
    font-size: 13.5px; 
  }
  .stories-card__right{ 
    margin-top: .5rem;                      /* separarlo del bloque de la izquierda */
  }
}

/* =====================================================
   TABLET — LARGE (901–1024px)
   Ajustes solo del HERO para tablet grande/horizontal
   ===================================================== */
@media (min-width: 901px) and (max-width: 1025px){
  .hero{
    background-size: cover;
    background-position: center top;
    min-height: clamp(460px, 60vh, 560px);
  }
  .hero-content{
    max-width: 880px;
    padding: 3.25rem 1.5rem;
  }
  /* Place hero content around the middle of the image and center the button */
  .hero-content{ 
    transform: translateY(5vh);
  }
  .hero-search{ 
    align-items: center; 
  }
  .hero-search .btn{ 
    width: 42%; 
    margin: 0 auto;
    align-self: center;
  }
  .hero-title{
    font-size: clamp(32px, 3.6vw, 52px);
    line-height: 1.12;
    margin-bottom: .85rem;
  }
  .hero-subtitle{
    font-size: clamp(15px, 1.8vw, 20px);
    line-height: 1.45;
    margin-bottom: 1.5rem;
  }
  .hero-search{
    gap: .75rem;
  }
  .hero-search input{
    height: 44px;
    width: min(520px, 62vw);
    font-size: 15.5px;
  }

  .popular-destinations .carousel-nav {
    display: none !important;
  }

  .member__grid {
    grid-template-columns: 1fr;   /* solo 1 columna */
    grid-template-rows: auto auto;/* primero imagen, después contenido */
    justify-items: center;
    gap: 1.5rem;
  }
  .member__media {
    grid-row: 1; /* Imagen arriba */
    width: min(86vw, 420px);
    margin: 0 auto;
  }
  .member__content,
  .member__carousel {
    grid-row: 2; /* Texto/carrusel abajo */
    width: min(86vw, 420px);
    margin: 0 auto;
  }

  /* Ocultar flechas */
  .member .carousel-nav {
    display: none !important;
  }

  /* Mostrar dots centrados */
  .member .carousel-dots {
    display: flex !important;
    justify-content: center;
    margin-top: 12px;
  }
  
}
