/* ==========================================================================
   Evaluación DISC — Estilos globales
   Paleta y lenguaje visual según propuesta de diseño.
   ========================================================================== */

:root {
  --bg: #F7F5F0;
  --surface: #FFFFFF;
  --text: #202020;
  --text-soft: #686868;
  --gold: #A67C35;
  --gold-dark: #896328;
  --gold-soft: #F3EADB;
  --red: #DC3838;
  --yellow: #EBAA19;
  --green: #21885A;
  --blue: #2879C7;
  --border: #E8E4DD;
  --danger: #C0392B;
  --success: #21885A;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(32, 32, 32, 0.05);
  --shadow-md: 0 10px 30px rgba(32, 32, 32, 0.08);
  --shadow-lg: 0 18px 50px rgba(32, 32, 32, 0.12);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Base
-------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2.5px solid var(--gold);
  outline-offset: 2px;
  border-radius: 6px;
}

.text-gold {
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   Encabezado y pie
-------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}

.brand__mark {
  display: inline-flex;
  gap: 3px;
}

.brand__dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
}

.brand__dot--d { background: var(--red); }
.brand__dot--i { background: var(--yellow); }
.brand__dot--s { background: var(--green); }
.brand__dot--c { background: var(--blue); }

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__text strong {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand__text small {
  font-size: 0.72rem;
  color: var(--text-soft);
}

.nav-step {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid #EBDDBF;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
}

.site-footer {
  margin-top: auto;
  padding: 1.6rem 1.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.site-footer p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Pantallas (navegación SPA)
-------------------------------------------------------------------------- */
.screen {
  display: none;
  animation: screenIn 0.45s var(--ease);
}

.screen.is-active {
  display: block;
}

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

@media (prefers-reduced-motion: reduce) {
  .screen,
  .screen.is-active {
    animation: none;
  }
  * {
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   Pantalla 1 — Inicio
-------------------------------------------------------------------------- */
.screen--home.is-active {
  display: flex;
}

.home {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 3.2rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3.5rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.home__title {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 4.2vw, 3.15rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.home__lead {
  margin: 0 0 1.9rem;
  font-size: 1.08rem;
  color: var(--text-soft);
  max-width: 34ch;
}

.disc-badges {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 1.5rem;
}

.disc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.disc-badge__circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: var(--shadow-sm);
}

.disc-badge--d .disc-badge__circle { background: var(--red); }
.disc-badge--i .disc-badge__circle { background: var(--yellow); }
.disc-badge--s .disc-badge__circle { background: var(--green); }
.disc-badge--c .disc-badge__circle { background: var(--blue); }

.disc-badge__label {
  font-size: 0.92rem;
  font-weight: 600;
}

.closed-banner {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: #FDF6F5;
  border: 1px solid #F3D7D4;
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 1.6rem;
  color: #7A2E28;
  max-width: 46ch;
}

.closed-banner__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--red);
}

.closed-banner__title {
  margin: 0 0 0.2rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.closed-banner__text {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.home__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
}

.home__note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-soft);
}

/* Composición visual derecha con curva dorada */
.home__visual {
  position: relative;
  min-height: 420px;
}

.home__visual-frame {
  position: relative;
  overflow: hidden;
  border-radius: 180px 24px 24px 180px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  background: #EDE6D8;
  z-index: 1;
}

.home__visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 8 / 9;
}

.home__curve {
  position: absolute;
  left: -34px;
  top: 8%;
  bottom: 8%;
  width: 90px;
  border-left: 3px solid var(--gold);
  border-radius: 50%;
  opacity: 0.65;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   Estructura de pasos (pantallas 2 a 6)
-------------------------------------------------------------------------- */
.step-wrap {
  max-width: 660px;
  margin: 0 auto;
  padding: 2.6rem 1.5rem 3.5rem;
}

.step-wrap--wide {
  max-width: 920px;
}

/* Indicador de pasos (registro) */
.step-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 1.6rem;
}

.step-progress__item {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-soft);
  background: var(--surface);
  border: 1.5px solid var(--border);
  flex-shrink: 0;
}

