@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600&display=swap');

/* Página Ritmos */
.ritmos-sections {
    background-color: #0f0f0f;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ritmoDis{
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 60px;
    padding-bottom: 60px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
}

.bloque {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 10%;
  gap: 40px;
  border-bottom: 1px solid #1f1f1f;
}

.bloque:hover h2{
color: #d5d5d5;
}

.bloque img {
  width: 45%;
  border-radius: 10px;
}

.ritmo-texto {
  width: 50%;
}

.ritmo-texto h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #ff6600;
}

.ritmo-texto p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #eaeaea;
}

.ritmo-texto button {
  background-color: #d5d5d5;
  color: #3a3a3a;
  border: none;
  padding: 10px 25px;
  border-radius: 5px;
  cursor: pointer;
}

.ritmo-texto button:hover {
  background-color: #e65c00;
}

/* Alterna la disposición */
.invertido {
  flex-direction: row-reverse;
}

.ritmo img{
    width: 450px;
    height: 300px;
    border-radius: 10px;
}

/* =========================================================
   🌐 MEDIA QUERIES — RESPONSIVE RITMOS 808 URBAN SCHOOL
   ========================================================= */

/* === TABLETS (≤ 992px) === */
@media (max-width: 992px) {

  .bloque {
    flex-direction: column;
    padding: 50px 5%;
    text-align: center;
  }

  .bloque.invertido {
    flex-direction: column;
  }

  .ritmo-texto {
    width: 100%;
  }

  .ritmo-texto h2 {
    font-size: 1.8rem;
  }

  .ritmo-texto p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .bloque img {
    width: 80%;
    height: auto;
    margin-top: 20px;
  }

  .ritmo-texto button {
    font-size: 1rem;
    padding: 10px 20px;
  }

  .ritmoDis {
    font-size: 1.8rem;
    padding: 40px 0;
  }
}

/* === MÓVILES (≤ 768px) === */
@media (max-width: 768px) {

  .bloque {
    flex-direction: column;
    gap: 25px;
    padding: 40px 20px;
  }

  .ritmo-texto h2 {
    font-size: 1.5rem;
  }

  .ritmo-texto p {
    font-size: 0.95rem;
  }

  .ritmo-texto button {
    width: 100%;
    padding: 12px;
  }

  .bloque img {
    width: 100%;
    height: auto;
  }

  .ritmoDis {
    font-size: 1.6rem;
    text-align: center;
  }
}

/* === MÓVILES PEQUEÑOS (≤ 480px) === */
@media (max-width: 480px) {

  .bloque {
    padding: 30px 15px;
  }

  .ritmo-texto h2 {
    font-size: 1.3rem;
  }

  .ritmo-texto p {
    font-size: 0.9rem;
  }

  .ritmo-texto button {
    font-size: 0.9rem;
  }

  .ritmoDis {
    font-size: 1.4rem;
  }
}
