/* =====================================================================
   Etiqampus — MasterClass Quiz  |  quiz.css v1.0
   Diseño gamificado: intro → preguntas → resultados
   ===================================================================== */

/* ── Variables ─────────────────────────────────────────────────────── */
.etiq-quiz {
  --eq-blue:       #2757f5;
  --eq-blue-dk:    #0b2766;
  --eq-purple:     #7c4dff;
  --eq-cyan:       #23c3ff;
  --eq-green:      #10b981;
  --eq-red:        #ef4444;
  --eq-orange:     #f59e0b;
  --eq-teal:       #0d9488;
  --eq-bg:         #f5f7ff;
  --eq-card:       #ffffff;
  --eq-border:     #e4e7ec;
  --eq-text:       #101828;
  --eq-muted:      #6b7280;
  --eq-shadow:     0 12px 48px rgba(39,87,245,.10), 0 2px 8px rgba(0,0,0,.04);
  --eq-radius:     20px;
  --eq-radius-sm:  12px;

  /* Option accent colors */
  --eq-opt-a: #2757f5;
  --eq-opt-b: #7c4dff;
  --eq-opt-c: #f59e0b;
  --eq-opt-d: #0d9488;
}

/* ── Contenedor ────────────────────────────────────────────────────── */
.etiq-quiz {
  font-family: inherit;
  max-width: 700px;
  margin: 32px auto;
  position: relative;
  box-sizing: border-box;
  min-height: 460px;
  display: flex;
  flex-direction: column;
}

.etiq-quiz *, .etiq-quiz *::before, .etiq-quiz *::after {
  box-sizing: inherit;
}

/* Estado vacío / error */
.etiq-quiz--empty {
  background: #fff8e1;
  border: 1.5px dashed #f59e0b;
  border-radius: var(--eq-radius);
  padding: 24px 28px;
  color: #92400e;
  font-size: 14px;
}

/* ── Pantallas ─────────────────────────────────────────────────────── */
.eq-screen {
  background: var(--eq-card);
  border: 1.5px solid var(--eq-border);
  border-radius: var(--eq-radius);
  box-shadow: var(--eq-shadow);
  overflow: hidden;
  animation: eq-screen-in .4s cubic-bezier(.2,.9,.2,1) both;
  flex: 1;
  display: flex;
  flex-direction: column;
}

@keyframes eq-screen-in {
  from { opacity: 0; transform: translateY(16px) scale(.99); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.eq-screen.is-leaving {
  animation: eq-screen-out .25s ease both;
}

@keyframes eq-screen-out {
  to { opacity: 0; transform: translateY(-10px) scale(.98); }
}

/* ════════════════════════════════════════════════════════════════════
   PANTALLA 1: INTRO
   ════════════════════════════════════════════════════════════════════ */
.eq-intro {
  padding: 48px 40px 44px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.eq-intro__icon {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 16px;
  display: block;
  animation: eq-bounce-in .6s cubic-bezier(.2,.9,.2,1) both .1s;
}

@keyframes eq-bounce-in {
  0%   { transform: scale(.3) rotate(-10deg); opacity: 0; }
  70%  { transform: scale(1.12) rotate(2deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

.eq-intro__title {
  font-size: clamp(20px, 3.5vw, 28px);
  font-weight: 800;
  color: var(--eq-blue-dk);
  margin: 0 0 10px;
  line-height: 1.25;
}

.eq-intro__desc {
  font-size: 15px;
  color: var(--eq-muted);
  line-height: 1.65;
  margin: 0 0 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.eq-intro__meta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.eq-intro__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--eq-bg);
  border: 1.5px solid var(--eq-border);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--eq-text);
}

.eq-intro__meta-item strong {
  color: var(--eq-blue);
}

/* ── Botón de inicio ── */
.eq-btn-start {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 40px;
  background: linear-gradient(135deg, var(--eq-blue), var(--eq-purple));
  color: #fff;
  border: none;
  border-radius: var(--eq-radius-sm);
  font-family: inherit;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: .01em;
  box-shadow: 0 4px 20px rgba(39,87,245,.35);
  transition: transform .2s cubic-bezier(.2,.9,.2,1), filter .2s;
  animation: eq-pulse-btn 2.5s ease-in-out infinite 1s;
}

.eq-btn-start:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.08);
}

.eq-btn-start:active { transform: scale(.98); }

.eq-btn-start__arrow {
  display: inline-block;
  transition: transform .2s;
}
.eq-btn-start:hover .eq-btn-start__arrow {
  transform: translateX(4px);
}

@keyframes eq-pulse-btn {
  0%,100% { box-shadow: 0 4px 20px rgba(39,87,245,.35); }
  50%     { box-shadow: 0 4px 32px rgba(39,87,245,.55); }
}

/* ════════════════════════════════════════════════════════════════════
   PANTALLA 2: PREGUNTA
   ════════════════════════════════════════════════════════════════════ */

/* HUD top strip */
.eq-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--eq-blue-dk);
  color: #fff;
  gap: 8px;
}

