/* ============================================================================
   quiz.css — Estilos del wizard de diagnóstico
   Visas de Turismo · Aliado Visas / Global Assist Group SAS
   Mobile-first. Hereda variables de visade-pages.css (--navy, --gold, etc.)
   ============================================================================ */

.quiz-wrap {
  background: linear-gradient(180deg, #f7f3eb 0%, #faf9f6 100%);
  min-height: calc(100vh - 60px);
  padding: 1.5rem 1rem 3rem;
}

.quiz-container {
  max-width: 720px;
  margin: 0 auto;
}

.quiz-noscript {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #78350f;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ───── Card base ───── */

.quiz-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 18px 55px rgba(7, 20, 40, 0.10);
  padding: 1.6rem 1.3rem;
  animation: quizFadeIn 0.35s ease-out;
}

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

@media (prefers-reduced-motion: reduce) {
  .quiz-card { animation: none; }
}

/* ───── Tipografía base ───── */

.quiz-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-soft);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.quiz-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 0.8rem;
}

.quiz-q-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.25rem, 4.2vw, 1.6rem);
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 1.1rem;
  margin-top: 0.4rem;
}

.quiz-subtitle {
  color: var(--slate);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.7rem;
}

.quiz-lede {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

/* ───── Intro ───── */

.quiz-intro-bullets {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.quiz-intro-bullets li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.22);
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  font-size: 0.95rem;
  color: var(--text);
}

.quiz-intro-bullets .b-emoji {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.quiz-intro-foot {
  margin-top: 1.2rem;
  font-size: 0.88rem;
  color: var(--slate);
  text-align: center;
}

.quiz-intro-foot a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
}

/* ───── Progreso ───── */

.quiz-progress {
  margin-bottom: 1.4rem;
}

.quiz-progress-track {
  height: 8px;
  background: rgba(11, 29, 58, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.quiz-progress-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--slate);
  font-weight: 500;
}

/* ───── Opciones (single + multiple) ───── */

.quiz-options {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  border: 2px solid rgba(11, 29, 58, 0.1);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.12s;
  background: #fff;
  min-height: 56px;
  user-select: none;
}

.quiz-option:hover { border-color: var(--gold); }

.quiz-option:focus-within {
  outline: 3px solid rgba(201, 168, 76, 0.4);
  outline-offset: 2px;
}

.quiz-option.is-selected {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.10);
}

.quiz-option input[type="radio"],
.quiz-option input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(11, 29, 58, 0.3);
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
}

.quiz-option input[type="checkbox"] { border-radius: 6px; }

.quiz-option input[type="radio"]:checked,
.quiz-option input[type="checkbox"]:checked {
  border-color: var(--gold);
  background: var(--gold);
}

.quiz-option input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: #fff;
  border-radius: 50%;
}

.quiz-option input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px; top: 2px;
  width: 6px; height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.quiz-option-label {
  font-size: 0.98rem;
  line-height: 1.4;
  color: var(--text);
  font-weight: 500;
}

/* ───── Compound (sub-preguntas en una pantalla) ───── */

.quiz-compound .quiz-options { margin-bottom: 1.4rem; }

.quiz-sub-title {
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0.4rem 0 0.7rem;
  line-height: 1.45;
}

/* ───── Campos texto / select ───── */

.quiz-fields {
  display: grid;
  gap: 0.95rem;
  margin-bottom: 0.5rem;
}

.quiz-field {
  display: grid;
  gap: 0.4rem;
}

.quiz-field-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
}

.quiz-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid rgba(11, 29, 58, 0.12);
  border-radius: 12px;
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  transition: border-color 0.18s, box-shadow 0.18s;
  min-height: 52px;
}

.quiz-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.18);
}

.quiz-field-error {
  color: #b84c4c;
  font-size: 0.85rem;
  font-weight: 500;
  min-height: 1.1em;
}

.quiz-field-helper {
  font-size: 0.82rem;
  color: var(--slate);
  margin: 0;
  line-height: 1.45;
}

