/* Landing final de ayrics — base V4 «Diagnóstico» con el logo D.
   Base: variables de tokens.css (misma carpeta). Lo que no está ahí (acento, error,
   superficies, duraciones) se define acá, con los hex de docs/diseno 2.1/2.2.

   Un solo verde (decisión del usuario): --accent #3DDC97, en fondo claro y oscuro.
   Nunca como color de texto sobre fondo claro (~1.7:1): ahí va como fondo, borde
   o marca, con texto navy encima. */

:root {
  --accent: #3ddc97;
  /* éxito = el único verde (tokens.css ya lo trae así; se fija también acá) */
  --ay-success: var(--accent);
  --color-success: var(--accent);

  --v4-navy: var(--color-navy-900); /* #0B1F3A, azul oscuro principal */
  --v4-navy-deep: var(--color-navy-950);
  --v4-surface: #163258; /* superficies elevadas sobre navy */
  --v4-link: #2f5a8f; /* 7:1 sobre blanco */
  --v4-muted-dark: var(--color-navy-300); /* texto secundario sobre navy */
  --v4-soft: var(--color-navy-100);
  --v4-muted: var(--color-text-muted);
  --v4-line: #d5dce6;
  --v4-line-dark: rgba(255, 255, 255, 0.16);
  --v4-field: #7c8ba1; /* borde de inputs, 3.5:1 sobre blanco */
  --v4-error: #b42318;
  --v4-error-dark: #ff8a7a;

  --ease-back: cubic-bezier(0.34, 1.4, 0.64, 1);
  --dur-micro: 120ms;
  --dur-hover: 220ms;
  --dur-reveal: 560ms;

  --font-v4: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-v4-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --font-logo: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --top-h: 64px;
  --focus: var(--v4-navy);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: var(--font-v4);
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.6;
  background: var(--color-white);
  color: var(--v4-navy);
  overflow-x: hidden;
}

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

/* Contextos oscuros: foco blanco */
.top,
.hero,
.dx,
.section--dark,
.svc--other,
.foot,
.dockbar {
  --focus: var(--color-white);
}

section[id],
#inicio {
  scroll-margin-top: var(--top-h);
}

.wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 56px);
}

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

[hidden] {
  display: none !important;
}

.label {
  font-family: var(--font-v4-mono);
  font-weight: 500;
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.h2 {
  font-size: clamp(1.625rem, 3vw, 2.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--color-white);
  color: var(--v4-navy);
  font-weight: 500;
  border-radius: 4px;
}

.skip:focus {
  top: 12px;
}

/* ---------- Botones y links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--dur-hover) var(--ease-out),
    color var(--dur-hover) var(--ease-out),
    border-color var(--dur-hover) var(--ease-out),
    transform var(--dur-micro) var(--ease-out);
}

.btn:active {
  transform: scale(0.98);
}

.btn--light {
  background: var(--color-white);
  color: var(--v4-navy);
}

.btn--light:hover {
  background: var(--v4-soft);
}

.btn--primary {
  background: var(--v4-navy);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--v4-surface);
}

.btn--accent {
  background: var(--accent);
  color: var(--v4-navy);
}

.btn--accent:hover {
  background: var(--color-white);
}

.btn--ghost {
  background: transparent;
  border-color: var(--v4-navy);
  color: var(--v4-navy);
}

.btn--small {
  min-height: 44px;
  padding: 8px 14px;
  font-size: 0.9375rem;
  background: var(--v4-navy);
  color: var(--color-white);
}

.btn--small.btn--ghost {
  background: transparent;
  color: var(--v4-navy);
}

.btn[disabled] {
  cursor: progress;
  opacity: 0.85;
}

.tlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--v4-link);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: pointer;
  transition: text-decoration-thickness var(--dur-hover) var(--ease-out);
}

.tlink:hover {
  text-decoration-thickness: 2px;
}

.tlink--light {
  color: var(--color-white);
}

.tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 8px;
  border-radius: 3px;
  background: var(--accent);
  color: var(--v4-navy);
  font-family: var(--font-v4-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
}

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

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--v4-navy);
  color: var(--color-white);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-hover) linear;
}

.top.is-scrolled {
  border-bottom-color: var(--v4-line-dark);
}

.top__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--top-h);
}

/* Logo D (docs/diseno/logos/logo-d-horizontal-oscuro.svg), inline.
   Alto 33 px = texto ≈ 22 px. textLength fija el ancho: con la fuente de
   respaldo el punto no pisa la «s». El viewBox recorta el aire lateral del
   archivo (x 12–214 en vez de 0–226) para no ensanchar la nav a 320 px. */
.logo {
  margin-right: auto;
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 44px;
}

.logo__svg {
  display: block;
  width: 69.4375px; /* 202 × 33 / 96 */
  height: 33px;
  flex-shrink: 0;
}

.logo__text {
  font-family: var(--font-logo);
  font-weight: 700;
  fill: var(--color-white);
}

.logo__dot {
  fill: var(--accent);
}

.top__cta {
  min-height: 44px;
  padding: 8px 12px;
  font-size: 0.875rem;
  white-space: nowrap;
}

.menu-toggle {
  min-height: 44px;
  min-width: 44px;
  padding: 8px 12px;
  border: 1px solid var(--v4-line-dark);
  border-radius: 4px;
  background: transparent;
  color: var(--color-white);
  font-weight: 500;
  font-size: 0.9375rem;
  cursor: pointer;
}

/* Pantallas muy angostas (320px): logo + CTA + Menú no entran con el padding estándar */
@media (max-width: 359px) {
  .top__inner {
    gap: 6px;
    padding-inline: 16px;
  }

  .top .logo__svg {
    width: 63.125px; /* 202 × 30 / 96: texto ≈ 20 px */
    height: 30px;
  }

  .top__cta {
    padding: 8px 10px;
    font-size: 0.8125rem;
  }

  .menu-toggle {
    padding: 8px 10px;
    font-size: 0.875rem;
  }
}

.menu {
  display: none;
}

html:not(.js) .menu {
  display: block;
  order: 10;
  width: 100%;
}

html:not(.js) .top__inner {
  flex-wrap: wrap;
}

html:not(.js) .menu-toggle {
  display: none;
}

.menu.is-open {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--v4-navy);
  border-bottom: 1px solid var(--v4-line-dark);
  padding: 8px clamp(20px, 5vw, 56px) 20px;
}

