/* CCE — Call Center English Test — Theme
   Marca Idiomasofía®: sky blue #1AACCF · orange #FF7A2F
   Tipografía: Fredoka One (display) + Nunito (cuerpo)          */

@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --sky: #1AACCF;
  --sky-dark: #0E7C99;
  --orange: #FF7A2F;
  --orange-dark: #E05E14;
  --ink: #142433;
  --paper: #F7FBFC;
  --card: #FFFFFF;
  --line: #DCEAEE;
  --success: #2E9E6B;
  --warn: #E0A62E;
  --danger: #D9483C;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Nunito', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}

h1, h2, h3, .display {
  font-family: 'Fredoka One', 'Nunito', sans-serif;
  font-weight: 400;
  color: var(--ink);
}

.app-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 22px;
  border-bottom: 3px solid var(--sky);
  margin-bottom: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--sky), var(--orange));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.brand-mark img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.hero-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 18px;
}
.hero-strip img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}
.hero-strip p {
  margin: 0;
  font-size: .85rem;
  color: #5b7180;
}
.hero-strip strong { color: var(--ink); }

@media (max-width: 480px) {
  .hero-strip { flex-direction: column; text-align: center; }
  .hero-strip img { width: 100%; height: 130px; }
}

.brand-name { font-family: 'Fredoka One'; font-size: 1.05rem; }
.brand-sub { font-size: .75rem; color: #5b7180; letter-spacing: .04em; text-transform: uppercase; }

.badge {
  display: inline-block;
  background: var(--sky);
  color: white;
  font-size: .72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: .04em;
}
.badge.orange { background: var(--orange); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: 0 2px 10px rgba(20,36,51,.04);
}

.timer-pill {
  font-family: 'Nunito';
  font-weight: 800;
  font-size: 1rem;
  background: var(--ink);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  min-width: 84px;
  text-align: center;
}
.timer-pill.low { background: var(--danger); }

.progress-track {
  height: 8px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 26px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sky), var(--orange));
  transition: width .4s ease;
}

.passage-text {
  background: #F0F8FA;
  border-left: 4px solid var(--sky);
  padding: 16px 18px;
  border-radius: 8px;
  font-size: .95rem;
  white-space: pre-line;
  margin-bottom: 18px;
}

.question-block { margin-bottom: 22px; }
.question-prompt { font-weight: 700; margin-bottom: 10px; }

.option-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.option-row:hover { border-color: var(--sky); background: #F0F8FA; }
.option-row.selected { border-color: var(--orange); background: #FFF3EA; }

input[type="text"], textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: 'Nunito';
  font-size: .95rem;
  background: white;
  color: var(--ink);
}
select { cursor: pointer; }
textarea { min-height: 160px; resize: vertical; }

.word-count { font-size: .8rem; color: #5b7180; margin-top: 6px; text-align: right; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-family: 'Nunito';
  font-weight: 800;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .1s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--sky); color: white; }
.btn-primary:hover { background: var(--sky-dark); }
.btn-accent { background: var(--orange); color: white; }
.btn-accent:hover { background: var(--orange-dark); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-whatsapp { background: #25D366; color: white; }

.actions-row { display: flex; gap: 12px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }

.rec-indicator {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--danger); font-weight: 800; font-size: .85rem;
}
.rec-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--danger);
  animation: pulse 1.1s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin: 18px 0 24px;
}
.skill-tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.skill-tile .level {
  font-family: 'Fredoka One';
  font-size: 1.7rem;
  color: var(--sky-dark);
}
.skill-tile .label { font-size: .78rem; color: #5b7180; text-transform: uppercase; letter-spacing: .03em; }
.skill-tile .score { font-size: .85rem; color: var(--orange-dark); font-weight: 800; margin-top: 4px; }

.overall-banner {
  background: linear-gradient(135deg, var(--ink), #1e3a4d);
  color: white;
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  margin-bottom: 20px;
}
.overall-banner .level-big { font-family: 'Fredoka One'; font-size: 3rem; color: var(--orange); }
.overall-banner .readiness { font-size: .95rem; opacity: .9; margin-top: 6px; }

.rec-list { list-style: none; padding: 0; margin: 0; }
.rec-list li {
  padding: 10px 14px;
  border-left: 3px solid var(--orange);
  background: #FFF8F2;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: .9rem;
}

.footer-space { margin-top: 40px; }

.consent-box {
  background: #FFF8F2;
  border: 1px dashed var(--orange);
  border-radius: 10px;
  padding: 16px;
  font-size: .85rem;
  margin-bottom: 18px;
}

@media (max-width: 600px) {
  .app-shell { padding: 16px 14px 48px; }
  .overall-banner .level-big { font-size: 2.2rem; }
}
