/* Diagnóstico ESG — estilos del cuestionario (esg.html). Requiere tokens.css y base.css.
   Los colores salen siempre de tokens.css. */

/* ─── HERO ─────────────────────────────────────── */
#s-hero {
  min-height: 100vh;   /* taste-skill-ignore: respaldo de 100svh */
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 1.25rem var(--frame-pad) clamp(2rem, 5vw, 3.5rem);
  background: var(--c-surface);
}

.hero-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
/* object-fit recorta solo el blanco del PNG: el logo se ve a 32 px de alto sin deformarse */
.hero-bar-logo { width: 149px; height: 32px; object-fit: cover; }
.hero-bar-link {
  font-size: var(--fs-sm);
  font-weight: var(--gf-weight-semi);
  color: var(--c-text);
  text-decoration: underline;
  text-decoration-color: var(--c-line);
  text-underline-offset: 4px;
  transition: text-decoration-color 150ms ease;
}
.hero-bar-link:hover { text-decoration-color: currentColor; }
.hero-bar-right { display: flex; align-items: center; gap: 1rem; }
@media (max-width: 480px) { .hero-bar-link { display: none; } }   /* en móvil caben logo y preferencias; el contacto sigue en resultados */

.hero-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(2.5rem, 7vh, 5rem);
  padding-top: clamp(3rem, 8vh, 6rem);
}

.hero-h1 {
  font-size: clamp(1.875rem, 5.5vw + 0.5rem, 5rem);
  font-weight: var(--gf-weight-bold);
  letter-spacing: -0.025em;
  line-height: 1.02;
  color: var(--c-text);
}
/* Cada línea es una máscara: el texto sube desde su línea base */
.hero-line {
  display: block;
  overflow: hidden;
  padding: 0.06em 0 0.12em;
  margin: -0.06em 0 -0.12em;
}
.hero-line > span { display: block; }
.hero-line-2 { color: var(--c-accent-text); }

.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}
@media (max-width: 680px) {
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 1.75rem; }
}
.hero-sub {
  font-size: var(--fs-lg);
  line-height: 1.5;
  color: var(--c-muted);
  max-width: 34ch;
}
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  flex-shrink: 0;
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 1.75rem;
}
.hero-note {
  font-size: var(--fs-sm);
  color: var(--c-muted);
}

/* Entrada de la portada; el texto está en el HTML desde el primer fotograma */
.js .hero-line > span {
  animation: lineUp 900ms var(--ease-out) both;
  animation-delay: calc(150ms + var(--i, 0) * 110ms);
}
.js .hero-sub { animation: reveal 500ms var(--ease-out) both 420ms; }
.js .hero-cta { animation: reveal 500ms var(--ease-out) both 480ms; }
@keyframes lineUp {
  from { transform: translateY(105%); }
  to   { transform: translateY(0); }
}

/* ─── QUESTIONS ────────────────────────────────── */
#s-questions {
  --pillar-col: clamp(200px, 22vw, 260px);   /* columna del título de cada pilar (escritorio) */
  --pillar-gap: clamp(2rem, 3vw, 3rem);
  padding: 0 var(--frame-pad) 8rem;
}

