/* ============================================================
   TAND Diagnóstico de Crecimiento: Hoja de estilos principal
   Paleta "El Guía" · Sin dark mode · Mobile-first
   ============================================================ */

/* === Fuentes self-hosted === */
@font-face {
  font-family: 'Playfair Display';
  src: url('fonts/PlayfairDisplay-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('fonts/PlayfairDisplay-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('fonts/PlayfairDisplay-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* === Variables de diseño === */
:root {
  --purple:        #6A3DCA;
  --purple-deep:   #4A2A8F;
  --olive:         #7B8B5A;
  --sage:          #A8B89C;
  --cream:         #FAF9F7;
  --warm:          #EEE9E2;
  --ink:           #1A1A1A;
  --white:         #FFFFFF;
  --gris:          #6b6b6b;
  --red-soft:      #c0392b;

  --gradient-firma: linear-gradient(135deg, #6A3DCA, #4A2A8F);

  --shadow-card:       0 2px 12px rgba(26, 26, 26, .08);
  --shadow-card-hover: 0 8px 32px rgba(106, 61, 202, .12);

  --radius-card: 1.25rem;
  --radius-btn:  999px;
  --radius-sm:   0.75rem;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Poppins', system-ui, sans-serif;

  --max-w: 1140px;
  --section-py: clamp(4rem, 8vw, 7rem);
}

/* === Reset base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--purple);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* === Tipografía === */
h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
}

h3 {
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 600;
  line-height: 1.3;
}

h4 {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 600;
}

p {
  margin-bottom: 0;
}

/* === Layout helpers === */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.section {
  padding-block: var(--section-py);
}

/* === Botones === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--gradient-firma);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(106, 61, 202, .3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--purple-deep), #3B1F70);
  box-shadow: 0 6px 24px rgba(74, 42, 143, .4);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--purple);
  border-color: var(--purple);
}

.btn-outline:hover {
  background: var(--purple);
  color: var(--white);
  text-decoration: none;
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(37, 211, 102, .3);
}

.btn-whatsapp:hover {
  background: #1EAF53;
  box-shadow: 0 6px 22px rgba(37, 211, 102, .4);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--white);
}

.btn-lg {
  padding: 1.125rem 2.5rem;
  font-size: 1.0625rem;
}

/* === NAVEGACIÓN === */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-block: 1rem;
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 26, 26, .06);
  transition: box-shadow 0.3s ease;
}

.site-nav.scrolled {
  box-shadow: var(--shadow-card);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-logo .dot {
  color: var(--purple);
}

.nav-logo-consulting {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--purple);
  letter-spacing: 0.01em;
  text-transform: lowercase;
}

/* === HERO === */
.hero {
  padding-block: clamp(6rem, 12vw, 9rem) clamp(4rem, 8vw, 7rem);
  padding-top: calc(clamp(6rem, 12vw, 9rem) + 4rem); /* compensa nav fijo */
  /* Imagen de fondo (clínica calida) con overlay cream para legibilidad.
     El overlay es mas opaco en la zona del texto (centro) y se aclara hacia los bordes. */
  background-color: var(--cream);
  background-image:
    linear-gradient(
      180deg,
      rgba(250, 249, 247, 0.55) 0%,
      rgba(250, 249, 247, 0.34) 45%,
      rgba(250, 249, 247, 0.50) 100%
    ),
    url('img/hero-bg.png');
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Decoraciones abstractas del hero */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: clamp(300px, 50vw, 600px);
  height: clamp(300px, 50vw, 600px);
  background: radial-gradient(circle, rgba(106, 61, 202, .07) 0%, transparent 70%);
  top: -15%;
  right: -10%;
}

.hero::after {
  width: clamp(200px, 35vw, 400px);
  height: clamp(200px, 35vw, 400px);
  background: radial-gradient(circle, rgba(123, 139, 90, .08) 0%, transparent 70%);
  bottom: 0;
  left: -5%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin-inline: auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gris);
  margin-bottom: 1.5rem;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--sage);
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero h1 .accent {
  color: var(--purple);
}

.hero-subtitle {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--gris);
  font-weight: 400;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  border: 1px solid rgba(106, 61, 202, .2);
  border-radius: var(--radius-btn);
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--purple-deep);
  margin-bottom: 2.5rem;
  box-shadow: 0 2px 8px rgba(106, 61, 202, .08);
}

.hero-badge-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--olive);
}

/* === SECCIÓN DIMENSIONES (cómo escalan) === */
.section-dims {
  background: var(--warm);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: 3rem;
}

.section-header .eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--gris);
  margin-top: 1rem;
  font-size: clamp(1rem, 1.8vw, 1.125rem);
}

.dims-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.25rem;
}

.dim-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  border: 1px solid rgba(26, 26, 26, .05);
}

