/* ==========================================================================
   Soluclic · Inscripción de expertos y profesionales (AR / CL / PE) · v1
   Hoja compartida por /trabajar, /cl/trabajar y /pe/trabajar.
   Diseño: carpeta «soluclic-formulario-trabajador». Paleta, tipografía y formas
   del spec forms-v1 (3-dic-2026). Movimiento: valores únicos del spec (150/250/300/400 ms).
   Nada parte oculto por CSS: lo oculto inicial lo pone el script de movimiento.
   ========================================================================== */

:root {
  --blue-primary: #0077b6;
  --blue-deep: #1a3a5c;
  --blue-bright: #2a8dc8;
  --blue-tint: #e6f2fa;
  --blue-border: #dce3ec;

  --yellow-cta: #ffd84d;
  --yellow-hover: #f5ca2e;
  --yellow-active: #e8bc1c;
  --yellow-ink: #1f2937;

  --white: #ffffff;
  --bg-subtle: #f2f3f6;
  --ink-dark: #1a3a5c;
  --ink-body: #1a3a5c;
  --ink-muted: #5b6b80;
  --ink-on-blue-soft: #d6ecf8;
  --border-soft: #dce3ec;

  --danger: #b42318;
  --danger-bg: #fff5f5;
  --danger-border: #f5b8b8;
  --success: #0b7a52;
  --success-bg: #ebfbee;

  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-pill: 999px;

  --shadow-soft: 0 10px 30px -10px rgba(15, 31, 46, 0.08);

  --container-max: 1440px;
  --header-height: 68px;

  /* Movimiento: valores únicos */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-short: 150ms;
  --t-mid: 250ms;
  --t-long: 400ms;
}

/* Base ------------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-body);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-dark);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, [role="button"], input, select, textarea, label { touch-action: manipulation; }

[hidden] { display: none !important; }

.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;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--yellow-cta);
  color: var(--yellow-ink);
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 72px);
}

/* Botones ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.96rem;
  line-height: 1.25;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--t-short) var(--ease), background-color var(--t-short) var(--ease),
    box-shadow var(--t-short) var(--ease), border-color var(--t-short) var(--ease), opacity var(--t-short) var(--ease);
  text-align: center;
  max-width: 100%;
}
.btn:focus-visible { outline: 3px solid var(--blue-primary); outline-offset: 2px; }
.btn-yellow:focus-visible, .btn-outline-white:focus-visible { outline-color: var(--yellow-cta); }
.form-card .btn-yellow:focus-visible { outline-color: var(--blue-deep); }

.btn-yellow {
  background-color: var(--yellow-cta);
  color: var(--yellow-ink);
  box-shadow: 0 8px 20px -6px rgba(15, 37, 55, 0.25);
}
@media (hover: hover) {
  .btn-yellow:hover {
    background-color: var(--yellow-hover);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -6px rgba(15, 37, 55, 0.3);
  }
}
.btn-yellow:active { background-color: var(--yellow-active); transform: scale(0.98); }

.btn-ghost {
  background-color: transparent;
  color: var(--ink-body);
  border-color: var(--border-soft);
  padding-inline: 20px;
}
@media (hover: hover) {
  .btn-ghost:hover { background-color: var(--bg-subtle); border-color: #b8cad8; }
}
.btn-ghost:active { transform: scale(0.98); }

.btn-outline-white {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
}
@media (hover: hover) {
  .btn-outline-white:hover { background-color: rgba(255, 255, 255, 0.22); border-color: var(--white); }
}
.btn-outline-white:active { transform: scale(0.98); }

.btn-block { width: 100%; }
.btn-grow { flex: 1; }
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: 0.9rem; }

.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.65;
  cursor: progress;
  transform: none;
  box-shadow: none;
}

.btn-final-icon { display: none; }
.btn.is-final .btn-next-icon { display: none; }
.btn.is-final .btn-final-icon { display: inline-block; }

/* Cabecera ------------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(0, 96, 150, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  transition: background-color var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.site-header.is-scrolled {
  background: rgba(0, 82, 128, 0.96);
  box-shadow: 0 8px 24px rgba(0, 34, 58, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 44px;
}
.brand-logo:focus-visible { outline: 3px solid var(--yellow-cta); outline-offset: 4px; border-radius: var(--radius-sm); }
.brand-logo-img { height: 40px; width: auto; display: block; object-fit: contain; }

.main-nav { display: flex; align-items: center; gap: 24px; }

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 4px;
  color: var(--white);
  font-weight: 500;
  font-size: 0.94rem;
  transition: color var(--t-short) var(--ease);
}
.nav-link:hover, .nav-link:focus-visible { color: var(--yellow-cta); }
.nav-link:focus-visible { outline: 2px solid var(--yellow-cta); outline-offset: 2px; border-radius: 6px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}
.menu-toggle:focus-visible { outline: 3px solid var(--yellow-cta); outline-offset: 2px; }
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--t-mid) var(--ease), opacity var(--t-mid) var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero ------------------------------------------------------------------------ */
.hero {
  position: relative;
  padding-top: calc(var(--header-height) + clamp(24px, 3vw, 38px));
  padding-bottom: clamp(32px, 4vw, 52px);
  background: linear-gradient(to bottom, var(--blue-primary) 0%, var(--blue-primary) 72%, var(--white) 72%, var(--white) 100%);
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 72%;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; opacity: 0.28; }
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 88, 138, 0.88) 0%, rgba(0, 119, 182, 0.82) 100%);
}

