.quizfinal-container {
    font-family: Arial, sans-serif;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 20px auto;
}

.quizfinal-container h3 {
    font-size: 14px;
}

button.quizfinal-answer {
    display: block;
    margin: 10px auto;
    padding: 10px;
    width: 80%;
    border: none;
    cursor: pointer;
    font-size: 12px;
    background: #999;
    color: white;
    border-radius: 5px;
    transition: background 0.3s ease, color 0.3s ease;
}

button.quizfinal-answer.selected {
    background: #555 !important;
    color: #fff !important;
    font-weight: bold;
    transform: scale(1.02);
}

button.quizfinal-answer.respuesta-correcta {
    background: #28a745 !important;
    color: #fff !important;
}

button.quizfinal-answer.respuesta-incorrecta {
    background: #dc3545 !important;
    color: #fff !important;
}

/* Barra de progreso */
.quiz2-progress-bar {
    background-color: rgba(0, 0, 0, 0.8);
    box-shadow: 1px 1px 15px #00000070;
    padding: 5px 10px 10px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 12px;
    color: #fff;
    position: sticky;
    bottom: 0;
    z-index: 500;
}

.quiz2-progress-text {
    text-align: center;
    margin-bottom: 5px;
    font-weight: bold;
}

.quiz2-progress-track {
    background: #ddd;
    border-radius: 4px;
    height: 6px;
    width: 100%;
    overflow: hidden;
}

.quiz2-progress-fill {
    background: #0073aa;
    width: 0%;
    height: 100%;
    transition: width 0.3s ease;
}

/* Lightbox */
.quizfinal-lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.quizfinal-lightbox-content {
    background: #fff;
    padding: 30px;
    border-radius: 30px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.quizfinal-lightbox-content h4 {
    margin-top: 0;
    font-size: 16px;
    color: #555;
    padding: 10px;
}

.quizfinal-lightbox-content p {
    font-size: 14px;
    margin-bottom: 10px;
}

.quizfinal-lightbox-content button {
    margin: 10px 5px;
    padding: 8px 16px;
    border: none;
    background: #ff6210;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
}

.quizfinal-lightbox-content button:hover {
    background: #e05200;
}

button.quizfinal-answer:disabled {
    opacity: 0.6;
    pointer-events: none;
}

/* ——— Separadores entre preguntas ——— */
.quizfinal-question {
  position: relative;
}

/* Espaciado y línea sutil antes de cada bloque (menos el primero) */
.quizfinal-question:not(:first-of-type) {
  margin-top: 40px;      /* separación con el bloque anterior */
  padding-top: 30px;     /* espacio por encima del título */
}

.quizfinal-question:not(:first-of-type)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, #ddd, transparent);
  /* si preferís una línea punteada:
     background: none; border-top: 1px dashed #ddd; left: 8%; right: 8%;
  */
}

/* Un poco de aire bajo el título para separarlo de las opciones */
.quizfinal-container h3 {
  margin: 0 0 8px; /* ya tenías font-size: 14px; */
}
