/* ==========================================================================
   El Diagnóstico del Piloto IA · Flow IBS
   Design tokens basados en la Guía Técnica de Diseño Web (Notion 34376f...)
   ========================================================================== */

:root {
  /* Fondos */
  --bg-light: #FAFAFA;
  --bg-dark: #0A1628;
  --bg-card: #FFFFFF;

  /* Texto */
  --text-dark: #1D1D1F;
  --text-light: #FFFFFF;
  --gray: #86868B;
  --gray-body: #3A3A40;
  --gray-light: #D8D8D0;
  --gray-line: #E5E7EB;

  /* Acentos */
  --lime: #D9FC67;
  --lime-deep: #B8DB3C;
  --lime-ink: #5A7A00;
  --coral: #FF7A5C;

  /* Bordes */
  --border-dark: rgba(255, 255, 255, 0.08);
  --border-light: rgba(10, 22, 40, 0.08);

  /* Radios */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 100px;

  /* Sombras */
  --shadow-card: 0 2px 16px rgba(10, 22, 40, 0.06);
  --shadow-hover: 0 8px 32px rgba(10, 22, 40, 0.12);

  /* Easing */
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-light);
  min-height: 100vh;
  overflow-x: hidden;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ==========================================================================
   Layout base
   ========================================================================== */

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Progress bar (top)
   ========================================================================== */

.progress-wrap {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 16px 24px 0;
  background: linear-gradient(to bottom, var(--bg-light) 70%, transparent);
  transition: opacity .3s var(--ease-smooth);
}

.progress-wrap[hidden] { display: none; }

.progress-bar {
  height: 4px;
  background: var(--gray-line);
  border-radius: var(--radius-pill);
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
}

.progress-fill {
  height: 100%;
  background: var(--lime);
  width: 0;
  border-radius: var(--radius-pill);
  transition: width .5s var(--ease-smooth);
}

.progress-text {
  max-width: 720px;
  margin: 8px auto 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ==========================================================================
   Views
   ========================================================================== */

.view {
  display: none;
  flex: 1;
  padding: 48px 0 64px;
  animation: fadeUp .5s var(--ease-smooth);
}

.view.is-active { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Typography
   ========================================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime-ink);
  padding: 6px 14px;
  background: rgba(217, 252, 103, 0.22);
  border: 1px solid rgba(217, 252, 103, 0.5);
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime-deep);
  box-shadow: 0 0 0 3px rgba(217, 252, 103, 0.25);
}

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-dark);
}

h1 {
  font-size: clamp(2rem, 5vw + 1rem, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(1.6rem, 3vw + 0.5rem, 2.5rem);
  margin-bottom: 16px;
}

h3 {
  font-size: clamp(1.25rem, 2vw + 0.5rem, 1.75rem);
  margin-bottom: 12px;
}

p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--gray-body);
  margin-bottom: 16px;
}

.lead {
  font-size: 19px;
  line-height: 1.5;
  color: var(--gray-body);
  font-weight: 400;
  max-width: 640px;
}

.mark {
  background: linear-gradient(transparent 58%, rgba(217, 252, 103, 0.55) 58%, rgba(217, 252, 103, 0.55) 92%, transparent 92%);
  padding: 0 2px;
  font-weight: 700;
}

.muted {
  color: var(--gray);
  font-size: 14px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--radius-pill);
  transition: transform .2s var(--ease-smooth), box-shadow .2s var(--ease-smooth), background .2s var(--ease-smooth);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

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

.btn--primary {
  background: var(--lime);
  color: var(--bg-dark);
  box-shadow: 0 4px 14px rgba(217, 252, 103, 0.35);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(217, 252, 103, 0.5);
}

.btn--primary:active { transform: translateY(0); }

.btn--lg {
  padding: 18px 36px;
  font-size: 17px;
}

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

.btn[disabled], .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ==========================================================================
   Landing (view-landing)
   ========================================================================== */

.hero {
  text-align: left;
  padding: 24px 0 40px;
}

.hero__kicker {
  margin-bottom: 24px;
}

.hero__title {
  max-width: 680px;
}

.hero__subtitle {
  margin-top: 24px;
  max-width: 620px;
}

.hero__cta {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.hero__micro {
  font-size: 13px;
  color: var(--gray);
}

.hero__meta {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}

.hero__meta-item .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  display: block;
  margin-bottom: 4px;
}