/* El hero usa todo el ancho de la pantalla y todo el texto se alinea a la izquierda, en un solo borde.
   Escritorio: texto a la izquierda, formulario a la derecha. Tablet y celular: uno debajo del otro. */
.hero .hero-stack {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(20px, 2.6vw, 28px);
}

.hero-copy { width: 100%; max-width: none; text-align: left; }

.hero-title {
  color: var(--white);
  font-size: clamp(2rem, 6.2vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.1;
  margin-bottom: 14px;
  text-wrap: balance;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  line-height: 1.5;
  color: var(--ink-on-blue-soft);
  margin: 0;
  max-width: 46ch;
  text-wrap: pretty;
}

.hero-support {
  margin: 14px 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  opacity: 0.92;
}
.hero-cta { margin-top: 20px; gap: 10px; }
.hero-cta .btn-next-icon { display: inline-block; }

.hero-benefits { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.hero-highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  text-align: left;
}
.hero-highlights li {
  padding: 14px 16px 15px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 4px solid var(--yellow-cta);
  border-radius: var(--radius-md, 14px);
  color: var(--white);
}
.hero-highlights h3 { margin: 0 0 4px; font-size: 1.02rem; font-weight: 800; line-height: 1.25; color: var(--white); }
.hero-highlights p { margin: 0; font-size: 0.94rem; line-height: 1.45; color: var(--ink-on-blue-soft); }
.hero-closing { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.45; color: var(--white); max-width: 46ch; }

/* Tarjeta del formulario ---------------------------------------------------------- */
.hero-form-wrap { width: 100%; max-width: none; }

.form-card {
  background: var(--white);
  color: var(--ink-dark);
  border-radius: 20px;
  border: 1px solid #c9dae8;
  box-shadow: 0 24px 56px -14px rgba(10, 48, 78, 0.22), 0 4px 14px rgba(10, 48, 78, 0.08);
  overflow: hidden;
  scroll-margin-top: calc(var(--header-height) + 12px);
}

.form-header {
  background: #f5f9fc;
  border-bottom: 1px solid #dde8f1;
  border-top: 4px solid var(--yellow-cta);
  padding: clamp(20px, 2.6vw, 28px) clamp(20px, 3.4vw, 38px) 18px;
}

.form-body { padding: clamp(22px, 3vw, 34px) clamp(20px, 3.4vw, 38px) clamp(24px, 3.2vw, 36px); }

.form-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.form-title { font-size: clamp(1.95rem, 3vw, 2.4rem); line-height: 1.15; font-weight: 800; color: var(--ink-dark); }

.step-badge {
  flex-shrink: 0;
  font-size: 0.84rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--blue-primary);
  padding-top: 3px;
  white-space: nowrap;
}

/* Pasos */
.stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }

.step-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: var(--bg-subtle);
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--t-short) var(--ease), border-color var(--t-short) var(--ease),
    color var(--t-short) var(--ease), transform var(--t-short) var(--ease);
}
.step-pill:focus-visible { outline: 3px solid var(--blue-primary); outline-offset: 2px; }
.step-pill:not(:disabled):active { transform: scale(0.98); }
.step-pill:disabled { cursor: default; }
.step-pill:disabled:not(.is-active) { background: transparent; border-style: dashed; } /* sin bajar la opacidad: el texto mantiene 5,7:1 */

.step-num {
  position: relative;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #dce7f0;
  color: var(--ink-body);
  font-size: 0.74rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--t-mid) var(--ease), color var(--t-mid) var(--ease);
}
.step-num-n { transition: opacity var(--t-short) var(--ease); }
.step-check {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 12px;
  height: 12px;
}
.step-check path {
  stroke-dasharray: 16;
  stroke-dashoffset: 16;
  transition: stroke-dashoffset var(--t-mid) var(--ease);
}

.step-pill.is-active { background: var(--blue-tint); border-color: var(--blue-primary); color: var(--blue-deep); }
.step-pill.is-active .step-num { background: var(--blue-primary); color: var(--white); }
.step-pill.is-done { background: var(--success-bg); border-color: #9dd8bf; color: var(--success); }
.step-pill.is-done .step-num { background: var(--success); color: var(--white); }
.step-pill.is-done .step-num-n { opacity: 0; }
.step-pill.is-done .step-check path { stroke-dashoffset: 0; }

.progress-track { height: 5px; background: #e9f0f5; border-radius: var(--radius-pill); overflow: hidden; }
.progress-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--blue-primary), var(--blue-bright));
  border-radius: var(--radius-pill);
  transform-origin: left center;
  transform: scaleX(0.3333);
  transition: transform var(--t-long) var(--ease);
}

