/* ═══════════════════════════════════════════════════════════════════
   ATD · ARQUITECTURA DE TALENTO Y DECISIÓN
   Stylesheet v1.0 — MVP
═══════════════════════════════════════════════════════════════════ */

/* ── VARIABLES ─────────────────────────────────────────────────── */
:root {
  /* Brand colours */
  --primary:        #9fccc3;
  --primary-dark:   #7ab5aa;
  --primary-deep:   #357064; /* teal AA-safe (5.4:1 sobre fondos claros) para texto pequeño */
  --primary-light:  #e8f5f3;
  --primary-xlight: #f3faf9;
  --secondary:      #6A8CAF;
  --secondary-deep: #4f6890; /* azul AA-safe (5.6:1 sobre blanco) para texto/enlaces */
  --secondary-light:#e8eff6;
  --accent:         #F8C3A6;
  --accent-light:   #fef3ec;

  /* Neutrals */
  --gray-100: #f7f8fa;
  --gray-200: #eef0f3;
  --gray-300: #D9D9D9;
  --gray-400: #b0b9c6;
  --gray-500: #8892a4;
  --gray-600: #5f6b7c;
  --gray-800: #2d3a4a;
  --gray-900: #1a2637;

  /* Semantic */
  --text:       #1a2637;
  --text-muted: #5f6b7c;
  --text-light: #646e7a;
  --bg:         #ffffff;
  --bg-alt:     #f7f8fa;
  --border:     #e3e8ef;

  /* Typography */
  --font: 'Roboto', sans-serif;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 100px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(26,38,55,.05);
  --shadow-sm: 0 2px 6px rgba(26,38,55,.07);
  --shadow-md: 0 4px 16px rgba(26,38,55,.09);
  --shadow-lg: 0 12px 32px rgba(26,38,55,.12);

  /* Layout */
  --max-q:   660px;
  --max-lib: 1100px;
  --header-h: 68px;

  /* Transitions */
  --ease: cubic-bezier(.4,0,.2,1);
  --t-fast: .15s var(--ease);
  --t-base: .22s var(--ease);
  --t-slow: .35s var(--ease);
}

/* ── RESET ──────────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { font-size:16px; -webkit-font-smoothing:antialiased; scroll-behavior:smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img,svg { max-width:100%; display:block; }
button { cursor:pointer; border:none; background:none; font-family:inherit; }
input,select,textarea { font-family:inherit; font-size:inherit; }
a { color:inherit; text-decoration:none; }

/* ── HEADER ─────────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}
.header__inner {
  width: 100%;
  max-width: var(--max-lib);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
}
.header__brand { display:flex; align-items:center; }
.header__logo  { height: 38px; width: auto; }

/* ── PROGRESS BAR ───────────────────────────────────────────────── */
.progress-bar-wrap {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: var(--bg);
  padding: var(--space-3) var(--space-6) 0;
  display: none;   /* shown via JS when in question flow */
}
.progress-bar-wrap.visible { display:block; }

.progress-bar__track {
  height: 3px;
  background: var(--gray-200);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.progress-bar__fill {
  height: 100%;
  background: var(--primary);
  border-radius: var(--r-pill);
  transition: width .4s var(--ease);
  width: 0%;
}
.progress-bar__label {
  display: block;
  text-align: right;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: .04em;
  margin-top: var(--space-2);
  padding-bottom: var(--space-2);
}

/* ── MAIN CONTENT ───────────────────────────────────────────────── */
.app {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ── FOOTER ─────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--space-6);
  text-align: center;
  font-size: 13px;
  color: var(--gray-600);
}
.footer a { color: var(--secondary-deep); }
.footer a:hover { text-decoration: underline; }

/* ── SCREEN TRANSITIONS ─────────────────────────────────────────── */
.screen {
  animation: fadeIn var(--t-slow) both;
}
@keyframes fadeIn {
  from { opacity:0; transform: translateY(8px); }
  to   { opacity:1; transform: translateY(0); }
}

/* ════════════════════════════════════════════════════════════════
   SCREEN: LIBRARY
═════════════════════════════════════════════════════════════════ */
.library {
  max-width: var(--max-lib);
  margin: 0 auto;
  padding: var(--space-16) var(--space-6);
  width: 100%;
}

.library__hero {
  text-align: center;
  margin-bottom: var(--space-12);
}
.library__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary-deep);
  background: var(--primary-xlight);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--r-pill);
  margin-bottom: var(--space-5);
}
.library__title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: var(--space-5);
}
.library__subtitle {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Orientación · ayuda a elegir (no define) */
.library__orient {
  max-width: 640px;
  margin: 0 auto var(--space-10);
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-600);
}

