* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  background: #f2f2f2;
}

#quiz {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 24px;
}

#quiz.has-fixed-button {
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

.hero-text {
  text-align: center;
}

.headline {
  color: #2f6fed;
  font-size: 26px;
  line-height: 1.25;
  margin: 0 0 12px;
}

.highlight {
  display: inline-block;
  background: #ffd400;
  color: #111;
  font-weight: 700;
  font-size: 15px;
  padding: 4px 10px;
  margin: 0 0 20px;
}

.before-after img {
  width: 100%;
  border-radius: 16px;
  display: block;
}

.section-title {
  text-align: center;
  font-size: 22px;
  margin: 24px 0 4px;
}

.section-sub {
  text-align: center;
  color: #666;
  margin: 0 0 16px;
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.option-btn {
  background: #4f7ff0;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.option-btn:hover {
  background: #3d6ce0;
}

.info-box {
  background: #eaf1ff;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 16px;
}

.time-estimate {
  text-align: center;
  color: #4a4a4a;
  font-size: 13px;
}

/* Barra de progreso */
.progress-track {
  height: 8px;
  background: #dbe3fb;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 60px;
}

.progress-fill {
  height: 100%;
  background: #2f6fed;
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Bloco de pergunta */
.question-title {
  text-align: center;
  font-size: 22px;
  margin: 0 0 6px;
}

.question-sub {
  text-align: center;
  color: #777;
  margin: 0 0 20px;
}

.option-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.option-list--grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.option-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  position: relative;
  min-width: 0;
}

.option-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.opt-check {
  width: 18px;
  height: 18px;
  border: 2px solid #cfcfcf;
  border-radius: 50%;
  flex-shrink: 0;
}

.option-list--grid .opt-check {
  border-radius: 50%;
}

.option-card input[type="checkbox"] + .opt-check {
  border-radius: 4px;
}

.option-card.is-selected .opt-check,
.option-card input:checked + .opt-check {
  border-color: #2f6fed;
  background: #2f6fed;
}

.opt-label {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  color: #1a1a2e;
  overflow-wrap: break-word;
}

.opt-icon {
  font-size: 20px;
}

.opt-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

/* En grid (con imagen), las tarjetas se apilan: imagen arriba, texto abajo */
.option-list--grid .option-card {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 10px;
}

.option-list--grid .opt-thumb {
  order: -1;
  width: 100%;
  height: 90px;
  margin-left: 0;
}

.option-list--grid .opt-check {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #fff;
}

.option-list--grid .opt-label {
  font-size: 14px;
}

.continue-btn,
.cta-btn {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 480px;
  margin: 0 auto;
  z-index: 100;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);
  padding: 16px 24px calc(16px + env(safe-area-inset-bottom));
}

.continue-btn {
  width: 100%;
  background: #6f95f3;
  color: #fff;
  border: none;
  border-radius: 0;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

/* Etapa de carga (loading) */
.loading-block {
  text-align: center;
  padding: 30px 0 20px;
}

.loading-image {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 24px;
  display: block;
}

.loading-title {
  font-size: 20px;
  margin-bottom: 20px;
}

.loading-bar-track {
  height: 10px;
  background: #dbe3fb;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 8px;
}

.loading-bar-fill {
  height: 100%;
  width: 0%;
  background: #2f6fed;
  border-radius: 5px;
  transition: width 0.15s linear;
}

.loading-pct {
  font-weight: 700;
  color: #2f6fed;
  margin: 0 0 10px;
}

.loading-sub {
  color: #555;
  font-weight: 600;
}

.testimonios-track {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.testimonio-card {
  display: flex;
  gap: 12px;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  text-align: left;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.testimonio-foto {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonio-rol {
  display: block;
  font-size: 12px;
  color: #777;
  margin-bottom: 4px;
}

.testimonio-card p {
  margin: 0;
  font-size: 14px;
}

/* Etapa de transición / CTA (prueba social, beneficios) */
.info-cta-block {
  text-align: center;
}

.info-cta-images img {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 12px;
}

.info-cta-title {
  font-size: 20px;
  margin: 8px 0;
}

.info-cta-sub {
  color: #555;
  margin-bottom: 12px;
}

.info-cta-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.badge {
  background: #eaf1ff;
  color: #2f6fed;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
}

.info-cta-body {
  text-align: left;
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.5;
}

.info-cta-question {
  font-weight: 700;
  margin-top: 16px;
}

.cta-btn {
  width: 100%;
  background: #2f6fed;
  color: #fff;
  border: none;
  border-radius: 0;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.info-cta-footnote {
  color: #777;
  font-size: 13px;
}

/* Etapa de diagnóstico */
.diagnosis-block {
  text-align: center;
}

.diagnosis-warning {
  color: #d9534f;
  font-weight: 700;
  margin-bottom: 4px;
}

.diagnosis-label {
  color: #555;
  margin: 0;
}

.diagnosis-title {
  color: #2f6fed;
  font-size: 26px;
  margin: 4px 0 16px;
}

.diagnosis-sub {
  color: #555;
  margin-bottom: 12px;
}

.diagnosis-chart {
  margin-top: 28px;
  margin-bottom: 20px;
}

.diagnosis-chart-track {
  position: relative;
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(90deg, #2f6fed 0%, #ffb020 50%, #e0463c 100%);
  margin-bottom: 6px;
}

.diagnosis-chart-marker {
  position: absolute;
  top: -22px;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 700;
  color: #1a1a2e;
}

.diagnosis-chart-marker::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -20px;
  transform: translateX(-50%);
  width: 2px;
  height: 16px;
  background: #1a1a2e;
}

.diagnosis-chart-scale {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #999;
  margin-bottom: 8px;
}

.diagnosis-chart-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #555;
}

.diagnosis-stats {
  text-align: left;
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.6;
}

.diagnosis-reassurance {
  font-weight: 700;
  color: #2f6fed;
  margin-bottom: 12px;
}

/* Etapa final VSL */
.vsl-block {
  text-align: center;
  padding-top: 30px;
}

.vsl-title {
  font-size: 20px;
  margin-bottom: 20px;
}

.vturb-placeholder {
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #111;
  color: #999;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