/* Aviso de error */
.form-alert {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  scroll-margin-top: calc(var(--header-height) + 16px);
}
.form-alert:focus { outline: 2px solid var(--danger); outline-offset: 2px; }

/* Pasos del formulario */
.form-step { border: 0; padding: 0; margin: 0; min-width: 0; }

.form-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid-2 .field-wide { grid-column: 1 / -1; }
.form-step .form-grid-2 + .services-block { margin-top: 20px; }
.form-step > .field + .form-grid-2,
.form-step > .field-status + .form-grid-2,
.form-step > .field + .field { margin-top: 16px; }

.field { display: flex; flex-direction: column; min-width: 0; }
/* al enfocar un campo, que no quede tapado por el encabezado fijo */
.field, .form-alert, .step-heading, .services-block { scroll-margin-top: 96px; }
.field input, .field select, .field textarea, .cat-tab { scroll-margin-top: 120px; }

.field label,
.services-title,
.field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-dark);
}
.field label .opt { font-weight: 500; color: var(--ink-muted); }
.req { color: var(--blue-primary); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1.5px solid #7a93ab; /* 3,19:1 sobre blanco (WCAG 1.4.11) */
  border-radius: var(--radius-sm);
  background-color: var(--white);
  color: var(--ink-dark);
  font-size: 1rem; /* 16 px: evita el zoom en iPhone */
  line-height: 1.4;
  box-shadow: inset 0 1px 2px rgba(15, 31, 46, 0.06);
  transition: border-color var(--t-short) var(--ease), box-shadow var(--t-short) var(--ease), background-color var(--t-short) var(--ease);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%), linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
@media (hover: hover) {
  .field input:hover:not(:disabled),
  .field select:hover:not(:disabled),
  .field textarea:hover:not(:disabled) { border-color: var(--blue-primary); }
}
.field input::placeholder,
.field textarea::placeholder { color: #5a6e82; opacity: 1; } /* 5,27:1 sobre blanco (antes 4,44:1) */

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 4px rgba(0, 119, 182, 0.16);
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: 2px solid transparent; }

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--danger); background-color: var(--danger-bg); }
.field input[aria-invalid="true"]:focus,
.field select[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.15); }

.field select:disabled { background-color: var(--bg-subtle); color: var(--ink-muted); cursor: not-allowed; }
.field textarea { resize: vertical; min-height: 96px; }

.field-hint { font-size: 0.8rem; color: var(--ink-muted); line-height: 1.35; margin-top: 6px; }
.field-error { font-size: 0.82rem; font-weight: 600; color: var(--danger); line-height: 1.35; padding-top: 6px; }

/* Despliegue en altura (grid 0fr → 1fr): campos extra, errores, FAQ, precio propio */
.collapsible {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows var(--t-mid) var(--ease), visibility 0s linear var(--t-mid);
}
.collapsible.is-open {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows var(--t-mid) var(--ease), visibility 0s linear 0s;
}
.collapsible-inner {
  min-height: 0;
  overflow: hidden;
  /* margen negativo + relleno: deja lugar al halo de foco sin recortarlo */
  padding: 4px;
  margin: -4px;
}

.extra-input .field { padding-top: 12px; }
.field-spec .field { padding-top: 16px; }
.field-bio { margin-top: 16px; }
.services-header .services-title { margin-bottom: 0; }

/* Estado de carga/errores de zonas y servicios */
.field-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger);
  font-size: 0.88rem;
  font-weight: 600;
}
.btn-retry {
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid currentColor;
  background: var(--white);
  color: var(--danger);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}
.btn-retry:focus-visible { outline: 3px solid var(--blue-primary); outline-offset: 2px; }

/* Acciones */
.step-actions-split { margin-top: 24px; display: flex; flex-direction: row-reverse; align-items: center; gap: 12px; } /* Enviar va primero en el DOM (orden de foco) y queda a la derecha */

/* Servicios: pestañas + chips ------------------------------------------------------- */
.services-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.services-count {
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--blue-deep);
  background: var(--blue-tint);
  border: 1px solid var(--blue-border);
  padding: 4px 11px;
  border-radius: var(--radius-pill);
}

.category-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }

.cat-tab {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  background: var(--bg-subtle);
  color: var(--ink-body);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--t-short) var(--ease), border-color var(--t-short) var(--ease),
    color var(--t-short) var(--ease), transform var(--t-short) var(--ease);
}
@media (hover: hover) {
  .cat-tab:hover { border-color: var(--blue-primary); color: var(--blue-deep); }
  .cat-tab.is-active:hover { color: var(--white); }
}
.cat-tab:focus-visible { outline: 3px solid var(--blue-primary); outline-offset: 2px; }
.cat-tab:active { transform: scale(0.98); }
.cat-tab.is-active { background: var(--blue-primary); border-color: var(--blue-primary); color: var(--white); }
.tab-count {
  display: inline-block;
  margin-left: 6px;
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
}
.tab-count:empty { display: none; }
.cat-tab.is-active .tab-count { opacity: 1; }

