/* landing.css — landing publica de SGS Transfer (FIRMA.md / Regla #33: full width, claro por defecto).
   Solo var(--token): los hex viven unicamente en las definiciones de tokens de abajo. */
:root, [data-theme="light"] {
  --bg: #f4f6f9; --bg2: #eef1f6; --surface: #ffffff; --surface2: #f7f9fc;
  --text: #1a2332; --text2: #2f3d50; --dim: #4a5568; --muted: #8492a6;
  --accent: #1f5fa8; --accent2: #2a6fbd; --accent-dim: rgba(31,95,168,0.10); --accent-border: rgba(31,95,168,0.24);
  --brand: #04284c; --crimson: #9e0b1f; --crimson-dim: rgba(158,11,31,0.08); --ok: #00a368; --ok-dim: rgba(0,163,104,0.10);
  --red: #b91c2e; --border: rgba(0,0,0,0.08); --border2: rgba(0,0,0,0.12);
  --shadow: 0 4px 24px rgba(0,0,0,0.10); --on-accent: #ffffff;
  --radius: 10px; --radius-lg: 14px; --pad: clamp(16px, 4vw, 48px);
  --font: 'Avenir LT Pro','Avenir Next',Avenir,system-ui,-apple-system,'Segoe UI',sans-serif;
  --sans: var(--font);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0f1419; --bg2: #151b23; --surface: #18202b; --surface2: #1e2836;
  --text: #e4e8ee; --text2: #c0c8d4; --dim: #7a8694; --muted: #525e6c;
  --accent: #5b9be0; --accent2: #7ab0ea; --accent-dim: rgba(91,155,224,0.10); --accent-border: rgba(91,155,224,0.24);
  --brand: #5b9be0; --crimson: #e0556a; --crimson-dim: rgba(224,85,106,0.10); --ok: #00d67e; --ok-dim: rgba(0,214,126,0.08);
  --red: #f04848; --border: rgba(255,255,255,0.06); --border2: rgba(255,255,255,0.1);
  --shadow: 0 4px 24px rgba(0,0,0,0.3); --on-accent: #071a2e;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
a { color: var(--accent2); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6rem; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1rem; max-width: 70ch; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .7rem var(--pad); background: var(--surface); border-bottom: 1px solid var(--border); }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; margin-right: auto; }
.brand b { color: var(--accent); }
.top nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.top nav a { color: var(--text2); text-decoration: none; padding: .55rem .8rem; border-radius: var(--radius); min-height: 44px; display: inline-flex; align-items: center; }
.top nav a:hover { background: var(--accent-dim); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .6rem 1.2rem;
  border-radius: var(--radius); border: 1px solid var(--border2); background: var(--surface); color: var(--text);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-dim); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent2); }

section { padding: clamp(2.5rem, 6vw, 5rem) var(--pad); width: 100%; border-bottom: 1px solid var(--border); }
section:nth-of-type(even) { background: var(--bg2); }
.hero { display: grid; gap: 1.5rem; align-content: center; min-height: 60vh; background: var(--surface); }
.hero p { font-size: 1.1rem; color: var(--text2); }
.cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin-top: 1.5rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; }
.card p { margin: 0; color: var(--dim); }
.num { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--accent-dim); border: 1px solid var(--accent-border); color: var(--accent2); font-weight: 700; margin-bottom: .5rem; }

details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: .6rem; }
summary { cursor: pointer; padding: .9rem 1rem; font-weight: 600; min-height: 44px; }
details p { padding: 0 1rem; }

.cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }
.form { display: grid; gap: .8rem; }
.form label { display: grid; gap: .3rem; font-size: .9rem; color: var(--dim); }
.form input { width: 100%; min-width: 0; min-height: 44px; padding: .55rem .7rem; background: var(--bg); border: 1px solid var(--border2);
  border-radius: var(--radius); color: var(--text); font: inherit; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { min-height: 1.4em; margin: 0; font-size: .9rem; }
.msg.err { color: var(--red); }
.login-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.2rem; box-shadow: var(--shadow); }

footer { padding: 2rem var(--pad); background: var(--surface); color: var(--dim); display: flex; gap: 1rem 2rem; flex-wrap: wrap; align-items: center; }
footer a { color: var(--dim); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