.menu__list {
  list-style: none;
  padding: 0;
}

.menu__list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--color-white);
  text-decoration: none;
  border-bottom: 1px solid var(--v4-line-dark);
}

.menu__list a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (min-width: 1024px) {
  .menu,
  html:not(.js) .menu {
    display: block;
    order: 0;
    width: auto;
    margin-right: 16px;
  }

  .menu__list {
    display: flex;
    gap: 24px;
  }

  .menu__list a {
    min-height: 44px;
    border: 0;
    font-size: 0.9375rem;
    color: var(--v4-muted-dark);
    transition: color var(--dur-hover) var(--ease-out);
  }

  .menu__list a:hover {
    color: var(--color-white);
  }

  .menu-toggle {
    display: none;
  }

  .top__cta {
    padding: 10px 16px;
    font-size: 0.9375rem;
  }
}

/* ---------- Hero + selector ---------- */

.hero {
  background: var(--v4-navy);
  color: var(--color-white);
  padding-block: clamp(32px, 7vw, 88px) clamp(40px, 7vw, 88px);
}

.hero__eyebrow {
  color: var(--accent);
  margin-bottom: 16px;
}

.hero__title {
  font-size: clamp(2.25rem, 5.5vw, 4.75rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 18ch;
  text-wrap: balance;
}

.hero__title-2 {
  display: block;
  margin-top: 0.12em;
  font-weight: 400;
  color: var(--v4-soft);
}

.picker {
  border: 0;
  padding: 0;
  margin: clamp(32px, 5vw, 56px) 0 0;
  min-width: 0;
}

.picker__q {
  padding: 0;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.picker__q-aside {
  font-family: var(--font-v4-mono);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--v4-muted-dark);
  letter-spacing: 0;
  white-space: nowrap;
}

.picker__help {
  margin-top: 4px;
  color: var(--v4-muted-dark);
  font-size: 1rem;
}

.picker__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 20px;
}

@media (min-width: 768px) {
  .picker__grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  /* un poco de asimetría: la primera columna es apenas más ancha */
  .picker__grid {
    grid-template-columns: 1.08fr 1fr;
  }
}

.opt {
  position: relative;
  display: block;
  cursor: pointer;
}

html.js .opt {
  animation: optIn 480ms var(--ease-out) both;
  animation-delay: calc(300ms + var(--i) * 70ms);
}

@keyframes optIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

.opt--other {
  grid-column: 1 / -1;
}

.opt__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.opt__box {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 64px;
  height: 100%;
  padding: 16px 18px 16px 56px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  background: transparent;
  transition:
    border-color 180ms var(--ease-out),
    background-color 260ms var(--ease-out),
    box-shadow 260ms var(--ease-out);
}