.dim-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.dim-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(106, 61, 202, .12), rgba(106, 61, 202, .06));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.125rem;
  font-size: 1.25rem;
}

.dim-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.dim-card p {
  font-size: 0.9375rem;
  color: var(--gris);
  line-height: 1.6;
}

/* === SECCIÓN PROPÓSITO === */
.section-purpose {
  background: var(--gradient-firma);
  color: var(--white);
  text-align: center;
  padding-block: var(--section-py);
  position: relative;
  overflow: hidden;
}

.section-purpose::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.purpose-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin-inline: auto;
}

.purpose-tag {
  display: inline-block;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--radius-btn);
  padding: 0.375rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.section-purpose h2 {
  font-family: var(--font-display);
  color: var(--white);
  margin-bottom: 1.5rem;
}

.purpose-desc {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  opacity: 0.88;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.purpose-highlight {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius-card);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  text-align: left;
}

.purpose-highlight-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
  margin-bottom: 0.625rem;
}

.purpose-highlight p {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  font-weight: 500;
  line-height: 1.6;
}

/* Bloque del método TTR (4 pilares) */
.ttr-block {
  margin-top: 0.5rem;
}

.ttr-intro {
  font-size: clamp(0.9375rem, 1.8vw, 1.0625rem);
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 1.75rem;
  max-width: 640px;
  margin-inline: auto;
}

.ttr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.875rem;
  text-align: left;
}

@media (max-width: 560px) {
  .ttr-grid {
    grid-template-columns: 1fr;
  }
}

.ttr-pillar {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
}

.ttr-pillar-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: var(--purple-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ttr-pillar-text {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
}

/* === SECCIÓN EQUIPO === */
.section-team {
  background: var(--cream);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
  gap: 1.75rem;
  margin-top: 3rem;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(26, 26, 26, .05);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.team-monogram {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--gradient-firma);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(106, 61, 202, .3);
}

/* Foto real (Sebas): mismo tamano que el monograma, circular */
.team-photo {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(106, 61, 202, .25);
  border: 2px solid var(--white);
}

.team-info {}

.team-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.team-title {
  font-size: 0.875rem;
  color: var(--purple);
  font-weight: 500;
}

.team-bio {
  font-size: 0.9375rem;
  color: var(--gris);
  line-height: 1.7;
}

/* === WIZARD === */
.section-wizard {
  background: var(--warm);
  padding-block: var(--section-py);
}

.wizard-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.wizard-header h2 {
  margin-bottom: 0.75rem;
}

.wizard-header p {
  color: var(--gris);
  max-width: 540px;
  margin-inline: auto;
}

.wizard-card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: 0 4px 40px rgba(26, 26, 26, .1);
  overflow: hidden;
  max-width: 780px;
  margin-inline: auto;
}

/* Barra de progreso */
.progress-bar-wrap {
  background: rgba(26, 26, 26, .06);
  height: 4px;
}

.progress-bar-fill {
  height: 100%;
  background: var(--gradient-firma);
  border-radius: 0 2px 2px 0;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

.wizard-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.75rem 0;
  font-size: 0.8125rem;
  color: var(--gris);
  font-weight: 500;
}

.step-counter {
  color: var(--purple);
  font-weight: 600;
}

/* Secciones del wizard */
.wizard-body {
  padding: 2rem 1.75rem 2.5rem;
  position: relative;
  min-height: 400px;
}

.wizard-step {
  /* se muestra/oculta con JS */
}

.wizard-step[hidden] {
  display: none;
}

.step-title {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.step-subtitle {
  font-size: 0.9375rem;
  color: var(--gris);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

/* Preguntas firmo (opciones tipo tarjeta) */
.firmo-question {
  margin-bottom: 1.75rem;
}

.firmo-question:last-child {
  margin-bottom: 0;
}

.question-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.75rem;
  display: block;
}

.options-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.option-btn {
  padding: 0.625rem 1rem;
  border: 1.5px solid rgba(26, 26, 26, .15);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  text-align: left;
  line-height: 1.4;
}

.option-btn:hover {
  border-color: var(--purple);
  background: rgba(106, 61, 202, .04);
}

.option-btn:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 2px;
}

.option-btn[aria-pressed="true"],
.option-btn.selected {
  border-color: var(--purple);
  background: rgba(106, 61, 202, .08);
  color: var(--purple-deep);
  font-weight: 600;
  box-shadow: 0 0 0 1px var(--purple);
}

/* Input numerico de firmo (type number) */
.firmo-number {
  width: 100%;
  max-width: 220px;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(26, 26, 26, .18);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  outline: none;
}

.firmo-number:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(106, 61, 202, .12);
}

/* Ayuda bajo la pregunta */
.firmo-hint {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--gris);
  margin: -0.375rem 0 0.75rem;
}

