@import url("https://fonts.googleapis.com/css?family=Poppins:400,600");

.vq-wrapper-global {
  font-family: "Poppins", sans-serif;
}

.vq-container {
  width: 96%;
  max-width: 600px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: visible;
  margin: 20px auto;
  padding-bottom: 20px;
  text-align: center;
  position: relative;
}

.vq-slide-content {
  padding: 30px 40px;
  animation: vqFadeIn 0.5s ease;
}

.vq-hero-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: block;
}

/* Reproductor de audio */
.vq-audio-player {
  width: 100%;
  margin-bottom: 12px;
  border-radius: 30px;
  outline: none;
}

/* Enlace transcripción */
.vq-transcript-toggle {
  display: inline-block;
  font-size: 0.9em;
  color: #888 !important;
  text-decoration: underline;
  cursor: pointer;
  margin-bottom: 20px;
  background: none;
  border: none;
  font-family: inherit;
  padding: 0;
}
.vq-wrapper-global .vq-transcript-toggle:hover,
.vq-transcript-toggle:hover {
  color: #555 !important;
  background: none !important;
}

.vq-transcript-text {
  display: none;
  font-size: 1.05em;
  color: #333;
  line-height: 1.5;
  background: #f8f8f8;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 18px;
  text-align: left;
}
.vq-transcript-text.visible {
  display: block;
  animation: vqFadeIn 0.3s ease;
}

/* Botones V/F */
.vq-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.vq-option-btn {
  background-color: #f2f3f4;
  border: none;
  padding: 18px 10px;
  border-radius: 10px;
  font-size: 1.05rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s, background-color 0.2s, opacity 0.3s;
  text-align: center;
  color: #232323;
}
.vq-option-btn:hover { background-color: #dbe4e8; transform: scale(1.02); color: #232323 !important; }
.vq-option-btn.vq-correct:hover,
.vq-option-btn.vq-wrong:hover { color: white !important; }

/* El botón que no se eligió desaparece */
.vq-option-btn.vq-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Correcto — verde con bounce */
.vq-correct {
  background-color: #28d823 !important;
  color: white !important;
  animation: vqBounce 0.5s ease forwards;
  box-shadow: 0 8px 25px rgba(40, 216, 35, 0.4);
}

/* Incorrecto — rojo con shake */
.vq-wrong {
  background-color: #ff192a !important;
  color: white !important;
  animation: vqShake 0.6s ease;
}

/* Caja de explicación */
.vq-explanation {
  background: #fff8e7;
  border-left: 4px solid #E0772A;
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 20px;
  font-size: 0.95em;
  color: #444;
  text-align: left;
  line-height: 1.5;
  animation: vqFadeIn 0.4s ease;
}

/* Botón Continuar */
.vq-continue-btn {
  background: #E0772A;
  color: white;
  border: none;
  padding: 10px 28px;
  border-radius: 10px;
  font-size: 0.95em;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  margin-top: 15px;
  transition: background 0.2s;
  animation: vqFadeIn 0.5s ease;
}
.vq-continue-btn:hover { background: #c9621a; }

/* Pantallas inicio y fin */
.vq-start-screen, .vq-end-screen { padding: 40px 20px; }

.vq-title {
  font-size: 1.4em;
  font-weight: 600;
  color: #232323;
  margin-bottom: 10px;
}

.vq-subtitle {
  color: #666;
  font-size: 0.95em;
  margin-bottom: 20px;
}

.vq-action-btn {
  background-color: #D33708;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 1.1em;
  font-family: inherit;
  cursor: pointer;
  margin-top: 20px;
  transition: background 0.2s;
}
.vq-action-btn:hover { background-color: #b52e06; }

.vq-score-display {
  font-size: 2.5em;
  font-weight: bold;
  margin: 20px 0 10px;
}

/* Barra de progreso */
.vq-progress-wrapper {
  width: 100%;
  padding: 10px 40px 20px 40px;
  box-sizing: border-box;
}
.vq-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85em;
  color: #666;
  margin-bottom: 5px;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
}
.vq-progress-track {
  width: 100%;
  height: 8px;
  background-color: #eee;
  border-radius: 5px;
  overflow: hidden;
}
.vq-progress-fill {
  height: 100%;
  background-color: #28d823;
  width: 0%;
  transition: width 0.5s ease;
}

.vq-footer {
  margin-top: 10px;
  padding: 10px 20px;
  color: #bbb;
  font-size: 0.75rem;
  font-family: "Poppins", sans-serif;
}

@keyframes vqFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes vqBounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.12); }
  70%  { transform: scale(0.97); }
  100% { transform: scale(1.05); }
}
@keyframes vqShake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-8px); }
  40%      { transform: translateX(8px); }
  60%      { transform: translateX(-5px); }
  80%      { transform: translateX(5px); }
}