.services-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
  border: 1.5px solid var(--border-soft);
  border-radius: 14px;
  background: var(--white);
  max-height: 260px;
  overflow-y: auto;
  min-height: 72px;
  align-content: flex-start;
}
.services-empty { font-size: 0.88rem; color: var(--ink-muted); padding: 4px 2px; }

.svc-chip {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  background: var(--white);
  color: var(--ink-body);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background-color var(--t-short) var(--ease), border-color var(--t-short) var(--ease), color var(--t-short) var(--ease);
}
@media (hover: hover) {
  .svc-chip:hover { border-color: var(--blue-primary); background: var(--blue-tint); }
  .svc-chip[aria-pressed="true"]:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
}
.svc-chip:focus-visible { outline: 3px solid var(--blue-primary); outline-offset: 2px; }
.svc-chip[aria-pressed="true"] { background: var(--blue-primary); border-color: var(--blue-primary); color: var(--white); font-weight: 600; }

/* Tilde de «elegido» hecha con bordes: sin imágenes ni recursos externos */
.svc-chip::before {
  content: "";
  display: inline-block;
  flex-shrink: 0;
  width: 0;
  height: 9px;
  margin-right: 0;
  border-right: 2.4px solid currentColor;
  border-bottom: 2.4px solid currentColor;
  transform: rotate(45deg) scale(0.9);
  transform-origin: 60% 60%;
  opacity: 0;
  transition: width var(--t-short) var(--ease), margin var(--t-short) var(--ease), opacity var(--t-short) var(--ease);
}
.svc-chip[aria-pressed="true"]::before { width: 5px; margin-right: 10px; margin-left: 2px; opacity: 1; }

.selected-bar {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--blue-tint);
  border: 1px solid var(--blue-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.selected-bar-label { font-size: 0.8rem; font-weight: 700; color: var(--blue-deep); }
.selected-bar-list { display: flex; flex-wrap: wrap; gap: 8px; }

.selected-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--blue-border);
  background: var(--white);
  color: var(--blue-deep);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--t-short) var(--ease), border-color var(--t-short) var(--ease), color var(--t-short) var(--ease);
}
.selected-tag-x { font-size: 1.05rem; line-height: 1; }
@media (hover: hover) {
  .selected-tag:hover { background: var(--danger-bg); border-color: var(--danger-border); color: var(--danger); }
}
.selected-tag:focus-visible { outline: 3px solid var(--blue-primary); outline-offset: 2px; }

/* Paso 3: precios ------------------------------------------------------------------------- */
.pricing-intro { font-size: 0.94rem; color: var(--ink-body); margin-bottom: 16px; }
.pricing-list { display: grid; gap: 14px; }
.pricing-card { border: 1.5px solid var(--border-soft); border-radius: 14px; background: var(--white); padding: 16px; }
.pricing-card-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 12px; }
.pricing-card-title { font-family: var(--font-display); font-weight: 800; font-size: 1.04rem; color: var(--ink-dark); overflow-wrap: anywhere; }
.pricing-badge {
  flex-shrink: 1;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--blue-deep);
  background: var(--blue-tint);
  border: 1px solid var(--blue-border);
  border-radius: 12px;
  padding: 3px 10px;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;   /* a 320 px o con texto agrandado el rótulo baja de línea en vez de desbordar */
}
.pricing-q { font-size: 0.88rem; font-weight: 600; color: var(--ink-dark); margin: 14px 0 8px; }
.pricing-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pricing-btn {
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-soft);
  background: var(--white);
  color: var(--ink-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color var(--t-short) var(--ease), border-color var(--t-short) var(--ease), color var(--t-short) var(--ease);
}
@media (hover: hover) {
  .pricing-btn:hover { border-color: var(--blue-primary); }
}
.pricing-btn:focus-visible { outline: 3px solid var(--blue-primary); outline-offset: 2px; }
.pricing-btn[aria-pressed="true"] { background: var(--blue-primary); border-color: var(--blue-primary); color: var(--white); }

.pricing-note { margin-top: 10px; font-size: 0.84rem; color: var(--ink-muted); }
.pricing-smart-price { margin-top: 6px; min-height: 1.5em; color: var(--ink-body); }
.pricing-smart-price strong { color: var(--blue-deep); font-size: 1.02rem; }
.pricing-smart-price.is-calculating { animation: sc-pulse 1s ease-in-out infinite; }
@keyframes sc-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.pricing-manual { margin-top: 12px; }

/* Éxito -------------------------------------------------------------------------------------- */
.form-success { text-align: center; padding: 12px 4px; }
.form-success:focus, .success-title:focus { outline: none; }

.success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.success-title { font-size: clamp(1.35rem, 2.6vw, 1.6rem); font-weight: 800; margin-bottom: 8px; }
.success-copy { color: var(--ink-muted); font-size: 0.96rem; margin: 0 auto 20px; max-width: 52ch; }
.success-copy:empty { display: none; }
.success-actions { display: grid; gap: 10px; margin-top: 6px; }

/* Señuelo anti-bot: fuera de pantalla, sin foco ni lectores de pantalla */
.hp-trap {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0;
  pointer-events: none;
}