/* Barra de progreso fija: marca, título y avance por pilar E·S·G */
.progress-wrap {
  position: sticky;
  top: 0;
  background: var(--c-page);
  padding: 1rem 0 1.1rem;
  z-index: 10;
  margin-bottom: 2rem;
}
.progress-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.progress-home { display: inline-flex; border-radius: var(--r-control); }
.progress-home:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 3px; }
.progress-logo { width: 112px; height: 24px; object-fit: cover; }
.progress-h1 {
  font-size: var(--fs-md);
  font-weight: var(--gf-weight-bold);
  color: var(--c-text);
}
/* En móvil el título se queda solo para lectores de pantalla y deja sitio a las preferencias */
@media (max-width: 520px) {
  .progress-h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }   /* taste-skill-ignore: título oculto, no es una línea */
}
.progress-count {
  margin-left: auto;
  font-size: var(--fs-sm);
  font-weight: var(--gf-weight-semi);
  font-variant-numeric: tabular-nums;
  color: var(--c-text);
}
.progress-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}
.progress-seg-track {
  height: 6px;
  background: var(--c-line);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.progress-seg-fill {
  height: 100%;
  background: var(--c-accent);
  border-radius: var(--r-pill);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms var(--ease-out);
}
.progress-seg-label {
  margin-top: 0.4rem;
  font-size: var(--fs-xs);
  font-weight: var(--gf-weight-semi);
  color: var(--c-muted);
}
.progress-seg.is-current .progress-seg-label { color: var(--c-text); }

/* Cada pilar: título a la izquierda, fijo mientras se responden sus preguntas a la derecha */
.pillar-section {
  display: grid;
  grid-template-columns: var(--pillar-col) minmax(0, 1fr);
  gap: 0 var(--pillar-gap);
  align-items: start;
}
.pillar-section + .pillar-section { margin-top: 3.5rem; }
.pillar-head { position: sticky; top: 9rem; }   /* justo debajo de la barra de progreso */
@media (max-width: 960px) {
  .pillar-section { grid-template-columns: minmax(0, 1fr); }
  .pillar-section + .pillar-section { margin-top: 3rem; }
  .pillar-head { position: static; margin-bottom: 1.25rem; }
}
.pillar-title {
  font-size: var(--fs-xl);
  font-weight: var(--gf-weight-bold);
  color: var(--c-text);
  line-height: 1.25;
}
.pillar-desc {
  margin-top: 0.25rem;
  font-size: var(--fs-sm);
  color: var(--c-muted);
}

.q-card {
  background: var(--c-surface);
  border-radius: var(--r-surface);
  padding: 1.5rem 1.5rem 1.25rem;
  margin-bottom: 0.75rem;
}
@media (max-width: 520px) { .q-card { padding: 1.25rem; } }

.q-num {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-sm);
  font-weight: var(--gf-weight-semi);
  font-variant-numeric: tabular-nums;
  color: var(--c-muted);
  margin-bottom: 0.5rem;
}
.q-check {
  width: 16px;
  height: 16px;
  color: var(--c-accent-text);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out);
}
.q-card.answered .q-check { opacity: 1; transform: scale(1); }

.q-fieldset { border: 0; min-width: 0; }

.q-text {
  float: left;          /* permite margen bajo el legend */
  width: 100%;
  max-width: var(--w-text);
  font-size: var(--fs-lg);
  font-weight: var(--gf-weight-semi);
  line-height: 1.45;
  color: var(--c-text);
  margin-bottom: 1.1rem;
}

.q-options {
  clear: both;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}
@media (max-width: 680px) { .q-options { grid-template-columns: minmax(0, 1fr); } }

/* Opción: indicador redondo + texto; la elegida se marca con tinte y borde navy */
.q-option { position: relative; }
.q-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.q-option label {
  --pad-x: 0.875rem;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 48px;
  padding: 0.625rem var(--pad-x);
  border-radius: var(--r-control);
  border: 1.5px solid var(--c-line);
  background: var(--c-surface);
  font-size: var(--fs-md);
  font-weight: var(--gf-weight-semi);
  line-height: 1.3;
  color: var(--c-text);
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 150ms ease, border-color 150ms ease, transform var(--t-press) var(--ease-out);
}
.q-option label::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--c-line);
  background: var(--c-surface);
  transition: border-color 150ms ease, background-color 150ms ease;
}
.q-option label::after {
  content: '';
  position: absolute;
  left: calc(var(--pad-x) + 6px);
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--c-surface);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .q-option label:hover { border-color: var(--c-text); }
}
.q-option label:active { transform: scale(0.98); }
.q-option input:checked + label {
  --pad-x: calc(0.875rem - 0.5px);   /* compensa el borde de 2 px: el texto no se mueve */
  padding-top: calc(0.625rem - 0.5px);
  padding-bottom: calc(0.625rem - 0.5px);
  border-width: 2px;
  border-color: var(--c-text);
  background: var(--c-tint);
}
.q-option input:checked + label::before { border-color: var(--c-strong); background: var(--c-strong); }
.q-option input:checked + label::after { opacity: 1; transform: scale(1); }
.q-option input:focus-visible + label {
  outline: 2px solid var(--c-focus);
  outline-offset: 2px;
}

