
/* ============================================================
   DIAGNÓSTICO EXPRÉS — Quiz overlay
   ============================================================ */
.quiz-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease, visibility .5s ease;
}
.quiz-overlay.open { opacity: 1; visibility: visible; }

.quiz-overlay__bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/hero-restaurante.png');
  background-size: cover;
  background-position: center center;
  transform: scale(1.08);
  filter: blur(7px) brightness(.32);
  z-index: 0;
}
.quiz-overlay__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,13,13,.72) 0%, rgba(13,13,13,.86) 100%);
}

.quiz-close {
  position: absolute;
  top: 1.5rem; right: 1.75rem;
  z-index: 3;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.25);
  color: rgba(255,255,255,.8);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.quiz-close:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: rotate(90deg); }

.quiz-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 640px;
  margin: 0 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.quiz-progress {
  height: 4px;
  background: rgba(255,255,255,.14);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 2rem;
  transition: opacity .4s ease;
}
.quiz-progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright));
  border-radius: 4px;
  transition: width .5s cubic-bezier(.4,0,.2,1);
}

.quiz-stage {
  max-height: 78vh;
  overflow-y: auto;
  scrollbar-width: thin;
}

/* Transición de entrada/salida de cada paso */
.q-in { animation: qIn .45s cubic-bezier(.16,1,.3,1) both; }
.q-out { animation: qOut .26s ease both; }
@keyframes qIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes qOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-14px); }
}

/* ── Card base ── */
.q-card {
  background: rgba(20,17,13,.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  padding: 2.75rem 2.5rem;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}

.q-eyebrow, .q-kicker {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 1rem;
}
.q-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -.01em;
}
.q-hl { color: var(--blue); }
.q-text {
  color: rgba(255,255,255,.72);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}
.q-fineprint {
  margin-top: 1.25rem;
  font-size: .78rem;
  color: rgba(255,255,255,.4);
  letter-spacing: .02em;
}
.q-card--intro .q-next { width: 100%; justify-content: center; }

/* ── Pregunta ── */
.q-question {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: .5rem;
}
.q-subtitle {
  color: rgba(255,255,255,.55);
  font-size: .92rem;
  margin-bottom: 1.75rem;
}
.q-options { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.5rem; }
.q-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  text-align: left;
  padding: 1.05rem 1.25rem;
  background: rgba(255,255,255,.04);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 4px;
  color: rgba(255,255,255,.9);
  font-family: 'Inter', sans-serif;
  font-size: .98rem;
  cursor: pointer;
  transition: all .2s ease;
}
.q-option:hover {
  background: rgba(194,121,58,.12);
  border-color: var(--blue);
  transform: translateX(4px);
}
.q-option__check {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
  flex-shrink: 0;
  position: relative;
  transition: all .2s ease;
}
.q-option:hover .q-option__check { border-color: var(--blue); }
.q-option.selected {
  background: rgba(194,121,58,.18);
  border-color: var(--blue);
}
.q-option.selected .q-option__check {
  border-color: var(--blue);
  background: var(--blue);
}
.q-option.selected .q-option__check::after {
  content: '';
  position: absolute;
  top: 4px; left: 7px;
  width: 5px; height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ── Proof break ── */
.q-card--proof { text-align: center; }
.q-proof-num {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 1rem;
}
.q-proof-text {
  color: rgba(255,255,255,.8);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 46ch;
  margin: 0 auto 2rem;
}
.q-proof-text strong { color: #fff; }
.q-card--proof .btn { width: 100%; justify-content: center; }

/* ── Analyzing ── */
.q-card--analyzing { text-align: center; padding-top: 3.5rem; padding-bottom: 3.5rem; }
.q-spinner { display: flex; gap: .5rem; justify-content: center; margin-bottom: 1.75rem; }
.q-spinner span {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--blue);
  animation: qBounce 1.2s ease-in-out infinite;
}
.q-spinner span:nth-child(2) { animation-delay: .18s; }
.q-spinner span:nth-child(3) { animation-delay: .36s; }
@keyframes qBounce { 0%,80%,100% { transform: scale(.5); opacity:.4; } 40% { transform: scale(1); opacity:1; } }
.q-analyzing-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem; font-weight: 700; color: #fff; margin-bottom: .5rem;
}
.q-analyzing-step { color: var(--blue-bright); font-size: .95rem; transition: opacity .2s ease; }

/* ── Resultado ── */
.q-card--result { text-align: left; }
.q-result-tag {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-bright);
  border: 1px solid rgba(194,121,58,.4);
  border-radius: 40px;
  padding: .35rem .9rem;
  margin-bottom: 1.25rem;
}
.q-result-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 1rem;
  letter-spacing: -.01em;
}
.q-verdict {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem; font-weight: 600;
  color: var(--blue);
  padding: .9rem 1.2rem;
  background: rgba(194,121,58,.1);
  border-left: 3px solid var(--blue);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}
.q-result-body { color: rgba(255,255,255,.75); font-size: 1rem; line-height: 1.7; margin-bottom: 2rem; }
.q-result-actions { display: flex; flex-direction: column; gap: 1rem; align-items: stretch; }
.q-result-cta { width: 100%; justify-content: center; }
.q-restart {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.45);
  font-family: 'Inter', sans-serif; font-size: .9rem;
  text-decoration: underline; text-underline-offset: 3px;
  transition: color .2s ease;
}
.q-restart:hover { color: rgba(255,255,255,.8); }

@media (max-width: 560px) {
  .q-card { padding: 2rem 1.4rem; }
  .quiz-close { top: 1rem; right: 1rem; }
  .quiz-stage { max-height: 82vh; }
}