/* ───── Componente phone-country (país + número) ───── */

.quiz-phone-country {
  display: flex;
  gap: 0.5rem;
}

.quiz-phone-country-select {
  flex: 0 0 42%;
  max-width: 200px;
}

.quiz-phone-country-input {
  flex: 1 1 auto;
  min-width: 0;  /* permite shrink en flex sin overflow */
}

@media (max-width: 480px) {
  .quiz-phone-country {
    flex-direction: column;
    gap: 0.4rem;
  }
  .quiz-phone-country-select {
    flex: 0 0 auto;
    max-width: none;
  }
}

/* ───── Consent ───── */

.quiz-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 0.95rem;
  background: rgba(11, 29, 58, 0.04);
  border-radius: 12px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text);
  cursor: pointer;
  margin: 0.6rem 0 0.4rem;
}

.quiz-consent-cb {
  margin-top: 0.18rem;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--gold);
  cursor: pointer;
}

.quiz-consent a { color: var(--navy); text-decoration: underline; }

/* ───── Botones ───── */

.quiz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 14px;
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.95rem 1.4rem;
  min-height: 52px;
  transition: transform 0.12s, box-shadow 0.18s, background 0.18s, color 0.18s;
  text-decoration: none;
  line-height: 1.2;
}

.quiz-btn:disabled { opacity: 0.6; cursor: wait; }

.quiz-btn-primary {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  box-shadow: 0 14px 30px rgba(7, 20, 40, 0.20);
}

.quiz-btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(7, 20, 40, 0.28);
}

.quiz-btn-ghost {
  background: transparent;
  color: var(--slate);
  border: 1px solid rgba(11, 29, 58, 0.15);
}

.quiz-btn-ghost:hover { color: var(--navy); border-color: var(--navy); }

.quiz-btn-pay {
  width: 100%;
  margin-top: 0.8rem;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy);
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 18px 38px rgba(201, 168, 76, 0.35);
}

.quiz-btn-pay:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(201, 168, 76, 0.45);
}

.quiz-btn-whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 14px 28px rgba(37, 211, 102, 0.32);
}

.quiz-btn-whatsapp:hover { background: #1ebe5a; transform: translateY(-2px); }

/* ───── Navegación entre preguntas ───── */

.quiz-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.quiz-nav-row > .quiz-btn { flex: 0 1 auto; }

@media (max-width: 480px) {
  .quiz-nav-row .quiz-btn-primary { flex: 1 1 auto; }
}

/* ───── Errores ───── */

.quiz-error {
  color: #b84c4c;
  font-size: 0.92rem;
  font-weight: 500;
  margin-top: 0.6rem;
  min-height: 1.2em;
  line-height: 1.4;
}

/* ───── Pantalla de resultado ───── */

.quiz-result-header {
  text-align: center;
  margin-bottom: 1.4rem;
}

.quiz-result-pill {
  display: inline-block;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
  margin-bottom: 0.9rem;
}

.quiz-result-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.4rem, 4.6vw, 1.9rem);
  line-height: 1.25;
  color: var(--navy);
  margin: 0 0 0.7rem;
}

.quiz-result-title strong {
  display: block;
  color: var(--navy);
  margin-top: 0.2rem;
}

.quiz-result-empath {
  color: var(--slate);
  font-size: 0.96rem;
  line-height: 1.65;
  max-width: 52ch;
  margin: 0 auto;
}

.quiz-result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}

.quiz-vstat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(11, 29, 58, 0.04);
  border-radius: 14px;
  padding: 0.95rem 0.6rem;
  gap: 0.25rem;
}

.quiz-vstat-emoji { font-size: 1.4rem; }

.quiz-vstat-value {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  color: var(--navy);
  font-weight: 700;
  line-height: 1;
}

.quiz-vstat-label {
  font-size: 0.78rem;
  color: var(--slate);
  line-height: 1.35;
}

