:root {
  color-scheme: light;
  --tinta: #14213d;
  --coral: #ff5a36;
  --lima: #d4f53c;
  --fondo: #f6f7f9;
  --blanco: #ffffff;
  --linea: #e3e6ec;
  --muted: #5b6478;
  --ok: #1a7a47;
  --error: #b42318;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--tinta);
  font-family: "Segoe UI", "Avenir Next", system-ui, sans-serif;
  line-height: 1.5;
}
a { color: var(--tinta); }
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--tinta);
  color: white;
}
header a { color: white; text-decoration: none; }
.marca { font-weight: 800; letter-spacing: -0.03em; font-size: 1.15rem; white-space: nowrap; }
nav { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.92rem; }
main { max-width: 760px; margin: 0 auto; padding: 28px 20px 64px; }
h1 { font-size: 2rem; line-height: 1.15; letter-spacing: -0.03em; margin: 0 0 8px; }
h2 { font-size: 1.15rem; margin: 28px 0 8px; }
p, li { font-size: 1.02rem; }
.bajada { color: var(--muted); margin-top: 0; }
.tarjeta {
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: 16px;
  padding: 16px 18px;
  margin: 14px 0;
}
.aviso { background: #fff1d6; border-color: #f3d9a6; }
label { display: block; font-weight: 650; margin: 14px 0 6px; }
input[type="email"], input[type="text"] {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1.5px solid var(--tinta);
  padding: 10px 12px;
  font: inherit;
  color: var(--tinta);
  background: white;
}
button, .boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 12px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: var(--tinta);
  color: white;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
button.sec, .boton.sec { background: white; color: var(--tinta); border: 1.5px solid var(--tinta); }
button.wa, .boton.wa { background: #128c7e; }
button:disabled { opacity: 0.55; cursor: default; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.check input { margin-top: 4px; }
.codigo {
  font-size: clamp(2.75rem, 12vw, 3.5rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.1;
  margin: 4px 0 8px;
  word-break: break-all;
}
.msg { margin-top: 12px; }
.msg.error { color: var(--error); }
.msg.ok { color: var(--ok); }
footer { color: var(--muted); font-size: 0.9rem; margin-top: 36px; }
.acciones { display: flex; flex-direction: column; gap: 10px; }
.acciones .boton, .acciones button { margin-top: 0; width: 100%; }

/* /unirse. Tokens de apps/mobile/src/ui/tema.ts: fondo, blanco, primario, texto. */
.pagina-unirse {
  --tinta: #0b0d12;
  --fondo: #fafaf7;
  --blanco: #ffffff;
  --linea: #e4e4dc;
  --muted: #5f6573;
  --ok: #1a7a47;
  --error: #b42318;
  background: #fafaf7;
  color: #0b0d12;
}
.pagina-unirse header {
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 0;
  padding: 14px 20px;
  background: #fafaf7;
  color: #0b0d12;
}
.pagina-unirse header a { color: #0b0d12; }
.pagina-unirse .marca {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.pagina-unirse .anillo { display: block; width: 30px; height: 30px; flex: 0 0 30px; }
.pagina-unirse main { padding: 8px 20px 12px; }
.pagina-unirse h1 { font-size: 1.85rem; }
.pagina-unirse .tarjeta { background: #ffffff; border-color: #e4e4dc; }
.pagina-unirse .fila-codigo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}
.pagina-unirse .codigo {
  width: 100%;
  max-width: 100%;
  margin: 0;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-weight: 700;
  font-size: clamp(1px, 10vw, 2.75rem);
  letter-spacing: 0;
  line-height: 1.15;
  white-space: nowrap;
  word-break: keep-all;
  overflow: hidden;
}
.pagina-unirse button.copiar {
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 4px 2px 0;
  background: transparent;
  color: #6b5600;
  border: 0;
  border-radius: 0;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.pagina-unirse .acciones { width: 100%; }
.pagina-unirse .acciones .bajada { margin: 2px 0 0; }
.pagina-unirse .link-publico {
  margin: 4px 0 0;
  font-size: 0.82rem;
  line-height: 1.35;
  word-break: break-all;
  color: #5f6573;
}
.pagina-unirse #nota:empty { display: none; margin: 0; }
.pagina-unirse .boton.pri {
  background: #ffdd00;
  color: #0b0d12;
  border: 0;
}
.pagina-unirse .boton.tienda,
.pagina-unirse .boton.wa {
  background: #ffffff;
  color: #0b0d12;
  border: 1.5px solid #868b96;
}
.pagina-unirse .pie-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin: 8px 0 0;
  padding: 8px 20px 28px;
  color: #5f6573;
  font-size: 0.92rem;
}
.pagina-unirse .pie-legal a { color: #5f6573; text-decoration: none; }
