:root{--navy:#082f52;--navy2:#063963;--blue:#0874dc;--blue2:#0563c4;--ink:#10233d;--muted:#607286;--line:#d9e4ee;--bg:#f5f8fb;--surface:#fff;--surface2:#f2f6fa;--green:#14864e;--green-bg:#e7f7ee;--orange:#d98200;--orange-bg:#fff3d9;--red:#d83b54;--red-bg:#fdecef;--purple:#7144d4;--purple-bg:#f0eaff;--shadow:0 18px 50px rgba(15,45,75,.10);font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color-scheme:light}
html[data-theme=dark]{--ink:#edf4fb;--muted:#a8bacb;--line:#34495e;--bg:#0c1723;--surface:#142332;--surface2:#1b2d3e;--navy:#071d31;--navy2:#0a2f4d;--shadow:0 18px 50px rgba(0,0,0,.32);color-scheme:dark}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--ink)}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit}.hidden,[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;left:10px;top:-60px;z-index:999;padding:10px 14px;background:#fff;color:#003d72;border-radius:8px}.skip-link:focus{top:10px}.icon{display:inline-block;width:1.25em;height:1.25em;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vertical-align:-.2em}.icon--solid{fill:currentColor;stroke:none}.dashboard-svg-icon{display:block;width:1em;height:1em;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.dashboard-svg-icon.dashboard-icon-solid{overflow:visible;fill:none;stroke:none}.dashboard-icon-solid .icon-main{fill:currentColor;stroke:none}.dashboard-icon-solid .icon-main-stroke{fill:none;stroke:currentColor;stroke-width:2.25;stroke-linecap:round;stroke-linejoin:round}.dashboard-icon-solid .icon-white-fill{fill:#fff;stroke:none}.dashboard-icon-solid .icon-white-stroke{fill:none;stroke:#fff;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}.dashboard-icon-solid .icon-accent-fill{fill:currentColor;stroke:none}.dashboard-icon-solid .icon-accent-stroke{fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.icon-megaphone-reference{overflow:visible}
/* Login reconstruido en HTML/CSS a partir de la referencia final */
.login-screen{position:fixed;inset:0;z-index:100;display:grid;padding:clamp(18px,2vw,34px);place-items:center;overflow:auto;background:#eaf6ff}.login-shell{position:relative;width:min(95vw,1465px);height:min(94vh,970px);min-height:720px;display:grid;grid-template-rows:minmax(0,1fr) 52px;border-radius:26px;overflow:hidden;background:#fff;box-shadow:0 28px 90px rgba(19,70,110,.18)}.login-content{min-height:0;display:grid;grid-template-columns:51.1% 48.9%}.login-visual{position:relative;min-width:0;overflow:hidden;background:#dcecf7}.login-visual-art{display:block;width:100%;height:100%;font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif}.login-art-title{font-family:"Arial Black","Segoe UI Black",Inter,system-ui,sans-serif;font-size:78px;font-weight:900;letter-spacing:-.5px}.login-art-subtitle{font-size:22px;font-weight:760;letter-spacing:-.25px}.login-art-tagline{font-size:21px;font-weight:760;letter-spacing:-.15px}.login-benefit-title{font-size:20px;font-weight:800}.login-benefit-copy{font-size:15px;font-weight:500}.login-clothing-shield{transform-box:fill-box;transform-origin:center}.login-panel{position:relative;min-width:0;background:#fff;color:#0b2f53}.login-theme{position:absolute;right:22px;top:18px;z-index:5;display:grid;width:44px;height:44px;padding:0;border:1px solid #d6e1eb;border-radius:11px;background:#fff;color:#0b3155;place-items:center;box-shadow:0 8px 22px rgba(12,55,90,.05)}.login-theme .icon{width:24px;height:24px}.login-cross--logo{padding:8px;background:#fff}.login-cross--logo img{display:block;max-width:100%;max-height:100%;object-fit:contain}.login-panel-inner{width:min(76%,590px);height:100%;margin:0 auto;padding:70px 0 34px;display:flex;flex-direction:column;align-items:stretch}.login-cross{display:grid;width:88px;height:88px;margin:0 auto 24px;border-radius:24px;background:linear-gradient(180deg,#f4f9fe,#eef7fd);color:#0874dc;place-items:center;font-size:58px;font-weight:350;line-height:1;box-shadow:0 16px 30px rgba(22,101,162,.12)}.login-panel h1{margin:0;text-align:center;font-size:clamp(30px,2.2vw,38px);letter-spacing:-.025em}.login-subtitle{margin:9px 0 38px;color:#6f8092;text-align:center;font-size:clamp(15px,1.05vw,18px)}.login-form{display:grid;gap:18px}.login-field{position:relative;display:block;height:62px;border:1px solid #cbd8e3;border-radius:11px;background:#fff;overflow:hidden;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}.login-field:focus-within{border-color:#0874dc;box-shadow:0 0 0 4px rgba(8,116,220,.10)}.login-field-icon{position:absolute;left:20px;top:50%;z-index:2;display:grid;width:20px;height:24px;color:#718294;place-items:center;transform:translateY(-50%);pointer-events:none}.login-icon{display:block;width:20px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.login-icon--solid{fill:currentColor;stroke:none}.login-icon--lock{width:18px;height:21px}.login-field input{position:absolute;inset:0;z-index:1;min-width:0;width:100%;height:100%;padding:0 58px;border:0;background:transparent;color:#132d47;font-size:16px;font-weight:600;outline:0}.login-field--password input{padding-right:58px}.login-field input::placeholder{color:#77899a;font-weight:500}.login-field input:-webkit-autofill,.login-field input:-webkit-autofill:hover,.login-field input:-webkit-autofill:focus{-webkit-text-fill-color:#132d47;-webkit-box-shadow:0 0 0 1000px #fff inset;box-shadow:0 0 0 1000px #fff inset;caret-color:#132d47;transition:background-color 99999s ease-out 0s}.login-field input::-ms-reveal,.login-field input::-ms-clear{display:none}.password-eye{position:absolute;right:8px;top:0;z-index:3;display:grid;width:44px;height:100%;padding:0;border:0;background:transparent;color:#718294;place-items:center;opacity:0;pointer-events:none;transition:opacity .15s}.login-field--password.has-value .password-eye{opacity:1;pointer-events:auto}.password-eye .login-icon--eye{width:23px;height:23px}.login-options{min-height:34px;display:flex;align-items:center;justify-content:space-between;gap:18px;color:#334e67;font-size:14px}.login-options label{display:flex;align-items:center;gap:9px}.login-options input{width:18px;height:18px;accent-color:#0874dc}.link-button{padding:0;border:0;background:transparent;color:#075db6;font-weight:750}.login-error{margin:-4px 0 0;padding:10px 12px;border-radius:9px;background:#fff0f2;color:#b4233a;text-align:center;font-size:13px}.login-submit,.login-demo{min-height:58px;border-radius:10px;font-size:15px;font-weight:900;letter-spacing:.01em}.login-submit{display:flex;border:0;background:linear-gradient(90deg,#0c69c6,#0757ad);color:#fff;align-items:center;justify-content:center;gap:11px;box-shadow:0 12px 26px rgba(0,91,178,.17)}.login-submit-icon{display:block;width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}.login-separator{display:flex;margin:3px 0;align-items:center;gap:20px;color:#78899b;font-size:14px}.login-separator::before,.login-separator::after{content:"";height:1px;flex:1;background:#d4dfe8}.login-demo{display:flex;border:1.5px solid #0b61b7;background:#fff;color:#0a579f;align-items:center;justify-content:center;gap:9px;text-decoration:none}.login-demo .icon{width:21px;height:21px}.login-features{display:grid;margin-top:28px;padding:18px 12px;border-radius:17px;background:#eef6fc;grid-template-columns:repeat(3,1fr);text-align:center}.login-features>div{display:grid;min-width:0;padding:0 12px;justify-items:center;align-content:start}.login-features>div+div{border-left:1px solid #cad9e5}.feature-icon{display:grid;height:32px;margin-bottom:5px;place-items:center}.feature-svg{display:block;width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.feature-svg--solid{fill:currentColor;stroke:none}.feature-icon--green{color:#28a64e}.feature-icon--blue{color:#0874dc}.login-features strong{font-size:16px}.login-features small{margin-top:5px;color:#314d66;font-size:12px;line-height:1.55}.login-footer{display:flex;padding:0 38px;background:#08355c;color:#fff;align-items:center;justify-content:space-between;font-size:13px}.login-footer nav{display:flex;gap:32px}.login-footer a{text-decoration:none;color:#fff}.login-footer a:hover{text-decoration:underline}
html[data-theme=dark] .login-screen{background:#06131f}.login-shell{transition:background .18s ease,box-shadow .18s ease}html[data-theme=dark] .login-shell{background:#071522;box-shadow:0 28px 90px rgba(0,0,0,.52)}html[data-theme=dark] .login-panel{background:#071522;color:#eef6ff}html[data-theme=dark] .login-theme{border-color:#355068;background:#102538;color:#eff7ff;box-shadow:0 8px 22px rgba(0,0,0,.24)}html[data-theme=dark] .login-cross{background:#0c1f30;color:#83c0ff;box-shadow:0 16px 30px rgba(0,0,0,.20)}html[data-theme=dark] .login-subtitle{color:#9fb1c2}html[data-theme=dark] .login-field{border-color:#294258;background:#0a1b2a}html[data-theme=dark] .login-field:focus-within{border-color:#5ca9ee;box-shadow:0 0 0 4px rgba(92,169,238,.12)}html[data-theme=dark] .login-field-icon,html[data-theme=dark] .password-eye{color:#a9bdcf}html[data-theme=dark] .login-field input{color:#f1f7fd}html[data-theme=dark] .login-field input::placeholder{color:#91a6b8}html[data-theme=dark] .login-field input:-webkit-autofill,html[data-theme=dark] .login-field input:-webkit-autofill:hover,html[data-theme=dark] .login-field input:-webkit-autofill:focus{-webkit-text-fill-color:#f1f7fd;-webkit-box-shadow:0 0 0 1000px #0a1b2a inset;box-shadow:0 0 0 1000px #0a1b2a inset;caret-color:#f1f7fd}html[data-theme=dark] .login-options{color:#d7e4ef}html[data-theme=dark] .link-button{color:#79b8f4}html[data-theme=dark] .login-separator{color:#8fa4b6}html[data-theme=dark] .login-separator::before,html[data-theme=dark] .login-separator::after{background:#294158}html[data-theme=dark] .login-demo{border-color:#4f91ce;background:#0a1b2a;color:#a6d1fb}html[data-theme=dark] .login-features{background:#0d2131}html[data-theme=dark] .login-features>div+div{border-color:#29435a}html[data-theme=dark] .login-features small{color:#a9bdcf}html[data-theme=dark] .login-error{background:#25141b;color:#ff9caf}
@media(max-width:1100px){.login-shell{height:auto;min-height:min(94vh,850px)}.login-panel-inner{width:82%;padding-top:58px}.login-cross{width:74px;height:74px;margin-bottom:18px;font-size:50px}.login-subtitle{margin-bottom:28px}.login-field{height:58px}.login-features{margin-top:22px}.login-footer{padding:0 24px}.login-footer nav{gap:18px}}
@media(max-width:820px){.login-screen{padding:0}.login-shell{width:100%;min-height:100dvh;border-radius:0;grid-template-rows:1fr auto}.login-content{grid-template-columns:1fr}.login-visual{display:none}.login-panel-inner{width:min(88%,560px);padding:78px 0 34px}.login-theme{right:18px;top:18px}.login-footer{min-height:68px;flex-direction:column;padding:14px 18px;gap:10px;text-align:center}.login-footer nav{flex-wrap:wrap;justify-content:center;gap:14px 22px}.login-features>div{padding:0 7px}.login-features strong{font-size:14px}.login-features small{font-size:11px}}
@media(max-width:520px){.login-panel-inner{width:calc(100% - 34px);padding-top:72px}.login-cross{width:66px;height:66px;border-radius:19px;font-size:44px}.login-panel h1{font-size:30px}.login-subtitle{font-size:15px}.login-options{align-items:flex-start;flex-direction:column;gap:10px}.login-features{padding:16px 5px}.login-features small{display:none}.login-features>div{padding:0 5px}.login-submit,.login-demo{font-size:13px}.login-footer nav{display:none}}

/* Aplicación */
.app{min-height:100vh}.topbar{position:fixed;left:276px;right:0;top:0;z-index:30;height:80px;display:flex;align-items:center;padding:0 28px;border-bottom:1px solid var(--line);background:var(--surface);gap:20px}.topbar-menu{display:grid;width:40px;height:40px;border:0;background:transparent;place-items:center;color:var(--ink)}.topbar-brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-size:1.28rem;font-weight:950;letter-spacing:.02em}.topbar-spacer{flex:1}.municipality-select{display:grid;gap:2px}.municipality-select span{font-size:.63rem;color:var(--muted);font-weight:900;text-transform:uppercase;letter-spacing:.07em}.municipality-select select{height:40px;min-width:190px;padding:0 34px 0 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font-weight:800}.top-actions{display:flex;align-items:center;gap:9px}.icon-button{position:relative;display:grid;width:42px;height:42px;border:1px solid transparent;border-radius:11px;background:transparent;color:var(--ink);place-items:center}.icon-button:hover{background:var(--surface2)}.badge-count{position:absolute;right:0;top:-2px;display:grid;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#0874dc;color:#fff;place-items:center;font-size:.68rem;font-weight:900}.profile-button{display:flex;align-items:center;gap:10px;border:0;background:transparent;color:var(--ink);text-align:left}.avatar{display:grid;width:45px;height:45px;border-radius:50%;background:var(--navy);color:#fff;place-items:center;font-weight:900}.profile-copy{display:grid;gap:2px}.profile-copy small{color:var(--muted)}
.sidebar{position:fixed;left:0;top:0;bottom:0;z-index:40;width:276px;padding:22px 18px;display:flex;flex-direction:column;background:linear-gradient(180deg,var(--navy),var(--navy2));color:#fff}.sidebar-brand{display:flex;align-items:center;gap:12px;padding:0 5px 28px}.sidebar-brand svg{width:45px;height:45px}.sidebar-brand strong{display:block;font-size:1.35rem}.sidebar-brand small{display:block;margin-top:3px;font-size:.66rem}.sidebar-context{display:grid;margin:-8px 0 18px;padding:11px 13px;border:1px solid rgba(255,255,255,.16);border-radius:12px;background:rgba(255,255,255,.07);gap:3px}.sidebar-context small{opacity:.68;font-size:.62rem;text-transform:uppercase;font-weight:850}.sidebar-context strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nav{display:grid;gap:8px}.nav-button{position:relative;width:100%;height:52px;padding:0 14px;display:flex;align-items:center;gap:14px;border:0;border-radius:10px;background:transparent;color:#fff;text-align:left;font-size:1rem}.nav-button .icon{width:25px;height:25px}.nav-button:hover{background:rgba(255,255,255,.08)}.nav-button.active{background:linear-gradient(90deg,#0c7aed,#0a62d7);box-shadow:0 10px 24px rgba(0,59,145,.28)}.nav-badge{margin-left:auto;min-width:28px;padding:4px 8px;border-radius:999px;background:#0b7cf0;text-align:center;font-size:.72rem;font-weight:900}.sidebar-help{margin-top:auto;padding:18px;border:1px solid rgba(255,255,255,.18);border-radius:14px;background:rgba(255,255,255,.04)}.sidebar-help h3{margin:0 0 8px;font-size:.95rem}.sidebar-help p{margin:0;color:rgba(255,255,255,.78);font-size:.82rem;line-height:1.55}.sidebar-help a{display:flex;margin-top:16px;height:42px;border:1px solid rgba(255,255,255,.22);border-radius:9px;align-items:center;justify-content:center;text-decoration:none;font-weight:800}
.main{min-height:100vh;margin-left:276px;padding:110px 28px 48px}.page{display:none;max-width:1240px;margin:0 auto}.page.active{display:block}.page-head{display:flex;margin-bottom:20px;align-items:flex-start;justify-content:space-between;gap:20px}.page-head h1{margin:0;font-size:1.9rem}.page-head p{margin:4px 0 0;color:var(--muted)}.eyebrow{margin:0 0 4px!important;color:#0874dc!important;font-size:.72rem;font-weight:950;letter-spacing:.12em;text-transform:uppercase}.button{display:inline-flex;min-height:44px;padding:0 17px;border:1px solid var(--line);border-radius:10px;align-items:center;justify-content:center;gap:8px;background:var(--surface);color:var(--ink);font-weight:850}.button:hover{filter:brightness(.98)}.button--primary{border-color:#0874dc;background:#0874dc;color:#fff}.button--danger{border-color:#d9475e;background:#d9475e;color:#fff}.button--small{min-height:38px;padding:0 13px;font-size:.82rem}.button:disabled{opacity:.55;cursor:not-allowed}
.stats{display:grid;margin-bottom:18px;grid-template-columns:repeat(4,1fr);gap:12px}.stat-card{display:flex;min-height:122px;padding:20px;border:1px solid var(--line);border-radius:14px;align-items:center;gap:16px;background:var(--surface)}.stat-icon{display:grid;width:58px;height:58px;border-radius:14px;place-items:center}.stat-icon .icon,.stat-icon .dashboard-svg-icon{width:32px;height:32px}.stat-icon .icon{stroke-width:2.3}.stat-icon.blue{background:#e2f3ff;color:#0874dc}.stat-icon.green{background:var(--green-bg);color:var(--green)}.stat-icon.orange{background:var(--orange-bg);color:#f0a000}.stat-icon.purple{background:var(--purple-bg);color:var(--purple)}.stat-card strong{display:block;font-size:1.55rem}.stat-card span{display:block;margin-top:3px}.stat-card small{display:block;margin-top:7px;color:var(--muted)}
.dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.panel{border:1px solid var(--line);border-radius:14px;background:var(--surface);overflow:hidden}.panel-head{display:flex;min-height:58px;padding:0 18px;border-bottom:1px solid var(--line);align-items:center;justify-content:space-between;gap:14px}.panel-head h2{display:flex;margin:0;align-items:center;gap:9px;font-size:1.08rem}.panel-head h2 .icon,.panel-head h2 .dashboard-svg-icon{color:#0869c7}.panel-head h2 .dashboard-svg-icon{width:22px;height:22px}.panel-head h2 .icon-megaphone-reference{width:24px;height:24px}.panel-body{padding:16px}.empty{display:grid;min-height:210px;padding:30px;place-items:center;text-align:center;color:var(--muted)}.empty .icon,.empty .dashboard-svg-icon{width:42px;height:42px;margin-bottom:10px;color:#0874dc}.list{display:grid}.list-row{display:grid;min-height:66px;padding:12px 0;border-bottom:1px solid var(--line);grid-template-columns:auto 1fr auto;align-items:center;gap:12px}.list-row:last-child{border-bottom:0}.date-box{display:grid;width:48px;text-align:center;color:#075ac0;font-weight:950;line-height:1}.date-box strong{font-size:1.3rem}.date-box small{font-size:.66rem}.row-title{font-weight:850}.row-meta{display:flex;margin-top:5px;color:var(--muted);gap:14px;font-size:.74rem;flex-wrap:wrap}.status{display:inline-flex;padding:6px 10px;border-radius:999px;font-size:.7rem;font-weight:850}.status.green{background:var(--green-bg);color:var(--green)}.status.orange{background:var(--orange-bg);color:var(--orange)}.status.red{background:var(--red-bg);color:var(--red)}
.calendar-panel-body{padding:14px 18px 16px}.dashboard-calendar{display:grid;gap:12px}.calendar-toolbar{display:grid;grid-template-columns:36px 1fr 36px;align-items:center;text-align:center}.calendar-toolbar strong{font-size:.92rem}.calendar-nav{display:grid;width:34px;height:34px;border:0;border-radius:9px;background:transparent;color:var(--ink);place-items:center;font-size:1.45rem}.calendar-nav:hover{background:var(--surface2)}.calendar-weekdays,.calendar-days{display:grid;grid-template-columns:repeat(7,1fr)}.calendar-weekdays span{padding:3px 0 7px;color:var(--muted);text-align:center;font-size:.64rem;font-weight:850}.calendar-days{border:1px solid var(--line);border-radius:10px;overflow:hidden}.calendar-day{position:relative;display:grid;min-height:38px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);place-items:center;font-size:.76rem;font-weight:800}.calendar-day:nth-child(7n){border-right:0}.calendar-day:nth-last-child(-n+7){border-bottom:0}.calendar-day.outside{background:var(--surface2);color:transparent}.calendar-day.has-service span{display:grid;width:28px;height:28px;border-radius:50%;background:#e9f2ff;color:#075ac0;place-items:center}.calendar-day.has-service.pending span{background:#fff1c9;color:#a46a00}.calendar-day i{position:absolute;bottom:4px;width:5px;height:5px;border-radius:50%;background:#12a05a}.calendar-day.pending i{background:#f2ad00}.calendar-legend{display:flex;gap:18px;flex-wrap:wrap;color:var(--muted);font-size:.68rem}.calendar-legend span{display:flex;align-items:center;gap:6px}.calendar-legend i{width:8px;height:8px;border-radius:50%}.calendar-legend i.confirmed{background:#12a05a}.calendar-legend i.pending{background:#f2ad00}.toolbar{display:flex;margin-bottom:14px;gap:10px;flex-wrap:wrap}.search{position:relative;flex:1;min-width:220px}.search input{width:100%;height:46px;padding:0 14px 0 43px;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--ink)}.search .icon{position:absolute;left:14px;top:12px;color:var(--muted)}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.card{border:1px solid var(--line);border-radius:15px;background:var(--surface);box-shadow:0 5px 14px rgba(10,40,70,.03)}.card-toggle{width:100%;min-height:82px;padding:17px;display:flex;border:0;background:transparent;color:var(--ink);align-items:center;justify-content:space-between;text-align:left}.card-toggle h3{margin:0 0 4px;font-size:1.02rem}.card-toggle p{margin:0;color:var(--muted);font-size:.76rem}.chevron{display:grid;width:30px;height:30px;border:1px solid var(--line);border-radius:8px;place-items:center;transition:.2s}.card-toggle[aria-expanded=true] .chevron{transform:rotate(180deg);background:var(--surface2)}.card-body{padding:0 17px 17px;border-top:1px solid var(--line)}.facts{display:grid;padding-top:13px;grid-template-columns:1fr 1fr;gap:9px}.fact{padding:11px;border-radius:10px;background:var(--surface2)}.fact small{display:block;color:var(--muted);font-size:.62rem;font-weight:900;text-transform:uppercase}.fact strong{display:block;margin-top:3px;font-size:.79rem}.card-actions{display:flex;margin-top:13px;justify-content:flex-end;gap:8px}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:14px;background:var(--surface)}table{width:100%;border-collapse:collapse;min-width:800px}th,td{padding:14px;border-bottom:1px solid var(--line);text-align:left;font-size:.83rem}th{background:var(--surface2);font-size:.69rem;text-transform:uppercase;letter-spacing:.05em}tr:last-child td{border-bottom:0}.pill{display:inline-flex;padding:5px 9px;border-radius:999px;background:var(--surface2);font-size:.68rem;font-weight:850}
.notice{padding:18px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}.notice--info{border-left:4px solid #0874dc}.notice--warning{border-left:4px solid #ec9c00}.onboarding{display:grid;min-height:420px;padding:40px;border:1px dashed #a9c5dc;border-radius:20px;background:linear-gradient(145deg,var(--surface),var(--surface2));place-items:center;text-align:center}.onboarding .mark{display:grid;width:84px;height:84px;border-radius:24px;background:#e5f3ff;color:#0874dc;place-items:center}.onboarding .mark .icon{width:46px;height:46px}.onboarding h2{margin:20px 0 8px;font-size:1.55rem}.onboarding p{max-width:620px;margin:0 0 20px;color:var(--muted);line-height:1.6}
/* Modal */
.modal{position:fixed;inset:0;z-index:90;display:grid;padding:20px;background:rgba(2,18,32,.62);place-items:center;overflow:auto}.modal-card{width:min(760px,100%);max-height:92vh;border:1px solid var(--line);border-radius:20px;background:var(--surface);box-shadow:0 28px 80px rgba(0,0,0,.28);overflow:auto}.modal-head{position:sticky;top:0;z-index:2;display:flex;padding:20px 22px;border-bottom:1px solid var(--line);background:var(--surface);align-items:flex-start;justify-content:space-between}.modal-head h2{margin:3px 0 0}.close{display:grid;width:42px;height:42px;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--ink);place-items:center}.modal-body{padding:22px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.field{display:grid;min-width:0;gap:7px}.field.wide{grid-column:1/-1}.field>span{font-size:.78rem;font-weight:850}.field input,.field select,.field textarea{width:100%;min-height:50px;padding:10px 13px;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--ink);font-weight:650}.field textarea{min-height:100px;resize:vertical}.field small{min-height:34px;color:var(--muted);font-size:.72rem;line-height:1.45}.field-row-equal{display:grid;grid-template-columns:1fr 1fr;gap:14px}.modal-actions{display:flex;margin-top:20px;justify-content:flex-end;gap:9px}.checkbox{display:flex;min-height:50px;padding:12px;border:1px solid var(--line);border-radius:11px;align-items:center;gap:10px}.checkbox input{width:19px;height:19px;accent-color:#0874dc}.credentials{padding:18px;border:1px solid #a9d7ba;border-radius:14px;background:#ebf9f0}.credentials code{display:block;margin:7px 0;padding:10px;border-radius:8px;background:#fff;color:#0d385d;font-weight:850;word-break:break-all}.toast{position:fixed;right:22px;bottom:22px;z-index:120;max-width:420px;padding:14px 18px;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:var(--shadow);font-weight:750}
@media(max-width:1100px){.stats{grid-template-columns:repeat(2,1fr)}.cards{grid-template-columns:1fr}.dashboard-grid{grid-template-columns:1fr}.topbar{left:0}.sidebar{transform:translateX(-100%);transition:.2s}.sidebar.open{transform:translateX(0)}.main{margin-left:0}.profile-copy{display:none}}

@media(max-width:720px){.main{padding:96px 14px 30px}.topbar{height:72px;padding:0 12px;gap:8px}.topbar-brand span{display:none}.municipality-select span{display:none}.municipality-select select{min-width:120px;max-width:150px}.page-head{align-items:stretch;flex-direction:column}.stats{grid-template-columns:1fr 1fr}.stat-card{min-height:104px;padding:14px}.stat-icon{width:48px;height:48px}.form-grid,.field-row-equal{grid-template-columns:1fr}.field.wide{grid-column:auto}.facts{grid-template-columns:1fr}.cards{grid-template-columns:1fr}}
@media(max-width:500px){.stats{grid-template-columns:1fr}.top-actions .icon-button:first-child{display:none}.login-options{align-items:flex-start;flex-direction:column}.mobile-features small{display:none}}

/* Edición de servicios con varios turnos */
.modal-card--wide{width:min(980px,100%)}
.shift-section{margin-top:20px;padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--surface2)}
.shift-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px}
.shift-section-head h3{margin:3px 0 5px}.shift-section-head p{margin:0;color:var(--muted);font-size:.84rem}
.shift-editor{position:relative;margin-top:12px;padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.shift-editor:first-child{margin-top:0}.shift-editor-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.shift-editor-title strong{font-size:.93rem}.shift-editor-remove{min-width:38px;padding:8px 10px}
.shift-type-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.shift-type-options label{display:flex;min-height:44px;padding:9px 10px;border:1px solid var(--line);border-radius:10px;align-items:center;gap:8px;font-size:.78rem;font-weight:750}.shift-type-options input{width:17px;height:17px;accent-color:#0874dc}
@media(max-width:720px){.shift-section-head{align-items:stretch;flex-direction:column}.shift-type-options{grid-template-columns:1fr 1fr}}

/* V1.3 · navegación, suspensión y acciones administrativas */
.topbar,.sidebar,.main{transition:left .22s ease,margin-left .22s ease,transform .22s ease,width .22s ease}
body.sidebar-collapsed .sidebar{transform:translateX(-100%)}
body.sidebar-collapsed .topbar{left:0}
body.sidebar-collapsed .main{margin-left:0}
.button--warning{border-color:#d68a00;background:#fff4d8;color:#9b6200}
.button--success{border-color:#168a4b;background:#e6f7ed;color:#0b713a}
.municipality-card--suspended{border-color:#e4b9c0;background:linear-gradient(180deg,var(--surface),rgba(217,71,94,.035))}
.municipality-actions{flex-wrap:wrap}
.suspension-note{margin:14px 0 0;padding:11px 13px;border-left:4px solid #d9475e;border-radius:8px;background:var(--red-bg);color:var(--red);font-size:.82rem;line-height:1.5}
.table-actions{display:flex;gap:7px;justify-content:flex-end;flex-wrap:wrap}
.checkbox small{display:block;margin:4px 0 0 30px;color:var(--muted);font-size:.73rem;font-weight:500;line-height:1.35}
@media(max-width:1100px){body.sidebar-collapsed .sidebar{transform:translateX(-100%)}body.sidebar-collapsed .topbar{left:0}body.sidebar-collapsed .main{margin-left:0}.sidebar.open{transform:translateX(0)!important}}

/* V1.4 · Ajustes visuales verificados contra el prototipo HTML V9.33 */
.stat-icon{
  width:58px;
  height:58px;
  flex:0 0 58px;
  padding:13px;
  overflow:hidden;
  border-radius:13px;
}
.stat-icon .dashboard-svg-icon{
  display:block;
  width:32px;
  height:32px;
  max-width:32px;
  max-height:32px;
  overflow:hidden;
}
.dashboard-svg-icon.dashboard-icon-solid{overflow:hidden}
.stat-card{min-height:118px;padding:18px;gap:16px}
.stat-card>div{min-width:0}
.stat-card strong{font-size:1.65rem;line-height:1}
.stat-card span{margin-top:7px;color:var(--ink);font-size:.86rem;font-weight:850}
.stat-card small{margin-top:5px;font-size:.72rem}

/* Acciones municipales visibles y ordenadas */
.municipality-card .card-body{padding:0 17px 17px}
.municipality-card .municipality-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  margin-top:14px;
  gap:8px;
}
.municipality-card .municipality-actions .button{width:100%}
.municipality-card .municipality-actions .delete-municipality{grid-column:1/-1}
.suspension-note{margin:12px 0 0;padding:10px 12px;border-radius:9px;background:var(--red-bg);color:var(--red);font-size:.76rem;font-weight:750}
.municipality-card--suspended .card-toggle{background:rgba(217,71,94,.025)}

.sidebar,.topbar,.main{transition:transform .22s ease,left .22s ease,margin-left .22s ease}

@media(max-width:720px){
  .stat-icon{width:48px;height:48px;flex-basis:48px;padding:10px}
  .stat-icon .dashboard-svg-icon{width:28px;height:28px;max-width:28px;max-height:28px}
  .municipality-card .municipality-actions{grid-template-columns:1fr}
  .municipality-card .municipality-actions .delete-municipality{grid-column:auto}
}

/* Confirmación web para eliminar municipios */
.modal-card--danger{width:min(620px,100%);overflow:hidden}.danger-modal{background:rgba(5,18,31,.72);backdrop-filter:blur(5px)}.danger-modal-head{display:grid;grid-template-columns:58px 1fr 42px;gap:15px;padding:22px;border-bottom:1px solid #f1c8cf;background:linear-gradient(180deg,#fff8f9,#fff)}html[data-theme=dark] .danger-modal-head{background:linear-gradient(180deg,#2b2025,var(--surface));border-bottom-color:#5a3942}.danger-modal-icon{display:grid;width:58px;height:58px;border-radius:17px;background:var(--red-bg);color:var(--red);place-items:center;box-shadow:inset 0 0 0 1px rgba(216,59,84,.12)}.danger-modal-icon svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.danger-modal-copy h2{margin:2px 0 6px;font-size:1.45rem}.danger-modal-copy p:last-child{margin:0;color:var(--muted);line-height:1.5}.danger-eyebrow{color:var(--red)!important}.delete-municipality-body{display:grid;gap:16px}.danger-summary{display:grid;padding:15px 16px;border:1px solid #f0c5cc;border-radius:13px;background:var(--red-bg);gap:5px}.danger-summary strong{color:#a52138}.danger-summary span{color:#713744;font-size:.82rem;line-height:1.5}html[data-theme=dark] .danger-summary span{color:#f0cbd2}.danger-list{display:grid;margin:0;padding:0 0 0 22px;color:var(--muted);gap:8px;font-size:.83rem;line-height:1.45}.danger-list li::marker{color:var(--red)}.danger-callout{padding:13px 15px;border-left:4px solid var(--red);border-radius:10px;background:var(--surface2);font-size:.82rem;line-height:1.5}.danger-confirm-field strong{color:var(--red)}.danger-confirm-field small{min-height:auto}.danger-confirm-field small.valid{color:var(--green);font-weight:800}.danger-confirm-field input:focus{border-color:var(--red);box-shadow:0 0 0 3px rgba(216,59,84,.12)}.danger-checkbox{display:flex;padding:13px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface2);align-items:flex-start;gap:11px;font-size:.82rem;font-weight:750;line-height:1.45}.danger-checkbox input{flex:0 0 auto;width:19px;height:19px;margin-top:1px;accent-color:var(--red)}.danger-actions{padding-top:2px}.danger-actions .button--danger:not(:disabled){box-shadow:0 10px 24px rgba(216,59,84,.22)}@media(max-width:620px){.danger-modal-head{grid-template-columns:50px 1fr 40px;padding:18px;gap:12px}.danger-modal-icon{width:50px;height:50px;border-radius:14px}.danger-modal-copy h2{font-size:1.25rem}.delete-municipality-body{padding:18px}.danger-actions{display:grid;grid-template-columns:1fr}.danger-actions .button{width:100%}}


/* V1.8 · Acceso delegado seguro y refinamiento del modo oscuro */
.impersonation-banner{position:fixed;left:0;right:0;top:0;z-index:70;min-height:52px;padding:8px 20px;display:flex;align-items:center;justify-content:center;gap:18px;background:linear-gradient(90deg,#713ed1,#4f2cab);color:#fff;box-shadow:0 8px 25px rgba(48,25,105,.26)}
.impersonation-banner>div{display:grid;gap:1px}.impersonation-banner strong{font-size:.88rem}.impersonation-banner span{font-size:.75rem;opacity:.9}.impersonation-banner .button--light{min-height:36px;border-color:rgba(255,255,255,.45);background:#fff;color:#4c2a9f;font-size:.78rem}
body.impersonating .topbar{top:52px}body.impersonating .sidebar{top:52px}body.impersonating .main{padding-top:162px}
.button--impersonate{border-color:#7050d4;background:#f0eaff;color:#5c35bc}.button--impersonate:hover{background:#e8defc}
html[data-theme=dark] .button--impersonate{border-color:#856be0;background:#2b2250;color:#d8cbff}
@media(max-width:1100px){body.impersonating .sidebar{top:52px}}
@media(max-width:720px){.impersonation-banner{align-items:stretch;flex-direction:column;padding:9px 12px;gap:7px;text-align:center}.impersonation-banner .button{width:100%}body.impersonating .topbar{top:96px}body.impersonating .sidebar{top:96px}body.impersonating .main{padding-top:190px}}

.modal-card--impersonate{width:min(560px,100%)}.impersonation-modal-body{display:grid;justify-items:center;text-align:center;gap:15px}.impersonation-modal-icon{display:grid;width:70px;height:70px;border-radius:20px;background:var(--purple-bg);color:var(--purple);place-items:center}.impersonation-modal-icon .icon{width:36px;height:36px}.impersonation-summary{display:grid;gap:4px}.impersonation-summary strong{font-size:1.15rem}.impersonation-summary span{color:var(--muted);font-size:.84rem}.impersonation-modal-body>p{max-width:460px;margin:0;color:var(--muted);font-size:.84rem;line-height:1.6}.impersonation-modal-body .modal-actions{width:100%}

.admin-account-tools{display:grid;padding:16px;border:1px solid var(--line);border-radius:13px;background:var(--surface2);gap:13px}.admin-account-tools>div:first-child{display:grid;gap:4px}.admin-account-tools small{color:var(--muted);font-size:.78rem;line-height:1.45}.admin-account-buttons{display:flex;flex-wrap:wrap;gap:9px}


/* V1.11 · iPad/tablet vertical y administración general limitada a dirección municipal */
@media (orientation:portrait) and (max-width:1100px){
  .login-screen{padding:0;place-items:start center;overflow-y:auto;overflow-x:hidden;background:var(--bg)}
  .login-shell{width:100%;height:auto;min-height:100dvh;border-radius:0;overflow:visible;grid-template-rows:auto auto;box-shadow:none}
  .login-content{display:block;min-height:auto}
  .login-visual{display:none!important}
  .login-panel{display:flex;min-height:calc(100dvh - 68px);align-items:center;justify-content:center}
  .login-panel-inner{width:min(calc(100% - 48px),590px);height:auto;margin:0 auto;padding:70px 0 38px;display:flex;align-items:stretch;justify-content:center}
  .login-form{position:static!important;width:100%!important;min-height:0!important;height:auto!important;margin:0!important;padding:0!important;display:grid!important;background:transparent!important;justify-content:normal!important}
  .login-cross{width:76px;height:76px;margin-bottom:18px;font-size:50px}
  .login-subtitle{margin-bottom:28px}
  .login-footer{position:static;min-height:68px;padding:14px 24px;flex-direction:column;gap:9px;text-align:center}
  .login-footer nav{flex-wrap:wrap;justify-content:center;gap:12px 22px}
}
@media (orientation:portrait) and (max-width:600px){
  .login-panel-inner{width:calc(100% - 34px);padding:62px 0 28px}
  .login-features small{display:none}
  .login-footer nav{display:none}
}
#user-municipality-field[hidden]{display:none!important}


/* Perfil común, preferencias y fotografía de usuario */
.profile-control{position:relative;display:flex;align-items:center;gap:4px}
.avatar-button{display:grid;width:48px;height:48px;padding:0;border:0;border-radius:50%;background:transparent;place-items:center}
.avatar-button:focus-visible,.profile-button:focus-visible,.profile-avatar-button:focus-visible{outline:3px solid rgba(8,116,220,.24);outline-offset:2px}
.avatar{overflow:hidden;background-position:center;background-size:cover;background-repeat:no-repeat}
.avatar.has-photo{color:transparent;box-shadow:inset 0 0 0 1px rgba(255,255,255,.28)}
.profile-button{min-height:48px;padding:4px 6px 4px 2px;border-radius:12px}
.profile-button:hover,.avatar-button:hover{background:var(--surface2)}
.profile-chevron{transition:transform .18s ease}
.profile-button[aria-expanded=true] .profile-chevron{transform:rotate(180deg)}
.profile-menu{position:absolute;right:0;top:calc(100% + 12px);z-index:85;width:230px;padding:12px;border:1px solid var(--line);border-radius:18px;background:var(--surface);box-shadow:0 22px 55px rgba(14,42,70,.2)}
.profile-menu::before{position:absolute;right:28px;top:-7px;width:13px;height:13px;border-top:1px solid var(--line);border-left:1px solid var(--line);background:var(--surface);transform:rotate(45deg);content:""}
.profile-menu button{position:relative;display:flex;width:100%;min-height:48px;padding:0 14px;border:0;border-radius:11px;background:transparent;color:var(--ink);align-items:center;text-align:left;font-size:.94rem;font-weight:800}
.profile-menu button:hover{background:var(--surface2)}
.profile-menu hr{height:1px;margin:8px 4px;border:0;background:var(--line)}
html[data-theme=dark] .profile-menu{box-shadow:0 22px 55px rgba(0,0,0,.46)}

.profile-page-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1.25fr);gap:18px}
.profile-summary-card{display:grid;grid-column:1/-1;padding:28px 32px;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;column-gap:20px;row-gap:8px}
.profile-avatar-button{position:relative;display:grid;width:104px;height:104px;padding:0;border:0;border-radius:30px;background:transparent;grid-row:1/3;place-items:center}
.avatar--large{width:104px;height:104px;border-radius:30px;background:linear-gradient(145deg,#0b4e83,#1588e3);font-size:2rem}
.avatar-camera{position:absolute;right:-5px;bottom:-5px;display:grid;width:35px;height:35px;border:4px solid var(--surface);border-radius:50%;background:#0874dc;color:#fff;place-items:center;box-shadow:0 8px 18px rgba(8,116,220,.28)}
.avatar-camera .icon{width:17px;height:17px;stroke-width:2.2}
.profile-identity{display:grid;min-width:0;gap:9px}
.profile-identity h2{margin:0;font-size:1.22rem;overflow-wrap:anywhere}
.profile-type-chip{display:inline-flex;width:max-content;max-width:100%;padding:7px 13px;border-radius:999px;background:var(--green-bg);color:var(--green);font-size:.76rem;font-weight:900}
.profile-right-meta{display:grid;justify-items:end;gap:7px;color:var(--muted);text-align:right}
.profile-right-meta p{margin:0}
.profile-right-meta p:first-child{font-weight:750}
.profile-facts{display:grid;grid-column:1/-1;margin:20px 0 0;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--line)}
.profile-facts>div{display:flex;min-width:0;padding:17px 0 0;justify-content:space-between;gap:14px}
.profile-facts>div+div{margin-left:22px;padding-left:22px;border-left:1px solid var(--line)}
.profile-facts dt{color:var(--muted)}
.profile-facts dd{margin:0;font-weight:850;text-align:right;overflow-wrap:anywhere}
.profile-preferences{padding:26px}
.profile-preferences .panel-heading{margin-bottom:22px}
.profile-preferences .panel-heading h2{margin:4px 0 0}
.profile-preference-grid{margin-bottom:4px}
.profile-preference-grid .field small{min-height:0}
.preference-box{display:grid;margin:6px 0 22px;padding:18px;border:1px solid var(--line);border-radius:13px;background:var(--surface);gap:14px}
.preference-box legend{padding:0 8px;font-weight:900}
.profile-toggle{display:flex;align-items:center;gap:11px;cursor:pointer}
.profile-toggle input{position:absolute;width:1px;height:1px;opacity:0}
.profile-toggle>span{position:relative;width:46px;height:26px;border-radius:999px;flex:0 0 auto;background:#c6d2dc;transition:.2s}
.profile-toggle>span::after{position:absolute;left:3px;top:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 2px 7px rgba(0,0,0,.18);content:"";transition:.2s}
.profile-toggle input:checked+span{background:#0874dc}
.profile-toggle input:checked+span::after{transform:translateX(20px)}
.profile-toggle input:focus-visible+span{outline:3px solid rgba(8,116,220,.22);outline-offset:2px}
.profile-toggle b{font-size:.84rem}
.profile-security{align-self:start}
.profile-security .panel-body{padding:22px}

.notices-list{display:grid;gap:12px}
.notice-card{display:grid;padding:18px;border:1px solid var(--line);border-radius:14px;background:var(--surface2);grid-template-columns:50px 1fr;gap:15px}
.notice-card.is-unread{border-left:4px solid #0874dc;background:linear-gradient(90deg,rgba(8,116,220,.07),var(--surface))}
.notice-card-icon{display:grid;width:50px;height:50px;border-radius:14px;background:#e8f3fd;color:#0874dc;place-items:center}
.notice-card-icon .dashboard-svg-icon{width:27px;height:27px}
.notice-card-icon .icon-megaphone-reference{transform:translate(-2px,-2px)}
#forced-password-form>.field:not(.wide){align-content:start}
#forced-password-form>.field:not(.wide) input{height:50px;min-height:50px}
.notice-card-meta{display:flex;margin-bottom:5px;color:var(--muted);justify-content:space-between;gap:12px;font-size:.7rem;font-weight:850}
.notice-card-meta span{color:#0874dc;letter-spacing:.08em}
.notice-card h2{margin:0;font-size:1rem}
.notice-card p{margin:7px 0 0;color:var(--muted);line-height:1.55}
.notice-card--warning .notice-card-icon{background:var(--orange-bg);color:var(--orange)}
.notice-card--success .notice-card-icon{background:var(--green-bg);color:var(--green)}

html[data-theme=dark] .profile-type-chip{background:#173d2d}
html[data-theme=dark] .preference-box{background:var(--surface2)}
html[data-theme=dark] .notice-card-icon{background:#17314a}

@media(max-width:1100px){
  .profile-button{padding-right:4px}
  .profile-menu{right:-4px}
  .profile-page-layout{grid-template-columns:1fr}
  .profile-security{align-self:stretch}
}
@media(max-width:720px){
  .avatar-button{width:45px;height:45px}
  .profile-control{gap:0}
  .profile-button{width:26px;padding:0;justify-content:center}
  .profile-button .profile-copy{display:none}
  .profile-menu{position:fixed;right:14px;top:78px;width:min(360px,calc(100vw - 28px));padding:14px;border-radius:18px}
  .profile-menu::before{right:20px}
  .profile-menu button{min-height:54px;font-size:1rem}
  .profile-summary-card{padding:22px;grid-template-columns:auto 1fr;column-gap:16px}
  .profile-avatar-button,.avatar--large{width:82px;height:82px;border-radius:24px}
  .profile-avatar-button{grid-row:1/3}
  .avatar--large{font-size:1.55rem}
  .profile-right-meta{grid-column:1/-1;margin-top:8px;padding-top:14px;border-top:1px solid var(--line);justify-items:start;text-align:left}
  .profile-facts{grid-template-columns:1fr}
  .profile-facts>div{padding:14px 0}
  .profile-facts>div+div{margin-left:0;padding-left:0;border-left:0;border-top:1px solid var(--line)}
  .profile-preferences{padding:22px}
  .notice-card{grid-template-columns:42px 1fr;padding:15px;gap:12px}
  .notice-card-icon{width:42px;height:42px;border-radius:12px}
}

/* V1.16 · Personalización por municipio y subdominio */
.login-cross--logo{width:148px;height:148px;margin-bottom:14px;padding:0;border-radius:0;background:transparent;box-shadow:none}
.login-cross--logo img{width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;filter:drop-shadow(0 8px 14px rgba(7,47,85,.12))}
html[data-theme=dark] .login-cross--logo{background:transparent;box-shadow:none}
html[data-theme=dark] .login-cross--logo img{filter:drop-shadow(0 8px 16px rgba(0,0,0,.38))}
.modal-card--municipality{width:min(1080px,100%)}
.branding-section{min-width:0;margin:24px 0 0;padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--surface2)}
.branding-section legend{padding:0 9px;color:var(--ink);font-weight:900}
.branding-help{margin:0 0 16px;color:var(--muted);font-size:.8rem;line-height:1.55}
.branding-public-checkbox{margin-bottom:16px;background:var(--surface)}
.branding-public-checkbox>span{display:grid;gap:3px}
.branding-public-checkbox small{color:var(--muted);font-size:.72rem;font-weight:600}
.branding-layout{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:18px;align-items:start}
.branding-fields{min-width:0}
.branding-preview{position:sticky;top:94px;display:grid;min-height:335px;padding:22px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(180deg,#fff,#edf6fc);text-align:center;justify-items:center;align-content:center;gap:8px;overflow:hidden}
.branding-preview::before{position:absolute;inset:0;background:radial-gradient(circle at 50% 20%,rgba(8,116,220,.09),transparent 47%);content:"";pointer-events:none}
.branding-preview>*{position:relative;z-index:1}
.branding-preview-logo{display:grid;width:142px;height:142px;place-items:center}
.branding-preview-logo img{display:block;max-width:100%;max-height:100%;object-fit:contain;filter:drop-shadow(0 8px 13px rgba(8,48,84,.18))}
.branding-preview strong{max-width:100%;color:#082f52;font-size:1.48rem;overflow-wrap:anywhere}
.branding-preview span{max-width:100%;color:#425e77;font-size:.86rem;line-height:1.45;overflow-wrap:anywhere}
.branding-preview small{margin-top:8px;padding:6px 10px;border-radius:999px;background:#dfeef9;color:#0b5b9f;font-size:.68rem;font-weight:900}
.branding-badge{display:inline-flex;margin-left:7px;padding:4px 8px;border-radius:999px;background:#e5f6eb;color:#17883b;vertical-align:middle;font-size:.64rem;font-weight:900;letter-spacing:.02em}
html[data-theme=dark] .branding-section{background:var(--surface2)}
html[data-theme=dark] .branding-public-checkbox{background:var(--surface)}
html[data-theme=dark] .branding-preview{background:linear-gradient(180deg,#102538,#0b1c2b)}
html[data-theme=dark] .branding-preview strong{color:#eef6ff}
html[data-theme=dark] .branding-preview span{color:#a9bdcf}
html[data-theme=dark] .branding-preview small{background:#17314a;color:#8fc9ff}
@media(max-width:850px){.branding-layout{grid-template-columns:1fr}.branding-preview{position:relative;top:auto;min-height:270px}.modal-card--municipality{width:100%}}
@media(orientation:portrait) and (max-width:1100px){.login-cross--logo{width:130px;height:130px;margin-bottom:12px}}
@media(max-width:600px){.branding-section{padding:15px}.branding-preview-logo{width:120px;height:120px}.login-cross--logo{width:112px;height:112px}}

/* V1.17 · Fidelidad visual con el prototipo HTML V9.33 */
.services-page .page-head{align-items:flex-end}
.service-toolbar{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(7,24,44,.06);margin-bottom:16px}
.service-search{flex:1;min-width:0;position:relative}
.service-search input{padding-right:110px}
.service-result-count{position:absolute;right:12px;top:50%;transform:translateY(-50%);padding:4px 8px;border-radius:999px;background:#eef3f7;color:#64748b;font-size:.72rem;font-weight:800;pointer-events:none}
.service-toolbar-actions{display:flex;align-items:center;gap:9px}
.view-switch{display:flex;padding:3px;border:1px solid var(--line);border-radius:11px;background:#f3f6f9}
.view-switch button{border:0;border-radius:8px;padding:8px 13px;background:transparent;color:#66788b;font-weight:800}
.view-switch button.active{background:#fff;color:#0a3157;box-shadow:0 2px 7px rgba(7,24,44,.1)}
.service-weekbar{display:flex;align-items:center;justify-content:center;gap:18px;margin:12px 0 14px;text-align:center}
.service-weekbar div{display:flex;flex-direction:column;min-width:190px}
.service-weekbar small{color:var(--muted)}
.shift-legend{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 18px}
.shift-legend span{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border:1px solid var(--line);border-radius:999px;background:#fff;font-size:.78rem;font-weight:750}
.shift-legend i{width:9px;height:9px;border-radius:50%;background:#2baa69}
.shift-legend i.afternoon{background:#e2a00b}.shift-legend i.night{background:#2388c5}
.service-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.service-card{position:relative;display:flex;min-width:0;border:1px solid var(--line);border-radius:15px;flex-direction:column;overflow:hidden;background:#fff;transition:transform .16s,box-shadow .16s,border-color .16s}
.service-card:hover{border-color:#bdcfde;box-shadow:0 12px 30px rgba(7,24,44,.1);transform:translateY(-2px)}
.service-card__accent{height:5px;background:var(--shift-color,#1683db)}
.service-card--shift-morning{--shift-color:#2baa69}.service-card--shift-afternoon{--shift-color:#e2a00b}.service-card--shift-night{--shift-color:#2388c5}.service-card--shift-full-day{--shift-color:#7b56c5}
.service-card__body{display:flex;padding:16px 16px 14px;flex:1;flex-direction:column}
.service-card__top{display:flex;margin-bottom:12px;align-items:flex-start;justify-content:space-between;gap:12px}
.service-card__date{display:flex;align-items:center;gap:10px}
.mini-date{display:flex;width:42px;height:44px;border-radius:10px;align-items:center;justify-content:center;flex-direction:column;background:#e8f7ef;color:#146a43;line-height:1}
.service-card--shift-afternoon .mini-date{background:#fff4d6;color:#8a5800}.service-card--shift-night .mini-date{background:#e2f3fc;color:#075883}.service-card--shift-full-day .mini-date{background:#f0e9ff;color:#56358f}
.mini-date strong{font-size:1rem}.mini-date small{font-size:.62rem;font-weight:900;margin-top:3px}
.service-card__date>div>strong{display:block;font-size:.83rem}.service-card__date>div>span{color:var(--muted);font-size:.74rem}
.shift-chip{padding:5px 9px;border-radius:999px;background:#e8f7ef;color:#146a43;font-size:.65rem;font-weight:900;letter-spacing:.08em}
.service-card--shift-afternoon .shift-chip{background:#fff4d6;color:#8a5800}.service-card--shift-night .shift-chip{background:#e2f3fc;color:#075883}.service-card--shift-full-day .shift-chip{background:#f0e9ff;color:#56358f}
.service-card h3{margin:0 0 8px;font-size:.98rem;line-height:1.33;letter-spacing:-.018em}
.service-card__location{display:flex;margin:0 0 11px;align-items:flex-start;gap:7px;color:var(--muted);font-size:.78rem}
.service-card__meta-row{display:flex;margin-top:auto;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.service-card__tags{display:flex;flex-wrap:wrap;gap:6px}.tag{display:inline-flex;padding:5px 8px;border-radius:999px;background:#edf2f6;color:#536579;font-size:.67rem;font-weight:800}.tag--available{background:#e8f7ef;color:#146a43}.tag--full{background:#fde8ec;color:#a62b44}
.service-card__availability{margin-left:auto;font-size:.66rem}.service-card__availability.requirements{background:#fff1da;color:#9b5c00}.service-card__availability.full{background:#edf2f6;color:#536579}
.service-card__footer{display:flex;padding:11px 15px;border-top:1px solid var(--line);align-items:center;justify-content:space-between;gap:10px;background:#fbfcfd}.service-card__footer small{color:var(--muted);font-size:.7rem}.service-card__footer small i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#1683db;margin-right:6px}
.dashboard-request-empty .empty-icon-wrap,.list-icon-wrap{display:inline-flex;width:52px;height:52px;align-items:center;justify-content:center;border-radius:14px;background:#e9f3ff;color:#0b78dc}.dashboard-request-empty p{display:flex;flex-direction:column;gap:6px}.dashboard-request-empty p strong{font-size:1.02rem}.dashboard-request-empty p small{color:var(--muted);font-weight:400}.list-icon-wrap{width:42px;height:42px;flex:0 0 auto}.dashboard-people-icon{transform:none!important}
.sidebar-help{position:relative;padding:18px 14px 14px 50px;border:1px solid rgba(255,255,255,.18);border-radius:14px}.sidebar-help-icon{position:absolute;left:14px;top:16px;display:grid;width:30px;height:30px;place-items:center;border:1px solid rgba(255,255,255,.5);border-radius:50%;font-weight:900}.sidebar-help .button{width:100%;margin-top:10px;border-color:rgba(255,255,255,.28);color:#fff;background:transparent}
.calendar-legend .available{background:#1976d2}
/* Modal de alta de servicio: estructura visual más clara, sin cambiar la lógica */
#service-modal .modal-card{max-width:1080px;border-radius:20px;overflow:hidden}
#service-modal .modal-head{padding:22px 26px;background:linear-gradient(180deg,#fff,#f8fbfe)}
#service-modal .modal-body{padding:24px 26px}
#service-modal .form-grid{gap:16px}
#service-modal .field>span{font-weight:800;color:#102f50}
#service-modal input,#service-modal select,#service-modal textarea{border-radius:11px;background:#fff}
#service-modal textarea{min-height:92px}
.shift-section{margin-top:24px;padding-top:22px;border-top:1px solid var(--line)}
.shift-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:15px}.shift-section-head h3{margin:2px 0 3px}.shift-section-head p{margin:0;color:var(--muted)}
.shift-editor{padding:18px;margin-bottom:14px;border:1px solid #dce6ee;border-radius:15px;background:#f9fbfd}.shift-editor-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid #e4ebf1}.shift-editor-title strong{font-size:1rem;color:#0b3157}
@media(max-width:1050px){.service-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.service-toolbar{align-items:stretch;flex-direction:column}.service-toolbar-actions{justify-content:space-between}.service-card-grid{grid-template-columns:1fr}.service-result-count{display:none}.service-search input{padding-right:14px}.shift-section-head{align-items:stretch;flex-direction:column}.service-card__footer{align-items:flex-start;flex-direction:column}.service-card__footer .button{width:100%}}
html[data-theme="dark"] .service-toolbar,html[data-theme="dark"] .service-card,html[data-theme="dark"] .shift-legend span{background:var(--surface);border-color:var(--line)}
html[data-theme="dark"] .service-card__footer,html[data-theme="dark"] .shift-editor{background:var(--surface-3);border-color:var(--line)}