/* Layout de dos columnas · destacado (izq) + en camino y valor (der) */
.lib-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1.7fr;
  gap: var(--space-6);
  align-items: stretch;
  max-width: var(--max-lib);
  margin: 0 auto;
}
.lib-right {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

/* Icono propio en tesela (decorativo, aria-hidden) */
.ic-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: var(--space-4);
}
.ic-tile img { width: 28px; height: 28px; object-fit: contain; display: block; }

/* Situación disponible · destacada (gana claramente) */
.diag-feature {
  position: relative;
  overflow: hidden;
  display: flex;
  padding: var(--space-10);
  background: var(--primary-xlight);
  border: 2px solid var(--primary);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}
.diag-feature__deco {
  position: absolute;
  z-index: 0;
  top: -8px;
  right: -8px;
  width: 116px;
  height: 116px;
  opacity: .16;
  pointer-events: none;
}
.diag-feature__body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.diag-feature__badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: var(--space-2);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #fff;
  background: var(--primary-deep);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--r-pill);
  margin-bottom: var(--space-6);
}
.diag-feature__badge::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%; background: #fff;
}
.diag-feature__title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: var(--space-4);
}
.diag-feature__desc {
  font-size: 16px;
  font-weight: 300;
  color: var(--gray-800);
  line-height: 1.65;
  max-width: 34ch;
}
.diag-feature__spacer { flex: 1; min-height: var(--space-8); }
.diag-feature__meta {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: var(--space-6);
}

/* En camino · tarjetas secundarias (con icono propio) */
.coming__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-5);
}
.coming-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.coming-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.coming-card:focus-visible { outline: 2px solid var(--primary-deep); outline-offset: 2px; }
.coming-card__title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--gray-900);
  margin-bottom: var(--space-2);
}
.coming-card__gancho {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: var(--space-5);
  flex: 1;
}
.coming-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.coming-card__min { font-size: 13px; color: var(--gray-600); }
.coming-card__cta { font-size: 14px; font-weight: 500; color: var(--primary-deep); }

/* Qué te llevas · "Al final recibirás" */
.value {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-8);
}
.value__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.value__title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary-deep);
}
.value__badge-free {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #fff;
  background: var(--primary-deep);
  padding: 2px var(--space-3);
  border-radius: var(--r-pill);
}
.value__items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-5);
}
.value-item .ic-tile { background: var(--primary-xlight); border-color: transparent; }
.value-item__title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--gray-900);
  margin-bottom: var(--space-2);
}
.value-item__desc {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.55;
}
.value__free {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.55;
  margin-bottom: var(--space-6);
}
/* Hoja de Ruta · nivel opcional de PAGO (visualmente separado, no gratis) */
.value__plus {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--space-5);
}
.value__plus-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gray-800);
  background: var(--gray-200);
  padding: 2px var(--space-3);
  border-radius: var(--r-pill);
  margin-bottom: var(--space-3);
}
.value__plus-head {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-900);
  margin-bottom: var(--space-1);
}
.value__plus-text {
  font-size: 14px;
  color: var(--gray-800);
  line-height: 1.55;
}

.library__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-6);
}

/* Diagnosis card */
.diag-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: box-shadow var(--t-base), border-color var(--t-base), transform var(--t-base);
  position: relative;
}
.diag-card--active {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.diag-card--active:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.diag-card--inactive {
  opacity: .55;
}

.diag-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 3px var(--space-3);
  border-radius: var(--r-pill);
  width: fit-content;
}
.diag-card__badge--active {
  background: var(--primary-light);
  color: var(--primary-dark);
}
.diag-card__badge--active::before {
  content: '';
  display: block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--primary-dark);
}
.diag-card__badge--soon {
  background: var(--gray-200);
  color: var(--gray-500);
}

.diag-card__code {
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: .06em;
}
.diag-card__title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}
.diag-card__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}
.diag-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: 12px;
  color: var(--text-light);
}
.diag-card__meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.diag-card__cta {
  margin-top: var(--space-2);
}

/* ════════════════════════════════════════════════════════════════
   SCREEN: INTRO
═════════════════════════════════════════════════════════════════ */
.intro {
  max-width: var(--max-q);
  margin: 0 auto;
  padding: var(--space-12) var(--space-6) var(--space-16);
  width: 100%;
}
.intro__back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: var(--space-8);
  transition: color var(--t-fast);
}
.intro__back:hover { color: var(--text); }

