@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&display=swap');


body {
  font-family: 'Poppins', sans-serif;
}
/* ========== BASE / UTIL ========== */
:root{
  --bg: #0f2a4a;
  --bg-soft:#17375c;
  --ink:#0e1b2b;
  --ink-soft:#000000;
  --white:#fff;
  --brand:#3aa0ff;
  --brand-ink:#0c6cc6;
  --radius-xl:28px;
  --radius-lg:20px;
  --radius-md:14px;
  --hero-side: clamp(16px, 4vw, 48px);
  --brand-ttw: #1aa6b7;
}

.container{
  width:min(1120px, 92%);
  margin-inline:auto;
}

/* ========== HERO CITY ========== */
.hero--city.city-hero{
  position:relative;
  min-height: 60vh;
  display:flex;
  align-items:center;
  padding: 50px 0 50px;
  background-size:cover;
}

.hero--city .hero-content{
  z-index:2;
  width:min(780px, 96%);
  margin-left: var(--hero-side, 0);
}
.hero--city .hero-title{
  margin: 0 0 10px;
  font-size: clamp(2rem, 2.6vw + 1rem, 3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}
.hero--city .hero-subtitle{
  font-size: 20px;
  line-height:1;
  padding: 14px 18px;
  border-radius: 12px;
  color: #fff;
  max-width: 720px;
  margin: 0;
}

.hero-subtitle--desktop {
  display: block;
}

.hero-subtitle--mobile {
  display: none;
}

@media (max-width: 991px) {
  .hero-subtitle--desktop {
    display: none;
  }
  .hero-subtitle--mobile {
    display: block;
  }
}

/* ========== DISCIPLINES (heading + tabs) ========== */
.disciplines {
  padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 4vw, 40px);
  text-align: center;
}


.disciplines__tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 auto;
}

/* Botón de tab (estilo píldora) */
.disciplines__tabs .tab {
  appearance: none;
  border: 2px; /* borde suave como el header */
  background: #fff;
  font: 600 14px/1 'Poppins', sans-serif;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  
}

/* Hover: azul (como header hover) */
.disciplines__tabs .tab:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* Focus visible: aro de accesibilidad */
.disciplines__tabs .tab:focus-visible {
  box-shadow: 0 0 0 4px rgba(58, 160, 255, 0.22);
}

/* Activo: relleno azul */
.disciplines__tabs .tab.is-active,
.disciplines__tabs .tab[aria-selected="true"] {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* Estado presionado (micro animación) */

.disciplines__tabs .tab:active {
  transform: translateY(1px);
}

/* Title style for <h2 id="disciplines-title"> */
.disciplines > .container > #disciplines-title,
.disciplines h2#disciplines-title {
  margin: 0 0 clamp(8px, 2vw, 16px);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: clamp(1.6rem, 2vw + 0.8rem, 2.4rem);
  color: var(--ink);
}

/* Tabs wrapper */
.disciplines-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 auto;
  margin-bottom: 16px;
  padding: 0;
  list-style: none;
}

/* Pill buttons (<a> elements) - NUEVO estilo igual a sports */
.disciplines-tabs .discipline-tab,
.level-buttons button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 1px 16px;
  border-radius: 999px;
  border: 2px solid var(--brand-ttw);
  background: #fff;
  color: var(--brand-ttw);
  font: 600 14px/1 'Poppins', sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.disciplines-tabs .discipline-tab:hover,
.disciplines-tabs .discipline-tab.is-active,
.disciplines-tabs .discipline-tab[aria-selected="true"],
.level-buttons button:hover,
.level-buttons button.active {
  background: var(--brand-ttw);
  color: #fff;
  border-color: var(--brand-ttw);
  transform: translateY(-1px);
}

.disciplines-tabs .discipline-tab:active,
.level-buttons button:active {
  transform: translateY(1px);
}

/* ========== DISCIPLINES GALLERY ========== */
.disciplines-gallery {
  display: grid;
  grid-template-columns: repeat(3, auto);
  grid-auto-rows: auto;
  justify-content: center;
  align-items: center;
  gap: 4px; /* reduce distance between images */
  margin: 0 auto;
  padding: 0;
}

.discipline-image {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #f2f4f6;
  margin: 0; /* remove extra spacing */
}

.discipline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  display: block;
}

/* Control manual de tamaño por imagen */
.discipline-image:nth-child(1) { width: 380px; height: 320px; }
.discipline-image:nth-child(2) { width: 260px; height: 320px; }
.discipline-image:nth-child(3) { width: 518px; height: 320px; }
.discipline-image:nth-child(4) { width: 380px; height: 300px; }
.discipline-image:nth-child(5) { width: 785px; height: 300px; grid-column: span 2; }


