.exam-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 40px 20px;
  background: #000;
  color: #fff;
  min-height: 100vh;
}

.exam-container h1 {
  text-align: center;
  color: #fece1a;
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.intro {
  color: #ccc;
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Barra de progreso */
.progress-container {
  width: 100%;
  background: #1a1a1a;
  border-radius: 25px;
  overflow: hidden;
  margin: 30px 0 50px;
  border: 2px solid #fece1a;
  box-shadow: 0 0 20px rgba(254, 206, 26, 0.3);
}

#progress-bar {
  height: 35px;
  width: 0%;
  background: linear-gradient(90deg, #fece1a, #ffd700);
  color: #000;
  text-align: center;
  line-height: 35px;
  font-weight: bold;
  transition: width 0.5s ease;
  font-size: 1rem;
}

#progress-bar.high {
  background: linear-gradient(90deg, #00b09b, #96c93d);
  color: #fff;
}

#progress-bar.medium {
  background: linear-gradient(90deg, #fece1a, #ff9800);
  color: #000;
}

#progress-bar.low {
  background: linear-gradient(90deg, #ff5252, #ff1744);
  color: #fff;
}

/* Preguntas */
.question {
  background: #1a1a1a;
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 12px;
  border-left: 5px solid #fece1a;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.question:hover {
  transform: translateX(5px);
  border-left-color: #ffd700;
}

.question-number {
  color: #fece1a;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.question-text {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #fff;
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-label {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  background: #0a0a0a;
  border: 2px solid #333;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.option-label:hover {
  background: #2a2a2a;
  border-color: #fece1a;
  transform: translateX(5px);
}

.option-label input[type="radio"] {
  margin-right: 15px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #fece1a;
}

.option-label input[type="radio"]:checked + .option-text {
  color: #fece1a;
  font-weight: 600;
}

.option-text {
  font-size: 1.05rem;
  color: #ccc;
  transition: color 0.3s ease;
}

/* Botón */
.btn {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 40px auto;
  padding: 18px 40px;
  border: none;
  background: linear-gradient(135deg, #fece1a, #ffd700);
  color: #000;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(254, 206, 26, 0.4);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(254, 206, 26, 0.6);
  background: linear-gradient(135deg, #ffd700, #fece1a);
}

.btn:active {
  transform: translateY(0);
}

/* Botón reintentar */
.btn-retry {
  background: linear-gradient(135deg, #666, #999);
  position: relative;
  overflow: hidden;
}

.btn-retry:hover {
  background: linear-gradient(135deg, #777, #aaa);
  box-shadow: 0 8px 30px rgba(150, 150, 150, 0.4);
}

.btn-retry span {
  display: inline-block;
  margin-right: 8px;
  font-size: 1.4rem;
  transition: transform 0.3s ease;
}

.btn-retry:hover span {
  transform: rotate(180deg);
}

/* Resultado */
.resultado {
  margin-top: 50px;
  padding: 40px;
  border-radius: 15px;
  background: #1a1a1a;
  border: 2px solid #fece1a;
  text-align: center;
  box-shadow: 0 0 30px rgba(254, 206, 26, 0.3);
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.resultado h2 {
  color: #fece1a;
  font-size: 2rem;
  margin-bottom: 30px;
}

.score-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 200px;
  margin: 30px auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #fece1a, #ffd700);
  box-shadow: 0 0 40px rgba(254, 206, 26, 0.5);
  animation: scaleIn 0.6s ease-out;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.score-number {
  font-size: 3.5rem;
  font-weight: bold;
  color: #000;
}

.score-label {
  font-size: 1rem;
  color: #000;
  font-weight: 600;
}

.result-message {
  margin-top: 30px;
  padding: 30px;
  border-radius: 10px;
  text-align: left;
}

.result-message .icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 20px;
}

.result-message h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  text-align: center;
}

.result-message p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ccc;
  text-align: center;
}

.result-message.success {
  background: rgba(0, 176, 155, 0.1);
  border: 2px solid #00b09b;
}

.result-message.success .icon {
  color: #00b09b;
}

.result-message.success h3 {
  color: #00b09b;
}

.result-message.warning {
  background: rgba(254, 206, 26, 0.1);
  border: 2px solid #fece1a;
}

.result-message.warning .icon {
  color: #fece1a;
}

.result-message.warning h3 {
  color: #fece1a;
}

.result-message.error {
  background: rgba(255, 82, 82, 0.1);
  border: 2px solid #ff5252;
}

.result-message.error .icon {
  color: #ff5252;
}

.result-message.error h3 {
  color: #ff5252;
}

.result-message ul {
  margin-top: 20px;
  padding-left: 20px;
}

.result-message ul li {
  margin: 10px 0;
  color: #fece1a;
  font-size: 1.1rem;
}

/* Recomendaciones de bootcamps */
.recommendations {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 2px solid #333;
}

.recommendations h4 {
  color: #fece1a;
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-align: center;
}

.bootcamp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.bootcamp-card {
  background: #0a0a0a;
  padding: 25px;
  border-radius: 10px;
  border: 2px solid #333;
  transition: all 0.3s ease;
  text-align: left;
}

.bootcamp-card:hover {
  border-color: #fece1a;
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(254, 206, 26, 0.2);
}

.bootcamp-card h5 {
  color: #fece1a;
  font-size: 1.3rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.bootcamp-card p {
  color: #ccc;
  font-size: 1rem;
  line-height: 1.5;
  text-align: left;
}

/* Sección de fortalezas */
.next-steps {
  margin-top: 30px;
  padding: 25px;
  background: rgba(0, 176, 155, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(0, 176, 155, 0.3);
  text-align: left;
}

.next-steps h4 {
  color: #00b09b;
  font-size: 1.4rem;
  margin-bottom: 15px;
  text-align: center;
}

.next-steps ul {
  list-style: none;
  padding: 0;
}

.next-steps ul li {
  padding: 10px 0 10px 30px;
  position: relative;
  color: #ccc;
  font-size: 1.05rem;
  text-align: left;
}

.next-steps ul li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #00b09b;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Animación de fade in para ocultar/mostrar */
#quiz-container {
  animation: fadeIn 0.5s ease-in;
}

/* Responsive */
@media (max-width: 768px) {
  .exam-container {
    padding: 20px 15px;
  }

  .exam-container h1 {
    font-size: 2rem;
  }

  .intro {
    font-size: 1rem;
  }

  .question {
    padding: 20px;
  }

  .question-text {
    font-size: 1.1rem;
  }

  .option-label {
    padding: 12px 15px;
  }

  .option-text {
    font-size: 0.95rem;
  }

  .score-circle {
    width: 160px;
    height: 160px;
  }

  .score-number {
    font-size: 2.8rem;
  }

  .bootcamp-cards {
    grid-template-columns: 1fr;
  }

  .result-message h3 {
    font-size: 1.5rem;
  }

  .result-message p {
    font-size: 1rem;
  }

  .bootcamp-card h5 {
    font-size: 1.2rem;
  }

  .btn {
    font-size: 1rem;
    padding: 15px 30px;
  }
}

@media (max-width: 480px) {
  .exam-container h1 {
    font-size: 1.6rem;
  }

  .question-text {
    font-size: 1rem;
  }

  .progress-container {
    margin: 20px 0 30px;
  }

  #progress-bar {
    height: 30px;
    line-height: 30px;
    font-size: 0.9rem;
  }

  .resultado {
    padding: 25px 15px;
  }

  .score-circle {
    width: 140px;
    height: 140px;
  }

  .score-number {
    font-size: 2.4rem;
  }

  .bootcamp-card {
    padding: 20px;
  }
}