.quiz-card {
  max-width: 1024px;
  margin: 32px auto;
  box-shadow: 0 0px 15px rgba(0, 0, 0, 0.2);
  border-radius: 30px;
  background: #fff;
  background: #f9f9f9;
  font-family: "Mundial", Sans-serif;
}

.quiz-step {
  position: relative;
  display: grid;
  grid-template-columns: 35% 65%;
  gap: 0;
  min-height: 420px; /* opcional para que se vea como “card” */
}

.quiz-step__content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
}

.quiz-step__media {
  border-radius: 30px;
  overflow: hidden;
}

.quiz-image {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.quiz-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quiz-step__media--result .quiz-image img {
  object-fit: contain;
}

.quiz-title,
.quiz-cta,
.quiz-legal {
  color: #0d579f;
}

.quiz-text {
  color: #0d579f;
}

.quiz-text p {
  margin: 10px 0;
}
.quiz-text b {
  font-weight: 700;
}

.quiz-title {
  font-weight: 700;
  font-size: 26px;
  line-height: 1.2;
  margin: 10px 0;
}
.quiz-text {
  font-size: 16px;
  line-height: 1.6;
  margin: 8px 0;
}
.quiz-cta {
  font-size: 16px;
  line-height: 1.6;
  margin: 12px 0;
}
.quiz-legal {
  font-size: 12px;
  opacity: 0.8;
  line-height: 1.5;
  margin-top: 14px;
}

.quiz-progress {
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 10px;
}

.quiz-error {
  background: rgba(255, 0, 0, 0.08);
  border: 1px solid rgba(255, 0, 0, 0.18);
  padding: 10px 12px;
  border-radius: 10px;
  margin: 10px 0 14px;
}

.quiz-form {
  display: grid;
  gap: 12px;
}
.quiz-field span {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}
input[type="text"].quiz-input,
input[type="email"].quiz-input,
input[type="date"].quiz-input,
select.quiz-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.16);
}

input::placeholder {
  color: #000;
}

.quiz-fieldset {
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 10px;
  padding: 10px 12px;
}
.quiz-fieldset legend {
  padding: 0 6px;
  font-size: 14px;
}

.quiz-options {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.quiz-radio,
.quiz-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
}

/* ✅ Range horizontal (tipo checkbox visual) */
.quiz-range-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  border-radius: 12px;
  padding: 12px;
}

.quiz-range-edge {
  font-size: 13px;
  opacity: 0.85;
}

.quiz-range-edge:last-child {
  text-align: right;
}

.quiz-range-items {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.quiz-range-item {
  cursor: pointer;
  user-select: none;
}

.quiz-range-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.quiz-range-box {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  font-size: 14px;
  font-weight: bold;
}

/* estado seleccionado */
.quiz-range-item input:checked + .quiz-range-box {
  background: #0d579f;
  color: #fff;
  border-color: #0d579f;
}

.quiz-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

button.quiz-btn {
  padding: 12px;
  border: none;
  border-radius: 50%;
  background: #0d579f;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;

  &:hover {
    background: #ff8300;
  }

  svg {
    width: 24px;
    height: 24px;
  }
}

button.quiz-btn--result {
  border-radius: 12px;
  padding: 12px 16px;
}

.quiz-btn--ghost {
  background: #fff;
  color: #111;
}

.quiz-result {
  padding: 12px 14px;
  border-radius: 12px;
  margin-top: 10px;
  color: #0d579f;
}

.quiz-result__group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  font-size: 20px;
}

.quiz-result__score {
  border-right: 2px solid #ff8300;
  padding-right: 8px;
}
.quiz-result__title {
  font-weight: bold;
}

.quiz-floating-cta {
  position: absolute;
  top: 50%;
  right: 0px;
  transform: translate(50%, -50%);
  z-index: 5;
  width: 100px;
  min-height: 100px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  text-decoration: none !important;
  background: rgb(13, 87, 159);
  color: rgb(255, 255, 255);
  border-radius: 50%;
  box-shadow: rgba(0, 0, 0, 0.18) 0px 10px 25px;
}

.quiz-floating-cta__icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.quiz-floating-cta__text {
  font-size: 10px;
  line-height: 1.2;
}

.quiz-step__result {
  padding: 22px 42px 22px 22px;
}

.quiz-hero-banner {
  width: 100vw;
  margin-top: 32px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  min-height: 320px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;

  display: flex;
  align-items: center;
  padding: 16px;
  justify-content: end;
}

.quiz-hero-banner__content {
  width: 100%;
  max-width: 1200px;
  color: #fff;
  display: flex;
  justify-content: flex-end;
}

.quiz-hero-banner__content-inner {
  width: min(480px, 100%);
}

.quiz-hero-banner__content-inner a {
  background: #fff;
  padding: 5px 10px;
  color: #0d579f;
  text-decoration: none !important;
  margin: 0 auto;
  display: table;
}

.quiz-hero-banner__title {
  text-align: center;
  font-size: 22px;
}

/* =========================
   Responsive (Mobile)
   ========================= */
@media (max-width: 767px) {
  .quiz-card {
    max-width: 100%;
  }

  .quiz-step {
    grid-template-columns: 1fr; /* apila */
    min-height: auto;
  }

  .quiz-step__media {
    padding: 0; /* que la imagen use todo el ancho */
  }

  .quiz-image {
    margin-bottom: 0;
    height: 400px;
  }

  .quiz-step__content {
    border-left: none; /* ya no hay separación lateral */
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-top-right-radius: 0;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    padding: 18px;
  }

  .quiz-title {
    font-size: 22px;
  }
  .quiz-text,
  .quiz-cta {
    font-size: 15px;
  }

  input.quiz-input {
    font-size: 16px; /* evita zoom en iOS */
    padding: 12px 12px;
  }

  .quiz-actions {
    gap: 10px;
  }

  .quiz-btn {
    width: 100%;
    padding: 12px 14px;
  }

  /* Range horizontal: que no se rompa */
  .quiz-range-row {
    grid-template-columns: 1fr; /* labels arriba/abajo */
    gap: 10px;
  }
  .quiz-range-edge:last-child {
    text-align: left;
  }
  .quiz-range-items {
    justify-content: space-between;
  }
  .quiz-range-box {
    width: 34px;
    height: 34px;
  }
  .quiz-floating-cta {
    top: 100%;
    right: 50%;
  }
  .quiz-step {
    padding-bottom: 70px;
  }
}

/* =========================
   Tablet (ajuste suave)
   ========================= */
@media (min-width: 768px) and (max-width: 1024px) {
  .quiz-card {
    max-width: 100%;
  }

  .quiz-step {
    grid-template-columns: 42% 58%;
    min-height: 380px;
  }

  .quiz-step__content {
    padding: 22px;
  }
}

@media (max-width: 767px) {
  .quiz-hero-banner {
    min-height: 240px;
    margin-top: 20px;
  }

  .quiz-hero-banner__overlay {
    min-height: 240px;
    padding: 24px 16px;
  }

  .quiz-hero-banner__content {
    justify-content: flex-start;
  }

  .quiz-hero-banner__content-inner {
    width: 100%;
  }
}