.opt--other .opt__box {
  border-style: dashed;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  column-gap: 12px;
}

.opt__dot {
  position: absolute;
  left: 18px;
  top: 18px;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--v4-muted-dark);
  border-radius: 50%;
  transition:
    transform 180ms var(--ease-out),
    background-color 260ms var(--ease-out),
    border-color 260ms var(--ease-out);
}

.opt--other .opt__dot {
  top: 50%;
  margin-top: -11px;
}

.opt__dot svg {
  width: 100%;
  height: 100%;
}

.opt__dot path {
  fill: none;
  stroke: var(--v4-navy);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 260ms var(--ease-back) 60ms;
}

.opt__title {
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.3;
}

.opt__sym {
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--v4-muted-dark);
}

@media (hover: hover) and (pointer: fine) {
  .opt:hover .opt__box {
    border-color: var(--color-white);
  }

  .opt:hover .opt__dot {
    transform: scale(1.09);
  }
}

.opt__input:focus-visible + .opt__box {
  outline: 2px solid var(--color-white);
  outline-offset: 3px;
  border-color: var(--color-white);
}

.picker.has-choice .opt__input:not(:checked) + .opt__box {
  border-color: var(--v4-line-dark);
}

.opt__input:checked + .opt__box {
  background: var(--v4-surface);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.opt__input:checked + .opt__box .opt__dot {
  background: var(--accent);
  border-color: var(--accent);
}

.opt__input:checked + .opt__box .opt__dot path {
  stroke-dashoffset: 0;
}

.hero__foot {
  display: grid;
  gap: 16px;
  margin-top: clamp(32px, 5vw, 48px);
  padding-top: 24px;
  border-top: 1px solid var(--v4-line-dark);
}

.hero__lead {
  max-width: 62ch;
  color: var(--v4-muted-dark);
}

.hero__micro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 20px;
  font-size: 0.9375rem;
  color: var(--v4-muted-dark);
}

@media (min-width: 1024px) {
  .hero__foot {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
    gap: 48px;
  }

  .hero__micro {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Panel de diagnóstico ---------- */

.dx-section {
  background: var(--v4-soft);
  padding-block: clamp(32px, 6vw, 72px);
}

.dx-section.is-off {
  display: none;
}

.dx {
  position: relative;
  overflow: hidden;
  background: var(--v4-navy);
  color: var(--color-white);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 48px);
}

.dx__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--v4-line-dark);
}

.dx__label {
  color: var(--v4-muted-dark);
}

.dx__label-opt:not(:empty)::before {
  content: " · ";
}

.dx__label-opt {
  color: var(--color-white);
}

.dx__change {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--v4-line-dark);
  border-radius: 4px;
  background: transparent;
  color: var(--color-white);
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color var(--dur-hover) var(--ease-out);
}

.dx__change:hover {
  border-color: var(--color-white);
}

.dx__title {
  font-size: clamp(1.625rem, 3vw, 2.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 24ch;
  text-wrap: balance;
}

.dx__cols {
  display: grid;
  gap: 28px;
  margin-top: clamp(24px, 4vw, 40px);
}

@media (min-width: 768px) {
  .dx__cols {
    grid-template-columns: 1fr 1.25fr;
    gap: clamp(32px, 5vw, 72px);
  }
}

.dx__sub {
  color: var(--v4-muted-dark);
  margin-bottom: 12px;
}

.dx__sym {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}

.dx__sym li {
  position: relative;
  padding-left: 24px;
}

.dx__sym li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--v4-muted-dark);
}

.dx__stepswrap {
  position: relative;
}

.dx__steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 16px;
  position: relative;
}

.dx__steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: start;
}

.dx__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--v4-navy);
  font-family: var(--font-v4-mono);
  font-weight: 500;
  font-size: 0.8125rem;
  line-height: 1;
}

.dx__bar {
  position: absolute;
  left: 13px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: var(--accent);
  transform-origin: top;
}

.dx__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 48px;
  margin-top: clamp(24px, 4vw, 40px);
  padding-top: 20px;
  border-top: 1px solid var(--v4-line-dark);
}

.dx__meta dt {
  color: var(--v4-muted-dark);
}

.dx__meta dd {
  margin: 2px 0 0;
  font-weight: 500;
}

.dx__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 28px;
}

.skel {
  display: block;
  height: 12px;
  width: 92%;
  margin-bottom: 14px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
}

.skel--m {
  width: 74%;
}

.skel--s {
  width: 56%;
}

/* ---------- Secciones ---------- */

.section {
  padding-block: clamp(56px, 9vw, 120px);
}