.eq-hud__counter {
  font-size: 13px;
  font-weight: 700;
  opacity: .85;
  white-space: nowrap;
}
.eq-hud__counter strong {
  font-size: 17px;
  font-weight: 900;
  opacity: 1;
}

.eq-hud__streak {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  padding: 4px 12px;
  transition: transform .2s;
}
.eq-hud__streak.is-hot {
  background: rgba(245,158,11,.2);
  border-color: rgba(245,158,11,.4);
  color: #fcd34d;
  animation: eq-streak-pop .35s cubic-bezier(.2,.9,.2,1);
}

@keyframes eq-streak-pop {
  0%  { transform: scale(.8); }
  60% { transform: scale(1.2); }
  100%{ transform: scale(1); }
}

.eq-hud__score {
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #fcd34d;
}

.eq-hud__score-val {
  display: inline-block;
  min-width: 28px;
  text-align: right;
  transition: transform .2s;
}

.eq-hud__score-val.is-bumping {
  animation: eq-score-bump .4s cubic-bezier(.2,.9,.2,1);
}

@keyframes eq-score-bump {
  0%  { transform: scale(1); }
  40% { transform: scale(1.4) translateY(-4px); }
  100%{ transform: scale(1); }
}

/* Progress bar */
.eq-progress {
  height: 5px;
  background: rgba(39,87,245,.12);
}

.eq-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--eq-cyan), var(--eq-blue));
  border-radius: 0 3px 3px 0;
  transition: width .6s cubic-bezier(.2,.9,.2,1);
}

/* Body de la pregunta */
.eq-play__body {
  padding: 28px 32px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Timer */
.eq-timer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 20px;
}

.eq-timer__svg {
  width: 48px;
  height: 48px;
  transform: rotate(-90deg);
}

.eq-timer__track {
  fill: none;
  stroke: rgba(39,87,245,.1);
  stroke-width: 3;
}

.eq-timer__ring {
  fill: none;
  stroke: var(--eq-green);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset .1s linear, stroke .4s;
}

.eq-timer__num {
  font-size: 22px;
  font-weight: 900;
  color: var(--eq-blue-dk);
  min-width: 28px;
  transition: color .4s;
}

.eq-timer.is-warning .eq-timer__num { color: var(--eq-orange); }
.eq-timer.is-danger  .eq-timer__num { color: var(--eq-red); animation: eq-tick .5s ease infinite; }

@keyframes eq-tick {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.15); }
}

/* Pregunta */
.eq-question {
  margin-bottom: 24px;
  animation: eq-q-in .4s cubic-bezier(.2,.9,.2,1) both;
}

@keyframes eq-q-in {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

.eq-question__num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--eq-blue);
  margin-bottom: 8px;
}

.eq-question__text {
  font-size: 18px;
  font-weight: 700;
  color: var(--eq-text);
  line-height: 1.5;
  margin: 0;
}

/* Opciones */
.eq-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 0;
}

.eq-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 13px 18px;
  border-radius: var(--eq-radius-sm);
  border: 2px solid var(--eq-border);
  background: var(--eq-card);
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  color: var(--eq-text);
  line-height: 1.45;
  transition: border-color .18s, background .18s, transform .18s, box-shadow .18s;
  animation: eq-opt-in .35s cubic-bezier(.2,.9,.2,1) both;
}

/* Stagger para cada opción */
.eq-option:nth-child(1) { animation-delay: .06s; }
.eq-option:nth-child(2) { animation-delay: .12s; }
.eq-option:nth-child(3) { animation-delay: .18s; }
.eq-option:nth-child(4) { animation-delay: .24s; }

