/* Portal de acceso remoto - colores de la marca Rolintech */
:root {
    --navy: #131d24;
    --blue: #054991;
    --blue-hover: #0a5db5;
    --blue-soft: #e8f0f9;
    --bg: #f4f6f9;
    --line: #e1e5eb;
    --muted: #606670;
    --ok: #1e7d4f;
    --ok-soft: #e4f4ec;
    --bad: #b42525;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
    min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 24px 16px; background: var(--bg); color: var(--navy);
    font-family: -apple-system, "Segoe UI", system-ui, Roboto, sans-serif; font-size: 15px;
}
.box { width: 420px; max-width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
header { padding: 30px 36px 18px; border-bottom: 3px solid var(--blue); text-align: center; }
header img { width: 100%; display: block; }
header p { margin: 12px 0 0; color: var(--muted); font-size: 13.5px; }
.step { padding: 26px 36px 32px; display: flex; flex-direction: column; gap: 10px; }
.step[hidden] { display: none; }
h2 { font-size: 19px; margin: 0; }
p { margin: 0; line-height: 1.45; }
label { font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 4px; }
input {
    width: 100%; padding: 11px 12px; font: inherit; color: inherit; border: 1px solid #cdd3db; border-radius: 8px; background: #fff;
}
input:focus { outline: 2px solid var(--blue-soft); border-color: var(--blue); }
input.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 26px; letter-spacing: .2em; text-align: center; }
button {
    padding: 12px; font: inherit; font-weight: 600; border: 1px solid transparent; border-radius: 8px; cursor: pointer;
    background: var(--blue); color: #fff; margin-top: 6px;
}
button:hover { background: var(--blue-hover); }
button:disabled { opacity: .6; cursor: wait; }
button.secondary { background: #fff; color: var(--muted); border-color: #cdd3db; }
button.secondary:hover { background: var(--bg); }
.error { color: var(--bad); font-size: 14px; min-height: 1em; }
.hint { color: var(--muted); font-size: 13px; }
.ok { background: var(--ok-soft); color: var(--ok); padding: 10px 12px; border-radius: 8px; font-size: 14px; }
#desktops { list-style: none; padding: 0; margin: 6px 0; display: flex; flex-direction: column; gap: 8px; }
#desktops li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
#desktops li span { font-weight: 600; }
#desktops li button { margin: 0; padding: 8px 16px; }
details { font-size: 14px; background: var(--bg); border-radius: 8px; padding: 10px 14px; }
summary { cursor: pointer; font-weight: 600; color: var(--blue); }
details ol { padding-left: 20px; line-height: 1.6; margin: 10px 0; }
a { color: var(--blue); }
footer { margin-top: 18px; color: var(--muted); font-size: 12px; }

.check { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: 14px; color: var(--text, inherit); margin: 12px 0 4px; cursor: pointer; }
.check input { width: auto; margin: 0; }

/* Windows: botón principal de descarga, arriba */
.dl-win { margin-top: 6px; display: flex; flex-direction: column; gap: 8px; }
.btn-download {
    display: block; text-align: center; background: var(--blue); color: #fff; text-decoration: none;
    padding: 14px 18px; border-radius: 10px; font-weight: 700; font-size: 16px;
}
.btn-download:hover { background: var(--blue-hover); }
.dl-win code { font-size: 11px; word-break: break-all; }
.dl-win .hint { margin: 0; }

/* Mac: caja con App Store y archivo de conexión, debajo */
.mac-box { margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); display: flex; flex-direction: column; gap: 10px; }
.mac-title { margin: 0; font-size: 16px; }
.mac-box p { font-size: 14px; }
.btn-store {
    display: inline-block; align-self: flex-start; background: #fff; color: var(--blue); text-decoration: none;
    border: 1.5px solid var(--blue); padding: 10px 16px; border-radius: 8px; font-weight: 600; font-size: 14px;
}
.btn-store:hover { background: var(--blue-soft); }
.mac-box .check { margin: 6px 0 0; }
.mac-box details { background: #fff; }
