/* ─────────────────────────────────────────────────────────────
   Diagnóstico de Madurez en Talento Humano · Alfa Psicología
   Visual language: "Instrumento" — light primary + navy accent surfaces
   ─────────────────────────────────────────────────────────────*/

:root {
  /* Brand */
  --navy:      #0c3c5b;
  --navy-2:    #08304a;
  --navy-3:    #14496b;
  --turquesa:  #009aba;
  --turquesa-2:#00b3d6;
  --coral:     #E7434E;
  --coral-2:   #d6353f;
  --crema:     #FBEED6;
  --azul:      #2e7cb9;

  /* Surfaces (light theme defaults) */
  --bg:        #F0F3F5;
  --surface:   #ffffff;
  --surface-2: #f7f9fb;
  --surface-3: #e8ecef;

  /* Text (light defaults — invert inside .on-navy) */
  --ink:       #0c3c5b;
  --ink-mute:  rgba(12,60,91,0.70);
  --ink-soft:  rgba(12,60,91,0.45);
  --ink-line:  rgba(12,60,91,0.12);

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  --font-sans:    'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  --font-display: 'Readex Pro', 'Be Vietnam Pro', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
}

/* ─── .on-navy — inverts tokens for navy surfaces ─── */
.on-navy {
  background: var(--navy);
  color: #ffffff;
  --surface:   rgba(255,255,255,0.04);
  --surface-2: rgba(255,255,255,0.06);
  --surface-3: rgba(255,255,255,0.10);
  --ink:       #ffffff;
  --ink-mute:  rgba(255,255,255,0.74);
  --ink-soft:  rgba(255,255,255,0.50);
  --ink-line:  rgba(255,255,255,0.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  /* Background pinned to <html> so any space below body content
     (in standalone short pages) still shows the page background
     instead of white — and body can collapse to content height,
     which makes iframe auto-sizing accurate. */
  background: var(--bg);
}
body {
  font-family: var(--font-sans);
  font-weight: 400;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.app { position: relative; }

/* ─── Mono utility ─── */
.mono { font-family: var(--font-mono); letter-spacing: 0.04em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--turquesa);
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500;
}
.eyebrow.with-line::before {
  content: ""; width: 24px; height: 1px; background: var(--turquesa); display: inline-block;
}
.eyebrow.coral { color: var(--coral); }
.eyebrow.coral.with-line::before { background: var(--coral); }

/* ─── Sticky progress (during survey) ─── */
.progress-bar {
  position: sticky; top: 0; z-index: 18;
  background: rgba(240,243,245,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ink-line);
  padding: 18px 32px;
}
.progress-inner { max-width: 1240px; margin: 0 auto; }
.progress-top {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  margin-bottom: 10px;
}
.progress-areas {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-soft); font-weight: 500;
}
.progress-areas .current { color: var(--ink); }
.progress-pct {
  font-family: var(--font-mono); font-size: 14.5px; letter-spacing: 0.06em;
  color: var(--turquesa); font-weight: 600;
}
.progress-track {
  height: 3px; background: var(--ink-line); border-radius: 100px; overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--turquesa), var(--turquesa-2));
  border-radius: 100px;
  transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 0 12px rgba(0,154,186,0.3);
}
.progress-dots { display: flex; gap: 6px; margin-top: 14px; }
.pdot {
  flex: 1; height: 3px; background: var(--ink-line); border-radius: 100px;
  position: relative; transition: background 0.3s;
}
.pdot.done { background: var(--turquesa); }
.pdot.active::after {
  content: ""; position: absolute; top: -3px; bottom: -3px; left: 0; width: 30%;
  background: var(--turquesa); border-radius: 100px;
  box-shadow: 0 0 12px rgba(0,154,186,0.5);
}

/* ─── Layout containers ─── */
.container        { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 900px;  margin: 0 auto; padding: 0 32px; }
.container-tight  { max-width: 760px;  margin: 0 auto; padding: 0 32px; }

