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

:root {
  --core: #4fa8ff;
  --bg: #f8f9fe;
  --ink: #26305c;
  --accent: #ff3d8a;
  --accent-strong: #e01b66; /* acento con blanco: 4.65:1 (AA) */
  --link: #1670d1; /* azul de texto/enlaces: 4.67:1 sobre --bg (AA) */
  --muted: #666d8c; /* texto secundario: 4.83:1 sobre --bg (AA) */
  --success: #1e9c82;
  --success-text: #177a66; /* verde de texto sobre blanco: 5.23:1 (AA) */
  --warning: #b9790a;
  --error: #c92e48; /* 5.03:1 sobre --bg (AA) */

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;

  --radius-none: 0;
  --radius-sm: 6px;
  --radius-pill: 999px;

  --stroke-subtle: rgba(38, 48, 92, 0.12);
  --stroke-default: rgba(38, 48, 92, 0.24);
  --stroke-strong: rgba(38, 48, 92, 0.5);

  --fast: 150ms;
  --deliberate: 900ms;

  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] {
  display: none !important;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: var(--space-4);
  top: var(--space-4);
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--bg);
}

/* ---- Typography ---- */

h1,
h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

h1 {
  max-width: 15ch;
  font-size: clamp(2.75rem, 7vw, 5.5rem);
}

h2 {
  max-width: 18ch;
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.meta {
  margin: 0 0 var(--space-4);
  color: var(--link);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lede {
  max-width: 34ch;
  margin: var(--space-5) 0 0;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
}

.lede strong {
  font-weight: 700;
}

.body {
  max-width: 46ch;
  margin: var(--space-4) 0 0;
  color: rgba(38, 48, 92, 0.82);
}

/* ---- Layout ---- */

.shell {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.flow {
  position: relative;
  padding-block: clamp(48px, 9vw, 128px) 0;
}

.spine {
  position: absolute;
  left: 3px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    rgba(79, 168, 255, 0) 0%,
    rgba(79, 168, 255, 0.35) 12%,
    rgba(79, 168, 255, 0.35) 88%,
    rgba(79, 168, 255, 0) 100%
  );
}

.block {
  position: relative;
  padding-block: var(--space-6);
  padding-left: clamp(28px, 5vw, 56px);
}

.tick {
  position: absolute;
  left: 0;
  top: calc(var(--space-6) + 6px);
  width: 7px;
  height: 7px;
  border-radius: var(--radius-pill);
  background: var(--core);
}

/* ---- Content blocks ---- */

.signs {
  max-width: 48ch;
  margin: var(--space-5) 0 0;
  padding: 0;
  list-style: none;
}

.signs li {
  position: relative;
  padding: var(--space-3) 0 var(--space-3) var(--space-5);
  border-top: 1px solid var(--stroke-subtle);
  color: rgba(38, 48, 92, 0.86);
}

.signs li:last-child {
  border-bottom: 1px solid var(--stroke-subtle);
}

.signs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(var(--space-3) + 0.72em);
  width: 14px;
  height: 1px;
  background: var(--core);
}

.steps {
  max-width: 52ch;
  margin: var(--space-5) 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--stroke-subtle);
}

.steps li:last-child {
  border-bottom: 1px solid var(--stroke-subtle);
}

.step-num {
  color: var(--link);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
}

.steps h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.steps p {
  margin: var(--space-1) 0 0;
  color: rgba(38, 48, 92, 0.82);
  font-size: 0.9375rem;
}

.example {
  max-width: 50ch;
  margin: var(--space-5) 0 0;
  padding-left: var(--space-4);
  border-left: 2px solid var(--core);
  color: rgba(38, 48, 92, 0.86);
  font-size: 0.9375rem;
}

.example strong {
  color: var(--ink);
}

.preview {
  max-width: 560px;
  margin-top: var(--space-5);
  border: 1px solid var(--stroke-subtle);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.preview-top {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px var(--space-4);
  border-bottom: 1px solid var(--stroke-subtle);
}

.preview-dots {
  display: flex;
  gap: 4px;
}

.preview-dots i {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--stroke-default);
}

.preview-name {
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.preview-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: var(--space-3);
  padding: 10px var(--space-4);
  border-top: 1px solid var(--stroke-subtle);
  font-size: 0.875rem;
}