.step-progress__item.is-done {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.step-progress__item.is-current {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold-dark);
}

.step-progress__line {
  width: 42px;
  height: 1.5px;
  background: var(--border);
}

.step-progress__line.is-done {
  background: var(--gold);
}

/* --------------------------------------------------------------------------
   Tarjetas
-------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2.2rem 2.4rem;
}

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

.card__header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--gold-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.card__title {
  margin: 0 0 0.2rem;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card__subtitle {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Botones
-------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 10px;
  padding: 0.78rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    box-shadow 0.2s var(--ease), transform 0.15s var(--ease),
    border-color 0.2s var(--ease);
  text-decoration: none;
  line-height: 1.2;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 6px 16px rgba(166, 124, 53, 0.3);
}

.btn--primary:hover:not(:disabled) {
  background: var(--gold-dark);
  box-shadow: 0 8px 20px rgba(137, 99, 40, 0.36);
}

.btn--lg {
  padding: 0.95rem 1.9rem;
  font-size: 1.02rem;
}

.btn--ghost {
  background: transparent;
  color: var(--text-soft);
  padding-left: 0.6rem;
  padding-right: 0.6rem;
}

.btn--ghost:hover {
  color: var(--text);
}

.btn--outline {
  background: var(--surface);
  color: var(--gold-dark);
  border: 1.5px solid var(--gold);
}

.btn--outline:hover {
  background: var(--gold-soft);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.btn__arrow {
  transition: transform 0.2s var(--ease);
}

.btn:hover:not(:disabled) .btn__arrow {
  transform: translateX(3px);
}

.btn__icon {
  width: 18px;
  height: 18px;
}

.link-btn {
  background: none;
  border: none;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.4rem 0;
  margin-top: 1rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-btn:hover {
  color: var(--gold-dark);
}

/* --------------------------------------------------------------------------
   Formulario (pantalla 2)
-------------------------------------------------------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field__label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.field__required {
  color: var(--red);
}

.field__optional {
  color: var(--text-soft);
  font-weight: 400;
  font-size: 0.8rem;
}

.input-wrap {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #A39E94;
  pointer-events: none;
}

.input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #FDFCFA;
  padding: 0.75rem 0.95rem 0.75rem 2.6rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s var(--ease);
}

.input::placeholder {
  color: #B0AAA0;
}

.input:hover {
  border-color: #D8D2C7;
}

.input:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 3.5px rgba(166, 124, 53, 0.16);
}

.input.is-invalid {
  border-color: var(--danger);
  background: #FDF7F6;
}

.input.is-invalid:focus {
  box-shadow: 0 0 0 3.5px rgba(192, 57, 43, 0.14);
}

.field__error {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  color: var(--danger);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Instrucciones (pantalla 3)
-------------------------------------------------------------------------- */
.instruction-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin-bottom: 1.8rem;
}

.instruction-card {
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--border);
}

.instruction-card--most {
  background: #F1F9F4;
  border-color: #CBE7D6;
  border-left: 4px solid var(--green);
}

.instruction-card--least {
  background: #FDF4F3;
  border-color: #F3D7D4;
  border-left: 4px solid var(--red);
}

.instruction-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}

.instruction-card__tag svg {
  width: 15px;
  height: 15px;
}

.instruction-card--most .instruction-card__tag { color: var(--green); }
.instruction-card--least .instruction-card__tag { color: var(--red); }

.instruction-card__title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
}

.instruction-card__text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.tips {
  background: #FBFAF7;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
}