/* ─── Typography ─── */
.display-1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(48px, 6.5vw, 80px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
}
.display-1 .small {
  display: block;
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 300;
  color: var(--ink-mute);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.display-2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
}
.lede {
  font-size: 19.5px;
  line-height: 1.6;
  color: var(--ink-mute);
  font-weight: 400;
  margin: 0;
}
.body {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-mute);
  font-weight: 400;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 26px;
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease, color 0.15s;
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: -0.005em;
}
.btn-primary {
  background: var(--coral);
  color: white;
  box-shadow: 0 10px 28px -12px rgba(231,67,78,0.7), 0 2px 4px rgba(231,67,78,0.15);
}
.btn-primary:hover {
  background: var(--coral-2);
  transform: translateY(-1px);
  box-shadow: 0 14px 36px -10px rgba(231,67,78,0.8), 0 4px 8px rgba(231,67,78,0.2);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  color: var(--ink-mute);
  border: 1px solid var(--ink-line);
}
.btn-ghost:hover {
  border-color: var(--ink-soft);
  color: var(--ink);
  background: rgba(12,60,91,0.03);
}
.on-navy .btn-ghost:hover { background: rgba(255,255,255,0.06); }
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--ink-line);
}
.btn-secondary:hover { background: var(--surface-3); }
.btn-wa {
  background: #25D366;
  color: white;
  box-shadow: 0 10px 28px -12px rgba(37,211,102,0.6);
}
.btn-wa:hover { background: #1fbe5b; transform: translateY(-1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }
.btn-lg { padding: 18px 32px; font-size: 16px; }
.btn-sm { padding: 10px 16px; font-size: 13px; }

.btn-link {
  background: transparent; border: none; padding: 0; color: var(--ink-mute);
  font-family: var(--font-sans); font-size: 14px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color 0.15s;
}
.btn-link:hover { color: var(--ink); }

/* ─── Meta row (key/value rows, mono) ─── */
.meta-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  border-top: 1px solid var(--ink-line);
  padding-top: 24px;
  gap: 0;
}
.meta-item { padding-right: 20px; border-right: 1px solid var(--ink-line); }
.meta-item:last-child { border-right: none; }
.meta-item:not(:first-child) { padding-left: 20px; }
.meta-k {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: 8px; font-weight: 500;
}
.meta-v {
  font-family: var(--font-display); font-size: 24px; font-weight: 500;
  color: var(--ink); line-height: 1;
}
.meta-v small {
  font-size: 13px; color: var(--ink-soft); font-weight: 300;
  margin-left: 4px; letter-spacing: 0;
}

/* ─── INICIO view ─── */
.inicio { padding: 56px 0 96px; position: relative; }
.inicio-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: start;
}
.inicio h1 { margin-bottom: 32px; }
.inicio .lede { max-width: 520px; margin: 28px 0 40px; font-size: 20px; }
.inicio .cta-block { display: flex; align-items: center; gap: 24px; margin-bottom: 56px; flex-wrap: wrap; }
.inicio .cta-note { font-size: 14.5px; color: var(--ink-soft); }

/* Preview radar card (STAYS NAVY for instrument vibe) */
.preview {
  background: var(--navy);
  color: #ffffff;
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(12,60,91,0.5), 0 8px 24px -12px rgba(12,60,91,0.25);
}
.preview::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(0,154,186,0.10), transparent 60%),
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
  pointer-events: none;
}
.preview > * { position: relative; }
.preview-label {
  position: absolute; top: -10px; left: 24px;
  background: var(--navy);
  padding: 0 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  color: var(--turquesa); text-transform: uppercase; font-weight: 600;
}
.preview h3 {
  font-family: var(--font-display); font-size: 18px; font-weight: 500;
  color: #ffffff; margin: 4px 0 22px;
}
.preview .radar-wrap { display: flex; justify-content: center; padding: 8px 0 24px; }
.preview .radar-wrap svg { width: 100%; max-width: 440px; height: auto; }
.preview .area-list { display: grid; gap: 10px; margin-top: 16px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.10); }
.preview .area-row {
  display: grid; grid-template-columns: 1fr 80px 50px;
  gap: 16px; align-items: center;
  font-size: 13.5px; color: rgba(255,255,255,0.78);
}
.preview .area-row .bar { height: 5px; background: rgba(255,255,255,0.10); border-radius: 3px; overflow: hidden; }
.preview .area-row .bar .fill { height: 100%; background: var(--turquesa); border-radius: 3px; }
.preview .area-row .lvl {
  font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,0.55);
  text-align: right; letter-spacing: 0.04em;
}

