/* ==========================================================================
   Borah Gateway: the client space ("Tu proyecto en Borah"). ADR 0010.
   Ported from the LP kits of the two sites (read only):
   - web-borah/src/styles/lp/base.css (+ contacto.css for the fields): hola.borah.digital, light;
   - web-borah-usa/styles/lp/base.css (+ convert.css): hello.borahlabs.us, dark.
   Same tokens, type scale, buttons, cards, focus ring, frames and calm motion
   (cubic-bezier(0.22, 1, 0.36, 1), short reveals that play once, prefers-reduced-motion).
   One root: .gw. The site picks the theme: data-site="es" (light) or "us" (dark).
   No Playfair. Raleway is served by the gateway (public/fonts/raleway).
   ========================================================================== */

@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/raleway/Raleway-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 500 600; font-display: swap; src: url('../fonts/raleway/Raleway-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/raleway/Raleway-Bold.woff2') format('woff2'); }

/* ===== Brand tokens: borah.digital (light) ===== */
.gw {
  --color-primary: #502cff;
  --color-on-main-action: #ffffff;
  --color-ink: #0f1220;
  --color-body: #0f1220;
  --color-muted: #6b7085;
  --color-background: #f9f9fd;
  --color-band: #f3f3fa;
  --color-surface: #ffffff;
  --color-surface-raised: #ffffff;
  --color-line: #e2e4ea;
  --color-line-strong: #d3d6e0;
  --color-accent: #0daff9;
  --color-accent-light: #41d3ff;
  --color-primary-light: #6b70ff;
  --color-link: #502cff;
  --color-dark: #0f1220;
  --color-on-dark-muted: #9da1b2;
  --tint: rgba(80, 44, 255, 0.08);
  --tint-strong: rgba(80, 44, 255, 0.14);

  --gradient-brand: linear-gradient(135deg, #502cff 0%, #6b70ff 30%, #0daff9 70%, #41d3ff 100%);
  --gradient-text: linear-gradient(135deg, #502cff 0%, #0daff9 100%);
  --gradient-button: var(--gradient-brand);

  --font-sans: 'Raleway', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --text-display: 48px;
  --text-h2: 32px;
  --text-h3: 20px;
  --text-lede: 19px;
  --text-body: 16px;
  --text-label: 15px;
  --text-eyebrow: 11px;

  --rounded-sm: 8px;
  --rounded-md: 12px;
  --rounded-lg: 16px;
  --rounded-full: 9999px;

  --shadow-card: 0 1px 2px rgba(15, 18, 32, 0.04);
  --shadow-card-hover: 0 20px 40px rgba(80, 44, 255, 0.06);
  --shadow-button: 0 2px 8px rgba(80, 44, 255, 0.15);
  --shadow-button-hover: 0 10px 24px rgba(80, 44, 255, 0.25);
  --shadow-badge: 0 8px 24px rgba(15, 18, 32, 0.08);
  --shadow-window: 0 30px 60px rgba(15, 18, 32, 0.1), 0 2px 6px rgba(15, 18, 32, 0.04);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --focus-ring: var(--color-primary);
  --field-bg: var(--color-surface);
  --nav-bg: rgba(249, 249, 253, 0.78);

  --motion-duration: 500ms;
  --motion-distance: 16px;
  --motion-stagger: 80ms;
}

/* ===== borahlabs.us: the dark kit ===== */
.gw[data-site='us'] {
  --color-ink: #f6f7fa;
  --color-body: #c5c8d4;
  --color-muted: #9da1b2;
  --color-background: #0f1220;
  --color-band: #131626;
  --color-surface: #1a1f35;
  --color-surface-raised: #222842;
  --color-line: #272b40;
  --color-line-strong: #353a55;
  --color-link: #6b70ff;
  --tint: rgba(80, 44, 255, 0.16);
  --tint-strong: rgba(107, 112, 255, 0.24);
  --gradient-text: linear-gradient(135deg, #6b70ff 0%, #41d3ff 100%);
  --shadow-card: none;
  --shadow-card-hover: 0 0 40px rgba(80, 44, 255, 0.15), 0 0 80px rgba(80, 44, 255, 0.05);
  --shadow-button: 0 10px 30px -10px rgba(80, 44, 255, 0.6);
  --shadow-button-hover: 0 14px 36px -10px rgba(80, 44, 255, 0.8);
  --shadow-badge: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-window: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  --focus-ring: var(--color-primary-light);
  --field-bg: var(--color-background);
  --nav-bg: rgba(15, 18, 32, 0.8);
  --motion-duration: 560ms;
  color-scheme: dark;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.gw {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--color-body);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
}
.gw ::selection { background: rgba(80, 44, 255, 0.18); }
.gw a { color: inherit; text-decoration: none; }
.gw img, .gw svg { display: block; max-width: 100%; }
.gw button { font: inherit; color: inherit; }
.gw [x-cloak] { display: none !important; }
.gw .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gw h1, .gw h2, .gw h3, .gw p { margin: 0; }
.gw :focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; border-radius: 4px; }

.gw .wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.gw .wrap.narrow { max-width: 760px; }
.gw main { padding-bottom: 112px; }
@media (min-width: 881px) { .gw .wrap { padding: 0 32px; } .gw main { padding-bottom: 96px; } }

/* Section rhythm: one space between sections, one gap from head to content */
.gw .section { padding: 56px 0 0; }
@media (min-width: 881px) { .gw .section { padding-top: 88px; } }
.gw .head { max-width: 640px; margin: 0 0 28px; }
@media (min-width: 881px) { .gw .head { margin-bottom: 36px; } }

/* Type */
.gw .eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: var(--text-eyebrow); font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--color-muted); margin: 0 0 16px; line-height: 1.4;
}
.gw .eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--gradient-brand); flex: none; }
.gw .display {
  font-size: 34px; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em;
  color: var(--color-ink); text-wrap: balance;
}
@media (min-width: 881px) { .gw .display { font-size: var(--text-display); line-height: 1.08; } }
.gw .lede { font-size: 17px; line-height: 1.6; color: var(--color-muted); margin-top: 18px; max-width: 560px; text-wrap: pretty; }
@media (min-width: 881px) { .gw .lede { font-size: var(--text-lede); margin-top: 22px; } }
.gw .h2 { font-size: 28px; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; color: var(--color-ink); text-wrap: balance; }
@media (min-width: 881px) { .gw .h2 { font-size: var(--text-h2); line-height: 1.12; } }
.gw .sub { font-size: 16px; line-height: 1.6; color: var(--color-muted); margin-top: 12px; text-wrap: pretty; }
@media (min-width: 881px) { .gw .sub { font-size: 17px; } }
.gw .h3 { font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--color-ink); text-wrap: balance; }
@media (min-width: 881px) { .gw .h3 { font-size: var(--text-h3); } }
.gw .muted { color: var(--color-muted); }
.gw .small { font-size: 14px; line-height: 1.55; }
.gw .grad-text { background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* The pill: the status of the request, as the H1 pill of the sites */
.gw .pill {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--color-link);
  background: var(--tint); padding: 6px 14px 6px 12px; border-radius: var(--rounded-full); margin: 0 0 20px;
}
.gw[data-site='us'] .pill { background: var(--color-band); border: 1px solid var(--color-line); }
.gw .pill::before { content: ''; width: 6px; height: 6px; border-radius: 9999px; background: var(--gradient-brand); flex: none; }