/* Dots/pagination placeholder (optional)
   Add <div class="disciplines-dots">• • • •</div> below gallery if needed */
.disciplines-dots{
  display: none;
  justify-content: center; 
  gap: 10px;
  margin-top: 12px; 
  color: #c9d3df; 
  font-size: 18px;
}
.disciplines-dots button{
  width: 10px; 
  height: 10px; 
  border-radius: 50%; 
  border: 0; 
  cursor: pointer;
  background: #c9d3df; 
  padding: 0; 
  transition: transform .12s ease, background .2s ease;
}
.disciplines-dots button[aria-current="true"],
.disciplines-dots button:hover{ 
  background: var(--brand-ttw); 
  transform: scale(1.3); 
}



/* ===== School cards — match actual HTML structure (.card.card--school > .card-link ...) ===== */
.card.card--school .card-link{
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card.card--school .card-link:hover{
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.10);
}

/* Left column: logo */
.card.card--school .card-media.logo{
  flex: 0 0 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.card.card--school .card-media.logo img{
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
}

/* Right column: text */
.card.card--school .card-body{
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 6px;
}
.card.card--school .card-title{
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}
.card.card--school .card-activities{
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-ttw);
  margin: 2px 0;
}
.card.card--school .card-blurb{
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-top: 6px;
  max-width: 640px;
}

/* Remove list-style markers from schools-grid and its items */
.schools-grid {
  list-style: none;
  padding: 0;
  margin: 0;
}
.schools-grid li {
  list-style: none;
}

/* ========== Top Schools Section Title ========== */
.city-premium-schools h3 {
  font-size: clamp(1.6rem, 2vw + 0.8rem, 2.4rem);          /* larger text */
  font-weight: 600;         /* bold for emphasis */
  text-align: center;       /* centered like the mockup */
  color: var(--ink);        /* consistent dark color */
  margin: 48px 0 24px;      /* spacing above and below */
}

/* ========== Become a Member Section ========== */
.city-member {
  background-color: #ffffff;
  text-align: center;
  padding: 80px 0;
}

.member__header {
  max-width: 720px;
  margin: 0 auto 40px;
}

.member__headline {
  font-size: clamp(1.6rem, 2vw + 0.8rem, 2.4rem);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.member__lead {
  font-size: 1rem;
  color: var(--ink-soft);
  margin: 0 auto;
  line-height: 1.5;
}

.member__audience-title {
  font-size: clamp(1.6rem, 2vw + 0.8rem, 2.4rem);
  font-weight: 600;
  color: var(--ink);
  margin-top: 40px;
  margin-bottom: 24px;
}

.member-benefits {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1100px;
}

.benefit {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
}

.benefit__card {
  background-color: #f9fbff;
  border: 2px solid var(--brand-ttw);
  border-radius: 50%;
  width: 280px;
  height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
}

.benefit__icon {
  width: 40px;
  height: 40px;
  background-color: var(--brand-ttw);
  border-radius: 50%;
  margin-bottom: 16px;
}

.benefit__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.benefit__desc {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.4;
  max-width: 220px;
  margin: 0 auto;
}

/* ========== LIMITED TIME OFFERS SECTION ========== */
.limited-offers {
  background-color: #f2f7ff;
  padding: 20px 0;
  margin-bottom: 60px;
}

.limited-offers__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.limited-offers__copy {
  flex: 1 1 480px;
  text-align: left;
}

.limited-offers__heading {
  font-size: clamp(1.6rem, 2vw + 0.8rem, 2.4rem);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.limited-offers__sub {
  font-size: 1rem;
  color: var(--ink-soft);
  margin-bottom: 24px;
  line-height: 1.4;
}

.limited-offers__media {
  flex: 1 1 400px;
  display: flex;
  justify-content: center;
}

.limited-offers__media img {
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  object-fit: cover;
}

.limited-offers .btn-primary {
  background-color: var(--brand-ttw);
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  padding: 12px 26px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.limited-offers .btn-primary:hover {
  background-color: #0c8ea1;
  transform: translateY(-2px);
}

/* ===== 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;
}

.desktop-gallery { display: grid; }
.carousel-mobile { display: none; }

/* ===== Mobile Carousel for Disciplines Gallery ===== */
@media (max-width: 767px) {
  .desktop-gallery { display: none !important; }

  .disciplines-gallery {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding: 0 0 20px 0; /* 👈 quitamos padding lateral */
    scroll-padding: 0 16px; /* 👈 asegura que la primera imagen empiece visible */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }

  .discipline-image:nth-child(1),
  .discipline-image:nth-child(2),
  .discipline-image:nth-child(3),
  .discipline-image:nth-child(4),
  .discipline-image:nth-child(5) {
    width: auto !important;
    height: auto !important;
    flex: 0 0 100%;
    scroll-snap-align: center; /* 👈 centramos la imagen visible */
  }

  .discipline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
  }

  /* Dots */
  .disciplines-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
  }

  .disciplines-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #c9d3df;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
  }

  .disciplines-dots button.active,
  .disciplines-dots button[aria-current="true"] {
    background: var(--brand-ttw);
    transform: scale(1.2);
  }
}