.tips__title {
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.tips__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.tips__list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.tips__list svg {
  width: 17px;
  height: 17px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   Cuestionario (pantalla 4)
-------------------------------------------------------------------------- */
.card--quiz {
  padding: 0;
  overflow: hidden;
}

.quiz-top {
  padding: 1.8rem 2.2rem 1.3rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #FFFDF9 0%, #FFFFFF 100%);
}

.quiz-top__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}

.quiz-top__identity {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.disc-dots {
  display: inline-flex;
  gap: 4px;
  margin-top: 0.35rem;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.dot--d { background: var(--red); }
.dot--i { background: var(--yellow); }
.dot--s { background: var(--green); }
.dot--c { background: var(--blue); }

.quiz-top__counter {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-dark);
  background: var(--gold-soft);
  border: 1px solid #EBDDBF;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}

.progress {
  height: 8px;
  background: #F0ECE3;
  border-radius: 999px;
  overflow: hidden;
}

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

.quiz-body {
  padding: 1.6rem 2.2rem 0.4rem;
}

.quiz-instruction {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin-bottom: 1.2rem;
}

.option-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

/* Tarjeta de opción seleccionable */
.option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  text-align: left;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.95rem 1.1rem;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease),
    box-shadow 0.18s var(--ease), transform 0.12s var(--ease);
}

.option:hover {
  border-color: #D8D2C7;
  background: #FFFDF9;
  transform: translateY(-1px);
}

.option:focus-visible {
  outline: 2.5px solid var(--gold);
  outline-offset: 2px;
}

/* Escala 1–4: valoración por característica */
.option.is-most {
  border-color: var(--green);
  background: #F1F9F4;
  box-shadow: 0 0 0 1px var(--green) inset;
}

.option.is-least {
  border-color: var(--red);
  background: #FDF4F3;
  box-shadow: 0 0 0 1px var(--red) inset;
}

.option.is-rated {
  border-color: var(--gold);
}

.scale {
  display: inline-flex;
  gap: 0.4rem;
  margin-left: auto;
  flex-shrink: 0;
}

.scale__btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid #CFC8BC;
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease);
}

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

.scale__btn:focus-visible {
  outline: 2.5px solid var(--gold);
  outline-offset: 2px;
}

/* Cuadro con número asignado */
.option.is-rated .scale__btn {
  color: #fff;
  border-color: transparent;
  background: var(--gold);
}

.option.is-most .scale__btn {
  background: var(--green);
}

.option.is-least .scale__btn {
  background: var(--red);
}

.option__disc-tag {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.option__disc-tag--d { background: var(--red); }
.option__disc-tag--i { background: var(--yellow); }
.option__disc-tag--s { background: var(--green); }
.option__disc-tag--c { background: var(--blue); }

.quiz-message {
  margin: 1rem 2.2rem 0;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  background: #FDF6F5;
  border: 1px solid #F3D7D4;
  color: var(--danger);
  font-size: 0.88rem;
  font-weight: 500;
}

.card--quiz .card__footer {
  margin: 1.6rem 2.2rem 2rem;
}

/* --------------------------------------------------------------------------
   Confirmación / procesamiento (pantalla 5)
-------------------------------------------------------------------------- */
.processing-card {
  padding: 3rem 2.4rem;
}

.processing-icon {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  background: #F1F9F4;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.processing-icon__check {
  width: 40px;
  height: 40px;
}

.processing-icon__ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--gold);
  border-right-color: var(--gold-soft);
  animation: spin 1.1s linear infinite;
}

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

.processing-card__title {
  margin: 0 0 0.4rem;
  font-size: 1.8rem;
  font-weight: 800;
}

.processing-card__text {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.processing-card__sub {
  margin: 0 auto;
  max-width: 38ch;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.loader {
  display: inline-flex;
  gap: 6px;
  margin-top: 1.6rem;
}

.loader span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  animation: bounce 1s infinite ease-in-out;
}

.loader span:nth-child(2) { animation-delay: 0.15s; opacity: 0.8; }
.loader span:nth-child(3) { animation-delay: 0.3s; opacity: 0.6; }

@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-7px); }
}

.send-error {
  margin-top: 1.6rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: #FDF6F5;
  border: 1px solid #F3D7D4;
}