/* ===== Buttons ===== */
.gw .btn, .gw .btn2 {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center;
  min-height: 48px; font: 600 var(--text-label)/1.4 var(--font-sans); letter-spacing: 0.01em;
  border-radius: var(--rounded-md); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), background-color 0.25s var(--ease), filter 0.25s var(--ease), opacity 0.25s var(--ease);
}
.gw .btn { color: var(--color-on-main-action); background: var(--gradient-button); border: 0; padding: 13px 26px; box-shadow: var(--shadow-button); }
.gw .btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-button-hover); }
.gw[data-site='us'] .btn:hover { filter: brightness(1.1); }
.gw .btn2 { color: var(--color-ink); background: var(--color-surface); border: 1px solid var(--color-line); padding: 12px 24px; }
.gw[data-site='us'] .btn2 { background: transparent; border-color: var(--color-line-strong); }
.gw .btn2:hover { border-color: rgba(80, 44, 255, 0.3); transform: translateY(-2px); }
.gw[data-site='us'] .btn2:hover { border-color: rgba(255, 255, 255, 0.3); background-color: rgba(255, 255, 255, 0.05); }
.gw .btn.sm, .gw .btn2.sm { min-height: 44px; padding: 10px 18px; font-size: 14px; }
.gw .btn.block, .gw .btn2.block { width: 100%; }
.gw .btn[disabled], .gw .btn2[disabled], .gw .btn.is-busy { opacity: 0.6; cursor: default; transform: none; filter: none; }
.gw .btn svg, .gw .btn2 svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gw .ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.gw .link {
  font-weight: 600; color: var(--color-link); cursor: pointer; border: 0; padding: 0 0 2px; background: var(--gradient-text) left bottom / 0 2px no-repeat;
  transition: background-size 0.35s var(--ease);
}
.gw .link:hover { background-size: 100% 2px; }
/* A quiet text button with a 44px tap area (Saltar, Cancelar, Salir) */
.gw .quiet {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 12px;
  font-size: 14px; font-weight: 600; color: var(--color-muted); background: none; border: 0; border-radius: var(--rounded-md); cursor: pointer;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.gw .quiet:hover { color: var(--color-ink); background: var(--tint); }
.gw .quiet svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Nav (the site Navbar, simplified for an app) ===== */
.gw .nav {
  position: sticky; top: 0; z-index: 40;
  background: var(--nav-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-line);
}
.gw[data-site='us'] .nav { border-bottom-color: rgba(255, 255, 255, 0.05); }
.gw .nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.gw .nav-logo { display: inline-flex; align-items: center; min-height: 44px; }
.gw .nav-logo img { height: 36px; width: auto; }
.gw .nav-end { display: flex; align-items: center; gap: 4px; }
.gw .nav-link { display: none; }
.gw .nav-cta { display: none; }
@media (min-width: 881px) {
  .gw .nav-in { height: 72px; }
  .gw .nav-logo img { height: 44px; }
  .gw .nav-end { gap: 8px; }
  .gw .nav-link {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 14px; font-weight: 500; color: var(--color-muted);
    transition: color 0.3s var(--ease);
  }
  .gw .nav-link:hover, .gw .nav-link.is-active { color: var(--color-ink); }
  .gw .nav-cta { display: inline-flex; margin-left: 8px; }
}

/* The two actions that are always visible: in the nav on desktop, a bar at the bottom on a phone */
.gw .actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--nav-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--color-line);
}
.gw .actionbar .btn, .gw .actionbar .btn2 { min-height: 48px; padding: 10px 12px; font-size: 14px; }
@media (min-width: 881px) { .gw .actionbar { display: none; } }

