/* Estilos para los cards de Ritmos */
/* Cards de ritmos ocupando todo el ancho y distribuidos */
/* Cards de ritmos con diseño horizontal y scroll elegante */
/* Cards de ritmos en fila horizontal, siempre visibles los 8 */
.card-ritmo {
  flex: 0 0 180px;
  width: 180px;
  height: 270px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 16px 0 0;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(75,43,191,0.10);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card-ritmo:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 16px 48px rgba(75,43,191,0.18);
}
.card-ritmo img {
  width: 160px;
  height: 110px;
  object-fit: cover;
  border-radius: 16px;
  border: none;
  margin-top: 16px;
  background: #f7f7fa;
  box-shadow: 0 2px 12px rgba(75,43,191,0.08);
}
.card-ritmo .nombre-ritmo {
  font-family: 'Poppins', 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #222;
  margin-top: 8px;
  margin-bottom: 14px;
  text-align: center;
  letter-spacing: 1px;
  text-shadow: 0 1px 0 #fff, 0 2px 8px rgba(75,43,191,0.08);
}
.card-ritmo img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  aspect-ratio: 1/1;
}
.card-ritmo .nombre-ritmo {
  font-family: 'Poppins', 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #222;
  margin-top: 10px;
  margin-bottom: 12px;
  text-align: center;
  letter-spacing: 1px;
}
@media (max-width: 1200px) {
  .service_container.layout_padding2 {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px;
  }
  .card-ritmo {
    width: 120px;
    height: 140px;
    margin: 10px 6px 0 0;
  }
  .card-ritmo img {
    width: 80px;
    height: 80px;
    margin-top: 8px;
  }
  .card-ritmo .nombre-ritmo {
    font-size: 0.8rem;
    margin-bottom: 8px;
  }
}

/* Legibilidad del texto en la sección "Nuestros Ritmos" sobre fondo degradado */
.service_section .custom_heading-container + p,
.service_section p {
  color: #f5f8ff !important; /* alto contraste sobre morados */
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

/* Opcional: centrar y limitar ancho para mejor lectura en desktop */
@media (min-width: 992px){
  .service_section .custom_heading-container + p{
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    max-width: 60ch;
  }
}

/* Mostrar la raya del título también en escritorio (solo en esta sección) */
@media (min-width: 1200px){
  .service_section .custom_heading-container hr{
    display: block !important; /* anula el hide global */
    text-align: center;
    width: 320px;
    height: 2px;
    background-color: #ffffff; /* contraste sobre el degradado */
    border: none;
    margin: 0 5px 0.5rem 5px;
  }
}