.send-error p {
  margin: 0 0 0.8rem;
  color: var(--danger);
  font-weight: 500;
  font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   Resultados (pantalla 6)
-------------------------------------------------------------------------- */
.demo-notice {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--gold-soft);
  border: 1px solid #EBDDBF;
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.6rem;
  color: #6B5426;
}

.demo-notice svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gold-dark);
}

.demo-notice p {
  margin: 0;
  font-size: 0.88rem;
}

.results-eyebrow {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-soft);
}

.results-hero {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.8rem 2rem;
  margin-bottom: 1.4rem;
  border-left: 6px solid var(--gold);
  transition: border-color 0.3s var(--ease);
}

.results-hero__badge {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.4rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  background: var(--gold);
}

.results-hero__name {
  margin: 0 0 0.35rem;
  font-size: 1.6rem;
  font-weight: 800;
}

.results-hero__desc {
  margin: 0 0 0.9rem;
  color: var(--text-soft);
  font-size: 0.95rem;
  max-width: 56ch;
}

.results-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-soft);
}

.meta-chip svg {
  width: 17px;
  height: 17px;
  color: var(--gold);
}

.results-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.4rem;
  align-items: start;
}

.section-title {
  margin: 0 0 1.2rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.score-bars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.05rem;
}

.score-bar__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.35rem;
  gap: 0.5rem;
}

.score-bar__label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.93rem;
}

.score-bar__letter {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
}

.score-bar__letter--d { background: var(--red); }
.score-bar__letter--i { background: var(--yellow); }
.score-bar__letter--s { background: var(--green); }
.score-bar__letter--c { background: var(--blue); }

.score-bar__value {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
}

.score-bar__track {
  height: 12px;
  background: #F0ECE3;
  border-radius: 999px;
  overflow: hidden;
}

.score-bar__fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width 0.9s var(--ease);
}

.score-bar__fill--d { background: var(--red); }
.score-bar__fill--i { background: var(--yellow); }
.score-bar__fill--s { background: var(--green); }
.score-bar__fill--c { background: var(--blue); }

.scores-note {
  margin: 1.3rem 0 0;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.results-report__text {
  margin: 0 0 1.3rem;
  color: var(--text-soft);
  font-size: 0.93rem;
}

.results-report__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* --------------------------------------------------------------------------
   Modal de reporte
-------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(32, 32, 32, 0.45);
  backdrop-filter: blur(3px);
}

.modal__dialog {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: min(720px, 100%);
  max-height: min(86vh, 900px);
  display: flex;
  flex-direction: column;
  animation: modalIn 0.3s var(--ease);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.4rem 1.8rem;
  border-bottom: 1px solid var(--border);
}

.modal__eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.modal__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.modal__close {
  background: none;
  border: none;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--text-soft);
  cursor: pointer;
  padding: 0.15rem 0.45rem;
  border-radius: 8px;
}

.modal__close:hover {
  background: var(--bg);
  color: var(--text);
}

.modal__body {
  padding: 1.5rem 1.8rem;
  overflow-y: auto;
}

.report-section {
  margin-bottom: 1.4rem;
}

.report-section h4 {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-dark);
}

.report-section p,
.report-section li {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.report-section ul {
  margin: 0.3rem 0 0;
  padding-left: 1.15rem;
}

.report-section li {
  margin-bottom: 0.25rem;
}

.report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  padding: 0.9rem 1rem;
  background: #FBFAF7;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.4rem;
  font-size: 0.88rem;
}

.report-meta strong {
  color: var(--text);
}

.modal__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.8rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.modal__footnote {
  margin: 0;
  font-size: 0.76rem;
  color: var(--text-soft);
  max-width: 44ch;
}

