/* registro.multitecua.com
 * Identity: the Multitec brandbook as multitecua.com applies it (MultiWeb assets/css/style.css):
 * Rojo #A30006 as the only accent, Ubuntu, uppercase headings over a short red rule.
 * Every hex below is a brandbook colour (p.20) or an alpha of one. Dark theme: Gris 5 ground,
 * Rojo 1 as the accent (Rojo on Gris 5 is 2.1:1, Rojo 1 is 5.4:1). */

@font-face { font-family: 'Ubuntu'; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/ubuntu-400.dabae363.woff2) format('woff2'); }
@font-face { font-family: 'Ubuntu'; font-style: normal; font-weight: 700; font-display: swap; src: url(/static/ubuntu-700.3658a071.woff2) format('woff2'); }

:root {
  --mt-red: #A30006; --mt-red-1: #FF3A41; --mt-red-3: #DB0008; --mt-red-4: #630004; --mt-red-5: #330002;
  --mt-grey: #BCBFBE; --mt-grey-1: #F6F6F6; --mt-grey-2: #DEE5E5; --mt-grey-3: #7C8484;
  --mt-grey-4: #505353; --mt-grey-5: #1E2121; --mt-white: #FFFFFF;

  --ink: var(--mt-grey-1);
  --raised: var(--mt-white);
  --line: var(--mt-grey-2);
  --line-strong: var(--mt-grey-3);
  --text: var(--mt-grey-5);
  --dim: var(--mt-grey-4);
  --accent: var(--mt-red);
  --accent-hover: var(--mt-red-4);
  --on-accent: var(--mt-white);
  --bad: var(--mt-red-3);
  --bad-bg: rgba(219, 0, 8, 0.07);
  --sel-bg: rgba(163, 0, 6, 0.06);
  --focus: rgba(163, 0, 6, 0.35);
  --band: var(--mt-red);
  --band-text: var(--mt-white);

  --font: 'Ubuntu', ui-sans-serif, 'Segoe UI', sans-serif;
  --t-sm: 0.8125rem; --t-base: 1rem; --t-md: 1.25rem; --t-lg: 1.625rem; --t-xl: 2.125rem;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --tap: 48px;
  --radius: 10px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --ink: var(--mt-grey-5);
  --raised: #262a2a;
  --line: rgba(222, 229, 229, 0.16);
  --line-strong: var(--mt-grey-3);
  --text: var(--mt-grey-1);
  --dim: var(--mt-grey);
  --accent: var(--mt-red-1);
  --accent-hover: #ff6a6f;
  --on-accent: var(--mt-grey-5);
  --bad: var(--mt-red-1);
  --bad-bg: rgba(255, 58, 65, 0.1);
  --sel-bg: rgba(255, 58, 65, 0.1);
  --focus: rgba(255, 58, 65, 0.45);
  --band: var(--mt-red-5);
  --band-text: var(--mt-grey-1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 400 var(--t-base)/1.55 var(--font);
  min-height: 100vh; display: flex; flex-direction: column;
}
.flags-font .flag, .flags-font select { font-family: 'Twemoji Country Flags', var(--font); }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--raised); color: var(--text); padding: var(--s3) var(--s4); z-index: 10; }
.skip:focus { left: var(--s3); top: var(--s3); }