/* Textarea de pregunta abierta (type text) */
.firmo-text {
  width: 100%;
  min-height: 108px;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(26, 26, 26, .18);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  outline: none;
  resize: vertical;
}

.firmo-text:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(106, 61, 202, .12);
}

.firmo-count {
  display: block;
  text-align: right;
  font-size: 0.75rem;
  color: var(--gris);
  margin-top: 0.3125rem;
}

.firmo-count.short {
  color: var(--purple);
  font-weight: 600;
}

/* Input de "Otro" (aparece bajo las opciones cuando se elige Otro) */
.firmo-otro {
  width: 100%;
  margin-top: 0.625rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--purple);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--ink);
  background: rgba(106, 61, 202, .04);
  transition: box-shadow 0.18s ease;
  outline: none;
}

.firmo-otro:focus {
  box-shadow: 0 0 0 3px rgba(106, 61, 202, .12);
}

.firmo-otro[hidden] {
  display: none;
}

/* Preguntas de escala (dimensiones) */
.dim-question {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(26, 26, 26, .07);
}

.dim-question:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.dim-question .question-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 1rem;
}

.scale-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.625rem;
}

@media (min-width: 520px) {
  .scale-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.scale-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  padding: 0.875rem 0.625rem;
  border: 1.5px solid rgba(26, 26, 26, .15);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gris);
  text-align: center;
  line-height: 1.35;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.scale-btn:hover {
  border-color: var(--purple);
  background: rgba(106, 61, 202, .04);
  color: var(--ink);
}

.scale-btn:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 2px;
}

.scale-btn[aria-pressed="true"],
.scale-btn.selected {
  border-color: var(--purple);
  background: rgba(106, 61, 202, .09);
  color: var(--purple-deep);
  font-weight: 600;
  box-shadow: 0 0 0 1px var(--purple);
}

.scale-num {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(26, 26, 26, .07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  transition: background 0.18s ease, color 0.18s ease;
}

.scale-btn.selected .scale-num,
.scale-btn[aria-pressed="true"] .scale-num {
  background: var(--purple);
  color: var(--white);
}

/* Formulario de contacto */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.field-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.field-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(26, 26, 26, .18);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  outline: none;
}

.field-group input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(106, 61, 202, .12);
}

.field-group input.error {
  border-color: var(--red-soft);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, .1);
}

.field-error {
  font-size: 0.8125rem;
  color: var(--red-soft);
  display: none;
}

.field-error.visible {
  display: block;
}

/* Navegación del wizard */
.wizard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.75rem 1.75rem;
  border-top: 1px solid rgba(26, 26, 26, .07);
}

.btn-prev {
  background: transparent;
  border: none;
  color: var(--gris);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0;
  transition: color 0.18s ease;
}

.btn-prev:hover {
  color: var(--ink);
}

.btn-prev:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 2px;
  border-radius: 4px;
}

.btn-prev[hidden] {
  visibility: hidden;
  pointer-events: none;
}

.btn-next {
  margin-left: auto;
}

.btn-next:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Pantalla de carga */
.loader-screen {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 4rem 2rem;
  text-align: center;
}

.loader-screen.visible {
  display: flex;
}

.loader-spinner {
  width: 3rem;
  height: 3rem;
  border: 3px solid rgba(106, 61, 202, .15);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

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

.loader-text {
  font-size: 1.0625rem;
  color: var(--gris);
  font-weight: 500;
}

/* Mensaje de error global */
.error-screen {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 3rem 2rem;
  text-align: center;
}

.error-screen.visible {
  display: flex;
}

.error-icon {
  font-size: 2.5rem;
}

.error-screen h3 {
  font-size: 1.25rem;
  color: var(--ink);
}

.error-screen p {
  color: var(--gris);
  max-width: 440px;
}

/* === SECCIÓN RESULTADO === */
.section-result {
  display: none;
  background: var(--cream);
  padding-block: var(--section-py);
}

.section-result.visible {
  display: block;
}

.result-wrap {
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Score global */
.result-score-card {
  background: var(--gradient-firma);
  border-radius: var(--radius-card);
  padding: clamp(2rem, 5vw, 3rem);
  color: var(--white);
  text-align: center;
}

.score-number-wrap {
  margin-bottom: 1.25rem;
}

.score-number {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 12vw, 7.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.score-suffix {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 300;
  opacity: 0.7;
  vertical-align: super;
}

.result-stage-name {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.result-stage-desc {
  font-size: clamp(0.9375rem, 1.8vw, 1.0625rem);
  opacity: 0.88;
  max-width: 540px;
  margin-inline: auto;
  line-height: 1.7;
}

/* Radar por área */
.result-radar-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(26, 26, 26, .05);
}

.result-radar-card h2 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.dim-bar-item {
  margin-bottom: 1.25rem;
}

.dim-bar-item:last-child {
  margin-bottom: 0;
}

.dim-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.dim-bar-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}

.dim-bar-score {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gris);
}

.dim-bar-label {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.625rem;
  border-radius: var(--radius-btn);
  color: var(--white);
}

.dim-bar-track {
  height: 10px;
  background: rgba(26, 26, 26, .08);
  border-radius: 99px;
  overflow: hidden;
}

.dim-bar-fill {
  height: 100%;
  border-radius: 99px;
  width: 0%; /* se anima con GSAP */
  transition: width 0.6s ease; /* fallback sin GSAP */
}

/* Tarjeta primer paso (hero rec) */
.result-hero-rec {
  background: var(--gradient-firma);
  border-radius: var(--radius-card);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--white);
}

