.banner-capacitaciones {
  width: 100%;
  height: 320px;
  background: url("/banner/capacitaciones\ personalizadas.jpeg") no-repeat center center/cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-capacitaciones::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* oscurecer para legibilidad */
  z-index: 1;
}

.contenido-banner {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.contenido-banner h1 {
  font-size: 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  color: white;
  border-left: 5px solid #e17000;
  padding-left: 15px;
  animation: fadeInDown 1s ease;
}

/* Animación opcional */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .banner-capacitaciones {
    height: 240px;
  }

  .contenido-banner h1 {
    font-size: 1.8rem;
  }
}

/* benefic */
.beneficios-rapidos-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 60px 20px 40px;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

.beneficio-rapido {
  background-color: #120202;
  color: #ff8000;
  border-radius: 12px;
  padding: 30px 20px;
  width: 100%;
  max-width: 300px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  margin: 10px auto; /* centrado con espacio */
}

.beneficio-rapido i {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
}

.beneficio-rapido span {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.beneficio-rapido:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 24px rgba(255, 128, 0, 0.25);
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .beneficios-rapidos-wrapper {
    flex-direction: column;
    padding: 40px 15px 20px;
    gap: 25px;
  }

  .beneficio-rapido {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 25px 15px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  }

  .beneficio-rapido i {
    font-size: 1.8rem;
  }

  .beneficio-rapido span {
    font-size: 0.95rem;
  }
}

/* cursos */
.cursos-wrapper {
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.cursos-wrapper h2 {
  font-size: 2rem;
  color: #e17000;
  margin-bottom: 40px;
}

.grid-cursos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 0 20px;
}

.card-curso {
  flex: 1 1 300px;
  max-width: 340px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card-curso:hover {
  transform: translateY(-10px);
}

.card-curso img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.card-curso .contenido {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-curso h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1c1c1c;
  margin-bottom: 10px;
  text-align: left;
}

.card-curso a {
  align-self: flex-start;
  background-color: #e17000;
  color: white;
  padding: 10px 18px;
  font-size: 0.9rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.card-curso a:hover {
  background-color: #b25400;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .card-curso {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .card-curso h3 {
    font-size: 1rem;
    text-align: center;
  }

  .card-curso a {
    align-self: center;
  }
}

/* porque elegirnos */
.elige-wrapper {
  padding: 60px 20px;
  max-width: 1000px;
  margin: auto;
  text-align: center;
  animation: fadeInUp 0.8s ease;
}

.elige-wrapper h2 {
  font-size: 2rem;
  color: #e17000;
  margin-bottom: 20px;
  font-weight: 700;
}

.elige-wrapper p {
  font-size: 1.05rem;
  color: #333;
  max-width: 850px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Animación de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .elige-wrapper h2 {
    font-size: 1.6rem;
  }

  .elige-wrapper p {
    font-size: 1rem;
  }
}

/* carrusel clientes */
.slider-wrapper {
  padding: 60px 0;
  background-color: #f4f4f4;
  text-align: center;
  overflow: hidden;
}

.slider-categoria {
  font-size: 1.6rem;
  color: #e17000;
  font-weight: 700;
  margin: 40px 0 20px;
  animation: escribir 3s steps(40, end) forwards;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid #e17000;
  width: 0;
}

@keyframes escribir {
  to {
    width: 100%;
  }
}

.slider-container {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.slider-item {
  width: 200px;
  height: 140px;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.slider-item img {
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
  display: block;
  filter: contrast(1.1);
  transition: transform 0.3s;
}


.slider-controls {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  gap: 30px;
}

.slider-controls button {
  background-color: #e17000;
  border: none;
  font-size: 2rem;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}

.slider-controls button:hover {
  background-color: #b35400;
}

@media screen and (max-width: 768px) {
  .slider-container {
    justify-content: flex-start;
    padding-left: 0.5rem;
  }

  .slider-item {
    min-width: 140px;
    height: 100px;
  }
  
  .slider-controls {
    display: none !important; /* Oculta flechas en móviles */
  }

  .slider-categoria {
    font-size: 1.2rem;
  }
}



/* agradecimiento  */

