/* Idiomasofía® — Test de Inglés Médico C2 — hoja de estilos base
   Marca: sky #1AACCF / orange #FF7A2F / Fredoka One (display) + Nunito (body) */

:root {
  --sky: #1AACCF;
  --orange: #FF7A2F;
  --ink: #223142;
  --bg: #F7FBFC;
  --card: #FFFFFF;
  --danger: #C0392B;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Nunito', Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

h1, h2, h3, .level-chip {
  font-family: 'Fredoka One', 'Nunito', Arial, sans-serif;
}

.hidden { display: none !important; }

/* ---------- Intro ---------- */
#intro-screen {
  max-width: 520px;
  margin: 40px auto;
  background: var(--card);
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

#intro-screen h1 { color: var(--sky); font-size: 1.6rem; }

.hero-banner {
  width: 38%;
  border-radius: 14px;
  margin-bottom: 18px;
  display: block;
  box-shadow: 0 6px 18px rgba(26,172,207,0.18);
}

#candidate-form input, #candidate-form select {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid #D8E4E8;
  border-radius: 8px;
  font-family: inherit;
}

#candidate-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

#field-date { background: #F2F5F6; color: #667; }

.primary-btn, #start-test-btn {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 24px;
  font-weight: 800;
  cursor: pointer;
  width: 100%;
}

/* ---------- Progress header ---------- */
#progress-header {
  position: sticky;
  top: 0;
  background: var(--card);
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--sky);
  z-index: 10;
}

.skill-dots { display: flex; gap: 8px; }
.skill-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #D8E4E8;
}
.skill-dot.active { background: var(--orange); }

#question-timer { font-weight: 800; color: var(--sky); }
#question-timer.timer-warn { color: var(--danger); }
#general-timer { font-weight: 700; color: var(--ink); }

/* ---------- Test panels ---------- */
#test-container { max-width: 680px; margin: 24px auto; padding: 0 16px; }

.skill-panel {
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

.level-chip {
  display: inline-block;
  background: var(--sky);
  color: #fff;
  padding: 3px 12px;
  border-radius: 14px;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.stimulus { background: #F2FBFD; padding: 14px; border-radius: 10px; margin-bottom: 12px; }
.prompt { font-weight: 700; margin-bottom: 14px; }

.options { display: flex; flex-direction: column; gap: 8px; }
.option-btn {
  text-align: left;
  padding: 12px 14px;
  border: 1px solid #D8E4E8;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.option-btn:hover { border-color: var(--sky); }

.audio-player { width: 100%; margin-bottom: 12px; }

textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #D8E4E8;
  border-radius: 10px;
  font-family: inherit;
  margin-bottom: 8px;
}
.word-count { font-size: 0.85rem; color: #667; margin-bottom: 10px; }

/* ---------- Break modal ---------- */
#break-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
}
#break-modal .modal-card {
  background: #fff; padding: 28px; border-radius: 16px; text-align: center; max-width: 320px;
}

/* ---------- Results dashboard ---------- */
.results-dashboard {
  background: var(--card);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}
.overall-badge strong { color: var(--orange); }

.skill-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.skill-bar-label { width: 80px; font-weight: 700; }
.skill-bar-track { flex: 1; background: #EAF3F5; border-radius: 6px; height: 10px; overflow: hidden; }
.skill-bar-fill { background: var(--sky); height: 100%; }
.skill-bar-level { width: 40px; text-align: right; font-weight: 700; }

.recommendations {
  background: #FFF6EE;
  border-left: 4px solid var(--orange);
  padding: 14px;
  border-radius: 8px;
  margin: 16px 0;
}

.whatsapp-cta {
  display: inline-block;
  background: #25D366;
  color: #fff;
  padding: 12px 22px;
  border-radius: 24px;
  text-decoration: none;
  font-weight: 800;
  margin-top: 12px;
}

.submission-note { font-size: 0.85rem; color: #667; }