/* Method strip */
.method-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; margin-top: 96px; padding-top: 56px;
  border-top: 1px solid var(--ink-line);
}
.method-step { padding: 0 32px; position: relative; }
.method-step:not(:last-child) { border-right: 1px solid var(--ink-line); }
.method-step:first-child { padding-left: 0; }
.method-step:last-child { padding-right: 0; }
.method-num {
  font-family: var(--font-display); font-size: 44px; font-weight: 500;
  color: var(--turquesa); line-height: 1; margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.method-step h4 {
  font-family: var(--font-display); font-size: 19px; font-weight: 500;
  color: var(--ink); margin: 0 0 10px;
}
.method-step p {
  font-size: 16px; line-height: 1.6; color: var(--ink-mute);
  margin: 0; font-weight: 400;
}

/* Áreas evaluadas */
.areas-band { margin-top: 80px; padding-top: 56px; border-top: 1px solid var(--ink-line); }
.areas-band .eyebrow { margin-bottom: 18px; }
.areas-band h2 { margin-bottom: 36px; max-width: 640px; }
.areas-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--ink-line);
}
.area-cell {
  padding: 28px 28px;
  border-right: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
  background: var(--surface);
  transition: background 0.2s;
}
.area-cell:hover { background: var(--surface-2); }
.area-cell:nth-child(3n) { border-right: none; }
.area-cell:nth-last-child(-n+3) { border-bottom: none; }
.area-cell .num {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.14em;
  color: var(--ink-soft); margin-bottom: 16px; font-weight: 500;
}
.area-cell .ico {
  width: 36px; height: 36px; color: var(--turquesa);
  margin-bottom: 14px;
}
.area-cell h4 {
  font-family: var(--font-display); font-size: 18.5px; font-weight: 500;
  color: var(--ink); margin: 0 0 6px;
}
.area-cell p {
  font-size: 14.5px; color: var(--ink-mute); margin: 0; line-height: 1.55;
}

/* Areas CTA — closing call-to-action at the end of the areas band */
.areas-cta {
  margin-top: 40px;
  padding: 36px 40px;
  background: var(--surface);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-lg);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.areas-cta-copy .eyebrow {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.14em;
  color: var(--turquesa); margin-bottom: 10px; font-weight: 500;
  text-transform: uppercase;
}
.areas-cta-copy h3 {
  font-family: var(--font-display); font-size: 24px; font-weight: 500;
  color: var(--ink); margin: 0; line-height: 1.25; max-width: 520px;
  letter-spacing: -0.01em;
}
.areas-cta-action {
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.areas-cta-note {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em;
  color: var(--ink-soft); text-transform: uppercase;
}
@media (max-width: 760px) {
  .areas-cta {
    grid-template-columns: 1fr;
    padding: 28px 24px;
    gap: 24px;
  }
  .areas-cta-action { align-items: flex-start; }
  .areas-cta-copy h3 { font-size: 20px; }
}

/* ─── ENCUESTA view ─── */
.encuesta {
  padding: 56px 0 80px;
  /* Override container-narrow width — the survey needs more room
     so questions don't wrap into 5+ lines next to the options column. */
  max-width: 1140px;
}
.area-hero {
  display: grid; grid-template-columns: 80px 1fr auto; gap: 28px;
  align-items: center;
  padding: 36px 36px;
  background: var(--surface);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-lg);
  margin-bottom: 40px;
  box-shadow: 0 2px 4px rgba(12,60,91,0.03);
}
.area-hero .ico-wrap {
  width: 80px; height: 80px;
  background: var(--navy);
  border-radius: var(--r-md);
  display: grid; place-items: center;
  color: var(--turquesa);
}
.area-hero .area-num {
  font-family: var(--font-mono); font-size: 13.5px; letter-spacing: 0.16em;
  color: var(--turquesa); text-transform: uppercase; margin-bottom: 8px; font-weight: 600;
}
.area-hero h1 {
  font-family: var(--font-display); font-size: 32px; font-weight: 500;
  letter-spacing: -0.02em; line-height: 1.1;
  color: var(--ink); margin: 0 0 8px;
}
.area-hero .desc { font-size: 16.5px; color: var(--ink-mute); line-height: 1.55; }
.area-hero .right-meta { text-align: right; }
.area-hero .right-meta .k {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.14em;
  color: var(--ink-soft); text-transform: uppercase; margin-bottom: 6px; font-weight: 500;
}
.area-hero .right-meta .v {
  font-family: var(--font-display); font-size: 24px; font-weight: 500; color: var(--ink);
}

