/* MakeWay · app.makeway.digital — formulario dinámico (leads / IA / ambas) y página de gracias.
   Misma marca que los sitios: cobalto + Instrument Sans/Serif + Geist Mono. */

:root {
  --fh: "Instrument Sans", system-ui, sans-serif;
  --fb: "Instrument Sans", system-ui, sans-serif;
  --fa: "Instrument Serif", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --ink: #101217;
  --cobalt: #3A5BA8;
  --cobalt-deep: #24407F;
  --sky: #A9C0F2;
  --sky-soft: #E4EBFB;
  --gray-bg: #F3F4F7;
  --muted: #3F4554;
  --muted-2: #5A6172;
  --line: #E3E6EC;
  --red: #D14343;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--fb); color: var(--ink); background: var(--gray-bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
button { font: inherit; }
a { color: var(--cobalt-deep); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== Estructura: panel azul + tarjeta ===== */
.app { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.side { position: relative; overflow: hidden; background: var(--cobalt); color: #fff; display: flex; flex-direction: column; padding: 32px clamp(24px, 4vw, 56px) 40px; }
.side-glow { position: absolute; inset: -20%; filter: blur(70px); background: radial-gradient(26% 50% at 0% 30%, #A9C0F2 0%, rgba(169,192,242,0) 70%), radial-gradient(30% 45% at 80% 8%, #6F8FDB 0%, rgba(111,143,219,0) 70%), radial-gradient(40% 55% at 100% 95%, #1E3570 0%, rgba(30,53,112,0) 72%); pointer-events: none; }
.side-grain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .22; mix-blend-mode: overlay; pointer-events: none; }
.side > *:not(.side-glow):not(.side-grain) { position: relative; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--fh); font-weight: 700; font-size: 23px; letter-spacing: -0.02em; color: #fff; text-decoration: none; }
.logo span span { color: #C9D7F7; }
.lang { display: inline-flex; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; overflow: hidden; }
.lang a { padding: 6px 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: #E4EBFB; text-decoration: none; }
.lang a[aria-current="true"] { background: #fff; color: var(--cobalt-deep); }
.side-body { margin: auto 0; padding: 56px 0 40px; max-width: 560px; }
.eyebrow { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; }
.side h1 { margin: 22px 0 16px; font-family: var(--fh); font-weight: 600; letter-spacing: -0.035em; font-size: clamp(34px, 3.8vw, 54px); line-height: 1.04; }
.side h1 em { font-family: var(--fa); font-style: italic; font-weight: 400; color: #DCE6FC; }
.side p.lead { margin: 0; font-size: 18px; line-height: 1.5; color: #E4EBFB; }
.checks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: #fff; }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2324407F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.team-mini { display: flex; align-items: center; gap: 14px; }
.avatars { display: flex; }
.avatars img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--cobalt); margin-left: -10px; background: #dfe5f3; filter: grayscale(1); }
.avatars img:first-child { margin-left: 0; }
.team-mini p { margin: 0; font-size: 14px; line-height: 1.4; color: #E4EBFB; }

.main { display: flex; align-items: center; justify-content: center; padding: 40px clamp(16px, 4vw, 56px); }
.card { width: 100%; max-width: 520px; background: #fff; border-radius: 24px; padding: clamp(22px, 3vw, 34px); box-shadow: 0 2px 0 #E3E6EC, 0 30px 60px -32px rgba(16,18,23,.35); }

/* ===== Progreso ===== */
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 24px; }
.back { padding: 0; border: 0; background: none; color: var(--muted-2); font-size: 14px; cursor: pointer; }
.back[hidden] { visibility: hidden; display: inline; }
.step-count { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--muted-2); }
.progress { height: 5px; margin: 14px 0 26px; border-radius: 99px; background: #E9ECF2; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--cobalt-deep), #6F8FDB); transition: width .35s ease; }

/* ===== Pregunta ===== */
.q h2 { margin: 0 0 6px; font-family: var(--fh); font-weight: 600; font-size: clamp(22px, 2.2vw, 27px); letter-spacing: -0.025em; line-height: 1.2; }
.q .help { margin: 0 0 18px; font-size: 15px; line-height: 1.5; color: var(--muted-2); }
.opts { display: grid; gap: 10px; }
.opts.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.opt { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 12px 44px 12px 14px; border-radius: 14px; border: 1.5px solid #DCE0E8; background: #fff; color: var(--ink); text-align: left; font-size: 15.5px; line-height: 1.3; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.opt::after { content: "→"; position: absolute; right: 16px; color: var(--cobalt); }
.opt.multi::after { content: ""; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid #B9C2D3; right: 14px; }
.opt.multi[aria-pressed="true"]::after { border-color: var(--cobalt); background: var(--cobalt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.opt:hover { border-color: var(--sky); background: #F7F9FE; }
.opt:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.opt[aria-pressed="true"] { border-color: var(--cobalt); background: var(--sky-soft); }
.opt .ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--sky-soft); color: var(--cobalt-deep); }
.opt b { display: block; font-weight: 600; font-size: 16.5px; }
.opt small { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.4; color: var(--muted-2); }
.opts.grid .opt { min-height: 48px; padding: 10px 34px 10px 12px; font-size: 14.5px; }
.opts.grid .opt::after { right: 12px; }
.opts.grid .opt.wide { grid-column: 1 / -1; }

/* ===== Datos de contacto ===== */
.fields { display: grid; gap: 10px; }
.field label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.field label span { font-weight: 400; color: var(--muted-2); }
.field input { width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1.5px solid #C9D0DD; font: inherit; font-size: 16px; color: var(--ink); background: #fff; }
.field input:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(58,91,168,.18); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; margin-top: 18px; padding: 0 22px; border: 0; border-radius: 999px; background: radial-gradient(130% 190% at 85% 0%, #7E9BE2 0%, #3A5BA8 48%, #2A4790 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 14px 26px -16px rgba(36,64,127,.8); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.06); }
.btn[disabled] { opacity: .65; cursor: progress; }
.consent-note { margin: 12px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--muted-2); }
.consent-note a { color: inherit; text-decoration: underline; }
.side-legal { margin: 18px 0 0; font-size: 12.5px; color: #C9D6F5; }
.side-legal a { color: inherit; text-decoration: none; }
.side-legal a:hover { color: #fff; text-decoration: underline; }
.error { margin: 12px 0 0; font-size: 14px; color: var(--red); }
.error[hidden] { display: none; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 18px 0 0; font-size: 12.5px; color: var(--muted-2); }

.fade-in { animation: fadeIn .28s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ===== Página de gracias ===== */
.thanks-hero { position: relative; overflow: hidden; background: var(--cobalt); color: #fff; }
.thanks-hero .inner { position: relative; max-width: 1100px; margin: 0 auto; padding: 28px clamp(20px, 4vw, 40px) 120px; }
.thanks-hero .done { display: inline-flex; align-items: center; gap: 8px; margin-top: 44px; padding: 7px 14px; border-radius: 999px; background: #fff; color: var(--cobalt-deep); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; }
.thanks-hero h1 { margin: 18px 0 12px; max-width: 760px; font-family: var(--fh); font-weight: 600; letter-spacing: -0.035em; font-size: clamp(32px, 4.2vw, 54px); line-height: 1.05; }
.thanks-hero h1 em { font-family: var(--fa); font-style: italic; font-weight: 400; color: #DCE6FC; }
.thanks-hero p { margin: 0; max-width: 640px; font-size: 18px; line-height: 1.5; color: #E4EBFB; }
.thanks-body { position: relative; max-width: 1100px; margin: -88px auto 0; padding: 0 clamp(12px, 3vw, 40px) 80px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.cal-card { border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 2px 0 #E3E6EC, 0 30px 60px -30px rgba(16,18,23,.35); min-height: 720px; }
.cal-card iframe { display: block; width: 100%; min-height: 720px; border: 0; overflow: hidden; }
.aside { display: grid; gap: 16px; }
.panel { border-radius: 20px; background: #fff; border: 1px solid var(--line); padding: 22px; }
.panel h2 { margin: 0 0 14px; font-family: var(--fh); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.panel ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.member img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: var(--gray-bg); filter: grayscale(1); }
.member b { display: block; margin-top: 8px; font-size: 14.5px; line-height: 1.25; }
.member span { display: block; font-size: 12.5px; line-height: 1.35; color: var(--muted-2); }
.foot { padding: 26px 20px 34px; text-align: center; font-size: 13px; color: var(--muted-2); }
.foot a { color: var(--muted-2); }

/* ===== Celular y tablet ===== */
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .side { padding: 18px 20px 26px; }
  .side-body { margin: 0; padding: 26px 0 4px; }
  .side h1 { font-size: 30px; margin: 14px 0 10px; }
  .side p.lead { font-size: 16px; }
  .checks, .side-foot { display: none; }
  .main { align-items: flex-start; padding: 0 12px 36px; margin-top: -2px; }
  .card { margin-top: 14px; }
  .thanks-body { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .opts.grid { grid-template-columns: 1fr 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .opt { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .fade-in { animation: none; }
  .progress i { transition: none; }
}