/* Aviso al final del test mientras falten preguntas */
.q-pending {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--c-tint);
  border-radius: var(--r-surface);
}
.q-pending-text {
  font-size: var(--fs-md);
  font-weight: var(--gf-weight-bold);
  color: var(--c-text);
}
.q-pending-text span {
  display: block;
  margin-top: 0.15rem;
  font-size: var(--fs-sm);
  font-weight: var(--gf-weight-reg);
  color: var(--c-muted);
}
.q-pending .gf-btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 1.25rem;
  font-size: var(--fs-sm);
  background: transparent;
}
@media (max-width: 520px) { .q-pending { padding: 1.25rem; } }
/* En escritorio, alineado con la columna de las preguntas */
@media (min-width: 961px) { .q-pending { margin-left: calc(var(--pillar-col) + var(--pillar-gap)); } }

/* ─── FIXED CTA BAR ────────────────────────────── */
/* Oculta con visibility (no recibe foco) y sin sombra hasta que aparece */
#cta-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--c-surface);
  padding: 0.9rem var(--frame-pad);
  padding-bottom: calc(0.9rem + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transform: translateY(100%);
  visibility: hidden;
  box-shadow: none;   /* taste-skill-ignore: sin sombra en reposo */
  transition: transform var(--t-ui) var(--ease-drawer),
              box-shadow var(--t-ui) ease,
              visibility 0s linear var(--t-ui);
  z-index: 50;
}
#cta-bar.show {
  transform: translateY(0);
  visibility: visible;
  box-shadow: var(--shadow-bar);   /* taste-skill-ignore: barra fija, flota */
  transition: transform 300ms var(--ease-drawer),
              box-shadow 300ms ease,
              visibility 0s;
}
.cta-bar-text { font-size: var(--fs-sm); color: var(--c-muted); }
.cta-bar-text strong { color: var(--c-text); }

/* ─── MODAL ────────────────────────────────────── */
/* El overlay se desplaza: la caja se centra si cabe y hace scroll si no */
#modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--c-scrim);
  z-index: 200;
  padding: 1rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}
#modal-overlay.open { display: flex; }

.modal {
  background: var(--c-surface);
  border-radius: var(--r-surface);
  padding: 2.5rem 2.25rem;
  width: 100%;
  max-width: 440px;
  margin: auto;
  box-shadow: var(--shadow-dialog);   /* taste-skill-ignore: diálogo, flota */
  animation: slideUp var(--t-modal) var(--ease-out);
}
@media (max-width: 520px) { .modal { padding: 1.75rem 1.25rem; } }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-logo { width: 112px; height: 24px; object-fit: cover; margin-bottom: 1.75rem; }
.modal-h2 {
  font-size: var(--fs-xl);
  font-weight: var(--gf-weight-bold);
  color: var(--c-text);
  margin-bottom: 0.4rem;
}
.modal-sub { font-size: var(--fs-sm); color: var(--c-muted); margin-bottom: 1.75rem; }

.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--gf-weight-semi);
  color: var(--c-text);
  margin-bottom: 0.5rem;
}
.field input {
  width: 100%;
  height: 44px;
  padding: 0 0.875rem;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-control);
  font-family: var(--gf-font);
  font-size: var(--fs-md);   /* 16 px: evita el zoom automático de iOS */
  color: var(--c-text);
  transition: border-color 150ms ease;
}
.field input::placeholder { color: var(--c-placeholder); }
.field input:focus { border-color: var(--c-accent-text); outline: none; }
.field input:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 1px; }
.field input.error { border-color: var(--c-error); }

