/*-------- seccion 1 --------*/
#servicio-educativo {
  padding: 3rem 1.5rem;
  background-color: #fff;
  font-family: Arial, sans-serif;
}

.educativo-contenido {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  max-width: 1100px;
  margin: auto;
  text-align: left;
}

.educativo-texto {
  flex: 1 1 500px;
}

.educativo-texto h3 {
  color: #1a73e8;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.educativo-texto p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.link-godcode {
  color: #1a73e8;
  text-decoration: underline;
}

.educativo-imagen {
  flex: 1 1 400px;
  text-align: center;
}

.educativo-imagen img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .educativo-contenido {
    flex-direction: column-reverse;
    text-align: center;
    padding: 0 1rem;
  }

  .educativo-texto {
    text-align: left;
    width: 100%;
  }

  .educativo-texto h3 {
    font-size: 1.3rem;
  }

  .educativo-texto p {
    font-size: 0.95rem;
  }

  .educativo-imagen {
    width: 100%;
  }
}

/*-------- seccion 3 --------*/
#educacion-digital {
  padding: 3rem 1.5rem;
  font-family: Arial, sans-serif;
  background-color: #fff;
}

.educacion-bloque {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto 3rem;
  text-align: left;
}

.educacion-bloque.reverse {
  flex-direction: row-reverse;
}

.educacion-texto {
  flex: 1 1 500px;
}

.educacion-texto h3 {
  font-size: 1.3rem;
  color: #1a73e8;
  margin-bottom: 1rem;
}

.educacion-texto p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 1rem;
}

.educacion-imagen {
  flex: 1 1 400px;
  text-align: center;
}

.educacion-imagen img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

@media (max-width: 768px) {

  .educacion-bloque,
  .educacion-bloque.reverse {
    flex-direction: column;
    text-align: center;
    padding: 0 1rem;
  }

  .educacion-texto {
    text-align: left;
    width: 100%;
  }

  .educacion-texto h3 {
    font-size: 1.2rem;
  }

  .educacion-texto p {
    font-size: 0.95rem;
  }

  .educacion-imagen {
    width: 100%;
  }
}

/*------------ css para el apartado de cursos --------------------*/

#cursos-servicio-educativo {
  padding: 5rem 1rem;
  background: #f9fbff;
  margin: 0 auto;
  text-align: left;
}

#cursos-servicio-educativo h3 {
  font-size: 1.5rem;
  color: #555;
  margin-bottom: 2rem;
  font-weight: 500;
  text-align: center;
}

.carousel-container-servicio {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.carousel-track-container-servicio {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
}

.carousel-track-container-servicio::-webkit-scrollbar {
  display: none;
}

.carousel-track-servicio {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 0;
  will-change: transform;
}

#cursos-servicio-container .card {
  flex: 0 0 calc((100% - 3 * 2rem) / 4);
  max-width: 280px;
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e1e9f0;
  display: flex;
  flex-direction: column;
  height: 420px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

#cursos-servicio-container .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

#cursos-servicio-container .card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
}

#cursos-servicio-container .card .contenido {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

#cursos-servicio-container .card .contenido h4 {
  color: #0562EF;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

#cursos-servicio-container .card .contenido p {
  font-size: 0.95rem;
  color: #222;
  line-height: 1.6;
  margin-top: 0.5rem;
}

.carousel-btn-servicio {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.carousel-btn-servicio svg {
  width: 24px;
  height: 24px;
  fill: #1a73e8;
  pointer-events: none;
}

.carousel-btn-servicio.prev {
  left: 10px;
}

.carousel-btn-servicio.next {
  right: 10px;
}

@media (max-width: 1024px) {
  #cursos-servicio-container .card {
    flex: 0 0 48%;
    max-width: 48%;
  }
}

@media (max-width: 768px) {
  #cursos-servicio-container .card {
    flex: 0 0 80%;
    max-width: 80%;
  }
}

@media (max-width: 480px) {
  #cursos-servicio-container .card {
    flex: 0 0 90%;
    max-width: 90%;
  }

  .carousel-btn-servicio.prev,
  .carousel-btn-servicio.next {
    display: none;
  }

  .carousel-container-servicio {
    padding: 1rem 0.5rem;
  }
}