
:root{--navy:#15283e;--navy2:#213b51;--ink:#203649;--muted:#738596;--mint:#098b77;--line:#dfe8ed;--bg:#f3f6f8;--shadow:0 8px 26px rgba(15,37,56,.045)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}h1,h2,h3,p{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}.shell{display:grid;grid-template-columns:238px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;min-height:0;background:var(--navy);color:#f3fcfc;padding:26px 14px;display:flex;flex-direction:column;gap:26px}.brand{display:flex;gap:12px;align-items:center;padding:0 10px}.brandmark{flex:0 0 38px;height:38px;display:grid;place-items:center;border-radius:12px;border:1px solid #65d6c3;color:#77dfcc;font-weight:800;font-size:21px}.brand b{font-size:16px}.brand small{display:block;font-size:10px;letter-spacing:1.4px;color:#9ebbc5}.side-label{font-size:10px;letter-spacing:1.5px;color:#92acb9;padding:0 14px;margin-bottom:9px}.navigation{display:grid;gap:4px}.navlink{display:flex;align-items:center;gap:12px;color:#bed0d9;border-radius:10px;padding:12px 13px;font-size:13px}.navlink:hover,.navlink.active{background:#275b53;color:#fff}.navicon{width:21px;font-size:20px;text-align:center;line-height:1.1}.sidefooter{margin-top:auto;border:1px solid #385066;border-radius:12px;padding:13px;background:#20374b}.sidefooter strong{font-size:12px}.sidefooter p{font-size:11px;color:#a3bac7;margin-top:5px}.smallpill{font-size:10px;background:#2c5754;color:#a9f1dd;border-radius:6px;padding:4px 8px;display:inline-block;margin-top:10px}.workspace{min-width:0}.topbar{height:72px;background:#fff;border-bottom:1px solid var(--line);padding:0 30px;display:flex;justify-content:space-between;align-items:center;gap:12px}.breadcrumbs{color:#738697;font-size:12px}.breadcrumbs strong{color:#263a4b}.topright{display:flex;align-items:center;gap:12px}.demopill{font-size:10px;font-weight:750;letter-spacing:.7px;white-space:nowrap;border-radius:30px;background:#fff3e8;border:1px solid #f4c89e;color:#aa5b0b;padding:7px 10px}.avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#ddf4ee;color:#096d60;font-weight:700;font-size:12px}.content{max-width:1520px;margin:0 auto;padding:28px 30px 65px}.screen{display:none;scroll-margin-top:115px}#inicio{display:block}.screens:has(.screen:target) #inicio:not(:target){display:none}.screen:target{display:block}.heading{display:flex;justify-content:space-between;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:19px}.eyebrow{display:block;color:var(--mint);font-weight:800;letter-spacing:1.6px;font-size:11px;margin-bottom:5px}.heading h1{font-size:28px;line-height:1.2;letter-spacing:-.6px}.heading p{margin-top:7px;color:var(--muted);font-size:13px}.notice{background:#eaf8f2;border:1px solid #cae9db;color:#176754;padding:13px 16px;border-radius:10px;font-size:12px;margin-bottom:20px}.notice.warning{background:#fff6e9;border-color:#efd4aa;color:#895719}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:17px}.stat,.panel{border:1px solid var(--line);background:#fff;border-radius:14px;box-shadow:var(--shadow)}.stat{padding:19px;min-width:0}.stat-icon{float:right;background:#e6f6f0;color:var(--mint);border-radius:10px;width:32px;height:32px;display:grid;place-items:center;font-weight:800;font-size:19px}.stat-label{color:var(--muted);font-size:12px}.stat strong{display:block;letter-spacing:-.7px;font-size:28px;line-height:1.25;margin:12px 0 5px}.stat small{color:#8c9ba8;font-size:11px}.two{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(265px,.85fr);gap:15px}.panel{padding:20px;margin-bottom:16px;min-width:0}.panel header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px;flex-wrap:wrap}.panel h2{font-size:16px;letter-spacing:-.2px}.panel header small{color:var(--muted)}.textlink,.textbutton{color:var(--mint);font-weight:750;font-size:12px}.textbutton{border:0;background:none;padding:5px}.scrolltable{max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch}table{width:100%;border-collapse:collapse;min-width:620px}th{font-size:10px;letter-spacing:.6px;text-transform:uppercase;color:#8b9caa;text-align:left;white-space:nowrap}th,td{border-bottom:1px solid #e9eef1;padding:12px 10px}td{font-size:12px;color:#4d6171}td strong{color:#243b4d}td small{display:block;font-size:10px;color:#94a0aa}tbody tr:last-child td{border-bottom:none}.tag{font-size:10px;font-weight:700;border-radius:6px;display:inline-block;white-space:nowrap;padding:5px 8px}.airbnb{background:#ffede9;color:#a74c47}.booking{background:#eaf1fe;color:#426fb6}.vrbo{background:#e1f5f0;color:#15846e}.manual{background:#efebfb;color:#765faf}.status{background:#e8f6ed;color:#21815d}.channelbar{height:13px;display:flex;gap:2px;overflow:hidden;background:#e7edf0;border-radius:20px;margin:11px 0 14px}.channelbar>span{height:100%}.split{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #edf1f3;font-size:12px}.split:last-child{border-bottom:0}.tasks{display:grid;gap:9px}.task{display:flex;gap:11px;align-items:flex-start;padding:12px;border-radius:10px;border:1px solid #e6edef;cursor:pointer}.task input{accent-color:var(--mint);margin-top:4px}.task strong{font-size:12px}.task small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.task:has(input:checked){opacity:.55}.task:has(input:checked) strong{text-decoration:line-through}.btn{background:#fff;border:1px solid #dce5e9;border-radius:9px;padding:10px 14px;color:#2a3e50;font-weight:700;font-size:12px;white-space:nowrap}.btn.primary{background:var(--mint);color:#fff;border-color:var(--mint)}.btn:disabled{opacity:.5}.filter-label{font-size:11px;color:var(--muted)}select,input{padding:10px;border:1px solid var(--line);border-radius:9px;color:var(--ink);background:#fff;min-width:0}.filter-label select{margin-left:6px;max-width:225px}.calendarhead p{color:var(--muted);font-size:12px;margin-top:4px}.cal-scroller{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--line);border-radius:10px}.cal-grid{display:grid;min-width:1050px;grid-template-columns:170px repeat(var(--days),minmax(29px,1fr))}.cal-corner,.cal-day,.cal-property,.cal-daycell{border-right:1px solid #edf1f3;border-bottom:1px solid #edf1f3;min-height:34px}.cal-corner,.cal-day{background:#f7fafb;padding:9px 4px;font-size:10px;color:#738898;font-weight:700;text-align:center}.cal-corner,.cal-property{position:sticky;left:0;z-index:1;text-align:left}.cal-property{padding:9px;background:#fff;font-size:11px;min-height:51px}.cal-property small{display:block;font-size:9px;color:var(--muted);margin-top:3px}.cal-daycell{height:51px;display:grid;align-items:center}.bar{display:block;height:14px;background:var(--bar);border-radius:2px}.legend{display:flex;gap:12px;flex-wrap:wrap;font-size:11px;color:#6a7f8d;margin-top:14px}.properties{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.property{padding:0;overflow:hidden}.property-banner{height:100px;padding:15px;color:#d5faf1;display:flex;justify-content:space-between}.property-banner span{font-size:32px}.gradient0{background:linear-gradient(120deg,#14334c,#387e78)}.gradient1{background:linear-gradient(120deg,#304562,#718ba8)}.gradient2{background:linear-gradient(120deg,#356d71,#73afae)}.property-content{padding:16px}.property-content p{color:var(--muted);font-size:11px;margin:5px 0 12px}.ownerpreview{background:#f0faf6;border:1px solid #d5eee2;border-radius:10px;padding:20px}.ownerpreview p{font-size:12px;margin-top:8px;color:var(--muted)}.disclaimer{font-size:11px;color:var(--muted);margin-top:14px}.message{border:1px solid var(--line);border-radius:11px;padding:15px;margin:10px 0}.messagehead{display:flex;align-items:center;justify-content:space-between;gap:8px}.message p{color:#627787;font-size:12px;margin:11px 0}.message textarea{width:100%;min-height:85px;resize:vertical;border:1px solid var(--line);border-radius:9px;padding:10px;color:#3e5566}.msgactions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.empty{color:var(--muted);font-size:12px}.overlay{position:fixed;inset:0;background:rgba(12,27,41,.55);z-index:100;display:none;align-items:center;justify-content:center;padding:14px}.overlay.open{display:flex}.dialog{width:min(100%,520px);max-height:90dvh;overflow:auto;background:#fff;border-radius:17px;padding:24px;box-shadow:0 15px 60px #15283e50}.dialog h2{margin-bottom:7px}.dialog p{color:var(--muted);font-size:12px;margin-bottom:16px}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field label{font-size:11px;color:#586e7c;display:block;font-weight:700;margin-bottom:4px}.field input,.field select{width:100%}.dialogfoot{display:flex;gap:8px;justify-content:flex-end;margin-top:18px}.err{color:#b94444;font-size:12px;margin-top:8px}
@media(max-width:1080px){.shell{grid-template-columns:75px minmax(0,1fr)}.sidebar{padding:18px 8px}.sidebar .brand{justify-content:center;padding:0}.brandword,.side-label,.sidefooter,.navtext{display:none}.navigation{gap:8px}.navlink{justify-content:center;padding:12px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.two{grid-template-columns:1fr}.properties{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.shell{display:block;min-height:100dvh}.sidebar{height:auto;max-height:none;min-height:0;position:sticky;top:0;z-index:40;padding:10px 10px 7px;display:flex;flex-direction:column;gap:8px}.sidebar .brand{justify-content:flex-start}.brandmark{width:28px;height:28px;flex-basis:28px;border-radius:9px;font-size:17px}.brandword{display:block}.brandword b{font-size:13px}.brandword small{font-size:8px}.navigation{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding:0 0 3px}.navigation::-webkit-scrollbar{display:none}.navlink{flex:0 0 auto;min-width:66px;padding:7px 6px 6px;display:flex;flex-direction:column;gap:4px;border-radius:8px;font-size:10px;line-height:1.2}.navtext{display:block;font-size:10px;white-space:nowrap}.navicon{font-size:17px;height:19px;display:grid;place-items:center}.topbar{height:auto;min-height:52px;padding:10px 12px;gap:6px}.breadcrumbs{font-size:11px;line-height:1.2}.topright{gap:7px}.demopill{font-size:9px;letter-spacing:0;padding:5px 7px}.avatar{width:28px;height:28px;font-size:10px;flex:0 0 28px}.content{padding:20px 13px 55px}.heading{gap:11px}.heading h1{font-size:24px}.heading p{font-size:12px}.eyebrow{font-size:10px}.stats{gap:9px}.stat{padding:14px}.stat strong{font-size:23px;margin-top:10px}.stat-label{font-size:11px;max-width:78%}.stat small{font-size:10px}.stat-icon{width:26px;height:26px;font-size:16px}.panel{padding:15px}.panel h2{font-size:15px}.properties{grid-template-columns:1fr}.filter-label select{margin-left:0;margin-top:4px;max-width:100%;width:100%}.filter-label{display:block;width:100%}.heading .btn{width:100%}.screen{scroll-margin-top:150px}}
@media(max-width:355px){.stats{grid-template-columns:1fr}.demopill{font-size:8px}.navlink{min-width:61px}.heading h1{font-size:22px}.formgrid{grid-template-columns:1fr}}

/* v0.2: pestaña activa también si el visor permite CSS pero bloquea JavaScript */
body:has(.screen:target) .navigation .navlink.active { background:transparent; color:#bed0d9; }
body:has(#inicio:target) .navigation .navlink[data-route="inicio"],
body:has(#calendario:target) .navigation .navlink[data-route="calendario"],
body:has(#reservas:target) .navigation .navlink[data-route="reservas"],
body:has(#tarifas:target) .navigation .navlink[data-route="tarifas"],
body:has(#mensajes:target) .navigation .navlink[data-route="mensajes"],
body:has(#propiedades:target) .navigation .navlink[data-route="propiedades"],
body:has(#propietarios:target) .navigation .navlink[data-route="propietarios"],
body:has(#finanzas:target) .navigation .navlink[data-route="finanzas"],
body:has(#tareas:target) .navigation .navlink[data-route="tareas"] {background:#275b53;color:#fff}
.calendar-navigation {display:flex;gap:6px;align-items:center}
.calendar-navigation .btn {min-width:42px;min-height:39px;font-size:17px}
.noscript-warning{margin-top:10px;background:#fff5e9;border:1px solid #f0d6ae;padding:10px;border-radius:9px;font-size:12px;color:#87510f}
@media(max-width:760px){.calendar-navigation .btn{min-height:42px;min-width:45px}}

/* v0.3: global filter visible in every section and immediate action feedback */
[hidden]{display:none!important}
.global-property-selector{display:flex;align-items:center;gap:9px;margin-left:auto;min-width:0}
.global-property-selector label{white-space:nowrap;font-weight:750;font-size:11px;color:#698193}
.global-property-selector select{min-width:174px;max-width:260px;font-size:12px;font-weight:650;padding:9px 28px 9px 10px;border:1px solid #cddcde;background:#f7fbfa;color:#173e45}
.runtime-status{margin:10px 30px 0;border:1px solid #e8ca8c;background:#fff6e9;color:#7b501a;border-radius:9px;padding:10px 12px;font-size:12px}
html.js-running .runtime-status{display:none}
.action-feedback{padding:13px 16px;margin-bottom:16px;background:#eaf8f2;color:#175c4c;border:1px solid #b7e4d4;border-radius:10px;font-size:12px;font-weight:650}
#calendarBody .cal-grid{min-width:1000px}
@media(max-width:900px){.topbar{flex-wrap:wrap;height:auto;min-height:72px;padding-top:10px;padding-bottom:10px}.global-property-selector{order:3;width:100%;margin:2px 0 0;justify-content:space-between}.global-property-selector select{flex:1;max-width:none}}
@media(max-width:760px){.runtime-status{margin:8px 13px 0}.global-property-selector label{font-size:11px}.global-property-selector select{width:60%;min-width:0}.topright{margin-left:auto}}

[hidden]{display:none!important}body:not(.unlocked) .shell{display:none!important}body.unlocked #loginScreen{display:none!important}
#loginScreen{min-height:100dvh;background:linear-gradient(140deg,#102d43,#154e53);display:grid;place-items:center;padding:20px}
.login-card{width:min(430px,100%);background:#fff;border-radius:22px;padding:32px;box-shadow:0 30px 80px #0003}.login-logo{display:inline-grid;place-items:center;width:48px;height:48px;border:1px solid #9bd6cf;color:#098b77;font-weight:800;font-size:25px;border-radius:14px;margin-bottom:15px}.login-card h1{font-size:25px}.login-card p{margin:7px 0 22px;color:#657986;font-size:13px}.login-card .field,.formbox .field{display:flex;flex-direction:column;gap:6px;margin:12px 0}.login-card label,.formbox label{font-size:12px;font-weight:700;color:#465e6d}.login-card input,.formbox input,.formbox select{width:100%;min-height:42px;border:1px solid #cddae2;border-radius:9px;background:#fff;padding:10px;color:var(--ink);font-size:14px}.login-card button[type=submit]{width:100%;margin-top:10px;min-height:43px}.login-message{min-height:20px;color:#a12b2b;font-size:12px;margin-top:10px}.loading{color:#697d8c;font-size:12px;margin-top:10px}.signout{color:#b04b4b;background:#fff;border:1px solid #e5c5c5;padding:7px 10px;border-radius:8px;font-size:12px}.livepill{color:#047865;border:1px solid #a7dfd2;background:#e7f8f3;font-size:10px;padding:7px 10px;border-radius:25px;font-weight:800}.pill-pending{background:#fff4e5;color:#946316;border:1px solid #efd3a0;padding:5px 9px;border-radius:8px;font-weight:700;font-size:11px}.pageactions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.formbox{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.field-wide{grid-column:1/-1}.empty-v4{padding:34px 20px;text-align:center;color:#607788;border:1px dashed #cfdfe4;border-radius:14px;background:#f9fbfc}.empty-v4 b{display:block;color:#243c4f;font-size:15px}.empty-v4 small{display:block;max-width:450px;margin:6px auto 0;font-size:12px}.v4cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.v4card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:19px;box-shadow:var(--shadow)}.v4card b{display:block;font-size:16px;margin:5px 0}.v4card small{color:var(--muted)}.v4card .actions{margin-top:18px;display:flex;justify-content:flex-end}.v4card .cardtag{color:#0f856c;background:#e8f8f1;font-size:10px;border-radius:6px;padding:5px 8px}.v4table{overflow-x:auto}.v4table table{min-width:600px}.btn:disabled{opacity:.5;cursor:not-allowed}.modal-v4{position:fixed;inset:0;z-index:99;background:rgba(8,28,43,.68);display:none;align-items:center;justify-content:center;padding:14px}.modal-v4.open{display:flex}.modal-box{background:#fff;border-radius:16px;padding:25px;width:min(590px,100%);max-height:90dvh;overflow:auto;box-shadow:0 35px 80px #0004}.modal-box h2{font-size:20px}.modal-box p{font-size:12px;color:var(--muted);margin:5px 0 12px}.modal-foot{display:flex;justify-content:flex-end;gap:10px;margin-top:22px;flex-wrap:wrap}.toast{position:fixed;z-index:110;bottom:20px;right:18px;background:#113f37;color:#fff;border-radius:10px;padding:12px 16px;box-shadow:0 10px 25px #0003;max-width:340px;font-size:12px}.cal-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.cal-cell{min-height:42px;border:1px solid #e0e8ef;background:#fff;border-radius:7px;padding:5px 7px;font-size:12px}.cal-cell.muted{background:#f5f8fa;color:#b5c1c8}.cal-cell.today{border-color:#088c75;background:#e8f8f3}
@media(max-width:970px){.v4cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.v4cards{grid-template-columns:1fr}.login-card{padding:24px}.formbox{grid-template-columns:1fr}.topright{width:100%;justify-content:flex-end}.signout{font-size:11px}.heading .pageactions{width:100%}.heading .pageactions .btn{width:100%}}