/* Mensajes de error en línea, bajo el campo o la casilla */
.field-error {
  margin-top: 0.35rem;
  font-size: var(--fs-xs);
  font-weight: var(--gf-weight-semi);
  color: var(--c-error);
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 1.25rem;
}
.consent-row input[type=checkbox] {
  margin-top: 1px;
  width: 20px;
  height: 20px;
  accent-color: var(--c-accent-text);
  flex-shrink: 0;
}
.consent-row label {
  font-size: var(--fs-xs);
  color: var(--c-muted);
  line-height: 1.5;
}
#f-consent-err { margin-left: calc(20px + 0.65rem); }

.modal-btn-wrap { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.btn-ghost {
  flex: 0 0 auto;   /* ancho de su texto: con overflow hidden (relleno) flex: 0 lo recortaba */
  padding: 0.7rem 1.2rem;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-control);
  background: transparent;
  color: var(--c-muted);
  font-family: var(--gf-font);
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: border-color 0.18s;
}

#btn-submit {
  flex: 1;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: var(--r-control);
  background: var(--c-primary);
  color: var(--c-on-dark);
  font-family: var(--gf-font);
  font-size: var(--fs-md);
  font-weight: var(--gf-weight-semi);
  cursor: pointer;
  transition: background 0.18s;
  position: relative;
}
#btn-submit:disabled { opacity: 0.6; cursor: progress; }

/* ─── RESULTS ──────────────────────────────────── */
#s-results {
  padding: 1.25rem var(--frame-pad) 5rem;
}

/* Cabecera con marca (también sale en el PDF) */
.res-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 3rem;
}
/* object-fit recorta solo el blanco del PNG: el logo no se deforma */
.res-bar-logo { width: 136px; height: 30px; object-fit: cover; }

.res-head {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
@media (max-width: 620px) {
  .res-head { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .res-meta { align-self: stretch; }
}

/* Anillo de puntuación: arco proporcional al resultado */
.score-ring {
  position: relative;
  width: 168px;
  height: 168px;
  flex-shrink: 0;
}
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: var(--c-accent-soft); stroke-width: 10; }
.ring-arc {
  fill: none;
  stroke: var(--c-accent);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 900ms var(--ease-out);
}
.score-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.score-ring-num {
  font-size: 3.5rem;
  font-weight: var(--gf-weight-bold);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--c-text);
}
.score-ring-label {
  font-size: var(--fs-md);
  font-weight: var(--gf-weight-semi);
  color: var(--c-muted);
  margin-top: 0.25rem;
}

.res-meta { flex: 1; min-width: 0; }
.res-meta h1 {
  font-size: clamp(1.75rem, 2.5vw + 1rem, 2.5rem);
  font-weight: var(--gf-weight-bold);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--c-text);
  text-wrap: balance;
}

.level-tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  font-size: var(--fs-sm);
  font-weight: var(--gf-weight-semi);
  padding: 0 0.75rem;
  border-radius: var(--r-pill);
  margin-top: 0.85rem;
}