/* ===== Banner: "Confirma tu email" and notices ===== */
.gw .banner {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  margin-top: 20px; padding: 14px 16px 14px 20px; overflow: hidden;
  font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--color-ink);
  background: var(--color-surface-raised); border: 1px solid var(--color-line); border-radius: var(--rounded-md);
}
.gw .banner::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gradient-brand); }
.gw .banner p { flex: 1 1 260px; }
.gw .banner .small { display: block; font-weight: 500; color: var(--color-muted); }
.gw .notice { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--color-link); }

/* ===== Hero: the status of the request, with the brief preview next to it ===== */
.gw .hero { position: relative; padding: 36px 0 0; }
@media (min-width: 881px) { .gw .hero { padding-top: 64px; } }
.gw .hero-grid { display: grid; gap: 36px; align-items: center; margin-top: 28px; }
@media (min-width: 881px) { .gw .hero-grid { margin-top: 40px; } }
@media (min-width: 1000px) { .gw .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; } }
.gw .hero .hello { font-size: 16px; font-weight: 600; color: var(--color-ink); margin-bottom: 10px; }
.gw .hero .ctas .btn2 svg { stroke: var(--color-link); }
.gw .dots { position: absolute; inset: 0 0 auto; height: 420px; pointer-events: none;
  background-image: radial-gradient(circle, rgba(80, 44, 255, 0.06) 1px, transparent 1px); background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent); mask-image: linear-gradient(to bottom, black, transparent); }
.gw[data-site='us'] .dots { background-image: radial-gradient(circle, rgba(107, 112, 255, 0.1) 1px, transparent 1px); }

/* ===== Cards ===== */
.gw .card {
  position: relative; border: 1px solid var(--color-line); border-radius: var(--rounded-lg);
  background: var(--color-surface); padding: 20px; box-shadow: var(--shadow-card);
}
@media (min-width: 881px) { .gw .card { padding: 28px; } }
.gw .card.lined::before {
  content: ''; position: absolute; z-index: 1; top: -1px; left: 24px; width: 40px; height: 2px; border-radius: 2px; background: var(--gradient-brand);
}
.gw .card + .card { margin-top: 16px; }
.gw .card-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px 20px; margin-bottom: 18px; }
.gw .card-head > div:first-child { flex: 1 1 320px; min-width: 0; }
@media (max-width: 599px) { .gw .card-head > .btn { width: 100%; } }
.gw .card-head .h3 + p { margin-top: 6px; }