/* ── band ─────────────────────────────────────────────────────────────── */
.top { background: var(--band); color: var(--band-text); }
.top-in { max-width: 760px; margin: 0 auto; padding: var(--s3) var(--s4); display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.brand { display: inline-flex; align-items: center; min-height: var(--tap); }
.brand img { display: block; height: 24px; width: auto; }
.tools { display: flex; align-items: center; gap: var(--s2); }
.lang { color: var(--band-text); text-decoration: none; font-weight: 700; font-size: var(--t-sm); letter-spacing: 0.08em; text-transform: uppercase; min-height: var(--tap); display: inline-flex; align-items: center; padding: 0 var(--s3); border-radius: var(--radius); }
.lang:hover { color: var(--band-text); background: rgba(255, 255, 255, 0.12); }
.theme { width: var(--tap); height: var(--tap); border: 0; border-radius: var(--radius); background: transparent; color: var(--band-text); cursor: pointer; display: inline-grid; place-items: center; }
.theme:hover { background: rgba(255, 255, 255, 0.12); }
.theme svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.theme .i-moon { fill: currentColor; stroke: none; }
:root[data-theme="dark"] .theme .i-moon, :root:not([data-theme="dark"]) .theme .i-sun { display: none; }

/* ── page ─────────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: var(--s6) var(--s4) var(--s7); flex: 1; }
.hero { margin-bottom: var(--s6); }
h1 { margin: 0 0 var(--s4); font-size: var(--t-xl); line-height: 1.15; font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; }
h1::after { content: ""; display: block; width: 56px; height: 4px; background: var(--accent); margin-top: var(--s3); }
.lede { margin: 0; font-size: var(--t-md); line-height: 1.45; color: var(--dim); max-width: 60ch; }
.msg p { max-width: 60ch; }
.msg .btn { margin-top: var(--s4); }

.notice { background: var(--sel-bg); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3) var(--s4); margin: 0 0 var(--s5); }
.summary { border: 2px solid var(--bad); background: var(--bad-bg); border-radius: var(--radius); padding: var(--s3) var(--s4); margin: 0 0 var(--s5); }
.summary p { margin: 0 0 var(--s2); }
.summary ul { margin: 0; padding-left: var(--s5); }
.summary a { color: var(--bad); font-weight: 700; }

/* ── form ─────────────────────────────────────────────────────────────── */
.form { display: grid; gap: var(--s6); }
.step { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: var(--s4); }
.div { border: 0; border-top: 1px solid var(--line); margin: 0; }
legend { padding: 0; margin-bottom: var(--s2); font-size: var(--t-md); font-weight: 700; display: flex; align-items: center; gap: var(--s3); }
.num { width: 32px; height: 32px; flex: none; display: inline-grid; place-items: center; background: var(--accent); color: var(--on-accent); font-size: var(--t-base); font-weight: 700; clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0 50%); }
.opt { font-weight: 400; color: var(--dim); font-size: var(--t-base); }
.row.two { display: grid; gap: var(--s4); }
@media (min-width: 640px) { .row.two { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: var(--s1); min-width: 0; align-content: start; }
.field[hidden] { display: none; }
label, .q { font-weight: 700; }
.q { margin: 0; }
.hint { margin: 0; color: var(--dim); font-size: var(--t-sm); line-height: 1.45; }
.perk { color: var(--text); }
.err { margin: 0; color: var(--bad); font-size: var(--t-sm); font-weight: 700; }
.err:empty { display: none; }
.count { margin: 0; color: var(--dim); font-size: var(--t-sm); text-align: right; }
.count:empty { display: none; }

input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  font: inherit; color: var(--text); background: var(--raised);
  border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  width: 100%; min-height: var(--tap); padding: var(--s2) var(--s3);
  transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out;
}
textarea { resize: vertical; min-height: 112px; line-height: 1.5; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); }
input::placeholder { color: var(--dim); opacity: 0.85; }
.mono { letter-spacing: 0.06em; text-transform: uppercase; }
.mono::placeholder { text-transform: none; letter-spacing: 0; }
.bad input, .bad textarea, .bad .cc { border-color: var(--bad); }
.bad input:focus, .bad textarea:focus { box-shadow: 0 0 0 3px var(--bad-bg); }
.good input { border-color: var(--line-strong); }

.check { display: flex; align-items: center; gap: var(--s2); font-weight: 400; min-height: var(--tap); cursor: pointer; width: fit-content; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; }

/* phone: a real <select> lies invisible over the flag and code, so the tap opens the
   native picker (searchable on desktop, a wheel on phones) and nothing custom can break */
.phone { display: grid; grid-template-columns: auto 1fr; gap: var(--s2); }
.cc { position: relative; border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--raised); min-height: var(--tap); min-width: 108px; }
.cc:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); }
.cc-face { display: flex; align-items: center; gap: var(--s2); height: 100%; padding: 0 var(--s3); font-weight: 700; white-space: nowrap; }
.cc-face .flag { font-size: 1.375rem; line-height: 1; }
.cc-face svg { width: 12px; height: 12px; fill: none; stroke: var(--dim); stroke-width: 1.8; margin-left: auto; }
.cc select { position: absolute; inset: 0; opacity: 0; cursor: pointer; min-height: 0; border: 0; }

.roles { display: grid; gap: var(--s2); grid-template-columns: 1fr 1fr; }
@media (min-width: 640px) { .roles { grid-template-columns: repeat(4, 1fr); } }
.role { position: relative; cursor: pointer; font-weight: 400; }
.role input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.role span { display: grid; gap: 2px; height: 100%; padding: var(--s3); border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--raised); min-height: 72px; transition: border-color 0.15s ease-out, background-color 0.15s ease-out; }
.role b { font-weight: 700; }
.role small { color: var(--dim); font-size: var(--t-sm); line-height: 1.35; }
.role:hover span { border-color: var(--accent); }
.role input:checked + span { border-color: var(--accent); background: var(--sel-bg); box-shadow: inset 0 0 0 1px var(--accent); }
.role input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.role.colab { grid-column: 1 / -1; }
.roles.bad .role span { border-color: var(--bad); }
.ok-note { margin: 0; padding: var(--s3) var(--s4); border-radius: var(--radius); background: var(--sel-bg); }

.typo { margin: 0; font-size: var(--t-sm); }
.typo button { font: inherit; font-weight: 700; color: var(--accent); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; min-height: 32px; }

.send { display: grid; gap: var(--s3); justify-items: start; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 52px; padding: 0 var(--s5); border: 0; border-radius: var(--radius);
  background: var(--accent); color: var(--on-accent); text-decoration: none;
  font: 700 var(--t-base)/1 var(--font); letter-spacing: 0.02em; cursor: pointer;
  transition: background-color 0.15s ease-out;
}
.btn:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn[disabled] { opacity: 0.75; cursor: progress; }
.btn.busy svg { animation: nudge 0.9s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(4px); } }
@media (max-width: 639px) { .send .btn { width: 100%; } }

.privacy { font-size: var(--t-sm); color: var(--dim); max-width: 64ch; }
.privacy summary { cursor: pointer; font-weight: 700; min-height: 32px; display: list-item; }
.privacy p { margin: var(--s2) 0 0; line-height: 1.5; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.foot { border-top: 1px solid var(--line); }
.foot p { max-width: 760px; margin: 0 auto; padding: var(--s5) var(--s4); color: var(--dim); font-size: var(--t-sm); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