/* ========== RESPONSIVE SCHOOL CARD (MOBILE OPTIMIZED) ========== */
@media (max-width: 767px) {
  .card.card--school .card-link {
    flex-direction: column; /* Imagen arriba, texto debajo */
    align-items: flex-start;
    text-align: left;
    gap: 12px;
    padding: 18px;
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }

  .card.card--school .card-media.logo {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .card.card--school .card-media.logo img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 14px;
  }

  .card.card--school .card-body {
    width: 100%;
    align-items: flex-start;
    gap: 6px;
  }

  .card.card--school .card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
  }

  .card.card--school .card-activities {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-ttw);
  }

  .card.card--school .card-blurb {
    font-size: 0.8rem;
    color: var(--ink-soft);
    line-height: 1.5;
    margin-top: 4px;
  }


  /* Responsive Become a Member adjustments */
  .city-member {
    text-align: center;
  }

  .member__header {
    margin-left: auto;
    margin-right: auto;
  }

  .member-benefits {
    gap: 24px;
    justify-content: center;
  }

  .benefit {
    justify-content: center;
  }

  .benefit__card {
    width: 230px;
    height: 230px;
    padding: 14px;
  }

  .benefit__title {
    font-size: 0.8rem;
  }

  .benefit__desc {
    font-size: 0.7rem;
  }
}

@media (max-width: 767px) {
  .limited-offers__media {
    display: none;
  }

  .limited-offers__copy {
    text-align: center;
    margin: 0 auto;
  }

  .limited-offers .btn-primary {
    display: inline-block;
    margin: 0 auto;
  }
}
/* ===== Tablet Small: 768–991px: Carousel for disciplines ===== */
@media (min-width: 768px) and (max-width: 991px) {
  .desktop-gallery {
    display: none !important;
  }
  .disciplines-gallery {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0;
    padding: 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }

  .discipline-image {
    flex: 0 0 100%; /* 👈 muestra una imagen por vez */
    scroll-snap-align: center;
    border-radius: 16px;
    width: 100% !important;
    height: auto !important;
  }

  .discipline-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 16px;
  }

  .disciplines-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 1px;
  }

  .disciplines-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #c9d3df;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    padding: 0;
  }

  .disciplines-dots button.active,
  .disciplines-dots button[aria-current="true"] {
    background: var(--brand-ttw);
    transform: scale(1.2);
  }

  .limited-offers__media {
    display: none !important;
  }

  .limited-offers__copy {
    text-align: center;
    margin: 0 auto;
  }

  .limited-offers .btn-primary {
    display: inline-block;
    margin: 0 auto;
  }
}

/* ===== Tablet Large: 992–1199px: Grid, smaller images ===== */
@media (min-width: 992px) and (max-width: 1199px) {
  .desktop-gallery {
    display: grid;
  }
  .disciplines-gallery {
    gap: 6px;
    margin: 0 auto;
    padding: 0;
    grid-template-columns: repeat(3, auto);
    grid-auto-rows: auto;
    justify-content: center;
    align-items: center;
  }
  /* Reduce image sizes to ~85% of original */
  .discipline-image:nth-child(1) { width: 323px !important; height: 272px !important; }
  .discipline-image:nth-child(2) { width: 221px !important; height: 272px !important; }
  .discipline-image:nth-child(3) { width: 440px !important; height: 272px !important; }
  .discipline-image:nth-child(4) { width: 323px !important; height: 255px !important; }
  .discipline-image:nth-child(5) { width: 667px !important; height: 255px !important; grid-column: span 2; }
  .discipline-image {
    border-radius: 20px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    background: #f2f4f6;
  }
  .discipline-image img {
    border-radius: 20px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: filter 0.2s;
  }
  .discipline-image:hover img,
  .discipline-image:focus-within img {
    filter: brightness(0.93) saturate(1.08);
  }

  .limited-offers__media {
    display: none !important;
  }

  .limited-offers__copy {
    text-align: center;
    margin: 0 auto;
  }

  .limited-offers .btn-primary {
    display: inline-block;
    margin: 0 auto;
  }
}