/* Tiles: the icon on a soft brand tint (as the mail icon of /contacto) */
.gw .tile {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center;
  border-radius: 10px; background: var(--tint); color: var(--color-link);
}
.gw .tile svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Frames: the light browser and the dark window of the sites (visuals) ===== */
.gw .frame-light { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--rounded-lg); overflow: hidden; box-shadow: var(--shadow-window); }
.gw .frame-light .bar, .gw .frame .bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; }
.gw .frame-light .bar { border-bottom: 1px solid var(--color-line); }
.gw .frame-light .bar i, .gw .frame .bar i { width: 10px; height: 10px; border-radius: 9999px; display: block; background: var(--color-line); }
.gw .frame-light .bar span, .gw .frame .bar span { margin-left: 8px; font-size: 11px; font-weight: 600; color: var(--color-muted); letter-spacing: 0.02em; }
.gw .frame { background: var(--color-dark); border-radius: var(--rounded-lg); padding: 0 10px 10px; box-shadow: 0 30px 60px rgba(15, 18, 32, 0.12); color: #f6f7fa; }
.gw[data-site='us'] .frame { background: #0b0d18; border: 1px solid var(--color-line); }
.gw .frame .bar { padding: 12px 6px 10px; }
.gw .frame .bar i { background: rgba(255, 255, 255, 0.14); }
.gw .frame .bar span { color: #9da1b2; }

/* The brief preview in the hero: the meter and the next unlock */
.gw .preview .screen { padding: 22px 22px 24px; }
.gw .preview .row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--color-line); font-size: 14px; }
.gw .preview .row:first-of-type { border-top: 0; }
.gw .preview .row b { font-weight: 600; color: var(--color-ink); }
.gw .preview .row .state { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--color-muted); }
.gw .preview .row .state.ok { color: var(--color-link); }
.gw .mark { width: 18px; height: 18px; flex: none; border-radius: 9999px; display: grid; place-items: center; border: 1.5px solid var(--color-line-strong); }
.gw .mark.ok { border: 0; background: var(--gradient-brand); }
.gw .mark.ok::after { content: ''; width: 8px; height: 4px; margin-top: -2px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg); }

/* ===== Meter ===== */
.gw .meter { display: grid; gap: 10px; }
.gw .meter-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.gw .meter-num { font-size: 40px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; color: var(--color-ink); }
.gw .meter-num small { font-size: 18px; font-weight: 600; color: var(--color-muted); margin-left: 2px; }
.gw .meter-track { height: 6px; border-radius: 9999px; background: var(--color-line); overflow: hidden; }
.gw .meter-fill { height: 100%; border-radius: 9999px; background: var(--gradient-brand); transform-origin: left; transition: width 0.6s var(--ease); }
.gw .unlock { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 600; line-height: 1.5; color: var(--color-ink); }
.gw .unlock::before { content: ''; width: 8px; height: 8px; margin-top: 7px; border-radius: 9999px; background: var(--gradient-brand); flex: none; box-shadow: 0 0 0 4px var(--tint); }
.gw .unlock.is-ready { color: var(--color-link); }

/* ===== Tags: the source of a field ===== */
.gw .tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--rounded-full);
  font-size: 12px; font-weight: 600; line-height: 1.5; color: var(--color-muted); background: var(--color-band); white-space: nowrap;
}
.gw .tag::before { content: ''; width: 6px; height: 6px; border-radius: 9999px; background: var(--color-line-strong); flex: none; }
.gw .tag.is-ai { color: var(--color-link); background: var(--tint); }
.gw .tag.is-ai::before { background: var(--gradient-brand); }
.gw .tag.is-ok::before { background: var(--color-link); }

/* ===== Fields of the brief ===== */
.gw .fields { display: grid; gap: 0; }
.gw .field { display: grid; gap: 6px; padding: 16px 0; border-top: 1px solid var(--color-line); }
.gw .field:first-child { border-top: 0; padding-top: 0; }
.gw .field:last-child { padding-bottom: 0; }
.gw .field-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.gw .field-label { font-size: 13px; font-weight: 600; color: var(--color-muted); letter-spacing: 0.01em; }
.gw .field-value { font-size: 16px; line-height: 1.55; color: var(--color-ink); overflow-wrap: anywhere; white-space: pre-line; }
.gw .field-value.is-empty { color: var(--color-muted); font-style: normal; opacity: 0.8; }
.gw .field-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.gw .field.is-pending .field-value { color: var(--color-ink); }
.gw .field-edit { display: grid; gap: 10px; margin-top: 4px; }
.gw .two-cols { display: grid; gap: 0 32px; }
@media (min-width: 720px) { .gw .two-cols { grid-template-columns: 1fr 1fr; } .gw .two-cols .field:nth-child(2) { border-top: 0; padding-top: 0; } }

/* The small round confirm button and the edit button */
.gw .ok-btn, .gw .edit-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: var(--rounded-md);
  font-size: 14px; font-weight: 600; cursor: pointer; transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.gw .ok-btn { color: var(--color-link); background: var(--tint); border: 1px solid transparent; }
.gw .ok-btn:hover { background: var(--tint-strong); transform: translateY(-1px); }
.gw .edit-btn { color: var(--color-ink); background: transparent; border: 1px solid var(--color-line); }
.gw .edit-btn:hover { border-color: rgba(80, 44, 255, 0.3); }
.gw .ok-btn svg, .gw .edit-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 880px) { .gw .ok-btn, .gw .edit-btn { min-height: 44px; } }

