/* Bloque principal */
.lp-rating-block {
  margin-top: 1.5rem;
  padding: 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: radial-gradient(circle at top,
              #253a72 0%,
              #0c1a3a 45%,
              #050817 100%);
  color: #f5f7ff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

/* Contenedor de preguntas */
.lp-rating-question-wrapper {
  display: grid;
  gap: 0.8rem;
}

/* Cada pregunta */
.lp-rating-question {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}

.lp-rating-label {
  margin: 0.15rem 0;
  font-size: 1rem;
  text-align: center;
  color: #e4e8ff;
}

/* En pantallas grandes: 3 columnas */
@media (min-width: 900px) {
  .lp-rating-question-wrapper {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    justify-items: center;
  }

  .lp-rating-label {
    font-size: 0.95rem;
  }
}

/* Contenedor de estrellas con halo (solo una definición) */
.lp-rating-stars {
  display: inline-block;
  position: relative;
  padding: 0.15rem 0.4rem;
}

.lp-rating-stars::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 180%;
  height: 220%;
  background: radial-gradient(circle,
              rgba(255, 255, 255, 0.7) 0%,
              rgba(255, 255, 255, 0.0) 60%);
  filter: blur(8px);
  opacity: 0.65;
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 600px) {
  .lp-rating-stars::before {
    width: 150%;
    height: 190%;
    background: radial-gradient(circle,
              rgba(255, 255, 255, 0.7) 0%,
              rgba(255, 255, 255, 0.0) 80%);
    filter: blur(8px);
    opacity: 0.6;
  }
}

/* Estrella base (vacía) */
.lp-star {
  position: relative;
  display: inline-block;
  font-size: 1.4rem;
  line-height: 1;
  color: #ddd;
  cursor: pointer;
  margin: 0 0.04em;
}

/* Estrella llena */
.lp-star-full {
  color: #FFD700;
}

/* Estrella media: gris con media capa dorada encima */
.lp-star-half {
  color: #ddd;
}

.lp-star-half::before {
  content: "★";
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  overflow: hidden;
  color: #FFD700;
}

/* Pequeño feedback al pasar el ratón */
.lp-star:hover {
  transform: scale(1.05);
}

.lp-rating-info {
  font-size: 0.85rem;
  color: #c3c8f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0.25rem;
}

.lp-rating-average,
.lp-rating-votes {
  display: block;
  line-height: 1.3;
  margin: 0.1rem 0;
}

/* Mensaje tras votar */
.lp-rating-message {
  font-size: 0.9rem;
  color: #ffffff; /* corregido */
  margin-top: 0.25rem;
}

/* Media en amarillo y más gruesa */
.lp-rating-info .lp-rating-average {
  color: #FFD700;     /* amarillo dorado */
  font-weight: 700;   /* más grueso */
  font-size: 1rem;
}