.rec-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  opacity: 0.75;
  margin-bottom: 0.5rem;
}

.rec-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.rec-porque {
  font-size: 0.9375rem;
  opacity: 0.88;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.rec-como-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  opacity: 0.7;
  margin-bottom: 0.75rem;
}

.rec-como-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rec-como-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  opacity: 0.9;
  line-height: 1.5;
}

.rec-como-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .7);
  flex-shrink: 0;
  margin-top: 0.5em;
}

/* Plan de trabajo */
.result-plan-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(26, 26, 26, .05);
}

.result-plan-card h2 {
  font-size: 1.25rem;
  margin-bottom: 1.75rem;
  color: var(--ink);
}

.plan-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.plan-item {
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(26, 26, 26, .08);
  border-left: 4px solid var(--sage);
  background: rgba(250, 249, 247, .6);
}

.plan-item.prio-1 {
  border-left-color: var(--purple);
  background: rgba(106, 61, 202, .03);
}

.plan-item.prio-2 {
  border-left-color: var(--sage);
}

.plan-item-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--purple);
  background: rgba(106, 61, 202, .08);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-btn);
  margin-bottom: 0.625rem;
}

.plan-item-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.375rem;
}

.plan-item-porque {
  font-size: 0.875rem;
  color: var(--gris);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.plan-item-como {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.plan-item-como li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--gris);
  line-height: 1.5;
}

.plan-item-como li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--purple);
  flex-shrink: 0;
  margin-top: 0.5em;
  opacity: 0.6;
}

/* Tarjeta CTA de videollamada (resultado) */
.result-videocall-cta {
  background: var(--white);
  border: 1.5px solid rgba(37, 211, 102, .35);
  border-radius: var(--radius-card);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-card);
  text-align: center;
  margin-top: 1.5rem;
}

.videocall-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.videocall-text {
  font-size: clamp(0.9375rem, 1.8vw, 1.0625rem);
  color: var(--gris);
  line-height: 1.7;
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 1.75rem;
}

/* Aviso correo */
.result-notice {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--gris);
  padding: 1.25rem;
  background: rgba(123, 139, 90, .07);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(123, 139, 90, .2);
}

.result-notice strong {
  color: var(--olive);
}

/* CTA WhatsApp resultado */
.result-cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.result-cta p {
  color: var(--gris);
  font-size: 0.9375rem;
}

/* === FOOTER === */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .7);
  padding-block: 3rem;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}

.footer-logo span {
  color: var(--sage);
}

.footer-consulting {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--white) !important;
  opacity: 0.7;
}

.footer-tagline {
  font-size: 0.875rem;
  opacity: 0.6;
}

.footer-cta {
  margin-top: 0.25rem;
}

.footer-legal {
  font-size: 0.8125rem;
  opacity: 0.4;
}

/* === Reveals GSAP (estado inicial) === */
.reveal {
  opacity: 1;
  transform: none;
}

/* El JS aplica el estado inicial si no hay reduce-motion */

/* === Accesibilidad === */
:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}

/* === prefers-reduced-motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .loader-spinner {
    animation: none;
    border: 3px solid var(--purple);
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* === Responsivo === */
@media (max-width: 640px) {
  .wizard-body {
    padding: 1.5rem 1.25rem 2rem;
  }
  .wizard-meta {
    padding-inline: 1.25rem;
  }
  .wizard-nav {
    padding-inline: 1.25rem;
    flex-wrap: wrap;
  }
  .btn-next {
    width: 100%;
  }
  .options-grid {
    flex-direction: column;
  }
  .option-btn {
    width: 100%;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .result-score-card {
    padding: 1.75rem 1.25rem;
  }
  .result-radar-card,
  .result-plan-card {
    padding: 1.5rem 1.25rem;
  }
  .result-hero-rec {
    padding: 1.5rem 1.25rem;
  }
}

@media (min-width: 641px) and (max-width: 960px) {
  .dims-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