/* --------------------------------------------------------------------------
   Toast
-------------------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: var(--text);
  color: #fff;
  padding: 0.85rem 1.3rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  max-width: min(92vw, 480px);
  text-align: center;
  animation: toastIn 0.3s var(--ease);
}

@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* --------------------------------------------------------------------------
   Responsive
-------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .home {
    grid-template-columns: 1fr;
    gap: 2.4rem;
    padding-top: 2.2rem;
  }

  .home__visual {
    order: -1;
    min-height: 0;
    max-width: 460px;
    margin: 0 auto;
    width: 100%;
  }

  .home__visual-frame {
    border-radius: 24px 24px 120px 120px;
  }

  .home__curve {
    display: none;
  }

  .home__lead {
    max-width: none;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header__inner {
    padding: 0.75rem 1rem;
  }

  .brand__text small {
    display: none;
  }

  .step-wrap,
  .home {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .card {
    padding: 1.5rem 1.25rem;
    border-radius: 16px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .instruction-highlights {
    grid-template-columns: 1fr;
  }

  .card__footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .card__footer .btn {
    width: 100%;
  }

  .quiz-top,
  .quiz-body {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .quiz-message {
    margin-left: 1.25rem;
    margin-right: 1.25rem;
  }

  .card--quiz .card__footer {
    margin-left: 1.25rem;
    margin-right: 1.25rem;
  }

  .option {
    flex-wrap: wrap;
  }

  .option__word {
    flex-basis: calc(100% - 100px);
  }

  .scale__btn {
    width: 36px;
    height: 36px;
  }

  .results-hero {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 1.6rem 1.25rem;
  }

  .results-hero__meta {
    justify-content: center;
  }

  .results-report__actions {
    flex-direction: column;
  }

  .results-report__actions .btn {
    width: 100%;
  }

  .modal__header,
  .modal__body,
  .modal__footer {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  .disc-badge__circle {
    width: 40px;
    height: 40px;
  }
}

/* ==========================================================================
   Informe DISC: subtítulos, pregunta final y versión imprimible (PDF)
   ========================================================================== */
.report-title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
}

.report-sub {
  margin: 1rem 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.report-question {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--gold);
  background: #FBF8F2;
}

/* Versión imprimible: oculta en pantalla */
.print-report {
  display: none;
}

@media print {
  /* Solo se imprime el informe: lo demás de la página (cabecera, pie,
     fondo, modal y avisos) queda oculto, aunque tenga posición fija. */
  body * {
    visibility: hidden !important;
  }

  #printReport,
  #printReport * {
    visibility: visible !important;
  }

  #printReport {
    position: static !important;
    display: block !important;
    margin: 0;
  }

  html,
  body {
    background: #fff !important;
    overflow: visible !important;
    height: auto !important;
  }

  .print-report {
    display: block;
    color: #000;
    background: #fff;
    font-size: 11pt;
    line-height: 1.5;
  }

  .print-report .report-section {
    break-inside: avoid-page;
  }

  .print-report .report-section h4,
  .print-report .report-sub {
    break-after: avoid;
  }

  .print-report .report-meta {
    margin-bottom: 1rem;
  }

  @page {
    margin: 18mm;
  }
}

/* ==========================================================================
   Cuestionario en filas de dos columnas
   ========================================================================== */
.option-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  list-style: none;
}

.option-row .option {
  padding: 0.7rem 0.85rem;
  gap: 0.6rem;
}

.option-row .option__word {
  font-size: 0.95rem;
}

.option .scale__btn {
  margin-left: auto;
}

@media (max-width: 600px) {
  .option-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Gráfico de araña y afinidad
   ========================================================================== */
.score-radar {
  max-width: 300px;
  margin: 0 auto 1rem;
}

.disc-radar {
  width: 100%;
  height: auto;
  display: block;
}

.results-affinity p {
  margin: 0 0 0.6rem;
  line-height: 1.55;
}

.results-affinity p:last-child {
  margin-bottom: 0;
}

/* Una sola columna de 4 características por pantalla */
.option-row--single {
  grid-template-columns: 1fr;
}
