/* Diagnóstico para Programas Académicos · CertiProf
   Solo modo claro. Mobile-first (360 px), cortes en 768 y 1100. */

:root {
  color-scheme: light;

  --navy: #05092D;
  --text-2: #3A3E5C;
  --muted: #555873;
  --violet: #6D30EE;
  --violet-hover: #5A22D6;
  --violet-tint: #F4EFFE;
  --violet-line: #CDB9FB;
  --yellow: #FFC437;
  --yellow-tint: #FFF6DC;
  --yellow-line: #F5DB93;
  --cyan: #14C4ED;
  --cyan-tint: #DDF6FC;
  --cyan-line: #9CE2F4;
  --teal: #01B5A2;
  --teal-tint: #D8F4F0;
  --teal-line: #8DDDD3;
  --bg2: #F2F2F2;
  --border: #E0E0E0;
  --danger: #B3261E;

  --radius-input: 12px;
  --radius-card: 20px;
  --shadow-card: 0 1px 2px rgba(5, 9, 45, .04), 0 12px 32px rgba(5, 9, 45, .06);
  --font: Arial, Helvetica, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--navy);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

::selection { background: #E4D9FC; color: var(--navy); }
input, textarea { caret-color: var(--violet); accent-color: var(--violet); }
html { scrollbar-color: #C9CAD6 transparent; }

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

button, input, textarea { font: inherit; color: inherit; }

a { color: var(--violet); text-underline-offset: 3px; }
a:hover { color: var(--violet-hover); }

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 2px;
}
[tabindex="-1"]:focus { outline: none; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--violet);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus, .skip-link:hover { top: 8px; color: #fff; }

.wrap {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 16px;
}
.narrow { max-width: 640px; }
#view-analyzing .narrow { max-width: 760px; }

.ico { display: inline-flex; flex: none; }
.ico svg, .btn-ico svg, .cta-ico svg { width: 100%; height: 100%; }

/* ------------------------------------------------------------ Cabecera */

.site-header {
  background: #fff;
  border-bottom: 1px solid #EEEEF2;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}
.brand-logo { height: 28px; width: auto; }

.lang-switch {
  flex: none;
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 100px;
  overflow: hidden;
  background: #fff;
}
.lang-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  background: #fff;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
}
.lang-btn + .lang-btn { border-left: 1px solid var(--border); }
.lang-btn:hover { background: var(--bg2); }
.lang-btn[aria-pressed="true"] {
  background: var(--violet);
  color: #fff;
}
.lang-btn:focus-visible { outline-offset: -3px; }

.demo-row { padding-top: 12px; }
.demo-chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

main { flex: 1 0 auto; }
main:focus { outline: none; }

.view { padding-bottom: 56px; }

/* ---------------------------------------------------------------- Hero */

.form-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 28px; }
.form-layout > * { min-width: 0; }

.hero { width: 100%; max-width: 760px; margin-inline: auto; }
.hero h1 {
  font-size: clamp(1.875rem, 1.2rem + 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
  text-wrap: balance;
}
.lead {
  margin-top: 16px;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--text-2);
  text-wrap: pretty;
}

/* ------------------------------------------------------------ Formulario */

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.form-card {
  max-width: 760px;
  margin: 28px auto 0;
  padding: 20px 16px 24px;
}

.row-two { display: grid; gap: 0; }

.field { display: grid; gap: 8px; margin-bottom: 22px; align-content: start; }

fieldset.field, .goals { display: block; border: 0; padding: 0; min-width: 0; margin: 0 0 22px; }

label, legend {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy);
}
legend { padding: 0; margin-bottom: 12px; }
.req { color: var(--violet); font-weight: 700; }
.opt { color: var(--muted); font-weight: 400; }

.input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: #fff;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.4;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: #6E718A; opacity: 1; }
.input:hover { border-color: #C9CAD6; }
.input:focus, .input:focus-visible {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(109, 48, 238, .18);
}
.input[aria-invalid="true"] { border-color: var(--danger); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(179, 38, 30, .16); }

.textarea {
  display: block;
  min-height: 220px;
  padding: 14px;
  resize: vertical;
  line-height: 1.55;
}

.help {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--muted);
}

