/* Web comercial de FAInnovaTec Ferremo (landing + registro). Independiente del panel. */
:root {
  --bg: #070a12; --bg-2: #0b1020; --card: #0e1424; --card-2: #121a2e;
  --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .14);
  --text: #edf1f7; --muted: #9aa6b8; --faint: #66738a;
  --g1: #fb923c; --g2: #fbbf24;            /* degradado de marca (texto) */
  --b1: #f97316; --b2: #f59e0b;            /* degradado de botones */
  --on-b: #1c0f02;
  --ok: #34d399; --warn: #fbbf24; --err: #f87171;
  --glow-1: rgba(249, 115, 22, .22); --glow-2: rgba(245, 158, 11, .10);
  --input: #0b1120; --shadow: 0 30px 80px -20px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #fbfaf7; --bg-2: #f3f1ec; --card: #ffffff; --card-2: #faf9f6;
  --line: rgba(15, 23, 42, .09); --line-2: rgba(15, 23, 42, .16);
  --text: #111827; --muted: #4b5563; --faint: #6b7280;
  --g1: #ea580c; --g2: #c2410c;
  --b1: #f97316; --b2: #f59e0b; --on-b: #1c0f02;
  --ok: #059669; --warn: #b45309; --err: #dc2626;
  --glow-1: rgba(249, 115, 22, .14); --glow-2: rgba(245, 158, 11, .10);
  --input: #ffffff; --shadow: 0 30px 70px -30px rgba(15, 23, 42, .25);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Manrope, system-ui, -apple-system, Segoe UI, sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
[x-cloak] { display: none !important; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.grad { background: linear-gradient(100deg, var(--g1), var(--g2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); } .faint { color: var(--faint); }
.ico { width: 18px; height: 18px; flex-shrink: 0; stroke-width: 2; }

/* Marca */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, var(--b1), var(--b2)); color: var(--on-b); box-shadow: 0 8px 24px -8px var(--b1); }
.brand-name { font-weight: 800; font-size: 15px; line-height: 1.1; letter-spacing: -.01em; }
.brand-by { font-size: 11px; color: var(--faint); font-weight: 600; letter-spacing: .02em; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; border-radius: 12px; padding: 11px 18px; font-weight: 700; font-size: 15px; transition: transform .15s, filter .15s, background .15s, opacity .15s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-grad { background: linear-gradient(100deg, var(--b1), var(--b2)); color: var(--on-b); box-shadow: 0 10px 30px -10px var(--b1); }
.btn-grad:hover { filter: brightness(1.07); }
.btn-grad.is-dim { opacity: .55; box-shadow: none; }
.btn-line { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-line:hover { background: var(--card-2); }
.btn-text { background: none; color: var(--text); padding: 10px 12px; }
.btn-lg { padding: 15px 24px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: var(--muted); }
.icon-btn:hover { background: var(--card-2); color: var(--text); }

/* Píldoras y tarjetas */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); }
.dot { width: 7px; height: 7px; border-radius: 99px; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.card { background: var(--card); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--g1); }

/* Formularios */
.field { display: block; }
.label { display: block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.control { display: flex; align-items: center; gap: 10px; background: var(--input); border-radius: 12px; padding: 0 14px; box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .15s; min-height: 50px; }
.control:focus-within { box-shadow: inset 0 0 0 2px var(--b1), 0 0 0 4px var(--glow-1); }
.control.is-ok { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 60%, transparent); }
.control.is-bad { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--err) 70%, transparent); }
.control > .ico { color: var(--faint); }
.control input, .control select { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; padding: 13px 0; font-size: 15px; }
.control select { appearance: none; cursor: pointer; font-weight: 700; }
.control input::placeholder { color: var(--faint); }
.hint { font-size: 12.5px; color: var(--faint); margin-top: 7px; }
.msg-ok { color: var(--ok); } .msg-err { color: var(--err); } .msg-warn { color: var(--warn); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--b1); flex-shrink: 0; }
.spin { width: 16px; height: 16px; border-radius: 99px; border: 2px solid var(--b1); border-top-color: transparent; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Fondo con brillos */
.glow { position: relative; isolation: isolate; overflow: hidden; }
.glow::before { content: ""; position: absolute; inset: -20% auto auto -10%; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(closest-side, var(--glow-1), transparent); z-index: -1; pointer-events: none; }
.glow::after { content: ""; position: absolute; inset: auto -10% -30% auto; width: 60vw; height: 60vw; max-width: 800px; max-height: 800px; background: radial-gradient(closest-side, var(--glow-2), transparent); z-index: -1; pointer-events: none; }

/* Popover de ingreso */
.pop { position: absolute; right: 0; top: calc(100% + 8px); width: 320px; padding: 16px; z-index: 50; box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow); }
@media (max-width: 420px) { .pop { width: calc(100vw - 40px); right: -60px; } }

.fade-in { animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