/* ===== Form fields (the /contacto and /contact forms) ===== */
.gw .form-field { display: grid; gap: 8px; }
.gw .form-label { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--color-ink); }
.gw .form-hint { font-size: 14px; color: var(--color-muted); line-height: 1.5; }
.gw .form-control {
  display: block; width: 100%; min-height: 48px; margin: 0; padding: 12px 14px;
  font: 400 16px/1.5 var(--font-sans); letter-spacing: 0.01em; color: var(--color-ink);
  background: var(--field-bg); border: 1px solid var(--color-line); border-radius: var(--rounded-md); box-shadow: var(--shadow-card);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease); -webkit-appearance: none; appearance: none;
}
.gw[data-site='us'] .form-control { border-color: var(--color-line-strong); }
.gw .form-control::placeholder { color: var(--color-muted); opacity: 0.8; }
.gw .form-control:hover { border-color: rgba(80, 44, 255, 0.3); }
.gw[data-site='us'] .form-control:hover { border-color: rgba(255, 255, 255, 0.22); }
.gw .form-control:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(80, 44, 255, 0.12); }
.gw[data-site='us'] .form-control:focus { border-color: var(--color-primary-light); box-shadow: 0 0 0 4px rgba(107, 112, 255, 0.2); }
.gw textarea.form-control { min-height: 120px; resize: vertical; }
.gw .form-control[aria-invalid='true'] { border-color: var(--color-primary); }
.gw .form-error { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--color-link); }
.gw .form-error::before { content: '!'; width: 16px; height: 16px; border-radius: 9999px; flex: none; display: grid; place-items: center; background: var(--gradient-brand); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
.gw .form-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.gw .inline-form { display: grid; gap: 10px; }
@media (min-width: 600px) { .gw .inline-form { grid-template-columns: minmax(0, 1fr) auto; } }

/* Chips: the quick answers */
.gw .chips { display: grid; gap: 10px; }
@media (min-width: 600px) { .gw .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gw .chip {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 14px 16px; text-align: left;
  font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--color-ink);
  background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--rounded-md); cursor: pointer; box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.gw[data-site='us'] .chip { border-color: var(--color-line-strong); }
.gw .chip::before { content: ''; width: 18px; height: 18px; flex: none; border-radius: 9999px; border: 1.5px solid var(--color-line-strong); transition: border-color 0.25s var(--ease); }
.gw .chip:hover { border-color: rgba(80, 44, 255, 0.35); transform: translateY(-1px); }
.gw .chip.is-on { border-color: transparent; background: linear-gradient(var(--color-surface), var(--color-surface)) padding-box, var(--gradient-brand) border-box; box-shadow: var(--shadow-card-hover); }
.gw .chip.is-on::before { border: 5px solid var(--color-primary); }
.gw .chip.is-suggested::after { content: attr(data-suggested); margin-left: auto; font-size: 12px; font-weight: 600; color: var(--color-link); }
.gw .chips.sm { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.gw .chips.sm .chip { min-height: 44px; padding: 10px 12px; font-size: 14px; }

/* ===== The capture modes ===== */
.gw .modes { display: grid; gap: 12px; }
@media (min-width: 600px) { .gw .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .gw .modes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.gw .mode {
  position: relative; display: flex; align-items: flex-start; gap: 14px; width: 100%; padding: 18px; text-align: left;
  background: linear-gradient(var(--color-surface), var(--color-surface)) padding-box, linear-gradient(var(--color-line), var(--color-line)) border-box;
  border: 1px solid transparent; border-radius: var(--rounded-lg); box-shadow: var(--shadow-card); cursor: pointer; color: inherit;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.gw .mode:hover, .gw .mode.is-on {
  transform: translateY(-3px); box-shadow: var(--shadow-card-hover);
  background: linear-gradient(var(--color-surface), var(--color-surface)) padding-box, var(--gradient-brand) border-box;
}
.gw .mode .h3 { font-size: 17px; }
.gw .mode p { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--color-muted); }
.gw .mode[disabled] { cursor: default; opacity: 0.6; transform: none; box-shadow: var(--shadow-card); background: linear-gradient(var(--color-surface), var(--color-surface)) padding-box, linear-gradient(var(--color-line), var(--color-line)) border-box; }
@media (min-width: 881px) { .gw .mode { padding: 22px; } }

/* ===== The recorder (inside the dark window of the sites) ===== */
.gw .rec { margin-top: 16px; }
.gw .rec-screen { display: grid; gap: 20px; padding: 18px 12px 14px; }
@media (min-width: 881px) { .gw .rec-screen { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding: 24px 22px 20px; align-items: center; } }
.gw .rec-main { display: grid; justify-items: center; gap: 16px; text-align: center; }
.gw .rec-time { font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: #f6f7fa; }
.gw .rec-limit { font-size: 13px; color: #9da1b2; }
.gw .rec-state { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #c5c8d4; }
.gw .rec-state i { width: 8px; height: 8px; border-radius: 9999px; background: #9da1b2; }
.gw .rec-state.is-live i { background: #41d3ff; box-shadow: 0 0 0 4px rgba(65, 211, 255, 0.18); }
@media (prefers-reduced-motion: no-preference) { .gw .rec-state.is-live i { animation: gw-pulse 1.6s var(--ease) infinite; } }
@keyframes gw-pulse { 50% { box-shadow: 0 0 0 7px rgba(65, 211, 255, 0.06); } }
.gw .rec-level { display: flex; align-items: center; gap: 4px; height: 36px; }
.gw .rec-level span { width: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.18); height: 6px; transition: height 0.12s linear; }
.gw .rec-level.is-live span { background: linear-gradient(180deg, #41d3ff, #6b70ff); }
.gw .rec-buttons { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.gw .rec-go {
  width: 72px; height: 72px; border-radius: 9999px; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--gradient-brand); box-shadow: 0 10px 30px -8px rgba(80, 44, 255, 0.7); transition: transform 0.25s var(--ease);
}
.gw .rec-go:hover { transform: scale(1.04); }
.gw .rec-go i { width: 22px; height: 22px; border-radius: 9999px; background: #fff; transition: border-radius 0.25s var(--ease), width 0.25s var(--ease), height 0.25s var(--ease); }
.gw .rec-go.is-stop i { width: 22px; height: 22px; border-radius: 5px; }
.gw .rec-go[disabled] { opacity: 0.5; cursor: default; transform: none; }
.gw .rec .quiet { color: #c5c8d4; }
.gw .rec .quiet:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.gw .rec-preview { width: 100%; max-height: 220px; border-radius: var(--rounded-sm); background: #000; object-fit: contain; }
.gw .prompts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; text-align: left; }
.gw .prompts-title { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: #9da1b2; margin-bottom: 4px; }
.gw .prompts li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--rounded-md); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.06); font-size: 15px; font-weight: 500; color: #c5c8d4; transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease); }
.gw .prompts li b { width: 24px; height: 24px; flex: none; border-radius: 9999px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #9da1b2; background: rgba(255, 255, 255, 0.06); }
.gw .prompts li.is-now { color: #fff; background: rgba(80, 44, 255, 0.22); border-color: rgba(107, 112, 255, 0.45); }
.gw .prompts li.is-now b { color: #fff; background: var(--gradient-brand); }
.gw .rec-msg { grid-column: 1 / -1; margin: 0; padding: 12px 14px; border-radius: var(--rounded-md); background: rgba(255, 255, 255, 0.06); font-size: 14px; font-weight: 600; color: #f6f7fa; line-height: 1.5; }
.gw .rec-progress { width: 100%; max-width: 280px; height: 6px; border-radius: 9999px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.gw .rec-progress i { display: block; height: 100%; background: var(--gradient-brand); transition: width 0.3s linear; }

/* ===== Files and links ===== */
.gw .drop {
  display: grid; justify-items: center; gap: 10px; padding: 28px 20px; text-align: center; cursor: pointer;
  border: 1.5px dashed var(--color-line-strong); border-radius: var(--rounded-lg); background: var(--color-band);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.gw .drop:hover, .gw .drop.is-over { border-color: var(--color-primary-light); background: var(--tint); }
.gw .drop b { font-size: 16px; font-weight: 600; color: var(--color-ink); }
.gw .drop span { font-size: 14px; color: var(--color-muted); }

/* ===== Lists: what the lead sent, the documents of Borah, the members ===== */
.gw .list { display: grid; gap: 0; }
.gw .item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--color-line); min-width: 0; }
.gw .item:first-child { border-top: 0; padding-top: 0; }
.gw .item:last-child { padding-bottom: 0; }
.gw .item-main { min-width: 0; flex: 1; }
.gw .item-title { font-size: 15px; font-weight: 600; color: var(--color-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gw .item-sub { font-size: 13px; color: var(--color-muted); }
.gw .item-end { display: flex; align-items: center; gap: 8px; flex: none; }
.gw .bar-progress { height: 4px; border-radius: 9999px; background: var(--color-line); overflow: hidden; margin-top: 8px; }
.gw .bar-progress i { display: block; height: 100%; width: 40%; border-radius: 9999px; background: var(--gradient-brand); }
@media (prefers-reduced-motion: no-preference) { .gw .bar-progress.is-loop i { animation: gw-loop 1.4s var(--ease) infinite; } }
@keyframes gw-loop { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* ===== The review: "Hemos entendido esto, ¿es correcto?" ===== */
.gw .review { margin-top: 16px; border-color: rgba(80, 44, 255, 0.2); box-shadow: var(--shadow-card-hover); }

/* ===== The brief: head on the left (sticky), sections on the right ===== */
.gw .brief-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1000px) { .gw .brief-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; } .gw .brief-side { position: sticky; top: 96px; } }
.gw .brief-side .card + .ctas { margin-top: 16px; }
.gw .doc-in { padding: 4px 20px 20px; }
@media (min-width: 881px) { .gw .doc-in { padding: 8px 32px 28px; } }
.gw .brief-sec { padding: 22px 0; border-top: 1px solid var(--color-line); }
.gw .brief-sec:first-child { border-top: 0; }
.gw .brief-sec:last-child { padding-bottom: 4px; }
.gw .brief-sec .h3 { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.gw .brief-sec .h3 .count { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--color-muted); font-variant-numeric: tabular-nums; }
.gw .brief-sec .field { padding: 14px 0; }
.gw .brief-sec .field:first-child { padding-top: 0; }
/* An empty field is one quiet row: the label and "Añadir" on the right */
.gw .field.is-blank .field-label { color: var(--color-ink); font-weight: 500; font-size: 15px; }
.gw .add-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; margin: -6px -12px -6px 0;
  font-size: 14px; font-weight: 600; color: var(--color-link); background: none; border: 0; border-radius: var(--rounded-md); cursor: pointer;
  transition: background-color 0.25s var(--ease);
}
.gw .add-btn:hover { background: var(--tint); }
.gw .add-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 880px) { .gw .add-btn { min-height: 44px; } }

/* ===== Empty, loading and error states ===== */
.gw .state { display: grid; justify-items: start; gap: 8px; }
.gw .state-ring { width: 44px; height: 44px; border-radius: 9999px; display: grid; place-items: center; background: var(--tint); color: var(--color-link); margin-bottom: 4px; }
.gw .state-ring svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gw .skel { display: block; height: 10px; border-radius: 9999px; background: var(--color-line); }
@media (prefers-reduced-motion: no-preference) {
  .gw .skel { background: linear-gradient(90deg, var(--color-line) 0%, var(--color-band) 50%, var(--color-line) 100%); background-size: 200% 100%; animation: gw-shimmer 1.6s linear infinite; }
}
@keyframes gw-shimmer { to { background-position: -200% 0; } }
.gw .skel-rows { display: grid; gap: 14px; margin-top: 18px; }

/* ===== Messages ===== */
.gw .thread { display: grid; gap: 14px; }
.gw .msg { max-width: 88%; padding: 14px 16px; border-radius: var(--rounded-lg); border: 1px solid var(--color-line); background: var(--color-surface); }
.gw .msg.is-mine { justify-self: end; background: var(--tint); border-color: transparent; }
.gw .msg-who { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--color-ink); margin-bottom: 4px; }
.gw .msg-who time { font-weight: 500; color: var(--color-muted); }
.gw .msg-body { font-size: 15px; line-height: 1.6; color: var(--color-ink); white-space: pre-line; overflow-wrap: anywhere; }
.gw .msg-files { display: grid; gap: 6px; margin-top: 10px; }
.gw .msg-file { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; font-size: 14px; font-weight: 600; color: var(--color-link); }
.gw .msg-file svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.gw .composer { display: grid; gap: 12px; margin-top: 24px; }
.gw .attach-list { display: flex; flex-wrap: wrap; gap: 8px; }
.gw .attach { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; border-radius: var(--rounded-full); background: var(--color-band); font-size: 13px; font-weight: 600; color: var(--color-ink); max-width: 100%; }
.gw .attach span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }

/* ===== Documents of Borah (deliverables) ===== */
.gw .doc { margin-top: 28px; }
.gw .doc-body { font-size: 16px; line-height: 1.7; color: var(--color-body); }
.gw .doc-body h1, .gw .doc-body h2, .gw .doc-body h3 { color: var(--color-ink); font-weight: 600; line-height: 1.25; margin: 1.6em 0 0.5em; text-wrap: balance; }
.gw .doc-body h1 { font-size: 26px; } .gw .doc-body h2 { font-size: 22px; } .gw .doc-body h3 { font-size: 18px; }
.gw .doc-body > :first-child { margin-top: 0; }
.gw .doc-body p, .gw .doc-body ul, .gw .doc-body ol { margin: 0 0 1em; }
.gw .doc-body li + li { margin-top: 6px; }
.gw .doc-body a { color: var(--color-link); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.gw .doc-body code { font-size: 0.92em; padding: 2px 6px; border-radius: 6px; background: var(--color-band); }
.gw .doc-body table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: 15px; }
.gw .doc-body th, .gw .doc-body td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--color-line); }
.gw .offer { display: grid; gap: 14px; margin-top: 28px; padding: 22px; border-radius: var(--rounded-lg); background: var(--color-dark); color: #f6f7fa; }
.gw[data-site='us'] .offer { background: var(--color-surface-raised); border: 1px solid var(--color-line-strong); }
.gw .offer .h3 { color: #fff; }
.gw .offer p { color: #c5c8d4; }
@media (min-width: 720px) { .gw .offer { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 28px 32px; } }

/* ===== The question flow: one question per screen ===== */
.gw .q-shell { min-height: calc(100vh - 64px); display: grid; align-content: start; padding: 28px 0 136px; }
@media (min-width: 881px) { .gw .q-shell { padding: 64px 0 96px; } }
.gw .q-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.gw .q-steps { display: flex; gap: 6px; flex: 1; max-width: 360px; }
.gw .q-steps i { height: 4px; flex: 1; border-radius: 9999px; background: var(--color-line); transition: background 0.4s var(--ease); }
.gw .q-steps i.is-done { background: var(--gradient-brand); }
.gw .q-count { font-size: 13px; font-weight: 600; color: var(--color-muted); white-space: nowrap; }
.gw .q-title { font-size: 28px; font-weight: 600; line-height: 1.18; letter-spacing: -0.01em; color: var(--color-ink); text-wrap: balance; }
@media (min-width: 881px) { .gw .q-title { font-size: 36px; } }
.gw .q-hint { margin-top: 10px; font-size: 16px; color: var(--color-muted); text-wrap: pretty; }
.gw .q-suggest { margin-top: 18px; display: grid; gap: 6px; padding: 14px 16px; border-radius: var(--rounded-md); background: var(--tint); }
.gw .q-suggest .small { color: var(--color-link); font-weight: 600; }
.gw .q-suggest p:last-child { color: var(--color-ink); font-weight: 600; }
.gw .q-body { margin-top: 24px; display: grid; gap: 14px; }
.gw .q-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; }
.gw .q-nav .btn { min-width: 160px; }
.gw .q-done { display: grid; justify-items: start; gap: 14px; }
.gw .q-done .ring { width: 56px; height: 56px; border-radius: 9999px; display: grid; place-items: center; background: var(--gradient-brand); box-shadow: 0 10px 30px -10px rgba(80, 44, 255, 0.7); }
.gw .q-done .ring svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Booking (SavvyCal) ===== */
.gw .booking { margin-top: 24px; min-height: 560px; border-radius: var(--rounded-lg); overflow: hidden; background: var(--color-surface); border: 1px solid var(--color-line); }
.gw .booking-wait { display: grid; gap: 14px; padding: 24px; }
.gw .cal-skel { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.gw .cal-skel span { aspect-ratio: 1; border-radius: 8px; background: var(--color-band); }

/* ===== Small pages: login, links, messages ===== */
.gw .center-page { min-height: calc(100vh - 64px); display: grid; align-content: center; padding: 40px 0 80px; }
.gw .center-page .card { max-width: 520px; width: 100%; margin: 0 auto; padding: 28px 24px; }
@media (min-width: 881px) { .gw .center-page .card { padding: 40px; } }
.gw .center-page .h2 { margin-bottom: 10px; }
.gw .center-page form { display: grid; gap: 16px; margin-top: 24px; }

/* ===== Footer: the dark band of the sites, simplified ===== */
.gw .foot { margin-top: 88px; background: var(--color-dark); color: #9da1b2; }
.gw[data-site='us'] .foot { background: #0b0d18; border-top: 1px solid var(--color-line); }
.gw .foot-in { display: grid; gap: 20px; padding: 36px 0 calc(36px + 76px); font-size: 14px; line-height: 1.6; }
@media (min-width: 881px) { .gw .foot-in { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 40px 0; } }
.gw .foot img { height: 34px; width: auto; }
.gw .foot p { margin-top: 12px; max-width: 420px; }
.gw .foot nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.gw .foot nav a, .gw .foot nav button { display: inline-flex; align-items: center; min-height: 44px; color: #c5c8d4; font-weight: 500; background: none; border: 0; padding: 0; cursor: pointer; transition: color 0.3s var(--ease); }
.gw .foot nav a:hover, .gw .foot nav button:hover { color: #fff; }
.gw .foot :focus-visible { outline-color: #6b70ff; }

/* ===== Motion: short, calm, once. Hidden only with JavaScript and without reduced motion ===== */
@keyframes gw-reveal { from { opacity: 0; translate: 0 var(--motion-distance); } }
@keyframes gw-in { from { opacity: 0; translate: 0 8px; } }
@media screen and (prefers-reduced-motion: no-preference) {
  .js-motion .gw [data-reveal]:not(.in) { opacity: 0; translate: 0 var(--motion-distance); }
  .js-motion .gw [data-reveal].in { animation: gw-reveal var(--motion-duration) var(--ease) calc(var(--reveal-i, 0) * var(--motion-stagger)) backwards; }
  .gw .appear { animation: gw-in 420ms var(--ease) backwards; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gw *, .gw *::before, .gw *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