/* Scale legend */
.scale-legend {
  display: grid; grid-template-columns: 1fr auto;
  align-items: end;
  margin-bottom: 16px;
  gap: 24px;
  padding: 0 8px;
}
.scale-legend .lbl {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.14em;
  color: var(--ink-soft); text-transform: uppercase; font-weight: 500;
}
.scale-legend .options-row {
  display: grid; grid-template-columns: repeat(4, 132px); gap: 8px;
}
.scale-legend .legend-cell {
  text-align: center;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
  color: var(--ink-soft); text-transform: uppercase; font-weight: 500;
}
.scale-legend .legend-cell .code { display: block; color: var(--turquesa); font-weight: 600; margin-bottom: 2px; }

/* Afirmaciones */
.afirmaciones-card {
  background: var(--surface);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-lg);
  padding: 8px 36px;
  box-shadow: 0 2px 4px rgba(12,60,91,0.03);
}
.afirmacion {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--ink-line);
  transition: background 0.2s;
}
.afirmacion:last-child { border-bottom: none; }
.afirmacion-left { display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: baseline; }
.afirmacion-num {
  font-family: var(--font-mono); font-size: 13.5px; letter-spacing: 0.06em;
  color: var(--ink-soft); font-weight: 600; line-height: 1.5;
}
.afirmacion-text {
  font-size: 17.5px; line-height: 1.55; color: var(--ink);
  font-weight: 400;
}