.field-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--danger);
  font-size: 0.875rem;
  line-height: 1.4;
}
.field-error::before {
  content: "!";
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 16px; height: 16px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.char-hint { font-size: 0.875rem; color: var(--muted); }
.char-hint.is-warn { color: var(--danger); }

/* Campo principal: descripción */
.desc-card {
  margin-top: 6px;
  padding: 18px 14px 16px;
  background: var(--bg2);
  border: 1px solid #E6E6EC;
  border-radius: 16px;
  gap: 10px;
}
.desc-card:focus-within { border-color: var(--violet-line); background: #F7F5FD; }
.desc-title {
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.375rem);
  line-height: 1.25;
}
.desc-card .help { color: var(--text-2); }

/* Honeypot */
.hp {
  position: absolute !important;
  left: -9999px; top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Objetivos */
.goal-grid { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }

.goal {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  font-weight: 400;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.goal:hover { border-color: #C9B3FA; }
.goal input {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.goal-box {
  position: relative;
  flex: none;
  width: 22px; height: 22px;
  border: 2px solid #B4B6C6;
  border-radius: 6px;
  background: #fff;
  transition: background-color .15s ease, border-color .15s ease;
}
.goal-box::after {
  content: "";
  position: absolute;
  left: 6px; top: 2px;
  width: 6px; height: 11px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
  opacity: 0;
}
.goal-text { font-size: 1rem; line-height: 1.3; color: var(--navy); }

.goal.is-checked {
  border-color: var(--violet);
  background: var(--violet-tint);
}
.goal.is-checked .goal-box { background: var(--violet); border-color: var(--violet); }
.goal.is-checked .goal-box::after { opacity: 1; }
.goal.is-checked .goal-text { font-weight: 700; }
.goal:has(input:focus-visible) {
  outline: 3px solid var(--violet);
  outline-offset: 2px;
}
.goals.has-error .goal:not(.is-checked) { border-color: #E5B3AF; }

/* Avisos */
.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--yellow-tint);
  border: 1px solid var(--yellow-line);
  color: var(--navy);
  font-size: 0.9375rem;
  line-height: 1.5;
  overflow-wrap: break-word;
}
.notice .ico { width: 20px; height: 20px; margin-top: 1px; color: #8A6500; }
.notice-soft { margin: 2px 0; }
.note-muted {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 14px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--muted);
}
.note-muted .ico { width: 18px; height: 18px; margin-top: 1px; color: var(--muted); }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border: 1.5px solid transparent;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:focus-visible { outline: 3px solid rgba(109, 48, 238, .45); outline-offset: 3px; }
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: var(--violet-hover); color: #fff; }
.btn-secondary { background: #fff; color: var(--violet); border-color: var(--violet); }
.btn-secondary:hover { background: var(--violet-tint); color: var(--violet-hover); border-color: var(--violet-hover); }
.btn-lg { min-height: 56px; padding: 0 32px; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: not-allowed; }
.btn-ico { width: 20px; height: 20px; }

.btn-text {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--violet);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.btn-text:hover { color: var(--violet-hover); }

#submit-btn { margin-top: 8px; }
.consent {
  max-width: 560px;
  margin: 14px auto 0;
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ----------------------------------------------------------- Analizando */

.panel { margin-top: 32px; padding: 28px 20px; }
.view-title {
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.muted { margin-top: 10px; color: var(--muted); }
.panel .btn { margin-top: 24px; }

.analyzing { display: grid; gap: 20px; justify-items: start; }

/* El sello que se acuña: el anillo avanza con el análisis */
.mint {
  position: relative;
  width: 88px;
  height: 88px;
  flex: none;
}
.mint-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.mint-track { fill: none; stroke: #EEEAF9; stroke-width: 9; }
.mint-fill {
  fill: none;
  stroke: var(--violet);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 98;
  transition: stroke-dashoffset .6s cubic-bezier(.22, 1, .36, 1), stroke .3s ease;
}
.mint-iso {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 48px;
  height: auto;
}
.mint.is-done .mint-fill { stroke: var(--teal); }

.echo {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--bg2);
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.steps { display: grid; gap: 14px; margin-top: 22px; }
.step {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #6B6E89;
  font-size: 1rem;
  line-height: 1.35;
}
.step-mark {
  position: relative;
  flex: none;
  width: 24px; height: 24px;
  border: 2px solid #D5D6E3;
  border-radius: 50%;
}
.step.is-active { color: var(--navy); font-weight: 700; }
.step.is-active .step-mark {
  border: 3px solid #E4D9FC;
  border-top-color: var(--violet);
  animation: spin .9s linear infinite;
}
.step.is-active.is-last .step-text { animation: pulse 1.8s ease-in-out infinite; }
.step.is-done { color: var(--muted); }
.step.is-done .step-mark { background: var(--violet); border-color: var(--violet); }
.step.is-done .step-mark::after {
  content: "";
  position: absolute;
  left: 6.5px; top: 2.5px;
  width: 5px; height: 10px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
/* Datos que rotan durante el análisis */
.facts {
  margin-top: 18px;
  padding: 16px 18px 14px;
  border-radius: 14px;
  background:
    radial-gradient(120% 140% at 100% 0%, #EFE7FE 0%, rgba(239, 231, 254, 0) 65%),
    var(--bg2);
}
.facts-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--violet);
}
.fact {
  min-height: 92px;
  margin-top: 6px;
  transition: opacity .28s ease, transform .28s ease;
}
.fact.is-out { opacity: 0; transform: translateY(4px); }
.fact-big {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.fact-text { margin-top: 4px; color: var(--text-2); line-height: 1.45; }
.fact-source { margin-top: 6px; font-size: 0.8125rem; color: var(--muted); }
.fact-dots { display: flex; gap: 6px; margin-top: 10px; }
.fact-dots span { width: 6px; height: 6px; border-radius: 50%; background: #D5D6E3; transition: background-color .2s ease, width .2s ease; }
.fact-dots span.is-on { width: 18px; border-radius: 3px; background: var(--violet); }

.analyze-cancel { margin-top: 18px; color: var(--muted); font-weight: 400; }

/* ------------------------------------------------------------ Resultados */

.results { max-width: 960px; padding-top: 28px; }

.lang-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin-bottom: 24px;
  padding: 8px 16px;
  border-radius: 12px;
  background: var(--bg2);
  font-size: 0.9375rem;
}

.result-head { max-width: 760px; }
.results h1 {
  font-size: clamp(1.875rem, 1.15rem + 2.8vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.results .lead { max-width: 720px; overflow-wrap: break-word; }
.results .notice { margin-top: 18px; }
.result-for {
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--violet);
  overflow-wrap: anywhere;
}

.report-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 22px;
}
.report-copy { font-size: 0.9375rem; color: var(--muted); overflow-wrap: anywhere; }

/* Bloques: número, título y una regla que cierra la línea */
.block { margin-top: 48px; }
.block-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
  font-size: clamp(1.3rem, 1.12rem + 0.9vw, 1.625rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.block-num {
  flex: none;
  color: var(--violet);
  font-variant-numeric: tabular-nums;
}
.block-title { flex: 0 1 auto; }
.block-rule {
  flex: 1 1 24px;
  align-self: center;
  height: 1px;
  background: var(--border);
}

.have-text { max-width: 720px; color: var(--text-2); font-size: 1.0625rem; overflow-wrap: break-word; }
.strengths {
  display: grid;
  gap: 10px 24px;
  margin-top: 16px;
  grid-template-columns: 1fr;
}
.strengths li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.4;
  overflow-wrap: break-word;
}
.strengths .ico {
  width: 22px; height: 22px;
  padding: 4px;
  margin-top: -1px;
  border-radius: 50%;
  background: var(--teal-tint);
  color: #027A6D;
}

/* Oportunidades: filas separadas por reglas, no tarjetas */
.opps { border-top: 1px solid var(--border); }
.opp {
  display: block;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  overflow-wrap: break-word;
}
.opp h3 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.01em; }
.opp .recognizes { margin-top: 6px; color: var(--text-2); }
.become {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 12px;
}
.become-label { font-size: 0.875rem; font-weight: 700; }
.pills { display: inline-flex; flex: 1 1 100%; flex-wrap: wrap; align-items: center; gap: 6px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 9px;
  border: 1px solid;
  border-radius: 100px;
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
}
.pill::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.pill-microcredential { background: var(--violet-tint); border-color: var(--violet-line); }
.pill-microcredential::before { background: var(--violet); }
.pill-digital_badge { background: var(--cyan-tint); border-color: var(--cyan-line); }
.pill-digital_badge::before { background: var(--cyan); }
.pill-competency_assessment { background: var(--teal-tint); border-color: var(--teal-line); }
.pill-competency_assessment::before { background: var(--teal); }
.pill-other { background: var(--bg2); border-color: var(--border); }
.pill-other::before { background: var(--muted); }
.pill-sep { color: var(--muted); font-weight: 700; }
.earn {
  margin-top: 12px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--navy);
}
.earn strong { color: var(--violet); }

.glossary { margin-top: 16px; }
.glossary summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--violet);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.glossary summary::-webkit-details-marker { display: none; }
.glossary summary .ico { width: 20px; height: 20px; }
.glossary summary:hover { color: var(--violet-hover); }
.glossary dl { display: grid; gap: 10px; margin: 6px 0 0; padding: 16px; border-radius: 14px; background: var(--bg2); }
.gloss-item { display: block; line-height: 1.45; }
.gloss-item dt { display: inline; font-weight: 700; }
.gloss-item dt::after { content: ": "; }
.gloss-item dd { display: inline; margin: 0; color: var(--text-2); }

/* Ruta: los sellos se suman y suben de nivel */
.path {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px;
  border-radius: var(--radius-card);
  background: var(--bg2);
}
.path-steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.path-step {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 360px;
  padding: 10px 14px 10px 10px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(5, 9, 45, .05), 0 6px 16px rgba(5, 9, 45, .06);
}
.path-step { flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px; }
.path-step-title { font-weight: 700; line-height: 1.3; overflow-wrap: break-word; }
.path-step-types { font-size: 0.8125rem; color: var(--muted); }

.plus { display: grid; place-items: center; width: 100%; height: 40px; }
.plus-dot {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--yellow);
  color: var(--navy);
}
.plus-dot svg { width: 14px; height: 14px; }

.connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 48px;
  color: var(--violet);
}
.connector-line {
  flex: 1;
  width: 2px;
  background: currentColor;
  transform-origin: top center;
}
.connector svg { width: 18px; height: 18px; margin-top: -6px; }

.path-level {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 540px;
  padding: 20px 18px;
  border-radius: 20px;
  background: #fff;
  text-align: center;
  overflow-wrap: break-word;
  box-shadow: 0 1px 2px rgba(5, 9, 45, .05), 0 10px 24px rgba(5, 9, 45, .07);
}
.level-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--teal-tint);
  color: #027A6D;
}
.level-mark .ico { width: 26px; height: 26px; }
.path-level--certification .level-mark { width: 64px; height: 64px; background: var(--yellow); color: var(--navy); }
.path-level--certification .level-mark .ico { width: 32px; height: 32px; }
.path-level--certification {
  padding: 26px 20px;
  box-shadow: 0 2px 4px rgba(5, 9, 45, .06), 0 18px 40px rgba(109, 48, 238, .16);
  outline: 2px solid var(--yellow);
  outline-offset: -2px;
}
.node-kind {
  display: block;
  margin-bottom: 4px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #027A6D;
}
.path-level--certification .node-kind { color: var(--violet); }
.node-title { display: block; font-weight: 700; font-size: 1.125rem; line-height: 1.3; }
.path-level--certification .node-title { font-size: 1.3125rem; letter-spacing: -0.01em; }
.node-desc { display: block; margin-top: 6px; font-size: 0.9375rem; line-height: 1.5; color: var(--text-2); }

.node-note {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin-top: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4;
  color: #027A6D;
}
.node-note .ico { width: 16px; height: 16px; margin-top: 2px; }
.path-level--certification .node-note { color: var(--violet); }
.rationale { margin-top: 18px; max-width: 760px; color: var(--text-2); overflow-wrap: break-word; }

/* CertiProf: lista con reglas, sin cajas */
.help-list { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--border); }
.help-item {
  display: flex;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  overflow-wrap: break-word;
}
.help-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.help-item h3 { display: flex; align-items: center; gap: 8px; font-size: 1.0625rem; line-height: 1.3; }
.help-ico { flex: none; width: 20px; height: 20px; color: var(--violet); }
.help-item p { margin-top: 6px; font-size: 0.9375rem; line-height: 1.55; color: var(--text-2); }
.area-examples { margin-top: 10px; }
.area-examples-label { display: block; font-size: 0.8125rem; font-weight: 700; color: var(--navy); }
.area-examples ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.area-examples li {
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--violet-tint);
  color: var(--navy);
  font-size: 0.8125rem;
  line-height: 1.35;
}

