/* =======================
   Interactive Presentation
======================= */

.interactive-presentation {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 1rem auto;
  font-family: 'Poppins', sans-serif;
}

/* Slides container */
.interactive-presentation .slides-container {
  position: relative;
  width: 100%;
  overflow: hidden; /* importante para que JS funcione */
}

/* Cada slide */
.interactive-presentation .slide {
  display: none; /* solo la activa se muestra */
  position: relative;
  width: 100%;
  height: 350px; /* altura móvil inicial */
  background-size: cover;
  background-position: center;
  border: 3px solid #D2BF80; /* borde dorado */
  box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* sombra */
  border-radius: 8px;
  box-sizing: border-box;
  padding: 1rem;
}

/* Slide activo */
.interactive-presentation .slide.active {
  display: block;
}

/* Texto dentro del slide */
.interactive-presentation .slide .slide-text {
  background: rgba(255, 255, 255, 0.85);
  padding: 0.8rem 1rem;
  border-radius: 6px;
  color: #333;
  font-size: 0.9rem;
  line-height: 1.3;
  max-width: 95%;
  margin: 0 auto;
}

/* Quizzes: botones */
.interactive-presentation .quiz-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.interactive-presentation .quiz-buttons .answer {
  flex: 1 1 48%;
  padding: 0.5rem 0.75rem;
  border: 2px solid #D2BF80;
  border-radius: 6px;
  background-color: #fff;
  cursor: pointer;
  font-size: 0.85rem;
  text-align: center;
  transition: background 0.2s, color 0.2s;
}

.interactive-presentation .quiz-buttons .answer:hover {
  background-color: #D2BF80;
  color: #fff;
}

/* Feedback */
.interactive-presentation .feedback {
  margin-top: 0.5rem;
  font-weight: 600;
}

/* Navegación */
.interactive-presentation .navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.interactive-presentation .navigation button {
  background-color: #D2BF80;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
}

.interactive-presentation .navigation button:disabled {
  opacity: 0.5;
  cursor: default;
}

/* Progress bar */
.interactive-presentation .progress-bar {
  width: 100%;
  height: 6px;
  background: #eee;
  border-radius: 4px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.interactive-presentation .progress-bar .progress {
  width: 0%;
  height: 100%;
  background: #D2BF80;
  transition: width 0.3s ease;
}

/* =======================
   Responsive - Mobile First
======================= */
@media (min-width: 480px) {
  .interactive-presentation .slide {
    height: 400px;
  }

  .interactive-presentation .slide .slide-text {
    font-size: 1rem;
    padding: 1rem 1.2rem;
  }
}

@media (min-width: 768px) {
  .interactive-presentation .slide {
    height: 450px;
  }

  .interactive-presentation .slide .slide-text {
    font-size: 1.05rem;
    padding: 1rem 1.5rem;
  }

  .interactive-presentation .quiz-buttons .answer {
    flex: 1 1 22%;
  }
}