.section--soft {
  background: var(--v4-soft);
}

.section--dark {
  background: var(--v4-navy);
  color: var(--color-white);
}

.section__head {
  max-width: 44rem;
  margin-bottom: clamp(28px, 5vw, 56px);
}

.section__lead {
  margin-top: 12px;
  color: var(--v4-muted);
  max-width: 58ch;
}

.section--dark .section__lead {
  color: var(--v4-muted-dark);
}

/* Servicios */

.svc-list {
  list-style: none;
  padding: 0;
  border-bottom: 1px solid var(--v4-line);
}

.svc {
  display: grid;
  gap: 8px 24px;
  padding: 28px 20px;
  border-top: 1px solid var(--v4-line);
  background: var(--color-white);
  transition: background-color 450ms var(--ease-out);
}

.svc.is-rec {
  background: var(--v4-soft);
}

.svc__num {
  color: var(--v4-muted);
}

.svc__name {
  font-size: clamp(1.375rem, 2.2vw, 1.875rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.svc__phrase {
  margin-top: 4px;
  font-weight: 500;
  color: var(--v4-link);
}

.svc__detail > p {
  color: var(--v4-muted);
  max-width: 58ch;
}

.svc__ex {
  list-style: none;
  padding: 0;
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}

.svc__ex li {
  font-family: var(--font-v4-mono);
  font-size: 0.8125rem;
  padding: 3px 8px;
  border: 1px solid var(--v4-line);
  border-radius: 3px;
  color: var(--v4-navy);
}

.svc--other {
  margin-top: 16px;
  border-top: 0;
  border-radius: 8px;
  background: var(--v4-navy);
  color: var(--color-white);
  padding: clamp(28px, 4vw, 44px) clamp(20px, 3vw, 36px);
}

.svc--other .svc__num,
.svc--other .svc__detail > p {
  color: var(--v4-muted-dark);
}

.svc--other .svc__phrase {
  color: var(--accent);
}

.svc--other .svc__name {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
}

@media (min-width: 1024px) {
  .svc {
    grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: start;
    padding-block: 36px;
  }
}

/* Proceso */

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 36px 28px;
  counter-reset: none;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step {
  position: relative;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--v4-navy);
  transform-origin: left;
}

html.js .steps .step::before {
  transform: scaleX(0);
  transition: transform 900ms var(--ease-in-out);
}

html.js .steps .step:nth-child(2)::before {
  transition-delay: 160ms;
}

html.js .steps .step:nth-child(3)::before {
  transition-delay: 320ms;
}

html.js .steps .step:nth-child(4)::before {
  transition-delay: 480ms;
}

html.js .steps.is-visible .step::before {
  transform: none;
}

.step__n {
  color: var(--v4-muted);
}

.step__name {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.step__get {
  margin-top: auto;
  padding: 14px 16px;
  background: var(--color-white);
  border-radius: 4px;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.step__get .label {
  display: block;
  margin-bottom: 4px;
  color: var(--v4-muted);
}

/* Problemas */

.probs {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0 clamp(28px, 4vw, 56px);
}

@media (min-width: 768px) {
  .probs {
    grid-template-columns: 1fr 1fr;
  }
}

.prob {
  padding-block: 28px;
  border-top: 1px solid var(--v4-line);
  background: var(--color-white);
}

.prob > p:not(.tag) {
  margin-top: 10px;
  color: var(--v4-muted);
}

.prob__quote {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-indent: -0.4em;
}

.prob .prob__change {
  color: var(--v4-navy);
}

.prob__change .label {
  display: block;
  color: var(--v4-muted);
  margin-bottom: 2px;
}

.prob.is-rel {
  border-top: 2px solid var(--v4-navy);
}

/* ---------- Contacto ---------- */

/* Problemas y Contacto van ambas sobre blanco: una línea las separa */
.contact {
  border-top: 1px solid var(--v4-line);
}

.contact__grid {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
}

@media (min-width: 1024px) {
  .contact__grid {
    grid-template-columns: 5fr 7fr;
  }

  .contact__intro {
    position: sticky;
    top: calc(var(--top-h) + 32px);
    align-self: start;
  }
}

.contact__title {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  letter-spacing: -0.03em;
}

.contact__title:focus {
  outline: none;
}

.contact__title:focus-visible {
  outline: 2px solid var(--focus);
}

.contact__alt {
  margin-top: 24px;
  color: var(--v4-muted);
}

.contact__alt a {
  color: var(--v4-link);
}

.chip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  min-height: 44px;
  margin-bottom: 20px;
  padding: 8px 14px;
  border: 1px solid var(--v4-navy);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  background: var(--color-white);
  color: var(--v4-navy);
  font-size: 0.9375rem;
  text-align: left;
  cursor: pointer;
}

.chip strong {
  font-weight: 700;
}

.chip__change {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form {
  display: grid;
  gap: 22px;
}

.form__note {
  font-size: 0.9375rem;
  color: var(--v4-muted);
}

.form__summary {
  padding: 12px 16px;
  border: 1px solid var(--v4-error);
  border-left-width: 4px;
  border-radius: 4px;
  color: var(--v4-error);
  font-weight: 500;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-weight: 500;
}

.field__opt {
  font-weight: 400;
  color: var(--v4-muted);
}

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--v4-field);
  border-radius: 4px;
  background: var(--color-white);
  color: var(--v4-navy);
  font-size: 1rem;
  line-height: 1.5;
  transition:
    border-color var(--dur-hover) var(--ease-out),
    box-shadow var(--dur-hover) var(--ease-out);
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6b7a8f;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--v4-navy);
  box-shadow: 0 0 0 1px var(--v4-navy);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--v4-navy);
  outline-offset: 3px;
}