@keyframes eq-opt-in {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.eq-option:hover:not(:disabled) {
  border-color: var(--eq-blue);
  background: rgba(39,87,245,.03);
  transform: translateX(4px);
  box-shadow: -3px 0 0 var(--eq-blue);
}

.eq-option:focus-visible {
  outline: 3px solid var(--eq-cyan);
  outline-offset: 2px;
}

.eq-option:disabled { cursor: default; transform: none !important; }

/* Letra de la opción (A/B/C/D) */
.eq-option__key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  transition: transform .18s, background .18s;
}

.eq-option[data-key="A"] .eq-option__key { background: var(--eq-opt-a); }
.eq-option[data-key="B"] .eq-option__key { background: var(--eq-opt-b); }
.eq-option[data-key="C"] .eq-option__key { background: var(--eq-opt-c); }
.eq-option[data-key="D"] .eq-option__key { background: var(--eq-opt-d); }

.eq-option__text { flex: 1; }

/* Estados post-respuesta */
.eq-option.is-correct {
  border-color: var(--eq-green);
  background: rgba(16,185,129,.06);
  transform: translateX(4px);
  box-shadow: -3px 0 0 var(--eq-green);
}
.eq-option.is-correct .eq-option__key {
  background: var(--eq-green) !important;
  animation: eq-correct-key .4s cubic-bezier(.2,.9,.2,1);
}

@keyframes eq-correct-key {
  0%  { transform: scale(1); }
  50% { transform: scale(1.3) rotate(-5deg); }
  100%{ transform: scale(1); }
}

.eq-option.is-wrong {
  border-color: var(--eq-red);
  background: rgba(239,68,68,.05);
  animation: eq-shake .45s cubic-bezier(.36,.07,.19,.97) both;
}
.eq-option.is-wrong .eq-option__key { background: var(--eq-red) !important; }

@keyframes eq-shake {
  10%,90%  { transform: translateX(-3px); }
  20%,80%  { transform: translateX(5px); }
  30%,50%,70% { transform: translateX(-6px); }
  40%,60%  { transform: translateX(6px); }
  100%     { transform: translateX(0); }
}

.eq-option.is-dim {
  opacity: .4;
  border-color: var(--eq-border);
}

/* ── Feedback panel ── */
.eq-feedback {
  margin-top: 20px;
  border-radius: var(--eq-radius-sm);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  animation: eq-fb-in .35s cubic-bezier(.2,.9,.2,1) both;
}

@keyframes eq-fb-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.eq-feedback.is-correct {
  background: rgba(16,185,129,.07);
  border: 1.5px solid rgba(16,185,129,.28);
}

.eq-feedback.is-wrong {
  background: rgba(239,68,68,.05);
  border: 1.5px solid rgba(239,68,68,.22);
}

.eq-feedback__icon {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
}

.eq-feedback__body { flex: 1; }

.eq-feedback__verdict {
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 4px;
}

.eq-feedback.is-correct .eq-feedback__verdict { color: var(--eq-green); }
.eq-feedback.is-wrong   .eq-feedback__verdict { color: var(--eq-red); }

.eq-feedback__exp {
  font-size: 13px;
  color: var(--eq-text);
  line-height: 1.6;
  margin: 0;
  opacity: .85;
}

.eq-btn-next {
  flex-shrink: 0;
  align-self: center;
  padding: 10px 20px;
  background: var(--eq-blue);
  color: #fff;
  border: none;
  border-radius: var(--eq-radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s, transform .18s;
}
.eq-btn-next:hover { background: var(--eq-blue-dk); transform: translateY(-1px); }

/* ── Toast de racha ── */
.eq-streak-toast {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(245,158,11,.4);
  pointer-events: none;
  white-space: nowrap;
  z-index: 10;
  animation: eq-toast .9s cubic-bezier(.2,.9,.2,1) both;
}

@keyframes eq-toast {
  0%   { opacity: 0; transform: translateX(-50%) translateY(10px) scale(.8); }
  30%  { opacity: 1; transform: translateX(-50%) translateY(-4px) scale(1.05); }
  70%  { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-16px) scale(.95); }
}

/* ════════════════════════════════════════════════════════════════════
   PANTALLA 3: RESULTADOS
   ════════════════════════════════════════════════════════════════════ */
.eq-end {
  padding: 48px 36px 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Decoración de fondo */
.eq-end::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(39,87,245,.06) 0%, transparent 65%);
  pointer-events: none;
}

