@font-face { font-family:"Figtree"; src:url("./assets/Figtree-Regular.ttf") format("truetype"); font-style:normal; font-weight:300 900; font-display:swap; }
:root { color-scheme: dark; --bg:#0b1118; --panel:#111a23; --panel-2:#17232e; --line:rgba(218,231,238,.12); --text:#f1f6f8; --muted:#91a4ae; --accent:#70d7d2; --accent-2:#a1f0df; --danger:#ff8e92; --radius:22px; font-family: Figtree, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
:root { --ui-scale:1; }
:root[data-font-size="small"] { --ui-scale:.9; }
:root[data-font-size="large"] { --ui-scale:1.1; }
* { box-sizing:border-box; } html { min-width:320px; background:var(--bg); } body { margin:0; min-height:100vh; color:var(--text); background:radial-gradient(circle at 78% -15%, rgba(68,132,145,.18), transparent 35rem), var(--bg); } button, input { font:inherit; } button { cursor:pointer; } button:focus-visible, a:focus-visible, input:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
[data-font-size] body { zoom:var(--ui-scale); }
[hidden] { display:none !important; }
.app-shell { width:min(100%, 1440px); min-height:100vh; margin:auto; padding:0 clamp(20px,4vw,64px) 24px; display:flex; flex-direction:column; }
.topbar { height:92px; display:flex; align-items:center; justify-content:space-between; } .brand { display:flex; align-items:center; color:var(--text); text-decoration:none; } .brand-logo { display:block; width:176px; height:48px; object-fit:contain; object-position:left center; } .brand-logo-light { display:none; } .topbar-meta { display:flex; align-items:center; gap:23px; color:var(--muted); font-size:12px; } .status-pill { display:flex; align-items:center; gap:7px; padding:9px 12px; border:1px solid var(--line); border-radius:30px; } .status-dot { width:7px; height:7px; border-radius:50%; background:var(--accent); box-shadow:0 0 12px var(--accent); }
.hero { min-height:248px; display:flex; align-items:center; justify-content:space-between; position:relative; overflow:hidden; } .eyebrow { margin:0 0 12px; color:var(--accent); font-size:10px; font-weight:700; letter-spacing:.2em; } h1,h2,h3,p { margin-top:0; } h1 { max-width:660px; margin-bottom:14px; font-size:clamp(34px,5vw,64px); line-height:.98; letter-spacing:-.055em; font-weight:500; } h1 em { color:var(--accent-2); font-style:normal; } .hero-copy { color:var(--muted); font-size:15px; } .hero-orb { width:210px; height:210px; margin-right:8%; position:relative; opacity:.8; } .hero-orb:before,.hero-orb:after,.hero-orb span { content:""; position:absolute; inset:22px; border:1px solid rgba(112,215,210,.25); border-radius:50%; transform:rotate(32deg) scaleX(.48); } .hero-orb:after { inset:42px; transform:rotate(-32deg) scaleX(.48); border-color:rgba(161,240,223,.18); } .hero-orb span { inset:0; transform:rotate(90deg) scaleX(.48); border-color:rgba(112,215,210,.12); } .hero-orb span:nth-child(2){inset:43px;transform:rotate(18deg) scaleX(.7)} .hero-orb span:nth-child(3){inset:85px;border-color:var(--accent);box-shadow:0 0 45px rgba(112,215,210,.4); transform:none}
.dashboard-section { padding:10px 0 32px; } .section-heading { display:flex; align-items:end; justify-content:flex-end; gap:20px; margin-bottom:20px; } h2 { margin-bottom:0; font-size:28px; letter-spacing:-.04em; } .section-actions,.utility-actions,.dialog-actions { display:flex; align-items:center; gap:10px; } .button { min-height:50px; padding:0 18px; border:1px solid transparent; border-radius:13px; color:var(--text); font-weight:650; font-size:13px; } .button-primary { background:var(--accent); color:#082021; box-shadow:0 8px 24px rgba(112,215,210,.13); } .button-primary:hover { background:var(--accent-2); } .button-quiet { background:rgba(255,255,255,.04); border-color:var(--line); } .button-quiet:hover { background:rgba(255,255,255,.09); } .button-danger { background:rgba(255,142,146,.12); color:var(--danger); border:1px solid rgba(255,142,146,.3); } .button-icon { font-size:18px; vertical-align:-1px; margin-right:5px; }
.shortcuts-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:14px; } .shortcut-card { position:relative; min-height:0; aspect-ratio:1 / 1; padding:22px; border:1px solid var(--line); border-radius:var(--radius); background:linear-gradient(135deg,rgba(255,255,255,.075),rgba(255,255,255,.025)); display:flex; flex-direction:column; justify-content:space-between; overflow:hidden; transition:transform .2s ease,border-color .2s ease,background .2s ease; } .shortcut-card:not(.editing):hover { transform:translateY(-2px); border-color:rgba(112,215,210,.45); } .shortcut-card:before { content:""; position:absolute; width:120px;height:120px;right:-45px;bottom:-65px; border-radius:50%; background:var(--card-color); opacity:.16; filter:blur(2px); } .shortcut-card.editing { border-color:rgba(112,215,210,.45); background:rgba(112,215,210,.06); } .card-top,.card-bottom { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; position:relative; z-index:1; } .card-icon { width:52px;height:52px;display:grid;place-items:center;border-radius:15px;background:color-mix(in srgb,var(--card-color) 18%,transparent);color:var(--card-color);font-size:25px; } .card-category { color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:.13em; } .card-bottom > div:first-child { min-width:0; flex:1; } .card-title { max-width:none; margin:0; font-size:17px; font-weight:650; overflow:hidden; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; overflow-wrap:anywhere; } .card-url { margin:4px 0 0; color:var(--muted); font-size:11px; overflow:hidden;text-overflow:ellipsis;white-space:nowrap; max-width:100%; } .card-arrow { flex:0 0 auto; color:var(--muted); font-size:19px; } .card-controls { display:none; gap:6px; } .editing .card-controls { display:flex; } .editing .card-arrow { display:none; } .mini-button,.icon-button { min-width:48px; min-height:48px; display:grid; place-items:center; border:1px solid var(--line); border-radius:12px; background:rgba(255,255,255,.07); color:var(--text); font-size:16px; } .mini-button { min-width:48px; min-height:48px; } .mini-button:hover,.icon-button:hover { background:rgba(255,255,255,.15); } .mini-button-danger { color:var(--danger); }
.shortcuts-groups { display:flex; flex-direction:column; gap:30px; }
.shortcut-group h3 { margin:0 0 14px; font-size:20px; letter-spacing:-.03em; }
.empty-state { padding:55px 20px; text-align:center; border:1px dashed var(--line); border-radius:var(--radius); } .empty-icon { color:var(--accent); font-size:30px; } .empty-state h3 { margin:12px 0 8px; } .empty-state p,.confirm-copy { color:var(--muted); } .empty-state .button { margin-top:8px; }
.notice { margin:0 0 16px; padding:14px 16px; border:1px solid rgba(112,215,210,.25); border-radius:13px; background:rgba(112,215,210,.08); color:#c5f4eb; font-size:13px; } .notice.error { border-color:rgba(255,142,146,.35); background:rgba(255,142,146,.08); color:#ffd6d7; }
.utility-bar { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:18px 20px; border:1px solid var(--line); border-radius:18px; background:rgba(255,255,255,.025); } .utility-copy { display:flex; align-items:center; gap:12px; } .shield-icon { width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:rgba(112,215,210,.12);color:var(--accent);font-size:20px; } .utility-copy strong,.utility-copy small { display:block; } .utility-copy strong { font-size:13px; } .utility-copy small { margin-top:3px; color:var(--muted); font-size:11px; } .text-button { min-height:48px; padding:0 8px; border:0; background:transparent; color:var(--muted); font-size:12px; } .text-button:hover { color:var(--text); } .text-button-danger:hover { color:var(--danger); }
.footer { display:flex; flex-wrap:wrap; justify-content:space-between; margin-top:auto; padding-top:22px; color:#60727c; font-size:9px; letter-spacing:.15em; }
.footer-donation { flex:0 0 100%; display:flex; flex-direction:column; align-items:center; margin-top:16px; letter-spacing:normal; }
.footer-donation p { margin:0 0 9px; color:var(--muted); font-size:11px; letter-spacing:normal; text-align:center; }
.kofi-donate-button { display:inline-flex; align-items:center; justify-content:center; min-height:42px; padding:0 18px; border-radius:10px; color:#fff!important; background:#00b9fe; font-size:12px; font-weight:700; letter-spacing:normal; text-decoration:none; transition:filter .2s ease, transform .2s ease; }
.kofi-donate-button:hover { color:#fff!important; filter:brightness(1.08); transform:translateY(-1px); }
.dialog { width:min(520px,calc(100% - 28px)); max-height:calc(100vh - 24px); overflow-x:hidden; overflow-y:auto; padding:0; border:1px solid rgba(112,215,210,.25); border-radius:22px; color:var(--text); background:#121d26; box-shadow:0 25px 80px rgba(0,0,0,.55); } .dialog::backdrop { background:rgba(3,7,10,.76); backdrop-filter:blur(5px); } .dialog form,.dialog>div,.dialog>p { min-width:0; padding-left:28px; padding-right:28px; } .dialog form { padding-top:26px; padding-bottom:24px; } .dialog-small { padding-top:26px; padding-bottom:24px; } .dialog-small .dialog-header,.dialog-small .confirm-copy,.dialog-small .dialog-actions { margin-left:28px;margin-right:28px;padding-left:0;padding-right:0; } .dialog-header { display:flex; align-items:start; justify-content:space-between; gap:15px; margin-bottom:24px; } .dialog-header h2 { font-size:25px; } .icon-button { min-width:48px; min-height:48px; font-size:24px; line-height:1; } .form-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; } .form-field-wide { grid-column:1/-1; } label,legend { color:var(--muted); font-size:12px; font-weight:650; } label input { width:100%; min-height:50px; margin-top:7px; padding:0 13px; border:1px solid var(--line); border-radius:11px; outline:none; color:var(--text); background:#0d151c; } label input:focus { border-color:var(--accent); } .optional { color:#657a83; font-weight:400; } fieldset { grid-column:1/-1; padding:0; border:0; } .color-options { display:flex; gap:11px; margin-top:9px; } .color-option input { position:absolute; opacity:0; } .color-swatch { display:block; width:34px;height:34px;border:3px solid transparent;border-radius:50%;background:var(--swatch); cursor:pointer; } .color-option input:checked + .color-swatch { outline:2px solid var(--swatch); outline-offset:3px; } .form-error { margin:17px 0 0; color:var(--danger); font-size:12px; } .dialog-actions { justify-content:flex-end; margin-top:24px; }
@media (max-width:850px) { .shortcuts-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .utility-bar { align-items:flex-start; flex-direction:column; } .utility-actions { width:100%; flex-wrap:wrap; } .text-button { padding-left:0; padding-right:16px; } }
@media (max-width:560px) { .app-shell { padding-left:16px;padding-right:16px; } .topbar { height:75px; } .topbar-meta time { display:none; } .hero { min-height:210px; } .hero-orb { position:absolute; right:-100px; opacity:.45; } h1 { font-size:42px; } .section-heading { align-items:stretch; flex-direction:column; } .section-actions { width:100%; } .section-actions .button { flex:1; padding:0 10px; } .shortcuts-grid { gap:10px; } .shortcut-card { min-height:153px; padding:16px; } .card-title { font-size:15px; } .card-url { max-width:130px; } .footer { gap:12px; flex-direction:column; } .form-grid { grid-template-columns:1fr; } fieldset { grid-column:auto; } .dialog-actions { flex-direction:column-reverse; } .dialog-actions .button { width:100%; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition:none!important; animation:none!important; } }

/* Fase 2: modos de contraste, estados y ergonomía táctil */
:root[data-theme="light"] { color-scheme:light; --bg:#eef3f3; --panel:#ffffff; --panel-2:#e3ecec; --line:rgba(19,45,52,.14); --text:#102128; --muted:#5d7076; --accent:#087f83; --accent-2:#075f67; --danger:#b33e4e; }
[data-theme="light"] body { background:radial-gradient(circle at 78% -15%,rgba(91,182,178,.22),transparent 35rem),var(--bg); }
[data-theme="light"] .brand-logo-dark { display:none; }
[data-theme="light"] .brand-logo-light { display:block; }
[data-theme="light"] .shortcut-card { background:linear-gradient(135deg,rgba(255,255,255,.92),rgba(235,243,243,.85)); box-shadow:0 8px 25px rgba(31,65,70,.06); }
[data-theme="light"] .shortcut-card.editing { background:rgba(8,127,131,.08); }
[data-theme="light"] .utility-bar { background:rgba(255,255,255,.64); }
[data-theme="light"] .status-pill,[data-theme="light"] .theme-toggle,.theme-toggle { background:rgba(255,255,255,.06); }
[data-theme="light"] label input { color:var(--text); background:#f8fbfb; }
[data-theme="light"] .dialog { color:var(--text); background:#f6fbfb; box-shadow:0 25px 80px rgba(17,52,59,.24); }
[data-theme="light"] .dialog::backdrop { background:rgba(12,37,43,.45); }
[data-theme="light"] .button-primary { color:#f4ffff; background:#087f83; }
[data-theme="light"] .button-quiet,.theme-toggle { color:var(--text); }
[data-theme="light"] .notice { color:#075f67; border-color:rgba(8,127,131,.30); background:rgba(8,127,131,.11); }
[data-theme="light"] .notice.error { color:#8b1d2b; border-color:rgba(179,62,78,.34); background:rgba(179,62,78,.10); }
[data-theme="light"] .form-error { color:#98283a; }
.skip-link { position:fixed; top:10px; left:16px; z-index:20; padding:10px 14px; border-radius:10px; color:#062124; background:var(--accent); transform:translateY(-150%); transition:transform .2s ease; }
.skip-link:focus { transform:translateY(0); }
.theme-toggle { min-width:48px; min-height:48px; display:flex; align-items:center; justify-content:center; gap:6px; padding:0 11px; border:1px solid var(--line); border-radius:13px; color:var(--text); font-size:12px; }
.theme-toggle > span:first-child { font-size:18px; color:var(--accent); }
.theme-toggle:hover { border-color:var(--accent); }
.font-size-control { min-height:48px; display:flex; align-items:center; gap:3px; padding:2px 4px; border:1px solid var(--line); border-radius:13px; color:var(--text); background:rgba(255,255,255,.06); }
.font-size-button { width:40px; min-height:42px; border:0; border-radius:9px; color:var(--text); background:transparent; font-size:13px; font-weight:700; }
.font-size-button:hover:not(:disabled) { background:rgba(112,215,210,.14); }
.font-size-button:disabled { cursor:not-allowed; opacity:.32; }
.font-size-control > span { min-width:42px; color:var(--muted); font-size:10px; font-weight:700; text-align:center; }
.shortcut-card { touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
.card-favicon { width:30px; height:30px; display:block; object-fit:contain; border-radius:7px; }
.card-fallback-icon { font-size:25px; line-height:1; }
.shortcut-card:focus-within { border-color:var(--accent); box-shadow:0 0 0 3px rgba(112,215,210,.18); }
.shortcut-card.editing { cursor:grab; touch-action:none; }
.shortcuts-grid.reordering .shortcut-card:not(.moving) { animation: card-wiggle .42s ease-in-out infinite alternate; }
.shortcuts-grid.reordering .shortcut-card:nth-child(2n):not(.moving) { animation-delay: -.14s; }
.shortcuts-grid.reordering .shortcut-card:nth-child(3n):not(.moving) { animation-delay: -.27s; }
.shortcut-card.editing:active { cursor:grabbing; }
.shortcut-card.moving { border-color:var(--accent); box-shadow:0 0 0 4px rgba(112,215,210,.24), 0 12px 30px rgba(32,107,111,.18); transform:translateY(-3px); }
.shortcut-card.drop-target { border-color:var(--accent); box-shadow:inset 0 0 0 3px rgba(112,215,210,.28); }
.drag-ghost { position:fixed; z-index:100; display:flex; align-items:center; gap:10px; min-width:150px; max-width:260px; padding:10px 14px 10px 10px; border:1px solid var(--accent); border-radius:999px; color:var(--text); background:var(--panel); box-shadow:0 14px 35px rgba(0,0,0,.25),0 0 0 3px rgba(112,215,210,.16); pointer-events:none; transform:translate(-50%,-50%) rotate(2deg) scale(1.03); white-space:nowrap; overflow:hidden; }
.drag-ghost-icon { width:30px; height:30px; display:grid; place-items:center; flex:0 0 30px; border-radius:9px; color:#082021; background:var(--accent); font-size:17px; }
.drag-ghost strong { overflow:hidden; text-overflow:ellipsis; }
.shortcut-card.moving:after { content:"SELECCIONADO · TOCA DESTINO"; position:absolute; right:18px; bottom:17px; z-index:3; padding:6px 8px; border-radius:7px; color:#082021; background:var(--accent); font-size:8px; font-weight:800; letter-spacing:.08em; pointer-events:none; }
.card-link { z-index:1 !important; }
.card-top,.card-bottom { z-index:2; pointer-events:none; }
.card-controls { pointer-events:auto; }
.button,.mini-button,.icon-button,.text-button,.theme-toggle { touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
.button:active,.mini-button:active,.icon-button:active,.theme-toggle:active { transform:translateY(1px); }
.drive-note { display:flex; align-items:center; gap:13px; margin:0 0 28px; padding:14px 17px; border:1px solid rgba(112,215,210,.2); border-radius:16px; background:rgba(112,215,210,.055); }
.drive-note-icon { width:30px; height:30px; flex:0 0 30px; display:grid; place-items:center; border-radius:50%; color:#082021; background:var(--accent); font-weight:800; }
.drive-note strong,.drive-note span { display:block; }
.drive-note strong { margin-bottom:3px; font-size:12px; }
.drive-note div span { color:var(--muted); font-size:11px; line-height:1.45; }
@media (max-width:560px) { .theme-label { display:none; } .topbar-meta { gap:8px; } .status-pill { padding:9px; font-size:0; } .status-dot { width:9px; height:9px; } .drive-note { align-items:flex-start; margin-bottom:20px; } }
@media (max-width:560px) { .font-size-control > span { display:none; } .font-size-control { gap:0; padding:0; } .font-size-button { width:48px; min-height:48px; } }
@media (max-width:560px) { .section-tools { flex-wrap:wrap; } .section-tools .search-toolbar { flex:1 1 200px; min-width:180px; } .owner-actions { flex:1 1 100%; } }
@media (prefers-contrast: more) { :root { --line:rgba(218,231,238,.35); --muted:#b7c7cc; } :root[data-theme="light"] { --line:rgba(19,45,52,.35); --muted:#3c555c; } .button,.theme-toggle,.text-button { border-width:2px; } }
.auth-dialog { width:min(470px,calc(100% - 28px)); }
.auth-intro { color:var(--muted); font-size:13px; line-height:1.5; }
.auth-tabs { display:grid; grid-template-columns:1fr 1fr; gap:5px; margin:20px 0; padding:4px; border-radius:12px; background:rgba(255,255,255,.05); }
.auth-tab { min-height:44px; border:0; border-radius:9px; color:var(--muted); background:transparent; font-size:12px; font-weight:700; }
.auth-tab.active { color:var(--text); background:var(--panel-2); box-shadow:0 2px 8px rgba(0,0,0,.12); }
.auth-dialog label + label { display:block; margin-top:16px; }
.auth-footnote { margin:17px 0 0; color:var(--muted); font-size:11px; line-height:1.45; }
.auth-divider { display:flex; align-items:center; gap:10px; margin:18px 0 12px; color:var(--muted); font-size:11px; text-align:center; }
.auth-divider::before,.auth-divider::after { content:""; flex:1; height:1px; background:var(--line); }
.google-auth-button { width:100%; display:flex; align-items:center; justify-content:center; gap:9px; border-color:var(--line); background:#fff; color:#1f2933; }
.google-auth-button:hover { background:#f1f4f5; }
.google-mark { font-size:16px; font-weight:800; color:#4285f4; }
.remember-session { display:flex; align-items:center; gap:9px; margin-top:16px; color:var(--muted); font-size:11px; font-weight:400; }
.remember-session input { flex:0 0 auto; width:17px; min-width:17px; height:17px; min-height:17px; margin:0; padding:0; accent-color:var(--accent); }
.forgot-password { display:block; margin:12px 0 0 auto; padding:0; border:0; color:var(--accent); background:transparent; font-size:11px; text-decoration:underline; }
.forgot-password:hover { color:var(--accent-2); }
.recovery-submit { width:100%; margin-top:18px; }
.legal-consent { display:flex; align-items:flex-start; gap:9px; margin-top:17px; color:var(--muted); font-size:11px; font-weight:400; line-height:1.45; }
.legal-consent input { flex:0 0 auto; width:17px; min-width:17px; height:17px; min-height:17px; margin:2px 0 0; padding:0; border:0; background:transparent; accent-color:var(--accent); }
.legal-consent a { color:var(--accent); text-decoration:underline; }
.legal-dialog { width:min(820px,calc(100% - 28px)); max-height:calc(100vh - 28px); overflow:hidden; }
.legal-modal-body { height:calc(100vh - 28px); max-height:calc(100vh - 28px); overflow-y:auto; overflow-x:hidden; padding-top:26px; padding-bottom:26px; }
.legal-modal-body .legal-modal-actions { position:sticky; bottom:0; margin:22px 0 0; padding-top:14px; background:linear-gradient(transparent,var(--panel) 28%); }
.legal-modal-actions .button:disabled { cursor:not-allowed; opacity:.4; }
.legal-modal-body .dialog-header { margin-bottom:20px; }
.legal-modal-copy h3 { margin:0 0 18px; color:var(--text); font-size:19px; line-height:1.25; }
.legal-modal-copy h4 { margin:24px 0 8px; color:var(--text); font-size:14px; line-height:1.35; }
.legal-modal-copy p { margin:0; color:var(--muted); font-size:13px; line-height:1.6; }
.account-button { max-width:190px; }
.account-button .theme-label { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
dialog[open] { z-index:10; }
@media (max-width:700px) { .account-button { max-width:48px; padding:0; } }
@keyframes card-wiggle { from { transform:rotate(-.55deg) translateY(0); } to { transform:rotate(.55deg) translateY(-2px); } }
@media (prefers-reduced-motion:reduce) { .shortcut-card.editing { animation:none!important; } }
.card-icon { flex:0 0 52px; width:52px; height:52px; aspect-ratio:1 / 1; }
.card-favicon { width:34px; height:34px; aspect-ratio:1 / 1; object-fit:contain; }
.card-identity { min-width:0; display:flex; flex-direction:column; align-items:flex-start; gap:7px; }
.card-category { min-width:0; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:color-mix(in srgb,var(--muted) 78%,transparent); font-size:9px; font-weight:600; letter-spacing:.14em; line-height:1.2; text-align:left; }
.editing .card-bottom { display:block; padding-bottom:54px; }
.editing .card-bottom > div:first-child { width:100%; }
.editing .card-controls { position:absolute; right:0; bottom:0; display:flex; gap:6px; }
.shortcut-card.editing { min-height:220px; aspect-ratio:auto; }
.dashboard-layout { display:grid; grid-template-columns:190px minmax(0,1fr); gap:30px; align-items:start; }
.sidebar-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.sidebar-toggle { width:32px; min-height:32px; display:grid; place-items:center; padding:0; border:1px solid var(--line); border-radius:9px; color:var(--muted); background:transparent; font-size:11px; }
.sidebar-toggle:hover { color:var(--text); background:rgba(112,215,210,.09); }
.sidebar-toggle > span:first-child { font-size:20px; line-height:1; }
.dashboard-layout.sidebar-collapsed { grid-template-columns:64px minmax(0,1fr); }
.sidebar-collapsed .category-sidebar { padding:12px 8px; }
.sidebar-collapsed .sidebar-heading h2,
.sidebar-collapsed #category-list,
.sidebar-collapsed .manual-link { display:none; }
.sidebar-collapsed .sidebar-heading { justify-content:center; }
.sidebar-collapsed .tools-list .tool-button { justify-content:center; padding:0; }
.sidebar-collapsed .tools-list .tool-label { display:none; }
.sidebar-collapsed .sidebar-toggle > span:first-child { transform:rotate(180deg); }
.category-sidebar { position:sticky; top:20px; padding:18px 14px; border:1px solid var(--line); border-radius:18px; background:rgba(255,255,255,.025); }
.sidebar-heading h2 { margin:0 0 16px; font-size:18px; }
.sidebar-heading.tools-heading h2 { margin-bottom:0; }
.sidebar-heading .eyebrow { margin-bottom:8px; font-size:9px; }
.category-list { display:flex; flex-direction:column; gap:4px; }
.category-button { min-height:46px; width:100%; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:0 11px; border:1px solid transparent; border-radius:10px; color:var(--muted); background:transparent; font-size:12px; text-align:left; }
.category-button small { min-width:22px; padding:3px 5px; border-radius:10px; color:var(--muted); background:rgba(255,255,255,.06); font-size:10px; text-align:center; }
.category-button:hover,.category-button.active { border-color:rgba(112,215,210,.28); color:var(--text); background:rgba(112,215,210,.09); }
.category-button.active small { color:#082021; background:var(--accent); }
.search-toolbar { display:flex; align-items:center; gap:10px; margin:0 0 16px; }
.search-field { min-height:50px; min-width:0; flex:1; display:flex; align-items:center; gap:10px; padding:0 14px; border:1px solid var(--line); border-radius:13px; color:var(--accent); background:rgba(255,255,255,.04); }
.search-field:focus-within { border-color:var(--accent); box-shadow:0 0 0 3px rgba(112,215,210,.12); }
.search-field > span { font-size:23px; line-height:1; }
.search-field input { width:100%; min-width:0; border:0; outline:0; color:var(--text); background:transparent; font-size:13px; }
.search-field input::placeholder { color:var(--muted); }
.search-clear { flex:0 0 auto; }
.section-tools { align-items:center; justify-content:flex-end; gap:10px; }
.owner-actions { display:flex; align-items:center; gap:10px; }
.section-tools .search-toolbar { flex:0 1 240px; min-width:200px; margin:0; }
.section-tools .search-field { min-height:50px; height:50px; padding:3px 11px; }
.section-tools .search-field input { min-height:0; height:42px; margin-top:0; padding:0; font-size:12px; }
.section-tools .search-field > span { font-size:20px; }
.section-tools .search-clear { min-height:44px; padding:0 4px; font-size:11px; }
@media (max-width:720px) { .dashboard-layout { grid-template-columns:1fr; gap:18px; } .category-sidebar { position:static; padding:14px; } .sidebar-heading h2 { margin-bottom:10px; } .category-list { flex-direction:row; flex-wrap:wrap; } .category-button { width:auto; min-width:112px; } }

/* Evita que una única tarjeta se estire hasta ocupar toda la sección. */
.shortcuts-grid { grid-template-columns:repeat(auto-fill,minmax(160px,180px)); justify-content:start; }
.shortcut-card { width:100%; max-width:180px; }
@media (max-width:560px) {
  .shortcuts-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .shortcut-card { max-width:none; }
}

/* Acciones de edición centradas en la tarjeta. */
.editing .card-controls {
  right:auto;
  left:50%;
  bottom:14px;
  transform:translateX(-50%);
}
.mini-button-danger { font-size:17px; }

/* La barra de configuración inferior se retiró de la interfaz. */
.utility-bar { display:none !important; }

/* En edición, los controles ocupan su propia fila y no tapan el enlace. */
.editing .card-bottom {
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:10px;
  padding-bottom:0;
}
.editing .card-controls {
  position:static;
  align-self:center;
  transform:none;
}

.sidebar-group + .sidebar-heading {
  margin-top:24px;
}
.tools-list .tool-button {
  justify-content:flex-start;
  gap:10px;
  cursor:default;
  opacity:.78;
}
.tools-list .tool-button:disabled {
  color:var(--muted);
}
.tools-list .tool-button:not(:disabled):hover {
  border-color:rgba(112,215,210,.28);
  color:var(--text);
  background:rgba(112,215,210,.09);
}
.tool-icon {
  width:22px;
  color:var(--accent);
  font-size:18px;
  line-height:1;
  text-align:center;
}
.radar-icon svg { display:block; width:22px; height:22px; fill:currentColor; }
.radar-dialog { width:min(470px,calc(100% - 28px)); }
.radar-toggle { display:flex; align-items:center; gap:10px; min-height:50px; margin-top:20px; color:var(--text); }
.radar-toggle input { width:20px; height:20px; accent-color:var(--accent); }
.radar-source { margin:14px 0 0; color:var(--muted); font-size:11px; line-height:1.45; }
.radar-source strong { color:var(--text); font-weight:650; }
.radar-distance-label { display:block; margin-top:16px; }
.radar-distance-label select { width:100%; min-height:50px; margin-top:7px; padding:0 13px; border:1px solid var(--line); border-radius:11px; color:var(--text); background:#0d151c; }
.radar-status { margin:17px 0 0; color:var(--muted); font-size:11px; line-height:1.45; }
.radar-test-link { min-height:0; margin-top:10px; padding:0; color:var(--accent); text-decoration:underline; }
.radar-status.error { color:var(--danger); }
[data-theme="light"] .radar-distance-label select { color:var(--text); background:#f8fbfb; }
.tool-button.is-loading,
.button.is-loading { cursor:wait; opacity:.7; }
.is-loading .tool-icon { animation:tool-spin .8s linear infinite; }
@keyframes tool-spin { to { transform:rotate(360deg); } }
.brand-cluster { display:flex; align-items:center; gap:14px; min-width:0; }
.app-status { font-size:12px; transition:border-color .2s ease, color .2s ease, background .2s ease; }
.app-status.radar-active { color:var(--danger); border-color:rgba(255,142,146,.45); background:rgba(255,142,146,.09); }
.app-status.radar-active .status-dot { background:var(--danger); box-shadow:0 0 12px var(--danger); animation:radar-status-blink 1s ease-in-out infinite; }
.radar-status-pill { cursor:pointer; font:inherit; color:var(--danger); border-color:rgba(255,142,146,.45); background:rgba(255,142,146,.09); }
.radar-status-pill .status-dot { background:var(--danger); box-shadow:0 0 12px var(--danger); animation:radar-status-blink 1s ease-in-out infinite; }
.radar-stop-button { margin:18px 28px 0; }
@keyframes radar-status-blink { 0%,100% { opacity:1; } 50% { opacity:.25; } }
@media (max-width:700px) { .brand-cluster { gap:8px; } .app-status { max-width:170px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } }
.legal-shell { min-height:100vh; }
.legal-back { text-decoration:none; display:inline-flex; align-items:center; }
.legal-content { width:min(900px,100%); margin:42px auto 48px; }
.legal-content h1 { max-width:none; margin-bottom:28px; font-size:clamp(32px,5vw,52px); line-height:1.05; }
.legal-card { padding:clamp(22px,4vw,42px); border:1px solid var(--line); border-radius:var(--radius); background:rgba(255,255,255,.035); }
.legal-card h2 { margin:0 0 24px; font-size:clamp(19px,3vw,27px); line-height:1.2; }
.legal-card h3 { margin:28px 0 10px; color:var(--text); font-size:17px; line-height:1.3; }
.legal-card p { margin:0; color:var(--muted); font-size:14px; line-height:1.7; }
.legal-card h2 + p { margin-bottom:4px; }
.legal-content + .footer a,
.footer a { color:var(--muted); text-decoration:none; }
.footer a:hover { color:var(--accent); }
@media (max-width:560px) { .legal-content { margin-top:24px; } .legal-shell .topbar { height:82px; } .legal-back { min-height:44px; padding:0 12px; font-size:11px; } .legal-card p { font-size:13px; } }

/* Manual de uso */
.manual-page { min-height:100vh; background:var(--bg); }
.manual-shell { width:min(1240px,100%); min-height:100vh; margin:0 auto; padding:0 28px 28px; }
.manual-topbar { height:92px; }
.manual-back { display:inline-flex; align-items:center; text-decoration:none; }
.manual-layout { display:grid; grid-template-columns:220px minmax(0,1fr); gap:64px; align-items:start; }
.manual-nav { position:sticky; top:24px; padding:22px 14px 16px; border:1px solid var(--line); border-radius:18px; background:rgba(255,255,255,.025); }
.manual-nav h2 { margin:0 0 19px; font-size:24px; }
.manual-nav nav { display:flex; flex-direction:column; gap:3px; }
.manual-nav nav a { padding:10px 11px; border-radius:9px; color:var(--muted); font-size:12px; line-height:1.25; text-decoration:none; }
.manual-nav nav a:hover,.manual-nav nav a:focus { color:var(--text); background:rgba(112,215,210,.1); }
.manual-nav-tip { display:flex; gap:9px; margin-top:25px; padding:12px 10px; border-top:1px solid var(--line); color:var(--accent); }
.manual-nav-tip > span { font-size:17px; }
.manual-nav-tip p { margin:0; color:var(--muted); font-size:10px; line-height:1.45; }
.manual-nav-tip strong { color:var(--text); font-weight:550; }
.manual-content { min-width:0; max-width:840px; }
.manual-hero { padding:54px 0 66px; border-bottom:1px solid var(--line); }
.manual-hero h1 { max-width:730px; margin:0 0 23px; font-size:clamp(39px,6vw,70px); line-height:.96; }
.manual-hero h1 em { color:var(--accent-2); font-style:normal; }
.manual-lead { max-width:640px; margin:0; color:var(--muted); font-size:16px; line-height:1.65; }
.manual-hero-meta { display:flex; flex-wrap:wrap; gap:9px 24px; margin-top:30px; color:var(--accent); font-size:10px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; }
.manual-section { scroll-margin-top:24px; padding:64px 0; border-bottom:1px solid var(--line); }
.section-kicker { display:flex; align-items:center; gap:11px; margin-bottom:16px; }
.section-kicker span { color:var(--accent); font-size:11px; font-weight:800; }
.section-kicker p { margin:0; color:var(--muted); font-size:10px; font-weight:700; letter-spacing:.18em; }
.manual-section h2 { margin:0 0 14px; font-size:clamp(27px,4vw,40px); line-height:1.05; }
.manual-section > p { max-width:710px; margin:0 0 25px; color:var(--muted); font-size:14px; line-height:1.7; }
.manual-shot { margin:28px 0 0; overflow:hidden; border:1px solid rgba(112,215,210,.24); border-radius:18px; background:#0d151c; box-shadow:0 18px 50px rgba(0,0,0,.2); }
.manual-shot figcaption { padding:10px 15px 13px; color:#71858e; font-size:10px; }
.shot-top { display:flex; align-items:center; gap:13px; min-height:48px; padding:0 15px; border-bottom:1px solid rgba(255,255,255,.1); color:#91a4ae; font-size:9px; }
.shot-logo { color:#f1f6f8; font-size:14px; font-weight:700; }.shot-status { color:#70d7d2; }.shot-controls { margin-left:auto; white-space:nowrap; }
.shot-body { display:grid; grid-template-columns:135px 1fr; min-height:215px; }.shot-sidebar { display:flex; flex-direction:column; gap:6px; padding:16px 10px; border-right:1px solid rgba(255,255,255,.1); color:#91a4ae; font-size:9px; }.shot-sidebar b { margin-top:5px; color:#f1f6f8; font-size:10px; }.shot-sidebar i { padding:8px 7px; border-radius:6px; font-style:normal; }.shot-sidebar .shot-active { color:#f1f6f8; background:rgba(112,215,210,.12); }.shot-sidebar i span { float:right; color:#70d7d2; }.shot-main { padding:20px; }.shot-search { width:150px; margin-bottom:28px; padding:9px 11px; border:1px solid rgba(255,255,255,.1); border-radius:7px; color:#91a4ae; font-size:10px; }.shot-main small { color:#91a4ae; font-size:8px; letter-spacing:.15em; }.shot-cards { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:11px; }.shot-cards span { display:flex; flex-direction:column; gap:18px; min-height:112px; padding:12px; border:1px solid rgba(255,255,255,.1); border-radius:11px; color:#70d7d2; font-size:17px; }.shot-cards b { color:#f1f6f8; font-size:12px; }.shot-cards em { margin-top:auto; color:#91a4ae; font-size:8px; font-style:normal; }
.manual-note { display:flex; gap:13px; margin-top:22px; padding:15px 17px; border:1px solid rgba(112,215,210,.25); border-radius:12px; background:rgba(112,215,210,.07); font-size:12px; line-height:1.5; }.manual-note strong { color:var(--accent); white-space:nowrap; }.manual-note span { color:var(--muted); }.manual-note.warning { border-color:rgba(255,199,108,.25); background:rgba(255,199,108,.06); }.manual-note.warning strong { color:#ffc76c; }
.manual-grid { display:grid; gap:14px; }.manual-grid.two-col { grid-template-columns:repeat(2,minmax(0,1fr)); }.manual-grid.three-col { grid-template-columns:repeat(3,minmax(0,1fr)); }.manual-card { padding:22px; border:1px solid var(--line); border-radius:16px; background:rgba(255,255,255,.025); }.manual-card.compact { padding:18px; }.manual-card-icon { display:grid; place-items:center; width:40px; height:40px; margin-bottom:19px; border-radius:12px; color:#082021; background:var(--accent); font-size:20px; }.manual-card h3 { margin:0 0 9px; font-size:18px; }.manual-card p { margin:0; color:var(--muted); font-size:13px; line-height:1.55; }.manual-step { display:block; margin-top:19px; padding-top:14px; border-top:1px solid var(--line); color:var(--accent); font-size:11px; line-height:1.65; }
.manual-steps { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; padding:0; margin:26px 0 28px; list-style:none; counter-reset:manual-step; }.manual-steps li { padding:18px; border-top:2px solid var(--accent); background:rgba(255,255,255,.03); }.manual-steps b,.manual-steps span { display:block; }.manual-steps b { margin-bottom:7px; font-size:13px; }.manual-steps span { color:var(--muted); font-size:12px; line-height:1.5; }
.small-shot { max-width:570px; padding:0 15px 13px; }.small-shot figcaption { padding:13px 0 0; }.shot-toolbar { display:flex; align-items:center; gap:8px; min-height:60px; color:#91a4ae; font-size:10px; }.shot-toolbar span { flex:1; padding:10px; border:1px solid rgba(255,255,255,.1); border-radius:7px; }.shot-toolbar button,.shot-save { padding:9px 10px; border:1px solid rgba(255,255,255,.1); border-radius:7px; color:#f1f6f8; background:rgba(255,255,255,.05); font-size:9px; }.shot-toolbar .shot-primary,.shot-save { color:#082021; background:#70d7d2; }.shot-form { display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:18px; border:1px solid rgba(255,255,255,.1); border-radius:10px; }.shot-form b { grid-column:1/-1; color:#f1f6f8; font-size:15px; }.shot-form label { color:#91a4ae; font-size:9px; }.shot-form label i { display:block; margin-top:5px; padding:10px; border:1px solid rgba(255,255,255,.1); border-radius:6px; color:#f1f6f8; font-style:normal; font-size:10px; }.shot-save { grid-column:2; justify-self:end; }
.data-actions { display:flex; flex-wrap:wrap; gap:10px; margin:24px 0 0; }.data-actions span { padding:12px 14px; border:1px solid var(--line); border-radius:9px; color:var(--muted); font-size:11px; }.data-actions .danger { color:var(--danger); border-color:rgba(255,142,146,.25); }
.faq-section details { border-bottom:1px solid var(--line); }.faq-section summary { padding:17px 0; color:var(--text); cursor:pointer; font-size:14px; font-weight:650; list-style:none; }.faq-section summary::-webkit-details-marker { display:none; }.faq-section summary:after { float:right; color:var(--accent); content:'+'; font-size:18px; }.faq-section details[open] summary:after { content:'−'; }.faq-section details p { max-width:650px; margin:0 0 18px; color:var(--muted); font-size:13px; line-height:1.6; }
.manual-home-link { display:inline-block; margin:27px 0 0; color:var(--accent); font-size:12px; text-decoration:none; }.manual-footer { margin-top:35px; }.manual-link { margin-top:12px; border-top:1px solid var(--line); border-radius:0; padding-top:14px; color:var(--accent); text-decoration:none; }.manual-link:hover { color:var(--text); }
@media (max-width:900px) { .manual-layout { grid-template-columns:1fr; gap:15px; }.manual-nav { position:sticky; top:0; z-index:5; padding:14px; backdrop-filter:blur(14px); }.manual-nav h2 { display:none; }.manual-nav .eyebrow { display:none; }.manual-nav nav { flex-direction:row; gap:3px; overflow-x:auto; }.manual-nav nav a { flex:0 0 auto; }.manual-nav-tip { display:none; }.manual-content { max-width:none; }.manual-hero { padding-top:35px; } }
@media (max-width:560px) { .manual-shell { padding:0 16px 20px; }.manual-topbar { height:76px; }.manual-topbar .brand-logo { width:145px; }.manual-back { min-height:44px; padding:0 11px; font-size:11px; }.manual-back { font-size:0; }.manual-back:first-letter { font-size:18px; }.manual-hero { padding:35px 0 45px; }.manual-hero h1 { font-size:43px; }.manual-lead { font-size:14px; }.manual-section { padding:45px 0; }.manual-grid.two-col,.manual-grid.three-col,.manual-steps { grid-template-columns:1fr; }.shot-top { align-items:flex-start; flex-wrap:wrap; padding:11px 12px; }.shot-controls { width:100%; margin:0; }.shot-body { grid-template-columns:98px 1fr; }.shot-sidebar { padding:12px 7px; font-size:8px; }.shot-main { padding:12px; }.shot-cards { grid-template-columns:1fr; }.shot-cards span { min-height:70px; gap:6px; }.shot-cards span:nth-child(n+2) { display:none; }.manual-note { align-items:flex-start; flex-direction:column; gap:4px; }.shot-toolbar { flex-wrap:wrap; padding:8px 0; }.shot-toolbar span { flex-basis:100%; }.shot-form { grid-template-columns:1fr; }.shot-form b,.shot-save { grid-column:auto; }.shot-save { justify-self:start; }.manual-hero-meta { line-height:1.5; } }