.opciones { display: grid; grid-template-columns: repeat(4, 132px); gap: 8px; }
.opcion { position: relative; cursor: pointer; user-select: none; }
.opcion input { position: absolute; opacity: 0; pointer-events: none; }
.opcion-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
  padding: 12px 6px;
  background: var(--surface);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-md);
  font-size: 13.5px; font-weight: 500; color: var(--ink-mute);
  text-align: center; line-height: 1.3;
  transition: all 0.18s cubic-bezier(0.3, 0.7, 0.4, 1);
  height: 76px;
  position: relative;
}
.opcion-card:hover {
  border-color: var(--ink-soft);
  background: var(--surface-2);
  color: var(--ink);
  transform: translateY(-1px);
}
.opcion-card:hover .opcion-dots span { background: var(--ink-soft); }
.opcion input:checked + .opcion-card {
  background: linear-gradient(180deg, rgba(0,154,186,0.10), rgba(0,154,186,0.04));
  border-color: var(--turquesa);
  color: var(--ink);
  box-shadow:
    0 0 0 1px var(--turquesa) inset,
    0 0 0 4px rgba(0,154,186,0.12),
    0 12px 28px -12px rgba(0,154,186,0.55);
  transform: translateY(-2px);
  font-weight: 600;
}
.opcion input:checked + .opcion-card::after {
  content: ""; position: absolute; top: 7px; right: 7px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--turquesa);
  box-shadow: 0 0 0 3px rgba(0,154,186,0.18);
}
.opcion-dots { display: flex; gap: 4px; transition: transform 0.2s; }
.opcion-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-line); transition: background 0.2s, transform 0.2s; }
.opcion input:checked + .opcion-card .opcion-dots { transform: scale(1.15); }
.opcion.l1 input:checked + .opcion-card .opcion-dots span:nth-child(-n+1) { background: #E7434E; box-shadow: 0 0 8px rgba(231,67,78,0.55); }
.opcion.l2 input:checked + .opcion-card .opcion-dots span:nth-child(-n+2) { background: #e67e22; box-shadow: 0 0 8px rgba(230,126,34,0.45); }
.opcion.l3 input:checked + .opcion-card .opcion-dots span:nth-child(-n+3) { background: var(--turquesa); box-shadow: 0 0 8px rgba(0,154,186,0.55); }
.opcion.l4 input:checked + .opcion-card .opcion-dots span:nth-child(-n+4) { background: #27ae60; box-shadow: 0 0 8px rgba(39,174,96,0.5); }

/* Survey nav buttons */
.nav-buttons {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 40px; gap: 16px;
}
.alert {
  background: rgba(231,67,78,0.06);
  border: 1px solid rgba(231,67,78,0.25);
  border-radius: var(--r-md);
  padding: 14px 18px; font-size: 14px;
  color: var(--coral); margin-top: 16px;
  display: flex; align-items: center; gap: 10px;
  font-weight: 500;
}
.alert .ico { color: var(--coral); }

/* ─── RESULTADOS view ─── */
.resultados { padding: 56px 0 96px; }

/* Result HERO — NAVY card (dramatic reveal) */
.result-hero {
  background: var(--navy);
  color: #ffffff;
  border-radius: var(--r-xl);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  margin-bottom: 56px;
  box-shadow: 0 24px 60px -30px rgba(12,60,91,0.55), 0 8px 24px -12px rgba(12,60,91,0.3);
}
.result-hero::before {
  content: ""; position: absolute; top: -100px; right: -100px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(0,154,186,0.22), transparent 60%);
  pointer-events: none;
}
.result-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at top right, black, transparent 70%);
}
.result-hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px;
  align-items: center; position: relative; z-index: 1;
}
.result-hero .eyebrow { color: var(--turquesa); }
.result-hero .eyebrow.with-line::before { background: var(--turquesa); }
.result-level-label { margin-bottom: 18px; }
.result-level-name {
  font-family: var(--font-display);
  font-size: clamp(56px, 7vw, 88px);
  font-weight: 500; line-height: 0.95;
  letter-spacing: -0.03em;
  color: #ffffff; margin: 0 0 20px;
}
.result-level-msg {
  font-size: 17px; line-height: 1.6; color: rgba(255,255,255,0.78);
  font-weight: 300; max-width: 520px; margin-bottom: 28px;
}
.result-score-block {
  display: flex; align-items: baseline; gap: 14px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.result-score {
  font-family: var(--font-display); font-size: 64px; font-weight: 500;
  line-height: 1; color: #ffffff; letter-spacing: -0.03em;
}
.result-score small { font-size: 24px; color: rgba(255,255,255,0.5); font-weight: 300; }
.result-score-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  color: rgba(255,255,255,0.55); text-transform: uppercase; margin-bottom: 4px; font-weight: 500;
}

.result-right { display: flex; justify-content: center; align-items: center; }
.result-radar-card {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  padding: 24px;
  width: 100%; max-width: 420px;
}
.result-radar-card svg { width: 100%; height: auto; }

/* Section heading */
.section-heading {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 28px; gap: 16px;
}
.section-heading .left { display: flex; flex-direction: column; gap: 10px; }
.section-heading h2 {
  font-family: var(--font-display); font-size: 30px; font-weight: 500;
  letter-spacing: -0.02em; color: var(--ink); margin: 0;
}

/* Per-area result rows */
.areas-results {
  display: grid; gap: 0;
  background: var(--surface);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 56px;
}
.area-result {
  display: grid;
  grid-template-columns: 56px 220px 1fr 100px 110px;
  gap: 20px; align-items: center;
  padding: 22px 28px;
  border-bottom: 1px solid var(--ink-line);
  transition: background 0.2s;
}
.area-result:last-child { border-bottom: none; }
.area-result:hover { background: var(--surface-2); }
.area-result .ico-wrap {
  width: 40px; height: 40px; border-radius: var(--r-sm);
  background: rgba(0,154,186,0.08); border: 1px solid rgba(0,154,186,0.18);
  display: grid; place-items: center;
  color: var(--turquesa);
}
.area-result .name {
  font-family: var(--font-display); font-size: 17px; font-weight: 500;
  color: var(--ink);
}
.area-result .name small {
  display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  color: var(--ink-soft); text-transform: uppercase; font-weight: 500; margin-top: 4px;
}
.area-result .bar-wrap { display: flex; align-items: center; gap: 12px; }
.area-result .bar {
  flex: 1; height: 6px; background: var(--surface-3); border-radius: 3px; overflow: hidden;
}
.area-result .bar .fill { height: 100%; border-radius: 3px; transition: width 0.8s cubic-bezier(0.2, 0.7, 0.3, 1); }
.area-result .score {
  font-family: var(--font-display); font-size: 22px; font-weight: 500;
  color: var(--ink); text-align: right;
}
.area-result .score small { font-size: 12px; color: var(--ink-soft); font-weight: 300; margin-left: 2px; }
.area-result .lvl-badge {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 600;
  padding: 6px 10px; border-radius: 100px;
  text-align: center;
}

