/* Examen de conocimiento. Era un bloque <style> en examen.html: la CSP
   del sitio (style-src 'self', sin unsafe-inline) lo bloqueaba en
   produccion y el examen se veia sin estilos. */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: #08080C; color: #EDEDF2; min-height: 100vh; line-height: 1.6; }
.mono { font-family: 'JetBrains Mono', monospace; }

.nav { background: rgba(8,8,12,0.95); border-bottom: 1px solid rgba(255,255,255,0.1); padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 100; }
.nav__brand { font-weight: 700; font-size: 1.1rem; color: #fff; text-decoration: none; }
.nav__brand span { color: #6B5CFF; }

.container { max-width: 800px; margin: 0 auto; padding: 2rem; }

.card { background: #101018; border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 2rem; margin-bottom: 1.5rem; }
.card__title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.card__subtitle { color: rgba(237,237,242,0.6); margin-bottom: 1.5rem; }

.question { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
.question:last-of-type { border-bottom: none; }
.question__number { color: #6B5CFF; font-weight: 600; font-size: 0.85rem; margin-bottom: 0.5rem; }
.question__text { font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; }
.options { display: flex; flex-direction: column; gap: 0.5rem; }
.option { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.75rem 1rem; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; cursor: pointer; transition: all 0.2s; }
.option:hover { border-color: #6B5CFF; background: rgba(107,92,255,0.05); }
.option input { margin-top: 0.2rem; }
.option__text { flex: 1; }

.btn { padding: 0.75rem 1.5rem; border-radius: 8px; border: none; cursor: pointer; font-weight: 600; font-size: 0.95rem; transition: all 0.2s; }
.btn--primary { background: #6B5CFF; color: #fff; }
.btn--primary:hover { background: #7d6fff; }
.btn--primary:disabled { opacity: 0.5; cursor: not-allowed; }

.result { text-align: center; padding: 3rem; }
.result__icon { font-size: 4rem; margin-bottom: 1rem; }
.result__title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.result__score { font-size: 3rem; font-weight: 700; color: #6B5CFF; margin: 1rem 0; }
.result__message { color: rgba(237,237,242,0.6); }

.hidden { display: none !important; }

.progress { height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; margin-bottom: 2rem; overflow: hidden; }
.progress__bar { height: 100%; width: 0; background: #6B5CFF; transition: width 0.3s; }

/* La CSP prohibe los estilos inline: estas clases reemplazan los
   que traia el examen. */
.exam-row { display: flex; gap: 1rem; }
.exam-input { flex: 1; padding: 0.75rem 1rem; background: #0A0A0F; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: #EDEDF2; font-size: 1rem; }
.exam-error { color: #ef4444; margin-top: 0.5rem; font-size: 0.85rem; }
.btn--block { width: 100%; }
