/* ==== Test de orientación ==== */
.test-container {
    user-select: none;
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 2rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: inset 0 4px 16px rgba(0, 0, 0, 0.3);
}

.test-container h1 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.test-container fieldset {
    border: 2px solid #eee;
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    
}

.test-container legend h2 {
    user-select: text;
    font-size: 1.35rem;
    margin: 0;
    color: var(--accent-color);
    margin: 1rem;
}

.test-container label {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  margin: 0.5rem 0;
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 0.6rem;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.2);
}
.test-container label:hover {
  background: #f0f0f0;
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.test-container input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.2em;
  height: 1.2em;
  margin-right: 0.75rem;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.test-container input[type="radio"]::before {
  content: "";
  display: block;
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: transparent;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: background 0.2s;
}
.test-container input[type="radio"]:checked {
  border-color: var(--primary-color);
}
.test-container input[type="radio"]:checked::before {
  background: var(--primary-color);
}
#result {
    margin-top: 2rem;
    padding: 1.5rem;
    text-align: center;
    font-size: 1.25rem;
    border-radius: 0.5rem;
}

#result.hidden {
    display: none;
}

#result.edicion {
    background: #fdf0f0;
    color: #a32a2a;
}

#result.ilustracion {
    background: #f0f4fd;
    color: #2a4ea3;
}

#result.iconicidad {
    background: #f0fdf4;
    color: #2a8232;
}

#result.hipermedia {
    background: #fdf9f0;
    color: #a3742a;
}

/* Esconde todos los fieldsets por defecto */
.test-container fieldset {
    display: none;
}

/* Muestra solo el fieldset activo */
.test-container fieldset.active {
    display: block;
}

/* Oculta el botón de enviar pues ya no hace falta */
#submitTest {
    display: none;
}

/* Contenedor de progreso */
.progress-container {
    width: 100%;
    background: #eee;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 2rem;
    height: 1rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Barra interna */
.progress-bar {
    width: 0%;
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