@media (max-width: 480px) {
  .quiz-result-grid { grid-template-columns: 1fr; }
  .quiz-vstat { flex-direction: row; gap: 0.7rem; padding: 0.8rem 1rem; text-align: left; }
  .quiz-vstat-value { font-size: 1.5rem; }
}

.quiz-score-block {
  background: rgba(201, 168, 76, 0.07);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  text-align: center;
  margin-bottom: 1.4rem;
}

.quiz-score-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.quiz-score-value {
  font-family: "Playfair Display", serif;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.quiz-score-value strong {
  font-size: 2.4rem;
  line-height: 1;
}

.quiz-score-value span {
  font-size: 1rem;
  color: var(--slate);
}

.quiz-score-track {
  height: 10px;
  background: rgba(11, 29, 58, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.quiz-score-bar {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s ease;
}

/* ───── Upsell card ───── */

.quiz-upsell {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  border-radius: 20px;
  padding: 1.4rem 1.3rem;
  margin-bottom: 1rem;
  box-shadow: 0 22px 50px rgba(7, 20, 40, 0.28);
  position: relative;
  overflow: hidden;
}

.quiz-upsell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(201, 168, 76, 0.25), transparent 55%);
  pointer-events: none;
}

.quiz-upsell > * { position: relative; z-index: 1; }

.quiz-upsell-eyebrow {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 0.95rem;
  line-height: 1.45;
}

.quiz-upsell-title {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
  color: #fff;
}

.quiz-upsell-icon { font-size: 1.6rem; }

.quiz-upsell-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  display: grid;
  gap: 0.45rem;
}

.quiz-upsell-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.94rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.quiz-upsell-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold-light);
  font-weight: 700;
}

.quiz-upsell-price {
  font-family: "Playfair Display", serif;
  text-align: center;
  margin-bottom: 0.4rem;
}

.quiz-upsell-amount {
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
}

.quiz-upsell-currency {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ───── Bloque de renovación (visa vigente) ───── */

.quiz-renovacion {
  text-align: center;
  border: 2px solid var(--gold);
  border-radius: 18px;
  padding: 1.3rem 1.2rem;
  background: rgba(201, 168, 76, 0.08);
  margin-bottom: 1rem;
}

.quiz-renovacion-icon {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.quiz-renovacion h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 0.45rem;
}

.quiz-renovacion p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

/* ───── Trust row ───── */

.quiz-trust-row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  text-align: center;
  margin-top: 1rem;
  padding: 0.95rem;
  background: rgba(11, 29, 58, 0.04);
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--slate);
  line-height: 1.5;
}

@media (min-width: 600px) {
  .quiz-trust-row {
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
  }
}

.quiz-result-back {
  text-align: center;
  margin-top: 1.2rem;
}

/* ───── Variantes por categoría (color del header pill ya viene inline) ───── */

