/* ============================================
   TEST DE RAZA — DogNavi
   Wizard de quiz + resultado de razas
   ============================================ */

/* ----- Progreso del wizard ----- */
.quiz-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 2rem auto 2.5rem;
  max-width: 600px;
  padding: 0 1rem;
}

.quiz-step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #ccc;
  background: #fff;
  color: #999;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.quiz-step.done {
  background: #667e6d;
  border-color: #667e6d;
  color: #fff;
}

.quiz-step.current {
  background: #FFB347;
  border-color: #FFB347;
  color: #333;
  transform: scale(1.15);
}

.quiz-step-line {
  flex: 1;
  height: 2px;
  background: #e0e0e0;
  min-width: 12px;
  max-width: 48px;
  transition: background 0.25s;
}

.quiz-step-line.done {
  background: #667e6d;
}

/* ----- Tarjeta de pregunta ----- */
.quiz-card {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  max-width: 680px;
  margin: 0 auto 2rem;
  display: none;
}

.quiz-card.active {
  display: block;
  animation: fadeInUp 0.35s ease;
}

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

.quiz-q-num {
  font-size: 0.82rem;
  color: #FFB347;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem;
}

.quiz-q-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #2e4a3a;
  font-family: 'Poppins', sans-serif;
  margin: 0 0 1.5rem;
  line-height: 1.3;
}

/* ----- Botones de opción ----- */
.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

@media (max-width: 480px) {
  .quiz-options {
    grid-template-columns: 1fr;
  }
}

.quiz-opt-btn {
  background: #f8f6f2;
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.3;
}

.quiz-opt-btn:hover {
  border-color: #FFB347;
  background: #fff8ef;
  transform: translateY(-1px);
}

.quiz-opt-btn.selected {
  border-color: #667e6d;
  background: #eaf2eb;
  color: #2e4a3a;
  font-weight: 700;
}

.quiz-opt-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* ----- Navegación del quiz ----- */
.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.quiz-nav-btn {
  background: transparent;
  border: 2px solid #667e6d;
  color: #667e6d;
  border-radius: 50px;
  padding: 0.6rem 1.4rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  transition: 0.2s;
}

.quiz-nav-btn:hover {
  background: #667e6d;
  color: #fff;
}

.quiz-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.quiz-next-btn {
  background: #667e6d;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.7rem 2rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  transition: 0.2s;
}

.quiz-next-btn:hover {
  background: #FFB347;
  color: #333;
}

.quiz-next-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ----- Resultados ----- */
.quiz-results {
  display: none;
}

.quiz-results.show {
  display: block;
  animation: fadeInUp 0.4s ease;
}

.results-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: #2e4a3a;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 0.5rem;
}

.results-sub {
  text-align: center;
  color: #777;
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .results-grid {
    grid-template-columns: 1fr;
  }
}

/* ----- Tarjeta de raza ----- */
.breed-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.09);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.breed-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.14);
}

.breed-card.rank-1 {
  box-shadow: 0 6px 28px rgba(102,126,109,0.25);
  border: 2px solid #667e6d;
}

.breed-card-header {
  padding: 1.8rem 1.2rem 1rem;
  text-align: center;
}

.breed-rank {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  margin-bottom: 0.8rem;
}

.rank-1 .breed-rank { background: #FFB347; color: #333; }
.rank-2 .breed-rank { background: #e0e0e0; color: #555; }
.rank-3 .breed-rank { background: #d4a96a22; color: #7a6040; }

.breed-emoji-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  margin: 0 auto 0.8rem;
}

.breed-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #2e4a3a;
  font-family: 'Poppins', sans-serif;
  margin: 0 0 0.5rem;
}

/* ----- Barra de compatibilidad ----- */
.compat-bar-wrap {
  padding: 0 1.2rem;
  margin-bottom: 0.7rem;
}

.compat-label {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 0.25rem;
  display: flex;
  justify-content: space-between;
}

.compat-label span:last-child {
  font-weight: 700;
  color: #2e4a3a;
}

.compat-bar-bg {
  background: #e8f0ea;
  border-radius: 50px;
  height: 8px;
  overflow: hidden;
}

.compat-bar-fill {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, #667e6d, #88b09a);
  transition: width 0.8s ease;
}

/* ----- Badges ----- */
.breed-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.5rem 1.2rem 1rem;
}

.breed-badge {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-weight: 600;
}

.badge-size   { background: #e8f4fd; color: #2471a3; }
.badge-energy { background: #fef9e7; color: #b7770d; }
.badge-groom  { background: #f9f0ff; color: #6c3483; }

/* ----- Pros/Cons ----- */
.breed-details {
  padding: 0 1.2rem 1.2rem;
}

.breed-desc {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  font-size: 0.82rem;
}

.pros-list, .cons-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pros-list li::before { content: '✅ '; }
.cons-list li::before { content: '⚠️ '; }

.pros-list li, .cons-list li {
  margin-bottom: 0.25rem;
  line-height: 1.4;
  color: #555;
}

/* ----- Why section ----- */
.breed-why {
  padding: 0.6rem 1.2rem;
  background: #f0f5f1;
  font-size: 0.83rem;
  color: #3d5a47;
  border-top: 1px solid #d9e8dc;
  line-height: 1.45;
}

.breed-why strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ----- Actions ----- */
.results-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn-share {
  background: transparent;
  border: 2px solid #667e6d;
  color: #667e6d;
  border-radius: 50px;
  padding: 0.7rem 1.6rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  transition: 0.2s;
}

.btn-share:hover {
  background: #667e6d;
  color: #fff;
}

.btn-retry {
  background: #FFB347;
  border: none;
  color: #333;
  border-radius: 50px;
  padding: 0.7rem 1.6rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  transition: 0.2s;
}

.btn-retry:hover {
  background: #ffa020;
}

/* ----- Nota disclaimer ----- */
.quiz-disclaimer {
  text-align: center;
  font-size: 0.8rem;
  color: #999;
  margin-top: 1.5rem;
  font-style: italic;
}