/* Secciones ---------------------------------------------------------------------------------------- */
.section { padding-block: clamp(44px, 5vw, 68px); }
.section-white { background-color: var(--white); color: var(--ink-body); }
.section-blue { background: linear-gradient(155deg, var(--blue-primary) 0%, #00588a 100%); color: var(--white); }

.section-title { font-size: clamp(1.55rem, 2.2vw, 1.85rem); font-weight: 700; margin-bottom: 10px; }
.text-white { color: var(--white); }

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.inline-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue-deep);
  border-bottom: 2px solid var(--yellow-cta);
  padding-block: 6px;
  transition: color var(--t-short) var(--ease);
}
.inline-cta:hover { color: var(--blue-primary); }
.inline-cta:focus-visible { outline: 3px solid var(--blue-primary); outline-offset: 4px; border-radius: 6px; }

.reqs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.req-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-soft);
  transition: border-color var(--t-short) var(--ease), box-shadow var(--t-short) var(--ease);
}
@media (hover: hover) {
  .req-card:hover { border-color: var(--blue-border); box-shadow: var(--shadow-soft); }
}
.req-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--blue-tint);
  color: var(--blue-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.req-card h3 { font-size: 1rem; font-weight: 700; margin: 0; }

.section-center-head { text-align: center; max-width: 660px; margin-inline: auto; margin-bottom: clamp(36px, 4vw, 54px); }

.steps-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step-card {
  background: rgba(0, 42, 70, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
}
.step-card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--yellow-cta);
  color: var(--yellow-ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
  margin-bottom: 18px;
}
.step-card p { color: var(--white); font-size: 1rem; line-height: 1.5; }

/* Preguntas frecuentes: acordeón, una abierta a la vez */
.faq-list { display: grid; gap: 14px; }
.faq-item {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
  transition: border-color var(--t-short) var(--ease), box-shadow var(--t-short) var(--ease);
}
.faq-item.is-open { border-color: var(--blue-primary); box-shadow: var(--shadow-soft); }

.faq-trigger {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  background: transparent;
  border: 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--ink-dark);
  cursor: pointer;
}
@media (hover: hover) {
  .faq-trigger:hover { background: #fafdff; }
}
.faq-trigger:focus-visible { outline: 3px solid var(--blue-primary); outline-offset: -3px; }

.faq-plus {
  position: relative;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue-tint);
  transition: background-color var(--t-short) var(--ease), transform var(--t-mid) var(--ease);
}
.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background: var(--blue-primary);
  transform: translate(-50%, -50%);
  transition: background-color var(--t-short) var(--ease);
}
.faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.is-open .faq-plus { background: var(--yellow-cta); transform: rotate(45deg); }
.faq-item.is-open .faq-plus::before,
.faq-item.is-open .faq-plus::after { background: var(--yellow-ink); }

.faq-panel p { padding: 0 22px 20px; color: var(--ink-body); font-size: 0.98rem; }
.faq-panel.collapsible .collapsible-inner { padding: 0; margin: 0; }

/* Cierre y pie */
.cta-section { padding-block: clamp(30px, 3.5vw, 44px); }
.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 2.5vw, 28px) clamp(24px, 3vw, 34px);
  border-radius: var(--radius-md);
  background: rgba(0, 42, 70, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.24);
}
.cta-copy h2 { color: var(--white); font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }

/* Footer: el mismo que la plataforma web (tres columnas, fondo gris claro, texto azul oscuro) */
.site-footer { background: #f2f3f6; color: #1a3a5c; padding-block: 30px; }
.footer-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer-cols { display: grid; grid-template-columns: 1fr; gap: 28px 40px; width: 100%; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer-col-title { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(26, 58, 92, 0.6); }
.site-footer a, .footer-plain, .ft-plain {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
  color: #1a3a5c;
  text-decoration: none;
}
.site-footer a:hover { border-bottom-color: currentColor; }
.site-footer a:focus-visible { outline: 2px solid var(--blue-primary); outline-offset: 3px; border-radius: 4px; }
.ft-ico { flex: none; }
.site-footer .ft-rev { text-decoration: underline; text-underline-offset: 2px; }
.footer-copy { margin-top: 10px; font-size: 13px; color: rgba(26, 58, 92, 0.7); }
@media (min-width: 640px) {
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Responsive ------------------------------------------------------------------------------------------- */
/* Escritorio: dos columnas a todo el ancho. Texto y beneficios a la izquierda, formulario a la derecha. */
@media (min-width: 1024px) {
  .hero {
    background: var(--blue-primary);
    padding-bottom: clamp(48px, 5vw, 80px);
  }
  .hero-media { height: 100%; }
  /* Primera pantalla: el texto a la izquierda y el formulario a la derecha, los dos arrancan arriba en la misma línea
     y el formulario llega hasta el margen de abajo. Los beneficios quedan debajo, fuera de la primera vista. */
  .hero .hero-stack {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(440px, 700px);
    grid-template-rows: minmax(calc(100vh - var(--header-height) - 76px), auto) auto;
    grid-template-rows: minmax(calc(100svh - var(--header-height) - 76px), auto) auto;
    column-gap: clamp(32px, 5vw, 120px);
    row-gap: clamp(40px, 5vw, 72px);
    align-items: stretch;
  }
  .hero-copy { grid-column: 1; grid-row: 1; padding-top: 100px; display: flex; flex-direction: column; align-items: flex-start; gap: clamp(10px, 2.4vh, 30px); }
  .hero-title { font-size: clamp(2.4rem, min(4.2vw, 7.5vh), 4.6rem); max-width: none; margin: -0.12em 0 0; line-height: 1.04; }
  .hero .hero-lead { font-size: clamp(1.5rem, min(2.8vw, 4.4vh), 2.7rem); margin: 0; max-width: 20ch; }
  .hero-subtitle { font-size: clamp(1.05rem, min(1.45vw, 2.4vh), 1.35rem); line-height: 1.5; max-width: 44ch; }
  .hero-support { margin: 0; font-size: clamp(0.95rem, min(1.2vw, 2vh), 1.1rem); }
  /* en escritorio el formulario ya está a la vista: sin botón en el menú */
  .nav-cta { display: none; }
  .hero-benefits { grid-column: 1 / -1; grid-row: 2; }
  .hero-highlights { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .hero-highlights li { padding: 20px 22px 22px; }
  .hero-highlights h3 { font-size: 1.12rem; }
  .hero-closing { font-size: 1.1rem; max-width: none; }
  /* La tarjeta ya no se estira hasta abajo: queda arriba, alineada con el título, y mide lo que miden sus campos. */
  .hero-form-wrap { grid-column: 2; grid-row: 1; display: flex; align-self: start; margin-top: 92px; }
  .form-card { flex: 1; }
}

@media (max-width: 1040px) {
  .split-section { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .cta-card { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 760px) {
  .menu-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #00588a;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.2);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 200ms var(--ease), opacity 200ms var(--ease), visibility 0s linear 200ms;
  }
  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform 200ms var(--ease), opacity 200ms var(--ease), visibility 0s linear 0s;
  }
  .nav-link { padding: 10px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .nav-cta { justify-content: center; border-bottom: 0; margin-top: 6px; }

  .reqs-grid, .form-grid-2, .hero-highlights { grid-template-columns: 1fr; }

  /* el nombre del paso solo se oculta a la vista; el lector de pantalla lo sigue leyendo */
  .step-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .step-actions-split { flex-direction: column; align-items: stretch; } /* celular: Enviar arriba, Volver abajo; foco en el mismo orden */

  /* sin scroll anidado en celular: la lista de servicios crece con el contenido */
  .services-panel { max-height: none; overflow: visible; }
  .category-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -2px; padding: 2px; }
  .category-tabs::-webkit-scrollbar { display: none; }
  .cat-tab { flex: 0 0 auto; white-space: nowrap; }

  .cta-actions { width: 100%; }
  .cta-actions .btn { width: 100%; }
}

@media (max-width: 480px) {
  .brand-logo-img { height: 34px; }
  .hero {
    background: linear-gradient(to bottom, var(--blue-primary) 0%, var(--blue-primary) 56%, var(--white) 56%, var(--white) 100%);
  }
  .hero-media { height: 56%; }
  .form-card { border-radius: 16px; }
  .form-header { padding: 18px 16px 16px; }
  .form-body { padding: 20px 16px 22px; }
  .btn { padding: 12px 18px; font-size: 0.94rem; }
  .pricing-card { padding: 14px; }
  .step-pill { padding: 8px 6px; }
}

/* Reducir movimiento: sin desplazamientos ni escalas; solo cambios de color y opacidad instantáneos */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .btn-yellow:hover, .btn-yellow:active, .btn-ghost:active, .btn-outline-white:active,
  .step-pill:not(:disabled):active, .cat-tab:active { transform: none; }
  .progress-fill { transition: none !important; }
}

/* Textos del panel: ocultos (sin mover nada de lugar) hasta que llegan, para no ver el texto viejo y después el cambio */
html.cms-wait [data-cms] { visibility: hidden; }

.form-lead { margin: -6px 0 14px; font-size: 0.95rem; line-height: 1.45; color: var(--ink-muted); }
.step-sub { margin: 0 0 14px; font-size: 1.08rem; font-weight: 800; line-height: 1.25; color: var(--ink-dark); }
.step-sub:focus { outline: none; }

.nav-cta {
  background: var(--yellow-cta);
  color: var(--yellow-ink);
  font-weight: 700;
  padding: 0 16px;
  border-radius: 999px;
}
.nav-cta:hover, .nav-cta:focus-visible { color: var(--yellow-ink); background: var(--yellow-hover, var(--yellow-cta)); }
.step-card h3 { color: var(--white); font-size: 1.12rem; font-weight: 800; line-height: 1.25; margin: 0 0 6px; }
.form-grid-2.form-grid-stack { grid-template-columns: 1fr; }
.hero-lead { margin: 0 0 12px; font-size: clamp(1.45rem, 6vw, 1.95rem); font-weight: 700; line-height: 1.25; color: var(--yellow-cta); max-width: 28ch; text-wrap: balance; }
@media (min-width: 1024px) and (max-width: 1279px) { .hero .hero-stack { grid-template-columns: minmax(0, 1fr) minmax(440px, 46%); } .hero-title { max-width: none; } }
@media (min-width: 1024px) and (max-height: 700px) { .form-header { padding-block: 14px 12px; } .form-body { padding-block: 14px 16px; } .form-header-top { margin-bottom: 8px; } .form-lead { margin-bottom: 8px; } .step-sub { margin-bottom: 8px; } .form-body .step-actions-split { padding-top: 12px; } .hero { padding-top: calc(var(--header-height) + 16px); } .hero .hero-stack { grid-template-rows: minmax(calc(100svh - var(--header-height) - 52px), auto) auto; } }
/* "Sumarme a Soluclic": enlace con flecha, no botón */
.hero .hero-cta, .hero .hero-cta:hover, .hero .hero-cta:active {
  display: inline-flex; align-items: center; gap: 10px; width: auto; min-height: 0; margin-top: 4px; padding: 4px 0 6px;
  background: none; box-shadow: none; border-radius: 0; border: 0; border-bottom: 2px solid var(--yellow-cta);
  color: var(--yellow-cta); font-size: clamp(1.05rem, 1.4vw, 1.2rem); font-weight: 800; transform: none;
}
.hero .hero-cta svg { transition: transform var(--t-short) var(--ease); }
@media (hover: hover) { .hero .hero-cta:hover svg { transform: translateX(5px); } }
.hero .hero-cta:focus-visible { outline: 3px solid var(--yellow-cta); outline-offset: 5px; border-radius: 4px; }

/* Portada de escritorio: escena "el barrio que te espera" ------------------------------ */
.hero-art { display: none; }
@media (min-width: 1024px) and (min-height: 580px) {
  .hero-art {
    display: block;
    position: relative;
    align-self: stretch;
    flex: 1 1 0;
    min-height: 0;
    margin-top: clamp(8px, 2vh, 28px);
    border-bottom: 2px solid rgba(214, 236, 248, 0.32);
    pointer-events: none;
  }
  .hero-art-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
}
.hero-art-wall  { fill: var(--blue-deep); fill-opacity: .55; }
.hero-art-roof  { fill: var(--blue-deep); }
.hero-art-door  { fill: var(--blue-deep); fill-opacity: .8; }
.hero-art-tree  { fill: var(--blue-bright); fill-opacity: .55; }
.hero-art-win   { fill: var(--blue-bright); fill-opacity: .5; }
.hero-art-win.is-lit { fill: var(--yellow-cta); fill-opacity: 1; filter: drop-shadow(0 0 5px rgba(255, 216, 77, .55)); }
.hero-art-awn-a { fill: var(--yellow-cta); }
.hero-art-awn-b { fill: var(--ink-on-blue-soft); }
.hero-art-route { fill: none; stroke: var(--ink-on-blue-soft); stroke-opacity: .75; stroke-width: 3; stroke-linecap: round; stroke-dasharray: .1 10; }
.hero-art-you-ring { fill: none; stroke: var(--white); stroke-opacity: .45; stroke-width: 2; }
.hero-art-you { fill: var(--white); }
.hero-art-pin-body { fill: var(--yellow-cta); }
.hero-art-pin-dot  { fill: var(--yellow-ink); }
.hero-art-pin { transform-box: fill-box; transform-origin: 50% 100%; }
.hero-art-dot  { fill: var(--yellow-cta); }
.hero-art-ring { fill: none; stroke: var(--yellow-cta); stroke-width: 2; stroke-opacity: .7; transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .hero-art-win.is-lit { animation: hero-art-on .7s var(--ease) both; animation-delay: var(--d, 0s); }
  .hero-art-route      { animation: hero-art-flow 1.8s linear infinite; }
  .hero-art-ring       { animation: hero-art-ping 2.6s ease-out infinite; animation-delay: var(--d, 0s); }
}
@keyframes hero-art-on   { from { fill: var(--blue-bright); fill-opacity: .5; } to { fill: var(--yellow-cta); fill-opacity: 1; } }
@keyframes hero-art-flow { to { stroke-dashoffset: -10.1; } }
@keyframes hero-art-ping { from { transform: scale(1); opacity: .7; } to { transform: scale(3.2); opacity: 0; } }

/* Franja con foto a todo el ancho, entre los beneficios y los requisitos ---------------- */
.photo-band { position: relative; overflow: hidden; height: clamp(240px, 34vw, 460px); background: var(--blue-deep); }
.photo-band-media { position: absolute; left: 0; right: 0; top: -10%; height: 120%; }
.photo-band-img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: block; }
.photo-band-veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(26, 58, 92, 0.92) 0%, rgba(26, 58, 92, 0.78) 38%, rgba(26, 58, 92, 0) 72%); }
.photo-band-copy { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.photo-band-text { margin: 0; max-width: 24ch; color: var(--white); font-family: var(--font-display); font-weight: 800; font-size: clamp(1.35rem, 3vw, 2.4rem); line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
.photo-band-text::before { content: ""; display: block; width: 56px; height: 4px; border-radius: 2px; background: var(--yellow-cta); margin-bottom: 16px; }
@media (max-width: 760px) { .photo-band-veil { background: linear-gradient(90deg, rgba(26, 58, 92, 0.9) 0%, rgba(26, 58, 92, 0.6) 100%); } }
/* parallax leve (solo escritorio, sin "reducir movimiento"); si el navegador no lo soporta, la foto queda fija */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 1024px) and (pointer: fine) {
    .photo-band-media { animation: photo-band-shift linear both; animation-timeline: view(); }
  }
}
@keyframes photo-band-shift { from { transform: translateY(-6%); } to { transform: translateY(6%); } }