/* Lead capture — NAVY card */
.lead-card {
  background: var(--navy);
  color: #ffffff;
  border-radius: var(--r-xl);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(12,60,91,0.55), 0 8px 24px -12px rgba(12,60,91,0.3);
}
.lead-card::before {
  content: ""; position: absolute; top: -80px; left: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(231,67,78,0.14), transparent 65%);
  pointer-events: none;
}
.lead-card::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at bottom right, black, transparent 70%);
}
.lead-card-inner { position: relative; z-index: 1; }
.lead-card-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.lead-pitch { padding-top: 8px; }
.lead-pitch .eyebrow { color: var(--coral); }
.lead-pitch .eyebrow.with-line::before { background: var(--coral); }
.lead-pitch h2 { margin-bottom: 16px; font-size: 30px; color: #ffffff; }
.lead-pitch .lede { margin-bottom: 24px; font-size: 16.5px; color: rgba(255,255,255,0.78); }
.lead-pitch .lede strong { color: #ffffff; font-weight: 600; }
.lead-pitch ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.lead-pitch li {
  display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start;
  font-size: 14.5px; line-height: 1.5; color: rgba(255,255,255,0.82);
}
.lead-pitch li .ico { color: var(--turquesa); padding-top: 2px; }
.lead-form .form-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  color: rgba(255,255,255,0.55); text-transform: uppercase; margin-bottom: 6px; display: block;
  font-weight: 500;
}
.lead-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.form-field { display: flex; flex-direction: column; }
.form-input {
  padding: 14px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: 15px;
  color: #ffffff;
  transition: border-color 0.18s, background 0.18s;
  width: 100%;
}
.form-input::placeholder { color: rgba(255,255,255,0.45); }
.form-input:focus {
  outline: none;
  border-color: var(--turquesa);
  background: rgba(0,154,186,0.08);
  box-shadow: 0 0 0 3px rgba(0,154,186,0.18);
}
.lead-form .submit-row { display: flex; align-items: center; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.lead-form .privacy {
  font-size: 12.5px; color: rgba(255,255,255,0.55);
  display: flex; align-items: center; gap: 8px;
}

/* ─── GRACIAS view ─── */
.gracias { padding: 80px 0 100px; }
.gracias-hero {
  text-align: center; max-width: 640px; margin: 0 auto;
  padding: 48px 32px;
}
.gracias-check {
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(0,154,186,0.10); border: 1px solid var(--turquesa);
  display: grid; place-items: center; color: var(--turquesa);
  margin: 0 auto 32px;
}
.gracias-hero h1 { margin-bottom: 16px; color: var(--ink); }
.gracias-hero p { font-size: 17px; line-height: 1.6; color: var(--ink-mute); margin: 0 auto 32px; max-width: 480px; }

/* Diana CTA card — NAVY */
.gracias-cta-card {
  background: var(--navy);
  color: #ffffff;
  border-radius: var(--r-xl);
  padding: 48px 40px;
  margin-top: 64px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(12,60,91,0.55), 0 8px 24px -12px rgba(12,60,91,0.3);
}
.gracias-cta-card::before {
  content: ""; position: absolute; top: -60px; right: -60px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(0,154,186,0.18), transparent 65%);
  pointer-events: none;
}
.gracias-cta-card .photo {
  width: 200px; height: 200px;
  border-radius: var(--r-lg);
  background-image: url('assets/diana.png');
  background-size: cover; background-position: center 18%;
  position: relative; z-index: 1;
}
.gracias-cta-card .right { position: relative; z-index: 1; }
.gracias-cta-card .eyebrow { color: var(--coral); }
.gracias-cta-card .eyebrow.with-line::before { background: var(--coral); }
.gracias-cta-card h2 { color: #ffffff; margin-bottom: 12px; font-size: 28px; }
.gracias-cta-card p { font-size: 16px; line-height: 1.55; color: rgba(255,255,255,0.78); margin: 0 0 24px; }
.gracias-cta-card .cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.gracias-cta-card .contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 32px;
  margin: 24px 0 28px;
  padding: 22px 0 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.gracias-cta-card .contact-item .k {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em;
  color: var(--turquesa); font-weight: 600;
  margin-bottom: 4px;
}
.gracias-cta-card .contact-item .v {
  font-size: 14.5px; color: rgba(255,255,255,0.92); font-weight: 500;
  word-break: break-word;
}
.gracias-cta-card .btn-ghost {
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.18);
}
.gracias-cta-card .btn-ghost:hover {
  color: #ffffff;
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.06);
}

