/* TuCuadre Lite — web de la cuenta. Mismos colores que la app: verde de marca sobre gris frío. */
:root {
  --bg: #eff3f1;
  --card: #ffffff;
  --ink: #15211d;
  --muted: #5b6b66;
  --line: #d5ddda;
  --brand: #0f766e;
  --brand-dark: #0c625b;
  --soft: #eff3f1;
  --ok-bg: #e3f4ef;
  --ok-ink: #0b5a54;
  --warn-bg: #fff4e0;
  --warn-ink: #7a4a00;
  --err-bg: #fdecea;
  --err-ink: #8a1c12;
  --danger: #b42318;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: max(24px, env(safe-area-inset-top)) 16px 40px;
}

.wrap { width: 100%; max-width: 440px; }

.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; text-decoration: none; color: inherit; }
.brand img { width: 36px; height: 36px; border-radius: 10px; background: #fff; object-fit: contain; }
.brand span { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }

.card {
  background: var(--card);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(21, 33, 29, 0.06), 0 8px 24px rgba(21, 33, 29, 0.06);
}
.card + .card { margin-top: 16px; }

h1 { font-size: 22px; line-height: 1.2; margin: 0; letter-spacing: -0.02em; }
.sub { margin: 6px 0 20px; color: var(--muted); font-size: 14.5px; }
h2 { font-size: 16px; margin: 18px 0 4px; }
p { margin: 8px 0; }

label.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
label.field > span { font-size: 13.5px; font-weight: 600; }
label.field > small { font-size: 12.5px; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"] {
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 16px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  outline: none;
}
input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18); }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  font: inherit;
  font-weight: 600;
  font-size: 15.5px;
  cursor: pointer;
  text-decoration: none;
  background: var(--brand);
  color: #fff;
}
.btn:hover { background: var(--brand-dark); }
.btn[disabled] { opacity: 0.6; cursor: default; }
.btn.quiet { background: var(--soft); color: var(--ink); }
.btn.quiet:hover { background: #e2e9e6; }
.btn.danger { background: var(--danger); }
.btn + .btn, .btn + .stack, .stack + .btn { margin-top: 10px; }
.stack { display: flex; flex-direction: column; gap: 10px; }

.link { color: var(--brand); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }
.center { text-align: center; }
.small { font-size: 13.5px; color: var(--muted); }

.notice { border-radius: 16px; padding: 12px 16px; font-size: 14px; margin-bottom: 16px; background: var(--soft); }
.notice.ok { background: var(--ok-bg); color: var(--ok-ink); }
.notice.warn { background: var(--warn-bg); color: var(--warn-ink); }
.notice.err { background: var(--err-bg); color: var(--err-ink); }

.panel { border-radius: 16px; padding: 16px; margin-top: 10px; background: #f6f8f7; }
.panel.danger { background: #fdf1f0; }

dl.info { display: grid; grid-template-columns: 90px 1fr; gap: 6px 12px; font-size: 14px; margin: 0 0 18px; }
dl.info dt { color: var(--muted); }
dl.info dd { margin: 0; word-break: break-all; }

ol.steps { padding-left: 20px; margin: 0 0 18px; }
ol.steps li { margin-bottom: 6px; }

.prose section { margin-top: 14px; }
.prose ul { padding-left: 20px; margin: 6px 0; }

footer.links {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  font-size: 13px;
  color: var(--muted);
}
footer.links a { color: inherit; text-decoration: none; }
footer.links a:hover { text-decoration: underline; }

[hidden] { display: none !important; }
