/* ==========================================================================
   AmaIA — soyamaia.com
   Identidad: paleta oficial (#0F4C81 · #1B6CA8 · #00B7C2 · #2D3748 · #FFFFFF)
   Tipografía: Sora (títulos) + Inter (texto). Tema claro, vidrio sutil.
   Mobile-first.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Marca */
  --navy: #0F4C81;
  --navy-2: #0B3A63;
  --navy-3: #082A48;
  --blue: #1B6CA8;
  --teal: #00B7C2;
  --slate: #2D3748;
  --white: #FFFFFF;
  --navy-rgb: 15, 76, 129;
  --blue-rgb: 27, 108, 168;
  --teal-rgb: 0, 183, 194;

  /* Superficies y texto (semánticos) */
  --bg: #F6F9FC;
  --surface: #FFFFFF;
  --surface-2: #EEF4FA;
  --ink: #2D3748;          /* 10.4:1 sobre blanco */
  --ink-strong: #16202E;
  --mute: #566477;         /*  5.9:1 sobre blanco */
  --line: #E1E8F0;
  --line-2: #CBD6E2;

  --brand-grad: linear-gradient(90deg, var(--blue) 0%, #0A92D0 50%, var(--teal) 100%);
  --brand-grad-diag: linear-gradient(135deg, var(--navy) 0%, var(--blue) 45%, var(--teal) 100%);

  /* Color por servicio (el subdominio hereda el suyo). -ink = versión legible para texto */
  --c-agenda: #00A5B0;    --c-agenda-ink: #007C85;    --c-agenda-rgb: 0, 165, 176;
  --c-consent: #4F5BD5;   --c-consent-ink: #3F49B8;   --c-consent-rgb: 79, 91, 213;
  --c-facturas: #E0891A;  --c-facturas-ink: #9A5406;  --c-facturas-rgb: 224, 137, 26;
  --c-web: #1B6CA8;       --c-web-ink: #175D91;       --c-web-rgb: 27, 108, 168;
  --c-auto: #0F4C81;      --c-auto-ink: #0F4C81;      --c-auto-rgb: 15, 76, 129;

  --ok: #0E9F6E;
  --err: #C8322B;

  --f-head: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 22px;
  --gutter: 20px;
  --nav-h: 64px;
  --shadow-1: 0 1px 2px rgba(16, 38, 64, .06), 0 4px 16px -6px rgba(16, 38, 64, .10);
  --shadow-2: 0 2px 4px rgba(16, 38, 64, .05), 0 24px 48px -20px rgba(16, 38, 64, .22);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--f-head); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; color: var(--ink-strong); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
em { font-style: normal; }
strong { font-weight: 600; color: var(--ink-strong); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(var(--teal-rgb), .25); }
:focus-visible { outline: 3px solid rgba(var(--blue-rgb), .55); outline-offset: 3px; border-radius: 8px; }
a, button, label, select { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Logo ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--slate); }
.brand__mark { width: 46px; height: 28px; flex: none; }
.brand__word {
  display: inline-flex; align-items: baseline; gap: .08em;
  font-family: var(--f-head); font-weight: 500; font-size: 24px; letter-spacing: -0.01em; line-height: 1;
}
.brand__ia { width: .98em; height: .72em; flex: none; }