.eq-end__trophy {
  font-size: 64px;
  display: block;
  margin-bottom: 12px;
  animation: eq-bounce-in .65s cubic-bezier(.2,.9,.2,1) both .1s;
  position: relative;
}

.eq-end__title {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 800;
  color: var(--eq-blue-dk);
  margin: 0 0 20px;
  position: relative;
}

/* Estrellas */
.eq-stars {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
  position: relative;
}

.eq-star {
  font-size: 40px;
  line-height: 1;
  filter: grayscale(1) opacity(.25);
  transition: filter .3s, transform .3s;
}

.eq-star.is-lit {
  filter: none;
  animation: eq-star-pop .5s cubic-bezier(.2,.9,.2,1) both;
}

.eq-star:nth-child(1) { animation-delay: .3s; }
.eq-star:nth-child(2) { animation-delay: .55s; }
.eq-star:nth-child(3) { animation-delay: .8s; }

@keyframes eq-star-pop {
  0%   { transform: scale(.2) rotate(-20deg); filter: grayscale(1) opacity(.25); }
  60%  { transform: scale(1.25) rotate(5deg); filter: none; }
  100% { transform: scale(1) rotate(0); filter: none; }
}

/* Score display */
.eq-end__score-wrap {
  margin-bottom: 28px;
  position: relative;
}

.eq-end__score-num {
  font-size: clamp(36px, 7vw, 56px);
  font-weight: 900;
  color: var(--eq-blue);
  line-height: 1;
  margin-bottom: 12px;
}

.eq-end__score-num sup {
  font-size: .5em;
  color: var(--eq-muted);
  font-weight: 600;
  vertical-align: super;
}

.eq-end__score-bar {
  height: 12px;
  background: rgba(39,87,245,.1);
  border-radius: 6px;
  overflow: hidden;
  max-width: 360px;
  margin: 0 auto;
}

.eq-end__score-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--eq-cyan), var(--eq-blue));
  border-radius: 6px;
  width: 0;
  transition: width 1.2s cubic-bezier(.2,.9,.2,1);
}

/* Stats */
.eq-stats {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  position: relative;
}

.eq-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: var(--eq-bg);
  border: 1.5px solid var(--eq-border);
  border-radius: var(--eq-radius-sm);
  padding: 12px 20px;
  min-width: 90px;
}

.eq-stat__icon { font-size: 20px; }
.eq-stat__num  { font-size: 22px; font-weight: 900; color: var(--eq-blue-dk); }
.eq-stat__label { font-size: 11px; color: var(--eq-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }

/* Acciones finales */
.eq-end__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
}

.eq-btn-retry {
  padding: 12px 28px;
  background: var(--eq-bg);
  color: var(--eq-blue-dk);
  border: 2px solid var(--eq-border);
  border-radius: var(--eq-radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .18s, background .18s, transform .18s;
}
.eq-btn-retry:hover { border-color: var(--eq-blue); background: rgba(39,87,245,.04); transform: translateY(-1px); }

.eq-btn-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--eq-blue), var(--eq-purple));
  color: #fff !important;
  border: none;
  border-radius: var(--eq-radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(39,87,245,.3);
  transition: filter .18s, transform .18s;
}
.eq-btn-more:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* ── Confetti ───────────────────────────────────────────────────────── */
.eq-confetti-piece {
  position: absolute;
  top: -10px;
  pointer-events: none;
  animation: eq-confetti-fall linear both;
  z-index: 20;
}

@keyframes eq-confetti-fall {
  0%   { transform: translateY(0) rotate(0deg)   scale(1);    opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(280px) rotate(540deg) scale(.5); opacity: 0; }
}