.hero__meta-item .value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
}

/* ==========================================================================
   Question view
   ========================================================================== */

.question {
  animation: fadeUp .4s var(--ease-smooth);
}

.question__text {
  margin-bottom: 32px;
  max-width: 620px;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  text-align: left;
  width: 100%;
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.5;
  transition: all .2s var(--ease-smooth);
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
}

.option:hover {
  border-color: var(--lime-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

.option.is-selected {
  border-color: var(--lime-deep);
  background: rgba(217, 252, 103, 0.1);
  box-shadow: 0 0 0 4px rgba(217, 252, 103, 0.18);
}

.option__bullet {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--gray-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray);
  transition: all .2s var(--ease-smooth);
}

.option.is-selected .option__bullet {
  background: var(--lime);
  border-color: var(--lime-deep);
  color: var(--bg-dark);
}

.option__label {
  flex: 1;
  padding-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.nav__back {
  background: none;
  border: none;
  color: var(--gray);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 0;
  transition: color .2s;
}

.nav__back:hover { color: var(--text-dark); }
.nav__back:disabled { opacity: 0; pointer-events: none; }

/* ==========================================================================
   Capture (email + name)
   ========================================================================== */

.capture {
  max-width: 560px;
}

.capture__title { margin-bottom: 12px; }
.capture__subtitle {
  margin-bottom: 32px;
  color: var(--gray-body);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}

.field__input {
  padding: 16px 18px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-family: inherit;
  font-weight: 500;
  color: var(--text-dark);
  background: var(--bg-card);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

.field__input:focus {
  border-color: var(--lime-deep);
  box-shadow: 0 0 0 4px rgba(217, 252, 103, 0.2);
}

.field__input::placeholder { color: var(--gray); }

.field__error {
  font-size: 13px;
  color: var(--coral);
  min-height: 16px;
  font-weight: 500;
}

.field__optional {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gray);
  margin-left: 8px;
  opacity: 0.75;
}

.field__textarea {
  resize: vertical;
  min-height: 110px;
  max-height: 240px;
  font-family: inherit;
  line-height: 1.5;
}

.field__counter {
  font-size: 12px;
  color: var(--gray);
  text-align: right;
  font-variant-numeric: tabular-nums;
  margin-top: -4px;
}

.field__counter.is-near-limit { color: var(--coral); font-weight: 600; }

.capture__cta { margin-top: 16px; }

.capture__legal {
  margin-top: 20px;
  font-size: 12px;
  color: var(--gray);
  line-height: 1.5;
}

/* ==========================================================================
   Loader2 · full-screen motion graphics style
   ========================================================================== */

.view-loading {
  padding: 0;
}

.loader2 {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 48px 24px;
}

.dots-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  opacity: 0;
  box-shadow: 0 0 12px rgba(217, 252, 103, 0.45);
  will-change: transform, opacity;
  animation-name: dotBreathe, dotDrift;
  animation-duration: 4s, 14s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out, linear;
  animation-direction: alternate, normal;
}

.dot.sm { width: 4px; height: 4px; box-shadow: 0 0 8px rgba(217, 252, 103, 0.35); }
.dot.lg { width: 10px; height: 10px; box-shadow: 0 0 24px rgba(217, 252, 103, 0.55); }
.dot.coral { background: var(--coral); box-shadow: 0 0 14px rgba(255, 122, 92, 0.35); }

@keyframes dotBreathe {
  0%   { opacity: 0.1; transform: scale(0.6); }
  50%  { opacity: 0.9; transform: scale(1.15); }
  100% { opacity: 0.3; transform: scale(0.8); }
}

@keyframes dotDrift {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(20px, -15px) scale(1.1); }
  50%  { transform: translate(-12px, 18px) scale(0.95); }
  75%  { transform: translate(15px, 10px) scale(1.05); }
  100% { transform: translate(0, 0) scale(1); }
}

/* Líneas conectoras — swarm effect */
.dots-canvas::before,
.dots-canvas::after {
  content: '';
  position: absolute;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 252, 103, 0.15), transparent);
  top: 50%;
  left: 20%;
  transform-origin: center;
  animation: lineRotate 22s linear infinite;
}
.dots-canvas::after {
  animation-duration: 34s;
  animation-direction: reverse;
  top: 45%;
  width: 70%;
  left: 15%;
}
@keyframes lineRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Contenido por encima */
.loader2__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.percent {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 28px;
  animation: percentPulse 2.4s ease-in-out infinite;
}