/* ---------- Botones ---------- */
.btn {
  --pad-y: 13px; --pad-x: 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: var(--f-head); font-weight: 600; font-size: 15px; line-height: 1.2; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--sm { --pad-y: 9px; --pad-x: 14px; min-height: 40px; font-size: 14px; }
.btn--lg { --pad-y: 15px; --pad-x: 24px; min-height: 52px; font-size: 16px; }
.btn--light { background: var(--navy); color: #fff; box-shadow: 0 8px 20px -10px rgba(var(--navy-rgb), .7); }
.btn--light:hover { background: var(--navy-2); box-shadow: 0 12px 28px -12px rgba(var(--navy-rgb), .8); transform: translateY(-1px); }
.btn--light:active { transform: translateY(0) scale(.98); }
.btn--ghost { background: var(--surface); border-color: var(--line-2); color: var(--navy); }
.btn--ghost:hover { border-color: var(--blue); background: #F2F7FC; }
.btn--wa { background: #1FAF5A; color: #fff; }
.btn--wa:hover { background: #17964C; transform: translateY(-1px); }
.btn[disabled] { opacity: .55; cursor: progress; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  transition: background-color .3s, border-color .3s, box-shadow .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled, .nav.is-open {
  background: rgba(255, 255, 255, .94);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(16, 38, 64, .5);
}
@supports (backdrop-filter: blur(12px)) {
  .nav.is-scrolled, .nav.is-open { background: rgba(255, 255, 255, .78); backdrop-filter: blur(16px) saturate(170%); -webkit-backdrop-filter: blur(16px) saturate(170%); }
}
.nav__inner { height: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 16px; }
.nav__links { display: none; }
.nav__cta { display: none; }
.nav__toggle {
  margin-left: auto; width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--surface); cursor: pointer;
  display: grid; place-items: center;
}
.nav__bars, .nav__bars::before, .nav__bars::after {
  display: block; width: 18px; height: 2px; background: var(--navy); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav__bars { position: relative; }
.nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
.nav__bars::before { top: -6px; }
.nav__bars::after { top: 6px; }
.nav.is-open .nav__bars { background: transparent; }
.nav.is-open .nav__bars::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__bars::after { transform: translateY(-6px) rotate(-45deg); }

.menu {
  display: none; flex-direction: column;
  padding: 8px var(--gutter) 24px;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 40px -30px rgba(16, 38, 64, .4);
}
.nav.is-open .menu { display: flex; }
.menu a { padding: 14px 0; font-family: var(--f-head); font-size: 20px; font-weight: 500; color: var(--ink-strong); text-decoration: none; border-bottom: 1px solid var(--line); }
.menu a:last-child { border-bottom: 0; color: var(--blue); }
html:not(.js) .nav__toggle { display: none; }

/* ---------- Kickers / eyebrows ---------- */
.kicker, .eyebrow { font-family: var(--f-head); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.kicker { font-size: 11px; letter-spacing: .1em;
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px;
  border: 1px solid rgba(var(--blue-rgb), .22); border-radius: 999px;
  background: rgba(255, 255, 255, .7); color: var(--navy); line-height: 1.3;
}
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(var(--teal-rgb), .2); flex: none; }
.eyebrow { color: var(--blue); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--brand-grad); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--nav-h) + 36px) 0 40px;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bg) 100%);
}
.hero__gradient {
  --mx: 72%; --my: 32%;
  position: absolute; inset: -10%; z-index: -2;
  background:
    radial-gradient(34% 40% at var(--mx) var(--my), rgba(var(--teal-rgb), .28), transparent 70%),
    radial-gradient(34% 38% at calc(var(--mx) - 20%) calc(var(--my) + 22%), rgba(var(--blue-rgb), .22), transparent 70%),
    radial-gradient(26% 30% at calc(var(--mx) + 12%) calc(var(--my) + 42%), rgba(var(--c-consent-rgb), .12), transparent 70%),
    radial-gradient(30% 30% at calc(var(--mx) - 52%) calc(var(--my) - 8%), rgba(var(--teal-rgb), .10), transparent 70%);
  filter: blur(24px);
  animation: drift 28s ease-in-out infinite alternate;
}
.hero.is-tracking .hero__gradient { animation: none; }
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-4%, 3%, 0) scale(1.06); }
  100% { transform: translate3d(3%, -2%, 0) scale(1.02); }
}
.hero__grain { /* retícula técnica muy tenue */
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background-image:
    linear-gradient(rgba(var(--navy-rgb), .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--navy-rgb), .06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 60% 40%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 60% 40%, #000 10%, transparent 75%);
}
.hero__grid { display: grid; gap: 40px; }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero__title { font-size: clamp(42px, 11.5vw, 72px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 700; }
.hero__title em { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.hero__lead { font-size: 17px; color: var(--mute); max-width: 54ch; }
.hero__actions { display: flex; flex-direction: column; gap: 12px; width: 100%; margin-top: 4px; }
.hero__actions .btn { width: 100%; }

.hub { display: none; }

/* Chips de servicios: composición propia del móvil */
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 32px; }
.chip {
  --a: var(--c-agenda);
  display: flex; align-items: center; gap: 10px; min-height: 52px;
  padding: 12px 14px; border-radius: var(--r);
  border: 1px solid var(--line); background: rgba(255, 255, 255, .85);
  box-shadow: var(--shadow-1);
  text-decoration: none; font-family: var(--f-head); font-weight: 600; font-size: 14px; color: var(--ink-strong);
}
.chip i { width: 10px; height: 10px; border-radius: 3px; background: var(--a); flex: none; }
.chip--consent { --a: var(--c-consent); }
.chip--facturas { --a: var(--c-facturas); }
.chip--web { --a: var(--c-web); }

/* ---------- Secciones ---------- */
.section { padding: 84px 0; position: relative; }
.section__head { margin-bottom: 40px; max-width: 760px; }
.section__title { font-size: clamp(30px, 7.6vw, 52px); letter-spacing: -0.035em; }
.section__title em { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section__lead { margin-top: 16px; color: var(--mute); font-size: 17px; max-width: 58ch; }

/* ---------- Tarjetas de servicio ---------- */
.services { background: var(--bg); }
.cards { display: grid; gap: 16px; }
.card {
  --accent: var(--c-agenda); --accent-rgb: var(--c-agenda-rgb); --accent-ink: var(--c-agenda-ink);
  --x: 50%; --y: 0%;
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  padding: 26px 22px 22px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  scroll-margin-top: calc(var(--nav-h) + 16px);
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
#svc-consentimiento { --accent-ink: var(--c-consent-ink); }
#svc-facturas { --accent-ink: var(--c-facturas-ink); }
#svc-web { --accent-ink: var(--c-web-ink); }
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent); }
.card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(460px circle at var(--x) var(--y), rgba(var(--accent-rgb), .09), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.card:hover { border-color: rgba(var(--accent-rgb), .45); box-shadow: var(--shadow-2); }
.card:hover::after { opacity: 1; }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.card__icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  color: var(--accent-ink); background: rgba(var(--accent-rgb), .1); border: 1px solid rgba(var(--accent-rgb), .25);
}
.card__icon svg { width: 24px; height: 24px; }
.status {
  font-family: var(--f-head); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--mute); background: var(--surface);
  display: inline-flex; align-items: center; gap: 7px;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.status--invite { color: var(--c-facturas-ink); border-color: rgba(var(--c-facturas-rgb), .45); background: rgba(var(--c-facturas-rgb), .08); }
.status--invite::before { background: var(--c-facturas); }
#svc-web .status::before { background: var(--c-web); }
.card__name { font-size: 25px; letter-spacing: -0.025em; }
.card__name span { color: var(--accent-ink); }
.card__problem { margin-top: 10px; color: var(--ink); font-size: 17px; line-height: 1.5; font-weight: 500; }
.card__list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.card__list li { position: relative; padding-left: 30px; color: var(--mute); font-size: 15px; line-height: 1.55; }
.card__list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 6px;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.3 3 3 6-6.3' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.card__for { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-2); font-size: 14px; color: var(--mute); }
.card__cta {
  margin-top: 18px; align-self: stretch;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 50px; padding: 13px 18px; border-radius: 12px;
  background: rgba(var(--accent-rgb), .1); border: 1px solid rgba(var(--accent-rgb), .3);
  color: var(--accent-ink); font-family: var(--f-head); font-weight: 600; text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.card__cta svg { width: 20px; height: 20px; transition: transform .3s var(--ease); }
.card__cta:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.card__cta:hover svg { transform: translateX(4px); }

/* ---------- Cómo funciona ---------- */
.steps { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.step { position: relative; padding: 0 0 32px 68px; }
.step:last-child { padding-bottom: 0; }
.step::before { /* línea de progreso entre pasos */
  content: ""; position: absolute; left: 23px; top: 50px; bottom: 4px; width: 2px;
  background: linear-gradient(var(--blue), var(--teal)); opacity: .35; border-radius: 2px;
}
.step:last-child::before { display: none; }
.step__num {
  position: absolute; left: 0; top: 0;
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  font-family: var(--f-head); font-weight: 700; font-size: 16px; color: #fff;
  background: var(--brand-grad-diag); box-shadow: 0 10px 22px -12px rgba(var(--navy-rgb), .8);
}
.step h3 { font-size: 21px; padding-top: 10px; }
.step p { margin-top: 8px; color: var(--mute); }

/* ---------- Por qué (bloque azul marino de la marca) ---------- */
.why {
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(var(--teal-rgb), .22), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(var(--blue-rgb), .45), transparent 60%),
    var(--navy);
  color: #E6EEF6;
}
.why .eyebrow { color: #7FE3EA; }
.why .section__title { color: #fff; }
.why .section__title em { background: linear-gradient(90deg, #7FE3EA, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.why .section__lead { color: #C3D4E6; }
.why__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.why__item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px; border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .07);
}
@supports (backdrop-filter: blur(12px)) {
  .why__item { background: rgba(255, 255, 255, .06); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
}
.why__icon { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(var(--teal-rgb), .16); border: 1px solid rgba(var(--teal-rgb), .4); color: #7FE3EA; }
.why__icon svg { width: 22px; height: 22px; }
.why__item h3 { font-size: 18px; color: #fff; }
.why__item p { margin-top: 6px; color: #C3D4E6; font-size: 15px; }

/* ---------- Formulario ---------- */
.request { background: linear-gradient(180deg, var(--bg), #EAF2F9); }
.request__note { margin-top: 14px; font-size: 14px; color: var(--mute); }
.req { color: var(--err); }
.opt { color: var(--mute); font-weight: 400; font-size: 13px; }

.formbox {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 20px 18px;
  box-shadow: var(--shadow-2);
}
.stepper { display: none; }

.form { display: grid; gap: 0; }
.fstep { border: 0; margin: 0; padding: 0 0 28px; min-width: 0; }
.fstep + .fstep { padding-top: 28px; border-top: 1px solid var(--line); }
.fstep legend { padding: 0; margin-bottom: 20px; font-family: var(--f-head); font-size: 20px; font-weight: 600; color: var(--ink-strong); display: flex; flex-direction: column; gap: 6px; }
.fstep__n { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }

.fgrid { display: grid; gap: 0 16px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; min-width: 0; }
.field label, .label { font-size: 14px; font-weight: 600; color: var(--ink-strong); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="date"],
.field select, .field textarea {
  width: 100%; min-height: 50px;
  padding: 12px 14px;
  font-size: 16px; /* evita zoom en iOS */
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: #FBFDFF;
  color: var(--ink-strong);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 8 5 5 5-5' fill='none' stroke='%23566477' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #8795A6; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #AFC0D2; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(var(--blue-rgb), .15); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--err); background: #FFF8F7; }
.field.is-invalid .opt-card span, .field.is-invalid .check span::before { border-color: var(--err); }
.field__error { font-size: 13px; font-weight: 500; color: var(--err); display: flex; gap: 6px; align-items: flex-start; }
.field__error::before { content: "!"; flex: none; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; background: var(--err); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.field__error:empty { display: none; }
.field__hint { font-size: 13px; color: var(--mute); background: var(--surface-2); padding: 10px 12px; border-radius: 10px; }

.options { display: flex; flex-wrap: wrap; gap: 8px; }
.options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.options--cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opt-card span {
  display: flex; flex-direction: column; gap: 2px; height: 100%;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #FBFDFF;
  font-size: 13px; color: var(--mute); cursor: pointer; transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.opt-card span b { font-family: var(--f-head); font-size: 15px; font-weight: 600; color: var(--ink-strong); }
.opt-card:last-child { grid-column: 1 / -1; }
.opt-card span:hover, .pill span:hover { border-color: #AFC0D2; }
.opt-card input:checked + span { border-color: var(--blue); background: #EEF5FC; box-shadow: inset 0 0 0 1px var(--blue); }
.opt-card input:focus-visible + span, .pill input:focus-visible + span, .check input:focus-visible + span::before { outline: 3px solid rgba(var(--blue-rgb), .45); outline-offset: 2px; }

.pill span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: #FBFDFF;
  font-size: 14px; font-weight: 500; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s;
}
.pill input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }

.options--checks { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; }
.check { position: relative; display: flex; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check > span { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; cursor: pointer; line-height: 1.4; }
.check > span::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid #9FB1C4; background: #fff;
  transition: background-color .2s, border-color .2s;
}
.check input:checked + span::before {
  border-color: var(--blue);
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.3 3 3 6-6.3' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.check--legal > span { align-items: flex-start; }
.check--legal a { color: var(--blue); font-weight: 600; text-underline-offset: 3px; }

/* Selector de servicio + desvío a plataformas con URL propia */
.field--service select { font-weight: 500; border-color: rgba(var(--blue-rgb), .45); background-color: #F4F8FD; }
.redirect {
  margin: 4px 0 8px; padding: 22px 20px; border-radius: var(--r);
  background: linear-gradient(135deg, rgba(var(--blue-rgb), .08), rgba(var(--teal-rgb), .10));
  border: 1px solid rgba(var(--blue-rgb), .25);
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
.redirect__title { font-family: var(--f-head); font-size: 19px; font-weight: 600; color: var(--ink-strong); line-height: 1.3; }
.redirect__text { color: var(--mute); font-size: 15px; }
.redirect .btn { margin-top: 6px; width: 100%; white-space: normal; text-align: center; }
@media (min-width: 640px) { .redirect .btn { width: auto; } }
.formbox.is-redirect [data-webfields],
.formbox.is-redirect .fstep:not([data-step="1"]),
.formbox.is-redirect .fstep__nav,
.formbox.is-redirect .stepper,
.formbox.is-redirect .fstatus,
.formbox.is-redirect .fstep legend { display: none !important; }
.formbox.is-redirect .fstep { padding-bottom: 0; }

.fstep__nav { display: none; }
.fstep__nav--final { display: flex; flex-direction: column-reverse; gap: 10px; margin-top: 6px; }
.fstep__nav--final [data-prev] { display: none; }
.fstep__nav--final .btn { width: 100%; }

.hp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }
.form.is-sending .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.fstatus { margin-top: 12px; font-size: 14px; font-weight: 500; color: var(--mute); }
.fstatus:empty { display: none; }

.fresult { margin-top: 18px; padding: 22px; border-radius: var(--r); border: 1px solid var(--line-2); }
.fresult h3 { font-size: 20px; }
.fresult p { margin-top: 8px; color: var(--mute); }
.fresult--error { border-color: rgba(200, 50, 43, .35); background: #FFF6F5; }
.fresult__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.fresult__actions .btn { width: 100%; }
.fresult--ok { margin: 0; padding: 30px 24px; border-color: rgba(14, 159, 110, .35); background: #F1FBF7; outline: none; }
.fresult--ok .btn { margin-top: 20px; }
.fresult__check { width: 54px; height: 54px; border-radius: 16px; background: var(--ok); color: #fff; display: grid; place-items: center; margin-bottom: 18px; }
.fresult__check svg { width: 26px; height: 26px; }
.noscript { margin-top: 16px; padding: 16px; border-radius: 12px; background: #FFF7EC; border: 1px solid rgba(224, 137, 26, .4); font-size: 14px; }

/* ---------- Footer (azul marino profundo) ---------- */
.footer { background: var(--navy-3); color: #C3D4E6; padding: 72px 0 110px; }
.footer .eyebrow { color: #7FE3EA; }
.footer .brand { color: #fff; }
.footer__big { padding-bottom: 44px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer__mail {
  display: inline-block; font-family: var(--f-head); font-size: clamp(28px, 8vw, 80px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.08; color: #fff;
  text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(90deg, var(--teal), #7FE3EA) 0 100% / 0 3px no-repeat;
  transition: background-size .5s var(--ease);
}
.footer__mail:hover { background-size: 100% 3px; }
.footer__grid { display: grid; gap: 36px; padding: 44px 0; }
.footer__tag { margin-top: 14px; color: #9FB4CB; max-width: 32ch; font-size: 15px; }
.footer__h { font-family: var(--f-head); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #9FB4CB; margin-bottom: 14px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.footer__col a { text-decoration: none; color: #E6EEF6; }
.footer__col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.flink { display: inline-flex; align-items: center; gap: 10px; min-height: 28px; }
.flink::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c-agenda); }
.flink--consent::before { background: #8C95F0; }
.flink--facturas::before { background: var(--c-facturas); }
.flink--web::before { background: #4FA3E0; }
.footer__legal { padding: 28px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.footer__legal p { color: #9FB4CB; font-size: 14px; max-width: 80ch; }
.footer__legal a { color: #E6EEF6; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: #9FB4CB; }
.footer__bottom a { text-decoration: none; color: #E6EEF6; }

/* ---------- Barra móvil ---------- */
.mbar {
  position: fixed; left: 12px; right: 12px; z-index: 40;
  bottom: max(12px, env(safe-area-inset-bottom));
  display: grid; grid-template-columns: auto 1fr; gap: 8px;
  padding: 8px; border-radius: 16px;
  background: rgba(255, 255, 255, .96); border: 1px solid var(--line);
  box-shadow: 0 18px 40px -16px rgba(16, 38, 64, .45);
  transform: translateY(150%); transition: transform .35s var(--ease);
}
@supports (backdrop-filter: blur(12px)) { .mbar { background: rgba(255, 255, 255, .82); backdrop-filter: blur(16px) saturate(170%); -webkit-backdrop-filter: blur(16px) saturate(170%); } }
.mbar.is-visible { transform: none; }
html:not(.js) .mbar { display: none; }

/* ---------- Reveal (solo con JS; sin JS todo se ve) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* ==========================================================================
   ≥ 640px
   ========================================================================== */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .hero__actions { flex-direction: row; width: auto; }
  .hero__actions .btn { width: auto; }
  .chips { grid-template-columns: repeat(4, 1fr); }
  .options--cards { grid-template-columns: repeat(3, 1fr); }
  .opt-card:last-child { grid-column: auto; }
  .options--checks { grid-template-columns: repeat(4, 1fr); }
  .fgrid { grid-template-columns: 1fr 1fr; }
  .fgrid--3 { grid-template-columns: repeat(3, 1fr); }
  .field--narrow { max-width: 280px; }
  .formbox { padding: 32px; }
  .fresult__actions { flex-direction: row; }
  .fresult__actions .btn { width: auto; }
  .fstep__nav--final { flex-direction: row; justify-content: flex-end; }
  .fstep__nav--final .btn { width: auto; }
  .why__list { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* ==========================================================================
   ≥ 900px — escritorio
   ========================================================================== */
@media (min-width: 900px) {
  :root { --nav-h: 76px; }
  .brand__mark { width: 52px; height: 32px; }
  .brand__word { font-size: 26px; }
  .nav__links { display: flex; gap: 2px; margin-left: 32px; }
  .nav__links a {
    position: relative; padding: 10px 12px; font-size: 15px; font-weight: 500; color: var(--slate); text-decoration: none; transition: color .2s;
  }
  .nav__links a::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--brand-grad);
    transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
  }
  .nav__links a:hover { color: var(--navy); }
  .nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
  .nav__cta { display: inline-flex; margin-left: auto; }
  .nav__toggle, .menu, .nav.is-open .menu { display: none; }

  .hero { padding-bottom: 72px; }
  .hero__grid { grid-template-columns: 1.2fr .8fr; align-items: center; gap: 48px; }
  .hero__lead { font-size: 19px; }
  .chips { display: none; }

  /* Hub: isotipo AmaIA en vidrio, con sus cuatro servicios */
  .hub { display: block; position: relative; aspect-ratio: 1; width: 100%; max-width: 480px; justify-self: end; }
  .hub__ring { position: absolute; border-radius: 50%; border: 1.5px dashed rgba(var(--blue-rgb), .25); }
  .hub__ring--1 { inset: 6%; animation: spinslow 70s linear infinite; }
  .hub__ring--2 { inset: 24%; border-style: solid; border-color: rgba(var(--teal-rgb), .22); background: radial-gradient(circle, rgba(var(--teal-rgb), .10), transparent 70%); }
  .hub__core {
    position: absolute; inset: 33%; border-radius: 30%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(255, 255, 255, .9);
    box-shadow: 0 30px 60px -24px rgba(var(--navy-rgb), .45), 0 0 0 8px rgba(255, 255, 255, .45), inset 0 1px 0 #fff;
  }
  @supports (backdrop-filter: blur(12px)) {
    .hub__core { background: rgba(255, 255, 255, .7); backdrop-filter: blur(18px) saturate(180%); -webkit-backdrop-filter: blur(18px) saturate(180%); }
  }
  .hub__core svg { width: 70%; height: auto; aspect-ratio: 384 / 236; flex: none; }
  .hub__node {
    --a: var(--c-agenda);
    position: absolute; display: inline-flex; align-items: center; gap: 10px;
    padding: 11px 16px 11px 12px; border-radius: 14px;
    background: rgba(255, 255, 255, .92); border: 1px solid var(--line);
    font-family: var(--f-head); font-size: 14px; font-weight: 600; color: var(--ink-strong); text-decoration: none; white-space: nowrap;
    box-shadow: 0 16px 34px -18px rgba(16, 38, 64, .45);
    animation: bob 6s ease-in-out infinite;
    transition: border-color .3s;
  }
  @supports (backdrop-filter: blur(12px)) { .hub__node { background: rgba(255, 255, 255, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); } }
  .hub__node:hover { border-color: var(--a); }
  .hub__node i { width: 10px; height: 10px; border-radius: 3px; background: var(--a); }
  .hub__node--agenda   { top: 3%;  left: 8%; }
  .hub__node--consent  { top: 19%; right: -3%; --a: var(--c-consent); animation-delay: -1.5s; }
  .hub__node--facturas { bottom: 19%; left: -5%; --a: var(--c-facturas); animation-delay: -3s; }
  .hub__node--web      { bottom: 3%; right: 10%; --a: var(--c-web); animation-delay: -4.5s; }

  .section { padding: 120px 0; }
  .section__head { margin-bottom: 56px; }

  .cards { grid-template-columns: 1fr 1fr; gap: 20px; }
  .card { padding: 34px 32px 30px; }
  .card:hover { transform: translateY(-3px); }
  .card__name { font-size: 28px; }
  .card__cta { align-self: flex-start; gap: 18px; margin-top: auto; }
  .card__for { margin-bottom: 22px; }

  .steps__list { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .step, .step:last-child { padding: 0; }
  .step::before { left: 64px; right: -20px; top: 23px; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--blue), var(--teal)); }
  .step__num { position: static; margin-bottom: 26px; }
  .step h3 { font-size: 22px; padding-top: 0; }

  .why__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
  .why__head { position: sticky; top: calc(var(--nav-h) + 40px); margin-bottom: 0; }
  .why__list { grid-template-columns: 1fr; }
  .why__item { padding: 26px 28px; }

  .request__grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 56px; align-items: start; }
  .request__head { position: sticky; top: calc(var(--nav-h) + 40px); margin-bottom: 0; }

  /* Stepper (lo activa JS en escritorio) */
  .formbox.is-stepped { padding: 0; overflow: hidden; }
  .formbox.is-stepped .stepper {
    display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 0; padding: 0;
    border-bottom: 1px solid var(--line); background: #F8FBFE;
  }
  .stepper button {
    width: 100%; display: flex; align-items: center; gap: 12px;
    padding: 20px 24px; background: transparent; border: 0; cursor: pointer;
    color: var(--mute); font-family: var(--f-head); font-size: 15px; font-weight: 600; text-align: left;
    position: relative; transition: color .2s, background-color .2s;
  }
  .stepper button:hover:not(:disabled) { background: #F0F6FC; }
  .stepper li + li button { border-left: 1px solid var(--line); }
  .stepper button span {
    width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
    border: 1.5px solid var(--line-2); font-size: 13px; transition: background-color .2s, border-color .2s, color .2s;
  }
  .stepper button::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--brand-grad);
    transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
  }
  .stepper button[aria-current="step"] { color: var(--navy); background: #fff; }
  .stepper button[aria-current="step"]::after { transform: scaleX(1); }
  .stepper button[aria-current="step"] span { border-color: var(--blue); color: var(--blue); }
  .stepper button.is-done { color: var(--ink); }
  .stepper button.is-done span { background: var(--blue); border-color: var(--blue); color: #fff; }
  .stepper button:disabled { cursor: not-allowed; opacity: .7; }

  .formbox.is-stepped .form { padding: 32px 32px 28px; }
  .formbox.is-stepped .fstep { display: none; padding: 0; border: 0; }
  .formbox.is-stepped .fstep.is-current { display: block; animation: stepIn .35s var(--ease); }
  .formbox.is-stepped .fstep legend .fstep__n { display: none; }
  .formbox.is-stepped .fstep__nav {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    margin-top: 10px; padding-top: 22px; border-top: 1px solid var(--line);
  }
  .formbox.is-stepped .fstep__nav--final [data-prev] { display: inline-flex; }
  .formbox.is-stepped .fresult--ok { margin: 32px; }
  .mbar { display: none; }
}
@keyframes stepIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
@keyframes spinslow { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

@media (min-width: 1200px) {
  .hero__title { font-size: 80px; }
}

/* Solo se reducen los efectos realmente intrusivos */
@media (prefers-reduced-motion: reduce) {
  .hub__ring--1, .hub__node { animation: none; }
}

/* ==========================================================================
   Automatizaciones a la medida (servicio bajo solicitud)
   ========================================================================== */
.chip--auto { --a: var(--c-auto); grid-column: 1 / -1; }
.flink--auto::before { background: linear-gradient(135deg, #4FA3E0, var(--teal)); }

/* Franja en Servicios */
.band {
  margin-top: 16px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: 24px 22px; border-radius: var(--r-lg);
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(var(--teal-rgb), .35), transparent 60%),
    var(--brand-grad-diag);
  color: #fff; text-decoration: none;
  box-shadow: 0 24px 48px -24px rgba(var(--navy-rgb), .7);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.band:hover { transform: translateY(-2px); box-shadow: 0 30px 56px -24px rgba(var(--navy-rgb), .8); }
.band__badge {
  font-family: var(--f-head); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3);
}
.band__body { display: flex; flex-direction: column; gap: 4px; }
.band__title { font-family: var(--f-head); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.band__text { color: #D6E6F5; font-size: 15px; }
.band__cta {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 12px 18px; border-radius: 12px;
  background: #fff; color: var(--navy); font-family: var(--f-head); font-weight: 600; font-size: 15px;
}
.band__cta svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.band:hover .band__cta svg { transform: translateX(4px); }

/* Sección */
.auto { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); border-top: 1px solid var(--line); }
.acards { grid-template-columns: 1fr; }
.acard { --accent: var(--c-auto); --accent-rgb: var(--c-auto-rgb); --accent-ink: var(--c-auto-ink); }
.acard__title { margin-top: 18px; font-size: 20px; letter-spacing: -0.02em; line-height: 1.25; }
.acard .card__list { margin-bottom: 20px; }
.acard .card__cta { margin-top: auto; }

.auto__grid { display: grid; gap: 28px; margin-top: 72px; }
.auto__title { font-size: clamp(26px, 6.4vw, 40px); letter-spacing: -0.03em; }
.auto__title em { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Progreso */
.aprog__bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.aprog__bar span { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--brand-grad); transition: width .45s var(--ease); }
.aprog__label { margin: 10px 0 20px; font-family: var(--f-head); font-size: 13px; font-weight: 600; color: var(--mute); }
.aprog__label:empty { display: none; }
html:not(.js) .aprog, html:not(.js) .anav { display: none; }

/* Pantallas */
.apanel { border: 0; margin: 0; padding: 0; min-width: 0; }
.apanel + .apanel { margin-top: 28px; }
.apanel legend {
  padding: 0; margin-bottom: 18px; font-family: var(--f-head); font-size: 20px; font-weight: 600; color: var(--ink-strong); line-height: 1.3;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
}
.apanel__tag {
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--navy);
  padding: 5px 9px; border-radius: 999px; background: rgba(var(--navy-rgb), .08); border: 1px solid rgba(var(--navy-rgb), .18);
}
.js .apanel { display: none; }
.js .apanel.is-current { display: block; animation: stepIn .35s var(--ease); }
.js .apanel + .apanel { margin-top: 0; }

/* Tarjetas seleccionables */
.picks { display: grid; gap: 10px; }
.pick { position: relative; display: flex; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick span {
  flex: 1; display: flex; align-items: center; gap: 14px; min-height: 60px;
  padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: #FBFDFF;
  font-family: var(--f-head); font-size: 15px; font-weight: 600; color: var(--ink-strong); line-height: 1.35; cursor: pointer;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.pick span:hover { border-color: #AFC0D2; }
.pick i {
  flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid #9FB1C4; background: #fff;
  transition: background-color .2s, border-color .2s;
}
.pick input:checked + span { border-color: var(--blue); background: #EEF5FC; box-shadow: inset 0 0 0 1px var(--blue); }
.pick input:checked + span i {
  border-color: var(--blue);
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.3 3 3 6-6.3' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.pick input:focus-visible + span { outline: 3px solid rgba(var(--blue-rgb), .45); outline-offset: 2px; }
.is-invalid .pick span { border-color: var(--err); }

/* Servicios en dos grupos: A. Soluciones listas / B. A la medida */
.group-head { display: flex; flex-direction: column; gap: 4px; margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.group-head--custom { margin-top: 48px; }
.group-head__title { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.group-head__n {
  width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: none;
  font-size: 13px; font-weight: 700; color: #fff; background: var(--brand-grad-diag);
}
.group-head__text { color: var(--mute); font-size: 15px; padding-left: 38px; }
.band { margin-top: 0; }
@media (min-width: 900px) {
  .group-head { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 24px; }
  .group-head__text { padding-left: 0; text-align: right; max-width: 64ch; }
  .group-head--custom { margin-top: 64px; }
}

/* Botones de WhatsApp en menú y barra móvil */
.nav__cta svg, .mbar .btn svg { width: 17px; height: 17px; flex: none; }
.mbar .btn { padding-left: 12px; padding-right: 12px; }

/* Hero: señales de confianza y nodo "A tu medida" */
.hero__trust { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--mute); }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust li::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%; flex: none;
  background: rgba(var(--teal-rgb), .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.3 2.6 2.6L14 7.5' fill='none' stroke='%23007C85' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
@media (min-width: 900px) {
  .hub__node--auto { top: 55%; right: -6%; --a: var(--c-auto); animation-delay: -2.2s; border-style: dashed; border-color: rgba(var(--navy-rgb), .35); }
}

/* Campo "¿Cuál?" al elegir Otro */
.other-field { margin-top: 12px; animation: stepIn .3s var(--ease); }
.other-field input { width: 100%; }
.options + .other-field input,
.other-field > input {
  min-height: 50px; padding: 12px 14px; font-size: 16px; border-radius: 12px;
  border: 1px solid var(--line-2); background: #FBFDFF; color: var(--ink-strong);
}
.other-field > input:focus { outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(var(--blue-rgb), .15); }

/* Preguntas abiertas (levantamiento) */
.apanel__intro { margin: -6px 0 20px; color: var(--mute); font-size: 15px; }
.apanel .field__hint { background: none; padding: 0; margin-top: -2px; }

/* Navegación del formulario */
.anav { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.anav .btn--light, .anav .btn--wa { flex: 1; }
.anav .btn--wa svg { width: 20px; height: 20px; }

@media (min-width: 640px) {
  .band { flex-direction: row; align-items: center; gap: 24px; padding: 26px 30px; }
  .band__body { flex: 1; }
  .acards { grid-template-columns: 1fr 1fr; }
  .picks { grid-template-columns: 1fr 1fr; }
  .picks .pick:last-child { grid-column: 1 / -1; }
  .anav .btn--light, .anav .btn--wa { flex: none; margin-left: auto; }
}
@media (min-width: 900px) {
  .band__title { font-size: 26px; }
  .auto__grid { grid-template-columns: .75fr 1.25fr; gap: 56px; align-items: start; margin-top: 96px; }
  .auto__intro { position: sticky; top: calc(var(--nav-h) + 40px); }
}
@media (min-width: 1100px) {
  .acards { grid-template-columns: repeat(4, 1fr); }
  .acard { padding: 28px 24px 24px; }
}
/* Menú de escritorio con 5 enlaces en pantallas medianas */
@media (min-width: 900px) and (max-width: 1100px) {
  .nav__links { margin-left: 16px; }
  .nav__links a { padding: 10px 8px; font-size: 14px; }
  .nav__links a::after { left: 8px; right: 8px; }
  .nav__cta { font-size: 13px; padding: 9px 12px; }
}

/* ---------- Utilidades finales ---------- */
[hidden] { display: none !important; }
.opt-card, .pill { position: relative; }
@media (min-width: 640px) { .kicker { font-size: 12px; letter-spacing: .12em; } }