/* ─── Animations ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.fade-up { animation: fadeUp 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) backwards; }
.fade-up.d-1 { animation-delay: 0.1s; }
.fade-up.d-2 { animation-delay: 0.2s; }
.fade-up.d-3 { animation-delay: 0.3s; }
.fade-up.d-4 { animation-delay: 0.4s; }
.fade-up.d-5 { animation-delay: 0.5s; }

/* ─── Responsive ─── */
@media (max-width: 980px) {
  .inicio-grid { grid-template-columns: 1fr; gap: 48px; }
  .method-strip { grid-template-columns: 1fr; gap: 32px; }
  .method-step { padding: 0; border-right: none !important; border-bottom: 1px solid var(--ink-line); padding-bottom: 32px; }
  .method-step:last-child { border-bottom: none; padding-bottom: 0; }
  .areas-grid { grid-template-columns: 1fr 1fr; }
  .area-cell:nth-child(3n) { border-right: 1px solid var(--ink-line); }
  .area-cell:nth-child(2n) { border-right: none; }
  .area-cell:nth-last-child(-n+3) { border-bottom: 1px solid var(--ink-line); }
  .area-cell:nth-last-child(-n+2) { border-bottom: none; }
  .result-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .lead-card-grid { grid-template-columns: 1fr; gap: 32px; }
  .gracias-cta-card { grid-template-columns: 1fr; text-align: center; padding: 32px; }
  .gracias-cta-card .photo { margin: 0 auto; }
  .area-result { grid-template-columns: 40px 1fr auto; row-gap: 12px; }
  .area-result .name { grid-column: 2 / -1; }
  .area-result .bar-wrap { grid-column: 1 / -1; }
  .area-result .lvl-badge { display: none; }
}
@media (max-width: 720px) {
  .container, .container-narrow, .container-tight { padding: 0 20px; }
  .progress-bar { padding-left: 20px; padding-right: 20px; }
  .area-hero { grid-template-columns: 56px 1fr; gap: 16px; padding: 24px 20px; }
  .area-hero .right-meta { display: none; }
  .area-hero .ico-wrap { width: 56px; height: 56px; }
  .area-hero h1 { font-size: 24px; }
  .afirmaciones-card { padding: 8px 20px; }
  .opciones { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .opcion-card { height: 80px; padding: 8px 4px; font-size: 11px; }
  .scale-legend { display: none; }
  .afirmacion { grid-template-columns: 1fr; gap: 14px; padding: 18px 0; }
  .afirmacion-left { grid-template-columns: 28px 1fr; }
  .afirmacion-num { font-size: 11px; }
  .afirmacion-text { font-size: 15px; }
  .result-hero { padding: 32px 24px; }
  .result-level-name { font-size: 48px; }
  .lead-card { padding: 32px 24px; }
  .lead-form .form-grid { grid-template-columns: 1fr; }
  .areas-band, .method-strip { margin-top: 56px; padding-top: 40px; }
}