.field [aria-invalid="true"] {
  border-color: var(--v4-error);
  box-shadow: 0 0 0 1px var(--v4-error);
}

.field input[readonly],
.field textarea[readonly] {
  background: #f7f9fb;
}

.field__help,
.field__count {
  font-size: 0.875rem;
  color: var(--v4-muted);
}

.field__error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9375rem;
  color: var(--v4-error);
  font-weight: 500;
}

.field__error::before {
  content: "!";
  flex: none;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--v4-error);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.replace {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  margin-bottom: 4px;
  background: var(--v4-soft);
  border-radius: 4px;
  font-size: 0.9375rem;
}

.replace__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.form__submit {
  justify-self: start;
  min-width: 220px;
}

.form__legal {
  margin-top: -10px;
  font-size: 0.875rem;
  color: var(--v4-muted);
}

/* Honeypot: fuera de pantalla (no display:none, que algunos bots saltean) */
.form__hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Error de envío: borde rojo de 4 px a la izquierda, ícono «!» y texto */
.form__fail {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 16px;
  border: 1px solid var(--v4-error);
  border-left-width: 4px;
  border-radius: 4px;
}

.form__fail-msg {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--v4-error);
  font-weight: 500;
}

.form__fail-msg::before {
  content: "!";
  flex: none;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--v4-error);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.form__fail-msg:focus {
  outline: none;
}

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

.success {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--v4-line);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  display: grid;
  gap: 12px;
  justify-items: start;
}

.success__title {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.success__title:focus {
  outline: none;
}

.success__title:focus-visible {
  outline: 2px solid var(--focus);
}

.success__btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.success__copied {
  font-size: 0.875rem;
  color: var(--v4-muted);
}

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

.foot {
  background: var(--v4-navy-deep);
  color: var(--color-white);
  padding-block: 56px 32px;
}

.foot__grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 768px) {
  .foot__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.foot__brand p:last-child {
  color: var(--v4-muted-dark);
}

.foot .logo {
  min-height: 0;
  margin-bottom: 8px;
}

.foot__h {
  color: var(--v4-muted-dark);
  margin-bottom: 8px;
}

.foot__list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 4px;
}

.foot__list li {
  min-height: 32px;
}

.foot__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.foot__last {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--v4-line-dark);
  font-size: 0.9375rem;
  color: var(--v4-muted-dark);
}

.foot__last a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-white);
}

/* ---------- Barra fija mobile ---------- */

.dockbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  height: 56px;
  background: var(--v4-navy);
  border-top: 1px solid var(--v4-line-dark);
  transform: translateY(100%);
  visibility: hidden;
  transition:
    transform 260ms var(--ease-out),
    visibility 0s linear 260ms;
}

.dockbar.is-on {
  transform: none;
  visibility: visible;
  transition:
    transform 260ms var(--ease-out),
    visibility 0s;
}

.dockbar__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  height: 100%;
  padding: 0 20px;
  border: 0;
  background: transparent;
  color: var(--color-white);
  font-size: 0.9375rem;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.dockbar__btn strong {
  overflow: hidden;
  text-overflow: ellipsis;
}

.dockbar__btn .chip__change {
  color: var(--accent);
}

@media (min-width: 768px) {
  .dockbar {
    display: none !important;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html.js .opt {
    animation: none;
  }

  html.js .steps .step::before {
    transform: none;
    transition: none;
  }

  .dockbar {
    transition: none;
  }
}