.percent__num {
  font-size: clamp(5rem, 16vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  color: var(--lime);
  line-height: 0.9;
  text-shadow: 0 0 40px rgba(217, 252, 103, 0.35);
  font-variant-numeric: tabular-nums;
}

.percent__sign {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--lime);
  margin-top: 0.4em;
  margin-left: 6px;
  opacity: 0.7;
}

@keyframes percentPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.025); }
}

.progress-linear {
  width: min(420px, 80%);
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 40px;
}

.progress-linear__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--lime) 0%, #EAFFA6 50%, var(--lime) 100%);
  background-size: 200% 100%;
  border-radius: var(--radius-pill);
  transition: width 0.5s var(--ease-smooth);
  animation: shimmer 2s linear infinite;
  box-shadow: 0 0 16px rgba(217, 252, 103, 0.55);
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.loader2__title {
  font-size: clamp(1.1rem, 2vw + 0.5rem, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-light);
  margin-bottom: 10px;
}

.loader2__step {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  min-height: 22px;
  margin-bottom: 28px;
  transition: opacity .3s;
  font-variant-numeric: tabular-nums;
}

.loader2__step.is-fading { opacity: 0; }

.loader2__ticks {
  display: flex;
  gap: 10px;
}

.tick {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  transition: background .4s var(--ease-smooth), transform .4s var(--ease-spring);
}

.tick.is-active {
  background: var(--lime);
  transform: scale(1.35);
  box-shadow: 0 0 12px rgba(217, 252, 103, 0.6);
}

@media (max-width: 640px) {
  .progress-linear { width: 90%; }
  .loader2__title { font-size: 18px; }
}

/* ==========================================================================
   Error state
   ========================================================================== */

.error-box {
  max-width: 480px;
  padding: 32px;
  border: 1.5px solid var(--coral);
  background: rgba(255, 122, 92, 0.06);
  border-radius: var(--radius-md);
  text-align: center;
}

.error-box h3 { color: var(--coral); margin-bottom: 12px; }

/* ==========================================================================
   Result (ICP ideal)
   ========================================================================== */

.result__kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 16px;
}

.result__archetype {
  font-size: clamp(2rem, 4vw + 1rem, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 8px;
}

.result__archetype-color-rojo { color: var(--coral); }
.result__archetype-color-naranja { color: #E8844C; }
.result__archetype-color-amarillo { color: var(--lime-ink); }
.result__archetype-color-verde { color: var(--lime-ink); }

.result__phase {
  font-size: 17px;
  color: var(--gray-body);
  margin-bottom: 40px;
  font-weight: 500;
}

.result__block {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.result__block-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 12px;
}

.result__lectura {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-dark);
}

/* Fases A³ (nuevo · con nodos y líneas conectoras) */
.a3-phases {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 12px;
  gap: 0;
}

.a3-phase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
}

.a3-phase__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gray-line);
  border: 2px solid transparent;
  transition: all .4s var(--ease-spring);
  position: relative;
}

.a3-phase.is-done .a3-phase__dot {
  background: var(--lime-deep);
  border-color: var(--lime-deep);
}

.a3-phase.is-done .a3-phase__dot::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-dark);
  font-size: 14px;
  font-weight: 900;
}

.a3-phase.is-current .a3-phase__dot {
  background: var(--lime);
  border-color: var(--lime);
  transform: scale(1.35);
  box-shadow:
    0 0 0 6px rgba(217, 252, 103, 0.2),
    0 0 24px rgba(217, 252, 103, 0.5);
  animation: phasePulse 2.2s ease-in-out infinite;
}

@keyframes phasePulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(217, 252, 103, 0.2), 0 0 24px rgba(217, 252, 103, 0.5); }
  50%      { box-shadow: 0 0 0 10px rgba(217, 252, 103, 0.05), 0 0 32px rgba(217, 252, 103, 0.7); }
}

.a3-phase.is-pending .a3-phase__dot {
  background: var(--gray-line);
}

.a3-phase__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gray);
  white-space: nowrap;
  transition: color .3s;
}

.a3-phase.is-current .a3-phase__label {
  color: var(--text-dark);
  font-weight: 800;
}

.a3-phase.is-done .a3-phase__label {
  color: var(--gray-body);
}

.a3-phase__hint {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  opacity: 0.6;
}