.quiz-result--solido   { border-top: 4px solid #10b981; }
.quiz-result--viable   { border-top: 4px solid #3b82f6; }
.quiz-result--desafios { border-top: 4px solid #f59e0b; }
.quiz-result--complejo { border-top: 4px solid #ef4444; }

/* ───── Tablet+ ───── */

@media (min-width: 720px) {
  .quiz-wrap { padding: 2.5rem 1.5rem 4rem; }
  .quiz-card { padding: 2.2rem 2rem; }
  .quiz-options { gap: 0.75rem; }
  .quiz-option { padding: 1.05rem 1.15rem; }
}

/* ============================================================================
   diagnostico-resultado.html — pantalla post-pago
   ============================================================================ */

.dx-card { /* hereda look base de quiz-card */ }

.dx-status {
  text-align: center;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.dx-status--info    { background: rgba(59, 130, 246, 0.1);  color: #1e3a8a; }
.dx-status--success { background: rgba(16, 185, 129, 0.12); color: #065f46; }
.dx-status--warn    { background: rgba(245, 158, 11, 0.12); color: #78350f; }
.dx-status--error   { background: rgba(239, 68, 68, 0.10);  color: #991b1b; }

.dx-loader {
  margin: 1.4rem auto;
  width: 48px;
  height: 48px;
  border: 4px solid rgba(11, 29, 58, 0.12);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: dxSpin 0.9s linear infinite;
}

@keyframes dxSpin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .dx-loader { animation: none; border-top-color: rgba(11, 29, 58, 0.4); }
}

.dx-summary {
  display: grid;
  gap: 0.8rem;
  margin: 1.2rem 0 1.4rem;
}

.dx-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(11, 29, 58, 0.04);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  gap: 1rem;
}

.dx-summary-item dt { color: var(--slate); }
.dx-summary-item dd { font-weight: 700; color: var(--navy); margin: 0; text-align: right; }

.dx-download-btn {
  width: 100%;
  font-size: 1.05rem;
  padding: 1.1rem 1.4rem;
  margin: 0.5rem 0;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy);
  font-weight: 700;
  border-radius: 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  box-shadow: 0 18px 38px rgba(201, 168, 76, 0.35);
  transition: transform 0.12s, box-shadow 0.18s;
}

.dx-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(201, 168, 76, 0.45);
}

.dx-email-note {
  font-size: 0.88rem;
  color: var(--slate);
  text-align: center;
  margin: 0.7rem 0 1.2rem;
  line-height: 1.55;
}

.dx-next-steps {
  background: rgba(201, 168, 76, 0.08);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin: 1.2rem 0;
}

.dx-next-steps h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.dx-next-steps ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.dx-next-steps li {
  padding-left: 1.4rem;
  position: relative;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text);
}

.dx-next-steps li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.dx-premium-cta {
  border: 2px solid var(--navy);
  border-radius: 16px;
  padding: 1.2rem 1.2rem;
  text-align: center;
  background: #fff;
  margin-top: 1.2rem;
}

.dx-premium-cta h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.dx-premium-cta p {
  color: var(--text);
  font-size: 0.93rem;
  line-height: 1.55;
  margin-bottom: 0.95rem;
}

/* ============================================================================
   Estilos del rediseño v3 del resultado vago (Fase D post-launch)
   ============================================================================ */

/* ───── Categoría destacada (sin score numérico) ───── */
.quiz-result-categoria {
  margin: 0.9rem 0 1rem;
  padding: 0.85rem 1.1rem;
  background: rgba(11, 29, 58, 0.04);
  border-radius: 10px;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  letter-spacing: 0.01em;
}

.quiz-result-empath {
  color: var(--slate);
  font-size: 0.96rem;
  line-height: 1.65;
  margin: 0 auto 0.5rem;
  max-width: 56ch;
}

/* ───── Upsell card con promo (rediseño Fase D) ───── */

.quiz-upsell-promo-badge {
  display: inline-block;
  background: #ff6b35;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.quiz-upsell-price-block {
  text-align: center;
  font-family: "Playfair Display", serif;
  margin: 0.5rem 0 0.4rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.quiz-upsell-price-regular {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: line-through;
  font-weight: 500;
}

.quiz-upsell-price-promo {
  font-size: 2.6rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.quiz-upsell-price-currency {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
}

.quiz-upsell-savings {
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffe082;
  margin-bottom: 0.5rem;
}

.quiz-upsell-cupos-badge {
  display: block;
  text-align: center;
  background: rgba(255, 107, 53, 0.18);
  color: #ffd6b3;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  margin-bottom: 0.95rem;
}

/* ───── Medios de pago (PSE + tarjeta) ───── */

.quiz-medios-pago {
  text-align: center;
  margin-top: 0.95rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.quiz-medios-pago-label {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

.quiz-medios-pago-icons {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: center;
}

.quiz-medios-pago-icon {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 5px;
  padding: 4px 6px;
  height: 28px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
}

.quiz-medios-pago-icon svg {
  height: 100%;
  width: auto;
  display: block;
}

.quiz-medios-pago-text {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
}

/* ───── CTA secundario: asesoría completa por WhatsApp ───── */

.quiz-asesoria-alt {
  margin: 1.2rem 0;
  padding: 1.05rem 1rem;
  border: 1px dashed rgba(11, 29, 58, 0.18);
  border-radius: 14px;
  text-align: center;
  background: rgba(255, 255, 255, 0.6);
}

.quiz-asesoria-alt-text {
  font-size: 0.92rem;
  color: var(--text);
  margin: 0 0 0.85rem;
  line-height: 1.55;
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}

.quiz-dropdown-wrap {
  margin: 0.5rem 0 0.2rem;
}
.quiz-dropdown {
  width: 100%;
  padding: 14px 38px 14px 16px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid rgba(11, 29, 58, 0.2);
  border-radius: 12px;
  background-color: #fff;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'><path fill='none' stroke='%230b1d3a' stroke-width='2' d='M1 1l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.quiz-dropdown:focus {
  outline: none;
  border-color: #c9a84c;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.18);
}

/* ============================================================
   Barra de favorabilidad — siempre en zona positiva
   ============================================================ */
.quiz-fav-wrap {
  margin: 1rem auto 1.4rem;
  max-width: 520px;
  text-align: center;
}
.quiz-fav-emoji {
  font-size: 1.18rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  color: #0b1d3a;
  margin-bottom: 0.6rem;
  letter-spacing: 0.01em;
}
.quiz-fav-track {
  position: relative;
  height: 18px;
  border-radius: 99px;
  background: linear-gradient(90deg,
    #fbbf24 0%,
    #fbbf24 33%,
    #34d399 33%,
    #34d399 66%,
    #10b981 66%,
    #10b981 100%);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.12);
  overflow: visible;
}
.quiz-fav-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(255,255,255,0.42) 0%, rgba(255,255,255,0) 80%);
  pointer-events: none;
  transition: width 1s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.quiz-fav-marker {
  position: absolute;
  top: 50%;
  width: 24px;
  height: 24px;
  background: #fff;
  border: 3px solid #0b1d3a;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18), 0 0 0 4px rgba(255, 255, 255, 0.5);
  animation: quizFavPulse 1.6s ease-in-out infinite;
  transition: left 1s cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: 2;
}
@keyframes quizFavPulse {
  0%, 100% { box-shadow: 0 4px 10px rgba(0,0,0,0.18), 0 0 0 4px rgba(255,255,255,0.5); }
  50%      { box-shadow: 0 4px 14px rgba(0,0,0,0.24), 0 0 0 8px rgba(201, 168, 76, 0.32); }
}
.quiz-fav-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.quiz-fav-msg {
  margin: 0.85rem auto 0;
  font-size: 0.94rem;
  color: #334155;
  line-height: 1.5;
  max-width: 46ch;
  font-style: italic;
}

/* ============================================================
   Bloque de planes en el resultado del quiz — full-size cards
   Mismo peso visual que el upsell del diagnóstico.
   ============================================================ */
.quiz-planes-block {
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(11, 29, 58, 0.1);
}
.quiz-planes-divider {
  text-align: center;
  margin-bottom: 0.8rem;
}
.quiz-planes-divider span {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-size: 1.18rem;
  font-weight: 600;
  color: #0b1d3a;
  background: #fff;
  padding: 0 14px;
}
.quiz-planes-intro {
  text-align: center;
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.55;
  max-width: 56ch;
  margin: 0 auto 1.2rem;
}
.quiz-planes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.85rem;
  align-items: stretch;
}
@media (max-width: 760px) {
  .quiz-planes-grid { grid-template-columns: 1fr; }
}
.quiz-plan-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(11, 29, 58, 0.12);
  border-radius: 14px;
  padding: 1.4rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.quiz-plan-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}
.quiz-plan-card.is-featured {
  border: 2px solid #c9a84c;
  background: linear-gradient(180deg, #fffdf6 0%, #fff 60%);
  box-shadow: 0 14px 32px rgba(201, 168, 76, 0.22);
  transform: translateY(-4px);
}
.quiz-plan-card.is-featured:hover {
  transform: translateY(-7px);
}
.quiz-plan-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #c9a84c;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 99px;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(201, 168, 76, 0.4);
}
.quiz-plan-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #0b1d3a;
  margin: 0 0 4px;
}
.quiz-plan-tagline {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0 0 0.9rem;
  line-height: 1.45;
}
.quiz-plan-price-block {
  text-align: center;
  padding: 0.7rem 0 0.85rem;
  border-top: 1px solid rgba(11, 29, 58, 0.08);
  border-bottom: 1px solid rgba(11, 29, 58, 0.08);
  margin-bottom: 0.85rem;
}
.quiz-plan-price-current {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: #0b1d3a;
  line-height: 1;
}
.quiz-plan-price-current small {
  font-size: 0.42em;
  font-weight: 500;
  color: #64748b;
  margin-left: 4px;
}
.quiz-plan-price-compare {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: #94a3b8;
  text-decoration: line-through;
}
.quiz-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 0.95rem;
  flex-grow: 1;
}
.quiz-plan-features li {
  position: relative;
  padding: 0.42rem 0 0.42rem 1.5rem;
  font-size: 0.85rem;
  color: #334155;
  line-height: 1.45;
  border-bottom: 1px dashed rgba(11, 29, 58, 0.08);
}
.quiz-plan-features li:last-child { border-bottom: none; }
.quiz-plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0.2rem;
  top: 0.42rem;
  color: #16a34a;
  font-weight: 700;
}
.quiz-plan-cta {
  width: 100%;
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 11px;
  background: #0b1d3a;
  color: #fff !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.quiz-plan-cta:hover {
  transform: translateY(-2px);
  background: #153056;
  box-shadow: 0 10px 22px rgba(11, 29, 58, 0.3);
}
.quiz-plan-cta.is-featured-cta {
  background: linear-gradient(135deg, #c9a84c 0%, #e2c97e 100%);
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(201, 168, 76, 0.36);
}
.quiz-plan-cta.is-featured-cta:hover {
  box-shadow: 0 12px 28px rgba(201, 168, 76, 0.5);
}

.quiz-btn-link-soft {
  display: block;
  text-align: center;
  margin-top: 1rem;
  color: #475569;
  font-size: 0.88rem;
  text-decoration: underline;
  text-decoration-color: rgba(11, 29, 58, 0.25);
  text-underline-offset: 3px;
}
.quiz-btn-link-soft:hover { color: #0b1d3a; }

/* Mini cards legacy (compatibilidad si todavía se usan) */
.quiz-plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
  margin: 0.85rem 0 0.5rem;
}
@media (max-width: 480px) {
  .quiz-plans-grid { grid-template-columns: 1fr; }
}
.quiz-plan-mini {
  display: block;
  position: relative;
  padding: 0.85rem 0.55rem;
  background: #fff;
  border: 1px solid rgba(11, 29, 58, 0.12);
  border-radius: 10px;
  text-decoration: none;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
}
.quiz-plan-mini:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.1);
  border-color: rgba(201, 168, 76, 0.5);
}
.quiz-plan-mini.is-featured {
  border: 2px solid #c9a84c;
  background: linear-gradient(180deg, #fffdf6 0%, #fff 80%);
  box-shadow: 0 8px 20px rgba(201, 168, 76, 0.18);
}
.quiz-plan-mini-ribbon {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  background: #c9a84c;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 99px;
  text-transform: uppercase;
  white-space: nowrap;
}
.quiz-plan-mini-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #0b1d3a;
  margin-bottom: 4px;
}
.quiz-plan-mini-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0b1d3a;
}
.quiz-plan-mini-compare {
  font-size: 0.74rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.quiz-btn-whatsapp-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  border: 2px solid #25d366;
  background: transparent;
  color: #1ebe5a;
  font-family: "DM Sans", sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 0.85rem 1.2rem;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  min-height: 48px;
  transition: background 0.18s, color 0.18s;
}

.quiz-btn-whatsapp-secondary:hover {
  background: #25d366;
  color: #fff;
}