/* ── Botón de badge de participación ────────────────────────────────── */
.eq-btn-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  background: linear-gradient(135deg, #fcd34d, #f59e0b);
  color: #0b2766;
  border: none;
  border-radius: var(--eq-radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(252,211,77,.35);
  transition: filter .18s, transform .18s;
}
.eq-btn-badge:hover { filter: brightness(1.06); transform: translateY(-1px); }

.eq-end__no-retry {
  font-size: 13px;
  color: var(--eq-muted);
  padding: 10px 16px;
  border: 1.5px solid var(--eq-border);
  border-radius: var(--eq-radius-sm);
  margin: 0;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 580px) {
  .eq-intro { padding: 32px 20px 28px; }
  .eq-hud   { padding: 12px 16px; }
  .eq-play__body { padding: 20px 18px 24px; }
  .eq-end   { padding: 32px 20px 32px; }

  .eq-hud__counter { font-size: 12px; }
  .eq-question__text { font-size: 16px; }
  .eq-option { font-size: 14px; padding: 11px 14px; }
  .eq-option__key { width: 30px; height: 30px; font-size: 13px; }

  .eq-feedback { flex-direction: column; }
  .eq-btn-next { align-self: stretch; text-align: center; }

  .eq-end__actions { flex-direction: column; }
  .eq-btn-retry, .eq-btn-badge { width: 100%; text-align: center; justify-content: center; }

  .eq-timer__svg { width: 40px; height: 40px; }
  .eq-timer__num { font-size: 18px; }
}

/* =====================================================================
   EMAIL GATE — Pantalla de captura de email
   ===================================================================== */

.eq-email-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 32px 36px;
  gap: 0;
}

.eq-email-gate__icon {
  font-size: 52px;
  line-height: 1;
  margin-bottom: 14px;
  display: block;
}