.a3-phase.is-current .a3-phase__hint {
  color: var(--lime-deep);
  opacity: 1;
}

.a3-phase__line {
  flex: 1;
  height: 2px;
  background: var(--gray-line);
  margin: 0 -4px;
  margin-bottom: 32px; /* centrado con el dot */
  position: relative;
  transition: background .4s var(--ease-smooth);
}

.a3-phase__line.is-done {
  background: var(--lime-deep);
}

@media (max-width: 520px) {
  .a3-phase__dot { width: 22px; height: 22px; }
  .a3-phase.is-done .a3-phase__dot::after { font-size: 11px; }
  .a3-phase__label { font-size: 11px; }
  .a3-phase__hint { font-size: 9px; }
}

/* Alfa */
.alfa {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 8px 0 4px;
}

.alfa__number {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--bg-dark);
  line-height: 1;
}

.alfa__unit {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-body);
}

.alfa__meta {
  font-size: 14px;
  color: var(--gray);
}

/* Listas */
.result-list {
  list-style: none;
  counter-reset: n;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
}

.result-list li {
  counter-increment: n;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 18px 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-light);
}

.result-list li:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}

.result-list li:first-child {
  padding-top: 8px;
}

.result-list li::before {
  content: counter(n);
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--bg-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(217, 252, 103, 0.25);
}

.result-list strong { color: var(--text-dark); font-weight: 700; }

/* Bridge */
.bridge {
  text-align: center;
  padding: 48px 24px 32px;
  background: var(--bg-dark);
  color: var(--text-light);
  border-radius: var(--radius-lg);
  margin: 40px 0 24px;
}

.bridge h2 { color: var(--text-light); margin-bottom: 12px; }
.bridge p { color: rgba(255, 255, 255, 0.8); max-width: 540px; margin-left: auto; margin-right: auto; }

/* VSL player custom · overlay + tag */
.vsl-block {
  margin-bottom: 32px;
  text-align: center;
}

.video-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bg-dark);
  background: var(--lime);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(217, 252, 103, 0.35);
}

.video-tag__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bg-dark);
  animation: breathe 1.8s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.3); }
}

.video-wrap {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 20px 60px rgba(10, 22, 40, 0.35);
}

.video-el {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.78) 0%, rgba(10, 22, 40, 0.58) 100%);
  cursor: pointer;
  transition: opacity 0.5s var(--ease-smooth);
  color: var(--text-light);
  user-select: none;
}

.video-overlay.is-hidden { opacity: 0; pointer-events: none; }

.video-play-btn {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 0 rgba(217, 252, 103, 0.5);
  animation: videoPulse 2.2s ease-in-out infinite;
  transition: transform 0.3s var(--ease-spring);
}

.video-overlay:hover .video-play-btn,
.video-overlay:focus-visible .video-play-btn { transform: scale(1.08); }

.video-play-btn svg {
  width: 34px;
  height: 34px;
  fill: var(--bg-dark);
  margin-left: 5px;
}

@keyframes videoPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 252, 103, 0.5); }
  50%      { box-shadow: 0 0 0 18px rgba(217, 252, 103, 0); }
}

.video-overlay__title {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-light);
}

.video-overlay__sub {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  .video-wrap { border-radius: 12px; }
  .video-play-btn { width: 68px; height: 68px; }
  .video-play-btn svg { width: 26px; height: 26px; }
  .video-overlay__title { font-size: 1rem; }
  .video-overlay__sub { font-size: 12px; }
}

/* CTA final */
.cta-final {
  text-align: center;
  padding: 40px 24px;
  background: linear-gradient(135deg, rgba(217, 252, 103, 0.15), rgba(255, 122, 92, 0.08));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(217, 252, 103, 0.3);
}

.cta-final h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.cta-final p {
  margin-bottom: 24px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  padding: 40px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--gray);
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}