.preview-head {
  border-top: 0;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.preview-ok {
  color: var(--success-text);
  font-weight: 700;
}

.faq {
  max-width: 56ch;
  margin-top: var(--space-5);
}

.faq details {
  border-top: 1px solid var(--stroke-subtle);
}

.faq details:last-child {
  border-bottom: 1px solid var(--stroke-subtle);
}

.faq summary {
  position: relative;
  display: block;
  padding: var(--space-4) var(--space-6) var(--space-4) 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  color: var(--link);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1;
  transform: translateY(-50%);
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  max-width: 52ch;
  margin: 0 0 var(--space-4);
  color: rgba(38, 48, 92, 0.82);
  font-size: 0.9375rem;
}

/* ---- Nav ---- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--stroke-subtle);
  background: rgba(248, 249, 254, 0.88);
  backdrop-filter: blur(8px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--link);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
}

.caret {
  display: inline-block;
  transition: transform var(--fast) ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--fast) ease;
}

.nav-link:hover .caret,
.nav-link:focus-visible .caret {
  transform: translateY(-3px);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

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

.hero {
  padding-bottom: var(--space-6);
}

.rise {
  position: relative;
  display: inline-block;
}

.rise::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.08em;
  background: var(--core);
  transform-origin: left;
  animation: rise var(--deliberate) cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rise {
  0% {
    transform: translateY(0.35em) scaleX(0.2);
    opacity: 0;
  }
  60% {
    opacity: 1;
  }
  100% {
    transform: translateY(0) scaleX(1);
    opacity: 1;
  }
}

/* ---- Capture form ---- */

.capture {
  max-width: 640px;
  margin-top: var(--space-6);
}

.capture-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-4);
}

.field {
  position: relative;
  flex: 1 1 320px;
  min-width: 240px;
  margin: 0;
  padding-bottom: var(--space-2);
}

.field-label {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  padding: var(--space-2) 0;
  border: 0;
  border-bottom: 1px solid var(--stroke-default);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.125rem;
}

.field input::placeholder {
  color: var(--muted);
}

.field input:focus {
  outline: none;
}

.field::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: var(--space-2);
  width: 100%;
  height: 2px;
  background: var(--link);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--fast) ease;
}

.field:focus-within::after {
  transform: scaleX(1);
}

.field.is-error::after {
  background: var(--error);
  transform: scaleX(1);
}

.field input:disabled {
  color: var(--muted);
  cursor: progress;
}

/* ---- Action button (único elemento con acento) ---- */

.action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 52px;
  padding: 0 var(--space-5);
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--accent-strong);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter var(--fast) ease, transform var(--fast) ease;
}

.action:hover {
  filter: brightness(0.94);
}

.action:active {
  transform: translateY(1px);
}

.action:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.action:disabled:not(.is-loading) {
  opacity: 0.55;
  cursor: not-allowed;
}

.action.is-loading {
  cursor: progress;
}

.action.is-loading .action-label {
  opacity: 0.9;
}

.action-dot {
  display: none;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--bg);
}

.action.is-loading .action-dot {
  display: inline-block;
  animation: ascend var(--deliberate) ease-in-out infinite;
}

@keyframes ascend {
  0% {
    transform: translateY(6px);
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  100% {
    transform: translateY(-8px);
    opacity: 0;
  }
}

.form-msg {
  min-height: 1.25em;
  margin: var(--space-3) 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
}

.form-msg.is-error {
  color: var(--error);
}

.form-note {
  margin: var(--space-2) 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

.crosslink {
  margin: var(--space-5) 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
}

.crosslink a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.crosslink a:hover {
  border-bottom-color: transparent;
}

/* ---- Success ---- */

.success {
  max-width: 640px;
  margin-top: var(--space-6);
  padding-left: var(--space-5);
  border-left: 2px solid var(--success);
}

.success-mark {
  display: block;
  width: 10px;
  height: 10px;
  margin-bottom: var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--success);
  animation: rise-in var(--deliberate) ease-out both;
}

.success-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.success-body {
  margin: var(--space-2) 0 0;
  color: rgba(38, 48, 92, 0.82);
}

@keyframes rise-in {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ---- Footer ---- */

.footer {
  margin-top: clamp(64px, 10vw, 128px);
  border-top: 1px solid var(--stroke-subtle);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-5);
}

.footer-note {
  color: var(--muted);
  font-size: 0.8125rem;
}

/* ---- Responsive ---- */

@media (max-width: 560px) {
  .nav-inner {
    height: 60px;
  }

  .nav-links {
    gap: var(--space-3);
  }

  .nav-link {
    font-size: 0.875rem;
  }

  .action {
    width: 100%;
  }
}

/* ---- Motion preferences ---- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