/* Escalera de madurez: 4 tramos, el actual con su color y la puntuación */
.ladder {
  display: flex;
  gap: 2px;
  margin-top: 1.75rem;
  max-width: 560px;
}
.ladder-step { flex: 1; min-width: 0; }
.ladder-track {
  position: relative;
  height: 8px;
  background: var(--c-tint);
}
.ladder-step.is-current .ladder-track { background: var(--lvl-fill); }   /* color del nivel (.lvl-N) */
.ladder-step:first-child .ladder-track { border-radius: var(--r-pill) 0 0 var(--r-pill); }
.ladder-step:last-child  .ladder-track { border-radius: 0 var(--r-pill) var(--r-pill) 0; }
.ladder-marker {
  position: absolute;
  bottom: 100%;
  margin-bottom: 4px;
  font-size: var(--fs-xs);
  font-weight: var(--gf-weight-bold);
  font-variant-numeric: tabular-nums;
  color: var(--c-text);
  line-height: 1;
}
.ladder-label {
  margin-top: 0.5rem;
  font-size: var(--fs-xs);
  line-height: 1.35;
  color: var(--c-muted);
}
.ladder-label span { display: block; font-variant-numeric: tabular-nums; }
.ladder-step.is-current .ladder-label { color: var(--c-text); font-weight: var(--gf-weight-semi); }
.ladder-next {
  margin-top: 1rem;
  font-size: var(--fs-md);
  font-weight: var(--gf-weight-semi);
  color: var(--c-text);
}

.res-summary {
  font-size: var(--fs-lg);
  line-height: 1.6;
  max-width: 62ch;
  color: var(--c-text);
  margin-bottom: 3.5rem;
}

.res-section-title {
  font-size: var(--fs-xl);
  font-weight: var(--gf-weight-bold);
  color: var(--c-text);
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.res-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);   /* minmax(0): el canvas del radar no ensancha la columna */
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}
@media (max-width: 760px) { .res-grid { grid-template-columns: minmax(0, 1fr); } }

.res-card {
  background: var(--c-surface);
  border-radius: var(--r-surface);
  padding: 1.75rem;
}
@media (max-width: 520px) { .res-card { padding: 1.5rem 1rem; } }

.res-card-title {
  font-size: var(--fs-lg);
  font-weight: var(--gf-weight-bold);
  color: var(--c-text);
  line-height: 1.3;
  margin-bottom: 1.25rem;
}