.footer a { color: var(--text-dark); font-weight: 600; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .view { padding: 32px 0 48px; }
  .hero { padding: 16px 0 32px; }
  .option { padding: 18px 18px; font-size: 15px; }
  .result__block { padding: 24px 20px; }
  .bridge { padding: 36px 20px; border-radius: var(--radius-md); }
  .cta-final { padding: 32px 20px; border-radius: var(--radius-md); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   DARK MODE · body.theme-dark
   ========================================================================== */

body.theme-dark {
  background: var(--bg-dark);
  color: var(--text-light);
}

body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark h4 {
  color: var(--text-light);
}

body.theme-dark p,
body.theme-dark .lead {
  color: rgba(255, 255, 255, 0.82);
}

body.theme-dark .muted,
body.theme-dark .hero__micro,
body.theme-dark .capture__legal,
body.theme-dark .alfa__meta {
  color: rgba(255, 255, 255, 0.52);
}

/* Eyebrow */
body.theme-dark .eyebrow {
  color: var(--lime);
  background: rgba(217, 252, 103, 0.1);
  border-color: rgba(217, 252, 103, 0.3);
}

/* Progress */
body.theme-dark .progress-wrap {
  background: linear-gradient(to bottom, var(--bg-dark) 70%, transparent);
}

body.theme-dark .progress-bar {
  background: rgba(255, 255, 255, 0.08);
}

body.theme-dark .progress-text {
  color: rgba(255, 255, 255, 0.55);
}

/* Hero meta divider */
body.theme-dark .hero__meta {
  border-top-color: var(--border-dark);
}

body.theme-dark .hero__meta-item .label {
  color: rgba(255, 255, 255, 0.5);
}

body.theme-dark .hero__meta-item .value {
  color: var(--text-light);
}

/* Question options */
body.theme-dark .option {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-dark);
  color: var(--text-light);
}

body.theme-dark .option:hover {
  border-color: var(--lime);
  background: rgba(217, 252, 103, 0.08);
  box-shadow: 0 4px 20px rgba(217, 252, 103, 0.12);
}

body.theme-dark .option.is-selected {
  background: rgba(217, 252, 103, 0.12);
  border-color: var(--lime);
  box-shadow: 0 0 0 4px rgba(217, 252, 103, 0.18);
}

body.theme-dark .option__bullet {
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.04);
}

body.theme-dark .option.is-selected .option__bullet {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--bg-dark);
}

/* Nav */
body.theme-dark .nav {
  border-top-color: var(--border-dark);
}

body.theme-dark .nav__back {
  color: rgba(255, 255, 255, 0.6);
}

body.theme-dark .nav__back:hover {
  color: var(--text-light);
}

/* Capture form */
body.theme-dark .field__label {
  color: rgba(255, 255, 255, 0.55);
}

body.theme-dark .field__input {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-dark);
  color: var(--text-light);
}

body.theme-dark .field__input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

body.theme-dark .field__input:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 4px rgba(217, 252, 103, 0.18);
}

/* Error box */
body.theme-dark .error-box {
  background: rgba(255, 122, 92, 0.1);
  color: var(--text-light);
}

body.theme-dark .error-box p {
  color: rgba(255, 255, 255, 0.8);
}

/* Result blocks */
body.theme-dark .result__kicker,
body.theme-dark .result__block-title {
  color: rgba(255, 255, 255, 0.5);
}

body.theme-dark .result__archetype {
  color: var(--text-light);
}

body.theme-dark .result__archetype-color-rojo {
  color: var(--coral);
}

body.theme-dark .result__archetype-color-naranja {
  color: #FFB080;
}

body.theme-dark .result__archetype-color-amarillo,
body.theme-dark .result__archetype-color-verde {
  color: var(--lime);
}

body.theme-dark .result__phase {
  color: rgba(255, 255, 255, 0.7);
}

body.theme-dark .result__block {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-dark);
  box-shadow: none;
}

body.theme-dark .result__lectura {
  color: rgba(255, 255, 255, 0.92);
}

/* Alfa */
body.theme-dark .alfa__number {
  color: var(--lime);
}

body.theme-dark .alfa__unit {
  color: rgba(255, 255, 255, 0.7);
}

/* Listas */
body.theme-dark .result-list li {
  color: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .result-list strong {
  color: var(--text-light);
}

/* Bridge (ya es dark en light-mode · en dark le damos un sutil lift) */
body.theme-dark .bridge {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
}

/* CTA final */
body.theme-dark .cta-final {
  background: linear-gradient(135deg, rgba(217, 252, 103, 0.08), rgba(255, 122, 92, 0.05));
  border-color: rgba(217, 252, 103, 0.2);
}

/* Footer */
body.theme-dark .footer {
  border-top-color: var(--border-dark);
  color: rgba(255, 255, 255, 0.45);
}

body.theme-dark .footer a {
  color: var(--text-light);
}