.intro__header {
  margin-bottom: var(--space-8);
}
.intro__code {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: var(--space-3);
}
.intro__title {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-4);
}
.intro__lead {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
}

.intro__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--gray-100);
  padding: 6px var(--space-4);
  border-radius: var(--r-pill);
}
.chip__icon { font-size: 15px; }

.intro__body {
  background: var(--gray-100);
  border-radius: var(--r-lg);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
}
.intro__body h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}
.intro__body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.intro__body li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}
.intro__body li::before {
  content: '';
  flex-shrink: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 7px;
}

.intro__cta { margin-top: var(--space-4); }

/* ════════════════════════════════════════════════════════════════
   SCREEN: QUESTION
═════════════════════════════════════════════════════════════════ */
.question-screen {
  max-width: var(--max-q);
  margin: 0 auto;
  padding: var(--space-10) var(--space-6) var(--space-16);
  width: 100%;
}

.question-screen__back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: var(--space-8);
  transition: color var(--t-fast);
}
.question-screen__back:hover { color: var(--text-muted); }

.question-screen__block-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: var(--space-3);
}

.question-screen__text {
  font-size: clamp(19px, 3.2vw, 24px);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: var(--space-2);
}
.question-screen__hint {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: var(--space-6);
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

/* Option button */
.option-btn {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  background: var(--bg);
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  text-align: left;
  line-height: 1.45;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
  cursor: pointer;
}
.option-btn:hover {
  border-color: var(--primary);
  background: var(--primary-xlight);
  box-shadow: 0 0 0 3px rgba(159,204,195,.12);
}
.option-btn.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  font-weight: 500;
  box-shadow: 0 0 0 3px rgba(159,204,195,.2);
}
.option-btn.multi-selected {
  border-color: var(--primary);
  background: var(--primary-light);
  font-weight: 500;
}
.option-btn__indicator {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.option-btn.selected .option-btn__indicator,
.option-btn.multi-selected .option-btn__indicator {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
}
.option-btn__indicator::after {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: white;
  display: none;
}
.option-btn.selected .option-btn__indicator::after,
.option-btn.multi-selected .option-btn__indicator::after {
  display: block;
}
/* Square checkbox for multi-select */
.option-btn--multi .option-btn__indicator {
  border-radius: 4px;
}
.option-btn--multi.multi-selected .option-btn__indicator::after {
  content: '✓';
  display: block;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  border-radius: 0;
  width: auto; height: auto;
  background: transparent;
  color: white;
}

.question-screen__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* ════════════════════════════════════════════════════════════════
   SCREEN: RESULT
═════════════════════════════════════════════════════════════════ */
.result-screen {
  max-width: var(--max-q);
  margin: 0 auto;
  padding: var(--space-12) var(--space-6) var(--space-16);
  width: 100%;
}

.result-screen__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  margin-bottom: var(--space-5);
}

.result-screen__title {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: var(--space-5);
}

.result-screen__explanation {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.result-screen__meaning {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--gray-100);
  border-left: 3px solid var(--primary);
  padding: var(--space-4) var(--space-5);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin-bottom: var(--space-8);
}

.result-screen__aspects-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}
.result-screen__aspects {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
}
.result-aspect {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.result-aspect__num {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.result-aspect__text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}

.result-screen__divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-8) 0;
}

.result-screen__cta-box {
  background: var(--primary-xlight);
  border: 1.5px solid var(--primary);
  border-radius: var(--r-lg);
  padding: var(--space-8);
  text-align: center;
}
.result-screen__cta-box h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--space-3);
}
.result-screen__cta-box p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-6);
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

