#mieres-quiz-root { margin: 0; }

/* Quita huecos típicos del theme dentro del contenido */
#mieres-quiz-root,
#mieres-quiz-root * {
  box-sizing: border-box;
}

/* GENERATEPRESS / WP: elimina padding/margenes del contenedor */
.entry-content,
.entry-content > *:first-child,
.inside-article,
.grid-container,
.separate-containers .inside-article,
.page-header,
.inside-page-header{
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* HUD */
#mieres-quiz-root .mieres-quiz__hud{
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 4px 10px;
  margin: 0 !important;

  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  color: #043faf;
}

#mieres-quiz-root .mieres-quiz__timer{
  background: rgba(255,255,255,.85);
  padding: 2px 8px;
  border-radius: 10px;
  line-height: 1;
  font-size: 14px;
}

#mieres-quiz-root .mieres-quiz__error{
  max-width: 782px;
  margin: 12px auto;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e1e4f0;
  color: #b00020;
  font-weight: 700;
}

/* HERO */
#mieres-quiz-root .quiz-hero{
  min-height: 50dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 5vw, 64px);
  background-image: url("https://yesdemieres.es/wp-content/uploads/2025/12/arriba.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#mieres-quiz-root .bubble-pregunta{
  width: 100%;
  max-width: 782px;
  margin-left: auto;
  margin-right: auto;
  padding: clamp(28px, 5vw, 56px);
  background: #ffffff;
  border-radius: clamp(18px, 4vw, 36px);
}

#mieres-quiz-root .bubble-pregunta h2{
  margin: 0;
  font-size: clamp(22px, 4.5vw, 42px);
  line-height: 1.25;
  font-weight: 700;
  color: #043faf;
  text-align: left;
}

/* RESPUESTAS */
#mieres-quiz-root .quiz-respuestas{
  min-height: 50dvh;
  padding: clamp(32px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: url("https://yesdemieres.es/wp-content/uploads/2025/12/abajo.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#mieres-quiz-root #mq-answers{
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 3vw, 28px);
  align-items: center;
  justify-content: center;
}

#mieres-quiz-root .respuesta{
  width: min(92vw, 640px);
  padding: clamp(18px, 3vw, 26px);
  background: #ffffff;
  border-radius: 14px;
  font-size: clamp(18px, 4vw, 28px);
  font-weight: 600;
  color: #043faf;
  text-align: left;
  padding-left: 32px;
  cursor: pointer;
  border: 0;
  transition: transform .15s ease, box-shadow .15s ease;
}

#mieres-quiz-root .respuesta:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
}

@media (max-width: 555px){
  #mieres-quiz-root .quiz-respuestas{
    transform: translateY(-10px);
  }
}

/* Reduce 10% alturas en móviles pequeños */
@media (max-width: 580px){
  #mieres-quiz-root .quiz-hero{
    min-height: 45dvh;
    padding: 18px;
  }
  #mieres-quiz-root .quiz-respuestas{
    min-height: 45dvh;
    padding: 22px;
  }
}

/* OVERLAY FINAL */
#mieres-quiz-root .mq-overlay[hidden]{
  display: none !important;
}

#mieres-quiz-root .mq-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92); /* más oscuro */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
}

#mieres-quiz-root .mq-overlay__panel{
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  /* el blur cubre TODO el overlay (tu “halo” pero bien hecho) */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

#mieres-quiz-root .mq-overlay__btn{
  padding: 28px 40px;
  border-radius: 18px;
  border: 0;
  background: #0640B0;
  color: #fff;
  font-weight: 900;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0,0,0,.45);
  appearance: none;
  -webkit-appearance: none;
  line-height: 1;
}

#mieres-quiz-root .mq-overlay__btn:hover{
  filter: brightness(1.05);
  transform: translateY(-1px);
}

#mieres-quiz-root.mq-is-navigating::after{
  content:"";
  position:fixed;
  inset:0;
  background:#ffffff;
  z-index:999999;
}