.eq-email-gate__title {
  font-size: 22px;
  font-weight: 800;
  color: var(--eq-text, #1a1a2e);
  margin: 0 0 8px;
  line-height: 1.25;
}

.eq-email-gate__desc {
  font-size: 14px;
  color: var(--eq-sub, #64748b);
  margin: 0 0 24px;
  max-width: 320px;
  line-height: 1.5;
}

.eq-email-gate__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 340px;
}

.eq-email-gate__input {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  outline: none;
  transition: border-color .2s;
  background: #fff;
  color: #1a1a2e;
  box-sizing: border-box;
}

.eq-email-gate__input:focus {
  border-color: var(--eq-accent, #2757f5);
  box-shadow: 0 0 0 3px rgba(39,87,245,.12);
}

.eq-email-gate__btn {
  padding: 13px 24px;
  background: var(--eq-accent, #2757f5);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .1s;
}

.eq-email-gate__btn:hover  { background: #1a44d4; }
.eq-email-gate__btn:active { transform: scale(.97); }

.eq-email-gate__error {
  color: #ef4444;
  font-size: 13px;
  margin: 4px 0 0;
}

.eq-email-gate__privacy {
  font-size: 11px;
  color: #94a3b8;
  margin: 16px 0 0;
}

@media (prefers-color-scheme: dark) {
  .eq-email-gate__input {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
  }
  .eq-email-gate__input:focus { border-color: #60a5fa; }
}

/* =====================================================================
   DISEÑO: MASTERCLASS
   ===================================================================== */

/* ── Variables extra ── */
.etiq-quiz--masterclass {
  --eq-coral:    #ef4444;
  --eq-coral-dk: #dc2626;
  --eq-mc-bg:    #eef1fd;
  --eq-mc-navy:  #0b1e57;
  --eq-opt-a:    #7c4dff;
  --eq-opt-b:    #10b981;
  --eq-opt-c:    #f59e0b;
  --eq-opt-d:    #0d9488;
  max-width: 760px;
}

.etiq-quiz--masterclass .eq-screen {
  background: var(--eq-mc-bg);
  border: none;
  border-radius: 20px;
  box-shadow: 0 16px 64px rgba(11,30,87,.14), 0 2px 8px rgba(0,0,0,.06);
}

/* ════════════════════════════════════════════════════════════════════
   PANTALLA INTRO — masterclass
   ════════════════════════════════════════════════════════════════════ */
.eq-mc-intro {
  background: linear-gradient(165deg, #0b1e57 0%, #112272 55%, #0f3296 100%);
  padding: 44px 40px 48px;
  text-align: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Subtle glow bg */
.eq-mc-intro::before {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(39,87,245,.25) 0%, transparent 70%);
  top: -100px; left: 50%; transform: translateX(-50%);
  pointer-events: none;
}

.eq-mc-intro__badge {
  width: 160px;
  height: 160px;
  object-fit: contain;
  margin-bottom: 24px;
  position: relative;
  animation: eq-bounce-in .65s cubic-bezier(.2,.9,.2,1) both .1s;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.35));
}

.eq-mc-intro__badge-fallback {
  font-size: 100px;
  line-height: 1;
  display: block;
  margin-bottom: 24px;
  animation: eq-bounce-in .65s cubic-bezier(.2,.9,.2,1) both .1s;
}

.eq-mc-intro__title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.2;
  position: relative;
}

.eq-mc-intro__desc {
  font-size: 15px;
  color: rgba(255,255,255,.72);
  margin: 0 0 32px;
  line-height: 1.6;
  position: relative;
  padding-bottom: 20px;
}

.eq-mc-intro__pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 28px;
  width: 100%;
  max-width: 720px;
}

.eq-mc-intro__pill {
  background: rgba(255,255,255,.95);
  border-radius: 14px;
  padding: 16px 14px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: #0b1e57;
  line-height: 1.35;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.eq-mc-intro__pill-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  color: #fff;
}
.eq-mc-intro__pill-icon--red    { background: #ef4444; }
.eq-mc-intro__pill-icon--purple { background: #7c3aed; }
.eq-mc-intro__pill-icon--green  { background: #14b8a6; }
.eq-mc-intro__pill-icon--yellow { background: #eab308; }

.eq-mc-btn-start {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 44px;
  background: var(--eq-coral);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: .01em;
  box-shadow: 0 6px 24px rgba(239,68,68,.45);
  transition: transform .2s, filter .2s;
  position: relative;
  animation: eq-pulse-btn 2.5s ease-in-out infinite 1.2s;
}
.eq-mc-btn-start:hover  { transform: translateY(-2px) scale(1.02); filter: brightness(1.06); }
.eq-mc-btn-start:active { transform: scale(.97); }

/* ════════════════════════════════════════════════════════════════════
   HUD — header bar compartido (pregunta + resultados)
   ════════════════════════════════════════════════════════════════════ */
.eq-mc-hud {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 24px;
  background: var(--eq-mc-navy);
  color: #fff;
  gap: 12px;
  border-radius: 20px 20px 0 0;
  flex-shrink: 0;
}

.eq-mc-hud__left {
  font-size: 13px;
  font-weight: 600;
  opacity: .85;
  white-space: nowrap;
}
.eq-mc-hud__left strong { font-size: 17px; font-weight: 900; opacity: 1; color: #fff; }

.eq-mc-hud__center {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  padding: 6px 16px 6px 8px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.eq-mc-hud__logo {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.eq-mc-hud__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #f59e0b;
  white-space: nowrap;
}

/* ════════════════════════════════════════════════════════════════════
   PANTALLA PREGUNTA — masterclass
   ════════════════════════════════════════════════════════════════════ */
.eq-mc-screen {
  display: flex;
  flex-direction: column;
  background: var(--eq-mc-bg);
}

.eq-mc-body {
  flex: 1;
  padding: 24px 24px 16px;
  overflow-y: auto;
}

.eq-mc-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 28px 24px;
  box-shadow: 0 2px 16px rgba(11,30,87,.08);
}

.eq-mc-q-chip {
  display: inline-block;
  background: rgba(39,87,245,.1);
  color: var(--eq-blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
}

.eq-mc-q-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--eq-mc-navy);
  margin: 0 0 8px;
  line-height: 1.2;
}

.eq-mc-q-text {
  font-size: 15px;
  color: var(--eq-muted);
  line-height: 1.6;
  margin: 0 0 22px;
  padding-bottom: 20px;
}

/* Options overrides for masterclass */
.etiq-quiz--masterclass .eq-options { gap: 10px; }

.etiq-quiz--masterclass .eq-option {
  background: #fff;
  border: 1.5px solid #e4e7ec;
  border-radius: 12px;
  padding: 14px 18px;
}

.etiq-quiz--masterclass .eq-option__key {
  border-radius: 50%;
  width: 36px;
  height: 36px;
}

.etiq-quiz--masterclass .eq-option[data-key="A"] .eq-option__key { background: #7c4dff; }
.etiq-quiz--masterclass .eq-option[data-key="B"] .eq-option__key { background: #10b981; }
.etiq-quiz--masterclass .eq-option[data-key="C"] .eq-option__key { background: #f59e0b; }
.etiq-quiz--masterclass .eq-option[data-key="D"] .eq-option__key { background: #0d9488; }

.etiq-quiz--masterclass .eq-option:hover:not(:disabled) {
  border-color: var(--eq-blue);
  background: rgba(39,87,245,.03);
  transform: none;
  box-shadow: none;
}

.etiq-quiz--masterclass .eq-option.is-pending {
  border-color: var(--eq-blue);
  background: rgba(39,87,245,.04);
  box-shadow: 0 0 0 2px rgba(39,87,245,.2);
}

.etiq-quiz--masterclass .eq-option.is-correct {
  border-color: var(--eq-green);
  background: rgba(16,185,129,.06);
  transform: none;
  box-shadow: none;
}

.etiq-quiz--masterclass .eq-option.is-wrong {
  border-color: var(--eq-red);
  background: rgba(239,68,68,.05);
}

/* Masterclass feedback (inline, inside card) */
.eq-mc-feedback {
  margin-top: 16px;
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  animation: eq-fb-in .3s cubic-bezier(.2,.9,.2,1) both;
}

.eq-mc-feedback[hidden] { display: none !important; }

.eq-mc-feedback.is-correct {
  background: rgba(16,185,129,.07);
  border: 1.5px solid rgba(16,185,129,.28);
}
.eq-mc-feedback.is-wrong {
  background: rgba(245,158,11,.07);
  border: 1.5px solid rgba(245,158,11,.28);
}

.eq-mc-fb-icon {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
}

.eq-mc-fb-body { flex: 1; }

.eq-mc-fb-title {
  display: block;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
}
.eq-mc-feedback.is-correct .eq-mc-fb-title { color: #027a48; }
.eq-mc-feedback.is-wrong   .eq-mc-fb-title { color: #b45309; }

.eq-mc-fb-text {
  font-size: 14px;
  color: var(--eq-text);
  line-height: 1.6;
  margin: 0;
  opacity: .88;
}

/* ── Footer bar ── */
.eq-mc-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: #fff;
  border-top: 1.5px solid #e4e7ec;
  border-radius: 0 0 20px 20px;
  flex-shrink: 0;
}

.eq-mc-footer__info {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  min-width: 0;
  border: 1.5px solid #e4e7ec;
  border-radius: 12px;
  overflow: hidden;
}

.eq-mc-footer__info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 12px;
  color: var(--eq-text);
  line-height: 1.35;
  flex: 1;
}

.eq-mc-footer__info-item + .eq-mc-footer__info-item {
  border-left: 1.5px solid #e4e7ec;
}

.eq-mc-footer__info-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.eq-mc-footer__info-icon--blue   { background: rgba(39,87,245,.1); }
.eq-mc-footer__info-icon--yellow { background: rgba(245,158,11,.1); }

.eq-mc-footer__info-item strong { color: var(--eq-blue); }

.eq-mc-btn-respond {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--eq-coral);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(239,68,68,.35);
  transition: transform .18s, filter .18s, background .18s, box-shadow .18s;
}
.eq-mc-btn-respond:hover:not(:disabled)  { filter: brightness(1.06); transform: translateY(-1px); }
.eq-mc-btn-respond:active:not(:disabled) { transform: scale(.97); }
.eq-mc-btn-respond:disabled {
  background: #d1d5db;
  box-shadow: none;
  cursor: default;
  opacity: .65;
}
.eq-mc-btn-respond.is-next {
  background: var(--eq-blue);
  box-shadow: 0 4px 16px rgba(39,87,245,.35);
}

/* ════════════════════════════════════════════════════════════════════
   PANTALLA RESULTADOS — masterclass
   ════════════════════════════════════════════════════════════════════ */
.eq-mc-results {
  display: flex;
  flex-direction: column;
  background: var(--eq-mc-bg);
}

.eq-mc-results-body {
  flex: 1;
  padding: 32px 32px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.eq-mc-results__logo-wrap {
  position: relative;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.eq-mc-results__badge-img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  animation: eq-bounce-in .65s cubic-bezier(.2,.9,.2,1) both .1s;
  filter: drop-shadow(0 8px 24px rgba(11,30,87,.2));
  position: relative;
}

.eq-mc-results__badge-fallback {
  font-size: 110px;
  line-height: 1;
  display: block;
  margin-bottom: 16px;
  animation: eq-bounce-in .65s cubic-bezier(.2,.9,.2,1) both .1s;
}

.eq-mc-results__title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 900;
  color: var(--eq-mc-navy);
  margin: 0 0 10px;
  line-height: 1.15;
}

.eq-mc-results__deco {
  color: var(--eq-blue);
  font-size: 0.65em;
  opacity: .55;
  vertical-align: middle;
}

.eq-mc-results__subtitle {
  font-size: 16px;
  font-weight: 700;
  color: var(--eq-mc-navy);
  margin: 0 0 6px;
}

.eq-mc-results__msg {
  font-size: 14px;
  color: var(--eq-muted);
  margin: 0 0 28px;
  line-height: 1.5;
  padding-bottom: 20px;
}

/* Stat cards */
.eq-mc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  margin-bottom: 28px;
}

.eq-mc-stat {
  background: #fff;
  border: 1.5px solid #e4e7ec;
  border-radius: 14px;
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.eq-mc-stat__icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.eq-mc-stat__icon--blue         { background: rgba(39,87,245,.1); }
.eq-mc-stat__icon--green        { background: rgba(16,185,129,.12); }
.eq-mc-stat__icon--red          { background: rgba(239,68,68,.1); }
.eq-mc-stat__icon--green-circle {
  background: #16a34a;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}
.eq-mc-stat__icon--red-circle   {
  background: #ef4444;
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.eq-mc-stat__body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.eq-mc-stat__body strong {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.1;
  color: #0b2766;
}
.eq-mc-stat__body strong.is-correct { color: #16a34a; }
.eq-mc-stat__body strong.is-wrong   { color: var(--eq-red); }

.eq-mc-stat__label {
  font-size: 13px;
  font-weight: 700;
  color: #0b2766;
  line-height: 1.25;
}
.eq-mc-stat__label.is-correct { color: #16a34a; }

.eq-mc-stat__sub {
  font-size: 12px;
  color: #0b2766;
  line-height: 1.25;
}

/* Action buttons */
.eq-mc-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
  width: 100%;
}

.eq-mc-btn__ico {
  font-style: normal;
}

.eq-mc-btn-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 20px;
  background: var(--eq-coral);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(239,68,68,.3);
  transition: transform .18s, filter .18s;
}
.eq-mc-btn-badge:hover { filter: brightness(1.06); transform: translateY(-1px); }

.eq-mc-btn-retry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 20px;
  background: #fff;
  color: var(--eq-blue);
  border: 2px solid var(--eq-blue);
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s, transform .18s;
}
.eq-mc-btn-retry:hover { background: rgba(39,87,245,.05); transform: translateY(-1px); }

/* Bottom note */
.eq-mc-results__note {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(39,87,245,.07);
  border: 1px solid rgba(39,87,245,.15);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--eq-text);
  text-align: left;
  width: 100%;
  line-height: 1.5;
}

.eq-mc-results__note-icon {
  font-size: 18px;
  flex-shrink: 0;
}

/* Confetti reuses .eq-end class so point it at .eq-mc-results-body */
.eq-mc-results-body .eq-confetti-piece { position: absolute; }

/* ── Email en intro masterclass ─────────────────────────────────── */
.eq-mc-intro__email-label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  margin: 0 0 10px;
  text-align: center;
}

.eq-mc-intro__email-wrap {
  width: 100%;
  max-width: 440px;
  margin: 0 auto 16px;
  text-align: left;
}

.eq-mc-intro__email {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 18px;
  background: rgba(255,255,255,.13);
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  color: #fff;
  outline: none;
  transition: border-color .2s, background .2s;
}
.eq-mc-intro__email::placeholder { color: rgba(255,255,255,.5); }
.eq-mc-intro__email:focus {
  border-color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.2);
}

.eq-mc-intro__email-err {
  color: #fca5a5;
  font-size: 13px;
  margin: 6px 0 0;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .eq-mc-intro { padding: 32px 20px 36px; }
  .eq-mc-intro__pills { grid-template-columns: repeat(2, 1fr); }
  .eq-mc-intro__badge { width: 120px; height: 120px; }
  .eq-mc-hud { padding: 12px 16px; }
  .eq-mc-hud__right { display: none; }
  .eq-mc-body { padding: 16px; }
  .eq-mc-card { padding: 20px 18px 18px; }
  .eq-mc-q-title { font-size: 22px; }
  .eq-mc-footer { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 16px; }
  .eq-mc-footer__info { display: none; }
  .eq-mc-btn-respond { text-align: center; justify-content: center; }
  .eq-mc-stats { grid-template-columns: 1fr; }
  .eq-mc-actions { grid-template-columns: 1fr; }
  .eq-mc-results-body { padding: 24px 16px 28px; }
  .eq-mc-results__badge-img { width: 130px; height: 130px; }
}