/* ════════════════════════════════════════════════════════════════
   SCREEN: FORM
═════════════════════════════════════════════════════════════════ */
.form-screen {
  max-width: 560px;
  margin: 0 auto;
  padding: var(--space-12) var(--space-6) var(--space-16);
  width: 100%;
}
.form-screen__header {
  margin-bottom: var(--space-8);
}
.form-screen__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: var(--space-3);
}
.form-screen__subtitle {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.form-grid--full { grid-template-columns: 1fr; }

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.form-field--full { grid-column: 1 / -1; }

.form-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.form-field label span { color: var(--accent); margin-left: 2px; }

.form-field input,
.form-field select {
  padding: 10px var(--space-4);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7a8d' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-field input:focus,
.form-field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(159,204,195,.18);
}
.form-field input::placeholder { color: var(--text-light); }

.form-error {
  font-size: 12px;
  color: #c0392b;
  display: none;
}
.form-field.has-error input,
.form-field.has-error select { border-color: #e74c3c; }
.form-field.has-error .form-error { display: block; }

.form-privacy {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.6;
  margin-top: var(--space-3);
}

/* ════════════════════════════════════════════════════════════════
   SCREEN: ROADMAP
═════════════════════════════════════════════════════════════════ */
.roadmap-screen {
  max-width: var(--max-q);
  margin: 0 auto;
  padding: var(--space-12) var(--space-6) var(--space-16);
  width: 100%;
}
.roadmap-screen__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--secondary);
  background: var(--secondary-light);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  margin-bottom: var(--space-5);
}
.roadmap-screen__title {
  font-size: clamp(20px, 3.5vw, 28px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: var(--space-4);
}
.roadmap-screen__intro {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.roadmap-includes {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}
.roadmap-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg);
}
.roadmap-item__icon { font-size: 20px; flex-shrink:0; margin-top:1px; }
.roadmap-item__body { }
.roadmap-item__title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.roadmap-item__desc  { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

.roadmap-price-box {
  background: var(--gray-100);
  border-radius: var(--r-lg);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
  text-align: center;
}
.roadmap-price-box__label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}
.roadmap-price-box__price {
  font-size: 40px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.roadmap-price-box__price s {
  font-size: 22px;
  color: var(--text-light);
  font-weight: 400;
  margin-right: var(--space-2);
}
.roadmap-price-box__note {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  margin-top: var(--space-3);
  line-height: 1.5;
}

/* ════════════════════════════════════════════════════════════════
   SCREEN: INTEREST
═════════════════════════════════════════════════════════════════ */
.interest-screen {
  max-width: 580px;
  margin: 0 auto;
  padding: var(--space-12) var(--space-6) var(--space-16);
  width: 100%;
}
.interest-screen__title {
  font-size: clamp(19px, 3.2vw, 26px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-3);
}
.interest-screen__subtitle {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-8);
}

.interest-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}
.interest-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
  text-align: left;
  background: var(--bg);
  width: 100%;
}
.interest-card:hover {
  border-color: var(--primary);
  background: var(--primary-xlight);
}
.interest-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}
.interest-card__check {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 4px;
  border: 2px solid var(--gray-300);
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--t-fast), background var(--t-fast);
  font-size: 11px;
  font-weight: 700;
  color: white;
}
.interest-card.selected .interest-card__check {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
}
.interest-card__body { }
.interest-card__title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.interest-card__desc  { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

/* ════════════════════════════════════════════════════════════════
   SCREEN: THANKS
═════════════════════════════════════════════════════════════════ */
.thanks-screen {
  max-width: 560px;
  margin: 0 auto;
  padding: var(--space-16) var(--space-6);
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.thanks-screen__icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: var(--space-6);
}
.thanks-screen__title {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  margin-bottom: var(--space-4);
}
.thanks-screen__body {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-8);
  max-width: 460px;
}
.thanks-screen__detail {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  background: var(--gray-100);
  border-radius: var(--r-md);
  padding: var(--space-5);
  margin-bottom: var(--space-8);
  max-width: 460px;
  width: 100%;
  text-align: left;
}

/* ════════════════════════════════════════════════════════════════
   BUTTONS
═════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  padding: 12px var(--space-6);
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: scale(.98); }

.btn--primary {
  background: var(--primary-deep);
  color: white;
  border-color: var(--primary-deep);
}
.btn--primary:hover {
  background: #2b5a50;
  border-color: #2b5a50;
  box-shadow: 0 4px 12px rgba(53,112,100,.35);
}
.btn--primary:disabled {
  background: var(--gray-300);
  border-color: var(--gray-300);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn--secondary {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border);
}
.btn--secondary:hover {
  border-color: var(--gray-400);
  background: var(--gray-100);
}

.btn--ghost {
  background: none;
  color: var(--gray-600);
  border-color: transparent;
  padding-left: 0; padding-right: 0;
  font-size: 14px;
}
.btn--ghost:hover { color: var(--text); }

.btn--large {
  font-size: 16px;
  padding: 14px var(--space-8);
}

.btn--full { width: 100%; }

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
═════════════════════════════════════════════════════════════════ */
/* ════════════════════════════════════════════════════════════════
   SCREEN: PRESCREENING
═════════════════════════════════════════════════════════════════ */
.prescreening {
  max-width: var(--max-q);
  margin: 0 auto;
  padding: var(--space-10) var(--space-6) var(--space-16);
  width: 100%;
}
.prescreening__back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: var(--space-8);
  transition: color var(--t-fast);
}
.prescreening__back:hover { color: var(--text-muted); }

