.container-clases,
.container-programas {
  width: 90%;
  max-width: 1040px;
  margin: 0 auto;
  margin-top: 80px;
  padding: 25px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  border-radius: 30px;
  background-color: var(--overlay-background);
}

.container-programas {
  margin-top: 50px;
}

.clases-box {
  display: flex;
  border-radius: 12px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border: 1.5px solid var(--accent-color);
}

.clases-box img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Mantiene la proporción */
}

.clases-box,
.clases-texts,
.programas-box,
.programas-texts {
  flex: 1 0 330px;
  /* min-width: 335px; */
  max-width: 465px;
}

.clases-texts h5,
.programas-texts h5 {
  margin-bottom: 8px;
}

.programas-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1rem;
}

.box {
  display: flex;
  border-radius: 20px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border: 1.5px solid var(--accent-color);
}

.box-03 {
  grid-column: span 2;
}

.box img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Mantiene la proporción */
}

@media (max-width: 710px) {
  .container-programas {
    margin-top: 24px;
  }
}
