/* Nube privada: adaptación visual propia de Lookerhost nuevo (site/dashboard).
   Sin fuentes remotas, frameworks, scripts ni recursos de terceros. */
:root {
  color-scheme: dark;
  --bg: #09090b;
  --surface: #101013;
  --raised: #17171d;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .18);
  --text: #f4f4f5;
  --muted: #a1a1af;
  --brand: #ff8a3d;
  --accent: #aeb4ff;
  --accent-soft: rgba(124, 133, 255, .11);
  --good: #73dfa9;
  --bad: #ff9696;
  --radius: 14px;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 0; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
::selection { background: #5551a0; color: #fff; }
h1, h2, h3 { color: var(--text); line-height: 1.2; letter-spacing: -.025em; overflow-wrap: anywhere; }
h1 { margin: 5px 0 0; font-size: clamp(25px, 2.5vw, 32px); font-weight: 650; }
h2 { margin: 32px 0 16px; font-size: 19px; font-weight: 650; }
p { color: var(--muted); margin: 0 0 18px; overflow-wrap: anywhere; }
strong { color: var(--text); }
small, .muted { color: var(--muted); }
small { font-size: 12px; line-height: 1.5; }
code { font: 13px/1.7 Consolas, "Liberation Mono", monospace; overflow-wrap: anywhere; background: var(--raised); color: #dedbff; border-radius: 5px; padding: 3px 6px; }
pre { background: #0c0d12; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; overflow: auto; max-width: 100%; color: var(--text); font: 14px/1.8 Consolas, monospace; }
ul { color: var(--muted); padding-left: 24px; }
li { margin: 8px 0; overflow-wrap: anywhere; }
.icon { width: 20px; height: 20px; flex: 0 0 20px; vertical-align: middle; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); flex-shrink: 0; width: fit-content; }
.brand:hover { text-decoration: none; }
.brand > svg, .brand b { color: var(--brand); }
.brand > span { font-size: 23px; line-height: 1.2; letter-spacing: -.8px; font-weight: 600; }
.brand small { display: block; margin-top: 4px; font-size: 10px; text-transform: uppercase; letter-spacing: 1.9px; font-weight: 500; }
.eyebrow, .nav-label { display: block; font-size: 11px; letter-spacing: .13em; text-transform: uppercase; font-weight: 650; color: var(--accent); }
.badge { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 4px 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.console { display: flex; min-height: 100vh; }
.sidebar { width: 262px; flex: 0 0 262px; padding: 26px 14px 16px; border-right: 1px solid var(--line); background: radial-gradient(circle at 10% 0, rgba(124,133,255,.12), transparent 32%), #0d0e12; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; scrollbar-width: thin; }
.sidebar > .brand { margin: 0 11px 28px; }
.workspace-card { display: flex; align-items: center; gap: 12px; padding: 13px 12px; margin-bottom: 20px; border: 1px solid rgba(124,133,255,.22); border-radius: 13px; background: linear-gradient(135deg, rgba(124,133,255,.15), rgba(166,108,255,.055)); }
.workspace-card > .icon { color: var(--accent); }
.workspace-card strong { display: block; font-size: 14px; font-weight: 650; }
.workspace-card span { display: block; font-size: 12px; color: var(--muted); }
.side-nav { display: flex; flex-direction: column; gap: 5px; }
.nav-label { padding: 10px 11px 5px; color: var(--muted); font-size: 10px; }
.side-nav > a { min-height: 58px; display: flex; align-items: center; gap: 12px; padding: 10px 11px; border: 1px solid transparent; border-radius: 11px; color: #b2b2c0; font-size: 14px; font-weight: 600; }
.side-nav > a small { display: block; margin-top: 2px; color: #9394a3; font-weight: 400; }
.side-nav > a:hover { background: rgba(255,255,255,.035); text-decoration: none; color: #fff; }
.side-nav > a[aria-current="page"] { background: linear-gradient(115deg, rgba(124,133,255,.2), rgba(166,108,255,.08)); border-color: rgba(124,133,255,.28); color: #fff; }
.side-nav > a[aria-current="page"] > .icon { color: var(--accent); }
.sidebar-foot { margin-top: auto; padding-top: 24px; }
.account-label { display: flex; align-items: center; gap: 10px; padding: 16px 11px 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.workspace { flex: 1; min-width: 0; padding: 0 32px; max-width: 1640px; margin-inline: auto; }
.topbar { min-height: 82px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; padding: 16px 0; }
.breadcrumb-separator { padding-inline: 10px; color: #6b6b7c; }
.account-chip { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); background: var(--surface); border-radius: 9px; padding: 8px 12px; overflow-wrap: anywhere; min-width: 0; max-width: 100%; color: #d4d4de; }
.account-chip .icon { width: 15px; height: 15px; flex-basis: 15px; color: var(--accent); }
.page { padding-top: 30px; min-width: 0; }
.page:focus { outline: none; }
.page-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; margin-bottom: 26px; }
.page-heading > div { min-width: 0; }
.page-description { margin-top: -10px; }
.page-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 44px; padding: 20px 0; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.welcome-card { padding: 32px; border: 1px solid rgba(124,133,255,.22); border-radius: 18px; background: radial-gradient(ellipse at 100% 0, rgba(124,133,255,.17), transparent 62%), linear-gradient(120deg, #171721, #101015); margin-bottom: 22px; }
.welcome-card h2 { margin: 12px 0; font-size: clamp(26px, 3vw, 38px); }
.welcome-card p { max-width: 65ch; }
dl { padding: 22px; margin: 20px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
dt { font-size: 13px; color: var(--muted); margin-top: 14px; }
dt:first-child { margin-top: 0; }
dd { margin: 3px 0 0; color: var(--text); overflow-wrap: anywhere; }
.stats-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; border: 0; padding: 0; background: none; margin: 22px 0; }
.stats-grid > div { padding: 20px; min-height: 124px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, var(--surface), #14141c); position: relative; }
.stats-grid > div::before { content: ""; position: absolute; left: 0; top: 22px; height: 23px; width: 2px; background: #7c85ff; }
.stats-grid dd { font-size: clamp(19px, 2vw, 27px); font-weight: 600; line-height: 1.35; margin-top: 12px; letter-spacing: -.025em; }
.stats-grid dd small { display: block; margin-top: 8px; font-weight: 400; letter-spacing: 0; }
.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,230px),1fr)); gap: 14px; }
.quick-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); position: relative; display: flex; flex-direction: column; gap: 10px; }
.quick-card > .icon { margin-bottom: 8px; color: var(--accent); }
.quick-card span { color: var(--muted); font-size: 13px; }
.quick-card b { position: absolute; right: 22px; top: 24px; color: var(--muted); }
.quick-card:hover { background: #17171f; border-color: rgba(124,133,255,.32); text-decoration: none; }
.page > form, .card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 24px; margin-bottom: 22px; }
.page > form { max-width: 720px; }
form p { margin: 0 0 18px; }
label { display: block; color: #d2d2df; font-size: 13px; font-weight: 500; }
input:not([type="hidden"]):not([type="checkbox"]), select, textarea { display: block; width: 100%; min-width: 0; margin-top: 7px; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 8px; background: #0b0c11; color: var(--text); padding: 10px 12px; outline-offset: 3px; }
input::placeholder { color: #878796; }
input[readonly] { color: #d0d2ff; font-family: Consolas, monospace; }
input[type="checkbox"] { width: 17px; height: 17px; margin-right: 7px; accent-color: #7c85ff; vertical-align: middle; }
input[type="file"] { padding: 10px; border-style: dashed; }
input::file-selector-button { border: 1px solid var(--line-strong); background: var(--raised); color: var(--text); padding: 6px 10px; border-radius: 5px; margin-right: 10px; cursor: pointer; }
button, .button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 42px; max-width: 100%; padding: 10px 17px; border: 1px solid rgba(200,200,255,.24); border-radius: 8px; background: linear-gradient(135deg, #625ed4, #784cb4); color: #fff; font-size: 13px; font-weight: 650; line-height: 1.4; text-align: center; cursor: pointer; overflow-wrap: anywhere; }
button:hover, .button:hover { filter: brightness(1.14); text-decoration: none; }
button.secondary { background: var(--raised); border-color: var(--line-strong); }
button.logout { width: 100%; justify-content: flex-start; background: transparent; border: 0; color: var(--muted); padding-left: 11px; font-weight: 400; }
button.logout:hover { background: rgba(255,92,92,.07); color: var(--bad); }
.screen-deletefile button, form[action="/logout-all"] button { background: #582b35; border-color: #8c4554; }
.upload-grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 16px; margin: 22px 0 10px; }
.admin-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.4fr); gap: 18px; align-items: start; }
.client-list { list-style: none; padding: 0; margin: 0 0 24px; }
.client-list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.card h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 17px; }
.card h2 .icon { color: var(--accent); }
.card > p { font-size: 13px; }
.card > small { display: block; margin-top: 15px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 22px 0 14px; }
.section-heading h2 { margin: 0; }
.folder-path { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; padding: 4px 0 16px; overflow-wrap: anywhere; }
.folder-path a { overflow-wrap: anywhere; min-width: 0; }
.table-scroll { position: relative; width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin: 16px 0 22px; scrollbar-width: thin; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
th { font-weight: 500; color: var(--muted); font-size: 12px; background: #16161d; white-space: nowrap; }
th, td { padding: 15px 17px; border-bottom: 1px solid var(--line); vertical-align: top; }
td { color: #d1d1dc; overflow-wrap: anywhere; min-width: 90px; max-width: 360px; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(124,133,255,.025); }
caption { text-align: left; color: var(--text); padding: 17px; font-weight: 600; border-bottom: 1px solid var(--line); }
td form { margin-bottom: 13px; min-width: 170px; }
td form:last-child { margin-bottom: 0; }
td input:not([type="hidden"]), td select { min-height: 36px; padding: 6px 9px; margin-bottom: 7px; }
td button { min-height: 34px; padding: 7px 10px; font-size: 12px; }
.file-name { display: flex; gap: 11px; align-items: center; min-width: 180px; }
.file-name .icon { color: var(--accent); }
.file-name a { color: var(--text); }
.date-cell { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12px; }
summary { cursor: pointer; color: var(--accent); font-size: 13px; border-radius: 5px; }
.storage-detail { padding: 0 0 8px; }
.storage-detail dl { margin: 15px 0 0; }
.row-actions { min-width: 136px; }
.row-actions summary { color: #d4d4e2; }
.row-actions > div { display: flex; flex-direction: column; gap: 2px; padding-top: 12px; }
.row-actions a { font-size: 12px; padding: 5px 0; }
.danger-text { color: var(--bad); }
.empty-state { text-align: center; padding: 42px 20px; }
.empty-state > .icon { display: block; margin: 0 auto 14px; width: 32px; height: 32px; color: var(--accent); }
.empty-state strong, .empty-state span { display: block; }
.empty-state span { color: var(--muted); font-size: 13px; margin-top: 6px; }
nav[aria-label^="Páginas"] { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 13px; margin-top: 20px; }
nav[aria-label^="Páginas"] a { border: 1px solid var(--line); border-radius: 7px; padding: 7px 13px; }
[role="alert"], [role="status"] { border: 1px solid rgba(255,150,150,.25); border-radius: 10px; padding: 18px; background: rgba(255,90,90,.07); color: #ffd0d0; }
[role="status"] { color: var(--good); background: rgba(47,223,132,.06); border-color: rgba(47,223,132,.2); }
.screen-viewer img, .screen-viewer video { display: block; width: auto; max-width: 100%; height: auto; border-radius: 10px; margin: 20px 0; }
.screen-viewer video { width: 100%; max-height: 75vh; background: #000; }
.screen-viewer .table-scroll { max-height: 70vh; }
.screen-viewer td { min-width: 120px; }
.screen-codes ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding: 0; list-style: none; }
.screen-codes li { margin: 0; }
.screen-codes code { display: block; text-align: center; padding: 8px; }
.auth { display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); min-height: 100vh; background: radial-gradient(ellipse at 12% 66%, rgba(89,65,149,.27), transparent 50%), radial-gradient(ellipse at 88% 12%, rgba(71,94,171,.18), transparent 50%), #05070d; }
.auth-side { padding: 44px clamp(28px,5vw,76px); display: flex; flex-direction: column; justify-content: space-between; gap: 65px; position: relative; overflow: hidden; }
.auth-side::before { content: ""; position: absolute; width: 500px; height: 500px; border: 1px solid rgba(124,133,255,.09); border-radius: 50%; right: -240px; bottom: -180px; box-shadow: 0 0 0 55px rgba(124,133,255,.025), 0 0 0 110px rgba(124,133,255,.02); pointer-events: none; }
.auth-intro { position: relative; max-width: 470px; padding: 40px 0; }
.auth-intro > .eyebrow { margin-bottom: 22px; }
.auth-intro h2 { margin: 0 0 24px; font-size: clamp(34px,4vw,54px); line-height: 1.1; letter-spacing: -.04em; }
.auth-intro p { font-size: 16px; max-width: 37ch; }
.auth-features { display: flex; flex-direction: column; gap: 12px; margin-top: 36px; }
.auth-features > span { display: flex; align-items: center; gap: 11px; font-size: 13px; color: #bdc0d1; }
.auth-features .icon { color: var(--accent); width: 17px; height: 17px; }
.auth-foot { font-size: 12px; color: #a1a5b5; }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 32px; min-width: 0; }
.auth .page { width: 100%; max-width: 480px; padding: 32px; border: 1px solid rgba(155,171,224,.17); border-radius: 20px; background: linear-gradient(145deg, rgba(15,22,38,.8), rgba(6,10,19,.9)); box-shadow: 0 32px 80px -36px rgba(0,0,0,.92), 0 1px 0 rgba(255,255,255,.055) inset; }
.auth .page-heading { margin-bottom: 22px; }
.auth h1 { font-size: 27px; margin-top: 9px; }
.auth .page > form { padding: 0; margin: 24px 0 18px; border: 0; border-radius: 0; background: none; }
.auth .page > form > button { width: 100%; }
.auth .page > p { font-size: 13px; }
.auth .page > .auth-note { color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); padding-top: 20px; margin: 22px 0 0; }
.auth .page-footer { width: 100%; max-width: 480px; margin-top: 22px; border: 0; justify-content: center; padding: 0; }
.auth .page-footer span { display: none; }
.limited-logout { margin-top: 20px; }
.guest { background: radial-gradient(ellipse at 90% 0, rgba(124,133,255,.08), transparent 40%), var(--bg); min-height: 100vh; }
.guest-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1200px; padding: 26px 32px; margin: auto; border-bottom: 1px solid var(--line); }
.guest-main { max-width: 1200px; margin: auto; padding: 10px 32px 0; }
.guest .page:not(.screen-viewer) { max-width: 720px; margin: 42px auto; padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.guest .page > form { padding: 0; background: none; border: 0; }
.skip-link { position: fixed; left: 15px; top: -100px; z-index: 10; padding: 10px 18px; background: #fff; color: #000; border-radius: 8px; }
.skip-link:focus { top: 15px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 1150px) {
  .sidebar { width: 230px; flex-basis: 230px; }
  .workspace { padding-inline: 24px; }
  .stats-grid { gap: 10px; }
  .stats-grid > div { padding: 16px; }
  .auth-side { padding-inline: 32px; }
}
@media (max-width: 800px) {
  .console { display: block; }
  .sidebar { position: static; width: 100%; height: auto; padding: 18px 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar > .brand { margin: 0 0 18px; }
  .workspace-card, .side-nav .nav-label, .side-nav > a small, .sidebar-foot .account-label { display: none; }
  .side-nav { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; }
  .side-nav > a { min-height: 44px; padding: 9px; font-size: 12px; gap: 7px; }
  .side-nav .icon { width: 16px; height: 16px; flex-basis: 16px; }
  .sidebar-foot { margin: 8px 0 0; padding: 0; align-self: flex-end; }
  .sidebar-foot button { padding: 6px; min-height: 32px; font-size: 12px; }
  .workspace { padding-inline: 20px; }
  .topbar { min-height: 64px; }
  .upload-grid, .admin-grid { grid-template-columns: 1fr; gap: 0; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { padding: 24px; gap: 0; }
  .auth-intro, .auth-foot { display: none; }
  .auth-main { padding: 18px 20px 36px; justify-content: flex-start; }
}
@media (max-width: 540px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stats-grid > div { min-height: 0; padding: 17px; }
  .stats-grid dd { font-size: 23px; margin-top: 6px; }
  .stats-grid dd small { margin-top: 5px; }
  .side-nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .workspace { padding-inline: 16px; }
  .topbar { font-size: 11px; }
  .account-chip { max-width: 100%; }
  .page { padding-top: 24px; }
  .page-heading { margin-bottom: 22px; }
  .welcome-card, .page > form, .card { padding: 21px; }
  .auth .page { padding: 25px 21px; }
  .guest-header { padding: 22px 20px; }
  .guest-header .badge { display: none; }
  .guest-main { padding-inline: 16px; }
  .guest .page:not(.screen-viewer) { margin-top: 24px; padding: 24px 20px; }
  .screen-codes ul { grid-template-columns: 1fr; }
  th, td { padding: 13px; }
  .page-footer span { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  button, .button, .side-nav > a, .quick-card { transition: background .15s, border-color .15s, filter .15s; }
}
@media print {
  .sidebar, .topbar, .guest-header, .page-footer, .page > form, .skip-link { display: none; }
  .console, .workspace { display: block; padding: 0; }
  .screen-viewer { color: #000; background: #fff; }
  .screen-viewer p, .screen-viewer h1, .screen-viewer td, .screen-viewer pre { color: #000; background: #fff; }
  .screen-viewer .table-scroll, .screen-viewer pre { overflow: visible; max-height: none; }
}

[hidden] { display: none !important; }
#upload-status { margin-top: 18px; }
#upload-progress { display: block; width: 100%; height: 18px; margin: 12px 0; accent-color: #8577ef; }
button:disabled { opacity: .6; cursor: wait; }