.prescreening__header {
  margin-bottom: var(--space-8);
}
.prescreening__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: var(--space-3);
  display: block;
}
.prescreening__title {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-2);
}
.prescreening__subtitle {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.prescrn-group {
  margin-bottom: var(--space-8);
}
.prescrn-group__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-4);
  display: block;
}
.prescrn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}
.prescrn-opt {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: 10px var(--space-4);
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border);
  background: var(--bg);
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  text-align: left;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.prescrn-opt:hover {
  border-color: var(--primary);
  background: var(--primary-xlight);
}
.prescrn-opt.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  font-weight: 500;
}
.prescrn-opt--skip {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--text-light);
  border-style: dashed;
  justify-content: center;
  text-align: center;
}
.prescrn-opt--skip.selected {
  background: var(--gray-100);
  border-color: var(--gray-400);
  color: var(--text-muted);
  font-weight: 400;
}
.prescrn-opt__dot {
  flex-shrink: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-300);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.prescrn-opt.selected .prescrn-opt__dot,
.prescrn-opt--skip.selected .prescrn-opt__dot {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
}

/* ════════════════════════════════════════════════════════════════
   SCREEN: GATE (mini-form)
═════════════════════════════════════════════════════════════════ */
.gate-screen {
  max-width: 520px;
  margin: 0 auto;
  padding: var(--space-12) var(--space-6) var(--space-16);
  width: 100%;
}
.gate-screen__icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: var(--space-5);
}
.gate-screen__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-3);
}
.gate-screen__subtitle {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-8);
}
.gate-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

/* ════════════════════════════════════════════════════════════════
   SCREEN: WAITLIST (micro-landing diagnósticos en desarrollo)
═════════════════════════════════════════════════════════════════ */
.waitlist-screen {
  max-width: var(--max-q);
  margin: 0 auto;
  padding: var(--space-10) var(--space-6) var(--space-16);
  width: 100%;
}
.waitlist-screen__back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: var(--space-8);
  transition: color var(--t-fast);
}
.waitlist-screen__back:hover { color: var(--text); }

.waitlist-screen__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--secondary);
  background: var(--secondary-light);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  margin-bottom: var(--space-5);
}
.waitlist-screen__code {
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: .06em;
  margin-bottom: var(--space-2);
}
.waitlist-screen__title {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: var(--space-5);
}
.waitlist-screen__problem {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-8);
}
.waitlist-screen__divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-6) 0;
}

.waitlist-identify {
  background: var(--gray-100);
  border-radius: var(--r-md);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
}
.waitlist-identify__title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}
.waitlist-identify__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.waitlist-identify__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}
.waitlist-identify__list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 7px;
}

.waitlist-learn__title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}
.waitlist-learn__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}
.waitlist-learn__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}
.waitlist-learn__list li::before {
  content: '→';
  color: var(--primary-dark);
  font-weight: 700;
  flex-shrink: 0;
}

.waitlist-form-box {
  background: var(--primary-xlight);
  border: 1.5px solid var(--primary);
  border-radius: var(--r-lg);
  padding: var(--space-8);
}
.waitlist-form-box__title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.waitlist-form-box__subtitle {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-6);
}
.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE — nuevas pantallas
═════════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .library   { padding: var(--space-10) var(--space-4); }
  .intro     { padding: var(--space-8) var(--space-4) var(--space-12); }
  .prescreening    { padding: var(--space-8) var(--space-4) var(--space-12); }
  .question-screen { padding: var(--space-8) var(--space-4) var(--space-12); }
  .result-screen   { padding: var(--space-8) var(--space-4) var(--space-12); }
  .gate-screen     { padding: var(--space-8) var(--space-4) var(--space-12); }
  .form-screen     { padding: var(--space-8) var(--space-4) var(--space-12); }
  .roadmap-screen  { padding: var(--space-8) var(--space-4) var(--space-12); }
  .interest-screen { padding: var(--space-8) var(--space-4) var(--space-12); }
  .thanks-screen   { padding: var(--space-10) var(--space-4); }
  .waitlist-screen { padding: var(--space-8) var(--space-4) var(--space-12); }

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

  .library__grid { grid-template-columns: 1fr; }
  .lib-grid { grid-template-columns: 1fr; }
  .diag-feature { padding: var(--space-8) var(--space-5); }
  .coming__grid { grid-template-columns: 1fr; }
  .value { padding: var(--space-6); }
  .value__items { grid-template-columns: 1fr; }

  .header__logo { height: 30px; }
  .progress-bar-wrap { padding: var(--space-2) var(--space-4) 0; }
}
