/*formacion-modern.css */
.formacion-modern {
  position: relative;
  padding: 4rem 0;
  background: url("../../img/image-professional-smart.jpg") no-repeat center center;
  background-size: cover;
  text-align: center;
  color: #fff;
  z-index: 1;
}

.formacion-modern::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* Oscurece la imagen para mejorar contraste */
  z-index: -1;
}

.formacion-modern h2 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 1rem;
}

.formacion-modern .subtitle {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: #eee;
}

.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.7rem 1.5rem;
  border: none;
  background-color: var(--secondary);
  color: white;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.tab-btn:hover,
.tab-btn.active {
  background-color: var(--primary);
}

.tabs-content {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  color: var(--dark);
}

.tab-content {
  display: none;
  text-align: left;
}

.tab-content.active {
  display: block;
}

.tab-content h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.tab-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.tab-content ul li {
  margin-bottom: 0.5rem;
  padding-left: 1.2rem;
  position: relative;
}

.tab-content ul li::before {
  content: "✔️";
  position: absolute;
  left: 0;
}

.tab-content .btn-primary {
  display: inline-block;
  padding: 0.6rem 1.2rem;
}

/* Layout flexible para info + precio/pago */
.curso-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.curso-info {
  flex: 1 1 60%;
}

.curso-precio {
  flex: 1 1 35%;
  background: #f7f9fb;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.curso-precio .precio {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary);
}

.curso-precio .pago {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #555;
}

.metodos-pago {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap; /* permite que pasen a la siguiente línea */
}

.metodos-pago img {
  max-width: 100%;
  width: 50px; /* ancho base */
  height: auto;
  filter: grayscale(40%);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.metodos-pago img:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}

@media (max-width: 480px) {
  .metodos-pago img {
    width: 40px; /* más pequeños en pantallas reducidas */
  }
}
