/* Estilos específicos para la página Niveles */

.hero-niveles {
  background: url('../img/niveles-fondo.jpg') no-repeat center center;
  background-size: cover;
  height: 300px;
  position: relative;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.hero-niveles::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-niveles h2 {
  position: relative;
  z-index: 2;
  font-size: 3rem;
  font-weight: bold;
}

.nivel-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nivel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}



.niveles-portada {
  background: url('../img/fondo-svg.jpg') no-repeat center center/cover;
  height: 50vh;
  padding: 3rem;
  background-attachment: fixed;
}

.niveles-portada h2,
.niveles-portada p {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.card {
  transition: transform 0.3s ease;
  border-radius: 12px;
}

.card:hover {
  transform: translateY(-5px);
}

.carousel-item img {
  object-fit: cover;
  max-height: 150px;
}

.texto-justificado {
  text-align: justify;
  text-justify: inter-word;
}