.key-msg {
  max-width: 820px;
  margin-top: 36px;
  font-size: clamp(1.3rem, 1.05rem + 1.3vw, 1.875rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.key-msg::before {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 2px;
  background: var(--yellow);
}

/* Cierre */
.cta {
  margin-top: 56px;
  padding: 28px 18px;
  border-radius: var(--radius-card);
  background:
    radial-gradient(90% 120% at 100% 0%, #EFE7FE 0%, rgba(239, 231, 254, 0) 60%),
    var(--bg2);
}
.cta h2 { font-size: clamp(1.375rem, 1.15rem + 1vw, 1.875rem); line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
.cta-next { max-width: 680px; margin-top: 12px; color: var(--text-2); }
.cta-next strong { color: var(--navy); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.cta-actions .btn { flex: 1 1 220px; }
.partners-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 10px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.partners-link .ico { width: 16px; height: 16px; }
.cta .cta-sub { margin-top: 14px; color: var(--muted); font-size: 0.875rem; }
.cta-thanks {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 18px 0 0;
  max-width: 560px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.cta-thanks .ico {
  width: 28px; height: 28px;
  padding: 6px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
}
.cta-error { margin-top: 12px; color: var(--danger); font-size: 0.9375rem; }

.again { margin-top: 28px; text-align: center; }

/* ----------------------------------------------------------------- Pie */

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  padding-block: 12px;
}
.footer-inner a { display: inline-flex; align-items: center; min-height: 44px; }

/* ------------------------------------------------------------- Animación
   Nada es invisible por defecto: la entrada solo existe bajo html.anim
   (que app.js añade en el primer requestAnimationFrame). */

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes drawY {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .5; }
}

html.anim .rise {
  animation: rise .4s ease backwards;
  animation-delay: calc(var(--i, 0) * 70ms);
}
html.anim .connector-line {
  animation: drawY .35s ease backwards;
  animation-delay: calc(var(--i, 0) * 70ms);
}

/* ------------------------------------------------------------ Escalones */

@media (min-width: 420px) {
  .goal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .goal { padding: 12px; gap: 10px; }
}

@media (min-width: 560px) {
  .strengths { grid-template-columns: 1fr 1fr; }
  .pill { padding: 5px 12px; font-size: 0.875rem; }
  .become .pills { flex: 0 1 auto; gap: 6px 8px; }
    .help-list { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .analyzing { grid-template-columns: 112px 1fr; gap: 28px; align-items: start; }
  .mint { width: 112px; height: 112px; }
}

@media (min-width: 768px) {
  .wrap { padding-inline: 24px; }
  .brand-logo { height: 32px; }
  .header-inner { min-height: 72px; }
  .brand-logo { width: auto; }

  .form-layout { padding-top: 48px; }
  .view { padding-bottom: 80px; }

  .form-card { padding: 32px; margin-top: 0; }
  .row-two { grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .desc-card { padding: 24px 24px 20px; }
  #submit-btn { width: fit-content; min-width: 320px; display: flex; margin-inline: auto; }

  .panel { padding: 40px; margin-top: 48px; }

  .results { padding-top: 44px; }

  .path { padding: 36px 28px; }
  .path-steps { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: stretch; }
  .path-step {
    flex: 0 1 210px;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 16px 14px;
  }
  .plus { width: 44px; height: auto; align-self: center; }
  .path-level { flex-direction: row; text-align: left; gap: 20px; padding: 20px 24px; }
  .path-level--certification { padding: 26px 28px; }

  .cta { padding: 40px; }
  .cta-actions .btn { flex: 0 1 auto; }
}

@media (min-width: 1024px) {
  /* Inicio y formulario lado a lado: el campo principal queda a la vista */
  .form-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 48px;
    align-items: start;
  }
  .hero { position: sticky; top: 32px; max-width: none; margin: 0; padding-top: 24px; }
  .hero h1 { font-size: 3rem; }
  .form-card { padding: 28px 32px 32px; }
  .row-two { gap: 0 16px; }
  .textarea { min-height: 200px; }
  .block { margin-top: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