/* ----- Mejoras de la ronda de diseño ----------------------------------------------------- */
/* Celular y tablet: igual que en escritorio, los beneficios van debajo del formulario (sin carrusel) */
@media (max-width: 1023px) {
  .hero-benefits { order: 3; }
}
@media (max-width: 760px) {
  .form-body { padding-top: 22px; }
  body { padding-bottom: 72px; }
}
@media (max-width: 480px) { .hero .hero-stack { gap: 14px; } }

/* Celular: botón fijo que aparece cuando ni el enlace de la portada ni el formulario están a la vista */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta {
    position: fixed; z-index: 40; left: 12px; right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    display: flex; align-items: center; justify-content: center;
    min-height: 52px; border-radius: var(--radius-pill);
    background: var(--yellow-cta); color: var(--yellow-ink);
    font-weight: 800; text-decoration: none;
    box-shadow: 0 10px 24px -8px rgba(10, 48, 78, 0.45);
    transform: translateY(140%); transition: transform var(--t-mid) var(--ease);
  }
  .sticky-cta.is-on { transform: none; }
  .sticky-cta[hidden] { display: none; }
}

/* Errores y foco que no dependen solo del color */
.field-error::before {
  content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7' fill='none' stroke='%23b42318' stroke-width='1.6'/%3E%3Cpath d='M8 4.5v4.2M8 11.3v.1' stroke='%23b42318' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.field-error:empty::before { display: none; }
.field:focus-within > label { color: var(--blue-primary); transition: color var(--t-short) var(--ease); }
#firstName:user-valid, #lastName:user-valid, .field select[required]:user-valid { border-color: #9dd8bf; }

/* Paso completado: la pastilla "late" una vez */
.step-pill.is-done .step-num { animation: pill-pop 0.4s var(--ease); }
@keyframes pill-pop { 0% { transform: scale(1); } 40% { transform: scale(1.28); } 100% { transform: scale(1); } }

/* Títulos de sección: línea amarilla que se dibuja al entrar */
.section-title::after {
  content: ""; display: block; width: 48px; height: 4px; border-radius: 2px;
  margin-top: 10px; background: var(--yellow-cta);
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s 0.1s var(--ease);
}
.section-title.is-in::after { transform: none; }
.section-center-head .section-title::after { margin-inline: auto; transform-origin: center; }
@media (scripting: none) { .section-title::after { transform: none; } }

/* Paso 1: sin subtítulo visible (queda para lectores de pantalla y para el foco al cambiar de paso) */
#stepHead1 {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Beneficios: sección propia debajo de la franja con foto, con más peso que antes ----------------- */
.benefits { background: var(--bg-subtle); padding-block: clamp(56px, 7vw, 104px); }
.benefit-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.benefit-card {
  background: var(--white);
  border: 1px solid #e1e7ee;
  border-top: 5px solid var(--yellow-cta);
  border-radius: 18px;
  padding: clamp(24px, 2.4vw, 34px) clamp(22px, 2vw, 30px) clamp(26px, 2.6vw, 36px);
  box-shadow: 0 10px 28px rgba(26, 58, 92, 0.08);
}
.benefit-card h3 { margin: 0 0 10px; font-size: clamp(1.25rem, 1.7vw, 1.55rem); font-weight: 800; line-height: 1.2; color: var(--blue-deep); }
.benefit-card p { margin: 0; font-size: clamp(1rem, 1.2vw, 1.12rem); line-height: 1.55; color: var(--ink-body); }
@media (max-width: 1099px) { .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) {
  .benefit-grid { grid-template-columns: 1fr; }
  .benefits { padding-block: 44px; }
}

/* El formulario avanza por pasos, pero no se muestra cuántos son: sin "Paso 1 de 3", bajada, círculos ni barra */
.step-badge, .form-lead, .stepper, .progress-track { display: none !important; }

/* Escritorio: espacios internos del formulario ajustados (sin blanco sobrante) */
@media (min-width: 1024px) {
  .form-header-top { margin-bottom: 0; }
}
@media (min-width: 1024px) and (min-height: 701px) {
  .form-header { padding-block: 22px 20px; }
  .form-body { padding-block: 26px 28px; }
  .form-body .step-actions-split { padding-top: 22px; }
  .field input, .field select { min-height: 52px; }
  .form-step > .form-grid-2 { gap: 20px 16px; }
  #submitBtn { min-height: 52px; }
}