/* Desglose por eje: nombre, barra y valor sobre 100 alineado */
.axis-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40% 3ch;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.axis-row:last-child { margin-bottom: 0; }
.axis-name {
  font-size: var(--fs-sm);
  font-weight: var(--gf-weight-semi);
  color: var(--c-text);
  line-height: 1.35;
}
.axis-track {
  height: 8px;
  background: var(--c-tint);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.axis-fill {
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-reveal) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.axis-val {
  font-size: var(--fs-sm);
  font-weight: var(--gf-weight-bold);
  font-variant-numeric: tabular-nums;
  color: var(--c-text);
  text-align: right;
}

/* spider chart canvas */
.chart-wrap {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

/* ─── PILARES ───────────────────────────────────── */
/* Un único contenedor; cada pilar es una fila: cifra a la izquierda, recomendación a la derecha */
.pillars {
  background: var(--c-surface);
  border-radius: var(--r-surface);
  padding: 2.5rem 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 520px) { .pillars { padding: 1.75rem 1.25rem; } }
.pillar-row {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 2rem;
}
.pillar-row + .pillar-row { margin-top: 3rem; }
@media (max-width: 760px) {
  .pillar-row { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .pillar-row + .pillar-row { margin-top: 2.5rem; }
}
.pillar-row h3 {
  font-size: var(--fs-lg);
  font-weight: var(--gf-weight-bold);
  color: var(--c-text);
  line-height: 1.3;
}
.pillar-num {
  margin-top: 0.35rem;
  font-size: 2.5rem;
  font-weight: var(--gf-weight-bold);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--c-text);
}
.pillar-num span {
  font-size: var(--fs-md);
  font-weight: var(--gf-weight-semi);
  color: var(--c-muted);
}
.pillar-bar {
  height: 8px;
  margin-top: 0.85rem;
  background: var(--c-tint);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.pillar-bar div {
  height: 100%;
  background: var(--c-accent);
  border-radius: var(--r-pill);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}
.pillar-text {
  font-size: var(--fs-md);
  line-height: 1.6;
  max-width: 65ch;
  color: var(--c-text);
}

/* ─── RESULTS CTA ───────────────────────────────── */
.res-cta {
  background: var(--c-band);
  border-radius: var(--r-surface);
  padding: 3.5rem 3rem;
  color: var(--c-on-dark);
}
@media (max-width: 520px) { .res-cta { padding: 2.5rem 1.5rem; } }
.res-cta h2 {
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.75rem);
  font-weight: var(--gf-weight-bold);
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 20ch;
  text-wrap: balance;
}
.res-cta p {
  font-size: var(--fs-lg);
  line-height: 1.6;
  color: var(--c-on-dark-85);
  max-width: 52ch;
  margin: 1rem 0 2rem;
}
.res-cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn-light,
.btn-light-outline {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 1.75rem;
  border-radius: var(--r-control);
  font-family: var(--gf-font);
  font-size: var(--fs-md);
  font-weight: var(--gf-weight-semi);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, transform var(--t-press) var(--ease-out);
}
.btn-light { background: var(--gf-white); color: var(--gf-navy); border: 2px solid var(--gf-white); }   /* igual en ambos temas: va sobre la banda navy */
.btn-light-outline { background: transparent; color: var(--c-on-dark); border: 2px solid var(--c-on-dark-60); }
.btn-light:active,
.btn-light-outline:active { transform: scale(0.97); }
.btn-light:focus-visible,
.btn-light-outline:focus-visible,
.res-cta-restart:focus-visible { outline: 2px solid var(--c-on-dark); outline-offset: 3px; }
.res-cta-restart {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: var(--fs-sm);
  color: var(--c-on-dark-80);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--gf-font);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.res-cta-restart:hover { color: var(--c-on-dark); }

/* Entrada escalonada de los resultados (solo la primera vez) */
#s-results.is-revealing .reveal {
  animation: reveal 400ms var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}
@keyframes reveal {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media print {
  .no-print, #cta-bar { display: none !important; }
  body { background: var(--c-surface); }
  #s-results { padding: 0; max-width: 100%; }
  #s-results .reveal { animation: none !important; }
  .ring-arc, .axis-fill { transition: none !important; }
  .res-bar { margin-bottom: 1.5rem; }
  .res-card, .pillar-row, .res-cta { page-break-inside: avoid; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ─── RELLENO: color de los botones propios del cuestionario (base.css: .fill-btn) ─── */
#btn-submit        { --btn-fill: var(--c-primary-fill); --btn-fill-text: var(--c-on-dark); }
.btn-ghost         { --btn-fill: var(--c-tint); --btn-fill-text: var(--c-text); --btn-fill-border: var(--c-strong); }
.btn-light         { --btn-fill: var(--gf-green); --btn-fill-text: var(--c-on-dark); }
.btn-light-outline { --btn-fill: var(--gf-white); --btn-fill-text: var(--gf-navy); --btn-fill-border: var(--gf-white); }

/* ─── MISC ──────────────────────────────────────── */
.section-fade {
  animation: fadeIn 0.45s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── MOVIMIENTO REDUCIDO ───────────────────────── */
/* Sin desplazamientos: solo cambios de opacidad cortos; color de hover y foco se mantiene */
@media (prefers-reduced-motion: reduce) {
  .section-fade,
  .modal,
  #s-results.is-revealing .reveal,
  .js .hero-line > span,
  .js .hero-sub,
  .js .hero-cta { animation: fadeOnly 150ms ease both; }
  .q-check,
  .q-option label::after { transform: none; transition: opacity 150ms ease; }
  .q-option label:active { transform: none; }
  .progress-seg-fill { transition: none; }
  .ring-arc { transition: none; }
  .btn-light:active,
  .btn-light-outline:active { transform: none; }
  .axis-fill { transition: none; }
  #cta-bar {
    transform: none;
    opacity: 0;
    transition: opacity 150ms ease, visibility 0s linear 150ms;
  }
  #cta-bar.show {
    opacity: 1;
    transition: opacity 150ms ease, visibility 0s;
  }
}
